randmarcomps 1.85.0 → 1.87.0

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.
@@ -1,4 +1,4 @@
1
- (function(S,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","react-router-dom"],o):(S=typeof globalThis<"u"?globalThis:S||self,o(S.randmarcomps={},S.jsxRuntime,S.React,S.ReactDOM,S["react-router-dom"]))})(this,function(S,o,H,wo,Ar){"use strict";function yo(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=yo(H),_r=yo(wo);var Qc=Object.defineProperty,Zc=Object.defineProperties,Jc=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,xo=Object.prototype.hasOwnProperty,No=Object.prototype.propertyIsEnumerable,Co=(e,t,r)=>t in e?Qc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rc=(e,t)=>{for(var r in t||(t={}))xo.call(t,r)&&Co(e,r,t[r]);if(Bt)for(var r of Bt(t))No.call(t,r)&&Co(e,r,t[r]);return e},el=(e,t)=>Zc(e,Jc(t)),tl=(e,t)=>{var r={};for(var n in e)xo.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Bt)for(var n of Bt(e))t.indexOf(n)<0&&No.call(e,n)&&(r[n]=e[n]);return r};function rl(e){let t=setTimeout(e,0),r=setTimeout(e,10),n=setTimeout(e,50);return[t,r,n]}function nl(e){let t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current}var ol=18,So=40,al=`${So}px`,sl=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function il({containerRef:e,inputRef:t,pushPasswordManagerStrategy:r,isFocused:n}){let[a,s]=i.useState(!1),[c,l]=i.useState(!1),[u,d]=i.useState(!1),f=i.useMemo(()=>r==="none"?!1:(r==="increase-width"||r==="experimental-no-flickering")&&a&&c,[a,c,r]),p=i.useCallback(()=>{let h=e.current,m=t.current;if(!h||!m||u||r==="none")return;let b=h,g=b.getBoundingClientRect().left+b.offsetWidth,w=b.getBoundingClientRect().top+b.offsetHeight/2,v=g-ol,y=w;document.querySelectorAll(sl).length===0&&document.elementFromPoint(v,y)===h||(s(!0),d(!0))},[e,t,u,r]);return i.useEffect(()=>{let h=e.current;if(!h||r==="none")return;function m(){let g=window.innerWidth-h.getBoundingClientRect().right;l(g>=So)}m();let b=setInterval(m,1e3);return()=>{clearInterval(b)}},[e,r]),i.useEffect(()=>{let h=n||document.activeElement===t.current;if(r==="none"||!h)return;let m=setTimeout(p,0),b=setTimeout(p,2e3),g=setTimeout(p,5e3),w=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(m),clearTimeout(b),clearTimeout(g),clearTimeout(w)}},[t,n,r,p]),{hasPWMBadge:a,willPushPWMBadge:f,PWM_BADGE_SPACE_WIDTH:al}}var Eo=i.createContext({}),To=i.forwardRef((e,t)=>{var r=e,{value:n,onChange:a,maxLength:s,textAlign:c="left",pattern:l,placeholder:u,inputMode:d="numeric",onComplete:f,pushPasswordManagerStrategy:p="increase-width",pasteTransformer:h,containerClassName:m,noScriptCSSFallback:b=cl,render:g,children:w}=r,v=tl(r,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),y,x,N,E,C;let[T,$]=i.useState(typeof v.defaultValue=="string"?v.defaultValue:""),O=n??T,B=nl(O),K=i.useCallback(W=>{a==null||a(W),$(W)},[a]),F=i.useMemo(()=>l?typeof l=="string"?new RegExp(l):l:null,[l]),L=i.useRef(null),P=i.useRef(null),V=i.useRef({value:O,onChange:K,isIOS:typeof window<"u"&&((x=(y=window==null?void 0:window.CSS)==null?void 0:y.supports)==null?void 0:x.call(y,"-webkit-touch-callout","none"))}),A=i.useRef({prev:[(N=L.current)==null?void 0:N.selectionStart,(E=L.current)==null?void 0:E.selectionEnd,(C=L.current)==null?void 0:C.selectionDirection]});i.useImperativeHandle(t,()=>L.current,[]),i.useEffect(()=>{let W=L.current,j=P.current;if(!W||!j)return;V.current.value!==W.value&&V.current.onChange(W.value),A.current.prev=[W.selectionStart,W.selectionEnd,W.selectionDirection];function ue(){if(document.activeElement!==W){ee(null),ne(null);return}let R=W.selectionStart,we=W.selectionEnd,Pr=W.selectionDirection,Ae=W.maxLength,et=W.value,$e=A.current.prev,Ke=-1,Ye=-1,tt;if(et.length!==0&&R!==null&&we!==null){let Ig=R===we,kg=R===et.length&&et.length<Ae;if(Ig&&!kg){let rt=R;if(rt===0)Ke=0,Ye=1,tt="forward";else if(rt===Ae)Ke=rt-1,Ye=rt,tt="backward";else if(Ae>1&&et.length>1){let bo=0;if($e[0]!==null&&$e[1]!==null){tt=rt<$e[1]?"backward":"forward";let Og=$e[0]===$e[1]&&$e[0]<Ae;tt==="backward"&&!Og&&(bo=-1)}Ke=bo+rt,Ye=bo+rt+1}}Ke!==-1&&Ye!==-1&&Ke!==Ye&&L.current.setSelectionRange(Ke,Ye,tt)}let qc=Ke!==-1?Ke:R,Xc=Ye!==-1?Ye:we,Dg=tt??Pr;ee(qc),ne(Xc),A.current.prev=[qc,Xc,Dg]}if(document.addEventListener("selectionchange",ue,{capture:!0}),ue(),document.activeElement===W&&Y(!0),!document.getElementById("input-otp-style")){let R=document.createElement("style");if(R.id="input-otp-style",document.head.appendChild(R),R.sheet){let we="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";xt(R.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),xt(R.sheet,`[data-input-otp]:autofill { ${we} }`),xt(R.sheet,`[data-input-otp]:-webkit-autofill { ${we} }`),xt(R.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),xt(R.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let ge=()=>{j&&j.style.setProperty("--root-height",`${W.clientHeight}px`)};ge();let ve=new ResizeObserver(ge);return ve.observe(W),()=>{document.removeEventListener("selectionchange",ue,{capture:!0}),ve.disconnect()}},[]);let[X,D]=i.useState(!1),[M,Y]=i.useState(!1),[Q,ee]=i.useState(null),[te,ne]=i.useState(null);i.useEffect(()=>{rl(()=>{var W,j,ue,ge;(W=L.current)==null||W.dispatchEvent(new Event("input"));let ve=(j=L.current)==null?void 0:j.selectionStart,R=(ue=L.current)==null?void 0:ue.selectionEnd,we=(ge=L.current)==null?void 0:ge.selectionDirection;ve!==null&&R!==null&&(ee(ve),ne(R),A.current.prev=[ve,R,we])})},[O,M]),i.useEffect(()=>{B!==void 0&&O!==B&&B.length<s&&O.length===s&&(f==null||f(O))},[s,f,B,O]);let se=il({containerRef:P,inputRef:L,pushPasswordManagerStrategy:p,isFocused:M}),le=i.useCallback(W=>{let j=W.currentTarget.value.slice(0,s);if(j.length>0&&F&&!F.test(j)){W.preventDefault();return}typeof B=="string"&&j.length<B.length&&document.dispatchEvent(new Event("selectionchange")),K(j)},[s,K,B,F]),ae=i.useCallback(()=>{var W;if(L.current){let j=Math.min(L.current.value.length,s-1),ue=L.current.value.length;(W=L.current)==null||W.setSelectionRange(j,ue),ee(j),ne(ue)}Y(!0)},[s]),Me=i.useCallback(W=>{var j,ue;let ge=L.current;if(!h&&(!V.current.isIOS||!W.clipboardData||!ge))return;let ve=W.clipboardData.getData("text/plain"),R=h?h(ve):ve;W.preventDefault();let we=(j=L.current)==null?void 0:j.selectionStart,Pr=(ue=L.current)==null?void 0:ue.selectionEnd,Ae=(we!==Pr?O.slice(0,we)+R+O.slice(Pr):O.slice(0,we)+R+O.slice(we)).slice(0,s);if(Ae.length>0&&F&&!F.test(Ae))return;ge.value=Ae,K(Ae);let et=Math.min(Ae.length,s-1),$e=Ae.length;ge.setSelectionRange(et,$e),ee(et),ne($e)},[s,K,F,O]),de=i.useMemo(()=>({position:"relative",cursor:v.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[v.disabled]),Pe=i.useMemo(()=>({position:"absolute",inset:0,width:se.willPushPWMBadge?`calc(100% + ${se.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:se.willPushPWMBadge?`inset(0 ${se.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:c,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[se.PWM_BADGE_SPACE_WIDTH,se.willPushPWMBadge,c]),G=i.useMemo(()=>i.createElement("input",el(Rc({autoComplete:v.autoComplete||"one-time-code"},v),{"data-input-otp":!0,"data-input-otp-placeholder-shown":O.length===0||void 0,"data-input-otp-mss":Q,"data-input-otp-mse":te,inputMode:d,pattern:F==null?void 0:F.source,"aria-placeholder":u,style:Pe,maxLength:s,value:O,ref:L,onPaste:W=>{var j;Me(W),(j=v.onPaste)==null||j.call(v,W)},onChange:le,onMouseOver:W=>{var j;D(!0),(j=v.onMouseOver)==null||j.call(v,W)},onMouseLeave:W=>{var j;D(!1),(j=v.onMouseLeave)==null||j.call(v,W)},onFocus:W=>{var j;ae(),(j=v.onFocus)==null||j.call(v,W)},onBlur:W=>{var j;Y(!1),(j=v.onBlur)==null||j.call(v,W)}})),[le,ae,Me,d,Pe,s,te,Q,v,F==null?void 0:F.source,O]),J=i.useMemo(()=>({slots:Array.from({length:s}).map((W,j)=>{var ue;let ge=M&&Q!==null&&te!==null&&(Q===te&&j===Q||j>=Q&&j<te),ve=O[j]!==void 0?O[j]:null,R=O[0]!==void 0?null:(ue=u==null?void 0:u[j])!=null?ue:null;return{char:ve,placeholderChar:R,isActive:ge,hasFakeCaret:ge&&ve===null}}),isFocused:M,isHovering:!v.disabled&&X}),[M,X,s,te,Q,v.disabled,O]),he=i.useMemo(()=>g?g(J):i.createElement(Eo.Provider,{value:J},w),[w,J,g]);return i.createElement(i.Fragment,null,b!==null&&i.createElement("noscript",null,i.createElement("style",null,b)),i.createElement("div",{ref:P,"data-input-otp-container":!0,style:de,className:m},he,i.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},G)))});To.displayName="Input";function xt(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var cl=`
1
+ (function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("react/jsx-runtime"),require("react"),require("react-dom"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom","react-router-dom"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.randmarcomps={},e.jsxRuntime,e.React,e.ReactDOM,e["react-router-dom"]))})(this,function(exports,jsxRuntime,React,ReactDOM,reactRouterDom){"use strict";function _interopNamespaceDefault(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const React__namespace=_interopNamespaceDefault(React),ReactDOM__namespace=_interopNamespaceDefault(ReactDOM);var Bt=Object.defineProperty,At=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Y=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,vt=(e,t,n)=>t in e?Bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,St=(e,t)=>{for(var n in t||(t={}))gt.call(t,n)&&vt(e,n,t[n]);if(Y)for(var n of Y(t))Et.call(t,n)&&vt(e,n,t[n]);return e},bt=(e,t)=>At(e,kt(t)),Pt=(e,t)=>{var n={};for(var i in e)gt.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Y)for(var i of Y(e))t.indexOf(i)<0&&Et.call(e,i)&&(n[i]=e[i]);return n};function ht(e){let t=setTimeout(e,0),n=setTimeout(e,10),i=setTimeout(e,50);return[t,n,i]}function _t(e){let t=React__namespace.useRef();return React__namespace.useEffect(()=>{t.current=e}),t.current}var Ot=18,wt=40,Gt=`${wt}px`,xt=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function Tt({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:i}){let[o,l]=React__namespace.useState(!1),[u,f]=React__namespace.useState(!1),[p,d]=React__namespace.useState(!1),m=React__namespace.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&u,[o,u,n]),g=React__namespace.useCallback(()=>{let _=e.current,S=t.current;if(!_||!S||p||n==="none")return;let E=_,R=E.getBoundingClientRect().left+E.offsetWidth,b=E.getBoundingClientRect().top+E.offsetHeight/2,A=R-Ot,C=b;document.querySelectorAll(xt).length===0&&document.elementFromPoint(A,C)===_||(l(!0),d(!0))},[e,t,p,n]);return React__namespace.useEffect(()=>{let _=e.current;if(!_||n==="none")return;function S(){let R=window.innerWidth-_.getBoundingClientRect().right;f(R>=wt)}S();let E=setInterval(S,1e3);return()=>{clearInterval(E)}},[e,n]),React__namespace.useEffect(()=>{let _=i||document.activeElement===t.current;if(n==="none"||!_)return;let S=setTimeout(g,0),E=setTimeout(g,2e3),R=setTimeout(g,5e3),b=setTimeout(()=>{d(!0)},6e3);return()=>{clearTimeout(S),clearTimeout(E),clearTimeout(R),clearTimeout(b)}},[t,i,n,g]),{hasPWMBadge:o,willPushPWMBadge:m,PWM_BADGE_SPACE_WIDTH:Gt}}var jt=React__namespace.createContext({}),Lt=React__namespace.forwardRef((e,t)=>{var n=e,{value:i,onChange:o,maxLength:l,textAlign:u="left",pattern:f,placeholder:p,inputMode:d="numeric",onComplete:m,pushPasswordManagerStrategy:g="increase-width",pasteTransformer:_,containerClassName:S,noScriptCSSFallback:E=Nt,render:R,children:b}=n,A=Pt(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),C,O,M,T,j;let[I,D]=React__namespace.useState(typeof A.defaultValue=="string"?A.defaultValue:""),L=i??I,F=_t(L),N=React__namespace.useCallback(J=>{o==null||o(J),D(J)},[o]),B=React__namespace.useMemo(()=>f?typeof f=="string"?new RegExp(f):f:null,[f]),z=React__namespace.useRef(null),V=React__namespace.useRef(null),W=React__namespace.useRef({value:L,onChange:N,isIOS:typeof window<"u"&&((O=(C=window==null?void 0:window.CSS)==null?void 0:C.supports)==null?void 0:O.call(C,"-webkit-touch-callout","none"))}),U=React__namespace.useRef({prev:[(M=z.current)==null?void 0:M.selectionStart,(T=z.current)==null?void 0:T.selectionEnd,(j=z.current)==null?void 0:j.selectionDirection]});React__namespace.useImperativeHandle(t,()=>z.current,[]),React__namespace.useEffect(()=>{let J=z.current,fe=V.current;if(!J||!fe)return;W.current.value!==J.value&&W.current.onChange(J.value),U.current.prev=[J.selectionStart,J.selectionEnd,J.selectionDirection];function de(){if(document.activeElement!==J){ee(null),ie(null);return}let he=J.selectionStart,ge=J.selectionEnd,Se=J.selectionDirection,ve=J.maxLength,_e=J.value,xe=U.current.prev,be=-1,Pe=-1,we;if(_e.length!==0&&he!==null&&ge!==null){let Oe=he===ge,$e=he===_e.length&&_e.length<ve;if(Oe&&!$e){let Ae=he;if(Ae===0)be=0,Pe=1,we="forward";else if(Ae===ve)be=Ae-1,Pe=Ae,we="backward";else if(ve>1&&_e.length>1){let Te=0;if(xe[0]!==null&&xe[1]!==null){we=Ae<xe[1]?"backward":"forward";let Me=xe[0]===xe[1]&&xe[0]<ve;we==="backward"&&!Me&&(Te=-1)}be=Te+Ae,Pe=Te+Ae+1}}be!==-1&&Pe!==-1&&be!==Pe&&z.current.setSelectionRange(be,Pe,we)}let Ee=be!==-1?be:he,Re=Pe!==-1?Pe:ge,Ce=we??Se;ee(Ee),ie(Re),U.current.prev=[Ee,Re,Ce]}if(document.addEventListener("selectionchange",de,{capture:!0}),de(),document.activeElement===J&&H(!0),!document.getElementById("input-otp-style")){let he=document.createElement("style");if(he.id="input-otp-style",document.head.appendChild(he),he.sheet){let ge="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";$(he.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),$(he.sheet,`[data-input-otp]:autofill { ${ge} }`),$(he.sheet,`[data-input-otp]:-webkit-autofill { ${ge} }`),$(he.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),$(he.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let me=()=>{fe&&fe.style.setProperty("--root-height",`${J.clientHeight}px`)};me();let ye=new ResizeObserver(me);return ye.observe(J),()=>{document.removeEventListener("selectionchange",de,{capture:!0}),ye.disconnect()}},[]);let[Q,q]=React__namespace.useState(!1),[G,H]=React__namespace.useState(!1),[Z,ee]=React__namespace.useState(null),[ne,ie]=React__namespace.useState(null);React__namespace.useEffect(()=>{ht(()=>{var J,fe,de,me;(J=z.current)==null||J.dispatchEvent(new Event("input"));let ye=(fe=z.current)==null?void 0:fe.selectionStart,he=(de=z.current)==null?void 0:de.selectionEnd,ge=(me=z.current)==null?void 0:me.selectionDirection;ye!==null&&he!==null&&(ee(ye),ie(he),U.current.prev=[ye,he,ge])})},[L,G]),React__namespace.useEffect(()=>{F!==void 0&&L!==F&&F.length<l&&L.length===l&&(m==null||m(L))},[l,m,F,L]);let oe=Tt({containerRef:V,inputRef:z,pushPasswordManagerStrategy:g,isFocused:G}),ce=React__namespace.useCallback(J=>{let fe=J.currentTarget.value.slice(0,l);if(fe.length>0&&B&&!B.test(fe)){J.preventDefault();return}typeof F=="string"&&fe.length<F.length&&document.dispatchEvent(new Event("selectionchange")),N(fe)},[l,N,F,B]),le=React__namespace.useCallback(()=>{var J;if(z.current){let fe=Math.min(z.current.value.length,l-1),de=z.current.value.length;(J=z.current)==null||J.setSelectionRange(fe,de),ee(fe),ie(de)}H(!0)},[l]),ue=React__namespace.useCallback(J=>{var fe,de;let me=z.current;if(!_&&(!W.current.isIOS||!J.clipboardData||!me))return;let ye=J.clipboardData.getData("text/plain"),he=_?_(ye):ye;J.preventDefault();let ge=(fe=z.current)==null?void 0:fe.selectionStart,Se=(de=z.current)==null?void 0:de.selectionEnd,ve=(ge!==Se?L.slice(0,ge)+he+L.slice(Se):L.slice(0,ge)+he+L.slice(ge)).slice(0,l);if(ve.length>0&&B&&!B.test(ve))return;me.value=ve,N(ve);let _e=Math.min(ve.length,l-1),xe=ve.length;me.setSelectionRange(_e,xe),ee(_e),ie(xe)},[l,N,B,L]),te=React__namespace.useMemo(()=>({position:"relative",cursor:A.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[A.disabled]),se=React__namespace.useMemo(()=>({position:"absolute",inset:0,width:oe.willPushPWMBadge?`calc(100% + ${oe.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:oe.willPushPWMBadge?`inset(0 ${oe.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:u,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[oe.PWM_BADGE_SPACE_WIDTH,oe.willPushPWMBadge,u]),ae=React__namespace.useMemo(()=>React__namespace.createElement("input",bt(St({autoComplete:A.autoComplete||"one-time-code"},A),{"data-input-otp":!0,"data-input-otp-placeholder-shown":L.length===0||void 0,"data-input-otp-mss":Z,"data-input-otp-mse":ne,inputMode:d,pattern:B==null?void 0:B.source,"aria-placeholder":p,style:se,maxLength:l,value:L,ref:z,onPaste:J=>{var fe;ue(J),(fe=A.onPaste)==null||fe.call(A,J)},onChange:ce,onMouseOver:J=>{var fe;q(!0),(fe=A.onMouseOver)==null||fe.call(A,J)},onMouseLeave:J=>{var fe;q(!1),(fe=A.onMouseLeave)==null||fe.call(A,J)},onFocus:J=>{var fe;le(),(fe=A.onFocus)==null||fe.call(A,J)},onBlur:J=>{var fe;H(!1),(fe=A.onBlur)==null||fe.call(A,J)}})),[ce,le,ue,d,se,l,ne,Z,A,B==null?void 0:B.source,L]),K=React__namespace.useMemo(()=>({slots:Array.from({length:l}).map((J,fe)=>{var de;let me=G&&Z!==null&&ne!==null&&(Z===ne&&fe===Z||fe>=Z&&fe<ne),ye=L[fe]!==void 0?L[fe]:null,he=L[0]!==void 0?null:(de=p==null?void 0:p[fe])!=null?de:null;return{char:ye,placeholderChar:he,isActive:me,hasFakeCaret:me&&ye===null}}),isFocused:G,isHovering:!A.disabled&&Q}),[G,Q,l,ne,Z,A.disabled,L]),pe=React__namespace.useMemo(()=>R?R(K):React__namespace.createElement(jt.Provider,{value:K},b),[b,K,R]);return React__namespace.createElement(React__namespace.Fragment,null,E!==null&&React__namespace.createElement("noscript",null,React__namespace.createElement("style",null,E)),React__namespace.createElement("div",{ref:V,"data-input-otp-container":!0,style:te,className:S},pe,React__namespace.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ae)))});Lt.displayName="Input";function $(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var Nt=`
2
2
  [data-input-otp] {
3
3
  --nojs-bg: white !important;
4
4
  --nojs-fg: black !important;
@@ -22,175 +22,537 @@
22
22
  *
23
23
  * This source code is licensed under the ISC license.
24
24
  * See the LICENSE file in the root directory of this source tree.
25
- */const ll=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Mo=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
25
+ */const toKebabCase=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mergeClasses=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();/**
26
26
  * @license lucide-react v0.479.0 - ISC
27
27
  *
28
28
  * This source code is licensed under the ISC license.
29
29
  * See the LICENSE file in the root directory of this source tree.
30
- */var dl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
30
+ */var defaultAttributes={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
31
31
  * @license lucide-react v0.479.0 - ISC
32
32
  *
33
33
  * This source code is licensed under the ISC license.
34
34
  * See the LICENSE file in the root directory of this source tree.
35
- */const ul=H.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:s,iconNode:c,...l},u)=>H.createElement("svg",{ref:u,...dl,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Mo("lucide",a),...l},[...c.map(([d,f])=>H.createElement(d,f)),...Array.isArray(s)?s:[s]]));/**
35
+ */const Icon=React.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:o="",children:l,iconNode:u,...f},p)=>React.createElement("svg",{ref:p,...defaultAttributes,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:mergeClasses("lucide",o),...f},[...u.map(([d,m])=>React.createElement(d,m)),...Array.isArray(l)?l:[l]]));/**
36
36
  * @license lucide-react v0.479.0 - ISC
37
37
  *
38
38
  * This source code is licensed under the ISC license.
39
39
  * See the LICENSE file in the root directory of this source tree.
40
- */const re=(e,t)=>{const r=H.forwardRef(({className:n,...a},s)=>H.createElement(ul,{ref:s,iconNode:t,className:Mo(`lucide-${ll(e)}`,n),...a}));return r.displayName=`${e}`,r};/**
40
+ */const createLucideIcon=(e,t)=>{const n=React.forwardRef(({className:i,...o},l)=>React.createElement(Icon,{ref:l,iconNode:t,className:mergeClasses(`lucide-${toKebabCase(e)}`,i),...o}));return n.displayName=`${e}`,n};/**
41
41
  * @license lucide-react v0.479.0 - ISC
42
42
  *
43
43
  * This source code is licensed under the ISC license.
44
44
  * See the LICENSE file in the root directory of this source tree.
45
- */const Dr=re("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
45
+ */const __iconNode$l=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Check=createLucideIcon("Check",__iconNode$l);/**
46
46
  * @license lucide-react v0.479.0 - ISC
47
47
  *
48
48
  * This source code is licensed under the ISC license.
49
49
  * See the LICENSE file in the root directory of this source tree.
50
- */const fl=re("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
50
+ */const __iconNode$k=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ChevronRight=createLucideIcon("ChevronRight",__iconNode$k);/**
51
51
  * @license lucide-react v0.479.0 - ISC
52
52
  *
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
- */const pl=re("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
55
+ */const __iconNode$j=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],CircleDashed=createLucideIcon("CircleDashed",__iconNode$j);/**
56
56
  * @license lucide-react v0.479.0 - ISC
57
57
  *
58
58
  * This source code is licensed under the ISC license.
59
59
  * See the LICENSE file in the root directory of this source tree.
60
- */const hl=re("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
60
+ */const __iconNode$i=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Circle=createLucideIcon("Circle",__iconNode$i);/**
61
61
  * @license lucide-react v0.479.0 - ISC
62
62
  *
63
63
  * This source code is licensed under the ISC license.
64
64
  * See the LICENSE file in the root directory of this source tree.
65
- */const gl=re("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
65
+ */const __iconNode$h=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Copy=createLucideIcon("Copy",__iconNode$h);/**
66
66
  * @license lucide-react v0.479.0 - ISC
67
67
  *
68
68
  * This source code is licensed under the ISC license.
69
69
  * See the LICENSE file in the root directory of this source tree.
70
- */const vl=re("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
70
+ */const __iconNode$g=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],Download=createLucideIcon("Download",__iconNode$g);/**
71
71
  * @license lucide-react v0.479.0 - ISC
72
72
  *
73
73
  * This source code is licensed under the ISC license.
74
74
  * See the LICENSE file in the root directory of this source tree.
75
- */const ml=re("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
75
+ */const __iconNode$f=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Eye=createLucideIcon("Eye",__iconNode$f);/**
76
76
  * @license lucide-react v0.479.0 - ISC
77
77
  *
78
78
  * This source code is licensed under the ISC license.
79
79
  * See the LICENSE file in the root directory of this source tree.
80
- */const Po=re("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
80
+ */const __iconNode$e=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],LoaderCircle=createLucideIcon("LoaderCircle",__iconNode$e);/**
81
81
  * @license lucide-react v0.479.0 - ISC
82
82
  *
83
83
  * This source code is licensed under the ISC license.
84
84
  * See the LICENSE file in the root directory of this source tree.
85
- */const bl=re("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
85
+ */const __iconNode$d=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],LogOut=createLucideIcon("LogOut",__iconNode$d);/**
86
86
  * @license lucide-react v0.479.0 - ISC
87
87
  *
88
88
  * This source code is licensed under the ISC license.
89
89
  * See the LICENSE file in the root directory of this source tree.
90
- */const wl=re("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
90
+ */const __iconNode$c=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],Menu$1=createLucideIcon("Menu",__iconNode$c);/**
91
91
  * @license lucide-react v0.479.0 - ISC
92
92
  *
93
93
  * This source code is licensed under the ISC license.
94
94
  * See the LICENSE file in the root directory of this source tree.
95
- */const yl=re("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
95
+ */const __iconNode$b=[["path",{d:"M5 12h14",key:"1ays0h"}]],Minus=createLucideIcon("Minus",__iconNode$b);/**
96
96
  * @license lucide-react v0.479.0 - ISC
97
97
  *
98
98
  * This source code is licensed under the ISC license.
99
99
  * See the LICENSE file in the root directory of this source tree.
100
- */const xl=re("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
100
+ */const __iconNode$a=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],PanelLeft=createLucideIcon("PanelLeft",__iconNode$a);/**
101
101
  * @license lucide-react v0.479.0 - ISC
102
102
  *
103
103
  * This source code is licensed under the ISC license.
104
104
  * See the LICENSE file in the root directory of this source tree.
105
- */const Nl=re("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
105
+ */const __iconNode$9=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Play=createLucideIcon("Play",__iconNode$9);/**
106
106
  * @license lucide-react v0.479.0 - ISC
107
107
  *
108
108
  * This source code is licensed under the ISC license.
109
109
  * See the LICENSE file in the root directory of this source tree.
110
- */const Cl=re("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/**
110
+ */const __iconNode$8=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],QrCode=createLucideIcon("QrCode",__iconNode$8);/**
111
111
  * @license lucide-react v0.479.0 - ISC
112
112
  *
113
113
  * This source code is licensed under the ISC license.
114
114
  * See the LICENSE file in the root directory of this source tree.
115
- */const Sl=re("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
115
+ */const __iconNode$7=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],RefreshCw=createLucideIcon("RefreshCw",__iconNode$7);/**
116
116
  * @license lucide-react v0.479.0 - ISC
117
117
  *
118
118
  * This source code is licensed under the ISC license.
119
119
  * See the LICENSE file in the root directory of this source tree.
120
- */const El=re("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
120
+ */const __iconNode$6=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Search=createLucideIcon("Search",__iconNode$6);/**
121
121
  * @license lucide-react v0.479.0 - ISC
122
122
  *
123
123
  * This source code is licensed under the ISC license.
124
124
  * See the LICENSE file in the root directory of this source tree.
125
- */const Ao=re("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
125
+ */const __iconNode$5=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ShieldCheck=createLucideIcon("ShieldCheck",__iconNode$5);/**
126
126
  * @license lucide-react v0.479.0 - ISC
127
127
  *
128
128
  * This source code is licensed under the ISC license.
129
129
  * See the LICENSE file in the root directory of this source tree.
130
- */const _o=re("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
130
+ */const __iconNode$4=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],ShoppingCart=createLucideIcon("ShoppingCart",__iconNode$4);/**
131
131
  * @license lucide-react v0.479.0 - ISC
132
132
  *
133
133
  * This source code is licensed under the ISC license.
134
134
  * See the LICENSE file in the root directory of this source tree.
135
- */const Tl=re("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/**
135
+ */const __iconNode$3=[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]],Store=createLucideIcon("Store",__iconNode$3);/**
136
136
  * @license lucide-react v0.479.0 - ISC
137
137
  *
138
138
  * This source code is licensed under the ISC license.
139
139
  * See the LICENSE file in the root directory of this source tree.
140
- */const Ml=re("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
140
+ */const __iconNode$2=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],TriangleAlert=createLucideIcon("TriangleAlert",__iconNode$2);/**
141
141
  * @license lucide-react v0.479.0 - ISC
142
142
  *
143
143
  * This source code is licensed under the ISC license.
144
144
  * See the LICENSE file in the root directory of this source tree.
145
- */const Do=re("Warehouse",[["path",{d:"M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z",key:"gksnxg"}],["path",{d:"M6 18h12",key:"9pbo8z"}],["path",{d:"M6 14h12",key:"4cwo0f"}],["rect",{width:"12",height:"12",x:"6",y:"10",key:"apd30q"}]]);/**
145
+ */const __iconNode$1=[["path",{d:"M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z",key:"gksnxg"}],["path",{d:"M6 18h12",key:"9pbo8z"}],["path",{d:"M6 14h12",key:"4cwo0f"}],["rect",{width:"12",height:"12",x:"6",y:"10",key:"apd30q"}]],Warehouse=createLucideIcon("Warehouse",__iconNode$1);/**
146
146
  * @license lucide-react v0.479.0 - ISC
147
147
  *
148
148
  * This source code is licensed under the ISC license.
149
149
  * See the LICENSE file in the root directory of this source tree.
150
- */const Ir=re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Io(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Io(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ko(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Io(e))&&(n&&(n+=" "),n+=t);return n}const kr="-",Pl=e=>{const t=_l(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:c=>{const l=c.split(kr);return l[0]===""&&l.length!==1&&l.shift(),Oo(l,t)||Al(c)},getConflictingClassGroupIds:(c,l)=>{const u=r[c]||[];return l&&n[c]?[...u,...n[c]]:u}}},Oo=(e,t)=>{var c;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?Oo(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const s=e.join(kr);return(c=t.validators.find(({validator:l})=>l(s)))==null?void 0:c.classGroupId},Lo=/^\[(.+)\]$/,Al=e=>{if(Lo.test(e)){const t=Lo.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},_l=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const a in r)Or(r[a],n,a,t);return n},Or=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:Fo(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(Dl(a)){Or(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,c])=>{Or(c,Fo(t,s),r,n)})})},Fo=(e,t)=>{let r=e;return t.split(kr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Dl=e=>e.isThemeGetter,Il=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(s,c)=>{r.set(s,c),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=n.get(s))!==void 0)return a(s,c),c},set(s,c){r.has(s)?r.set(s,c):a(s,c)}}},Lr="!",Fr=":",kl=Fr.length,Ol=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=a=>{const s=[];let c=0,l=0,u=0,d;for(let b=0;b<a.length;b++){let g=a[b];if(c===0&&l===0){if(g===Fr){s.push(a.slice(u,b)),u=b+kl;continue}if(g==="/"){d=b;continue}}g==="["?c++:g==="]"?c--:g==="("?l++:g===")"&&l--}const f=s.length===0?a:a.substring(u),p=Ll(f),h=p!==f,m=d&&d>u?d-u:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:m}};if(t){const a=t+Fr,s=n;n=c=>c.startsWith(a)?s(c.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(r){const a=n;n=s=>r({className:s,parseClassName:a})}return n},Ll=e=>e.endsWith(Lr)?e.substring(0,e.length-1):e.startsWith(Lr)?e.substring(1):e,Fl=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const a=[];let s=[];return n.forEach(c=>{c[0]==="["||t[c]?(a.push(...s.sort(),c),s=[]):s.push(c)}),a.push(...s.sort()),a}},$l=e=>({cache:Il(e.cacheSize),parseClassName:Ol(e),sortModifiers:Fl(e),...Pl(e)}),zl=/\s+/,Bl=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:s}=t,c=[],l=e.trim().split(zl);let u="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{isExternal:p,modifiers:h,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:g}=r(f);if(p){u=f+(u.length>0?" "+u:u);continue}let w=!!g,v=n(w?b.substring(0,g):b);if(!v){if(!w){u=f+(u.length>0?" "+u:u);continue}if(v=n(b),!v){u=f+(u.length>0?" "+u:u);continue}w=!1}const y=s(h).join(":"),x=m?y+Lr:y,N=x+v;if(c.includes(N))continue;c.push(N);const E=a(v,w);for(let C=0;C<E.length;++C){const T=E[C];c.push(x+T)}u=f+(u.length>0?" "+u:u)}return u};function Wl(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=$o(t))&&(n&&(n+=" "),n+=r);return n}const $o=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=$o(e[n]))&&(r&&(r+=" "),r+=t);return r};function Vl(e,...t){let r,n,a,s=c;function c(u){const d=t.reduce((f,p)=>p(f),e());return r=$l(d),n=r.cache.get,a=r.cache.set,s=l,l(u)}function l(u){const d=n(u);if(d)return d;const f=Bl(u,r);return a(u,f),f}return function(){return s(Wl.apply(null,arguments))}}const ie=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},zo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Bo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Gl=/^\d+\/\d+$/,Ul=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jl=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Hl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Kl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,nt=e=>Gl.test(e),q=e=>!!e&&!Number.isNaN(Number(e)),qe=e=>!!e&&Number.isInteger(Number(e)),Wo=e=>e.endsWith("%")&&q(e.slice(0,-1)),ze=e=>Ul.test(e),ql=()=>!0,Xl=e=>jl.test(e)&&!Hl.test(e),$r=()=>!1,Ql=e=>Kl.test(e),Zl=e=>Yl.test(e),Jl=e=>!I(e)&&!k(e),Rl=e=>ot(e,Uo,$r),I=e=>zo.test(e),Xe=e=>ot(e,jo,Xl),zr=e=>ot(e,dd,q),ed=e=>ot(e,Vo,$r),td=e=>ot(e,Go,Zl),rd=e=>ot(e,$r,Ql),k=e=>Bo.test(e),Wt=e=>at(e,jo),nd=e=>at(e,ud),od=e=>at(e,Vo),ad=e=>at(e,Uo),sd=e=>at(e,Go),id=e=>at(e,fd,!0),ot=(e,t,r)=>{const n=zo.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},at=(e,t,r=!1)=>{const n=Bo.exec(e);return n?n[1]?t(n[1]):r:!1},Vo=e=>e==="position",cd=new Set(["image","url"]),Go=e=>cd.has(e),ld=new Set(["length","size","percentage"]),Uo=e=>ld.has(e),jo=e=>e==="length",dd=e=>e==="number",ud=e=>e==="family-name",fd=e=>e==="shadow",pd=Vl(()=>{const e=ie("color"),t=ie("font"),r=ie("text"),n=ie("font-weight"),a=ie("tracking"),s=ie("leading"),c=ie("breakpoint"),l=ie("container"),u=ie("spacing"),d=ie("radius"),f=ie("shadow"),p=ie("inset-shadow"),h=ie("drop-shadow"),m=ie("blur"),b=ie("perspective"),g=ie("aspect"),w=ie("ease"),v=ie("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],N=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],C=()=>[k,I,u],T=()=>[nt,"full","auto",...C()],$=()=>[qe,"none","subgrid",k,I],O=()=>["auto",{span:["full",qe,k,I]},k,I],B=()=>[qe,"auto",k,I],K=()=>["auto","min","max","fr",k,I],F=()=>["start","end","center","between","around","evenly","stretch","baseline"],L=()=>["start","end","center","stretch"],P=()=>["auto",...C()],V=()=>[nt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],A=()=>[e,k,I],X=()=>[Wo,Xe],D=()=>["","none","full",d,k,I],M=()=>["",q,Wt,Xe],Y=()=>["solid","dashed","dotted","double"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>["","none",m,k,I],te=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",k,I],ne=()=>["none",q,k,I],se=()=>["none",q,k,I],le=()=>[q,k,I],ae=()=>[nt,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ze],breakpoint:[ze],color:[ql],container:[ze],"drop-shadow":[ze],ease:["in","out","in-out"],font:[Jl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ze],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ze],shadow:[ze],spacing:["px",q],text:[ze],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",nt,I,k,g]}],container:["container"],columns:[{columns:[q,I,k,l]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...x(),I,k]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[qe,"auto",k,I]}],basis:[{basis:[nt,"full","auto",l,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[q,nt,"auto","initial","none",I]}],grow:[{grow:["",q,k,I]}],shrink:[{shrink:["",q,k,I]}],order:[{order:[qe,"first","last","none",k,I]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...L(),"baseline"]}],"align-self":[{self:["auto",...L(),"baseline"]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[l,"screen",...V()]}],"min-w":[{"min-w":[l,"screen","none",...V()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[c]},...V()]}],h:[{h:["screen",...V()]}],"min-h":[{"min-h":["screen","none",...V()]}],"max-h":[{"max-h":["screen",...V()]}],"font-size":[{text:["base",r,Wt,Xe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,k,zr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Wo,I]}],"font-family":[{font:[nd,I,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,k,I]}],"line-clamp":[{"line-clamp":[q,"none",k,zr]}],leading:[{leading:[s,...C()]}],"list-image":[{"list-image":["none",k,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[q,"from-font","auto",k,Xe]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[q,"auto",k,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...x(),od,ed]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",ad,Rl]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qe,k,I],radial:["",k,I],conic:[qe,k,I]},sd,td]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[q,k,I]}],"outline-w":[{outline:["",q,Wt,Xe]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",f,id,rd]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",k,I,p]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[q,Xe]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":A()}],opacity:[{opacity:[q,k,I]}],"mix-blend":[{"mix-blend":[...Q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none",k,I]}],blur:[{blur:ee()}],brightness:[{brightness:[q,k,I]}],contrast:[{contrast:[q,k,I]}],"drop-shadow":[{"drop-shadow":["","none",h,k,I]}],grayscale:[{grayscale:["",q,k,I]}],"hue-rotate":[{"hue-rotate":[q,k,I]}],invert:[{invert:["",q,k,I]}],saturate:[{saturate:[q,k,I]}],sepia:[{sepia:["",q,k,I]}],"backdrop-filter":[{"backdrop-filter":["","none",k,I]}],"backdrop-blur":[{"backdrop-blur":ee()}],"backdrop-brightness":[{"backdrop-brightness":[q,k,I]}],"backdrop-contrast":[{"backdrop-contrast":[q,k,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",q,k,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[q,k,I]}],"backdrop-invert":[{"backdrop-invert":["",q,k,I]}],"backdrop-opacity":[{"backdrop-opacity":[q,k,I]}],"backdrop-saturate":[{"backdrop-saturate":[q,k,I]}],"backdrop-sepia":[{"backdrop-sepia":["",q,k,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[q,"initial",k,I]}],ease:[{ease:["linear","initial",w,k,I]}],delay:[{delay:[q,k,I]}],animate:[{animate:["none",v,k,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,k,I]}],"perspective-origin":[{"perspective-origin":te()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[k,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:te()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ae()}],"translate-x":[{"translate-x":ae()}],"translate-y":[{"translate-y":ae()}],"translate-z":[{"translate-z":ae()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",k,I]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",k,I]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[q,Wt,Xe,zr]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}});function _(...e){return pd(ko(e))}function hd({className:e,containerClassName:t,...r}){return o.jsx(To,{"data-slot":"input-otp",containerClassName:_("flex items-center gap-2 has-disabled:opacity-50",t),className:_("disabled:cursor-not-allowed",e),...r})}function gd({className:e,...t}){return o.jsx("div",{"data-slot":"input-otp-group",className:_("flex items-center",e),...t})}function vd({index:e,className:t,...r}){const n=i.useContext(Eo),{char:a,hasFakeCaret:s,isActive:c}=(n==null?void 0:n.slots[e])??{};return o.jsxs("div",{"data-slot":"input-otp-slot","data-active":c,className:_("border-input data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",t),...r,children:[a,s&&o.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:o.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function md({...e}){return o.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:o.jsx(yl,{})})}function z(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Ho(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Vt(...e){return t=>{let r=!1;const n=e.map(a=>{const s=Ho(a,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let a=0;a<n.length;a++){const s=n[a];typeof s=="function"?s():Ho(e[a],null)}}}}function oe(...e){return i.useCallback(Vt(...e),e)}function bd(e,t){const r=i.createContext(t),n=s=>{const{children:c,...l}=s,u=i.useMemo(()=>l,Object.values(l));return o.jsx(r.Provider,{value:u,children:c})};n.displayName=e+"Provider";function a(s){const c=i.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[n,a]}function Be(e,t=[]){let r=[];function n(s,c){const l=i.createContext(c),u=r.length;r=[...r,c];const d=p=>{var v;const{scope:h,children:m,...b}=p,g=((v=h==null?void 0:h[e])==null?void 0:v[u])||l,w=i.useMemo(()=>b,Object.values(b));return o.jsx(g.Provider,{value:w,children:m})};d.displayName=s+"Provider";function f(p,h){var g;const m=((g=h==null?void 0:h[e])==null?void 0:g[u])||l,b=i.useContext(m);if(b)return b;if(c!==void 0)return c;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[d,f]}const a=()=>{const s=r.map(c=>i.createContext(c));return function(l){const u=(l==null?void 0:l[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return a.scopeName=e,[n,wd(a,...t)]}function wd(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(s){const c=n.reduce((l,{useScope:u,scopeName:d})=>{const p=u(s)[`__scope${d}`];return{...l,...p}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var We=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},yd=i.useId||(()=>{}),xd=0;function Oe(e){const[t,r]=i.useState(yd());return We(()=>{r(n=>n??String(xd++))},[e]),t?`radix-${t}`:""}function fe(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function st({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,a]=Nd({defaultProp:t,onChange:r}),s=e!==void 0,c=s?e:n,l=fe(r),u=i.useCallback(d=>{if(s){const p=typeof d=="function"?d(e):d;p!==e&&l(p)}else a(d)},[s,e,a,l]);return[c,u]}function Nd({defaultProp:e,onChange:t}){const r=i.useState(e),[n]=r,a=i.useRef(n),s=fe(t);return i.useEffect(()=>{a.current!==n&&(s(n),a.current=n)},[n,a,s]),r}var ye=i.forwardRef((e,t)=>{const{children:r,...n}=e,a=i.Children.toArray(r),s=a.find(Cd);if(s){const c=s.props.children,l=a.map(u=>u===s?i.Children.count(c)>1?i.Children.only(null):i.isValidElement(c)?c.props.children:null:u);return o.jsx(Br,{...n,ref:t,children:i.isValidElement(c)?i.cloneElement(c,void 0,l):null})}return o.jsx(Br,{...n,ref:t,children:r})});ye.displayName="Slot";var Br=i.forwardRef((e,t)=>{const{children:r,...n}=e;if(i.isValidElement(r)){const a=Ed(r),s=Sd(n,r.props);return r.type!==i.Fragment&&(s.ref=t?Vt(t,a):a),i.cloneElement(r,s)}return i.Children.count(r)>1?i.Children.only(null):null});Br.displayName="SlotClone";var Ko=({children:e})=>o.jsx(o.Fragment,{children:e});function Cd(e){return i.isValidElement(e)&&e.type===Ko}function Sd(e,t){const r={...t};for(const n in t){const a=e[n],s=t[n];/^on[A-Z]/.test(n)?a&&s?r[n]=(...l)=>{s(...l),a(...l)}:a&&(r[n]=a):n==="style"?r[n]={...a,...s}:n==="className"&&(r[n]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}function Ed(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Td=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Z=Td.reduce((e,t)=>{const r=i.forwardRef((n,a)=>{const{asChild:s,...c}=n,l=s?ye:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),o.jsx(l,{...c,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Wr(e,t){e&&_r.flushSync(()=>e.dispatchEvent(t))}function Md(e,t=globalThis==null?void 0:globalThis.document){const r=fe(e);i.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Pd="DismissableLayer",Vr="dismissableLayer.update",Ad="dismissableLayer.pointerDownOutside",_d="dismissableLayer.focusOutside",Yo,qo=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nt=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...u}=e,d=i.useContext(qo),[f,p]=i.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=i.useState({}),b=oe(t,T=>p(T)),g=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(w),y=f?g.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,N=y>=v,E=Id(T=>{const $=T.target,O=[...d.branches].some(B=>B.contains($));!N||O||(a==null||a(T),c==null||c(T),T.defaultPrevented||l==null||l())},h),C=kd(T=>{const $=T.target;[...d.branches].some(B=>B.contains($))||(s==null||s(T),c==null||c(T),T.defaultPrevented||l==null||l())},h);return Md(T=>{y===d.layers.size-1&&(n==null||n(T),!T.defaultPrevented&&l&&(T.preventDefault(),l()))},h),i.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Yo=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Qo(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Yo)}},[f,h,r,d]),i.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Qo())},[f,d]),i.useEffect(()=>{const T=()=>m({});return document.addEventListener(Vr,T),()=>document.removeEventListener(Vr,T)},[]),o.jsx(Z.div,{...u,ref:b,style:{pointerEvents:x?N?"auto":"none":void 0,...e.style},onFocusCapture:z(e.onFocusCapture,C.onFocusCapture),onBlurCapture:z(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:z(e.onPointerDownCapture,E.onPointerDownCapture)})});Nt.displayName=Pd;var Dd="DismissableLayerBranch",Xo=i.forwardRef((e,t)=>{const r=i.useContext(qo),n=i.useRef(null),a=oe(t,n);return i.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),o.jsx(Z.div,{...e,ref:a})});Xo.displayName=Dd;function Id(e,t=globalThis==null?void 0:globalThis.document){const r=fe(e),n=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{const s=l=>{if(l.target&&!n.current){let u=function(){Zo(Ad,r,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=u,t.addEventListener("click",a.current,{once:!0})):u()}else t.removeEventListener("click",a.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function kd(e,t=globalThis==null?void 0:globalThis.document){const r=fe(e),n=i.useRef(!1);return i.useEffect(()=>{const a=s=>{s.target&&!n.current&&Zo(_d,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Qo(){const e=new CustomEvent(Vr);document.dispatchEvent(e)}function Zo(e,t,r,{discrete:n}){const a=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?Wr(a,s):a.dispatchEvent(s)}var Od=Nt,Ld=Xo,Gr="focusScope.autoFocusOnMount",Ur="focusScope.autoFocusOnUnmount",Jo={bubbles:!1,cancelable:!0},Fd="FocusScope",jr=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...c}=e,[l,u]=i.useState(null),d=fe(a),f=fe(s),p=i.useRef(null),h=oe(t,g=>u(g)),m=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let g=function(x){if(m.paused||!l)return;const N=x.target;l.contains(N)?p.current=N:Ve(p.current,{select:!0})},w=function(x){if(m.paused||!l)return;const N=x.relatedTarget;N!==null&&(l.contains(N)||Ve(p.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&Ve(l)};document.addEventListener("focusin",g),document.addEventListener("focusout",w);const y=new MutationObserver(v);return l&&y.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",w),y.disconnect()}}},[n,l,m.paused]),i.useEffect(()=>{if(l){ta.add(m);const g=document.activeElement;if(!l.contains(g)){const v=new CustomEvent(Gr,Jo);l.addEventListener(Gr,d),l.dispatchEvent(v),v.defaultPrevented||($d(Gd(Ro(l)),{select:!0}),document.activeElement===g&&Ve(l))}return()=>{l.removeEventListener(Gr,d),setTimeout(()=>{const v=new CustomEvent(Ur,Jo);l.addEventListener(Ur,f),l.dispatchEvent(v),v.defaultPrevented||Ve(g??document.body,{select:!0}),l.removeEventListener(Ur,f),ta.remove(m)},0)}}},[l,d,f,m]);const b=i.useCallback(g=>{if(!r&&!n||m.paused)return;const w=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,v=document.activeElement;if(w&&v){const y=g.currentTarget,[x,N]=zd(y);x&&N?!g.shiftKey&&v===N?(g.preventDefault(),r&&Ve(x,{select:!0})):g.shiftKey&&v===x&&(g.preventDefault(),r&&Ve(N,{select:!0})):v===y&&g.preventDefault()}},[r,n,m.paused]);return o.jsx(Z.div,{tabIndex:-1,...c,ref:h,onKeyDown:b})});jr.displayName=Fd;function $d(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ve(n,{select:t}),document.activeElement!==r)return}function zd(e){const t=Ro(e),r=ea(t,e),n=ea(t.reverse(),e);return[r,n]}function Ro(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ea(e,t){for(const r of e)if(!Bd(r,{upTo:t}))return r}function Bd(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Wd(e){return e instanceof HTMLInputElement&&"select"in e}function Ve(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Wd(e)&&t&&e.select()}}var ta=Vd();function Vd(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=ra(e,t),e.unshift(t)},remove(t){var r;e=ra(e,t),(r=e[0])==null||r.resume()}}}function ra(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Gd(e){return e.filter(t=>t.tagName!=="A")}var Ud="Portal",Ct=i.forwardRef((e,t)=>{var l;const{container:r,...n}=e,[a,s]=i.useState(!1);We(()=>s(!0),[]);const c=r||a&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return c?wo.createPortal(o.jsx(Z.div,{...n,ref:t}),c):null});Ct.displayName=Ud;function jd(e,t){return i.useReducer((r,n)=>t[r][n]??r,e)}var Ne=e=>{const{present:t,children:r}=e,n=Hd(t),a=typeof r=="function"?r({present:n.isPresent}):i.Children.only(r),s=oe(n.ref,Kd(a));return typeof r=="function"||n.isPresent?i.cloneElement(a,{ref:s}):null};Ne.displayName="Presence";function Hd(e){const[t,r]=i.useState(),n=i.useRef({}),a=i.useRef(e),s=i.useRef("none"),c=e?"mounted":"unmounted",[l,u]=jd(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=Gt(n.current);s.current=l==="mounted"?d:"none"},[l]),We(()=>{const d=n.current,f=a.current;if(f!==e){const h=s.current,m=Gt(d);e?u("MOUNT"):m==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(f&&h!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,u]),We(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=m=>{const g=Gt(n.current).includes(m.animationName);if(m.target===t&&g&&(u("ANIMATION_END"),!a.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=m=>{m.target===t&&(s.current=Gt(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:i.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function Gt(e){return(e==null?void 0:e.animationName)||"none"}function Kd(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Hr=0;function na(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oa()),document.body.insertAdjacentElement("beforeend",e[1]??oa()),Hr++,()=>{Hr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hr--}},[])}function oa(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var _e=function(){return _e=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},_e.apply(this,arguments)};function aa(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function Yd(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,s;n<a;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Ut="right-scroll-bar-position",jt="width-before-scroll-bar",qd="with-scroll-bars-hidden",Xd="--removed-body-scroll-bar-size";function Kr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Qd(e,t){var r=H.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var Zd=typeof window<"u"?i.useLayoutEffect:i.useEffect,sa=new WeakMap;function Jd(e,t){var r=Qd(null,function(n){return e.forEach(function(a){return Kr(a,n)})});return Zd(function(){var n=sa.get(r);if(n){var a=new Set(n),s=new Set(e),c=r.current;a.forEach(function(l){s.has(l)||Kr(l,null)}),s.forEach(function(l){a.has(l)||Kr(l,c)})}sa.set(r,e)},[e]),r}function Rd(e){return e}function eu(e,t){t===void 0&&(t=Rd);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var c=t(s,n);return r.push(c),function(){r=r.filter(function(l){return l!==c})}},assignSyncMedium:function(s){for(n=!0;r.length;){var c=r;r=[],c.forEach(s)}r={push:function(l){return s(l)},filter:function(){return r}}},assignMedium:function(s){n=!0;var c=[];if(r.length){var l=r;r=[],l.forEach(s),c=r}var u=function(){var f=c;c=[],f.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),r={push:function(f){c.push(f),d()},filter:function(f){return c=c.filter(f),r}}}};return a}function tu(e){e===void 0&&(e={});var t=eu(null);return t.options=_e({async:!0,ssr:!1},e),t}var ia=function(e){var t=e.sideCar,r=aa(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,_e({},r))};ia.isSideCarExport=!0;function ru(e,t){return e.useMedium(t),ia}var ca=tu(),Yr=function(){},Ht=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:Yr,onWheelCapture:Yr,onTouchMoveCapture:Yr}),a=n[0],s=n[1],c=e.forwardProps,l=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,m=e.noIsolation,b=e.inert,g=e.allowPinchZoom,w=e.as,v=w===void 0?"div":w,y=e.gapMode,x=aa(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=h,E=Jd([r,t]),C=_e(_e({},x),a);return i.createElement(i.Fragment,null,f&&i.createElement(N,{sideCar:ca,removeScrollBar:d,shards:p,noIsolation:m,inert:b,setCallbacks:s,allowPinchZoom:!!g,lockRef:r,gapMode:y}),c?i.cloneElement(i.Children.only(l),_e(_e({},C),{ref:E})):i.createElement(v,_e({},C,{className:u,ref:E}),l))});Ht.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ht.classNames={fullWidth:jt,zeroRight:Ut};var nu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ou(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=nu();return t&&e.setAttribute("nonce",t),e}function au(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function su(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var iu=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ou())&&(au(t,r),su(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},cu=function(){var e=iu();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},la=function(){var e=cu(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},lu={left:0,top:0,right:0,gap:0},qr=function(e){return parseInt(e||"",10)||0},du=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[qr(r),qr(n),qr(a)]},uu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return lu;var t=du(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},fu=la(),it="data-scroll-locked",pu=function(e,t,r,n){var a=e.left,s=e.top,c=e.right,l=e.gap;return r===void 0&&(r="margin"),`
151
- .`.concat(qd,` {
152
- overflow: hidden `).concat(n,`;
153
- padding-right: `).concat(l,"px ").concat(n,`;
150
+ */const __iconNode=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],X=createLucideIcon("X",__iconNode);function r(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function clsx(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}const CLASS_PART_SEPARATOR="-",createClassGroupUtils=e=>{const t=createClassMap(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{const f=u.split(CLASS_PART_SEPARATOR);return f[0]===""&&f.length!==1&&f.shift(),getGroupRecursive(f,t)||getGroupIdForArbitraryProperty(u)},getConflictingClassGroupIds:(u,f)=>{const p=n[u]||[];return f&&i[u]?[...p,...i[u]]:p}}},getGroupRecursive=(e,t)=>{var u;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),o=i?getGroupRecursive(e.slice(1),i):void 0;if(o)return o;if(t.validators.length===0)return;const l=e.join(CLASS_PART_SEPARATOR);return(u=t.validators.find(({validator:f})=>f(l)))==null?void 0:u.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=e=>{if(arbitraryPropertyRegex.test(e)){const t=arbitraryPropertyRegex.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},createClassMap=e=>{const{theme:t,classGroups:n}=e,i={nextPart:new Map,validators:[]};for(const o in n)processClassesRecursively(n[o],i,o,t);return i},processClassesRecursively=(e,t,n,i)=>{e.forEach(o=>{if(typeof o=="string"){const l=o===""?t:getPart(t,o);l.classGroupId=n;return}if(typeof o=="function"){if(isThemeGetter(o)){processClassesRecursively(o(i),t,n,i);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([l,u])=>{processClassesRecursively(u,getPart(t,l),n,i)})})},getPart=(e,t)=>{let n=e;return t.split(CLASS_PART_SEPARATOR).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},isThemeGetter=e=>e.isThemeGetter,createLruCache=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const o=(l,u)=>{n.set(l,u),t++,t>e&&(t=0,i=n,n=new Map)};return{get(l){let u=n.get(l);if(u!==void 0)return u;if((u=i.get(l))!==void 0)return o(l,u),u},set(l,u){n.has(l)?n.set(l,u):o(l,u)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",MODIFIER_SEPARATOR_LENGTH=MODIFIER_SEPARATOR.length,createParseClassName=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=o=>{const l=[];let u=0,f=0,p=0,d;for(let E=0;E<o.length;E++){let R=o[E];if(u===0&&f===0){if(R===MODIFIER_SEPARATOR){l.push(o.slice(p,E)),p=E+MODIFIER_SEPARATOR_LENGTH;continue}if(R==="/"){d=E;continue}}R==="["?u++:R==="]"?u--:R==="("?f++:R===")"&&f--}const m=l.length===0?o:o.substring(p),g=stripImportantModifier(m),_=g!==m,S=d&&d>p?d-p:void 0;return{modifiers:l,hasImportantModifier:_,baseClassName:g,maybePostfixModifierPosition:S}};if(t){const o=t+MODIFIER_SEPARATOR,l=i;i=u=>u.startsWith(o)?l(u.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(n){const o=i;i=l=>n({className:l,parseClassName:o})}return i},stripImportantModifier=e=>e.endsWith(IMPORTANT_MODIFIER)?e.substring(0,e.length-1):e.startsWith(IMPORTANT_MODIFIER)?e.substring(1):e,createSortModifiers=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const o=[];let l=[];return i.forEach(u=>{u[0]==="["||t[u]?(o.push(...l.sort(),u),l=[]):l.push(u)}),o.push(...l.sort()),o}},createConfigUtils=e=>({cache:createLruCache(e.cacheSize),parseClassName:createParseClassName(e),sortModifiers:createSortModifiers(e),...createClassGroupUtils(e)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:l}=t,u=[],f=e.trim().split(SPLIT_CLASSES_REGEX);let p="";for(let d=f.length-1;d>=0;d-=1){const m=f[d],{isExternal:g,modifiers:_,hasImportantModifier:S,baseClassName:E,maybePostfixModifierPosition:R}=n(m);if(g){p=m+(p.length>0?" "+p:p);continue}let b=!!R,A=i(b?E.substring(0,R):E);if(!A){if(!b){p=m+(p.length>0?" "+p:p);continue}if(A=i(E),!A){p=m+(p.length>0?" "+p:p);continue}b=!1}const C=l(_).join(":"),O=S?C+IMPORTANT_MODIFIER:C,M=O+A;if(u.includes(M))continue;u.push(M);const T=o(A,b);for(let j=0;j<T.length;++j){const I=T[j];u.push(O+I)}p=m+(p.length>0?" "+p:p)}return p};function twJoin(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=toValue(t))&&(i&&(i+=" "),i+=n);return i}const toValue=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=toValue(e[i]))&&(n&&(n+=" "),n+=t);return n};function createTailwindMerge(e,...t){let n,i,o,l=u;function u(p){const d=t.reduce((m,g)=>g(m),e());return n=createConfigUtils(d),i=n.cache.get,o=n.cache.set,l=f,f(p)}function f(p){const d=i(p);if(d)return d;const m=mergeClassList(p,n);return o(p,m),m}return function(){return l(twJoin.apply(null,arguments))}}const fromTheme=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},arbitraryValueRegex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,arbitraryVariableRegex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fractionRegex=/^\d+\/\d+$/,tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isFraction=e=>fractionRegex.test(e),isNumber$2=e=>!!e&&!Number.isNaN(Number(e)),isInteger=e=>!!e&&Number.isInteger(Number(e)),isPercent$1=e=>e.endsWith("%")&&isNumber$2(e.slice(0,-1)),isTshirtSize=e=>tshirtUnitRegex.test(e),isAny=()=>!0,isLengthOnly=e=>lengthUnitRegex.test(e)&&!colorFunctionRegex.test(e),isNever=()=>!1,isShadow=e=>shadowRegex.test(e),isImage=e=>imageRegex.test(e),isAnyNonArbitrary=e=>!isArbitraryValue(e)&&!isArbitraryVariable(e),isArbitrarySize=e=>getIsArbitraryValue(e,isLabelSize,isNever),isArbitraryValue=e=>arbitraryValueRegex.test(e),isArbitraryLength=e=>getIsArbitraryValue(e,isLabelLength,isLengthOnly),isArbitraryNumber=e=>getIsArbitraryValue(e,isLabelNumber,isNumber$2),isArbitraryPosition=e=>getIsArbitraryValue(e,isLabelPosition,isNever),isArbitraryImage=e=>getIsArbitraryValue(e,isLabelImage,isImage),isArbitraryShadow=e=>getIsArbitraryValue(e,isNever,isShadow),isArbitraryVariable=e=>arbitraryVariableRegex.test(e),isArbitraryVariableLength=e=>getIsArbitraryVariable(e,isLabelLength),isArbitraryVariableFamilyName=e=>getIsArbitraryVariable(e,isLabelFamilyName),isArbitraryVariablePosition=e=>getIsArbitraryVariable(e,isLabelPosition),isArbitraryVariableSize=e=>getIsArbitraryVariable(e,isLabelSize),isArbitraryVariableImage=e=>getIsArbitraryVariable(e,isLabelImage),isArbitraryVariableShadow=e=>getIsArbitraryVariable(e,isLabelShadow,!0),getIsArbitraryValue=(e,t,n)=>{const i=arbitraryValueRegex.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},getIsArbitraryVariable=(e,t,n=!1)=>{const i=arbitraryVariableRegex.exec(e);return i?i[1]?t(i[1]):n:!1},isLabelPosition=e=>e==="position",imageLabels=new Set(["image","url"]),isLabelImage=e=>imageLabels.has(e),sizeLabels=new Set(["length","size","percentage"]),isLabelSize=e=>sizeLabels.has(e),isLabelLength=e=>e==="length",isLabelNumber=e=>e==="number",isLabelFamilyName=e=>e==="family-name",isLabelShadow=e=>e==="shadow",getDefaultConfig=()=>{const e=fromTheme("color"),t=fromTheme("font"),n=fromTheme("text"),i=fromTheme("font-weight"),o=fromTheme("tracking"),l=fromTheme("leading"),u=fromTheme("breakpoint"),f=fromTheme("container"),p=fromTheme("spacing"),d=fromTheme("radius"),m=fromTheme("shadow"),g=fromTheme("inset-shadow"),_=fromTheme("drop-shadow"),S=fromTheme("blur"),E=fromTheme("perspective"),R=fromTheme("aspect"),b=fromTheme("ease"),A=fromTheme("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],j=()=>[isArbitraryVariable,isArbitraryValue,p],I=()=>[isFraction,"full","auto",...j()],D=()=>[isInteger,"none","subgrid",isArbitraryVariable,isArbitraryValue],L=()=>["auto",{span:["full",isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariable,isArbitraryValue],F=()=>[isInteger,"auto",isArbitraryVariable,isArbitraryValue],N=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],B=()=>["start","end","center","between","around","evenly","stretch","baseline"],z=()=>["start","end","center","stretch"],V=()=>["auto",...j()],W=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],U=()=>[e,isArbitraryVariable,isArbitraryValue],Q=()=>[isPercent$1,isArbitraryLength],q=()=>["","none","full",d,isArbitraryVariable,isArbitraryValue],G=()=>["",isNumber$2,isArbitraryVariableLength,isArbitraryLength],H=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>["","none",S,isArbitraryVariable,isArbitraryValue],ne=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryVariable,isArbitraryValue],ie=()=>["none",isNumber$2,isArbitraryVariable,isArbitraryValue],oe=()=>["none",isNumber$2,isArbitraryVariable,isArbitraryValue],ce=()=>[isNumber$2,isArbitraryVariable,isArbitraryValue],le=()=>[isFraction,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[isTshirtSize],breakpoint:[isTshirtSize],color:[isAny],container:[isTshirtSize],"drop-shadow":[isTshirtSize],ease:["in","out","in-out"],font:[isAnyNonArbitrary],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[isTshirtSize],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[isTshirtSize],shadow:[isTshirtSize],spacing:["px",isNumber$2],text:[isTshirtSize],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",isFraction,isArbitraryValue,isArbitraryVariable,R]}],container:["container"],columns:[{columns:[isNumber$2,isArbitraryValue,isArbitraryVariable,f]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...O(),isArbitraryValue,isArbitraryVariable]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",f,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[isNumber$2,isFraction,"auto","initial","none",isArbitraryValue]}],grow:[{grow:["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],shrink:[{shrink:["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],order:[{order:[isInteger,"first","last","none",isArbitraryVariable,isArbitraryValue]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...z(),"baseline"]}],"align-self":[{self:["auto",...z(),"baseline"]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[f,"screen",...W()]}],"min-w":[{"min-w":[f,"screen","none",...W()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...W()]}],h:[{h:["screen",...W()]}],"min-h":[{"min-h":["screen","none",...W()]}],"max-h":[{"max-h":["screen",...W()]}],"font-size":[{text:["base",n,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,isArbitraryVariable,isArbitraryNumber]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",isPercent$1,isArbitraryValue]}],"font-family":[{font:[isArbitraryVariableFamilyName,isArbitraryValue,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber$2,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[l,...j()]}],"list-image":[{"list-image":["none",isArbitraryVariable,isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",isArbitraryVariable,isArbitraryValue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:U()}],"text-color":[{text:U()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:[isNumber$2,"from-font","auto",isArbitraryVariable,isArbitraryLength]}],"text-decoration-color":[{decoration:U()}],"underline-offset":[{"underline-offset":[isNumber$2,"auto",isArbitraryVariable,isArbitraryValue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryVariable,isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryVariable,isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...O(),isArbitraryVariablePosition,isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},isInteger,isArbitraryVariable,isArbitraryValue],radial:["",isArbitraryVariable,isArbitraryValue],conic:[isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariableImage,isArbitraryImage]}],"bg-color":[{bg:U()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:U()}],"gradient-via":[{via:U()}],"gradient-to":[{to:U()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...H(),"hidden","none"]}],"divide-style":[{divide:[...H(),"hidden","none"]}],"border-color":[{border:U()}],"border-color-x":[{"border-x":U()}],"border-color-y":[{"border-y":U()}],"border-color-s":[{"border-s":U()}],"border-color-e":[{"border-e":U()}],"border-color-t":[{"border-t":U()}],"border-color-r":[{"border-r":U()}],"border-color-b":[{"border-b":U()}],"border-color-l":[{"border-l":U()}],"divide-color":[{divide:U()}],"outline-style":[{outline:[...H(),"none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber$2,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",m,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:U()}],"inset-shadow":[{"inset-shadow":["none",isArbitraryVariable,isArbitraryValue,g]}],"inset-shadow-color":[{"inset-shadow":U()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:U()}],"ring-offset-w":[{"ring-offset":[isNumber$2,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":U()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":U()}],opacity:[{opacity:[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none",isArbitraryVariable,isArbitraryValue]}],blur:[{blur:ee()}],brightness:[{brightness:[isNumber$2,isArbitraryVariable,isArbitraryValue]}],contrast:[{contrast:[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"drop-shadow":[{"drop-shadow":["","none",_,isArbitraryVariable,isArbitraryValue]}],grayscale:[{grayscale:["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],"hue-rotate":[{"hue-rotate":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],invert:[{invert:["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],saturate:[{saturate:[isNumber$2,isArbitraryVariable,isArbitraryValue]}],sepia:[{sepia:["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-filter":[{"backdrop-filter":["","none",isArbitraryVariable,isArbitraryValue]}],"backdrop-blur":[{"backdrop-blur":ee()}],"backdrop-brightness":[{"backdrop-brightness":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-contrast":[{"backdrop-contrast":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-invert":[{"backdrop-invert":["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-opacity":[{"backdrop-opacity":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-saturate":[{"backdrop-saturate":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-sepia":[{"backdrop-sepia":["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",isArbitraryVariable,isArbitraryValue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[isNumber$2,"initial",isArbitraryVariable,isArbitraryValue]}],ease:[{ease:["linear","initial",b,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber$2,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",A,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":ne()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[isArbitraryVariable,isArbitraryValue,"","none","gpu","cpu"]}],"transform-origin":[{origin:ne()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:U()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:U()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryVariable,isArbitraryValue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryVariable,isArbitraryValue]}],fill:[{fill:["none",...U()]}],"stroke-w":[{stroke:[isNumber$2,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...U()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},twMerge=createTailwindMerge(getDefaultConfig);function cn(...e){return twMerge(clsx(e))}function InputOTP({className:e,containerClassName:t,...n}){return jsxRuntime.jsx(Lt,{"data-slot":"input-otp",containerClassName:cn("flex items-center gap-2 has-disabled:opacity-50",t),className:cn("disabled:cursor-not-allowed",e),...n})}function InputOTPGroup({className:e,...t}){return jsxRuntime.jsx("div",{"data-slot":"input-otp-group",className:cn("flex items-center",e),...t})}function InputOTPSlot({index:e,className:t,...n}){const i=React__namespace.useContext(jt),{char:o,hasFakeCaret:l,isActive:u}=(i==null?void 0:i.slots[e])??{};return jsxRuntime.jsxs("div",{"data-slot":"input-otp-slot","data-active":u,className:cn("border-input data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",t),...n,children:[o,l&&jsxRuntime.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:jsxRuntime.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function InputOTPSeparator({...e}){return jsxRuntime.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...e,children:jsxRuntime.jsx(Minus,{})})}function composeEventHandlers(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function setRef(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function composeRefs(...e){return t=>{let n=!1;const i=e.map(o=>{const l=setRef(o,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o<i.length;o++){const l=i[o];typeof l=="function"?l():setRef(e[o],null)}}}}function useComposedRefs(...e){return React__namespace.useCallback(composeRefs(...e),e)}function createContext2(e,t){const n=React__namespace.createContext(t),i=l=>{const{children:u,...f}=l,p=React__namespace.useMemo(()=>f,Object.values(f));return jsxRuntime.jsx(n.Provider,{value:p,children:u})};i.displayName=e+"Provider";function o(l){const u=React__namespace.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[i,o]}function createContextScope(e,t=[]){let n=[];function i(l,u){const f=React__namespace.createContext(u),p=n.length;n=[...n,u];const d=g=>{var A;const{scope:_,children:S,...E}=g,R=((A=_==null?void 0:_[e])==null?void 0:A[p])||f,b=React__namespace.useMemo(()=>E,Object.values(E));return jsxRuntime.jsx(R.Provider,{value:b,children:S})};d.displayName=l+"Provider";function m(g,_){var R;const S=((R=_==null?void 0:_[e])==null?void 0:R[p])||f,E=React__namespace.useContext(S);if(E)return E;if(u!==void 0)return u;throw new Error(`\`${g}\` must be used within \`${l}\``)}return[d,m]}const o=()=>{const l=n.map(u=>React__namespace.createContext(u));return function(f){const p=(f==null?void 0:f[e])||l;return React__namespace.useMemo(()=>({[`__scope${e}`]:{...f,[e]:p}}),[f,p])}};return o.scopeName=e,[i,composeContextScopes(o,...t)]}function composeContextScopes(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(l){const u=i.reduce((f,{useScope:p,scopeName:d})=>{const g=p(l)[`__scope${d}`];return{...f,...g}},{});return React__namespace.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}var useLayoutEffect2=globalThis!=null&&globalThis.document?React__namespace.useLayoutEffect:()=>{},useReactId=React__namespace.useId||(()=>{}),count$2=0;function useId(e){const[t,n]=React__namespace.useState(useReactId());return useLayoutEffect2(()=>{n(i=>i??String(count$2++))},[e]),t?`radix-${t}`:""}function useCallbackRef$1(e){const t=React__namespace.useRef(e);return React__namespace.useEffect(()=>{t.current=e}),React__namespace.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function useControllableState({prop:e,defaultProp:t,onChange:n=()=>{}}){const[i,o]=useUncontrolledState({defaultProp:t,onChange:n}),l=e!==void 0,u=l?e:i,f=useCallbackRef$1(n),p=React__namespace.useCallback(d=>{if(l){const g=typeof d=="function"?d(e):d;g!==e&&f(g)}else o(d)},[l,e,o,f]);return[u,p]}function useUncontrolledState({defaultProp:e,onChange:t}){const n=React__namespace.useState(e),[i]=n,o=React__namespace.useRef(i),l=useCallbackRef$1(t);return React__namespace.useEffect(()=>{o.current!==i&&(l(i),o.current=i)},[i,o,l]),n}var Slot=React__namespace.forwardRef((e,t)=>{const{children:n,...i}=e,o=React__namespace.Children.toArray(n),l=o.find(isSlottable);if(l){const u=l.props.children,f=o.map(p=>p===l?React__namespace.Children.count(u)>1?React__namespace.Children.only(null):React__namespace.isValidElement(u)?u.props.children:null:p);return jsxRuntime.jsx(SlotClone,{...i,ref:t,children:React__namespace.isValidElement(u)?React__namespace.cloneElement(u,void 0,f):null})}return jsxRuntime.jsx(SlotClone,{...i,ref:t,children:n})});Slot.displayName="Slot";var SlotClone=React__namespace.forwardRef((e,t)=>{const{children:n,...i}=e;if(React__namespace.isValidElement(n)){const o=getElementRef$1(n),l=mergeProps(i,n.props);return n.type!==React__namespace.Fragment&&(l.ref=t?composeRefs(t,o):o),React__namespace.cloneElement(n,l)}return React__namespace.Children.count(n)>1?React__namespace.Children.only(null):null});SlotClone.displayName="SlotClone";var Slottable=({children:e})=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:e});function isSlottable(e){return React__namespace.isValidElement(e)&&e.type===Slottable}function mergeProps(e,t){const n={...t};for(const i in t){const o=e[i],l=t[i];/^on[A-Z]/.test(i)?o&&l?n[i]=(...f)=>{l(...f),o(...f)}:o&&(n[i]=o):i==="style"?n[i]={...o,...l}:i==="className"&&(n[i]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}function getElementRef$1(e){var i,o;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var NODES=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Primitive=NODES.reduce((e,t)=>{const n=React__namespace.forwardRef((i,o)=>{const{asChild:l,...u}=i,f=l?Slot:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),jsxRuntime.jsx(f,{...u,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function dispatchDiscreteCustomEvent(e,t){e&&ReactDOM__namespace.flushSync(()=>e.dispatchEvent(t))}function useEscapeKeydown(e,t=globalThis==null?void 0:globalThis.document){const n=useCallbackRef$1(e);React__namespace.useEffect(()=>{const i=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var DISMISSABLE_LAYER_NAME="DismissableLayer",CONTEXT_UPDATE="dismissableLayer.update",POINTER_DOWN_OUTSIDE="dismissableLayer.pointerDownOutside",FOCUS_OUTSIDE="dismissableLayer.focusOutside",originalBodyPointerEvents,DismissableLayerContext=React__namespace.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),DismissableLayer=React__namespace.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:l,onInteractOutside:u,onDismiss:f,...p}=e,d=React__namespace.useContext(DismissableLayerContext),[m,g]=React__namespace.useState(null),_=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=React__namespace.useState({}),E=useComposedRefs(t,I=>g(I)),R=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),A=R.indexOf(b),C=m?R.indexOf(m):-1,O=d.layersWithOutsidePointerEventsDisabled.size>0,M=C>=A,T=usePointerDownOutside(I=>{const D=I.target,L=[...d.branches].some(F=>F.contains(D));!M||L||(o==null||o(I),u==null||u(I),I.defaultPrevented||f==null||f())},_),j=useFocusOutside(I=>{const D=I.target;[...d.branches].some(F=>F.contains(D))||(l==null||l(I),u==null||u(I),I.defaultPrevented||f==null||f())},_);return useEscapeKeydown(I=>{C===d.layers.size-1&&(i==null||i(I),!I.defaultPrevented&&f&&(I.preventDefault(),f()))},_),React__namespace.useEffect(()=>{if(m)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(originalBodyPointerEvents=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),dispatchUpdate(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(_.body.style.pointerEvents=originalBodyPointerEvents)}},[m,_,n,d]),React__namespace.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),dispatchUpdate())},[m,d]),React__namespace.useEffect(()=>{const I=()=>S({});return document.addEventListener(CONTEXT_UPDATE,I),()=>document.removeEventListener(CONTEXT_UPDATE,I)},[]),jsxRuntime.jsx(Primitive.div,{...p,ref:E,style:{pointerEvents:O?M?"auto":"none":void 0,...e.style},onFocusCapture:composeEventHandlers(e.onFocusCapture,j.onFocusCapture),onBlurCapture:composeEventHandlers(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:composeEventHandlers(e.onPointerDownCapture,T.onPointerDownCapture)})});DismissableLayer.displayName=DISMISSABLE_LAYER_NAME;var BRANCH_NAME="DismissableLayerBranch",DismissableLayerBranch=React__namespace.forwardRef((e,t)=>{const n=React__namespace.useContext(DismissableLayerContext),i=React__namespace.useRef(null),o=useComposedRefs(t,i);return React__namespace.useEffect(()=>{const l=i.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),jsxRuntime.jsx(Primitive.div,{...e,ref:o})});DismissableLayerBranch.displayName=BRANCH_NAME;function usePointerDownOutside(e,t=globalThis==null?void 0:globalThis.document){const n=useCallbackRef$1(e),i=React__namespace.useRef(!1),o=React__namespace.useRef(()=>{});return React__namespace.useEffect(()=>{const l=f=>{if(f.target&&!i.current){let p=function(){handleAndDispatchCustomEvent$1(POINTER_DOWN_OUTSIDE,n,d,{discrete:!0})};const d={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=p,t.addEventListener("click",o.current,{once:!0})):p()}else t.removeEventListener("click",o.current);i.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",l),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function useFocusOutside(e,t=globalThis==null?void 0:globalThis.document){const n=useCallbackRef$1(e),i=React__namespace.useRef(!1);return React__namespace.useEffect(()=>{const o=l=>{l.target&&!i.current&&handleAndDispatchCustomEvent$1(FOCUS_OUTSIDE,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function dispatchUpdate(){const e=new CustomEvent(CONTEXT_UPDATE);document.dispatchEvent(e)}function handleAndDispatchCustomEvent$1(e,t,n,{discrete:i}){const o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?dispatchDiscreteCustomEvent(o,l):o.dispatchEvent(l)}var Root$6=DismissableLayer,Branch=DismissableLayerBranch,AUTOFOCUS_ON_MOUNT="focusScope.autoFocusOnMount",AUTOFOCUS_ON_UNMOUNT="focusScope.autoFocusOnUnmount",EVENT_OPTIONS$1={bubbles:!1,cancelable:!0},FOCUS_SCOPE_NAME="FocusScope",FocusScope=React__namespace.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...u}=e,[f,p]=React__namespace.useState(null),d=useCallbackRef$1(o),m=useCallbackRef$1(l),g=React__namespace.useRef(null),_=useComposedRefs(t,R=>p(R)),S=React__namespace.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;React__namespace.useEffect(()=>{if(i){let R=function(O){if(S.paused||!f)return;const M=O.target;f.contains(M)?g.current=M:focus(g.current,{select:!0})},b=function(O){if(S.paused||!f)return;const M=O.relatedTarget;M!==null&&(f.contains(M)||focus(g.current,{select:!0}))},A=function(O){if(document.activeElement===document.body)for(const T of O)T.removedNodes.length>0&&focus(f)};document.addEventListener("focusin",R),document.addEventListener("focusout",b);const C=new MutationObserver(A);return f&&C.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",R),document.removeEventListener("focusout",b),C.disconnect()}}},[i,f,S.paused]),React__namespace.useEffect(()=>{if(f){focusScopesStack.add(S);const R=document.activeElement;if(!f.contains(R)){const A=new CustomEvent(AUTOFOCUS_ON_MOUNT,EVENT_OPTIONS$1);f.addEventListener(AUTOFOCUS_ON_MOUNT,d),f.dispatchEvent(A),A.defaultPrevented||(focusFirst$3(removeLinks(getTabbableCandidates$1(f)),{select:!0}),document.activeElement===R&&focus(f))}return()=>{f.removeEventListener(AUTOFOCUS_ON_MOUNT,d),setTimeout(()=>{const A=new CustomEvent(AUTOFOCUS_ON_UNMOUNT,EVENT_OPTIONS$1);f.addEventListener(AUTOFOCUS_ON_UNMOUNT,m),f.dispatchEvent(A),A.defaultPrevented||focus(R??document.body,{select:!0}),f.removeEventListener(AUTOFOCUS_ON_UNMOUNT,m),focusScopesStack.remove(S)},0)}}},[f,d,m,S]);const E=React__namespace.useCallback(R=>{if(!n&&!i||S.paused)return;const b=R.key==="Tab"&&!R.altKey&&!R.ctrlKey&&!R.metaKey,A=document.activeElement;if(b&&A){const C=R.currentTarget,[O,M]=getTabbableEdges(C);O&&M?!R.shiftKey&&A===M?(R.preventDefault(),n&&focus(O,{select:!0})):R.shiftKey&&A===O&&(R.preventDefault(),n&&focus(M,{select:!0})):A===C&&R.preventDefault()}},[n,i,S.paused]);return jsxRuntime.jsx(Primitive.div,{tabIndex:-1,...u,ref:_,onKeyDown:E})});FocusScope.displayName=FOCUS_SCOPE_NAME;function focusFirst$3(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(focus(i,{select:t}),document.activeElement!==n)return}function getTabbableEdges(e){const t=getTabbableCandidates$1(e),n=findVisible(t,e),i=findVisible(t.reverse(),e);return[n,i]}function getTabbableCandidates$1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function findVisible(e,t){for(const n of e)if(!isHidden(n,{upTo:t}))return n}function isHidden(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function isSelectableInput(e){return e instanceof HTMLInputElement&&"select"in e}function focus(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&isSelectableInput(e)&&t&&e.select()}}var focusScopesStack=createFocusScopesStack();function createFocusScopesStack(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=arrayRemove(e,t),e.unshift(t)},remove(t){var n;e=arrayRemove(e,t),(n=e[0])==null||n.resume()}}}function arrayRemove(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function removeLinks(e){return e.filter(t=>t.tagName!=="A")}var PORTAL_NAME$4="Portal",Portal$3=React__namespace.forwardRef((e,t)=>{var f;const{container:n,...i}=e,[o,l]=React__namespace.useState(!1);useLayoutEffect2(()=>l(!0),[]);const u=n||o&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return u?ReactDOM.createPortal(jsxRuntime.jsx(Primitive.div,{...i,ref:t}),u):null});Portal$3.displayName=PORTAL_NAME$4;function useStateMachine(e,t){return React__namespace.useReducer((n,i)=>t[n][i]??n,e)}var Presence=e=>{const{present:t,children:n}=e,i=usePresence(t),o=typeof n=="function"?n({present:i.isPresent}):React__namespace.Children.only(n),l=useComposedRefs(i.ref,getElementRef(o));return typeof n=="function"||i.isPresent?React__namespace.cloneElement(o,{ref:l}):null};Presence.displayName="Presence";function usePresence(e){const[t,n]=React__namespace.useState(),i=React__namespace.useRef({}),o=React__namespace.useRef(e),l=React__namespace.useRef("none"),u=e?"mounted":"unmounted",[f,p]=useStateMachine(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return React__namespace.useEffect(()=>{const d=getAnimationName(i.current);l.current=f==="mounted"?d:"none"},[f]),useLayoutEffect2(()=>{const d=i.current,m=o.current;if(m!==e){const _=l.current,S=getAnimationName(d);e?p("MOUNT"):S==="none"||(d==null?void 0:d.display)==="none"?p("UNMOUNT"):p(m&&_!==S?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,p]),useLayoutEffect2(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,g=S=>{const R=getAnimationName(i.current).includes(S.animationName);if(S.target===t&&R&&(p("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},_=S=>{S.target===t&&(l.current=getAnimationName(i.current))};return t.addEventListener("animationstart",_),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",_),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:React__namespace.useCallback(d=>{d&&(i.current=getComputedStyle(d)),n(d)},[])}}function getAnimationName(e){return(e==null?void 0:e.animationName)||"none"}function getElementRef(e){var i,o;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var count$1=0;function useFocusGuards(){React__namespace.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??createFocusGuard()),document.body.insertAdjacentElement("beforeend",e[1]??createFocusGuard()),count$1++,()=>{count$1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),count$1--}},[])}function createFocusGuard(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var __assign$1=function(){return __assign$1=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},__assign$1.apply(this,arguments)};function __rest(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}function __spreadArray(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,l;i<o;i++)(l||!(i in t))&&(l||(l=Array.prototype.slice.call(t,0,i)),l[i]=t[i]);return e.concat(l||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var zeroRightClassName="right-scroll-bar-position",fullWidthClassName="width-before-scroll-bar",noScrollbarsClassName="with-scroll-bars-hidden",removedBarSizeVariable="--removed-body-scroll-bar-size";function assignRef(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function useCallbackRef(e,t){var n=React.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var o=n.value;o!==i&&(n.value=i,n.callback(i,o))}}}})[0];return n.callback=t,n.facade}var useIsomorphicLayoutEffect=typeof window<"u"?React__namespace.useLayoutEffect:React__namespace.useEffect,currentValues=new WeakMap;function useMergeRefs(e,t){var n=useCallbackRef(null,function(i){return e.forEach(function(o){return assignRef(o,i)})});return useIsomorphicLayoutEffect(function(){var i=currentValues.get(n);if(i){var o=new Set(i),l=new Set(e),u=n.current;o.forEach(function(f){l.has(f)||assignRef(f,null)}),l.forEach(function(f){o.has(f)||assignRef(f,u)})}currentValues.set(n,e)},[e]),n}function ItoI(e){return e}function innerCreateMedium(e,t){t===void 0&&(t=ItoI);var n=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var u=t(l,i);return n.push(u),function(){n=n.filter(function(f){return f!==u})}},assignSyncMedium:function(l){for(i=!0;n.length;){var u=n;n=[],u.forEach(l)}n={push:function(f){return l(f)},filter:function(){return n}}},assignMedium:function(l){i=!0;var u=[];if(n.length){var f=n;n=[],f.forEach(l),u=n}var p=function(){var m=u;u=[],m.forEach(l)},d=function(){return Promise.resolve().then(p)};d(),n={push:function(m){u.push(m),d()},filter:function(m){return u=u.filter(m),n}}}};return o}function createSidecarMedium(e){e===void 0&&(e={});var t=innerCreateMedium(null);return t.options=__assign$1({async:!0,ssr:!1},e),t}var SideCar$1=function(e){var t=e.sideCar,n=__rest(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return React__namespace.createElement(i,__assign$1({},n))};SideCar$1.isSideCarExport=!0;function exportSidecar(e,t){return e.useMedium(t),SideCar$1}var effectCar=createSidecarMedium(),nothing=function(){},RemoveScroll=React__namespace.forwardRef(function(e,t){var n=React__namespace.useRef(null),i=React__namespace.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),o=i[0],l=i[1],u=e.forwardProps,f=e.children,p=e.className,d=e.removeScrollBar,m=e.enabled,g=e.shards,_=e.sideCar,S=e.noIsolation,E=e.inert,R=e.allowPinchZoom,b=e.as,A=b===void 0?"div":b,C=e.gapMode,O=__rest(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=_,T=useMergeRefs([n,t]),j=__assign$1(__assign$1({},O),o);return React__namespace.createElement(React__namespace.Fragment,null,m&&React__namespace.createElement(M,{sideCar:effectCar,removeScrollBar:d,shards:g,noIsolation:S,inert:E,setCallbacks:l,allowPinchZoom:!!R,lockRef:n,gapMode:C}),u?React__namespace.cloneElement(React__namespace.Children.only(f),__assign$1(__assign$1({},j),{ref:T})):React__namespace.createElement(A,__assign$1({},j,{className:p,ref:T}),f))});RemoveScroll.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},RemoveScroll.classNames={fullWidth:fullWidthClassName,zeroRight:zeroRightClassName};var getNonce=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function makeStyleTag(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=getNonce();return t&&e.setAttribute("nonce",t),e}function injectStyles(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function insertStyleTag(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var stylesheetSingleton=function(){var e=0,t=null;return{add:function(n){e==0&&(t=makeStyleTag())&&(injectStyles(t,n),insertStyleTag(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},styleHookSingleton=function(){var e=stylesheetSingleton();return function(t,n){React__namespace.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},styleSingleton=function(){var e=styleHookSingleton(),t=function(n){var i=n.styles,o=n.dynamic;return e(i,o),null};return t},zeroGap={left:0,top:0,right:0,gap:0},parse=function(e){return parseInt(e||"",10)||0},getOffset$1=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[parse(n),parse(i),parse(o)]},getGapWidth=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zeroGap;var t=getOffset$1(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},Style=styleSingleton(),lockAttribute="data-scroll-locked",getStyles=function(e,t,n,i){var o=e.left,l=e.top,u=e.right,f=e.gap;return n===void 0&&(n="margin"),`
151
+ .`.concat(noScrollbarsClassName,` {
152
+ overflow: hidden `).concat(i,`;
153
+ padding-right: `).concat(f,"px ").concat(i,`;
154
154
  }
155
- body[`).concat(it,`] {
156
- overflow: hidden `).concat(n,`;
155
+ body[`).concat(lockAttribute,`] {
156
+ overflow: hidden `).concat(i,`;
157
157
  overscroll-behavior: contain;
158
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
159
- padding-left: `.concat(a,`px;
160
- padding-top: `).concat(s,`px;
161
- padding-right: `).concat(c,`px;
158
+ `).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
159
+ padding-left: `.concat(o,`px;
160
+ padding-top: `).concat(l,`px;
161
+ padding-right: `).concat(u,`px;
162
162
  margin-left:0;
163
163
  margin-top:0;
164
- margin-right: `).concat(l,"px ").concat(n,`;
165
- `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),`
164
+ margin-right: `).concat(f,"px ").concat(i,`;
165
+ `),n==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
166
166
  }
167
167
 
168
- .`).concat(Ut,` {
169
- right: `).concat(l,"px ").concat(n,`;
168
+ .`).concat(zeroRightClassName,` {
169
+ right: `).concat(f,"px ").concat(i,`;
170
170
  }
171
171
 
172
- .`).concat(jt,` {
173
- margin-right: `).concat(l,"px ").concat(n,`;
172
+ .`).concat(fullWidthClassName,` {
173
+ margin-right: `).concat(f,"px ").concat(i,`;
174
174
  }
175
175
 
176
- .`).concat(Ut," .").concat(Ut,` {
177
- right: 0 `).concat(n,`;
176
+ .`).concat(zeroRightClassName," .").concat(zeroRightClassName,` {
177
+ right: 0 `).concat(i,`;
178
178
  }
179
179
 
180
- .`).concat(jt," .").concat(jt,` {
181
- margin-right: 0 `).concat(n,`;
180
+ .`).concat(fullWidthClassName," .").concat(fullWidthClassName,` {
181
+ margin-right: 0 `).concat(i,`;
182
182
  }
183
183
 
184
- body[`).concat(it,`] {
185
- `).concat(Xd,": ").concat(l,`px;
184
+ body[`).concat(lockAttribute,`] {
185
+ `).concat(removedBarSizeVariable,": ").concat(f,`px;
186
186
  }
187
- `)},da=function(){var e=parseInt(document.body.getAttribute(it)||"0",10);return isFinite(e)?e:0},hu=function(){i.useEffect(function(){return document.body.setAttribute(it,(da()+1).toString()),function(){var e=da()-1;e<=0?document.body.removeAttribute(it):document.body.setAttribute(it,e.toString())}},[])},gu=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;hu();var s=i.useMemo(function(){return uu(a)},[a]);return i.createElement(fu,{styles:pu(s,!t,a,r?"":"!important")})},Xr=!1;if(typeof window<"u")try{var Kt=Object.defineProperty({},"passive",{get:function(){return Xr=!0,!0}});window.addEventListener("test",Kt,Kt),window.removeEventListener("test",Kt,Kt)}catch{Xr=!1}var ct=Xr?{passive:!1}:!1,vu=function(e){return e.tagName==="TEXTAREA"},ua=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!vu(e)&&r[t]==="visible")},mu=function(e){return ua(e,"overflowY")},bu=function(e){return ua(e,"overflowX")},fa=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=pa(e,n);if(a){var s=ha(e,n),c=s[1],l=s[2];if(c>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},wu=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},yu=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},pa=function(e,t){return e==="v"?mu(t):bu(t)},ha=function(e,t){return e==="v"?wu(t):yu(t)},xu=function(e,t){return e==="h"&&t==="rtl"?-1:1},Nu=function(e,t,r,n,a){var s=xu(e,window.getComputedStyle(t).direction),c=s*n,l=r.target,u=t.contains(l),d=!1,f=c>0,p=0,h=0;do{var m=ha(e,l),b=m[0],g=m[1],w=m[2],v=g-w-s*b;(b||v)&&pa(e,l)&&(p+=v,h+=b),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(f&&Math.abs(p)<1||!f&&Math.abs(h)<1)&&(d=!0),d},Yt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ga=function(e){return[e.deltaX,e.deltaY]},va=function(e){return e&&"current"in e?e.current:e},Cu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Su=function(e){return`
187
+ `)},getCurrentUseCounter=function(){var e=parseInt(document.body.getAttribute(lockAttribute)||"0",10);return isFinite(e)?e:0},useLockAttribute=function(){React__namespace.useEffect(function(){return document.body.setAttribute(lockAttribute,(getCurrentUseCounter()+1).toString()),function(){var e=getCurrentUseCounter()-1;e<=0?document.body.removeAttribute(lockAttribute):document.body.setAttribute(lockAttribute,e.toString())}},[])},RemoveScrollBar=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i;useLockAttribute();var l=React__namespace.useMemo(function(){return getGapWidth(o)},[o]);return React__namespace.createElement(Style,{styles:getStyles(l,!t,o,n?"":"!important")})},passiveSupported=!1;if(typeof window<"u")try{var options=Object.defineProperty({},"passive",{get:function(){return passiveSupported=!0,!0}});window.addEventListener("test",options,options),window.removeEventListener("test",options,options)}catch{passiveSupported=!1}var nonPassive=passiveSupported?{passive:!1}:!1,alwaysContainsScroll=function(e){return e.tagName==="TEXTAREA"},elementCanBeScrolled=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!alwaysContainsScroll(e)&&n[t]==="visible")},elementCouldBeVScrolled=function(e){return elementCanBeScrolled(e,"overflowY")},elementCouldBeHScrolled=function(e){return elementCanBeScrolled(e,"overflowX")},locationCouldBeScrolled=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=elementCouldBeScrolled(e,i);if(o){var l=getScrollVariables(e,i),u=l[1],f=l[2];if(u>f)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},getVScrollVariables=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},getHScrollVariables=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},elementCouldBeScrolled=function(e,t){return e==="v"?elementCouldBeVScrolled(t):elementCouldBeHScrolled(t)},getScrollVariables=function(e,t){return e==="v"?getVScrollVariables(t):getHScrollVariables(t)},getDirectionFactor=function(e,t){return e==="h"&&t==="rtl"?-1:1},handleScroll=function(e,t,n,i,o){var l=getDirectionFactor(e,window.getComputedStyle(t).direction),u=l*i,f=n.target,p=t.contains(f),d=!1,m=u>0,g=0,_=0;do{var S=getScrollVariables(e,f),E=S[0],R=S[1],b=S[2],A=R-b-l*E;(E||A)&&elementCouldBeScrolled(e,f)&&(g+=A,_+=E),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!p&&f!==document.body||p&&(t.contains(f)||t===f));return(m&&Math.abs(g)<1||!m&&Math.abs(_)<1)&&(d=!0),d},getTouchXY=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(e){return[e.deltaX,e.deltaY]},extractRef=function(e){return e&&"current"in e?e.current:e},deltaCompare=function(e,t){return e[0]===t[0]&&e[1]===t[1]},generateStyle=function(e){return`
188
188
  .block-interactivity-`.concat(e,` {pointer-events: none;}
189
189
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
190
- `)},Eu=0,lt=[];function Tu(e){var t=i.useRef([]),r=i.useRef([0,0]),n=i.useRef(),a=i.useState(Eu++)[0],s=i.useState(la)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var g=Yd([e.lockRef.current],(e.shards||[]).map(va),!0).filter(Boolean);return g.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),g.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=i.useCallback(function(g,w){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!c.current.allowPinchZoom;var v=Yt(g),y=r.current,x="deltaX"in g?g.deltaX:y[0]-v[0],N="deltaY"in g?g.deltaY:y[1]-v[1],E,C=g.target,T=Math.abs(x)>Math.abs(N)?"h":"v";if("touches"in g&&T==="h"&&C.type==="range")return!1;var $=fa(T,C);if(!$)return!0;if($?E=T:(E=T==="v"?"h":"v",$=fa(T,C)),!$)return!1;if(!n.current&&"changedTouches"in g&&(x||N)&&(n.current=E),!E)return!0;var O=n.current||E;return Nu(O,w,g,O==="h"?x:N)},[]),u=i.useCallback(function(g){var w=g;if(!(!lt.length||lt[lt.length-1]!==s)){var v="deltaY"in w?ga(w):Yt(w),y=t.current.filter(function(E){return E.name===w.type&&(E.target===w.target||w.target===E.shadowParent)&&Cu(E.delta,v)})[0];if(y&&y.should){w.cancelable&&w.preventDefault();return}if(!y){var x=(c.current.shards||[]).map(va).filter(Boolean).filter(function(E){return E.contains(w.target)}),N=x.length>0?l(w,x[0]):!c.current.noIsolation;N&&w.cancelable&&w.preventDefault()}}},[]),d=i.useCallback(function(g,w,v,y){var x={name:g,delta:w,target:v,should:y,shadowParent:Mu(v)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(N){return N!==x})},1)},[]),f=i.useCallback(function(g){r.current=Yt(g),n.current=void 0},[]),p=i.useCallback(function(g){d(g.type,ga(g),g.target,l(g,e.lockRef.current))},[]),h=i.useCallback(function(g){d(g.type,Yt(g),g.target,l(g,e.lockRef.current))},[]);i.useEffect(function(){return lt.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,ct),document.addEventListener("touchmove",u,ct),document.addEventListener("touchstart",f,ct),function(){lt=lt.filter(function(g){return g!==s}),document.removeEventListener("wheel",u,ct),document.removeEventListener("touchmove",u,ct),document.removeEventListener("touchstart",f,ct)}},[]);var m=e.removeScrollBar,b=e.inert;return i.createElement(i.Fragment,null,b?i.createElement(s,{styles:Su(a)}):null,m?i.createElement(gu,{gapMode:e.gapMode}):null)}function Mu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Pu=ru(ca,Tu);var Qr=i.forwardRef(function(e,t){return i.createElement(Ht,_e({},e,{ref:t,sideCar:Pu}))});Qr.classNames=Ht.classNames;var Au=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},dt=new WeakMap,qt=new WeakMap,Xt={},Zr=0,ma=function(e){return e&&(e.host||ma(e.parentNode))},_u=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ma(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Du=function(e,t,r,n){var a=_u(t,Array.isArray(e)?e:[e]);Xt[r]||(Xt[r]=new WeakMap);var s=Xt[r],c=[],l=new Set,u=new Set(a),d=function(p){!p||l.has(p)||(l.add(p),d(p.parentNode))};a.forEach(d);var f=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(h){if(l.has(h))f(h);else try{var m=h.getAttribute(n),b=m!==null&&m!=="false",g=(dt.get(h)||0)+1,w=(s.get(h)||0)+1;dt.set(h,g),s.set(h,w),c.push(h),g===1&&b&&qt.set(h,!0),w===1&&h.setAttribute(r,"true"),b||h.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",h,v)}})};return f(t),l.clear(),Zr++,function(){c.forEach(function(p){var h=dt.get(p)-1,m=s.get(p)-1;dt.set(p,h),s.set(p,m),h||(qt.has(p)||p.removeAttribute(n),qt.delete(p)),m||p.removeAttribute(r)}),Zr--,Zr||(dt=new WeakMap,dt=new WeakMap,qt=new WeakMap,Xt={})}},ba=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=Au(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),Du(n,a,r,"aria-hidden")):function(){return null}},Jr="Dialog",[wa,ov]=Be(Jr),[Iu,Ce]=wa(Jr),ya=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:s,modal:c=!0}=e,l=i.useRef(null),u=i.useRef(null),[d=!1,f]=st({prop:n,defaultProp:a,onChange:s});return o.jsx(Iu,{scope:t,triggerRef:l,contentRef:u,contentId:Oe(),titleId:Oe(),descriptionId:Oe(),open:d,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(p=>!p),[f]),modal:c,children:r})};ya.displayName=Jr;var xa="DialogTrigger",Na=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Ce(xa,r),s=oe(t,a.triggerRef);return o.jsx(Z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":tn(a.open),...n,ref:s,onClick:z(e.onClick,a.onOpenToggle)})});Na.displayName=xa;var Rr="DialogPortal",[ku,Ca]=wa(Rr,{forceMount:void 0}),Sa=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:a}=e,s=Ce(Rr,t);return o.jsx(ku,{scope:t,forceMount:r,children:i.Children.map(n,c=>o.jsx(Ne,{present:r||s.open,children:o.jsx(Ct,{asChild:!0,container:a,children:c})}))})};Sa.displayName=Rr;var Qt="DialogOverlay",Ea=i.forwardRef((e,t)=>{const r=Ca(Qt,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,s=Ce(Qt,e.__scopeDialog);return s.modal?o.jsx(Ne,{present:n||s.open,children:o.jsx(Ou,{...a,ref:t})}):null});Ea.displayName=Qt;var Ou=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Ce(Qt,r);return o.jsx(Qr,{as:ye,allowPinchZoom:!0,shards:[a.contentRef],children:o.jsx(Z.div,{"data-state":tn(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Qe="DialogContent",Ta=i.forwardRef((e,t)=>{const r=Ca(Qe,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,s=Ce(Qe,e.__scopeDialog);return o.jsx(Ne,{present:n||s.open,children:s.modal?o.jsx(Lu,{...a,ref:t}):o.jsx(Fu,{...a,ref:t})})});Ta.displayName=Qe;var Lu=i.forwardRef((e,t)=>{const r=Ce(Qe,e.__scopeDialog),n=i.useRef(null),a=oe(t,r.contentRef,n);return i.useEffect(()=>{const s=n.current;if(s)return ba(s)},[]),o.jsx(Ma,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(e.onCloseAutoFocus,s=>{var c;s.preventDefault(),(c=r.triggerRef.current)==null||c.focus()}),onPointerDownOutside:z(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&s.preventDefault()}),onFocusOutside:z(e.onFocusOutside,s=>s.preventDefault())})}),Fu=i.forwardRef((e,t)=>{const r=Ce(Qe,e.__scopeDialog),n=i.useRef(!1),a=i.useRef(!1);return o.jsx(Ma,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var c,l;(c=e.onCloseAutoFocus)==null||c.call(e,s),s.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),s.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:s=>{var u,d;(u=e.onInteractOutside)==null||u.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const c=s.target;((d=r.triggerRef.current)==null?void 0:d.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&a.current&&s.preventDefault()}})}),Ma=i.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:s,...c}=e,l=Ce(Qe,r),u=i.useRef(null),d=oe(t,u);return na(),o.jsxs(o.Fragment,{children:[o.jsx(jr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:s,children:o.jsx(Nt,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":tn(l.open),...c,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),o.jsxs(o.Fragment,{children:[o.jsx($u,{titleId:l.titleId}),o.jsx(Bu,{contentRef:u,descriptionId:l.descriptionId})]})]})}),en="DialogTitle",Pa=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Ce(en,r);return o.jsx(Z.h2,{id:a.titleId,...n,ref:t})});Pa.displayName=en;var Aa="DialogDescription",_a=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Ce(Aa,r);return o.jsx(Z.p,{id:a.descriptionId,...n,ref:t})});_a.displayName=Aa;var Da="DialogClose",Ia=i.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=Ce(Da,r);return o.jsx(Z.button,{type:"button",...n,ref:t,onClick:z(e.onClick,()=>a.onOpenChange(!1))})});Ia.displayName=Da;function tn(e){return e?"open":"closed"}var ka="DialogTitleWarning",[av,Oa]=bd(ka,{contentName:Qe,titleName:en,docsSlug:"dialog"}),$u=({titleId:e})=>{const t=Oa(ka),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
190
+ `)},idCounter$1=0,lockStack=[];function RemoveScrollSideCar(e){var t=React__namespace.useRef([]),n=React__namespace.useRef([0,0]),i=React__namespace.useRef(),o=React__namespace.useState(idCounter$1++)[0],l=React__namespace.useState(styleSingleton)[0],u=React__namespace.useRef(e);React__namespace.useEffect(function(){u.current=e},[e]),React__namespace.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var R=__spreadArray([e.lockRef.current],(e.shards||[]).map(extractRef),!0).filter(Boolean);return R.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),R.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var f=React__namespace.useCallback(function(R,b){if("touches"in R&&R.touches.length===2||R.type==="wheel"&&R.ctrlKey)return!u.current.allowPinchZoom;var A=getTouchXY(R),C=n.current,O="deltaX"in R?R.deltaX:C[0]-A[0],M="deltaY"in R?R.deltaY:C[1]-A[1],T,j=R.target,I=Math.abs(O)>Math.abs(M)?"h":"v";if("touches"in R&&I==="h"&&j.type==="range")return!1;var D=locationCouldBeScrolled(I,j);if(!D)return!0;if(D?T=I:(T=I==="v"?"h":"v",D=locationCouldBeScrolled(I,j)),!D)return!1;if(!i.current&&"changedTouches"in R&&(O||M)&&(i.current=T),!T)return!0;var L=i.current||T;return handleScroll(L,b,R,L==="h"?O:M)},[]),p=React__namespace.useCallback(function(R){var b=R;if(!(!lockStack.length||lockStack[lockStack.length-1]!==l)){var A="deltaY"in b?getDeltaXY(b):getTouchXY(b),C=t.current.filter(function(T){return T.name===b.type&&(T.target===b.target||b.target===T.shadowParent)&&deltaCompare(T.delta,A)})[0];if(C&&C.should){b.cancelable&&b.preventDefault();return}if(!C){var O=(u.current.shards||[]).map(extractRef).filter(Boolean).filter(function(T){return T.contains(b.target)}),M=O.length>0?f(b,O[0]):!u.current.noIsolation;M&&b.cancelable&&b.preventDefault()}}},[]),d=React__namespace.useCallback(function(R,b,A,C){var O={name:R,delta:b,target:A,should:C,shadowParent:getOutermostShadowParent(A)};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(M){return M!==O})},1)},[]),m=React__namespace.useCallback(function(R){n.current=getTouchXY(R),i.current=void 0},[]),g=React__namespace.useCallback(function(R){d(R.type,getDeltaXY(R),R.target,f(R,e.lockRef.current))},[]),_=React__namespace.useCallback(function(R){d(R.type,getTouchXY(R),R.target,f(R,e.lockRef.current))},[]);React__namespace.useEffect(function(){return lockStack.push(l),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:_}),document.addEventListener("wheel",p,nonPassive),document.addEventListener("touchmove",p,nonPassive),document.addEventListener("touchstart",m,nonPassive),function(){lockStack=lockStack.filter(function(R){return R!==l}),document.removeEventListener("wheel",p,nonPassive),document.removeEventListener("touchmove",p,nonPassive),document.removeEventListener("touchstart",m,nonPassive)}},[]);var S=e.removeScrollBar,E=e.inert;return React__namespace.createElement(React__namespace.Fragment,null,E?React__namespace.createElement(l,{styles:generateStyle(o)}):null,S?React__namespace.createElement(RemoveScrollBar,{gapMode:e.gapMode}):null)}function getOutermostShadowParent(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=React__namespace.forwardRef(function(e,t){return React__namespace.createElement(RemoveScroll,__assign$1({},e,{ref:t,sideCar:SideCar}))});ReactRemoveScroll.classNames=RemoveScroll.classNames;var getDefaultParent=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={},lockCount=0,unwrapHost=function(e){return e&&(e.host||unwrapHost(e.parentNode))},correctTargets=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=unwrapHost(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},applyAttributeToOthers=function(e,t,n,i){var o=correctTargets(t,Array.isArray(e)?e:[e]);markerMap[n]||(markerMap[n]=new WeakMap);var l=markerMap[n],u=[],f=new Set,p=new Set(o),d=function(g){!g||f.has(g)||(f.add(g),d(g.parentNode))};o.forEach(d);var m=function(g){!g||p.has(g)||Array.prototype.forEach.call(g.children,function(_){if(f.has(_))m(_);else try{var S=_.getAttribute(i),E=S!==null&&S!=="false",R=(counterMap.get(_)||0)+1,b=(l.get(_)||0)+1;counterMap.set(_,R),l.set(_,b),u.push(_),R===1&&E&&uncontrolledNodes.set(_,!0),b===1&&_.setAttribute(n,"true"),E||_.setAttribute(i,"true")}catch(A){console.error("aria-hidden: cannot operate on ",_,A)}})};return m(t),f.clear(),lockCount++,function(){u.forEach(function(g){var _=counterMap.get(g)-1,S=l.get(g)-1;counterMap.set(g,_),l.set(g,S),_||(uncontrolledNodes.has(g)||g.removeAttribute(i),uncontrolledNodes.delete(g)),S||g.removeAttribute(n)}),lockCount--,lockCount||(counterMap=new WeakMap,counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={})}},hideOthers=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=getDefaultParent(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),applyAttributeToOthers(i,o,n,"aria-hidden")):function(){return null}},DIALOG_NAME="Dialog",[createDialogContext,createDialogScope]=createContextScope(DIALOG_NAME),[DialogProvider,useDialogContext]=createDialogContext(DIALOG_NAME),Dialog$1=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:l,modal:u=!0}=e,f=React__namespace.useRef(null),p=React__namespace.useRef(null),[d=!1,m]=useControllableState({prop:i,defaultProp:o,onChange:l});return jsxRuntime.jsx(DialogProvider,{scope:t,triggerRef:f,contentRef:p,contentId:useId(),titleId:useId(),descriptionId:useId(),open:d,onOpenChange:m,onOpenToggle:React__namespace.useCallback(()=>m(g=>!g),[m]),modal:u,children:n})};Dialog$1.displayName=DIALOG_NAME;var TRIGGER_NAME$2="DialogTrigger",DialogTrigger$1=React__namespace.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=useDialogContext(TRIGGER_NAME$2,n),l=useComposedRefs(t,o.triggerRef);return jsxRuntime.jsx(Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":getState(o.open),...i,ref:l,onClick:composeEventHandlers(e.onClick,o.onOpenToggle)})});DialogTrigger$1.displayName=TRIGGER_NAME$2;var PORTAL_NAME$3="DialogPortal",[PortalProvider$2,usePortalContext$2]=createDialogContext(PORTAL_NAME$3,{forceMount:void 0}),DialogPortal$1=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:o}=e,l=useDialogContext(PORTAL_NAME$3,t);return jsxRuntime.jsx(PortalProvider$2,{scope:t,forceMount:n,children:React__namespace.Children.map(i,u=>jsxRuntime.jsx(Presence,{present:n||l.open,children:jsxRuntime.jsx(Portal$3,{asChild:!0,container:o,children:u})}))})};DialogPortal$1.displayName=PORTAL_NAME$3;var OVERLAY_NAME="DialogOverlay",DialogOverlay$1=React__namespace.forwardRef((e,t)=>{const n=usePortalContext$2(OVERLAY_NAME,e.__scopeDialog),{forceMount:i=n.forceMount,...o}=e,l=useDialogContext(OVERLAY_NAME,e.__scopeDialog);return l.modal?jsxRuntime.jsx(Presence,{present:i||l.open,children:jsxRuntime.jsx(DialogOverlayImpl,{...o,ref:t})}):null});DialogOverlay$1.displayName=OVERLAY_NAME;var DialogOverlayImpl=React__namespace.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=useDialogContext(OVERLAY_NAME,n);return jsxRuntime.jsx(ReactRemoveScroll,{as:Slot,allowPinchZoom:!0,shards:[o.contentRef],children:jsxRuntime.jsx(Primitive.div,{"data-state":getState(o.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),CONTENT_NAME$4="DialogContent",DialogContent$1=React__namespace.forwardRef((e,t)=>{const n=usePortalContext$2(CONTENT_NAME$4,e.__scopeDialog),{forceMount:i=n.forceMount,...o}=e,l=useDialogContext(CONTENT_NAME$4,e.__scopeDialog);return jsxRuntime.jsx(Presence,{present:i||l.open,children:l.modal?jsxRuntime.jsx(DialogContentModal,{...o,ref:t}):jsxRuntime.jsx(DialogContentNonModal,{...o,ref:t})})});DialogContent$1.displayName=CONTENT_NAME$4;var DialogContentModal=React__namespace.forwardRef((e,t)=>{const n=useDialogContext(CONTENT_NAME$4,e.__scopeDialog),i=React__namespace.useRef(null),o=useComposedRefs(t,n.contentRef,i);return React__namespace.useEffect(()=>{const l=i.current;if(l)return hideOthers(l)},[]),jsxRuntime.jsx(DialogContentImpl,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:composeEventHandlers(e.onCloseAutoFocus,l=>{var u;l.preventDefault(),(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:composeEventHandlers(e.onPointerDownOutside,l=>{const u=l.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&l.preventDefault()}),onFocusOutside:composeEventHandlers(e.onFocusOutside,l=>l.preventDefault())})}),DialogContentNonModal=React__namespace.forwardRef((e,t)=>{const n=useDialogContext(CONTENT_NAME$4,e.__scopeDialog),i=React__namespace.useRef(!1),o=React__namespace.useRef(!1);return jsxRuntime.jsx(DialogContentImpl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var u,f;(u=e.onCloseAutoFocus)==null||u.call(e,l),l.defaultPrevented||(i.current||(f=n.triggerRef.current)==null||f.focus(),l.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:l=>{var p,d;(p=e.onInteractOutside)==null||p.call(e,l),l.defaultPrevented||(i.current=!0,l.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=l.target;((d=n.triggerRef.current)==null?void 0:d.contains(u))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&o.current&&l.preventDefault()}})}),DialogContentImpl=React__namespace.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:l,...u}=e,f=useDialogContext(CONTENT_NAME$4,n),p=React__namespace.useRef(null),d=useComposedRefs(t,p);return useFocusGuards(),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(FocusScope,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:l,children:jsxRuntime.jsx(DismissableLayer,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":getState(f.open),...u,ref:d,onDismiss:()=>f.onOpenChange(!1)})}),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(TitleWarning,{titleId:f.titleId}),jsxRuntime.jsx(DescriptionWarning,{contentRef:p,descriptionId:f.descriptionId})]})]})}),TITLE_NAME$1="DialogTitle",DialogTitle$1=React__namespace.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=useDialogContext(TITLE_NAME$1,n);return jsxRuntime.jsx(Primitive.h2,{id:o.titleId,...i,ref:t})});DialogTitle$1.displayName=TITLE_NAME$1;var DESCRIPTION_NAME$1="DialogDescription",DialogDescription$1=React__namespace.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=useDialogContext(DESCRIPTION_NAME$1,n);return jsxRuntime.jsx(Primitive.p,{id:o.descriptionId,...i,ref:t})});DialogDescription$1.displayName=DESCRIPTION_NAME$1;var CLOSE_NAME$1="DialogClose",DialogClose$1=React__namespace.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=useDialogContext(CLOSE_NAME$1,n);return jsxRuntime.jsx(Primitive.button,{type:"button",...i,ref:t,onClick:composeEventHandlers(e.onClick,()=>o.onOpenChange(!1))})});DialogClose$1.displayName=CLOSE_NAME$1;function getState(e){return e?"open":"closed"}var TITLE_WARNING_NAME="DialogTitleWarning",[WarningProvider,useWarningContext]=createContext2(TITLE_WARNING_NAME,{contentName:CONTENT_NAME$4,titleName:TITLE_NAME$1,docsSlug:"dialog"}),TitleWarning=({titleId:e})=>{const t=useWarningContext(TITLE_WARNING_NAME),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
191
191
 
192
192
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
193
193
 
194
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},zu="DialogDescriptionWarning",Bu=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Oa(zu).contentName}}.`;return i.useEffect(()=>{var s;const a=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},rn=ya,La=Na,Fa=Sa,Zt=Ea,Jt=Ta,Rt=Pa,er=_a,tr=Ia;const St=({modal:e=!1,...t})=>o.jsx(rn,{modal:e,...t});St.displayName=rn.displayName;const nn=La,$a=Fa,on=tr,an=i.forwardRef(({className:e,...t},r)=>o.jsx(Zt,{ref:r,className:_("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));an.displayName=Zt.displayName;const Et=i.forwardRef(({className:e,children:t,...r},n)=>o.jsxs($a,{children:[o.jsx(an,{}),o.jsxs(Jt,{ref:n,className:_("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-2xl shadow-primary duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,o.jsxs(tr,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[o.jsx(Ir,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Et.displayName=Jt.displayName;const rr=({className:e,...t})=>o.jsx("div",{className:_("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});rr.displayName="DialogHeader";const sn=({className:e,...t})=>o.jsx("div",{className:_("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});sn.displayName="DialogFooter";const nr=i.forwardRef(({className:e,...t},r)=>o.jsx(Rt,{ref:r,className:_("text-lg font-semibold leading-none tracking-tight",e),...t}));nr.displayName=Rt.displayName;const cn=i.forwardRef(({className:e,...t},r)=>o.jsx(er,{ref:r,className:_("text-sm text-muted-foreground",e),...t}));cn.displayName=er.displayName;function ln(e){const t=e+"CollectionProvider",[r,n]=Be(t),[a,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=m=>{const{scope:b,children:g}=m,w=H.useRef(null),v=H.useRef(new Map).current;return o.jsx(a,{scope:b,itemMap:v,collectionRef:w,children:g})};c.displayName=t;const l=e+"CollectionSlot",u=H.forwardRef((m,b)=>{const{scope:g,children:w}=m,v=s(l,g),y=oe(b,v.collectionRef);return o.jsx(ye,{ref:y,children:w})});u.displayName=l;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=H.forwardRef((m,b)=>{const{scope:g,children:w,...v}=m,y=H.useRef(null),x=oe(b,y),N=s(d,g);return H.useEffect(()=>(N.itemMap.set(y,{ref:y,...v}),()=>void N.itemMap.delete(y))),o.jsx(ye,{[f]:"",ref:x,children:w})});p.displayName=d;function h(m){const b=s(e+"CollectionConsumer",m);return H.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const v=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((N,E)=>v.indexOf(N.ref.current)-v.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:c,Slot:u,ItemSlot:p},h,n]}var Wu=i.createContext(void 0);function za(e){const t=i.useContext(Wu);return e||t||"ltr"}const Vu=["top","right","bottom","left"],Ge=Math.min,me=Math.max,or=Math.round,ar=Math.floor,De=e=>({x:e,y:e}),Gu={left:"right",right:"left",bottom:"top",top:"bottom"},Uu={start:"end",end:"start"};function dn(e,t,r){return me(e,Ge(t,r))}function Le(e,t){return typeof e=="function"?e(t):e}function Fe(e){return e.split("-")[0]}function ut(e){return e.split("-")[1]}function un(e){return e==="x"?"y":"x"}function fn(e){return e==="y"?"height":"width"}function Ue(e){return["top","bottom"].includes(Fe(e))?"y":"x"}function pn(e){return un(Ue(e))}function ju(e,t,r){r===void 0&&(r=!1);const n=ut(e),a=pn(e),s=fn(a);let c=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=sr(c)),[c,sr(c)]}function Hu(e){const t=sr(e);return[hn(e),t,hn(t)]}function hn(e){return e.replace(/start|end/g,t=>Uu[t])}function Ku(e,t,r){const n=["left","right"],a=["right","left"],s=["top","bottom"],c=["bottom","top"];switch(e){case"top":case"bottom":return r?t?a:n:t?n:a;case"left":case"right":return t?s:c;default:return[]}}function Yu(e,t,r,n){const a=ut(e);let s=Ku(Fe(e),r==="start",n);return a&&(s=s.map(c=>c+"-"+a),t&&(s=s.concat(s.map(hn)))),s}function sr(e){return e.replace(/left|right|bottom|top/g,t=>Gu[t])}function qu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ba(e){return typeof e!="number"?qu(e):{top:e,right:e,bottom:e,left:e}}function ir(e){const{x:t,y:r,width:n,height:a}=e;return{width:n,height:a,top:r,left:t,right:t+n,bottom:r+a,x:t,y:r}}function Wa(e,t,r){let{reference:n,floating:a}=e;const s=Ue(t),c=pn(t),l=fn(c),u=Fe(t),d=s==="y",f=n.x+n.width/2-a.width/2,p=n.y+n.height/2-a.height/2,h=n[l]/2-a[l]/2;let m;switch(u){case"top":m={x:f,y:n.y-a.height};break;case"bottom":m={x:f,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:p};break;case"left":m={x:n.x-a.width,y:p};break;default:m={x:n.x,y:n.y}}switch(ut(t)){case"start":m[c]-=h*(r&&d?-1:1);break;case"end":m[c]+=h*(r&&d?-1:1);break}return m}const Xu=async(e,t,r)=>{const{placement:n="bottom",strategy:a="absolute",middleware:s=[],platform:c}=r,l=s.filter(Boolean),u=await(c.isRTL==null?void 0:c.isRTL(t));let d=await c.getElementRects({reference:e,floating:t,strategy:a}),{x:f,y:p}=Wa(d,n,u),h=n,m={},b=0;for(let g=0;g<l.length;g++){const{name:w,fn:v}=l[g],{x:y,y:x,data:N,reset:E}=await v({x:f,y:p,initialPlacement:n,placement:h,strategy:a,middlewareData:m,rects:d,platform:c,elements:{reference:e,floating:t}});f=y??f,p=x??p,m={...m,[w]:{...m[w],...N}},E&&b<=50&&(b++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(d=E.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:a}):E.rects),{x:f,y:p}=Wa(d,h,u)),g=-1)}return{x:f,y:p,placement:h,strategy:a,middlewareData:m}};async function Tt(e,t){var r;t===void 0&&(t={});const{x:n,y:a,platform:s,rects:c,elements:l,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=Le(t,e),b=Ba(m),w=l[h?p==="floating"?"reference":"floating":p],v=ir(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(w)))==null||r?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:f,strategy:u})),y=p==="floating"?{x:n,y:a,width:c.floating.width,height:c.floating.height}:c.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),N=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},E=ir(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:u}):y);return{top:(v.top-E.top+b.top)/N.y,bottom:(E.bottom-v.bottom+b.bottom)/N.y,left:(v.left-E.left+b.left)/N.x,right:(E.right-v.right+b.right)/N.x}}const Qu=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:a,rects:s,platform:c,elements:l,middlewareData:u}=t,{element:d,padding:f=0}=Le(e,t)||{};if(d==null)return{};const p=Ba(f),h={x:r,y:n},m=pn(a),b=fn(m),g=await c.getDimensions(d),w=m==="y",v=w?"top":"left",y=w?"bottom":"right",x=w?"clientHeight":"clientWidth",N=s.reference[b]+s.reference[m]-h[m]-s.floating[b],E=h[m]-s.reference[m],C=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d));let T=C?C[x]:0;(!T||!await(c.isElement==null?void 0:c.isElement(C)))&&(T=l.floating[x]||s.floating[b]);const $=N/2-E/2,O=T/2-g[b]/2-1,B=Ge(p[v],O),K=Ge(p[y],O),F=B,L=T-g[b]-K,P=T/2-g[b]/2+$,V=dn(F,P,L),A=!u.arrow&&ut(a)!=null&&P!==V&&s.reference[b]/2-(P<F?B:K)-g[b]/2<0,X=A?P<F?P-F:P-L:0;return{[m]:h[m]+X,data:{[m]:V,centerOffset:P-V-X,...A&&{alignmentOffset:X}},reset:A}}}),Zu=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:a,middlewareData:s,rects:c,initialPlacement:l,platform:u,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...w}=Le(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const v=Fe(a),y=Ue(l),x=Fe(l)===l,N=await(u.isRTL==null?void 0:u.isRTL(d.floating)),E=h||(x||!g?[sr(l)]:Hu(l)),C=b!=="none";!h&&C&&E.push(...Yu(l,g,b,N));const T=[l,...E],$=await Tt(t,w),O=[];let B=((n=s.flip)==null?void 0:n.overflows)||[];if(f&&O.push($[v]),p){const P=ju(a,c,N);O.push($[P[0]],$[P[1]])}if(B=[...B,{placement:a,overflows:O}],!O.every(P=>P<=0)){var K,F;const P=(((K=s.flip)==null?void 0:K.index)||0)+1,V=T[P];if(V)return{data:{index:P,overflows:B},reset:{placement:V}};let A=(F=B.filter(X=>X.overflows[0]<=0).sort((X,D)=>X.overflows[1]-D.overflows[1])[0])==null?void 0:F.placement;if(!A)switch(m){case"bestFit":{var L;const X=(L=B.filter(D=>{if(C){const M=Ue(D.placement);return M===y||M==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(M=>M>0).reduce((M,Y)=>M+Y,0)]).sort((D,M)=>D[1]-M[1])[0])==null?void 0:L[0];X&&(A=X);break}case"initialPlacement":A=l;break}if(a!==A)return{reset:{placement:A}}}return{}}}};function Va(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ga(e){return Vu.some(t=>e[t]>=0)}const Ju=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...a}=Le(e,t);switch(n){case"referenceHidden":{const s=await Tt(t,{...a,elementContext:"reference"}),c=Va(s,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Ga(c)}}}case"escaped":{const s=await Tt(t,{...a,altBoundary:!0}),c=Va(s,r.floating);return{data:{escapedOffsets:c,escaped:Ga(c)}}}default:return{}}}}};async function Ru(e,t){const{placement:r,platform:n,elements:a}=e,s=await(n.isRTL==null?void 0:n.isRTL(a.floating)),c=Fe(r),l=ut(r),u=Ue(r)==="y",d=["left","top"].includes(c)?-1:1,f=s&&u?-1:1,p=Le(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof b=="number"&&(m=l==="end"?b*-1:b),u?{x:m*f,y:h*d}:{x:h*d,y:m*f}}const ef=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:a,y:s,placement:c,middlewareData:l}=t,u=await Ru(t,e);return c===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:a+u.x,y:s+u.y,data:{...u,placement:c}}}}},tf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:a}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:w=>{let{x:v,y}=w;return{x:v,y}}},...u}=Le(e,t),d={x:r,y:n},f=await Tt(t,u),p=Ue(Fe(a)),h=un(p);let m=d[h],b=d[p];if(s){const w=h==="y"?"top":"left",v=h==="y"?"bottom":"right",y=m+f[w],x=m-f[v];m=dn(y,m,x)}if(c){const w=p==="y"?"top":"left",v=p==="y"?"bottom":"right",y=b+f[w],x=b-f[v];b=dn(y,b,x)}const g=l.fn({...t,[h]:m,[p]:b});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:s,[p]:c}}}}}},rf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:s,middlewareData:c}=t,{offset:l=0,mainAxis:u=!0,crossAxis:d=!0}=Le(e,t),f={x:r,y:n},p=Ue(a),h=un(p);let m=f[h],b=f[p];const g=Le(l,t),w=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const x=h==="y"?"height":"width",N=s.reference[h]-s.floating[x]+w.mainAxis,E=s.reference[h]+s.reference[x]-w.mainAxis;m<N?m=N:m>E&&(m=E)}if(d){var v,y;const x=h==="y"?"width":"height",N=["top","left"].includes(Fe(a)),E=s.reference[p]-s.floating[x]+(N&&((v=c.offset)==null?void 0:v[p])||0)+(N?0:w.crossAxis),C=s.reference[p]+s.reference[x]+(N?0:((y=c.offset)==null?void 0:y[p])||0)-(N?w.crossAxis:0);b<E?b=E:b>C&&(b=C)}return{[h]:m,[p]:b}}}},nf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:a,rects:s,platform:c,elements:l}=t,{apply:u=()=>{},...d}=Le(e,t),f=await Tt(t,d),p=Fe(a),h=ut(a),m=Ue(a)==="y",{width:b,height:g}=s.floating;let w,v;p==="top"||p==="bottom"?(w=p,v=h===(await(c.isRTL==null?void 0:c.isRTL(l.floating))?"start":"end")?"left":"right"):(v=p,w=h==="end"?"top":"bottom");const y=g-f.top-f.bottom,x=b-f.left-f.right,N=Ge(g-f[w],y),E=Ge(b-f[v],x),C=!t.middlewareData.shift;let T=N,$=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&($=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=y),C&&!h){const B=me(f.left,0),K=me(f.right,0),F=me(f.top,0),L=me(f.bottom,0);m?$=b-2*(B!==0||K!==0?B+K:me(f.left,f.right)):T=g-2*(F!==0||L!==0?F+L:me(f.top,f.bottom))}await u({...t,availableWidth:$,availableHeight:T});const O=await c.getDimensions(l.floating);return b!==O.width||g!==O.height?{reset:{rects:!0}}:{}}}};function cr(){return typeof window<"u"}function ft(e){return Ua(e)?(e.nodeName||"").toLowerCase():"#document"}function be(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(e){var t;return(t=(Ua(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ua(e){return cr()?e instanceof Node||e instanceof be(e).Node:!1}function Se(e){return cr()?e instanceof Element||e instanceof be(e).Element:!1}function ke(e){return cr()?e instanceof HTMLElement||e instanceof be(e).HTMLElement:!1}function ja(e){return!cr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof be(e).ShadowRoot}function Mt(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=Ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function of(e){return["table","td","th"].includes(ft(e))}function lr(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function gn(e){const t=vn(),r=Se(e)?Ee(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function af(e){let t=je(e);for(;ke(t)&&!pt(t);){if(gn(t))return t;if(lr(t))return null;t=je(t)}return null}function vn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pt(e){return["html","body","#document"].includes(ft(e))}function Ee(e){return be(e).getComputedStyle(e)}function dr(e){return Se(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function je(e){if(ft(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ja(e)&&e.host||Ie(e);return ja(t)?t.host:t}function Ha(e){const t=je(e);return pt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ke(t)&&Mt(t)?t:Ha(t)}function Pt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const a=Ha(e),s=a===((n=e.ownerDocument)==null?void 0:n.body),c=be(a);if(s){const l=mn(c);return t.concat(c,c.visualViewport||[],Mt(a)?a:[],l&&r?Pt(l):[])}return t.concat(a,Pt(a,[],r))}function mn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ka(e){const t=Ee(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=ke(e),s=a?e.offsetWidth:r,c=a?e.offsetHeight:n,l=or(r)!==s||or(n)!==c;return l&&(r=s,n=c),{width:r,height:n,$:l}}function bn(e){return Se(e)?e:e.contextElement}function ht(e){const t=bn(e);if(!ke(t))return De(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:s}=Ka(t);let c=(s?or(r.width):r.width)/n,l=(s?or(r.height):r.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}const sf=De(0);function Ya(e){const t=be(e);return!vn()||!t.visualViewport?sf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cf(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==be(e)?!1:t}function Ze(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),s=bn(e);let c=De(1);t&&(n?Se(n)&&(c=ht(n)):c=ht(e));const l=cf(s,r,n)?Ya(s):De(0);let u=(a.left+l.x)/c.x,d=(a.top+l.y)/c.y,f=a.width/c.x,p=a.height/c.y;if(s){const h=be(s),m=n&&Se(n)?be(n):n;let b=h,g=mn(b);for(;g&&n&&m!==b;){const w=ht(g),v=g.getBoundingClientRect(),y=Ee(g),x=v.left+(g.clientLeft+parseFloat(y.paddingLeft))*w.x,N=v.top+(g.clientTop+parseFloat(y.paddingTop))*w.y;u*=w.x,d*=w.y,f*=w.x,p*=w.y,u+=x,d+=N,b=be(g),g=mn(b)}}return ir({width:f,height:p,x:u,y:d})}function wn(e,t){const r=dr(e).scrollLeft;return t?t.left+r:Ze(Ie(e)).left+r}function qa(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-(r?0:wn(e,n)),s=n.top+t.scrollTop;return{x:a,y:s}}function lf(e){let{elements:t,rect:r,offsetParent:n,strategy:a}=e;const s=a==="fixed",c=Ie(n),l=t?lr(t.floating):!1;if(n===c||l&&s)return r;let u={scrollLeft:0,scrollTop:0},d=De(1);const f=De(0),p=ke(n);if((p||!p&&!s)&&((ft(n)!=="body"||Mt(c))&&(u=dr(n)),ke(n))){const m=Ze(n);d=ht(n),f.x=m.x+n.clientLeft,f.y=m.y+n.clientTop}const h=c&&!p&&!s?qa(c,u,!0):De(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-u.scrollLeft*d.x+f.x+h.x,y:r.y*d.y-u.scrollTop*d.y+f.y+h.y}}function df(e){return Array.from(e.getClientRects())}function uf(e){const t=Ie(e),r=dr(e),n=e.ownerDocument.body,a=me(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=me(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let c=-r.scrollLeft+wn(e);const l=-r.scrollTop;return Ee(n).direction==="rtl"&&(c+=me(t.clientWidth,n.clientWidth)-a),{width:a,height:s,x:c,y:l}}function ff(e,t){const r=be(e),n=Ie(e),a=r.visualViewport;let s=n.clientWidth,c=n.clientHeight,l=0,u=0;if(a){s=a.width,c=a.height;const d=vn();(!d||d&&t==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:s,height:c,x:l,y:u}}function pf(e,t){const r=Ze(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,s=ke(e)?ht(e):De(1),c=e.clientWidth*s.x,l=e.clientHeight*s.y,u=a*s.x,d=n*s.y;return{width:c,height:l,x:u,y:d}}function Xa(e,t,r){let n;if(t==="viewport")n=ff(e,r);else if(t==="document")n=uf(Ie(e));else if(Se(t))n=pf(t,r);else{const a=Ya(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return ir(n)}function Qa(e,t){const r=je(e);return r===t||!Se(r)||pt(r)?!1:Ee(r).position==="fixed"||Qa(r,t)}function hf(e,t){const r=t.get(e);if(r)return r;let n=Pt(e,[],!1).filter(l=>Se(l)&&ft(l)!=="body"),a=null;const s=Ee(e).position==="fixed";let c=s?je(e):e;for(;Se(c)&&!pt(c);){const l=Ee(c),u=gn(c);!u&&l.position==="fixed"&&(a=null),(s?!u&&!a:!u&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Mt(c)&&!u&&Qa(e,c))?n=n.filter(f=>f!==c):a=l,c=je(c)}return t.set(e,n),n}function gf(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const c=[...r==="clippingAncestors"?lr(t)?[]:hf(t,this._c):[].concat(r),n],l=c[0],u=c.reduce((d,f)=>{const p=Xa(t,f,a);return d.top=me(p.top,d.top),d.right=Ge(p.right,d.right),d.bottom=Ge(p.bottom,d.bottom),d.left=me(p.left,d.left),d},Xa(t,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function vf(e){const{width:t,height:r}=Ka(e);return{width:t,height:r}}function mf(e,t,r){const n=ke(t),a=Ie(t),s=r==="fixed",c=Ze(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const u=De(0);if(n||!n&&!s)if((ft(t)!=="body"||Mt(a))&&(l=dr(t)),n){const h=Ze(t,!0,s,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else a&&(u.x=wn(a));const d=a&&!n&&!s?qa(a,l):De(0),f=c.left+l.scrollLeft-u.x-d.x,p=c.top+l.scrollTop-u.y-d.y;return{x:f,y:p,width:c.width,height:c.height}}function yn(e){return Ee(e).position==="static"}function Za(e,t){if(!ke(e)||Ee(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ie(e)===r&&(r=r.ownerDocument.body),r}function Ja(e,t){const r=be(e);if(lr(e))return r;if(!ke(e)){let a=je(e);for(;a&&!pt(a);){if(Se(a)&&!yn(a))return a;a=je(a)}return r}let n=Za(e,t);for(;n&&of(n)&&yn(n);)n=Za(n,t);return n&&pt(n)&&yn(n)&&!gn(n)?r:n||af(e)||r}const bf=async function(e){const t=this.getOffsetParent||Ja,r=this.getDimensions,n=await r(e.floating);return{reference:mf(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function wf(e){return Ee(e).direction==="rtl"}const yf={convertOffsetParentRelativeRectToViewportRelativeRect:lf,getDocumentElement:Ie,getClippingRect:gf,getOffsetParent:Ja,getElementRects:bf,getClientRects:df,getDimensions:vf,getScale:ht,isElement:Se,isRTL:wf};function Ra(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xf(e,t){let r=null,n;const a=Ie(e);function s(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function c(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),s();const d=e.getBoundingClientRect(),{left:f,top:p,width:h,height:m}=d;if(l||t(),!h||!m)return;const b=ar(p),g=ar(a.clientWidth-(f+h)),w=ar(a.clientHeight-(p+m)),v=ar(f),x={rootMargin:-b+"px "+-g+"px "+-w+"px "+-v+"px",threshold:me(0,Ge(1,u))||1};let N=!0;function E(C){const T=C[0].intersectionRatio;if(T!==u){if(!N)return c();T?c(!1,T):n=setTimeout(()=>{c(!1,1e-7)},1e3)}T===1&&!Ra(d,e.getBoundingClientRect())&&c(),N=!1}try{r=new IntersectionObserver(E,{...x,root:a.ownerDocument})}catch{r=new IntersectionObserver(E,x)}r.observe(e)}return c(!0),s}function Nf(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,d=bn(e),f=a||s?[...d?Pt(d):[],...Pt(t)]:[];f.forEach(v=>{a&&v.addEventListener("scroll",r,{passive:!0}),s&&v.addEventListener("resize",r)});const p=d&&l?xf(d,r):null;let h=-1,m=null;c&&(m=new ResizeObserver(v=>{let[y]=v;y&&y.target===d&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),r()}),d&&!u&&m.observe(d),m.observe(t));let b,g=u?Ze(e):null;u&&w();function w(){const v=Ze(e);g&&!Ra(g,v)&&r(),g=v,b=requestAnimationFrame(w)}return r(),()=>{var v;f.forEach(y=>{a&&y.removeEventListener("scroll",r),s&&y.removeEventListener("resize",r)}),p==null||p(),(v=m)==null||v.disconnect(),m=null,u&&cancelAnimationFrame(b)}}const Cf=ef,Sf=tf,Ef=Zu,Tf=nf,Mf=Ju,es=Qu,Pf=rf,Af=(e,t,r)=>{const n=new Map,a={platform:yf,...r},s={...a.platform,_c:n};return Xu(e,t,{...a,platform:s})};var ur=typeof document<"u"?H.useLayoutEffect:H.useEffect;function fr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!fr(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const s=a[n];if(!(s==="_owner"&&e.$$typeof)&&!fr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ts(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rs(e,t){const r=ts(e);return Math.round(t*r)/r}function xn(e){const t=i.useRef(e);return ur(()=>{t.current=e}),t}function _f(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:s,floating:c}={},transform:l=!0,whileElementsMounted:u,open:d}=e,[f,p]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=i.useState(n);fr(h,n)||m(n);const[b,g]=i.useState(null),[w,v]=i.useState(null),y=i.useCallback(D=>{D!==C.current&&(C.current=D,g(D))},[]),x=i.useCallback(D=>{D!==T.current&&(T.current=D,v(D))},[]),N=s||b,E=c||w,C=i.useRef(null),T=i.useRef(null),$=i.useRef(f),O=u!=null,B=xn(u),K=xn(a),F=xn(d),L=i.useCallback(()=>{if(!C.current||!T.current)return;const D={placement:t,strategy:r,middleware:h};K.current&&(D.platform=K.current),Af(C.current,T.current,D).then(M=>{const Y={...M,isPositioned:F.current!==!1};P.current&&!fr($.current,Y)&&($.current=Y,_r.flushSync(()=>{p(Y)}))})},[h,t,r,K,F]);ur(()=>{d===!1&&$.current.isPositioned&&($.current.isPositioned=!1,p(D=>({...D,isPositioned:!1})))},[d]);const P=i.useRef(!1);ur(()=>(P.current=!0,()=>{P.current=!1}),[]),ur(()=>{if(N&&(C.current=N),E&&(T.current=E),N&&E){if(B.current)return B.current(N,E,L);L()}},[N,E,L,B,O]);const V=i.useMemo(()=>({reference:C,floating:T,setReference:y,setFloating:x}),[y,x]),A=i.useMemo(()=>({reference:N,floating:E}),[N,E]),X=i.useMemo(()=>{const D={position:r,left:0,top:0};if(!A.floating)return D;const M=rs(A.floating,f.x),Y=rs(A.floating,f.y);return l?{...D,transform:"translate("+M+"px, "+Y+"px)",...ts(A.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:M,top:Y}},[r,l,A.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:L,refs:V,elements:A,floatingStyles:X}),[f,L,V,A,X])}const Df=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:a}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?es({element:n.current,padding:a}).fn(r):{}:n?es({element:n,padding:a}).fn(r):{}}}},If=(e,t)=>({...Cf(e),options:[e,t]}),kf=(e,t)=>({...Sf(e),options:[e,t]}),Of=(e,t)=>({...Pf(e),options:[e,t]}),Lf=(e,t)=>({...Ef(e),options:[e,t]}),Ff=(e,t)=>({...Tf(e),options:[e,t]}),$f=(e,t)=>({...Mf(e),options:[e,t]}),zf=(e,t)=>({...Df(e),options:[e,t]});var Bf="Arrow",ns=i.forwardRef((e,t)=>{const{children:r,width:n=10,height:a=5,...s}=e;return o.jsx(Z.svg,{...s,ref:t,width:n,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:o.jsx("polygon",{points:"0,0 30,0 15,10"})})});ns.displayName=Bf;var Wf=ns;function Vf(e){const[t,r]=i.useState(void 0);return We(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let c,l;if("borderBoxSize"in s){const u=s.borderBoxSize,d=Array.isArray(u)?u[0]:u;c=d.inlineSize,l=d.blockSize}else c=e.offsetWidth,l=e.offsetHeight;r({width:c,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Nn="Popper",[os,pr]=Be(Nn),[Gf,as]=os(Nn),ss=e=>{const{__scopePopper:t,children:r}=e,[n,a]=i.useState(null);return o.jsx(Gf,{scope:t,anchor:n,onAnchorChange:a,children:r})};ss.displayName=Nn;var is="PopperAnchor",cs=i.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...a}=e,s=as(is,r),c=i.useRef(null),l=oe(t,c);return i.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||c.current)}),n?null:o.jsx(Z.div,{...a,ref:l})});cs.displayName=is;var Cn="PopperContent",[Uf,jf]=os(Cn),ls=i.forwardRef((e,t)=>{var ae,Me,de,Pe,G,J;const{__scopePopper:r,side:n="bottom",sideOffset:a=0,align:s="center",alignOffset:c=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:b,...g}=e,w=as(Cn,r),[v,y]=i.useState(null),x=oe(t,he=>y(he)),[N,E]=i.useState(null),C=Vf(N),T=(C==null?void 0:C.width)??0,$=(C==null?void 0:C.height)??0,O=n+(s!=="center"?"-"+s:""),B=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},K=Array.isArray(d)?d:[d],F=K.length>0,L={padding:B,boundary:K.filter(Kf),altBoundary:F},{refs:P,floatingStyles:V,placement:A,isPositioned:X,middlewareData:D}=_f({strategy:"fixed",placement:O,whileElementsMounted:(...he)=>Nf(...he,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[If({mainAxis:a+$,alignmentAxis:c}),u&&kf({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Of():void 0,...L}),u&&Lf({...L}),Ff({...L,apply:({elements:he,rects:W,availableWidth:j,availableHeight:ue})=>{const{width:ge,height:ve}=W.reference,R=he.floating.style;R.setProperty("--radix-popper-available-width",`${j}px`),R.setProperty("--radix-popper-available-height",`${ue}px`),R.setProperty("--radix-popper-anchor-width",`${ge}px`),R.setProperty("--radix-popper-anchor-height",`${ve}px`)}}),N&&zf({element:N,padding:l}),Yf({arrowWidth:T,arrowHeight:$}),h&&$f({strategy:"referenceHidden",...L})]}),[M,Y]=fs(A),Q=fe(b);We(()=>{X&&(Q==null||Q())},[X,Q]);const ee=(ae=D.arrow)==null?void 0:ae.x,te=(Me=D.arrow)==null?void 0:Me.y,ne=((de=D.arrow)==null?void 0:de.centerOffset)!==0,[se,le]=i.useState();return We(()=>{v&&le(window.getComputedStyle(v).zIndex)},[v]),o.jsx("div",{ref:P.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:X?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:se,"--radix-popper-transform-origin":[(Pe=D.transformOrigin)==null?void 0:Pe.x,(G=D.transformOrigin)==null?void 0:G.y].join(" "),...((J=D.hide)==null?void 0:J.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:o.jsx(Uf,{scope:r,placedSide:M,onArrowChange:E,arrowX:ee,arrowY:te,shouldHideArrow:ne,children:o.jsx(Z.div,{"data-side":M,"data-align":Y,...g,ref:x,style:{...g.style,animation:X?void 0:"none"}})})})});ls.displayName=Cn;var ds="PopperArrow",Hf={top:"bottom",right:"left",bottom:"top",left:"right"},us=i.forwardRef(function(t,r){const{__scopePopper:n,...a}=t,s=jf(ds,n),c=Hf[s.placedSide];return o.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:o.jsx(Wf,{...a,ref:r,style:{...a.style,display:"block"}})})});us.displayName=ds;function Kf(e){return e!==null}var Yf=e=>({name:"transformOrigin",options:e,fn(t){var w,v,y;const{placement:r,rects:n,middlewareData:a}=t,c=((w=a.arrow)==null?void 0:w.centerOffset)!==0,l=c?0:e.arrowWidth,u=c?0:e.arrowHeight,[d,f]=fs(r),p={start:"0%",center:"50%",end:"100%"}[f],h=(((v=a.arrow)==null?void 0:v.x)??0)+l/2,m=(((y=a.arrow)==null?void 0:y.y)??0)+u/2;let b="",g="";return d==="bottom"?(b=c?p:`${h}px`,g=`${-u}px`):d==="top"?(b=c?p:`${h}px`,g=`${n.floating.height+u}px`):d==="right"?(b=`${-u}px`,g=c?p:`${m}px`):d==="left"&&(b=`${n.floating.width+u}px`,g=c?p:`${m}px`),{data:{x:b,y:g}}}});function fs(e){const[t,r="center"]=e.split("-");return[t,r]}var Sn=ss,ps=cs,hs=ls,gs=us,En="rovingFocusGroup.onEntryFocus",qf={bubbles:!1,cancelable:!0},hr="RovingFocusGroup",[Tn,vs,Xf]=ln(hr),[Qf,ms]=Be(hr,[Xf]),[Zf,Jf]=Qf(hr),bs=i.forwardRef((e,t)=>o.jsx(Tn.Provider,{scope:e.__scopeRovingFocusGroup,children:o.jsx(Tn.Slot,{scope:e.__scopeRovingFocusGroup,children:o.jsx(Rf,{...e,ref:t})})}));bs.displayName=hr;var Rf=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,h=i.useRef(null),m=oe(t,h),b=za(s),[g=null,w]=st({prop:c,defaultProp:l,onChange:u}),[v,y]=i.useState(!1),x=fe(d),N=vs(r),E=i.useRef(!1),[C,T]=i.useState(0);return i.useEffect(()=>{const $=h.current;if($)return $.addEventListener(En,x),()=>$.removeEventListener(En,x)},[x]),o.jsx(Zf,{scope:r,orientation:n,dir:b,loop:a,currentTabStopId:g,onItemFocus:i.useCallback($=>w($),[w]),onItemShiftTab:i.useCallback(()=>y(!0),[]),onFocusableItemAdd:i.useCallback(()=>T($=>$+1),[]),onFocusableItemRemove:i.useCallback(()=>T($=>$-1),[]),children:o.jsx(Z.div,{tabIndex:v||C===0?-1:0,"data-orientation":n,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:z(e.onMouseDown,()=>{E.current=!0}),onFocus:z(e.onFocus,$=>{const O=!E.current;if($.target===$.currentTarget&&O&&!v){const B=new CustomEvent(En,qf);if($.currentTarget.dispatchEvent(B),!B.defaultPrevented){const K=N().filter(A=>A.focusable),F=K.find(A=>A.active),L=K.find(A=>A.id===g),V=[F,L,...K].filter(Boolean).map(A=>A.ref.current);xs(V,f)}}E.current=!1}),onBlur:z(e.onBlur,()=>y(!1))})})}),ws="RovingFocusGroupItem",ys=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:s,...c}=e,l=Oe(),u=s||l,d=Jf(ws,r),f=d.currentTabStopId===u,p=vs(r),{onFocusableItemAdd:h,onFocusableItemRemove:m}=d;return i.useEffect(()=>{if(n)return h(),()=>m()},[n,h,m]),o.jsx(Tn.ItemSlot,{scope:r,id:u,focusable:n,active:a,children:o.jsx(Z.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...c,ref:t,onMouseDown:z(e.onMouseDown,b=>{n?d.onItemFocus(u):b.preventDefault()}),onFocus:z(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:z(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){d.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const g=rp(b,d.orientation,d.dir);if(g!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let v=p().filter(y=>y.focusable).map(y=>y.ref.current);if(g==="last")v.reverse();else if(g==="prev"||g==="next"){g==="prev"&&v.reverse();const y=v.indexOf(b.currentTarget);v=d.loop?np(v,y+1):v.slice(y+1)}setTimeout(()=>xs(v))}})})})});ys.displayName=ws;var ep={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tp(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function rp(e,t,r){const n=tp(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return ep[n]}function xs(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function np(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var op=bs,ap=ys,Mn=["Enter"," "],sp=["ArrowDown","PageUp","Home"],Ns=["ArrowUp","PageDown","End"],ip=[...sp,...Ns],cp={ltr:[...Mn,"ArrowRight"],rtl:[...Mn,"ArrowLeft"]},lp={ltr:["ArrowLeft"],rtl:["ArrowRight"]},At="Menu",[_t,dp,up]=ln(At),[Je,Cs]=Be(At,[up,pr,ms]),Dt=pr(),Ss=ms(),[Es,He]=Je(At),[fp,It]=Je(At),Ts=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:a,onOpenChange:s,modal:c=!0}=e,l=Dt(t),[u,d]=i.useState(null),f=i.useRef(!1),p=fe(s),h=za(a);return i.useEffect(()=>{const m=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),o.jsx(Sn,{...l,children:o.jsx(Es,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:d,children:o.jsx(fp,{scope:t,onClose:i.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:h,modal:c,children:n})})})};Ts.displayName=At;var pp="MenuAnchor",Pn=i.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,a=Dt(r);return o.jsx(ps,{...a,...n,ref:t})});Pn.displayName=pp;var An="MenuPortal",[hp,Ms]=Je(An,{forceMount:void 0}),Ps=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:a}=e,s=He(An,t);return o.jsx(hp,{scope:t,forceMount:r,children:o.jsx(Ne,{present:r||s.open,children:o.jsx(Ct,{asChild:!0,container:a,children:n})})})};Ps.displayName=An;var xe="MenuContent",[gp,_n]=Je(xe),As=i.forwardRef((e,t)=>{const r=Ms(xe,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,s=He(xe,e.__scopeMenu),c=It(xe,e.__scopeMenu);return o.jsx(_t.Provider,{scope:e.__scopeMenu,children:o.jsx(Ne,{present:n||s.open,children:o.jsx(_t.Slot,{scope:e.__scopeMenu,children:c.modal?o.jsx(vp,{...a,ref:t}):o.jsx(mp,{...a,ref:t})})})})}),vp=i.forwardRef((e,t)=>{const r=He(xe,e.__scopeMenu),n=i.useRef(null),a=oe(t,n);return i.useEffect(()=>{const s=n.current;if(s)return ba(s)},[]),o.jsx(Dn,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:z(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),mp=i.forwardRef((e,t)=>{const r=He(xe,e.__scopeMenu);return o.jsx(Dn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Dn=i.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:m,disableOutsideScroll:b,...g}=e,w=He(xe,r),v=It(xe,r),y=Dt(r),x=Ss(r),N=dp(r),[E,C]=i.useState(null),T=i.useRef(null),$=oe(t,T,w.onContentChange),O=i.useRef(0),B=i.useRef(""),K=i.useRef(0),F=i.useRef(null),L=i.useRef("right"),P=i.useRef(0),V=b?Qr:i.Fragment,A=b?{as:ye,allowPinchZoom:!0}:void 0,X=M=>{var ae,Me;const Y=B.current+M,Q=N().filter(de=>!de.disabled),ee=document.activeElement,te=(ae=Q.find(de=>de.ref.current===ee))==null?void 0:ae.textValue,ne=Q.map(de=>de.textValue),se=Ap(ne,Y,te),le=(Me=Q.find(de=>de.textValue===se))==null?void 0:Me.ref.current;(function de(Pe){B.current=Pe,window.clearTimeout(O.current),Pe!==""&&(O.current=window.setTimeout(()=>de(""),1e3))})(Y),le&&setTimeout(()=>le.focus())};i.useEffect(()=>()=>window.clearTimeout(O.current),[]),na();const D=i.useCallback(M=>{var Q,ee;return L.current===((Q=F.current)==null?void 0:Q.side)&&Dp(M,(ee=F.current)==null?void 0:ee.area)},[]);return o.jsx(gp,{scope:r,searchRef:B,onItemEnter:i.useCallback(M=>{D(M)&&M.preventDefault()},[D]),onItemLeave:i.useCallback(M=>{var Y;D(M)||((Y=T.current)==null||Y.focus(),C(null))},[D]),onTriggerLeave:i.useCallback(M=>{D(M)&&M.preventDefault()},[D]),pointerGraceTimerRef:K,onPointerGraceIntentChange:i.useCallback(M=>{F.current=M},[]),children:o.jsx(V,{...A,children:o.jsx(jr,{asChild:!0,trapped:a,onMountAutoFocus:z(s,M=>{var Y;M.preventDefault(),(Y=T.current)==null||Y.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:o.jsx(Nt,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:h,onDismiss:m,children:o.jsx(op,{asChild:!0,...x,dir:v.dir,orientation:"vertical",loop:n,currentTabStopId:E,onCurrentTabStopIdChange:C,onEntryFocus:z(u,M=>{v.isUsingKeyboardRef.current||M.preventDefault()}),preventScrollOnEntryFocus:!0,children:o.jsx(hs,{role:"menu","aria-orientation":"vertical","data-state":Ys(w.open),"data-radix-menu-content":"",dir:v.dir,...y,...g,ref:$,style:{outline:"none",...g.style},onKeyDown:z(g.onKeyDown,M=>{const Q=M.target.closest("[data-radix-menu-content]")===M.currentTarget,ee=M.ctrlKey||M.altKey||M.metaKey,te=M.key.length===1;Q&&(M.key==="Tab"&&M.preventDefault(),!ee&&te&&X(M.key));const ne=T.current;if(M.target!==ne||!ip.includes(M.key))return;M.preventDefault();const le=N().filter(ae=>!ae.disabled).map(ae=>ae.ref.current);Ns.includes(M.key)&&le.reverse(),Mp(le)}),onBlur:z(e.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(O.current),B.current="")}),onPointerMove:z(e.onPointerMove,Ot(M=>{const Y=M.target,Q=P.current!==M.clientX;if(M.currentTarget.contains(Y)&&Q){const ee=M.clientX>P.current?"right":"left";L.current=ee,P.current=M.clientX}}))})})})})})})});As.displayName=xe;var bp="MenuGroup",In=i.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return o.jsx(Z.div,{role:"group",...n,ref:t})});In.displayName=bp;var wp="MenuLabel",_s=i.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return o.jsx(Z.div,{...n,ref:t})});_s.displayName=wp;var gr="MenuItem",Ds="menu.itemSelect",vr=i.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...a}=e,s=i.useRef(null),c=It(gr,e.__scopeMenu),l=_n(gr,e.__scopeMenu),u=oe(t,s),d=i.useRef(!1),f=()=>{const p=s.current;if(!r&&p){const h=new CustomEvent(Ds,{bubbles:!0,cancelable:!0});p.addEventListener(Ds,m=>n==null?void 0:n(m),{once:!0}),Wr(p,h),h.defaultPrevented?d.current=!1:c.onClose()}};return o.jsx(Is,{...a,ref:u,disabled:r,onClick:z(e.onClick,f),onPointerDown:p=>{var h;(h=e.onPointerDown)==null||h.call(e,p),d.current=!0},onPointerUp:z(e.onPointerUp,p=>{var h;d.current||(h=p.currentTarget)==null||h.click()}),onKeyDown:z(e.onKeyDown,p=>{const h=l.searchRef.current!=="";r||h&&p.key===" "||Mn.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});vr.displayName=gr;var Is=i.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:a,...s}=e,c=_n(gr,r),l=Ss(r),u=i.useRef(null),d=oe(t,u),[f,p]=i.useState(!1),[h,m]=i.useState("");return i.useEffect(()=>{const b=u.current;b&&m((b.textContent??"").trim())},[s.children]),o.jsx(_t.ItemSlot,{scope:r,disabled:n,textValue:a??h,children:o.jsx(ap,{asChild:!0,...l,focusable:!n,children:o.jsx(Z.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...s,ref:d,onPointerMove:z(e.onPointerMove,Ot(b=>{n?c.onItemLeave(b):(c.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:z(e.onPointerLeave,Ot(b=>c.onItemLeave(b))),onFocus:z(e.onFocus,()=>p(!0)),onBlur:z(e.onBlur,()=>p(!1))})})})}),yp="MenuCheckboxItem",ks=i.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...a}=e;return o.jsx(zs,{scope:e.__scopeMenu,checked:r,children:o.jsx(vr,{role:"menuitemcheckbox","aria-checked":mr(r)?"mixed":r,...a,ref:t,"data-state":Ln(r),onSelect:z(a.onSelect,()=>n==null?void 0:n(mr(r)?!0:!r),{checkForDefaultPrevented:!1})})})});ks.displayName=yp;var Os="MenuRadioGroup",[xp,Np]=Je(Os,{value:void 0,onValueChange:()=>{}}),Ls=i.forwardRef((e,t)=>{const{value:r,onValueChange:n,...a}=e,s=fe(n);return o.jsx(xp,{scope:e.__scopeMenu,value:r,onValueChange:s,children:o.jsx(In,{...a,ref:t})})});Ls.displayName=Os;var Fs="MenuRadioItem",$s=i.forwardRef((e,t)=>{const{value:r,...n}=e,a=Np(Fs,e.__scopeMenu),s=r===a.value;return o.jsx(zs,{scope:e.__scopeMenu,checked:s,children:o.jsx(vr,{role:"menuitemradio","aria-checked":s,...n,ref:t,"data-state":Ln(s),onSelect:z(n.onSelect,()=>{var c;return(c=a.onValueChange)==null?void 0:c.call(a,r)},{checkForDefaultPrevented:!1})})})});$s.displayName=Fs;var kn="MenuItemIndicator",[zs,Cp]=Je(kn,{checked:!1}),Bs=i.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...a}=e,s=Cp(kn,r);return o.jsx(Ne,{present:n||mr(s.checked)||s.checked===!0,children:o.jsx(Z.span,{...a,ref:t,"data-state":Ln(s.checked)})})});Bs.displayName=kn;var Sp="MenuSeparator",Ws=i.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return o.jsx(Z.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});Ws.displayName=Sp;var Ep="MenuArrow",Vs=i.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,a=Dt(r);return o.jsx(gs,{...a,...n,ref:t})});Vs.displayName=Ep;var On="MenuSub",[Tp,Gs]=Je(On),Us=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:a}=e,s=He(On,t),c=Dt(t),[l,u]=i.useState(null),[d,f]=i.useState(null),p=fe(a);return i.useEffect(()=>(s.open===!1&&p(!1),()=>p(!1)),[s.open,p]),o.jsx(Sn,{...c,children:o.jsx(Es,{scope:t,open:n,onOpenChange:p,content:d,onContentChange:f,children:o.jsx(Tp,{scope:t,contentId:Oe(),triggerId:Oe(),trigger:l,onTriggerChange:u,children:r})})})};Us.displayName=On;var kt="MenuSubTrigger",js=i.forwardRef((e,t)=>{const r=He(kt,e.__scopeMenu),n=It(kt,e.__scopeMenu),a=Gs(kt,e.__scopeMenu),s=_n(kt,e.__scopeMenu),c=i.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=s,d={__scopeMenu:e.__scopeMenu},f=i.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return i.useEffect(()=>f,[f]),i.useEffect(()=>{const p=l.current;return()=>{window.clearTimeout(p),u(null)}},[l,u]),o.jsx(Pn,{asChild:!0,...d,children:o.jsx(Is,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":Ys(r.open),...e,ref:Vt(t,a.onTriggerChange),onClick:p=>{var h;(h=e.onClick)==null||h.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:z(e.onPointerMove,Ot(p=>{s.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!r.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:z(e.onPointerLeave,Ot(p=>{var m,b;f();const h=(m=r.content)==null?void 0:m.getBoundingClientRect();if(h){const g=(b=r.content)==null?void 0:b.dataset.side,w=g==="right",v=w?-5:5,y=h[w?"left":"right"],x=h[w?"right":"left"];s.onPointerGraceIntentChange({area:[{x:p.clientX+v,y:p.clientY},{x:y,y:h.top},{x,y:h.top},{x,y:h.bottom},{x:y,y:h.bottom}],side:g}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(p),p.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:z(e.onKeyDown,p=>{var m;const h=s.searchRef.current!=="";e.disabled||h&&p.key===" "||cp[n.dir].includes(p.key)&&(r.onOpenChange(!0),(m=r.content)==null||m.focus(),p.preventDefault())})})})});js.displayName=kt;var Hs="MenuSubContent",Ks=i.forwardRef((e,t)=>{const r=Ms(xe,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,s=He(xe,e.__scopeMenu),c=It(xe,e.__scopeMenu),l=Gs(Hs,e.__scopeMenu),u=i.useRef(null),d=oe(t,u);return o.jsx(_t.Provider,{scope:e.__scopeMenu,children:o.jsx(Ne,{present:n||s.open,children:o.jsx(_t.Slot,{scope:e.__scopeMenu,children:o.jsx(Dn,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:d,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;c.isUsingKeyboardRef.current&&((p=u.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:z(e.onFocusOutside,f=>{f.target!==l.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:z(e.onEscapeKeyDown,f=>{c.onClose(),f.preventDefault()}),onKeyDown:z(e.onKeyDown,f=>{var m;const p=f.currentTarget.contains(f.target),h=lp[c.dir].includes(f.key);p&&h&&(s.onOpenChange(!1),(m=l.trigger)==null||m.focus(),f.preventDefault())})})})})})});Ks.displayName=Hs;function Ys(e){return e?"open":"closed"}function mr(e){return e==="indeterminate"}function Ln(e){return mr(e)?"indeterminate":e?"checked":"unchecked"}function Mp(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function Pp(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Ap(e,t,r){const a=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let c=Pp(e,Math.max(s,0));a.length===1&&(c=c.filter(d=>d!==r));const u=c.find(d=>d.toLowerCase().startsWith(a.toLowerCase()));return u!==r?u:void 0}function _p(e,t){const{x:r,y:n}=e;let a=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const l=t[s].x,u=t[s].y,d=t[c].x,f=t[c].y;u>n!=f>n&&r<(d-l)*(n-u)/(f-u)+l&&(a=!a)}return a}function Dp(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return _p(r,t)}function Ot(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Ip=Ts,kp=Pn,Op=Ps,Lp=As,Fp=In,$p=_s,zp=vr,Bp=ks,Wp=Ls,Vp=$s,Gp=Bs,Up=Ws,jp=Vs,Hp=Us,Kp=js,Yp=Ks,Fn="DropdownMenu",[qp,sv]=Be(Fn,[Cs]),pe=Cs(),[Xp,qs]=qp(Fn),Xs=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:a,defaultOpen:s,onOpenChange:c,modal:l=!0}=e,u=pe(t),d=i.useRef(null),[f=!1,p]=st({prop:a,defaultProp:s,onChange:c});return o.jsx(Xp,{scope:t,triggerId:Oe(),triggerRef:d,contentId:Oe(),open:f,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(h=>!h),[p]),modal:l,children:o.jsx(Ip,{...u,open:f,onOpenChange:p,dir:n,modal:l,children:r})})};Xs.displayName=Fn;var Qs="DropdownMenuTrigger",Zs=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,s=qs(Qs,r),c=pe(r);return o.jsx(kp,{asChild:!0,...c,children:o.jsx(Z.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:Vt(t,s.triggerRef),onPointerDown:z(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(s.onOpenToggle(),s.open||l.preventDefault())}),onKeyDown:z(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&s.onOpenToggle(),l.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Zs.displayName=Qs;var Qp="DropdownMenuPortal",Js=e=>{const{__scopeDropdownMenu:t,...r}=e,n=pe(t);return o.jsx(Op,{...n,...r})};Js.displayName=Qp;var Rs="DropdownMenuContent",ei=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=qs(Rs,r),s=pe(r),c=i.useRef(!1);return o.jsx(Lp,{id:a.contentId,"aria-labelledby":a.triggerId,...s,...n,ref:t,onCloseAutoFocus:z(e.onCloseAutoFocus,l=>{var u;c.current||(u=a.triggerRef.current)==null||u.focus(),c.current=!1,l.preventDefault()}),onInteractOutside:z(e.onInteractOutside,l=>{const u=l.detail.originalEvent,d=u.button===0&&u.ctrlKey===!0,f=u.button===2||d;(!a.modal||f)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ei.displayName=Rs;var Zp="DropdownMenuGroup",ti=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=pe(r);return o.jsx(Fp,{...a,...n,ref:t})});ti.displayName=Zp;var Jp="DropdownMenuLabel",ri=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=pe(r);return o.jsx($p,{...a,...n,ref:t})});ri.displayName=Jp;var Rp="DropdownMenuItem",ni=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=pe(r);return o.jsx(zp,{...a,...n,ref:t})});ni.displayName=Rp;var eh="DropdownMenuCheckboxItem",oi=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=pe(r);return o.jsx(Bp,{...a,...n,ref:t})});oi.displayName=eh;var th="DropdownMenuRadioGroup",ai=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=pe(r);return o.jsx(Wp,{...a,...n,ref:t})});ai.displayName=th;var rh="DropdownMenuRadioItem",si=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=pe(r);return o.jsx(Vp,{...a,...n,ref:t})});si.displayName=rh;var nh="DropdownMenuItemIndicator",ii=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=pe(r);return o.jsx(Gp,{...a,...n,ref:t})});ii.displayName=nh;var oh="DropdownMenuSeparator",ci=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=pe(r);return o.jsx(Up,{...a,...n,ref:t})});ci.displayName=oh;var ah="DropdownMenuArrow",sh=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=pe(r);return o.jsx(jp,{...a,...n,ref:t})});sh.displayName=ah;var ih=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:a,defaultOpen:s}=e,c=pe(t),[l=!1,u]=st({prop:n,defaultProp:s,onChange:a});return o.jsx(Hp,{...c,open:l,onOpenChange:u,children:r})},ch="DropdownMenuSubTrigger",li=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=pe(r);return o.jsx(Kp,{...a,...n,ref:t})});li.displayName=ch;var lh="DropdownMenuSubContent",di=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,a=pe(r);return o.jsx(Yp,{...a,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});di.displayName=lh;var dh=Xs,uh=Zs,ui=Js,fi=ei,fh=ti,pi=ri,hi=ni,gi=oi,ph=ai,vi=si,mi=ii,bi=ci,hh=ih,wi=li,yi=di;const gh=dh,vh=uh,mh=fh,bh=ui,wh=hh,yh=ph,xi=i.forwardRef(({className:e,inset:t,children:r,...n},a)=>o.jsxs(wi,{ref:a,className:_("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n,children:[r,o.jsx(fl,{className:"ml-auto"})]}));xi.displayName=wi.displayName;const Ni=i.forwardRef(({className:e,...t},r)=>o.jsx(yi,{ref:r,className:_("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));Ni.displayName=yi.displayName;const Ci=i.forwardRef(({className:e,sideOffset:t=4,...r},n)=>o.jsx(ui,{children:o.jsx(fi,{ref:n,sideOffset:t,className:_("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...r})}));Ci.displayName=fi.displayName;const Si=i.forwardRef(({className:e,inset:t,...r},n)=>o.jsx(hi,{ref:n,className:_("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...r}));Si.displayName=hi.displayName;const Ei=i.forwardRef(({className:e,children:t,checked:r,...n},a)=>o.jsxs(gi,{ref:a,className:_("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(mi,{children:o.jsx(Dr,{className:"h-4 w-4"})})}),t]}));Ei.displayName=gi.displayName;const Ti=i.forwardRef(({className:e,children:t,...r},n)=>o.jsxs(vi,{ref:n,className:_("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(mi,{children:o.jsx(hl,{className:"h-2 w-2 fill-current"})})}),t]}));Ti.displayName=vi.displayName;const Mi=i.forwardRef(({className:e,inset:t,...r},n)=>o.jsx(pi,{ref:n,className:_("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));Mi.displayName=pi.displayName;const Pi=i.forwardRef(({className:e,...t},r)=>o.jsx(bi,{ref:r,className:_("-mx-1 my-1 h-px bg-muted",e),...t}));Pi.displayName=bi.displayName;const Ai=({className:e,...t})=>o.jsx("span",{className:_("ml-auto text-xs tracking-widest opacity-60",e),...t});Ai.displayName="DropdownMenuShortcut";function _i({inventory:e,showBinLocation:t}){const r=(v,y,x=!1,N=!0)=>o.jsxs("div",{className:`p-3 text-sm ${N&&y>0?"border-t":""} ${x?"border-r":""}`,children:[o.jsxs("div",{className:"flex justify-between font-medium",children:[o.jsx("span",{children:v.Name}),o.jsx("span",{children:v.AvailableQuantity})]}),o.jsxs("div",{className:"flex justify-between mt-1 text-xs text-gray-600",children:[o.jsx("span",{children:"Expecting"}),o.jsx("span",{children:v.PurchaseOrderQuantity||"-"})]}),t&&o.jsxs("div",{className:"flex justify-between mt-1 text-xs text-gray-600",children:[o.jsx("span",{children:"Bin Location"}),o.jsx("span",{children:v.BinLocation||"-"})]})]},`warehouse-${v.WarehouseId}`),n=["MTL","TOR"],a=["VAN","EDM"],s=[...e].sort((v,y)=>(v.Name||"").localeCompare(y.Name||"")),c=s.filter(v=>v.Country==="US"),l=s.filter(v=>v.Country==="CA"),u=s.filter(v=>a.includes(v.WarehouseId||"")),d=s.filter(v=>n.includes(v.WarehouseId||"")),f=l.filter(v=>!n.includes(v.WarehouseId||"")&&!a.includes(v.WarehouseId||"")),p=v=>v.reduce((y,x)=>y+(x.AvailableQuantity||0),0),h=p(l),m=p(d),b=p(u),g=p(c),w=h+g;return o.jsxs("div",{className:"border rounded-md overflow-hidden",children:[l.length>0&&c.length>0&&o.jsxs("div",{className:"grid grid-cols-2 border-b",children:[o.jsxs("div",{className:"p-3 font-semibold text-sm flex justify-between",children:[o.jsx("span",{children:"Total"}),o.jsx("span",{children:w})]}),o.jsx("div",{className:"p-3"})]}),l.length>0&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"grid grid-cols-2 border-b bg-gray-50",children:[o.jsxs("div",{className:"p-3 font-semibold text-sm flex justify-between",children:[o.jsx("span",{children:"Canada"}),o.jsx("span",{children:h})]}),o.jsx("div",{className:"p-3"})]}),o.jsxs("div",{className:"grid grid-cols-2",children:[o.jsxs("div",{className:"border-r",children:[o.jsxs("div",{className:"p-3 font-semibold text-sm flex justify-between",children:[o.jsx("span",{children:"West"}),o.jsx("span",{children:b})]}),u.map((v,y)=>r(v,y))]}),o.jsxs("div",{children:[o.jsxs("div",{className:"p-3 font-semibold text-sm flex justify-between",children:[o.jsx("span",{children:"East"}),o.jsx("span",{children:m})]}),d.map((v,y)=>r(v,y))]})]}),f.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"border-t p-3 font-semibold text-sm",children:o.jsx("span",{children:"Other"})}),o.jsx("div",{className:"grid grid-cols-2",children:f.map((v,y)=>r(v,y,y%2===0,!0))})]})]}),c.length>0&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"grid grid-cols-2 border-t bg-gray-50",children:[o.jsxs("div",{className:"p-3 font-semibold text-sm flex justify-between",children:[o.jsx("span",{children:"United States"}),o.jsx("span",{children:g})]}),o.jsx("div",{className:"p-3"})]}),o.jsx("div",{className:"grid grid-cols-2",children:c.map((v,y)=>r(v,y,y%2===0,!0))})]}),e.length===0&&o.jsx("div",{className:"p-6 text-center text-gray-500",children:"No inventory information available"})]})}const Di=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ii=ko,Lt=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Ii(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:s}=t,c=Object.keys(a).map(d=>{const f=r==null?void 0:r[d],p=s==null?void 0:s[d];if(f===null)return null;const h=Di(f)||Di(p);return a[d][h]}),l=r&&Object.entries(r).reduce((d,f)=>{let[p,h]=f;return h===void 0||(d[p]=h),d},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:p,className:h,...m}=f;return Object.entries(m).every(b=>{let[g,w]=b;return Array.isArray(w)?w.includes({...s,...l}[g]):{...s,...l}[g]===w})?[...d,p,h]:d},[]);return Ii(e,c,u,r==null?void 0:r.class,r==null?void 0:r.className)},$n=Lt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",outline:"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",defaultOutline:"border border-red-600/30 text-red-600 bg-background shadow-xs hover:bg-red-600/5 ",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",blue:"bg-randmar-blue text-gray-100 shadow-sm hover:bg-randmar-blue/90",red:"bg-randmar-red text-gray-100 shadow-sm hover:bg-randmar-red/90",none:""},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ce=i.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,confirmationDialog:a,onClick:s,...c},l)=>{const u=n?ye:"button";if(!a)return o.jsx(u,{className:_($n({variant:t,size:r,className:e})),ref:l,onClick:s,...c});s&&console.warn("Button: You provided both onClick and confirmationDialog props. The onClick prop will be ignored. Use the onConfirm callback in confirmationDialog instead.");const{title:d,content:f,onConfirm:p,confirmText:h="Confirm",cancelText:m="Cancel"}=a,b=()=>{p()};return o.jsxs(St,{children:[o.jsx(nn,{asChild:!0,children:o.jsx(u,{className:_($n({variant:t,size:r,className:e})),ref:l,...c})}),o.jsxs(Et,{children:[o.jsxs(rr,{children:[o.jsx(nr,{children:d}),o.jsx(cn,{children:f})]}),o.jsxs(sn,{className:"flex justify-end gap-2 pt-4",children:[o.jsx(on,{asChild:!0,children:o.jsx(ce,{variant:"outline",children:m})}),o.jsx(on,{asChild:!0,children:o.jsx(ce,{onClick:b,children:h})})]})]})]})});ce.displayName="Button";var xh="VisuallyHidden",br=i.forwardRef((e,t)=>o.jsx(Z.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));br.displayName=xh;var Nh=br,[wr,iv]=Be("Tooltip",[pr]),yr=pr(),ki="TooltipProvider",Ch=700,zn="tooltip.open",[Sh,Bn]=wr(ki),Oi=e=>{const{__scopeTooltip:t,delayDuration:r=Ch,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:s}=e,[c,l]=i.useState(!0),u=i.useRef(!1),d=i.useRef(0);return i.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),o.jsx(Sh,{scope:t,isOpenDelayed:c,delayDuration:r,onOpen:i.useCallback(()=>{window.clearTimeout(d.current),l(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>l(!0),n)},[n]),isPointerInTransitRef:u,onPointerInTransitChange:i.useCallback(f=>{u.current=f},[]),disableHoverableContent:a,children:s})};Oi.displayName=ki;var xr="Tooltip",[Eh,Ft]=wr(xr),Li=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:a=!1,onOpenChange:s,disableHoverableContent:c,delayDuration:l}=e,u=Bn(xr,e.__scopeTooltip),d=yr(t),[f,p]=i.useState(null),h=Oe(),m=i.useRef(0),b=c??u.disableHoverableContent,g=l??u.delayDuration,w=i.useRef(!1),[v=!1,y]=st({prop:n,defaultProp:a,onChange:T=>{T?(u.onOpen(),document.dispatchEvent(new CustomEvent(zn))):u.onClose(),s==null||s(T)}}),x=i.useMemo(()=>v?w.current?"delayed-open":"instant-open":"closed",[v]),N=i.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w.current=!1,y(!0)},[y]),E=i.useCallback(()=>{window.clearTimeout(m.current),m.current=0,y(!1)},[y]),C=i.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{w.current=!0,y(!0),m.current=0},g)},[g,y]);return i.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),o.jsx(Sn,{...d,children:o.jsx(Eh,{scope:t,contentId:h,open:v,stateAttribute:x,trigger:f,onTriggerChange:p,onTriggerEnter:i.useCallback(()=>{u.isOpenDelayed?C():N()},[u.isOpenDelayed,C,N]),onTriggerLeave:i.useCallback(()=>{b?E():(window.clearTimeout(m.current),m.current=0)},[E,b]),onOpen:N,onClose:E,disableHoverableContent:b,children:r})})};Li.displayName=xr;var Wn="TooltipTrigger",Fi=i.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=Ft(Wn,r),s=Bn(Wn,r),c=yr(r),l=i.useRef(null),u=oe(t,l,a.onTriggerChange),d=i.useRef(!1),f=i.useRef(!1),p=i.useCallback(()=>d.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),o.jsx(ps,{asChild:!0,...c,children:o.jsx(Z.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...n,ref:u,onPointerMove:z(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(a.onTriggerEnter(),f.current=!0)}),onPointerLeave:z(e.onPointerLeave,()=>{a.onTriggerLeave(),f.current=!1}),onPointerDown:z(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:z(e.onFocus,()=>{d.current||a.onOpen()}),onBlur:z(e.onBlur,a.onClose),onClick:z(e.onClick,a.onClose)})})});Fi.displayName=Wn;var Vn="TooltipPortal",[Th,Mh]=wr(Vn,{forceMount:void 0}),$i=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:a}=e,s=Ft(Vn,t);return o.jsx(Th,{scope:t,forceMount:r,children:o.jsx(Ne,{present:r||s.open,children:o.jsx(Ct,{asChild:!0,container:a,children:n})})})};$i.displayName=Vn;var gt="TooltipContent",zi=i.forwardRef((e,t)=>{const r=Mh(gt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:a="top",...s}=e,c=Ft(gt,e.__scopeTooltip);return o.jsx(Ne,{present:n||c.open,children:c.disableHoverableContent?o.jsx(Bi,{side:a,...s,ref:t}):o.jsx(Ph,{side:a,...s,ref:t})})}),Ph=i.forwardRef((e,t)=>{const r=Ft(gt,e.__scopeTooltip),n=Bn(gt,e.__scopeTooltip),a=i.useRef(null),s=oe(t,a),[c,l]=i.useState(null),{trigger:u,onClose:d}=r,f=a.current,{onPointerInTransitChange:p}=n,h=i.useCallback(()=>{l(null),p(!1)},[p]),m=i.useCallback((b,g)=>{const w=b.currentTarget,v={x:b.clientX,y:b.clientY},y=Ih(v,w.getBoundingClientRect()),x=kh(v,y),N=Oh(g.getBoundingClientRect()),E=Fh([...x,...N]);l(E),p(!0)},[p]);return i.useEffect(()=>()=>h(),[h]),i.useEffect(()=>{if(u&&f){const b=w=>m(w,f),g=w=>m(w,u);return u.addEventListener("pointerleave",b),f.addEventListener("pointerleave",g),()=>{u.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",g)}}},[u,f,m,h]),i.useEffect(()=>{if(c){const b=g=>{const w=g.target,v={x:g.clientX,y:g.clientY},y=(u==null?void 0:u.contains(w))||(f==null?void 0:f.contains(w)),x=!Lh(v,c);y?h():x&&(h(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[u,f,c,d,h]),o.jsx(Bi,{...e,ref:s})}),[Ah,_h]=wr(xr,{isInside:!1}),Bi=i.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:s,onPointerDownOutside:c,...l}=e,u=Ft(gt,r),d=yr(r),{onClose:f}=u;return i.useEffect(()=>(document.addEventListener(zn,f),()=>document.removeEventListener(zn,f)),[f]),i.useEffect(()=>{if(u.trigger){const p=h=>{const m=h.target;m!=null&&m.contains(u.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[u.trigger,f]),o.jsx(Nt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:o.jsxs(hs,{"data-state":u.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[o.jsx(Ko,{children:n}),o.jsx(Ah,{scope:r,isInside:!0,children:o.jsx(Nh,{id:u.contentId,role:"tooltip",children:a||n})})]})})});zi.displayName=gt;var Wi="TooltipArrow",Dh=i.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,a=yr(r);return _h(Wi,r).isInside?null:o.jsx(gs,{...a,...n,ref:t})});Dh.displayName=Wi;function Ih(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,a,s)){case s:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function kh(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Oh(e){const{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}function Lh(e,t){const{x:r,y:n}=e;let a=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const l=t[s].x,u=t[s].y,d=t[c].x,f=t[c].y;u>n!=f>n&&r<(d-l)*(n-u)/(f-u)+l&&(a=!a)}return a}function Fh(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),$h(t)}function $h(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const a=e[n];for(;t.length>=2;){const s=t[t.length-1],c=t[t.length-2];if((s.x-c.x)*(a.y-c.y)>=(s.y-c.y)*(a.x-c.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const a=e[n];for(;r.length>=2;){const s=r[r.length-1],c=r[r.length-2];if((s.x-c.x)*(a.y-c.y)>=(s.y-c.y)*(a.x-c.x))r.pop();else break}r.push(a)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var zh=Oi,Bh=Li,Wh=Fi,Vh=$i,Vi=zi;const vt=zh,mt=Bh,bt=Wh,Re=i.forwardRef(({className:e,sideOffset:t=4,...r},n)=>o.jsx(Vh,{children:o.jsx(Vi,{ref:n,sideOffset:t,className:_("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));Re.displayName=Vi.displayName;const Nr=i.forwardRef(({className:e,type:t,mask:r,onChange:n,placeholder:a,...s},c)=>{const[l,u]=i.useState(!1),d=i.useRef(null),p=a||(r==="phone"?"(999) 999-9999":r==="postal-code-ca"?"A9A 9A9":r==="zip-code-us"?"99999":""),h=()=>r==="phone"?"Only enter numbers. Formatting will be added automatically.":r==="postal-code-ca"?"Enter letters and numbers only. Spacing will be applied automatically.":r==="zip-code-us"?"Only enter numbers. Formatting will be added automatically.":"",m=()=>{u(!0),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{u(!1)},3e3)};i.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const b=g=>{if(r){const w=g.target.value;let v=w;if(w.length>0){const y=w[w.length-1];/[^a-zA-Z0-9]/.test(y)&&(console.log("Non-alphanumeric detected:",y),m())}if(r==="phone"){const y=w.replace(/\D/g,"");y.length<=3?v=y:y.length<=6?v=`(${y.slice(0,3)}) ${y.slice(3)}`:v=`(${y.slice(0,3)}) ${y.slice(3,6)}-${y.slice(6,10)}`}else if(r==="postal-code-ca"){const y=w.replace(/[^a-zA-Z0-9]/g,"").toUpperCase();let x="";for(let N=0;N<Math.min(y.length,6);N++){const E=y[N];N===0||N===2||N===4?/[A-Z]/.test(E)&&(x+=E):(N===1||N===3||N===5)&&/[0-9]/.test(E)&&(x+=E)}x.length<=3?v=x:v=`${x.slice(0,3)} ${x.slice(3,6)}`}else if(r==="zip-code-us"){const y=w.replace(/\D/g,"");y.length<=5?v=y:v=`${y.slice(0,5)}-${y.slice(5,9)}`}g.target.value=v}n==null||n(g)};return o.jsx(vt,{children:o.jsxs(mt,{open:l&&!!r,children:[o.jsx(bt,{asChild:!0,children:o.jsx("input",{type:t,className:_("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),onChange:b,placeholder:p,ref:c,...s})}),o.jsx(Re,{side:"top",className:"bg-sidebar text-sidebar-foreground",children:h()})]})})});Nr.displayName="Input";var Gh="Separator",Gi="horizontal",Uh=["horizontal","vertical"],Ui=i.forwardRef((e,t)=>{const{decorative:r,orientation:n=Gi,...a}=e,s=jh(n)?n:Gi,l=r?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return o.jsx(Z.div,{"data-orientation":s,...l,...a,ref:t})});Ui.displayName=Gh;function jh(e){return Uh.includes(e)}var ji=Ui;const Gn=i.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},a)=>o.jsx(ji,{ref:a,decorative:r,orientation:t,className:_("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Gn.displayName=ji.displayName;const Hi=rn,Hh=La,Kh=tr,Ki=Fa,Un=i.forwardRef(({className:e,...t},r)=>o.jsx(Zt,{className:_("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));Un.displayName=Zt.displayName;const Yh=Lt("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),jn=i.forwardRef(({side:e="right",className:t,children:r,...n},a)=>o.jsxs(Ki,{children:[o.jsx(Un,{}),o.jsxs(Jt,{ref:a,className:_(Yh({side:e}),t),...n,children:[o.jsxs(tr,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[o.jsx(Ir,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));jn.displayName=Jt.displayName;const Yi=({className:e,...t})=>o.jsx("div",{className:_("flex flex-col space-y-2 text-center sm:text-left",e),...t});Yi.displayName="SheetHeader";const qi=({className:e,...t})=>o.jsx("div",{className:_("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});qi.displayName="SheetFooter";const Xi=i.forwardRef(({className:e,...t},r)=>o.jsx(Rt,{ref:r,className:_("text-lg font-semibold text-foreground",e),...t}));Xi.displayName=Rt.displayName;const Qi=i.forwardRef(({className:e,...t},r)=>o.jsx(er,{ref:r,className:_("text-sm text-muted-foreground",e),...t}));Qi.displayName=er.displayName;function qh({onClick:e,publicName:t,applicationName:r,partnerId:n}){const a=`https://api.randmar.io/v4/Partner/${n}/Account/Logo?height=72&width=72`,[s,c]=H.useState(!1),l=()=>{c(!0)};return o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-muted "+(e!==void 0?"cursor-pointer":""),children:s?o.jsx(ce,{asChild:!0,size:"icon",onClick:e,children:o.jsx(Ml,{className:"h-5 w-5 text-muted-foreground !bg-sidebar"})}):o.jsx(ce,{asChild:!0,size:"icon",onClick:e,children:o.jsx("img",{src:a,alt:"Partner logo",className:"h-9 w-9 object-cover !bg-sidebar",onError:l})})}),o.jsxs("div",{className:"flex flex-1 flex-col",children:[o.jsx("span",{className:"text-sm font-medium",children:t||"Partner"}),o.jsx("span",{className:"text-xs text-neutral-400",children:r})]})]})}var Xh="Label",Zi=i.forwardRef((e,t)=>o.jsx(Z.label,{...e,ref:t,onMouseDown:r=>{var a;r.target.closest("button, input, select, textarea")||((a=e.onMouseDown)==null||a.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Zi.displayName=Xh;var Qh=Zi;function Zh({className:e,...t}){return o.jsx(Qh,{"data-slot":"label",className:_("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const Hn=1024;function Ji(){const[e,t]=i.useState(void 0);return i.useEffect(()=>{const r=window.matchMedia(`(max-width: ${Hn-1}px)`),n=()=>{t(window.innerWidth<Hn)};return r.addEventListener("change",n),t(window.innerWidth<Hn),()=>r.removeEventListener("change",n)},[]),!!e}function U({className:e,...t}){return o.jsx("div",{className:_("animate-pulse rounded-md bg-primary/20",e),...t})}const Jh="sidebar:state",Rh=60*60*24*7,eg="16rem",tg="18rem",rg="3rem",ng="b",Ri=i.createContext(null);function $t(){const e=i.useContext(Ri);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Kn=i.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:r,className:n,style:a,children:s,...c},l)=>{const u=Ji(),[d,f]=i.useState(!1),[p,h]=i.useState(e),m=t??p,b=i.useCallback(y=>{const x=typeof y=="function"?y(m):y;r?r(x):h(x),document.cookie=`${Jh}=${x}; path=/; max-age=${Rh}`},[r,m]),g=i.useCallback(()=>u?f(y=>!y):b(y=>!y),[u,b,f]);i.useEffect(()=>{const y=x=>{x.key===ng&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),g())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[g]);const w=m?"expanded":"collapsed",v=i.useMemo(()=>({state:w,open:m,setOpen:b,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:g}),[w,m,b,u,d,f,g]);return o.jsx(Ri.Provider,{value:v,children:o.jsx(vt,{delayDuration:0,children:o.jsx("div",{style:{"--sidebar-width":eg,"--sidebar-width-icon":rg,...a},className:_("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",n),ref:l,...c,children:s})})})});Kn.displayName="SidebarProvider";const Yn=i.forwardRef(({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:n,children:a,...s},c)=>{const{isMobile:l,state:u,openMobile:d,setOpenMobile:f}=$t();return r==="none"?o.jsx("div",{className:_("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",n),ref:c,...s,children:a}):l?o.jsx(Hi,{open:d,onOpenChange:f,...s,children:o.jsx(jn,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":tg},side:e,children:o.jsx("div",{className:"flex h-full w-full flex-col",children:a})})}):o.jsxs("div",{ref:c,className:"group peer hidden md:block text-sidebar-foreground","data-state":u,"data-collapsible":u==="collapsed"?r:"","data-variant":t,"data-side":e,children:[o.jsx("div",{className:_("duration-200 relative h-svh w-(--sidebar-width) bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),o.jsx("div",{className:_("duration-200 fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...s,children:o.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:a})})]})});Yn.displayName="Sidebar";const qn=i.forwardRef(({className:e,onClick:t,...r},n)=>{const{toggleSidebar:a}=$t();return o.jsxs(ce,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:_("h-7 w-7 text-sidebar-foreground",e),onClick:s=>{t==null||t(s),a()},...r,children:[o.jsx(xl,{}),o.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});qn.displayName="SidebarTrigger";const ec=i.forwardRef(({className:e,...t},r)=>{const{toggleSidebar:n}=$t();return o.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:_("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});ec.displayName="SidebarRail";const tc=i.forwardRef(({className:e,...t},r)=>o.jsx("main",{ref:r,className:_("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e),...t}));tc.displayName="SidebarInset";const rc=i.forwardRef(({className:e,...t},r)=>o.jsx(Nr,{ref:r,"data-sidebar":"input",className:_("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));rc.displayName="SidebarInput";const Xn=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,"data-sidebar":"header",className:_("flex flex-col gap-2 p-2",e),...t}));Xn.displayName="SidebarHeader";const Qn=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,"data-sidebar":"footer",className:_("flex flex-col gap-2 p-2",e),...t}));Qn.displayName="SidebarFooter";const nc=i.forwardRef(({className:e,...t},r)=>o.jsx(Gn,{ref:r,"data-sidebar":"separator",className:_("mx-2 w-auto bg-sidebar-border",e),...t}));nc.displayName="SidebarSeparator";const Zn=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,"data-sidebar":"content",className:_("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Zn.displayName="SidebarContent";const oc=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,"data-sidebar":"group",className:_("relative flex w-full min-w-0 flex-col p-2",e),...t}));oc.displayName="SidebarGroup";const ac=i.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const a=t?ye:"div";return o.jsx(a,{ref:n,"data-sidebar":"group-label",className:_("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-hidden ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})});ac.displayName="SidebarGroupLabel";const sc=i.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const a=t?ye:"button";return o.jsx(a,{ref:n,"data-sidebar":"group-action",className:_("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...r})});sc.displayName="SidebarGroupAction";const ic=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,"data-sidebar":"group-content",className:_("w-full text-sm",e),...t}));ic.displayName="SidebarGroupContent";const Jn=i.forwardRef(({className:e,...t},r)=>o.jsx("ul",{ref:r,"data-sidebar":"menu",className:_("flex w-full min-w-0 flex-col gap-1",e),...t}));Jn.displayName="SidebarMenu";const Rn=i.forwardRef(({className:e,...t},r)=>o.jsx("li",{ref:r,"data-sidebar":"menu-item",className:_("group/menu-item relative",e),...t}));Rn.displayName="SidebarMenuItem";const og=Lt("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),eo=i.forwardRef(({asChild:e=!1,isActive:t=!1,variant:r="default",size:n="default",tooltip:a,className:s,...c},l)=>{const u=e?ye:"button",{isMobile:d,state:f}=$t(),p=o.jsx(u,{ref:l,"data-sidebar":"menu-button","data-size":n,"data-active":t,className:_(og({variant:r,size:n}),s),...c});return a?(typeof a=="string"&&(a={children:a}),o.jsxs(mt,{children:[o.jsx(bt,{asChild:!0,children:p}),o.jsx(Re,{side:"right",align:"center",hidden:f!=="collapsed"||d,...a})]})):p});eo.displayName="SidebarMenuButton";const cc=i.forwardRef(({className:e,asChild:t=!1,showOnHover:r=!1,...n},a)=>{const s=t?ye:"button";return o.jsx(s,{ref:a,"data-sidebar":"menu-action",className:_("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...n})});cc.displayName="SidebarMenuAction";const lc=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:_("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));lc.displayName="SidebarMenuBadge";const dc=i.forwardRef(({className:e,showIcon:t=!1,...r},n)=>{const a=i.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return o.jsxs("div",{ref:n,"data-sidebar":"menu-skeleton",className:_("rounded-md h-8 flex gap-2 px-2 items-center",e),...r,children:[t&&o.jsx(U,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),o.jsx(U,{className:"h-4 flex-1 max-w-(--skeleton-width)","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})});dc.displayName="SidebarMenuSkeleton";const uc=i.forwardRef(({className:e,...t},r)=>o.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:_("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));uc.displayName="SidebarMenuSub";const fc=i.forwardRef(({...e},t)=>o.jsx("li",{ref:t,...e}));fc.displayName="SidebarMenuSubItem";const pc=i.forwardRef(({asChild:e=!1,size:t="md",isActive:r,className:n,...a},s)=>{const c=e?ye:"a";return o.jsx(c,{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:_("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",n),...a})});pc.displayName="SidebarMenuSubButton";var to="ToastProvider",[ro,ag,sg]=ln("Toast"),[hc,cv]=Be("Toast",[sg]),[ig,Cr]=hc(to),gc=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:a="right",swipeThreshold:s=50,children:c}=e,[l,u]=i.useState(null),[d,f]=i.useState(0),p=i.useRef(!1),h=i.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${to}\`. Expected non-empty \`string\`.`),o.jsx(ro.Provider,{scope:t,children:o.jsx(ig,{scope:t,label:r,duration:n,swipeDirection:a,swipeThreshold:s,toastCount:d,viewport:l,onViewportChange:u,onToastAdd:i.useCallback(()=>f(m=>m+1),[]),onToastRemove:i.useCallback(()=>f(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:h,children:c})})};gc.displayName=to;var vc="ToastViewport",cg=["F8"],no="toast.viewportPause",oo="toast.viewportResume",mc=i.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=cg,label:a="Notifications ({hotkey})",...s}=e,c=Cr(vc,r),l=ag(r),u=i.useRef(null),d=i.useRef(null),f=i.useRef(null),p=i.useRef(null),h=oe(t,p,c.onViewportChange),m=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=c.toastCount>0;i.useEffect(()=>{const w=v=>{var x;n.length!==0&&n.every(N=>v[N]||v.code===N)&&((x=p.current)==null||x.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[n]),i.useEffect(()=>{const w=u.current,v=p.current;if(b&&w&&v){const y=()=>{if(!c.isClosePausedRef.current){const C=new CustomEvent(no);v.dispatchEvent(C),c.isClosePausedRef.current=!0}},x=()=>{if(c.isClosePausedRef.current){const C=new CustomEvent(oo);v.dispatchEvent(C),c.isClosePausedRef.current=!1}},N=C=>{!w.contains(C.relatedTarget)&&x()},E=()=>{w.contains(document.activeElement)||x()};return w.addEventListener("focusin",y),w.addEventListener("focusout",N),w.addEventListener("pointermove",y),w.addEventListener("pointerleave",E),window.addEventListener("blur",y),window.addEventListener("focus",x),()=>{w.removeEventListener("focusin",y),w.removeEventListener("focusout",N),w.removeEventListener("pointermove",y),w.removeEventListener("pointerleave",E),window.removeEventListener("blur",y),window.removeEventListener("focus",x)}}},[b,c.isClosePausedRef]);const g=i.useCallback(({tabbingDirection:w})=>{const y=l().map(x=>{const N=x.ref.current,E=[N,...xg(N)];return w==="forwards"?E:E.reverse()});return(w==="forwards"?y.reverse():y).flat()},[l]);return i.useEffect(()=>{const w=p.current;if(w){const v=y=>{var E,C,T;const x=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!x){const $=document.activeElement,O=y.shiftKey;if(y.target===w&&O){(E=d.current)==null||E.focus();return}const F=g({tabbingDirection:O?"backwards":"forwards"}),L=F.findIndex(P=>P===$);io(F.slice(L+1))?y.preventDefault():O?(C=d.current)==null||C.focus():(T=f.current)==null||T.focus()}};return w.addEventListener("keydown",v),()=>w.removeEventListener("keydown",v)}},[l,g]),o.jsxs(Ld,{ref:u,role:"region","aria-label":a.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&o.jsx(ao,{ref:d,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"forwards"});io(w)}}),o.jsx(ro.Slot,{scope:r,children:o.jsx(Z.ol,{tabIndex:-1,...s,ref:h})}),b&&o.jsx(ao,{ref:f,onFocusFromOutsideViewport:()=>{const w=g({tabbingDirection:"backwards"});io(w)}})]})});mc.displayName=vc;var bc="ToastFocusProxy",ao=i.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...a}=e,s=Cr(bc,r);return o.jsx(br,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:c=>{var d;const l=c.relatedTarget;!((d=s.viewport)!=null&&d.contains(l))&&n()}})});ao.displayName=bc;var Sr="Toast",lg="toast.swipeStart",dg="toast.swipeMove",ug="toast.swipeCancel",fg="toast.swipeEnd",wc=i.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:a,onOpenChange:s,...c}=e,[l=!0,u]=st({prop:n,defaultProp:a,onChange:s});return o.jsx(Ne,{present:r||l,children:o.jsx(gg,{open:l,...c,ref:t,onClose:()=>u(!1),onPause:fe(e.onPause),onResume:fe(e.onResume),onSwipeStart:z(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:z(e.onSwipeMove,d=>{const{x:f,y:p}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:z(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:z(e.onSwipeEnd,d=>{const{x:f,y:p}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),u(!1)})})})});wc.displayName=Sr;var[pg,hg]=hc(Sr,{onClose(){}}),gg=i.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:a,open:s,onClose:c,onEscapeKeyDown:l,onPause:u,onResume:d,onSwipeStart:f,onSwipeMove:p,onSwipeCancel:h,onSwipeEnd:m,...b}=e,g=Cr(Sr,r),[w,v]=i.useState(null),y=oe(t,P=>v(P)),x=i.useRef(null),N=i.useRef(null),E=a||g.duration,C=i.useRef(0),T=i.useRef(E),$=i.useRef(0),{onToastAdd:O,onToastRemove:B}=g,K=fe(()=>{var V;(w==null?void 0:w.contains(document.activeElement))&&((V=g.viewport)==null||V.focus()),c()}),F=i.useCallback(P=>{!P||P===1/0||(window.clearTimeout($.current),C.current=new Date().getTime(),$.current=window.setTimeout(K,P))},[K]);i.useEffect(()=>{const P=g.viewport;if(P){const V=()=>{F(T.current),d==null||d()},A=()=>{const X=new Date().getTime()-C.current;T.current=T.current-X,window.clearTimeout($.current),u==null||u()};return P.addEventListener(no,A),P.addEventListener(oo,V),()=>{P.removeEventListener(no,A),P.removeEventListener(oo,V)}}},[g.viewport,E,u,d,F]),i.useEffect(()=>{s&&!g.isClosePausedRef.current&&F(E)},[s,E,g.isClosePausedRef,F]),i.useEffect(()=>(O(),()=>B()),[O,B]);const L=i.useMemo(()=>w?Tc(w):null,[w]);return g.viewport?o.jsxs(o.Fragment,{children:[L&&o.jsx(vg,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:L}),o.jsx(pg,{scope:r,onClose:K,children:_r.createPortal(o.jsx(ro.ItemSlot,{scope:r,children:o.jsx(Od,{asChild:!0,onEscapeKeyDown:z(l,()=>{g.isFocusedToastEscapeKeyDownRef.current||K(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:o.jsx(Z.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...b,ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:z(e.onKeyDown,P=>{P.key==="Escape"&&(l==null||l(P.nativeEvent),P.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,K()))}),onPointerDown:z(e.onPointerDown,P=>{P.button===0&&(x.current={x:P.clientX,y:P.clientY})}),onPointerMove:z(e.onPointerMove,P=>{if(!x.current)return;const V=P.clientX-x.current.x,A=P.clientY-x.current.y,X=!!N.current,D=["left","right"].includes(g.swipeDirection),M=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,Y=D?M(0,V):0,Q=D?0:M(0,A),ee=P.pointerType==="touch"?10:2,te={x:Y,y:Q},ne={originalEvent:P,delta:te};X?(N.current=te,Er(dg,p,ne,{discrete:!1})):Mc(te,g.swipeDirection,ee)?(N.current=te,Er(lg,f,ne,{discrete:!1}),P.target.setPointerCapture(P.pointerId)):(Math.abs(V)>ee||Math.abs(A)>ee)&&(x.current=null)}),onPointerUp:z(e.onPointerUp,P=>{const V=N.current,A=P.target;if(A.hasPointerCapture(P.pointerId)&&A.releasePointerCapture(P.pointerId),N.current=null,x.current=null,V){const X=P.currentTarget,D={originalEvent:P,delta:V};Mc(V,g.swipeDirection,g.swipeThreshold)?Er(fg,m,D,{discrete:!0}):Er(ug,h,D,{discrete:!0}),X.addEventListener("click",M=>M.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),vg=e=>{const{__scopeToast:t,children:r,...n}=e,a=Cr(Sr,t),[s,c]=i.useState(!1),[l,u]=i.useState(!1);return wg(()=>c(!0)),i.useEffect(()=>{const d=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(d)},[]),l?null:o.jsx(Ct,{asChild:!0,children:o.jsx(br,{...n,children:s&&o.jsxs(o.Fragment,{children:[a.label," ",r]})})})},mg="ToastTitle",yc=i.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return o.jsx(Z.div,{...n,ref:t})});yc.displayName=mg;var bg="ToastDescription",xc=i.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return o.jsx(Z.div,{...n,ref:t})});xc.displayName=bg;var Nc="ToastAction",Cc=i.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?o.jsx(Ec,{altText:r,asChild:!0,children:o.jsx(so,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Nc}\`. Expected non-empty \`string\`.`),null)});Cc.displayName=Nc;var Sc="ToastClose",so=i.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,a=hg(Sc,r);return o.jsx(Ec,{asChild:!0,children:o.jsx(Z.button,{type:"button",...n,ref:t,onClick:z(e.onClick,a.onClose)})})});so.displayName=Sc;var Ec=i.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...a}=e;return o.jsx(Z.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...a,ref:t})});function Tc(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),yg(n)){const a=n.ariaHidden||n.hidden||n.style.display==="none",s=n.dataset.radixToastAnnounceExclude==="";if(!a)if(s){const c=n.dataset.radixToastAnnounceAlt;c&&t.push(c)}else t.push(...Tc(n))}}),t}function Er(e,t,r,{discrete:n}){const a=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?Wr(a,s):a.dispatchEvent(s)}var Mc=(e,t,r=0)=>{const n=Math.abs(e.x),a=Math.abs(e.y),s=n>a;return t==="left"||t==="right"?s&&n>r:!s&&a>r};function wg(e=()=>{}){const t=fe(e);We(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function yg(e){return e.nodeType===e.ELEMENT_NODE}function xg(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function io(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var Ng=gc,Pc=mc,Ac=wc,_c=yc,Dc=xc,Ic=Cc,kc=so;const Oc=Ng,co=i.forwardRef(({className:e,...t},r)=>o.jsx(Pc,{ref:r,className:_("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));co.displayName=Pc.displayName;const Cg=Lt("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground",success:"border-green-600 bg-green-600 text-white",warning:"border-yellow-500 bg-yellow-500 text-white",info:"border-blue-500 bg-blue-500 text-white",secondary:"border-secondary bg-secondary text-secondary-foreground",outline:"border-input bg-background text-foreground hover:bg-accent hover:text-accent-foreground"}},defaultVariants:{variant:"default"}}),lo=i.forwardRef(({className:e,variant:t,...r},n)=>o.jsx(Ac,{ref:n,className:_(Cg({variant:t}),e),...r}));lo.displayName=Ac.displayName;const Lc=i.forwardRef(({className:e,...t},r)=>o.jsx(Ic,{ref:r,className:_("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-hidden focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",e),...t}));Lc.displayName=Ic.displayName;const uo=i.forwardRef(({className:e,...t},r)=>o.jsx(kc,{ref:r,className:_("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-50 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",e),"toast-close":"",...t,children:o.jsx(Ir,{className:"h-4 w-4"})}));uo.displayName=kc.displayName;const fo=i.forwardRef(({className:e,...t},r)=>o.jsx(_c,{ref:r,className:_("text-sm font-semibold [&+div]:text-xs",e),...t}));fo.displayName=_c.displayName;const po=i.forwardRef(({className:e,...t},r)=>o.jsx(Dc,{ref:r,className:_("text-sm opacity-90",e),...t}));po.displayName=Dc.displayName;const Sg=1,Eg=1e6;let ho=0;function Tg(){return ho=(ho+1)%Number.MAX_SAFE_INTEGER,ho.toString()}const go=new Map,Fc=e=>{if(go.has(e))return;const t=setTimeout(()=>{go.delete(e),zt({type:"REMOVE_TOAST",toastId:e})},Eg);go.set(e,t)},Mg=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Sg)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;return r?Fc(r):e.toasts.forEach(n=>Fc(n.id)),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return{...e,toasts:t.toastId?e.toasts.filter(r=>r.id!==t.toastId):[]}}},Tr=[];let Mr={toasts:[]};function zt(e){Mr=Mg(Mr,e),Tr.forEach(t=>t(Mr))}function $c({...e}){const t=Tg(),r=a=>zt({type:"UPDATE_TOAST",toast:{...a,id:t}}),n=()=>zt({type:"DISMISS_TOAST",toastId:t});return zt({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||n()}}}),{id:t,dismiss:n,update:r}}function vo(){const[e,t]=i.useState(Mr);return i.useEffect(()=>(Tr.push(t),()=>{const r=Tr.indexOf(t);r>-1&&Tr.splice(r,1)}),[]),{...e,toast:$c,dismiss:r=>zt({type:"DISMISS_TOAST",toastId:r})}}function zc(){const{toasts:e}=vo();return o.jsxs(Oc,{children:[e.map(function({id:t,title:r,description:n,action:a,...s}){return o.jsxs(lo,{...s,children:[o.jsxs("div",{className:"grid gap-1",children:[r&&o.jsx(fo,{children:r}),n&&o.jsx(po,{children:n})]}),a,o.jsx(uo,{})]},t)}),o.jsx(co,{})]})}const mo=H.forwardRef(({onSignOut:e,handleValidSearch:t,rightMenu:r,searchPlaceholder:n},a)=>{const[s,c]=H.useState(""),l=Ar.useLocation(),{toast:u}=vo();H.useEffect(()=>{const h=new URLSearchParams(l.search).get("q");h&&c(h)},[l.search]);const d=()=>{const p=s.trim();if(!p||p.length<2){u({title:"Enter more characters to search",description:"At least 2 characters are needed to search products.",variant:"destructive",duration:5e3});return}t(p)},f=p=>{p.key==="Enter"&&d()};return o.jsxs("header",{className:"flex h-16 items-center gap-4 border-b sidebar-foreground bg-sidebar px-6 fixed top-0 right-0 z-50 lg:left-64 left-0 border-sidebar-border",children:[o.jsx(qn,{className:"lg:hidden",children:o.jsx(wl,{className:"h-6 w-6"})}),o.jsx("div",{className:"flex flex-1 items-center gap-4",children:o.jsx("div",{className:"relative w-full max-w-sm",children:o.jsxs("div",{children:[o.jsx("button",{type:"button",className:"absolute left-2 top-1/2 -translate-y-1/2",onClick:d,"aria-label":"Search",children:o.jsx(El,{className:"h-4 w-4 text-muted-foreground"})}),o.jsx(Nr,{placeholder:n??"Search...",className:"w-full pl-8 bg-white text-black",value:s,onChange:p=>c(p.target.value),onKeyDown:f,ref:a},"topbar-search")]})})}),r||o.jsx(o.Fragment,{}),e&&o.jsx("div",{className:"flex items-center gap-4",children:o.jsxs(ce,{variant:"ghost",size:"icon",className:"h-9 w-9",onClick:e,children:[o.jsx(bl,{className:"h-4 w-4 text-sidebar-foreground"}),o.jsx("span",{className:"sr-only",children:"Sign out"})]})})]})});mo.displayName="Topbar";const Bc=Lt("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground border border-input hover:bg-accent hover:text-accent-foreground",success:"bg-green-600 text-white hover:bg-green-700",warning:"bg-yellow-500 text-white hover:bg-yellow-600",info:"bg-blue-500 text-white hover:bg-blue-600",ghost:"bg-background hover:bg-accent hover:text-accent-foreground",randmarRed:"bg-randmar-red text-white hover:bg-randmar-red/80",randmarBlue:"bg-randmar-blue text-white hover:bg-randmar-blue/80",randmarPurple:"bg-randmar-purple text-white hover:bg-randmar-purple/80",randmarGreen:"bg-randmar-green text-black hover:bg-randmar-green/80",randmarBlack:"bg-randmar-black text-white hover:bg-randmar-black/80",randmarYellow:"bg-randmar-yellow text-black hover:bg-randmar-yellow/80"},size:{default:"h-6",sm:"h-5 text-[10px]",lg:"h-7 px-3"}},defaultVariants:{variant:"default",size:"default"}}),Te=i.forwardRef(({className:e,variant:t,size:r,icon:n,children:a,...s},c)=>o.jsxs("div",{ref:c,className:_(Bc({variant:t,size:r}),e),...s,children:[n&&o.jsx("span",{className:"mr-1",children:n}),a]}));Te.displayName="Badge";const wt=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,className:_("rounded-md border bg-card text-card-foreground shadow-sm",e),...t}));wt.displayName="Card";const Wc=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,className:_("flex flex-col space-y-1.5 p-6",e),...t}));Wc.displayName="CardHeader";const Vc=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,className:_("font-semibold leading-none tracking-tight",e),...t}));Vc.displayName="CardTitle";const Gc=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,className:_("text-sm text-muted-foreground",e),...t}));Gc.displayName="CardDescription";const yt=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,className:_("p-6 pt-0",e),...t}));yt.displayName="CardContent";const Uc=i.forwardRef(({className:e,...t},r)=>o.jsx("div",{ref:r,className:_("flex items-center p-6 pt-0",e),...t}));Uc.displayName="CardFooter";const jc=({countryCode:e,className:t=""})=>{const[r,n]=H.useState(null),[a,s]=H.useState(!1);return H.useEffect(()=>{if(!e)return;const l=`https://purecatamphetamine.github.io/country-flag-icons/3x2/${e.toUpperCase()}.svg`;fetch(l,{method:"HEAD"}).then(u=>{u.ok?(n(l),s(!1)):s(!0)}).catch(()=>{s(!0)})},[e]),a||!r?o.jsx("span",{className:t,children:e}):o.jsx("img",{src:r,alt:`${e} flag`,className:`inline-block ${t}`,style:{width:"24px",height:"auto"}})};function Hc({routes:e,footer:t,dashboardTitle:r}){const{appID:n}=Ar.useParams(),a=e.filter(s=>s.showInNav);return o.jsxs(Yn,{className:"border-r border-sidebar-border",children:[o.jsx(Xn,{className:"border-b border-sidebar-border px-6 h-16 justify-center bg-sidebar text-sidebar-foreground",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("div",{className:"flex items-center justify-center",children:o.jsx("img",{src:"https://api.randmar.io/images/RandmarIcon.svg",alt:"Randmar Icon",className:"h-4 w-4 filter brightness-0 saturate-100 invert"})}),o.jsx("span",{className:"font-semibold text-lg",children:r})]})}),o.jsx(Zn,{className:"py-4 bg-sidebar text-sidebar-foreground",children:o.jsx(Jn,{children:a.map(s=>{const c=s.icon,l=`/${s.path.replace(":appID",n)}`;return o.jsx(Rn,{children:o.jsx(eo,{asChild:!0,children:o.jsxs(Ar.Link,{to:l,className:"transition-colors hover:bg-muted px-6",children:[c&&o.jsx(c,{className:"h-4 w-4"}),o.jsx("span",{children:s.label})]})})},s.key)})})}),o.jsx(Qn,{className:"border-t border-sidebar-border p-4 bg-sidebar-background text-sidebar-foreground",children:t})]})}const Kc=H.forwardRef(({children:e,rightMenu:t,routes:r,footer:n,handleValidSearch:a,dashboardTitle:s,onSignOut:c,searchPlaceholder:l},u)=>o.jsx(o.Fragment,{children:o.jsx(Kn,{children:o.jsxs("div",{className:"flex grow",children:[o.jsx(Hc,{routes:r,footer:n,dashboardTitle:s}),o.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[o.jsx(mo,{ref:u,onSignOut:c,rightMenu:t,handleValidSearch:a,searchPlaceholder:l}),o.jsx("main",{className:"flex-1 overflow-auto mt-16",children:e}),o.jsx(zc,{})]})]})})}));Kc.displayName="Layout";const Pg={sm:100,md:200,lg:300,xl:400};function Yc({randmarSKU:e,size:t="md",alt:r,secondaryContent:n}){const[a,s]=i.useState(!1),[c,l]=i.useState(!1),[u,d]=i.useState(!1),[f,p]=i.useState(!1),h=`https://api.randmar.io/Product/${e}/Video`;i.useEffect(()=>{(async()=>{try{const x=await(await fetch(h+"/Exists")).json();l(x)}catch(y){console.error("Error checking for video:",y),l(!1)}})()},[e,h]);async function m(){if(c){p(!0);try{const y=await(await fetch(h)).blob(),x=window.URL.createObjectURL(y),N=document.createElement("a");N.href=x,N.download=`${e||"product"}-video.mp4`,document.body.appendChild(N),N.click(),document.body.removeChild(N),window.URL.revokeObjectURL(x)}catch(v){console.error("Error downloading video:",v)}finally{p(!1)}}}function b(){navigator.clipboard.writeText(h),d(!0),setTimeout(()=>{d(!1)},2e3)}function g(){s(!0)}const w=Pg[t||"xl"];return o.jsxs(o.Fragment,{children:[o.jsx(St,{open:a,onOpenChange:s,children:o.jsx(Et,{className:"max-w-4xl p-0 overflow-hidden",children:n?o.jsxs("div",{className:"flex flex-row",children:[o.jsxs("video",{className:"w-full rounded-l-lg max-h-[720px] object-contain",controls:!0,autoPlay:!0,muted:!0,loop:!0,children:[o.jsx("source",{src:h,type:"video/mp4"}),"Your browser does not support the video tag."]}),o.jsx("div",{className:"flex-grow min-w-[400px] h-[70vh] p-6",children:n})]}):o.jsxs("div",{className:"w-full relative",children:[o.jsxs("video",{className:"w-full max-h-[720px] object-contain",controls:!0,autoPlay:!0,children:[o.jsx("source",{src:h,type:"video/mp4"}),"Your browser does not support the video tag."]}),o.jsxs("div",{className:"absolute top-2 right-12 flex gap-1",children:[o.jsx(vt,{children:o.jsxs(mt,{children:[o.jsx(bt,{asChild:!0,children:o.jsx(ce,{variant:"secondary",size:"icon",onClick:b,children:u?o.jsx(Dr,{className:"h-4 w-4"}):o.jsx(gl,{className:"h-4 w-4"})})}),o.jsx(Re,{children:o.jsx("p",{children:"Copy video link"})})]})}),o.jsx(vt,{children:o.jsxs(mt,{children:[o.jsx(bt,{asChild:!0,children:o.jsx(ce,{variant:"secondary",size:"icon",onClick:m,disabled:f,children:o.jsx(vl,{className:"h-4 w-4"})})}),o.jsx(Re,{children:o.jsx("p",{children:"Download video"})})]})})]})]})})}),o.jsxs("div",{className:"relative w-max h-max",children:[o.jsx("img",{alt:r||`Product ${e}`,className:`rounded-md ${c?"cursor-pointer":""}`,onClick:c?g:void 0,src:`https://api.randmar.io/Product/${e}/Image?width=${w*1.5}&height=${w*1.5}`,width:w,height:w}),c&&o.jsx(vt,{children:o.jsxs(mt,{children:[o.jsx(bt,{asChild:!0,children:o.jsx(ce,{variant:"secondary",size:"icon",className:"absolute top-2 right-2",onClick:g,children:o.jsx(Nl,{className:"h-4 w-4"})})}),o.jsx(Re,{children:o.jsx("p",{children:"Play video"})})]})})]})]})}function Ag({item:e,addToCart:t=!1,syncToShopify:r=!1,customAction:n=o.jsx(o.Fragment,{}),defaultOpportunityNumber:a="",viewProductAction:s,addToCartAction:c,isAddToCartActionLoading:l=!1,syncToShopifyAction:u,isSyncToShopifyActionLoading:d=!1}){var M,Y,Q,ee,te,ne,se,le,ae,Me,de,Pe;const[f,p]=H.useState(1),[h,m]=H.useState(null),[b,g]=H.useState(0),[w,v]=H.useState(!1),y=((M=e==null?void 0:e.Distribution)==null?void 0:M.Cost)||0,x=((Y=e==null?void 0:e.Distribution)==null?void 0:Y.RegularPrice)||0,N=((Q=e==null?void 0:e.Distribution)==null?void 0:Q.Price)||0,[E,C]=H.useState(null),[T,$]=H.useState(!1);H.useEffect(()=>{const G=async()=>{if(e!=null&&e.ManufacturerId){$(!0);try{const J=await fetch(`https://api.randmar.io/V4/Partner/${e.ManufacturerId}/Account/Logo?width=60&height=40`);if(J.ok){const he=await J.blob();C(URL.createObjectURL(he))}}catch(J){console.error("Failed to load logo:",J)}finally{$(!1)}}};e!=null&&e.ManufacturerId&&G()},[e==null?void 0:e.ManufacturerId]),H.useEffect(()=>{var G;if(e&&a){const J=(G=e.Opportunities)==null?void 0:G.find(he=>he.BidNumber==a);J&&m(J)}},[e,a]),H.useEffect(()=>{if(!e)return;const G=h!=null&&h.Price?h.Price:N;g(x>0?Math.round((x-G)/x*100):0)},[e,h,N,x]),H.useEffect(()=>{l||p(1)},[l]);const O=G=>{if(G.Active!==!0)return!1;const J=new Date().toISOString().split("T")[0];return!(G.EndDate&&G.EndDate<J||G.StartDate&&G.StartDate>J)};if(!e)return o.jsx(wt,{className:"hover:shadow-lg transition-shadow",children:o.jsxs(yt,{className:"p-6",children:[o.jsxs("div",{className:"flex justify-between items-start mb-3",children:[o.jsx(U,{className:"h-7 w-3/4"}),o.jsx("div",{className:"h-10 w-24 flex items-center justify-end ml-4",children:o.jsx(U,{className:"h-10 w-24 rounded-md"})})]}),o.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[o.jsx(U,{className:"h-6 w-20 rounded-full"}),o.jsx(U,{className:"h-6 w-24 rounded-full"}),o.jsx(U,{className:"h-6 w-28 rounded-full"})]}),o.jsxs("div",{className:"flex gap-6",children:[o.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-6 flex-1",children:[o.jsxs("div",{children:[o.jsx(U,{className:"h-4 w-12 mb-1"}),o.jsx(U,{className:"h-5 w-20"})]}),o.jsxs("div",{children:[o.jsx(U,{className:"h-4 w-12 mb-1"}),o.jsx(U,{className:"h-5 w-24"})]}),o.jsxs("div",{children:[o.jsx(U,{className:"h-4 w-20 mb-1"}),o.jsx(U,{className:"h-5 w-16"})]}),o.jsxs("div",{children:[o.jsx(U,{className:"h-4 w-12 mb-1"}),o.jsx(U,{className:"h-5 w-20"})]})]}),o.jsx("div",{className:"flex flex-col",children:o.jsx("div",{className:"w-60 h-40",children:o.jsx(U,{className:"w-full h-full rounded-lg"})})})]}),o.jsxs("div",{className:"flex gap-6 mt-4",children:[o.jsx("div",{className:"flex flex-1",children:o.jsxs("div",{className:"w-full",children:[o.jsx(U,{className:"h-4 w-24 mb-3"}),o.jsx(U,{className:"h-16 w-full rounded-md"})]})}),o.jsxs("div",{className:"flex flex-col items-center",children:[o.jsx(U,{className:"h-10 w-32 rounded-md"}),o.jsx(U,{className:"h-5 w-24 mt-4"})]})]}),o.jsxs("div",{className:"flex gap-6 mt-4",children:[o.jsxs("div",{className:"flex flex-col items-start gap-1 mb-2",children:[o.jsx(U,{className:"h-8 w-32"}),o.jsx(U,{className:"h-6 w-24"})]}),o.jsxs("div",{className:"flex flex-1 items-center gap-2",children:[o.jsx(U,{className:"h-10 w-24 rounded-md"}),o.jsx(U,{className:"h-10 flex-1 rounded-md"})]})]})]})});const B=(e==null?void 0:e.Opportunities)||[],K=B.length>0,F=()=>{if(f==null){p(1);return}f>1&&p(f-1)},L=()=>{if(f==null){p(1);return}p(f+1)},P=G=>{const J=parseInt(G.target.value,10);if(!isNaN(J)&&J>0){p(J);return}p(void 0)},V=()=>{(f==null||f<1)&&p(1)},A=((te=(ee=e.Distribution)==null?void 0:ee.Inventory)==null?void 0:te.reduce((G,J)=>G+(J.AvailableQuantity||0),0))||0,X=G=>{try{return new Date(G).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch(J){return console.error(J),G.split("T")[0]||"N/A"}},D=()=>{c&&c({quantity:f??1,bidNumber:(h==null?void 0:h.BidNumber)??null})};return o.jsx(wt,{className:"hover:shadow-lg transition-shadow",children:o.jsxs(yt,{className:"p-6",children:[o.jsxs("div",{className:"flex justify-between items-start mb-3",children:[o.jsx("h3",{className:"font-semibold text-xl",children:e.Title||e.RandmarTitle}),o.jsx("div",{className:"h-10 w-24 flex items-center justify-end ml-4",children:T?o.jsx(U,{className:"h-10 w-24 rounded-md"}):E&&o.jsx("img",{src:E||"/placeholder.svg",alt:e.ManufacturerName??"",className:"max-h-10 max-w-24 object-contain"})})]}),o.jsxs("div",{className:"flex gap-6",children:[o.jsxs("div",{className:"flex-1",children:[o.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[e.State&&o.jsxs(Te,{variant:"outline",className:`rounded-full px-3 ${e.State==="Active"?"bg-green-50 text-green-700 hover:bg-green-50":"bg-red-50 text-red-700 hover:bg-red-50"}`,children:[o.jsx(Dr,{size:"12",className:"mr-1.5"})," ",e.State]}),o.jsxs(Te,{variant:"outline",className:`rounded-full px-3 ${e.SerialNumber?"bg-green-50 text-green-700 hover:bg-green-50":"bg-yellow-50 text-yellow-700 hover:bg-yellow-50"}`,children:[o.jsx(Cl,{size:"12",className:"mr-1.5"})," ",e.SerialNumber?"Serialized":"Unserialized"]}),e.TransparencyCode&&o.jsxs(Te,{variant:"outline",className:"rounded-full px-3 bg-green-50 text-green-700 hover:bg-green-50",children:[o.jsx(pl,{size:"12",className:"mr-1.5"})," Transparency Code"]}),e.AvailableToBuy===void 0?o.jsxs(Te,{variant:"outline",className:`rounded-full px-3 ${(ne=e.ManufacturerCategory)!=null&&ne.QualificationRequired?"bg-blue-50 text-blue-700 hover:bg-blue-50":"bg-neutral-50 text-neutral-700 hover:bg-neutral-50"}`,children:[o.jsx(Ao,{size:"12",className:"mr-1.5"})," ",(se=e.ManufacturerCategory)!=null&&se.QualificationRequired?"Qualification Enforced":"No Qualification Needed"]}):o.jsxs(Te,{variant:"outline",className:`rounded-full px-3 ${e.AvailableToBuy?"bg-green-50 text-green-700 hover:bg-green-50":"bg-red-50 text-red-700 hover:bg-red-50"}`,children:[o.jsx(Ao,{size:"12",className:"mr-1.5"})," ",(le=e.ManufacturerCategory)!=null&&le.QualificationRequired?e.AvailableToBuy?"Qualified":"Not Qualified":"No Qualification Required"]}),e.ManufacturerId&&o.jsxs(Te,{variant:"outline",className:`rounded-full px-3 ${e.AutoUpdate?"bg-green-50 text-green-700 hover:bg-green-50":"bg-red-50 text-red-700 hover:bg-red-50"}`,children:[o.jsx(Sl,{size:"12",className:"mr-1.5"})," ",e.AutoUpdate?`Automatic Reorder (${e.MasterCarton})`:"Manually Reorders"]}),o.jsxs(Te,{variant:"outline",className:`rounded-full px-3 ${e.BodyHTML&&e.Title&&e.MAP?"bg-green-50 text-green-700 hover:bg-green-50":"bg-red-50 text-red-700 hover:bg-red-50"}`,children:[o.jsx(Tl,{size:"12",className:"mr-1.5"})," ",e.BodyHTML&&e.Title&&e.MAP?"Shopify Ready":"Not Shopify Ready"]})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-4 flex-1",children:[o.jsxs("div",{children:[o.jsx("div",{className:"text-sm text-muted-foreground",children:"MPN"}),o.jsx("div",{className:"font-medium",children:e.MPN||"N/A"})]}),o.jsxs("div",{children:[o.jsx("div",{className:"text-sm text-muted-foreground",children:"UPC"}),o.jsx("div",{className:"font-medium",children:e.UPC||"N/A"})]}),o.jsxs("div",{children:[o.jsx("div",{className:"text-sm text-muted-foreground",children:"Unit Weight"}),o.jsx("div",{className:"font-medium",children:e.UnitWeight?`${e.UnitWeight} lbs`:"N/A"})]}),o.jsxs("div",{children:[o.jsx("div",{className:"text-sm text-muted-foreground",children:"MAP"}),o.jsx("div",{className:"font-medium",children:e.MAP?"$"+e.MAP.toFixed(2):"N/A"})]}),e.CountryCodeOfOrigin&&o.jsxs("div",{children:[o.jsx("div",{className:"text-sm text-muted-foreground",children:"Origin"}),o.jsxs("div",{className:"font-medium flex items-center",children:[o.jsx(jc,{countryCode:e.CountryCodeOfOrigin,className:"mr-2"}),e.CountryCodeOfOrigin]})]})]})]}),o.jsx("div",{className:"flex flex-col",children:o.jsx(Yc,{randmarSKU:e.RandmarSKU||"",alt:e.RandmarTitle||""})})]}),o.jsxs("div",{className:"flex gap-6 mt-4",children:[o.jsx("div",{className:"flex flex-1",children:K&&e.Distribution&&o.jsxs("div",{className:"w-full",children:[o.jsx("div",{className:"flex items-center",children:"You have "+B.length+(B.length>1?" opportunities":" opportunity")+" for this product:"}),o.jsx("div",{className:"space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1",children:B.map((G,J)=>{var he;return o.jsxs("div",{className:`flex justify-between items-center rounded-lg transition-colors py-2 px-4 bg-purple-100 border border-muted
195
- ${G.BidNumber==(h==null?void 0:h.BidNumber)?"cursor-pointer border-2 border-purple-900":O(G)?"hover:bg-purple-200 cursor-pointer":"!bg-neutral-50"}
196
- `,onClick:()=>{O(G)&&m(G.BidNumber!=(h==null?void 0:h.BidNumber)?G:null)},children:[o.jsx("div",{className:"flex items-center",children:o.jsxs("div",{className:"flex flex-col",children:[o.jsx("span",{className:"font-medium text-sm",children:G.Opportunity}),o.jsxs("span",{className:"text-xs text-neutral-900",children:[G.BidNumber," ",!O(G)&&o.jsx(Te,{variant:"outline",className:"text-xs mx-1 h-5 bg-gray-100",children:"Currently unavailable"})]})]})}),o.jsxs("div",{className:"flex flex-col items-end",children:[o.jsxs("span",{className:"font-semibold",children:["$",(he=G.Price)==null?void 0:he.toFixed(2)]}),G.Rebate&&G.Rebate>0&&o.jsxs("span",{className:"text-xs text-green-600",children:["Rebate: $",G.Rebate.toFixed(2)]}),G.EndDate&&o.jsxs("span",{className:"text-xs text-neutral-600",children:["Ends: ",X(G.EndDate)]})]})]},J)})})]})}),o.jsxs("div",{className:"flex flex-col items-center",children:[s&&o.jsxs(ce,{variant:"secondary",onClick:s,children:[o.jsx(ml,{className:"mr-2"}),"View Product"]}),((ae=e.Distribution)==null?void 0:ae.Inventory)&&o.jsx("div",{className:"mt-4",children:o.jsxs(St,{open:w,onOpenChange:v,children:[o.jsx(nn,{asChild:!0,children:o.jsxs(ce,{variant:"ghost",className:`flex items-center text-sm ${A>0?"text-green-700":"text-red-700"}`,children:[o.jsx(Do,{size:"16",className:"mr-2"}),A>0?o.jsxs(o.Fragment,{children:[A," in stock"]}):o.jsx(o.Fragment,{children:"Out of stock"})]})}),o.jsxs(Et,{className:"max-w-4xl",children:[o.jsx(rr,{children:o.jsxs(nr,{className:"flex items-center",children:[o.jsx(Do,{className:"mr-2",size:18}),"Inventory Information"]})}),o.jsx(_i,{inventory:e.Distribution.Inventory})]})]})})]})]}),e.Distribution&&o.jsxs("div",{className:"flex justify-between items-end mt-4",children:[o.jsx("div",{className:"flex-shrink-1 flex flex-col items-start gap-1",children:y>0?o.jsx("div",{className:"flex items-center",children:o.jsxs("span",{className:"text-2xl font-bold whitespace-nowrap",children:[o.jsx("span",{children:"Cost: $"}),y.toFixed(2),o.jsx("span",{children:" CAD"})]})}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex items-center flex-wrap",children:[o.jsxs("span",{className:"text-2xl font-bold whitespace-nowrap",children:[o.jsx("span",{children:"$"}),h?(de=(Me=e.Opportunities)==null?void 0:Me.find(G=>G.BidNumber==h.BidNumber))==null?void 0:de.Price:N.toFixed(2),o.jsx("span",{children:" CAD"})]}),b>0&&o.jsxs("span",{className:"text-muted-foreground line-through ml-2 whitespace-nowrap",children:["$",x.toFixed(2)]})]}),b>0&&o.jsx("div",{className:"flex items-center",children:o.jsxs(Te,{variant:"outline",className:"bg-red-50 text-red-700 rounded-full px-3 whitespace-nowrap",children:[o.jsxs("span",{children:[b,"% OFF"]}),((Pe=e.InstantRebate)==null?void 0:Pe.EndDate)&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"mx-1.5",children:"●"})," Ends ",e.InstantRebate.EndDate.split("T")[0]]}),(h==null?void 0:h.EndDate)&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"mx-1.5",children:"●"})," Ends ",h.EndDate.split("T")[0]]})]})})]})}),o.jsxs("div",{className:"flex flex-shrink-0 gap-2 ml-4",children:[typeof t<"u"&&t&&o.jsxs("div",{className:"flex items-center border rounded-md",children:[o.jsx(ce,{variant:"ghost",size:"icon",className:"rounded-r-none",onClick:F,disabled:typeof f<"u"&&(f<=1||!e.AvailableToBuy||l||!c),children:"-"}),o.jsx("input",{value:f,onChange:P,onBlur:V,onClick:G=>G.currentTarget.select(),className:`w-12 text-center border-0 focus:ring-0 focus:outline-none ${!e.AvailableToBuy||l||!c?"text-gray-400":""}`,disabled:!e.AvailableToBuy||l||!c}),o.jsx(ce,{variant:"ghost",size:"icon",className:"rounded-l-none",onClick:L,disabled:!e.AvailableToBuy||l||!c,children:"+"})]}),typeof t<"u"&&t&&o.jsx(ce,{className:"gap-2 whitespace-nowrap",onClick:D,disabled:!e.AvailableToBuy||l||!c,children:l?o.jsxs(o.Fragment,{children:[o.jsx(Po,{className:"h-4 w-4 animate-spin"}),"Adding..."]}):o.jsxs(o.Fragment,{children:[o.jsx(_o,{className:"mr-2"}),"Add to Cart"]})}),r&&o.jsx(ce,{className:"gap-2 whitespace-nowrap bg-green-600 hover:bg-green-700",onClick:u,disabled:d||!u,children:d?o.jsxs(o.Fragment,{children:[o.jsx(Po,{className:"h-4 w-4 animate-spin"}),"Syncing..."]}):o.jsxs(o.Fragment,{children:[o.jsx(_o,{className:"mr-2"}),"Sync to Shopify"]})}),n]})]})]})})}function _g({id:e,name:t,about:r,voiceName:n,voiceStyle:a,sceneName:s,action:c,loading:l=!1}){const u=`https://api.randmar.io/V4/Partner/${e}/Account/Video`,d=`https://api.randmar.io/V4/Partner/${e}/Account/Video/Exists`,f=`https://api.randmar.io/V4/Partner/${e}/Account/Logo?width=64&height=64`,p=`https://api.randmar.io/V4/Partner/${e}/Account/Logo/Exists`,h=!!(n||a||s),[m,b]=H.useState(null),[g,w]=H.useState(!1),[v,y]=H.useState(!1),[x,N]=H.useState(!1),[E,C]=H.useState(!0);H.useEffect(()=>{if(!e||l)return;const $=async()=>{try{const F=await fetch(p);if(F.ok){const P=(await F.text()).toLowerCase()==="true";return y(P),P}return!1}catch(F){return console.error("Failed to check if logo exists:",F),y(!1),!1}},O=async()=>{w(!0);try{const F=await fetch(f);if(F.ok){const L=await F.blob();b(URL.createObjectURL(L))}}catch(F){console.error("Failed to load logo:",F)}finally{w(!1)}},B=async()=>{try{const F=await fetch(d);if(F.ok){const L=await F.text();N(L.toLowerCase()==="true")}}catch(F){console.error("Failed to check if video exists:",F),N(!1)}};(async()=>{await $()&&O(),B()})()},[e,f,p,d,l]);const T=()=>{C(!1)};return l?o.jsx(wt,{className:"hover:shadow-lg transition-shadow",children:o.jsxs(yt,{className:"p-6",children:[o.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start gap-4 mb-4",children:[o.jsxs("div",{className:"flex items-center",children:[o.jsx("div",{className:"h-10 flex items-center justify-center mr-4",children:o.jsx(U,{className:"h-10 w-10 rounded-md"})}),o.jsx(U,{className:"h-7 w-40"})]}),o.jsx("div",{className:"w-full sm:w-auto",children:o.jsx(U,{className:"h-9 w-24"})})]}),o.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[o.jsxs("div",{className:"flex-1 flex flex-col order-1 md:order-1",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsx(U,{className:"h-4 w-full"}),o.jsx(U,{className:"h-4 w-full"}),o.jsx(U,{className:"h-4 w-3/4"}),o.jsx(U,{className:"h-4 w-5/6"})]}),o.jsx("div",{className:"mt-4 p-3 bg-slate-50 rounded-md",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-2",children:[o.jsxs("div",{children:[o.jsx(U,{className:"h-3 w-20 mb-1"}),o.jsx(U,{className:"h-5 w-24"})]}),o.jsxs("div",{children:[o.jsx(U,{className:"h-3 w-20 mb-1"}),o.jsx(U,{className:"h-5 w-24"})]}),o.jsxs("div",{children:[o.jsx(U,{className:"h-3 w-20 mb-1"}),o.jsx(U,{className:"h-5 w-24"})]})]})})]}),o.jsx("div",{className:"flex flex-col order-1 md:order-1 md:w-auto",children:o.jsx("div",{className:"w-[180px] h-[320px] rounded-md overflow-hidden",children:o.jsx(U,{className:"w-full h-full"})})})]})]})}):o.jsx(wt,{className:"hover:shadow-lg transition-shadow",children:o.jsxs(yt,{className:"p-6",children:[o.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start gap-4 mb-4",children:[o.jsxs("div",{className:"flex items-center",children:[v&&o.jsx("div",{className:"h-10 flex items-center justify-center mr-4",children:g?o.jsx(U,{className:"h-10 w-10 rounded-md"}):m&&o.jsx("img",{src:m||"/placeholder.svg",alt:`${t} logo`,className:"max-h-10 w-auto object-contain"})}),o.jsx("h3",{className:"font-semibold text-xl",children:t})]}),c&&o.jsx("div",{className:"w-full sm:w-auto",children:c})]}),o.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[o.jsxs("div",{className:"flex-1 flex flex-col order-1 md:order-1",children:[o.jsx("div",{className:"prose prose-sm max-w-none",dangerouslySetInnerHTML:{__html:r}}),h&&o.jsx("div",{className:"mt-4 p-3 bg-slate-50 rounded-md",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-2",children:[n&&o.jsxs("div",{children:[o.jsx("div",{className:"text-sm text-muted-foreground",children:"Voice Name"}),o.jsx("div",{className:"font-medium",children:n})]}),a&&o.jsxs("div",{children:[o.jsx("div",{className:"text-sm text-muted-foreground",children:"Voice Style"}),o.jsx("div",{className:"font-medium",children:a})]}),s&&o.jsxs("div",{children:[o.jsx("div",{className:"text-sm text-muted-foreground",children:"Scene Name"}),o.jsx("div",{className:"font-medium",children:s})]})]})})]}),x&&o.jsx("div",{className:"flex flex-col order-1 md:order-1 md:w-auto",children:o.jsxs("div",{className:"w-[180px] h-[320px] rounded-md overflow-hidden",children:[E&&o.jsx(U,{className:"w-full h-full"}),o.jsx("video",{src:u,controls:!0,preload:"auto",playsInline:!0,className:`w-full h-full object-contain ${E?"invisible":"visible"}`,style:{objectPosition:"center",imageRendering:"auto"},onLoadedData:T,onError:()=>C(!1)})]})})]})]})})}S.AvatarFooter=qh,S.Badge=Te,S.Button=ce,S.Card=wt,S.CardContent=yt,S.CardDescription=Gc,S.CardFooter=Uc,S.CardHeader=Wc,S.CardTitle=Vc,S.CountryFlag=jc,S.Dialog=St,S.DialogClose=on,S.DialogContent=Et,S.DialogDescription=cn,S.DialogFooter=sn,S.DialogHeader=rr,S.DialogOverlay=an,S.DialogPortal=$a,S.DialogTitle=nr,S.DialogTrigger=nn,S.DropdownMenu=gh,S.DropdownMenuCheckboxItem=Ei,S.DropdownMenuContent=Ci,S.DropdownMenuGroup=mh,S.DropdownMenuItem=Si,S.DropdownMenuLabel=Mi,S.DropdownMenuPortal=bh,S.DropdownMenuRadioGroup=yh,S.DropdownMenuRadioItem=Ti,S.DropdownMenuSeparator=Pi,S.DropdownMenuShortcut=Ai,S.DropdownMenuSub=wh,S.DropdownMenuSubContent=Ni,S.DropdownMenuSubTrigger=xi,S.DropdownMenuTrigger=vh,S.Input=Nr,S.InputOTP=hd,S.InputOTPGroup=gd,S.InputOTPSeparator=md,S.InputOTPSlot=vd,S.Label=Zh,S.Layout=Kc,S.Navbar=Hc,S.PartnerCard=_g,S.ProductCard=Ag,S.ProductImage=Yc,S.ProductInventoryGrid=_i,S.Separator=Gn,S.Sheet=Hi,S.SheetClose=Kh,S.SheetContent=jn,S.SheetDescription=Qi,S.SheetFooter=qi,S.SheetHeader=Yi,S.SheetOverlay=Un,S.SheetPortal=Ki,S.SheetTitle=Xi,S.SheetTrigger=Hh,S.Sidebar=Yn,S.SidebarContent=Zn,S.SidebarFooter=Qn,S.SidebarGroup=oc,S.SidebarGroupAction=sc,S.SidebarGroupContent=ic,S.SidebarGroupLabel=ac,S.SidebarHeader=Xn,S.SidebarInput=rc,S.SidebarInset=tc,S.SidebarMenu=Jn,S.SidebarMenuAction=cc,S.SidebarMenuBadge=lc,S.SidebarMenuButton=eo,S.SidebarMenuItem=Rn,S.SidebarMenuSkeleton=dc,S.SidebarMenuSub=uc,S.SidebarMenuSubButton=pc,S.SidebarMenuSubItem=fc,S.SidebarProvider=Kn,S.SidebarRail=ec,S.SidebarSeparator=nc,S.SidebarTrigger=qn,S.Skeleton=U,S.Toast=lo,S.ToastAction=Lc,S.ToastClose=uo,S.ToastDescription=po,S.ToastProvider=Oc,S.ToastTitle=fo,S.ToastViewport=co,S.Toaster=zc,S.Tooltip=mt,S.TooltipContent=Re,S.TooltipProvider=vt,S.TooltipTrigger=bt,S.Topbar=mo,S.badgeVariants=Bc,S.buttonVariants=$n,S.toast=$c,S.useIsMobile=Ji,S.useSidebar=$t,S.useToast=vo,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
194
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return React__namespace.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},DESCRIPTION_WARNING_NAME="DialogDescriptionWarning",DescriptionWarning=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${useWarningContext(DESCRIPTION_WARNING_NAME).contentName}}.`;return React__namespace.useEffect(()=>{var l;const o=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},Root$5=Dialog$1,Trigger$2=DialogTrigger$1,Portal$2=DialogPortal$1,Overlay=DialogOverlay$1,Content$1=DialogContent$1,Title$1=DialogTitle$1,Description$1=DialogDescription$1,Close$1=DialogClose$1;const Dialog=({modal:e=!1,...t})=>jsxRuntime.jsx(Root$5,{modal:e,...t});Dialog.displayName=Root$5.displayName;const DialogTrigger=Trigger$2,DialogPortal=Portal$2,DialogClose=Close$1,DialogOverlay=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(Overlay,{ref:n,className:cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));DialogOverlay.displayName=Overlay.displayName;const DialogContent=React__namespace.forwardRef(({className:e,children:t,...n},i)=>jsxRuntime.jsxs(DialogPortal,{children:[jsxRuntime.jsx(DialogOverlay,{}),jsxRuntime.jsxs(Content$1,{ref:i,className:cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-2xl shadow-primary duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,jsxRuntime.jsxs(Close$1,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsxRuntime.jsx(X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));DialogContent.displayName=Content$1.displayName;const DialogHeader=({className:e,...t})=>jsxRuntime.jsx("div",{className:cn("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});DialogHeader.displayName="DialogHeader";const DialogFooter=({className:e,...t})=>jsxRuntime.jsx("div",{className:cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});DialogFooter.displayName="DialogFooter";const DialogTitle=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(Title$1,{ref:n,className:cn("text-lg font-semibold leading-none tracking-tight",e),...t}));DialogTitle.displayName=Title$1.displayName;const DialogDescription=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(Description$1,{ref:n,className:cn("text-sm text-muted-foreground",e),...t}));DialogDescription.displayName=Description$1.displayName;function createCollection(e){const t=e+"CollectionProvider",[n,i]=createContextScope(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=S=>{const{scope:E,children:R}=S,b=React.useRef(null),A=React.useRef(new Map).current;return jsxRuntime.jsx(o,{scope:E,itemMap:A,collectionRef:b,children:R})};u.displayName=t;const f=e+"CollectionSlot",p=React.forwardRef((S,E)=>{const{scope:R,children:b}=S,A=l(f,R),C=useComposedRefs(E,A.collectionRef);return jsxRuntime.jsx(Slot,{ref:C,children:b})});p.displayName=f;const d=e+"CollectionItemSlot",m="data-radix-collection-item",g=React.forwardRef((S,E)=>{const{scope:R,children:b,...A}=S,C=React.useRef(null),O=useComposedRefs(E,C),M=l(d,R);return React.useEffect(()=>(M.itemMap.set(C,{ref:C,...A}),()=>void M.itemMap.delete(C))),jsxRuntime.jsx(Slot,{[m]:"",ref:O,children:b})});g.displayName=d;function _(S){const E=l(e+"CollectionConsumer",S);return React.useCallback(()=>{const b=E.collectionRef.current;if(!b)return[];const A=Array.from(b.querySelectorAll(`[${m}]`));return Array.from(E.itemMap.values()).sort((M,T)=>A.indexOf(M.ref.current)-A.indexOf(T.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:u,Slot:p,ItemSlot:g},_,i]}var DirectionContext=React__namespace.createContext(void 0);function useDirection(e){const t=React__namespace.useContext(DirectionContext);return e||t||"ltr"}const sides=["top","right","bottom","left"],min$2=Math.min,max$2=Math.max,round$1=Math.round,floor=Math.floor,createCoords=e=>({x:e,y:e}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp(e,t,n){return max$2(e,min$2(t,n))}function evaluate(e,t){return typeof e=="function"?e(t):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return e==="x"?"y":"x"}function getAxisLength(e){return e==="y"?"height":"width"}function getSideAxis(e){return["top","bottom"].includes(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,t,n){n===void 0&&(n=!1);const i=getAlignment(e),o=getAlignmentAxis(e),l=getAxisLength(o);let u=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=getOppositePlacement(u)),[u,getOppositePlacement(u)]}function getExpandedPlacements(e){const t=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,t=>oppositeAlignmentMap[t])}function getSideList(e,t,n){const i=["left","right"],o=["right","left"],l=["top","bottom"],u=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:i:t?i:o;case"left":case"right":return t?l:u;default:return[]}}function getOppositeAxisPlacements(e,t,n,i){const o=getAlignment(e);let l=getSideList(getSide(e),n==="start",i);return o&&(l=l.map(u=>u+"-"+o),t&&(l=l.concat(l.map(getOppositeAlignmentPlacement)))),l}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,t=>oppositeSideMap[t])}function expandPaddingObject(e){return{top:0,right:0,bottom:0,left:0,...e}}function getPaddingObject(e){return typeof e!="number"?expandPaddingObject(e):{top:e,right:e,bottom:e,left:e}}function rectToClientRect(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function computeCoordsFromPlacement(e,t,n){let{reference:i,floating:o}=e;const l=getSideAxis(t),u=getAlignmentAxis(t),f=getAxisLength(u),p=getSide(t),d=l==="y",m=i.x+i.width/2-o.width/2,g=i.y+i.height/2-o.height/2,_=i[f]/2-o[f]/2;let S;switch(p){case"top":S={x:m,y:i.y-o.height};break;case"bottom":S={x:m,y:i.y+i.height};break;case"right":S={x:i.x+i.width,y:g};break;case"left":S={x:i.x-o.width,y:g};break;default:S={x:i.x,y:i.y}}switch(getAlignment(t)){case"start":S[u]-=_*(n&&d?-1:1);break;case"end":S[u]+=_*(n&&d?-1:1);break}return S}const computePosition$1=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:l=[],platform:u}=n,f=l.filter(Boolean),p=await(u.isRTL==null?void 0:u.isRTL(t));let d=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:g}=computeCoordsFromPlacement(d,i,p),_=i,S={},E=0;for(let R=0;R<f.length;R++){const{name:b,fn:A}=f[R],{x:C,y:O,data:M,reset:T}=await A({x:m,y:g,initialPlacement:i,placement:_,strategy:o,middlewareData:S,rects:d,platform:u,elements:{reference:e,floating:t}});m=C??m,g=O??g,S={...S,[b]:{...S[b],...M}},T&&E<=50&&(E++,typeof T=="object"&&(T.placement&&(_=T.placement),T.rects&&(d=T.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:m,y:g}=computeCoordsFromPlacement(d,_,p)),R=-1)}return{x:m,y:g,placement:_,strategy:o,middlewareData:S}};async function detectOverflow(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:l,rects:u,elements:f,strategy:p}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:_=!1,padding:S=0}=evaluate(t,e),E=getPaddingObject(S),b=f[_?g==="floating"?"reference":"floating":g],A=rectToClientRect(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(b)))==null||n?b:b.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:d,rootBoundary:m,strategy:p})),C=g==="floating"?{x:i,y:o,width:u.floating.width,height:u.floating.height}:u.reference,O=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),M=await(l.isElement==null?void 0:l.isElement(O))?await(l.getScale==null?void 0:l.getScale(O))||{x:1,y:1}:{x:1,y:1},T=rectToClientRect(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:C,offsetParent:O,strategy:p}):C);return{top:(A.top-T.top+E.top)/M.y,bottom:(T.bottom-A.bottom+E.bottom)/M.y,left:(A.left-T.left+E.left)/M.x,right:(T.right-A.right+E.right)/M.x}}const arrow$3=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:l,platform:u,elements:f,middlewareData:p}=t,{element:d,padding:m=0}=evaluate(e,t)||{};if(d==null)return{};const g=getPaddingObject(m),_={x:n,y:i},S=getAlignmentAxis(o),E=getAxisLength(S),R=await u.getDimensions(d),b=S==="y",A=b?"top":"left",C=b?"bottom":"right",O=b?"clientHeight":"clientWidth",M=l.reference[E]+l.reference[S]-_[S]-l.floating[E],T=_[S]-l.reference[S],j=await(u.getOffsetParent==null?void 0:u.getOffsetParent(d));let I=j?j[O]:0;(!I||!await(u.isElement==null?void 0:u.isElement(j)))&&(I=f.floating[O]||l.floating[E]);const D=M/2-T/2,L=I/2-R[E]/2-1,F=min$2(g[A],L),N=min$2(g[C],L),B=F,z=I-R[E]-N,V=I/2-R[E]/2+D,W=clamp(B,V,z),U=!p.arrow&&getAlignment(o)!=null&&V!==W&&l.reference[E]/2-(V<B?F:N)-R[E]/2<0,Q=U?V<B?V-B:V-z:0;return{[S]:_[S]+Q,data:{[S]:W,centerOffset:V-W-Q,...U&&{alignmentOffset:Q}},reset:U}}}),flip$2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:l,rects:u,initialPlacement:f,platform:p,elements:d}=t,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:_,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:R=!0,...b}=evaluate(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const A=getSide(o),C=getSideAxis(f),O=getSide(f)===f,M=await(p.isRTL==null?void 0:p.isRTL(d.floating)),T=_||(O||!R?[getOppositePlacement(f)]:getExpandedPlacements(f)),j=E!=="none";!_&&j&&T.push(...getOppositeAxisPlacements(f,R,E,M));const I=[f,...T],D=await detectOverflow(t,b),L=[];let F=((i=l.flip)==null?void 0:i.overflows)||[];if(m&&L.push(D[A]),g){const V=getAlignmentSides(o,u,M);L.push(D[V[0]],D[V[1]])}if(F=[...F,{placement:o,overflows:L}],!L.every(V=>V<=0)){var N,B;const V=(((N=l.flip)==null?void 0:N.index)||0)+1,W=I[V];if(W)return{data:{index:V,overflows:F},reset:{placement:W}};let U=(B=F.filter(Q=>Q.overflows[0]<=0).sort((Q,q)=>Q.overflows[1]-q.overflows[1])[0])==null?void 0:B.placement;if(!U)switch(S){case"bestFit":{var z;const Q=(z=F.filter(q=>{if(j){const G=getSideAxis(q.placement);return G===C||G==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(G=>G>0).reduce((G,H)=>G+H,0)]).sort((q,G)=>q[1]-G[1])[0])==null?void 0:z[0];Q&&(U=Q);break}case"initialPlacement":U=f;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function getSideOffsets(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function isAnySideFullyClipped(e){return sides.some(t=>e[t]>=0)}const hide$2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...o}=evaluate(e,t);switch(i){case"referenceHidden":{const l=await detectOverflow(t,{...o,elementContext:"reference"}),u=getSideOffsets(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:isAnySideFullyClipped(u)}}}case"escaped":{const l=await detectOverflow(t,{...o,altBoundary:!0}),u=getSideOffsets(l,n.floating);return{data:{escapedOffsets:u,escaped:isAnySideFullyClipped(u)}}}default:return{}}}}};async function convertValueToCoords(e,t){const{placement:n,platform:i,elements:o}=e,l=await(i.isRTL==null?void 0:i.isRTL(o.floating)),u=getSide(n),f=getAlignment(n),p=getSideAxis(n)==="y",d=["left","top"].includes(u)?-1:1,m=l&&p?-1:1,g=evaluate(t,e);let{mainAxis:_,crossAxis:S,alignmentAxis:E}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof E=="number"&&(S=f==="end"?E*-1:E),p?{x:S*m,y:_*d}:{x:_*d,y:S*m}}const offset$2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:l,placement:u,middlewareData:f}=t,p=await convertValueToCoords(t,e);return u===((n=f.offset)==null?void 0:n.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+p.x,y:l+p.y,data:{...p,placement:u}}}}},shift$2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:f={fn:b=>{let{x:A,y:C}=b;return{x:A,y:C}}},...p}=evaluate(e,t),d={x:n,y:i},m=await detectOverflow(t,p),g=getSideAxis(getSide(o)),_=getOppositeAxis(g);let S=d[_],E=d[g];if(l){const b=_==="y"?"top":"left",A=_==="y"?"bottom":"right",C=S+m[b],O=S-m[A];S=clamp(C,S,O)}if(u){const b=g==="y"?"top":"left",A=g==="y"?"bottom":"right",C=E+m[b],O=E-m[A];E=clamp(C,E,O)}const R=f.fn({...t,[_]:S,[g]:E});return{...R,data:{x:R.x-n,y:R.y-i,enabled:{[_]:l,[g]:u}}}}}},limitShift$2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:l,middlewareData:u}=t,{offset:f=0,mainAxis:p=!0,crossAxis:d=!0}=evaluate(e,t),m={x:n,y:i},g=getSideAxis(o),_=getOppositeAxis(g);let S=m[_],E=m[g];const R=evaluate(f,t),b=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(p){const O=_==="y"?"height":"width",M=l.reference[_]-l.floating[O]+b.mainAxis,T=l.reference[_]+l.reference[O]-b.mainAxis;S<M?S=M:S>T&&(S=T)}if(d){var A,C;const O=_==="y"?"width":"height",M=["top","left"].includes(getSide(o)),T=l.reference[g]-l.floating[O]+(M&&((A=u.offset)==null?void 0:A[g])||0)+(M?0:b.crossAxis),j=l.reference[g]+l.reference[O]+(M?0:((C=u.offset)==null?void 0:C[g])||0)-(M?b.crossAxis:0);E<T?E=T:E>j&&(E=j)}return{[_]:S,[g]:E}}}},size$2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:l,platform:u,elements:f}=t,{apply:p=()=>{},...d}=evaluate(e,t),m=await detectOverflow(t,d),g=getSide(o),_=getAlignment(o),S=getSideAxis(o)==="y",{width:E,height:R}=l.floating;let b,A;g==="top"||g==="bottom"?(b=g,A=_===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(A=g,b=_==="end"?"top":"bottom");const C=R-m.top-m.bottom,O=E-m.left-m.right,M=min$2(R-m[b],C),T=min$2(E-m[A],O),j=!t.middlewareData.shift;let I=M,D=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=O),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(I=C),j&&!_){const F=max$2(m.left,0),N=max$2(m.right,0),B=max$2(m.top,0),z=max$2(m.bottom,0);S?D=E-2*(F!==0||N!==0?F+N:max$2(m.left,m.right)):I=R-2*(B!==0||z!==0?B+z:max$2(m.top,m.bottom))}await p({...t,availableWidth:D,availableHeight:I});const L=await u.getDimensions(f.floating);return E!==L.width||R!==L.height?{reset:{rects:!0}}:{}}}};function hasWindow(){return typeof window<"u"}function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return(t=(isNode(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function isNode(e){return hasWindow()?e instanceof Node||e instanceof getWindow(e).Node:!1}function isElement(e){return hasWindow()?e instanceof Element||e instanceof getWindow(e).Element:!1}function isHTMLElement$1(e){return hasWindow()?e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement:!1}function isShadowRoot(e){return!hasWindow()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot}function isOverflowElement(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=getComputedStyle$1(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(o)}function isTableElement(e){return["table","td","th"].includes(getNodeName(e))}function isTopLayer(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function isContainingBlock(e){const t=isWebKit(),n=isElement(e)?getComputedStyle$1(e):e;return["transform","translate","scale","rotate","perspective"].some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(n.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(n.contain||"").includes(i))}function getContainingBlock(e){let t=getParentNode(e);for(;isHTMLElement$1(t)&&!isLastTraversableNode(t);){if(isContainingBlock(t))return t;if(isTopLayer(t))return null;t=getParentNode(t)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}function getComputedStyle$1(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function getParentNode(e){if(getNodeName(e)==="html")return e;const t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){const t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement$1(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=getNearestOverflowAncestor(e),l=o===((i=e.ownerDocument)==null?void 0:i.body),u=getWindow(o);if(l){const f=getFrameElement(u);return t.concat(u,u.visualViewport||[],isOverflowElement(o)?o:[],f&&n?getOverflowAncestors(f):[])}return t.concat(o,getOverflowAncestors(o,[],n))}function getFrameElement(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function getCssDimensions(e){const t=getComputedStyle$1(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=isHTMLElement$1(e),l=o?e.offsetWidth:n,u=o?e.offsetHeight:i,f=round$1(n)!==l||round$1(i)!==u;return f&&(n=l,i=u),{width:n,height:i,$:f}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){const t=unwrapElement(e);if(!isHTMLElement$1(t))return createCoords(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:l}=getCssDimensions(t);let u=(l?round$1(n.width):n.width)/i,f=(l?round$1(n.height):n.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const noOffsets=createCoords(0);function getVisualOffsets(e){const t=getWindow(e);return!isWebKit()||!t.visualViewport?noOffsets:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function shouldAddVisualOffsets(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==getWindow(e)?!1:t}function getBoundingClientRect(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=unwrapElement(e);let u=createCoords(1);t&&(i?isElement(i)&&(u=getScale(i)):u=getScale(e));const f=shouldAddVisualOffsets(l,n,i)?getVisualOffsets(l):createCoords(0);let p=(o.left+f.x)/u.x,d=(o.top+f.y)/u.y,m=o.width/u.x,g=o.height/u.y;if(l){const _=getWindow(l),S=i&&isElement(i)?getWindow(i):i;let E=_,R=getFrameElement(E);for(;R&&i&&S!==E;){const b=getScale(R),A=R.getBoundingClientRect(),C=getComputedStyle$1(R),O=A.left+(R.clientLeft+parseFloat(C.paddingLeft))*b.x,M=A.top+(R.clientTop+parseFloat(C.paddingTop))*b.y;p*=b.x,d*=b.y,m*=b.x,g*=b.y,p+=O,d+=M,E=getWindow(R),R=getFrameElement(E)}}return rectToClientRect({width:m,height:g,x:p,y:d})}function getWindowScrollBarX(e,t){const n=getNodeScroll(e).scrollLeft;return t?t.left+n:getBoundingClientRect(getDocumentElement(e)).left+n}function getHTMLOffset(e,t,n){n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=i.left+t.scrollLeft-(n?0:getWindowScrollBarX(e,i)),l=i.top+t.scrollTop;return{x:o,y:l}}function convertOffsetParentRelativeRectToViewportRelativeRect(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const l=o==="fixed",u=getDocumentElement(i),f=t?isTopLayer(t.floating):!1;if(i===u||f&&l)return n;let p={scrollLeft:0,scrollTop:0},d=createCoords(1);const m=createCoords(0),g=isHTMLElement$1(i);if((g||!g&&!l)&&((getNodeName(i)!=="body"||isOverflowElement(u))&&(p=getNodeScroll(i)),isHTMLElement$1(i))){const S=getBoundingClientRect(i);d=getScale(i),m.x=S.x+i.clientLeft,m.y=S.y+i.clientTop}const _=u&&!g&&!l?getHTMLOffset(u,p,!0):createCoords(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-p.scrollLeft*d.x+m.x+_.x,y:n.y*d.y-p.scrollTop*d.y+m.y+_.y}}function getClientRects(e){return Array.from(e.getClientRects())}function getDocumentRect(e){const t=getDocumentElement(e),n=getNodeScroll(e),i=e.ownerDocument.body,o=max$2(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),l=max$2(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let u=-n.scrollLeft+getWindowScrollBarX(e);const f=-n.scrollTop;return getComputedStyle$1(i).direction==="rtl"&&(u+=max$2(t.clientWidth,i.clientWidth)-o),{width:o,height:l,x:u,y:f}}function getViewportRect(e,t){const n=getWindow(e),i=getDocumentElement(e),o=n.visualViewport;let l=i.clientWidth,u=i.clientHeight,f=0,p=0;if(o){l=o.width,u=o.height;const d=isWebKit();(!d||d&&t==="fixed")&&(f=o.offsetLeft,p=o.offsetTop)}return{width:l,height:u,x:f,y:p}}function getInnerBoundingClientRect(e,t){const n=getBoundingClientRect(e,!0,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,l=isHTMLElement$1(e)?getScale(e):createCoords(1),u=e.clientWidth*l.x,f=e.clientHeight*l.y,p=o*l.x,d=i*l.y;return{width:u,height:f,x:p,y:d}}function getClientRectFromClippingAncestor(e,t,n){let i;if(t==="viewport")i=getViewportRect(e,n);else if(t==="document")i=getDocumentRect(getDocumentElement(e));else if(isElement(t))i=getInnerBoundingClientRect(t,n);else{const o=getVisualOffsets(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return rectToClientRect(i)}function hasFixedPositionAncestor(e,t){const n=getParentNode(e);return n===t||!isElement(n)||isLastTraversableNode(n)?!1:getComputedStyle$1(n).position==="fixed"||hasFixedPositionAncestor(n,t)}function getClippingElementAncestors(e,t){const n=t.get(e);if(n)return n;let i=getOverflowAncestors(e,[],!1).filter(f=>isElement(f)&&getNodeName(f)!=="body"),o=null;const l=getComputedStyle$1(e).position==="fixed";let u=l?getParentNode(e):e;for(;isElement(u)&&!isLastTraversableNode(u);){const f=getComputedStyle$1(u),p=isContainingBlock(u);!p&&f.position==="fixed"&&(o=null),(l?!p&&!o:!p&&f.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||isOverflowElement(u)&&!p&&hasFixedPositionAncestor(e,u))?i=i.filter(m=>m!==u):o=f,u=getParentNode(u)}return t.set(e,i),i}function getClippingRect(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const u=[...n==="clippingAncestors"?isTopLayer(t)?[]:getClippingElementAncestors(t,this._c):[].concat(n),i],f=u[0],p=u.reduce((d,m)=>{const g=getClientRectFromClippingAncestor(t,m,o);return d.top=max$2(g.top,d.top),d.right=min$2(g.right,d.right),d.bottom=min$2(g.bottom,d.bottom),d.left=max$2(g.left,d.left),d},getClientRectFromClippingAncestor(t,f,o));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function getDimensions(e){const{width:t,height:n}=getCssDimensions(e);return{width:t,height:n}}function getRectRelativeToOffsetParent(e,t,n){const i=isHTMLElement$1(t),o=getDocumentElement(t),l=n==="fixed",u=getBoundingClientRect(e,!0,l,t);let f={scrollLeft:0,scrollTop:0};const p=createCoords(0);if(i||!i&&!l)if((getNodeName(t)!=="body"||isOverflowElement(o))&&(f=getNodeScroll(t)),i){const _=getBoundingClientRect(t,!0,l,t);p.x=_.x+t.clientLeft,p.y=_.y+t.clientTop}else o&&(p.x=getWindowScrollBarX(o));const d=o&&!i&&!l?getHTMLOffset(o,f):createCoords(0),m=u.left+f.scrollLeft-p.x-d.x,g=u.top+f.scrollTop-p.y-d.y;return{x:m,y:g,width:u.width,height:u.height}}function isStaticPositioned(e){return getComputedStyle$1(e).position==="static"}function getTrueOffsetParent(e,t){if(!isHTMLElement$1(e)||getComputedStyle$1(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return getDocumentElement(e)===n&&(n=n.ownerDocument.body),n}function getOffsetParent(e,t){const n=getWindow(e);if(isTopLayer(e))return n;if(!isHTMLElement$1(e)){let o=getParentNode(e);for(;o&&!isLastTraversableNode(o);){if(isElement(o)&&!isStaticPositioned(o))return o;o=getParentNode(o)}return n}let i=getTrueOffsetParent(e,t);for(;i&&isTableElement(i)&&isStaticPositioned(i);)i=getTrueOffsetParent(i,t);return i&&isLastTraversableNode(i)&&isStaticPositioned(i)&&!isContainingBlock(i)?n:i||getContainingBlock(e)||n}const getElementRects=async function(e){const t=this.getOffsetParent||getOffsetParent,n=this.getDimensions,i=await n(e.floating);return{reference:getRectRelativeToOffsetParent(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function isRTL(e){return getComputedStyle$1(e).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function rectsAreEqual(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function observeMove(e,t){let n=null,i;const o=getDocumentElement(e);function l(){var f;clearTimeout(i),(f=n)==null||f.disconnect(),n=null}function u(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),l();const d=e.getBoundingClientRect(),{left:m,top:g,width:_,height:S}=d;if(f||t(),!_||!S)return;const E=floor(g),R=floor(o.clientWidth-(m+_)),b=floor(o.clientHeight-(g+S)),A=floor(m),O={rootMargin:-E+"px "+-R+"px "+-b+"px "+-A+"px",threshold:max$2(0,min$2(1,p))||1};let M=!0;function T(j){const I=j[0].intersectionRatio;if(I!==p){if(!M)return u();I?u(!1,I):i=setTimeout(()=>{u(!1,1e-7)},1e3)}I===1&&!rectsAreEqual(d,e.getBoundingClientRect())&&u(),M=!1}try{n=new IntersectionObserver(T,{...O,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,O)}n.observe(e)}return u(!0),l}function autoUpdate(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,d=unwrapElement(e),m=o||l?[...d?getOverflowAncestors(d):[],...getOverflowAncestors(t)]:[];m.forEach(A=>{o&&A.addEventListener("scroll",n,{passive:!0}),l&&A.addEventListener("resize",n)});const g=d&&f?observeMove(d,n):null;let _=-1,S=null;u&&(S=new ResizeObserver(A=>{let[C]=A;C&&C.target===d&&S&&(S.unobserve(t),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var O;(O=S)==null||O.observe(t)})),n()}),d&&!p&&S.observe(d),S.observe(t));let E,R=p?getBoundingClientRect(e):null;p&&b();function b(){const A=getBoundingClientRect(e);R&&!rectsAreEqual(R,A)&&n(),R=A,E=requestAnimationFrame(b)}return n(),()=>{var A;m.forEach(C=>{o&&C.removeEventListener("scroll",n),l&&C.removeEventListener("resize",n)}),g==null||g(),(A=S)==null||A.disconnect(),S=null,p&&cancelAnimationFrame(E)}}const offset$1=offset$2,shift$1=shift$2,flip$1=flip$2,size$1=size$2,hide$1=hide$2,arrow$2=arrow$3,limitShift$1=limitShift$2,computePosition=(e,t,n)=>{const i=new Map,o={platform,...n},l={...o.platform,_c:i};return computePosition$1(e,t,{...o,platform:l})};var index=typeof document<"u"?React.useLayoutEffect:React.useEffect;function deepEqual$1(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!deepEqual$1(e[i],t[i]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,o[i]))return!1;for(i=n;i--!==0;){const l=o[i];if(!(l==="_owner"&&e.$$typeof)&&!deepEqual$1(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function getDPR(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(e,t){const n=getDPR(e);return Math.round(t*n)/n}function useLatestRef(e){const t=React__namespace.useRef(e);return index(()=>{t.current=e}),t}function useFloating(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:u}={},transform:f=!0,whileElementsMounted:p,open:d}=e,[m,g]=React__namespace.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[_,S]=React__namespace.useState(i);deepEqual$1(_,i)||S(i);const[E,R]=React__namespace.useState(null),[b,A]=React__namespace.useState(null),C=React__namespace.useCallback(q=>{q!==j.current&&(j.current=q,R(q))},[]),O=React__namespace.useCallback(q=>{q!==I.current&&(I.current=q,A(q))},[]),M=l||E,T=u||b,j=React__namespace.useRef(null),I=React__namespace.useRef(null),D=React__namespace.useRef(m),L=p!=null,F=useLatestRef(p),N=useLatestRef(o),B=useLatestRef(d),z=React__namespace.useCallback(()=>{if(!j.current||!I.current)return;const q={placement:t,strategy:n,middleware:_};N.current&&(q.platform=N.current),computePosition(j.current,I.current,q).then(G=>{const H={...G,isPositioned:B.current!==!1};V.current&&!deepEqual$1(D.current,H)&&(D.current=H,ReactDOM__namespace.flushSync(()=>{g(H)}))})},[_,t,n,N,B]);index(()=>{d===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,g(q=>({...q,isPositioned:!1})))},[d]);const V=React__namespace.useRef(!1);index(()=>(V.current=!0,()=>{V.current=!1}),[]),index(()=>{if(M&&(j.current=M),T&&(I.current=T),M&&T){if(F.current)return F.current(M,T,z);z()}},[M,T,z,F,L]);const W=React__namespace.useMemo(()=>({reference:j,floating:I,setReference:C,setFloating:O}),[C,O]),U=React__namespace.useMemo(()=>({reference:M,floating:T}),[M,T]),Q=React__namespace.useMemo(()=>{const q={position:n,left:0,top:0};if(!U.floating)return q;const G=roundByDPR(U.floating,m.x),H=roundByDPR(U.floating,m.y);return f?{...q,transform:"translate("+G+"px, "+H+"px)",...getDPR(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:H}},[n,f,U.floating,m.x,m.y]);return React__namespace.useMemo(()=>({...m,update:z,refs:W,elements:U,floatingStyles:Q}),[m,z,W,U,Q])}const arrow$1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:o}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?arrow$2({element:i.current,padding:o}).fn(n):{}:i?arrow$2({element:i,padding:o}).fn(n):{}}}},offset=(e,t)=>({...offset$1(e),options:[e,t]}),shift=(e,t)=>({...shift$1(e),options:[e,t]}),limitShift=(e,t)=>({...limitShift$1(e),options:[e,t]}),flip=(e,t)=>({...flip$1(e),options:[e,t]}),size=(e,t)=>({...size$1(e),options:[e,t]}),hide=(e,t)=>({...hide$1(e),options:[e,t]}),arrow=(e,t)=>({...arrow$1(e),options:[e,t]});var NAME$3="Arrow",Arrow$1=React__namespace.forwardRef((e,t)=>{const{children:n,width:i=10,height:o=5,...l}=e;return jsxRuntime.jsx(Primitive.svg,{...l,ref:t,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:jsxRuntime.jsx("polygon",{points:"0,0 30,0 15,10"})})});Arrow$1.displayName=NAME$3;var Root$4=Arrow$1;function useSize(e){const[t,n]=React__namespace.useState(void 0);return useLayoutEffect2(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let u,f;if("borderBoxSize"in l){const p=l.borderBoxSize,d=Array.isArray(p)?p[0]:p;u=d.inlineSize,f=d.blockSize}else u=e.offsetWidth,f=e.offsetHeight;n({width:u,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var POPPER_NAME="Popper",[createPopperContext,createPopperScope]=createContextScope(POPPER_NAME),[PopperProvider,usePopperContext]=createPopperContext(POPPER_NAME),Popper=e=>{const{__scopePopper:t,children:n}=e,[i,o]=React__namespace.useState(null);return jsxRuntime.jsx(PopperProvider,{scope:t,anchor:i,onAnchorChange:o,children:n})};Popper.displayName=POPPER_NAME;var ANCHOR_NAME$1="PopperAnchor",PopperAnchor=React__namespace.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...o}=e,l=usePopperContext(ANCHOR_NAME$1,n),u=React__namespace.useRef(null),f=useComposedRefs(t,u);return React__namespace.useEffect(()=>{l.onAnchorChange((i==null?void 0:i.current)||u.current)}),i?null:jsxRuntime.jsx(Primitive.div,{...o,ref:f})});PopperAnchor.displayName=ANCHOR_NAME$1;var CONTENT_NAME$3="PopperContent",[PopperContentProvider,useContentContext]=createPopperContext(CONTENT_NAME$3),PopperContent=React__namespace.forwardRef((e,t)=>{var le,ue,te,se,ae,K;const{__scopePopper:n,side:i="bottom",sideOffset:o=0,align:l="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:g="partial",hideWhenDetached:_=!1,updatePositionStrategy:S="optimized",onPlaced:E,...R}=e,b=usePopperContext(CONTENT_NAME$3,n),[A,C]=React__namespace.useState(null),O=useComposedRefs(t,pe=>C(pe)),[M,T]=React__namespace.useState(null),j=useSize(M),I=(j==null?void 0:j.width)??0,D=(j==null?void 0:j.height)??0,L=i+(l!=="center"?"-"+l:""),F=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},N=Array.isArray(d)?d:[d],B=N.length>0,z={padding:F,boundary:N.filter(isNotNull),altBoundary:B},{refs:V,floatingStyles:W,placement:U,isPositioned:Q,middlewareData:q}=useFloating({strategy:"fixed",placement:L,whileElementsMounted:(...pe)=>autoUpdate(...pe,{animationFrame:S==="always"}),elements:{reference:b.anchor},middleware:[offset({mainAxis:o+D,alignmentAxis:u}),p&&shift({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?limitShift():void 0,...z}),p&&flip({...z}),size({...z,apply:({elements:pe,rects:J,availableWidth:fe,availableHeight:de})=>{const{width:me,height:ye}=J.reference,he=pe.floating.style;he.setProperty("--radix-popper-available-width",`${fe}px`),he.setProperty("--radix-popper-available-height",`${de}px`),he.setProperty("--radix-popper-anchor-width",`${me}px`),he.setProperty("--radix-popper-anchor-height",`${ye}px`)}}),M&&arrow({element:M,padding:f}),transformOrigin({arrowWidth:I,arrowHeight:D}),_&&hide({strategy:"referenceHidden",...z})]}),[G,H]=getSideAndAlignFromPlacement(U),Z=useCallbackRef$1(E);useLayoutEffect2(()=>{Q&&(Z==null||Z())},[Q,Z]);const ee=(le=q.arrow)==null?void 0:le.x,ne=(ue=q.arrow)==null?void 0:ue.y,ie=((te=q.arrow)==null?void 0:te.centerOffset)!==0,[oe,ce]=React__namespace.useState();return useLayoutEffect2(()=>{A&&ce(window.getComputedStyle(A).zIndex)},[A]),jsxRuntime.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:Q?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(se=q.transformOrigin)==null?void 0:se.x,(ae=q.transformOrigin)==null?void 0:ae.y].join(" "),...((K=q.hide)==null?void 0:K.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:jsxRuntime.jsx(PopperContentProvider,{scope:n,placedSide:G,onArrowChange:T,arrowX:ee,arrowY:ne,shouldHideArrow:ie,children:jsxRuntime.jsx(Primitive.div,{"data-side":G,"data-align":H,...R,ref:O,style:{...R.style,animation:Q?void 0:"none"}})})})});PopperContent.displayName=CONTENT_NAME$3;var ARROW_NAME$3="PopperArrow",OPPOSITE_SIDE={top:"bottom",right:"left",bottom:"top",left:"right"},PopperArrow=React__namespace.forwardRef(function(t,n){const{__scopePopper:i,...o}=t,l=useContentContext(ARROW_NAME$3,i),u=OPPOSITE_SIDE[l.placedSide];return jsxRuntime.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:jsxRuntime.jsx(Root$4,{...o,ref:n,style:{...o.style,display:"block"}})})});PopperArrow.displayName=ARROW_NAME$3;function isNotNull(e){return e!==null}var transformOrigin=e=>({name:"transformOrigin",options:e,fn(t){var b,A,C;const{placement:n,rects:i,middlewareData:o}=t,u=((b=o.arrow)==null?void 0:b.centerOffset)!==0,f=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[d,m]=getSideAndAlignFromPlacement(n),g={start:"0%",center:"50%",end:"100%"}[m],_=(((A=o.arrow)==null?void 0:A.x)??0)+f/2,S=(((C=o.arrow)==null?void 0:C.y)??0)+p/2;let E="",R="";return d==="bottom"?(E=u?g:`${_}px`,R=`${-p}px`):d==="top"?(E=u?g:`${_}px`,R=`${i.floating.height+p}px`):d==="right"?(E=`${-p}px`,R=u?g:`${S}px`):d==="left"&&(E=`${i.floating.width+p}px`,R=u?g:`${S}px`),{data:{x:E,y:R}}}});function getSideAndAlignFromPlacement(e){const[t,n="center"]=e.split("-");return[t,n]}var Root2$2=Popper,Anchor=PopperAnchor,Content=PopperContent,Arrow=PopperArrow,ENTRY_FOCUS="rovingFocusGroup.onEntryFocus",EVENT_OPTIONS={bubbles:!1,cancelable:!0},GROUP_NAME$2="RovingFocusGroup",[Collection$2,useCollection$2,createCollectionScope$2]=createCollection(GROUP_NAME$2),[createRovingFocusGroupContext,createRovingFocusGroupScope]=createContextScope(GROUP_NAME$2,[createCollectionScope$2]),[RovingFocusProvider,useRovingFocusContext]=createRovingFocusGroupContext(GROUP_NAME$2),RovingFocusGroup=React__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Collection$2.Provider,{scope:e.__scopeRovingFocusGroup,children:jsxRuntime.jsx(Collection$2.Slot,{scope:e.__scopeRovingFocusGroup,children:jsxRuntime.jsx(RovingFocusGroupImpl,{...e,ref:t})})}));RovingFocusGroup.displayName=GROUP_NAME$2;var RovingFocusGroupImpl=React__namespace.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:i,loop:o=!1,dir:l,currentTabStopId:u,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:p,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...g}=e,_=React__namespace.useRef(null),S=useComposedRefs(t,_),E=useDirection(l),[R=null,b]=useControllableState({prop:u,defaultProp:f,onChange:p}),[A,C]=React__namespace.useState(!1),O=useCallbackRef$1(d),M=useCollection$2(n),T=React__namespace.useRef(!1),[j,I]=React__namespace.useState(0);return React__namespace.useEffect(()=>{const D=_.current;if(D)return D.addEventListener(ENTRY_FOCUS,O),()=>D.removeEventListener(ENTRY_FOCUS,O)},[O]),jsxRuntime.jsx(RovingFocusProvider,{scope:n,orientation:i,dir:E,loop:o,currentTabStopId:R,onItemFocus:React__namespace.useCallback(D=>b(D),[b]),onItemShiftTab:React__namespace.useCallback(()=>C(!0),[]),onFocusableItemAdd:React__namespace.useCallback(()=>I(D=>D+1),[]),onFocusableItemRemove:React__namespace.useCallback(()=>I(D=>D-1),[]),children:jsxRuntime.jsx(Primitive.div,{tabIndex:A||j===0?-1:0,"data-orientation":i,...g,ref:S,style:{outline:"none",...e.style},onMouseDown:composeEventHandlers(e.onMouseDown,()=>{T.current=!0}),onFocus:composeEventHandlers(e.onFocus,D=>{const L=!T.current;if(D.target===D.currentTarget&&L&&!A){const F=new CustomEvent(ENTRY_FOCUS,EVENT_OPTIONS);if(D.currentTarget.dispatchEvent(F),!F.defaultPrevented){const N=M().filter(U=>U.focusable),B=N.find(U=>U.active),z=N.find(U=>U.id===R),W=[B,z,...N].filter(Boolean).map(U=>U.ref.current);focusFirst$2(W,m)}}T.current=!1}),onBlur:composeEventHandlers(e.onBlur,()=>C(!1))})})}),ITEM_NAME$2="RovingFocusGroupItem",RovingFocusGroupItem=React__namespace.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:i=!0,active:o=!1,tabStopId:l,...u}=e,f=useId(),p=l||f,d=useRovingFocusContext(ITEM_NAME$2,n),m=d.currentTabStopId===p,g=useCollection$2(n),{onFocusableItemAdd:_,onFocusableItemRemove:S}=d;return React__namespace.useEffect(()=>{if(i)return _(),()=>S()},[i,_,S]),jsxRuntime.jsx(Collection$2.ItemSlot,{scope:n,id:p,focusable:i,active:o,children:jsxRuntime.jsx(Primitive.span,{tabIndex:m?0:-1,"data-orientation":d.orientation,...u,ref:t,onMouseDown:composeEventHandlers(e.onMouseDown,E=>{i?d.onItemFocus(p):E.preventDefault()}),onFocus:composeEventHandlers(e.onFocus,()=>d.onItemFocus(p)),onKeyDown:composeEventHandlers(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){d.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const R=getFocusIntent(E,d.orientation,d.dir);if(R!==void 0){if(E.metaKey||E.ctrlKey||E.altKey||E.shiftKey)return;E.preventDefault();let A=g().filter(C=>C.focusable).map(C=>C.ref.current);if(R==="last")A.reverse();else if(R==="prev"||R==="next"){R==="prev"&&A.reverse();const C=A.indexOf(E.currentTarget);A=d.loop?wrapArray$1(A,C+1):A.slice(C+1)}setTimeout(()=>focusFirst$2(A))}})})})});RovingFocusGroupItem.displayName=ITEM_NAME$2;var MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function getDirectionAwareKey(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function getFocusIntent(e,t,n){const i=getDirectionAwareKey(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return MAP_KEY_TO_FOCUS_INTENT[i]}function focusFirst$2(e,t=!1){const n=document.activeElement;for(const i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}function wrapArray$1(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var Root$3=RovingFocusGroup,Item=RovingFocusGroupItem,SELECTION_KEYS=["Enter"," "],FIRST_KEYS=["ArrowDown","PageUp","Home"],LAST_KEYS=["ArrowUp","PageDown","End"],FIRST_LAST_KEYS=[...FIRST_KEYS,...LAST_KEYS],SUB_OPEN_KEYS={ltr:[...SELECTION_KEYS,"ArrowRight"],rtl:[...SELECTION_KEYS,"ArrowLeft"]},SUB_CLOSE_KEYS={ltr:["ArrowLeft"],rtl:["ArrowRight"]},MENU_NAME="Menu",[Collection$1,useCollection$1,createCollectionScope$1]=createCollection(MENU_NAME),[createMenuContext,createMenuScope]=createContextScope(MENU_NAME,[createCollectionScope$1,createPopperScope,createRovingFocusGroupScope]),usePopperScope$1=createPopperScope(),useRovingFocusGroupScope=createRovingFocusGroupScope(),[MenuProvider,useMenuContext]=createMenuContext(MENU_NAME),[MenuRootProvider,useMenuRootContext]=createMenuContext(MENU_NAME),Menu=e=>{const{__scopeMenu:t,open:n=!1,children:i,dir:o,onOpenChange:l,modal:u=!0}=e,f=usePopperScope$1(t),[p,d]=React__namespace.useState(null),m=React__namespace.useRef(!1),g=useCallbackRef$1(l),_=useDirection(o);return React__namespace.useEffect(()=>{const S=()=>{m.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>m.current=!1;return document.addEventListener("keydown",S,{capture:!0}),()=>{document.removeEventListener("keydown",S,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),jsxRuntime.jsx(Root2$2,{...f,children:jsxRuntime.jsx(MenuProvider,{scope:t,open:n,onOpenChange:g,content:p,onContentChange:d,children:jsxRuntime.jsx(MenuRootProvider,{scope:t,onClose:React__namespace.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:m,dir:_,modal:u,children:i})})})};Menu.displayName=MENU_NAME;var ANCHOR_NAME="MenuAnchor",MenuAnchor=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,o=usePopperScope$1(n);return jsxRuntime.jsx(Anchor,{...o,...i,ref:t})});MenuAnchor.displayName=ANCHOR_NAME;var PORTAL_NAME$2="MenuPortal",[PortalProvider$1,usePortalContext$1]=createMenuContext(PORTAL_NAME$2,{forceMount:void 0}),MenuPortal=e=>{const{__scopeMenu:t,forceMount:n,children:i,container:o}=e,l=useMenuContext(PORTAL_NAME$2,t);return jsxRuntime.jsx(PortalProvider$1,{scope:t,forceMount:n,children:jsxRuntime.jsx(Presence,{present:n||l.open,children:jsxRuntime.jsx(Portal$3,{asChild:!0,container:o,children:i})})})};MenuPortal.displayName=PORTAL_NAME$2;var CONTENT_NAME$2="MenuContent",[MenuContentProvider,useMenuContentContext]=createMenuContext(CONTENT_NAME$2),MenuContent=React__namespace.forwardRef((e,t)=>{const n=usePortalContext$1(CONTENT_NAME$2,e.__scopeMenu),{forceMount:i=n.forceMount,...o}=e,l=useMenuContext(CONTENT_NAME$2,e.__scopeMenu),u=useMenuRootContext(CONTENT_NAME$2,e.__scopeMenu);return jsxRuntime.jsx(Collection$1.Provider,{scope:e.__scopeMenu,children:jsxRuntime.jsx(Presence,{present:i||l.open,children:jsxRuntime.jsx(Collection$1.Slot,{scope:e.__scopeMenu,children:u.modal?jsxRuntime.jsx(MenuRootContentModal,{...o,ref:t}):jsxRuntime.jsx(MenuRootContentNonModal,{...o,ref:t})})})})}),MenuRootContentModal=React__namespace.forwardRef((e,t)=>{const n=useMenuContext(CONTENT_NAME$2,e.__scopeMenu),i=React__namespace.useRef(null),o=useComposedRefs(t,i);return React__namespace.useEffect(()=>{const l=i.current;if(l)return hideOthers(l)},[]),jsxRuntime.jsx(MenuContentImpl,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:composeEventHandlers(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),MenuRootContentNonModal=React__namespace.forwardRef((e,t)=>{const n=useMenuContext(CONTENT_NAME$2,e.__scopeMenu);return jsxRuntime.jsx(MenuContentImpl,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),MenuContentImpl=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,loop:i=!1,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:f,onEntryFocus:p,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:_,onDismiss:S,disableOutsideScroll:E,...R}=e,b=useMenuContext(CONTENT_NAME$2,n),A=useMenuRootContext(CONTENT_NAME$2,n),C=usePopperScope$1(n),O=useRovingFocusGroupScope(n),M=useCollection$1(n),[T,j]=React__namespace.useState(null),I=React__namespace.useRef(null),D=useComposedRefs(t,I,b.onContentChange),L=React__namespace.useRef(0),F=React__namespace.useRef(""),N=React__namespace.useRef(0),B=React__namespace.useRef(null),z=React__namespace.useRef("right"),V=React__namespace.useRef(0),W=E?ReactRemoveScroll:React__namespace.Fragment,U=E?{as:Slot,allowPinchZoom:!0}:void 0,Q=G=>{var le,ue;const H=F.current+G,Z=M().filter(te=>!te.disabled),ee=document.activeElement,ne=(le=Z.find(te=>te.ref.current===ee))==null?void 0:le.textValue,ie=Z.map(te=>te.textValue),oe=getNextMatch(ie,H,ne),ce=(ue=Z.find(te=>te.textValue===oe))==null?void 0:ue.ref.current;(function te(se){F.current=se,window.clearTimeout(L.current),se!==""&&(L.current=window.setTimeout(()=>te(""),1e3))})(H),ce&&setTimeout(()=>ce.focus())};React__namespace.useEffect(()=>()=>window.clearTimeout(L.current),[]),useFocusGuards();const q=React__namespace.useCallback(G=>{var Z,ee;return z.current===((Z=B.current)==null?void 0:Z.side)&&isPointerInGraceArea(G,(ee=B.current)==null?void 0:ee.area)},[]);return jsxRuntime.jsx(MenuContentProvider,{scope:n,searchRef:F,onItemEnter:React__namespace.useCallback(G=>{q(G)&&G.preventDefault()},[q]),onItemLeave:React__namespace.useCallback(G=>{var H;q(G)||((H=I.current)==null||H.focus(),j(null))},[q]),onTriggerLeave:React__namespace.useCallback(G=>{q(G)&&G.preventDefault()},[q]),pointerGraceTimerRef:N,onPointerGraceIntentChange:React__namespace.useCallback(G=>{B.current=G},[]),children:jsxRuntime.jsx(W,{...U,children:jsxRuntime.jsx(FocusScope,{asChild:!0,trapped:o,onMountAutoFocus:composeEventHandlers(l,G=>{var H;G.preventDefault(),(H=I.current)==null||H.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:jsxRuntime.jsx(DismissableLayer,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:_,onDismiss:S,children:jsxRuntime.jsx(Root$3,{asChild:!0,...O,dir:A.dir,orientation:"vertical",loop:i,currentTabStopId:T,onCurrentTabStopIdChange:j,onEntryFocus:composeEventHandlers(p,G=>{A.isUsingKeyboardRef.current||G.preventDefault()}),preventScrollOnEntryFocus:!0,children:jsxRuntime.jsx(Content,{role:"menu","aria-orientation":"vertical","data-state":getOpenState(b.open),"data-radix-menu-content":"",dir:A.dir,...C,...R,ref:D,style:{outline:"none",...R.style},onKeyDown:composeEventHandlers(R.onKeyDown,G=>{const Z=G.target.closest("[data-radix-menu-content]")===G.currentTarget,ee=G.ctrlKey||G.altKey||G.metaKey,ne=G.key.length===1;Z&&(G.key==="Tab"&&G.preventDefault(),!ee&&ne&&Q(G.key));const ie=I.current;if(G.target!==ie||!FIRST_LAST_KEYS.includes(G.key))return;G.preventDefault();const ce=M().filter(le=>!le.disabled).map(le=>le.ref.current);LAST_KEYS.includes(G.key)&&ce.reverse(),focusFirst$1(ce)}),onBlur:composeEventHandlers(e.onBlur,G=>{G.currentTarget.contains(G.target)||(window.clearTimeout(L.current),F.current="")}),onPointerMove:composeEventHandlers(e.onPointerMove,whenMouse(G=>{const H=G.target,Z=V.current!==G.clientX;if(G.currentTarget.contains(H)&&Z){const ee=G.clientX>V.current?"right":"left";z.current=ee,V.current=G.clientX}}))})})})})})})});MenuContent.displayName=CONTENT_NAME$2;var GROUP_NAME$1="MenuGroup",MenuGroup=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return jsxRuntime.jsx(Primitive.div,{role:"group",...i,ref:t})});MenuGroup.displayName=GROUP_NAME$1;var LABEL_NAME$1="MenuLabel",MenuLabel=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return jsxRuntime.jsx(Primitive.div,{...i,ref:t})});MenuLabel.displayName=LABEL_NAME$1;var ITEM_NAME$1="MenuItem",ITEM_SELECT="menu.itemSelect",MenuItem=React__namespace.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:i,...o}=e,l=React__namespace.useRef(null),u=useMenuRootContext(ITEM_NAME$1,e.__scopeMenu),f=useMenuContentContext(ITEM_NAME$1,e.__scopeMenu),p=useComposedRefs(t,l),d=React__namespace.useRef(!1),m=()=>{const g=l.current;if(!n&&g){const _=new CustomEvent(ITEM_SELECT,{bubbles:!0,cancelable:!0});g.addEventListener(ITEM_SELECT,S=>i==null?void 0:i(S),{once:!0}),dispatchDiscreteCustomEvent(g,_),_.defaultPrevented?d.current=!1:u.onClose()}};return jsxRuntime.jsx(MenuItemImpl,{...o,ref:p,disabled:n,onClick:composeEventHandlers(e.onClick,m),onPointerDown:g=>{var _;(_=e.onPointerDown)==null||_.call(e,g),d.current=!0},onPointerUp:composeEventHandlers(e.onPointerUp,g=>{var _;d.current||(_=g.currentTarget)==null||_.click()}),onKeyDown:composeEventHandlers(e.onKeyDown,g=>{const _=f.searchRef.current!=="";n||_&&g.key===" "||SELECTION_KEYS.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})})});MenuItem.displayName=ITEM_NAME$1;var MenuItemImpl=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:i=!1,textValue:o,...l}=e,u=useMenuContentContext(ITEM_NAME$1,n),f=useRovingFocusGroupScope(n),p=React__namespace.useRef(null),d=useComposedRefs(t,p),[m,g]=React__namespace.useState(!1),[_,S]=React__namespace.useState("");return React__namespace.useEffect(()=>{const E=p.current;E&&S((E.textContent??"").trim())},[l.children]),jsxRuntime.jsx(Collection$1.ItemSlot,{scope:n,disabled:i,textValue:o??_,children:jsxRuntime.jsx(Item,{asChild:!0,...f,focusable:!i,children:jsxRuntime.jsx(Primitive.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...l,ref:d,onPointerMove:composeEventHandlers(e.onPointerMove,whenMouse(E=>{i?u.onItemLeave(E):(u.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:composeEventHandlers(e.onPointerLeave,whenMouse(E=>u.onItemLeave(E))),onFocus:composeEventHandlers(e.onFocus,()=>g(!0)),onBlur:composeEventHandlers(e.onBlur,()=>g(!1))})})})}),CHECKBOX_ITEM_NAME$1="MenuCheckboxItem",MenuCheckboxItem=React__namespace.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:i,...o}=e;return jsxRuntime.jsx(ItemIndicatorProvider,{scope:e.__scopeMenu,checked:n,children:jsxRuntime.jsx(MenuItem,{role:"menuitemcheckbox","aria-checked":isIndeterminate(n)?"mixed":n,...o,ref:t,"data-state":getCheckedState(n),onSelect:composeEventHandlers(o.onSelect,()=>i==null?void 0:i(isIndeterminate(n)?!0:!n),{checkForDefaultPrevented:!1})})})});MenuCheckboxItem.displayName=CHECKBOX_ITEM_NAME$1;var RADIO_GROUP_NAME$1="MenuRadioGroup",[RadioGroupProvider,useRadioGroupContext]=createMenuContext(RADIO_GROUP_NAME$1,{value:void 0,onValueChange:()=>{}}),MenuRadioGroup=React__namespace.forwardRef((e,t)=>{const{value:n,onValueChange:i,...o}=e,l=useCallbackRef$1(i);return jsxRuntime.jsx(RadioGroupProvider,{scope:e.__scopeMenu,value:n,onValueChange:l,children:jsxRuntime.jsx(MenuGroup,{...o,ref:t})})});MenuRadioGroup.displayName=RADIO_GROUP_NAME$1;var RADIO_ITEM_NAME$1="MenuRadioItem",MenuRadioItem=React__namespace.forwardRef((e,t)=>{const{value:n,...i}=e,o=useRadioGroupContext(RADIO_ITEM_NAME$1,e.__scopeMenu),l=n===o.value;return jsxRuntime.jsx(ItemIndicatorProvider,{scope:e.__scopeMenu,checked:l,children:jsxRuntime.jsx(MenuItem,{role:"menuitemradio","aria-checked":l,...i,ref:t,"data-state":getCheckedState(l),onSelect:composeEventHandlers(i.onSelect,()=>{var u;return(u=o.onValueChange)==null?void 0:u.call(o,n)},{checkForDefaultPrevented:!1})})})});MenuRadioItem.displayName=RADIO_ITEM_NAME$1;var ITEM_INDICATOR_NAME="MenuItemIndicator",[ItemIndicatorProvider,useItemIndicatorContext]=createMenuContext(ITEM_INDICATOR_NAME,{checked:!1}),MenuItemIndicator=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:i,...o}=e,l=useItemIndicatorContext(ITEM_INDICATOR_NAME,n);return jsxRuntime.jsx(Presence,{present:i||isIndeterminate(l.checked)||l.checked===!0,children:jsxRuntime.jsx(Primitive.span,{...o,ref:t,"data-state":getCheckedState(l.checked)})})});MenuItemIndicator.displayName=ITEM_INDICATOR_NAME;var SEPARATOR_NAME$1="MenuSeparator",MenuSeparator=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e;return jsxRuntime.jsx(Primitive.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});MenuSeparator.displayName=SEPARATOR_NAME$1;var ARROW_NAME$2="MenuArrow",MenuArrow=React__namespace.forwardRef((e,t)=>{const{__scopeMenu:n,...i}=e,o=usePopperScope$1(n);return jsxRuntime.jsx(Arrow,{...o,...i,ref:t})});MenuArrow.displayName=ARROW_NAME$2;var SUB_NAME="MenuSub",[MenuSubProvider,useMenuSubContext]=createMenuContext(SUB_NAME),MenuSub=e=>{const{__scopeMenu:t,children:n,open:i=!1,onOpenChange:o}=e,l=useMenuContext(SUB_NAME,t),u=usePopperScope$1(t),[f,p]=React__namespace.useState(null),[d,m]=React__namespace.useState(null),g=useCallbackRef$1(o);return React__namespace.useEffect(()=>(l.open===!1&&g(!1),()=>g(!1)),[l.open,g]),jsxRuntime.jsx(Root2$2,{...u,children:jsxRuntime.jsx(MenuProvider,{scope:t,open:i,onOpenChange:g,content:d,onContentChange:m,children:jsxRuntime.jsx(MenuSubProvider,{scope:t,contentId:useId(),triggerId:useId(),trigger:f,onTriggerChange:p,children:n})})})};MenuSub.displayName=SUB_NAME;var SUB_TRIGGER_NAME$1="MenuSubTrigger",MenuSubTrigger=React__namespace.forwardRef((e,t)=>{const n=useMenuContext(SUB_TRIGGER_NAME$1,e.__scopeMenu),i=useMenuRootContext(SUB_TRIGGER_NAME$1,e.__scopeMenu),o=useMenuSubContext(SUB_TRIGGER_NAME$1,e.__scopeMenu),l=useMenuContentContext(SUB_TRIGGER_NAME$1,e.__scopeMenu),u=React__namespace.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:p}=l,d={__scopeMenu:e.__scopeMenu},m=React__namespace.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return React__namespace.useEffect(()=>m,[m]),React__namespace.useEffect(()=>{const g=f.current;return()=>{window.clearTimeout(g),p(null)}},[f,p]),jsxRuntime.jsx(MenuAnchor,{asChild:!0,...d,children:jsxRuntime.jsx(MenuItemImpl,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":getOpenState(n.open),...e,ref:composeRefs(t,o.onTriggerChange),onClick:g=>{var _;(_=e.onClick)==null||_.call(e,g),!(e.disabled||g.defaultPrevented)&&(g.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:composeEventHandlers(e.onPointerMove,whenMouse(g=>{l.onItemEnter(g),!g.defaultPrevented&&!e.disabled&&!n.open&&!u.current&&(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:composeEventHandlers(e.onPointerLeave,whenMouse(g=>{var S,E;m();const _=(S=n.content)==null?void 0:S.getBoundingClientRect();if(_){const R=(E=n.content)==null?void 0:E.dataset.side,b=R==="right",A=b?-5:5,C=_[b?"left":"right"],O=_[b?"right":"left"];l.onPointerGraceIntentChange({area:[{x:g.clientX+A,y:g.clientY},{x:C,y:_.top},{x:O,y:_.top},{x:O,y:_.bottom},{x:C,y:_.bottom}],side:R}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(g),g.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:composeEventHandlers(e.onKeyDown,g=>{var S;const _=l.searchRef.current!=="";e.disabled||_&&g.key===" "||SUB_OPEN_KEYS[i.dir].includes(g.key)&&(n.onOpenChange(!0),(S=n.content)==null||S.focus(),g.preventDefault())})})})});MenuSubTrigger.displayName=SUB_TRIGGER_NAME$1;var SUB_CONTENT_NAME$1="MenuSubContent",MenuSubContent=React__namespace.forwardRef((e,t)=>{const n=usePortalContext$1(CONTENT_NAME$2,e.__scopeMenu),{forceMount:i=n.forceMount,...o}=e,l=useMenuContext(CONTENT_NAME$2,e.__scopeMenu),u=useMenuRootContext(CONTENT_NAME$2,e.__scopeMenu),f=useMenuSubContext(SUB_CONTENT_NAME$1,e.__scopeMenu),p=React__namespace.useRef(null),d=useComposedRefs(t,p);return jsxRuntime.jsx(Collection$1.Provider,{scope:e.__scopeMenu,children:jsxRuntime.jsx(Presence,{present:i||l.open,children:jsxRuntime.jsx(Collection$1.Slot,{scope:e.__scopeMenu,children:jsxRuntime.jsx(MenuContentImpl,{id:f.contentId,"aria-labelledby":f.triggerId,...o,ref:d,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var g;u.isUsingKeyboardRef.current&&((g=p.current)==null||g.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:composeEventHandlers(e.onFocusOutside,m=>{m.target!==f.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:composeEventHandlers(e.onEscapeKeyDown,m=>{u.onClose(),m.preventDefault()}),onKeyDown:composeEventHandlers(e.onKeyDown,m=>{var S;const g=m.currentTarget.contains(m.target),_=SUB_CLOSE_KEYS[u.dir].includes(m.key);g&&_&&(l.onOpenChange(!1),(S=f.trigger)==null||S.focus(),m.preventDefault())})})})})})});MenuSubContent.displayName=SUB_CONTENT_NAME$1;function getOpenState(e){return e?"open":"closed"}function isIndeterminate(e){return e==="indeterminate"}function getCheckedState(e){return isIndeterminate(e)?"indeterminate":e?"checked":"unchecked"}function focusFirst$1(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function wrapArray(e,t){return e.map((n,i)=>e[(t+i)%e.length])}function getNextMatch(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let u=wrapArray(e,Math.max(l,0));o.length===1&&(u=u.filter(d=>d!==n));const p=u.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return p!==n?p:void 0}function isPointInPolygon$1(e,t){const{x:n,y:i}=e;let o=!1;for(let l=0,u=t.length-1;l<t.length;u=l++){const f=t[l].x,p=t[l].y,d=t[u].x,m=t[u].y;p>i!=m>i&&n<(d-f)*(i-p)/(m-p)+f&&(o=!o)}return o}function isPointerInGraceArea(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return isPointInPolygon$1(n,t)}function whenMouse(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Root3$1=Menu,Anchor2=MenuAnchor,Portal$1=MenuPortal,Content2$2=MenuContent,Group=MenuGroup,Label$3=MenuLabel,Item2$1=MenuItem,CheckboxItem=MenuCheckboxItem,RadioGroup=MenuRadioGroup,RadioItem=MenuRadioItem,ItemIndicator=MenuItemIndicator,Separator$2=MenuSeparator,Arrow2=MenuArrow,Sub=MenuSub,SubTrigger=MenuSubTrigger,SubContent=MenuSubContent,DROPDOWN_MENU_NAME="DropdownMenu",[createDropdownMenuContext,createDropdownMenuScope]=createContextScope(DROPDOWN_MENU_NAME,[createMenuScope]),useMenuScope=createMenuScope(),[DropdownMenuProvider,useDropdownMenuContext]=createDropdownMenuContext(DROPDOWN_MENU_NAME),DropdownMenu$1=e=>{const{__scopeDropdownMenu:t,children:n,dir:i,open:o,defaultOpen:l,onOpenChange:u,modal:f=!0}=e,p=useMenuScope(t),d=React__namespace.useRef(null),[m=!1,g]=useControllableState({prop:o,defaultProp:l,onChange:u});return jsxRuntime.jsx(DropdownMenuProvider,{scope:t,triggerId:useId(),triggerRef:d,contentId:useId(),open:m,onOpenChange:g,onOpenToggle:React__namespace.useCallback(()=>g(_=>!_),[g]),modal:f,children:jsxRuntime.jsx(Root3$1,{...p,open:m,onOpenChange:g,dir:i,modal:f,children:n})})};DropdownMenu$1.displayName=DROPDOWN_MENU_NAME;var TRIGGER_NAME$1="DropdownMenuTrigger",DropdownMenuTrigger$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:i=!1,...o}=e,l=useDropdownMenuContext(TRIGGER_NAME$1,n),u=useMenuScope(n);return jsxRuntime.jsx(Anchor2,{asChild:!0,...u,children:jsxRuntime.jsx(Primitive.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...o,ref:composeRefs(t,l.triggerRef),onPointerDown:composeEventHandlers(e.onPointerDown,f=>{!i&&f.button===0&&f.ctrlKey===!1&&(l.onOpenToggle(),l.open||f.preventDefault())}),onKeyDown:composeEventHandlers(e.onKeyDown,f=>{i||(["Enter"," "].includes(f.key)&&l.onOpenToggle(),f.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})});DropdownMenuTrigger$1.displayName=TRIGGER_NAME$1;var PORTAL_NAME$1="DropdownMenuPortal",DropdownMenuPortal$1=e=>{const{__scopeDropdownMenu:t,...n}=e,i=useMenuScope(t);return jsxRuntime.jsx(Portal$1,{...i,...n})};DropdownMenuPortal$1.displayName=PORTAL_NAME$1;var CONTENT_NAME$1="DropdownMenuContent",DropdownMenuContent$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,o=useDropdownMenuContext(CONTENT_NAME$1,n),l=useMenuScope(n),u=React__namespace.useRef(!1);return jsxRuntime.jsx(Content2$2,{id:o.contentId,"aria-labelledby":o.triggerId,...l,...i,ref:t,onCloseAutoFocus:composeEventHandlers(e.onCloseAutoFocus,f=>{var p;u.current||(p=o.triggerRef.current)==null||p.focus(),u.current=!1,f.preventDefault()}),onInteractOutside:composeEventHandlers(e.onInteractOutside,f=>{const p=f.detail.originalEvent,d=p.button===0&&p.ctrlKey===!0,m=p.button===2||d;(!o.modal||m)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});DropdownMenuContent$1.displayName=CONTENT_NAME$1;var GROUP_NAME="DropdownMenuGroup",DropdownMenuGroup$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,o=useMenuScope(n);return jsxRuntime.jsx(Group,{...o,...i,ref:t})});DropdownMenuGroup$1.displayName=GROUP_NAME;var LABEL_NAME="DropdownMenuLabel",DropdownMenuLabel$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,o=useMenuScope(n);return jsxRuntime.jsx(Label$3,{...o,...i,ref:t})});DropdownMenuLabel$1.displayName=LABEL_NAME;var ITEM_NAME="DropdownMenuItem",DropdownMenuItem$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,o=useMenuScope(n);return jsxRuntime.jsx(Item2$1,{...o,...i,ref:t})});DropdownMenuItem$1.displayName=ITEM_NAME;var CHECKBOX_ITEM_NAME="DropdownMenuCheckboxItem",DropdownMenuCheckboxItem$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,o=useMenuScope(n);return jsxRuntime.jsx(CheckboxItem,{...o,...i,ref:t})});DropdownMenuCheckboxItem$1.displayName=CHECKBOX_ITEM_NAME;var RADIO_GROUP_NAME="DropdownMenuRadioGroup",DropdownMenuRadioGroup$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,o=useMenuScope(n);return jsxRuntime.jsx(RadioGroup,{...o,...i,ref:t})});DropdownMenuRadioGroup$1.displayName=RADIO_GROUP_NAME;var RADIO_ITEM_NAME="DropdownMenuRadioItem",DropdownMenuRadioItem$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,o=useMenuScope(n);return jsxRuntime.jsx(RadioItem,{...o,...i,ref:t})});DropdownMenuRadioItem$1.displayName=RADIO_ITEM_NAME;var INDICATOR_NAME="DropdownMenuItemIndicator",DropdownMenuItemIndicator=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,o=useMenuScope(n);return jsxRuntime.jsx(ItemIndicator,{...o,...i,ref:t})});DropdownMenuItemIndicator.displayName=INDICATOR_NAME;var SEPARATOR_NAME="DropdownMenuSeparator",DropdownMenuSeparator$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,o=useMenuScope(n);return jsxRuntime.jsx(Separator$2,{...o,...i,ref:t})});DropdownMenuSeparator$1.displayName=SEPARATOR_NAME;var ARROW_NAME$1="DropdownMenuArrow",DropdownMenuArrow=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,o=useMenuScope(n);return jsxRuntime.jsx(Arrow2,{...o,...i,ref:t})});DropdownMenuArrow.displayName=ARROW_NAME$1;var DropdownMenuSub$1=e=>{const{__scopeDropdownMenu:t,children:n,open:i,onOpenChange:o,defaultOpen:l}=e,u=useMenuScope(t),[f=!1,p]=useControllableState({prop:i,defaultProp:l,onChange:o});return jsxRuntime.jsx(Sub,{...u,open:f,onOpenChange:p,children:n})},SUB_TRIGGER_NAME="DropdownMenuSubTrigger",DropdownMenuSubTrigger$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,o=useMenuScope(n);return jsxRuntime.jsx(SubTrigger,{...o,...i,ref:t})});DropdownMenuSubTrigger$1.displayName=SUB_TRIGGER_NAME;var SUB_CONTENT_NAME="DropdownMenuSubContent",DropdownMenuSubContent$1=React__namespace.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...i}=e,o=useMenuScope(n);return jsxRuntime.jsx(SubContent,{...o,...i,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});DropdownMenuSubContent$1.displayName=SUB_CONTENT_NAME;var Root2$1=DropdownMenu$1,Trigger$1=DropdownMenuTrigger$1,Portal2=DropdownMenuPortal$1,Content2$1=DropdownMenuContent$1,Group2=DropdownMenuGroup$1,Label2=DropdownMenuLabel$1,Item2=DropdownMenuItem$1,CheckboxItem2=DropdownMenuCheckboxItem$1,RadioGroup2=DropdownMenuRadioGroup$1,RadioItem2=DropdownMenuRadioItem$1,ItemIndicator2=DropdownMenuItemIndicator,Separator2=DropdownMenuSeparator$1,Sub2=DropdownMenuSub$1,SubTrigger2=DropdownMenuSubTrigger$1,SubContent2=DropdownMenuSubContent$1;const DropdownMenu=Root2$1,DropdownMenuTrigger=Trigger$1,DropdownMenuGroup=Group2,DropdownMenuPortal=Portal2,DropdownMenuSub=Sub2,DropdownMenuRadioGroup=RadioGroup2,DropdownMenuSubTrigger=React__namespace.forwardRef(({className:e,inset:t,children:n,...i},o)=>jsxRuntime.jsxs(SubTrigger2,{ref:o,className:cn("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...i,children:[n,jsxRuntime.jsx(ChevronRight,{className:"ml-auto"})]}));DropdownMenuSubTrigger.displayName=SubTrigger2.displayName;const DropdownMenuSubContent=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(SubContent2,{ref:n,className:cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));DropdownMenuSubContent.displayName=SubContent2.displayName;const DropdownMenuContent=React__namespace.forwardRef(({className:e,sideOffset:t=4,...n},i)=>jsxRuntime.jsx(Portal2,{children:jsxRuntime.jsx(Content2$1,{ref:i,sideOffset:t,className:cn("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...n})}));DropdownMenuContent.displayName=Content2$1.displayName;const DropdownMenuItem=React__namespace.forwardRef(({className:e,inset:t,...n},i)=>jsxRuntime.jsx(Item2,{ref:i,className:cn("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));DropdownMenuItem.displayName=Item2.displayName;const DropdownMenuCheckboxItem=React__namespace.forwardRef(({className:e,children:t,checked:n,...i},o)=>jsxRuntime.jsxs(CheckboxItem2,{ref:o,className:cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...i,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(ItemIndicator2,{children:jsxRuntime.jsx(Check,{className:"h-4 w-4"})})}),t]}));DropdownMenuCheckboxItem.displayName=CheckboxItem2.displayName;const DropdownMenuRadioItem=React__namespace.forwardRef(({className:e,children:t,...n},i)=>jsxRuntime.jsxs(RadioItem2,{ref:i,className:cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(ItemIndicator2,{children:jsxRuntime.jsx(Circle,{className:"h-2 w-2 fill-current"})})}),t]}));DropdownMenuRadioItem.displayName=RadioItem2.displayName;const DropdownMenuLabel=React__namespace.forwardRef(({className:e,inset:t,...n},i)=>jsxRuntime.jsx(Label2,{ref:i,className:cn("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));DropdownMenuLabel.displayName=Label2.displayName;const DropdownMenuSeparator=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(Separator2,{ref:n,className:cn("-mx-1 my-1 h-px bg-muted",e),...t}));DropdownMenuSeparator.displayName=Separator2.displayName;const DropdownMenuShortcut=({className:e,...t})=>jsxRuntime.jsx("span",{className:cn("ml-auto text-xs tracking-widest opacity-60",e),...t});DropdownMenuShortcut.displayName="DropdownMenuShortcut";function ProductInventoryGrid({inventory:e,showBinLocation:t}){const n=(A,C,O=!1,M=!0)=>jsxRuntime.jsxs("div",{className:`p-3 text-sm ${M&&C>0?"border-t":""} ${O?"border-r":""}`,children:[jsxRuntime.jsxs("div",{className:"flex justify-between font-medium",children:[jsxRuntime.jsx("span",{children:A.Name}),jsxRuntime.jsx("span",{children:A.AvailableQuantity})]}),jsxRuntime.jsxs("div",{className:"flex justify-between mt-1 text-xs text-gray-600",children:[jsxRuntime.jsx("span",{children:"Expecting"}),jsxRuntime.jsx("span",{children:A.PurchaseOrderQuantity||"-"})]}),t&&jsxRuntime.jsxs("div",{className:"flex justify-between mt-1 text-xs text-gray-600",children:[jsxRuntime.jsx("span",{children:"Bin Location"}),jsxRuntime.jsx("span",{children:A.BinLocation||"-"})]})]},`warehouse-${A.WarehouseId}`),i=["MTL","TOR"],o=["VAN","EDM"],l=[...e].sort((A,C)=>(A.Name||"").localeCompare(C.Name||"")),u=l.filter(A=>A.Country==="US"),f=l.filter(A=>A.Country==="CA"),p=l.filter(A=>o.includes(A.WarehouseId||"")),d=l.filter(A=>i.includes(A.WarehouseId||"")),m=f.filter(A=>!i.includes(A.WarehouseId||"")&&!o.includes(A.WarehouseId||"")),g=A=>A.reduce((C,O)=>C+(O.AvailableQuantity||0),0),_=g(f),S=g(d),E=g(p),R=g(u),b=_+R;return jsxRuntime.jsxs("div",{className:"border rounded-md overflow-hidden",children:[f.length>0&&u.length>0&&jsxRuntime.jsxs("div",{className:"grid grid-cols-2 border-b",children:[jsxRuntime.jsxs("div",{className:"p-3 font-semibold text-sm flex justify-between",children:[jsxRuntime.jsx("span",{children:"Total"}),jsxRuntime.jsx("span",{children:b})]}),jsxRuntime.jsx("div",{className:"p-3"})]}),f.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"grid grid-cols-2 border-b bg-gray-50",children:[jsxRuntime.jsxs("div",{className:"p-3 font-semibold text-sm flex justify-between",children:[jsxRuntime.jsx("span",{children:"Canada"}),jsxRuntime.jsx("span",{children:_})]}),jsxRuntime.jsx("div",{className:"p-3"})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-2",children:[jsxRuntime.jsxs("div",{className:"border-r",children:[jsxRuntime.jsxs("div",{className:"p-3 font-semibold text-sm flex justify-between",children:[jsxRuntime.jsx("span",{children:"West"}),jsxRuntime.jsx("span",{children:E})]}),p.map((A,C)=>n(A,C))]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{className:"p-3 font-semibold text-sm flex justify-between",children:[jsxRuntime.jsx("span",{children:"East"}),jsxRuntime.jsx("span",{children:S})]}),d.map((A,C)=>n(A,C))]})]}),m.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"border-t p-3 font-semibold text-sm",children:jsxRuntime.jsx("span",{children:"Other"})}),jsxRuntime.jsx("div",{className:"grid grid-cols-2",children:m.map((A,C)=>n(A,C,C%2===0,!0))})]})]}),u.length>0&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"grid grid-cols-2 border-t bg-gray-50",children:[jsxRuntime.jsxs("div",{className:"p-3 font-semibold text-sm flex justify-between",children:[jsxRuntime.jsx("span",{children:"United States"}),jsxRuntime.jsx("span",{children:R})]}),jsxRuntime.jsx("div",{className:"p-3"})]}),jsxRuntime.jsx("div",{className:"grid grid-cols-2",children:u.map((A,C)=>n(A,C,C%2===0,!0))})]}),e.length===0&&jsxRuntime.jsx("div",{className:"p-6 text-center text-gray-500",children:"No inventory information available"})]})}const falsyToString=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cx=clsx,cva=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return cx(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:l}=t,u=Object.keys(o).map(d=>{const m=n==null?void 0:n[d],g=l==null?void 0:l[d];if(m===null)return null;const _=falsyToString(m)||falsyToString(g);return o[d][_]}),f=n&&Object.entries(n).reduce((d,m)=>{let[g,_]=m;return _===void 0||(d[g]=_),d},{}),p=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((d,m)=>{let{class:g,className:_,...S}=m;return Object.entries(S).every(E=>{let[R,b]=E;return Array.isArray(b)?b.includes({...l,...f}[R]):{...l,...f}[R]===b})?[...d,g,_]:d},[]);return cx(e,u,p,n==null?void 0:n.class,n==null?void 0:n.className)},buttonVariants=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",outline:"border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",defaultOutline:"border border-red-600/30 text-red-600 bg-background shadow-xs hover:bg-red-600/5 ",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",blue:"bg-randmar-blue text-gray-100 shadow-sm hover:bg-randmar-blue/90",red:"bg-randmar-red text-gray-100 shadow-sm hover:bg-randmar-red/90",none:""},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Button=React__namespace.forwardRef(({className:e,variant:t,size:n,asChild:i=!1,confirmationDialog:o,onClick:l,...u},f)=>{const p=i?Slot:"button";if(!o)return jsxRuntime.jsx(p,{className:cn(buttonVariants({variant:t,size:n,className:e})),ref:f,onClick:l,...u});l&&console.warn("Button: You provided both onClick and confirmationDialog props. The onClick prop will be ignored. Use the onConfirm callback in confirmationDialog instead.");const{title:d,content:m,onConfirm:g,confirmText:_="Confirm",cancelText:S="Cancel"}=o,E=()=>{g()};return jsxRuntime.jsxs(Dialog,{children:[jsxRuntime.jsx(DialogTrigger,{asChild:!0,children:jsxRuntime.jsx(p,{className:cn(buttonVariants({variant:t,size:n,className:e})),ref:f,...u})}),jsxRuntime.jsxs(DialogContent,{children:[jsxRuntime.jsxs(DialogHeader,{children:[jsxRuntime.jsx(DialogTitle,{children:d}),jsxRuntime.jsx(DialogDescription,{children:m})]}),jsxRuntime.jsxs(DialogFooter,{className:"flex justify-end gap-2 pt-4",children:[jsxRuntime.jsx(DialogClose,{asChild:!0,children:jsxRuntime.jsx(Button,{variant:"outline",children:S})}),jsxRuntime.jsx(DialogClose,{asChild:!0,children:jsxRuntime.jsx(Button,{onClick:E,children:_})})]})]})]})});Button.displayName="Button";var NAME$2="VisuallyHidden",VisuallyHidden=React__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Primitive.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));VisuallyHidden.displayName=NAME$2;var Root$2=VisuallyHidden,[createTooltipContext,createTooltipScope]=createContextScope("Tooltip",[createPopperScope]),usePopperScope=createPopperScope(),PROVIDER_NAME$1="TooltipProvider",DEFAULT_DELAY_DURATION=700,TOOLTIP_OPEN="tooltip.open",[TooltipProviderContextProvider,useTooltipProviderContext]=createTooltipContext(PROVIDER_NAME$1),TooltipProvider$1=e=>{const{__scopeTooltip:t,delayDuration:n=DEFAULT_DELAY_DURATION,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:l}=e,[u,f]=React__namespace.useState(!0),p=React__namespace.useRef(!1),d=React__namespace.useRef(0);return React__namespace.useEffect(()=>{const m=d.current;return()=>window.clearTimeout(m)},[]),jsxRuntime.jsx(TooltipProviderContextProvider,{scope:t,isOpenDelayed:u,delayDuration:n,onOpen:React__namespace.useCallback(()=>{window.clearTimeout(d.current),f(!1)},[]),onClose:React__namespace.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>f(!0),i)},[i]),isPointerInTransitRef:p,onPointerInTransitChange:React__namespace.useCallback(m=>{p.current=m},[]),disableHoverableContent:o,children:l})};TooltipProvider$1.displayName=PROVIDER_NAME$1;var TOOLTIP_NAME="Tooltip",[TooltipContextProvider,useTooltipContext]=createTooltipContext(TOOLTIP_NAME),Tooltip$2=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:o=!1,onOpenChange:l,disableHoverableContent:u,delayDuration:f}=e,p=useTooltipProviderContext(TOOLTIP_NAME,e.__scopeTooltip),d=usePopperScope(t),[m,g]=React__namespace.useState(null),_=useId(),S=React__namespace.useRef(0),E=u??p.disableHoverableContent,R=f??p.delayDuration,b=React__namespace.useRef(!1),[A=!1,C]=useControllableState({prop:i,defaultProp:o,onChange:I=>{I?(p.onOpen(),document.dispatchEvent(new CustomEvent(TOOLTIP_OPEN))):p.onClose(),l==null||l(I)}}),O=React__namespace.useMemo(()=>A?b.current?"delayed-open":"instant-open":"closed",[A]),M=React__namespace.useCallback(()=>{window.clearTimeout(S.current),S.current=0,b.current=!1,C(!0)},[C]),T=React__namespace.useCallback(()=>{window.clearTimeout(S.current),S.current=0,C(!1)},[C]),j=React__namespace.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>{b.current=!0,C(!0),S.current=0},R)},[R,C]);return React__namespace.useEffect(()=>()=>{S.current&&(window.clearTimeout(S.current),S.current=0)},[]),jsxRuntime.jsx(Root2$2,{...d,children:jsxRuntime.jsx(TooltipContextProvider,{scope:t,contentId:_,open:A,stateAttribute:O,trigger:m,onTriggerChange:g,onTriggerEnter:React__namespace.useCallback(()=>{p.isOpenDelayed?j():M()},[p.isOpenDelayed,j,M]),onTriggerLeave:React__namespace.useCallback(()=>{E?T():(window.clearTimeout(S.current),S.current=0)},[T,E]),onOpen:M,onClose:T,disableHoverableContent:E,children:n})})};Tooltip$2.displayName=TOOLTIP_NAME;var TRIGGER_NAME="TooltipTrigger",TooltipTrigger$1=React__namespace.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,o=useTooltipContext(TRIGGER_NAME,n),l=useTooltipProviderContext(TRIGGER_NAME,n),u=usePopperScope(n),f=React__namespace.useRef(null),p=useComposedRefs(t,f,o.onTriggerChange),d=React__namespace.useRef(!1),m=React__namespace.useRef(!1),g=React__namespace.useCallback(()=>d.current=!1,[]);return React__namespace.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),jsxRuntime.jsx(Anchor,{asChild:!0,...u,children:jsxRuntime.jsx(Primitive.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:p,onPointerMove:composeEventHandlers(e.onPointerMove,_=>{_.pointerType!=="touch"&&!m.current&&!l.isPointerInTransitRef.current&&(o.onTriggerEnter(),m.current=!0)}),onPointerLeave:composeEventHandlers(e.onPointerLeave,()=>{o.onTriggerLeave(),m.current=!1}),onPointerDown:composeEventHandlers(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:composeEventHandlers(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:composeEventHandlers(e.onBlur,o.onClose),onClick:composeEventHandlers(e.onClick,o.onClose)})})});TooltipTrigger$1.displayName=TRIGGER_NAME;var PORTAL_NAME="TooltipPortal",[PortalProvider,usePortalContext]=createTooltipContext(PORTAL_NAME,{forceMount:void 0}),TooltipPortal=e=>{const{__scopeTooltip:t,forceMount:n,children:i,container:o}=e,l=useTooltipContext(PORTAL_NAME,t);return jsxRuntime.jsx(PortalProvider,{scope:t,forceMount:n,children:jsxRuntime.jsx(Presence,{present:n||l.open,children:jsxRuntime.jsx(Portal$3,{asChild:!0,container:o,children:i})})})};TooltipPortal.displayName=PORTAL_NAME;var CONTENT_NAME="TooltipContent",TooltipContent$1=React__namespace.forwardRef((e,t)=>{const n=usePortalContext(CONTENT_NAME,e.__scopeTooltip),{forceMount:i=n.forceMount,side:o="top",...l}=e,u=useTooltipContext(CONTENT_NAME,e.__scopeTooltip);return jsxRuntime.jsx(Presence,{present:i||u.open,children:u.disableHoverableContent?jsxRuntime.jsx(TooltipContentImpl,{side:o,...l,ref:t}):jsxRuntime.jsx(TooltipContentHoverable,{side:o,...l,ref:t})})}),TooltipContentHoverable=React__namespace.forwardRef((e,t)=>{const n=useTooltipContext(CONTENT_NAME,e.__scopeTooltip),i=useTooltipProviderContext(CONTENT_NAME,e.__scopeTooltip),o=React__namespace.useRef(null),l=useComposedRefs(t,o),[u,f]=React__namespace.useState(null),{trigger:p,onClose:d}=n,m=o.current,{onPointerInTransitChange:g}=i,_=React__namespace.useCallback(()=>{f(null),g(!1)},[g]),S=React__namespace.useCallback((E,R)=>{const b=E.currentTarget,A={x:E.clientX,y:E.clientY},C=getExitSideFromRect(A,b.getBoundingClientRect()),O=getPaddedExitPoints(A,C),M=getPointsFromRect(R.getBoundingClientRect()),T=getHull([...O,...M]);f(T),g(!0)},[g]);return React__namespace.useEffect(()=>()=>_(),[_]),React__namespace.useEffect(()=>{if(p&&m){const E=b=>S(b,m),R=b=>S(b,p);return p.addEventListener("pointerleave",E),m.addEventListener("pointerleave",R),()=>{p.removeEventListener("pointerleave",E),m.removeEventListener("pointerleave",R)}}},[p,m,S,_]),React__namespace.useEffect(()=>{if(u){const E=R=>{const b=R.target,A={x:R.clientX,y:R.clientY},C=(p==null?void 0:p.contains(b))||(m==null?void 0:m.contains(b)),O=!isPointInPolygon(A,u);C?_():O&&(_(),d())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[p,m,u,d,_]),jsxRuntime.jsx(TooltipContentImpl,{...e,ref:l})}),[VisuallyHiddenContentContextProvider,useVisuallyHiddenContentContext]=createTooltipContext(TOOLTIP_NAME,{isInside:!1}),TooltipContentImpl=React__namespace.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":o,onEscapeKeyDown:l,onPointerDownOutside:u,...f}=e,p=useTooltipContext(CONTENT_NAME,n),d=usePopperScope(n),{onClose:m}=p;return React__namespace.useEffect(()=>(document.addEventListener(TOOLTIP_OPEN,m),()=>document.removeEventListener(TOOLTIP_OPEN,m)),[m]),React__namespace.useEffect(()=>{if(p.trigger){const g=_=>{const S=_.target;S!=null&&S.contains(p.trigger)&&m()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[p.trigger,m]),jsxRuntime.jsx(DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:g=>g.preventDefault(),onDismiss:m,children:jsxRuntime.jsxs(Content,{"data-state":p.stateAttribute,...d,...f,ref:t,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[jsxRuntime.jsx(Slottable,{children:i}),jsxRuntime.jsx(VisuallyHiddenContentContextProvider,{scope:n,isInside:!0,children:jsxRuntime.jsx(Root$2,{id:p.contentId,role:"tooltip",children:o||i})})]})})});TooltipContent$1.displayName=CONTENT_NAME;var ARROW_NAME="TooltipArrow",TooltipArrow=React__namespace.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,o=usePopperScope(n);return useVisuallyHiddenContentContext(ARROW_NAME,n).isInside?null:jsxRuntime.jsx(Arrow,{...o,...i,ref:t})});TooltipArrow.displayName=ARROW_NAME;function getExitSideFromRect(e,t){const n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,i,o,l)){case l:return"left";case o:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function getPaddedExitPoints(e,t,n=5){const i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return i}function getPointsFromRect(e){const{top:t,right:n,bottom:i,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:i},{x:o,y:i}]}function isPointInPolygon(e,t){const{x:n,y:i}=e;let o=!1;for(let l=0,u=t.length-1;l<t.length;u=l++){const f=t[l].x,p=t[l].y,d=t[u].x,m=t[u].y;p>i!=m>i&&n<(d-f)*(i-p)/(m-p)+f&&(o=!o)}return o}function getHull(e){const t=e.slice();return t.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),getHullPresorted(t)}function getHullPresorted(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i<e.length;i++){const o=e[i];for(;t.length>=2;){const l=t[t.length-1],u=t[t.length-2];if((l.x-u.x)*(o.y-u.y)>=(l.y-u.y)*(o.x-u.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let i=e.length-1;i>=0;i--){const o=e[i];for(;n.length>=2;){const l=n[n.length-1],u=n[n.length-2];if((l.x-u.x)*(o.y-u.y)>=(l.y-u.y)*(o.x-u.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Provider$1=TooltipProvider$1,Root3=Tooltip$2,Trigger=TooltipTrigger$1,Portal=TooltipPortal,Content2=TooltipContent$1;const TooltipProvider=Provider$1,Tooltip$1=Root3,TooltipTrigger=Trigger,TooltipContent=React__namespace.forwardRef(({className:e,sideOffset:t=4,...n},i)=>jsxRuntime.jsx(Portal,{children:jsxRuntime.jsx(Content2,{ref:i,sideOffset:t,className:cn("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));TooltipContent.displayName=Content2.displayName;const Input=React__namespace.forwardRef(({className:e,type:t,mask:n,onChange:i,placeholder:o,...l},u)=>{const[f,p]=React__namespace.useState(!1),d=React__namespace.useRef(null),g=o||(n==="phone"?"(999) 999-9999":n==="postal-code-ca"?"A9A 9A9":n==="zip-code-us"?"99999":""),_=()=>n==="phone"?"Only enter numbers. Formatting will be added automatically.":n==="postal-code-ca"?"Enter letters and numbers only. Spacing will be applied automatically.":n==="zip-code-us"?"Only enter numbers. Formatting will be added automatically.":"",S=()=>{p(!0),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{p(!1)},3e3)};React__namespace.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const E=R=>{if(n){const b=R.target.value;let A=b;if(b.length>0){const C=b[b.length-1];/[^a-zA-Z0-9]/.test(C)&&(console.log("Non-alphanumeric detected:",C),S())}if(n==="phone"){const C=b.replace(/\D/g,"");C.length<=3?A=C:C.length<=6?A=`(${C.slice(0,3)}) ${C.slice(3)}`:A=`(${C.slice(0,3)}) ${C.slice(3,6)}-${C.slice(6,10)}`}else if(n==="postal-code-ca"){const C=b.replace(/[^a-zA-Z0-9]/g,"").toUpperCase();let O="";for(let M=0;M<Math.min(C.length,6);M++){const T=C[M];M===0||M===2||M===4?/[A-Z]/.test(T)&&(O+=T):(M===1||M===3||M===5)&&/[0-9]/.test(T)&&(O+=T)}O.length<=3?A=O:A=`${O.slice(0,3)} ${O.slice(3,6)}`}else if(n==="zip-code-us"){const C=b.replace(/\D/g,"");C.length<=5?A=C:A=`${C.slice(0,5)}-${C.slice(5,9)}`}R.target.value=A}i==null||i(R)};return jsxRuntime.jsx(TooltipProvider,{children:jsxRuntime.jsxs(Tooltip$1,{open:f&&!!n,children:[jsxRuntime.jsx(TooltipTrigger,{asChild:!0,children:jsxRuntime.jsx("input",{type:t,className:cn("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),onChange:E,placeholder:g,ref:u,...l})}),jsxRuntime.jsx(TooltipContent,{side:"top",className:"bg-sidebar text-sidebar-foreground",children:_()})]})})});Input.displayName="Input";var NAME$1="Separator",DEFAULT_ORIENTATION="horizontal",ORIENTATIONS=["horizontal","vertical"],Separator$1=React__namespace.forwardRef((e,t)=>{const{decorative:n,orientation:i=DEFAULT_ORIENTATION,...o}=e,l=isValidOrientation(i)?i:DEFAULT_ORIENTATION,f=n?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return jsxRuntime.jsx(Primitive.div,{"data-orientation":l,...f,...o,ref:t})});Separator$1.displayName=NAME$1;function isValidOrientation(e){return ORIENTATIONS.includes(e)}var Root$1=Separator$1;const Separator=React__namespace.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...i},o)=>jsxRuntime.jsx(Root$1,{ref:o,decorative:n,orientation:t,className:cn("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...i}));Separator.displayName=Root$1.displayName;const Sheet=Root$5,SheetTrigger=Trigger$2,SheetClose=Close$1,SheetPortal=Portal$2,SheetOverlay=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(Overlay,{className:cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));SheetOverlay.displayName=Overlay.displayName;const sheetVariants=cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),SheetContent=React__namespace.forwardRef(({side:e="right",className:t,children:n,...i},o)=>jsxRuntime.jsxs(SheetPortal,{children:[jsxRuntime.jsx(SheetOverlay,{}),jsxRuntime.jsxs(Content$1,{ref:o,className:cn(sheetVariants({side:e}),t),...i,children:[jsxRuntime.jsxs(Close$1,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[jsxRuntime.jsx(X,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));SheetContent.displayName=Content$1.displayName;const SheetHeader=({className:e,...t})=>jsxRuntime.jsx("div",{className:cn("flex flex-col space-y-2 text-center sm:text-left",e),...t});SheetHeader.displayName="SheetHeader";const SheetFooter=({className:e,...t})=>jsxRuntime.jsx("div",{className:cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});SheetFooter.displayName="SheetFooter";const SheetTitle=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(Title$1,{ref:n,className:cn("text-lg font-semibold text-foreground",e),...t}));SheetTitle.displayName=Title$1.displayName;const SheetDescription=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(Description$1,{ref:n,className:cn("text-sm text-muted-foreground",e),...t}));SheetDescription.displayName=Description$1.displayName;function AvatarFooter({onClick:e,publicName:t,applicationName:n,partnerId:i}){const o=`https://api.randmar.io/v4/Partner/${i}/Account/Logo?height=72&width=72`,[l,u]=React.useState(!1),f=()=>{u(!0)};return jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-muted "+(e!==void 0?"cursor-pointer":""),children:l?jsxRuntime.jsx(Button,{asChild:!0,size:"icon",onClick:e,children:jsxRuntime.jsx(TriangleAlert,{className:"h-5 w-5 text-muted-foreground !bg-sidebar"})}):jsxRuntime.jsx(Button,{asChild:!0,size:"icon",onClick:e,children:jsxRuntime.jsx("img",{src:o,alt:"Partner logo",className:"h-9 w-9 object-cover !bg-sidebar",onError:f})})}),jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col",children:[jsxRuntime.jsx("span",{className:"text-sm font-medium",children:t||"Partner"}),jsxRuntime.jsx("span",{className:"text-xs text-neutral-400",children:n})]})]})}var NAME="Label",Label$2=React__namespace.forwardRef((e,t)=>jsxRuntime.jsx(Primitive.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Label$2.displayName=NAME;var Root=Label$2;function Label$1({className:e,...t}){return jsxRuntime.jsx(Root,{"data-slot":"label",className:cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const MOBILE_BREAKPOINT=1024;function useIsMobile(){const[e,t]=React__namespace.useState(void 0);return React__namespace.useEffect(()=>{const n=window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT-1}px)`),i=()=>{t(window.innerWidth<MOBILE_BREAKPOINT)};return n.addEventListener("change",i),t(window.innerWidth<MOBILE_BREAKPOINT),()=>n.removeEventListener("change",i)},[]),!!e}function Skeleton({className:e,...t}){return jsxRuntime.jsx("div",{className:cn("animate-pulse rounded-md bg-primary/20",e),...t})}const SIDEBAR_COOKIE_NAME="sidebar:state",SIDEBAR_COOKIE_MAX_AGE=60*60*24*7,SIDEBAR_WIDTH="16rem",SIDEBAR_WIDTH_MOBILE="18rem",SIDEBAR_WIDTH_ICON="3rem",SIDEBAR_KEYBOARD_SHORTCUT="b",SidebarContext=React__namespace.createContext(null);function useSidebar(){const e=React__namespace.useContext(SidebarContext);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const SidebarProvider=React__namespace.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:i,style:o,children:l,...u},f)=>{const p=useIsMobile(),[d,m]=React__namespace.useState(!1),[g,_]=React__namespace.useState(e),S=t??g,E=React__namespace.useCallback(C=>{const O=typeof C=="function"?C(S):C;n?n(O):_(O),document.cookie=`${SIDEBAR_COOKIE_NAME}=${O}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`},[n,S]),R=React__namespace.useCallback(()=>p?m(C=>!C):E(C=>!C),[p,E,m]);React__namespace.useEffect(()=>{const C=O=>{O.key===SIDEBAR_KEYBOARD_SHORTCUT&&(O.metaKey||O.ctrlKey)&&(O.preventDefault(),R())};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[R]);const b=S?"expanded":"collapsed",A=React__namespace.useMemo(()=>({state:b,open:S,setOpen:E,isMobile:p,openMobile:d,setOpenMobile:m,toggleSidebar:R}),[b,S,E,p,d,m,R]);return jsxRuntime.jsx(SidebarContext.Provider,{value:A,children:jsxRuntime.jsx(TooltipProvider,{delayDuration:0,children:jsxRuntime.jsx("div",{style:{"--sidebar-width":SIDEBAR_WIDTH,"--sidebar-width-icon":SIDEBAR_WIDTH_ICON,...o},className:cn("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",i),ref:f,...u,children:l})})})});SidebarProvider.displayName="SidebarProvider";const Sidebar=React__namespace.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:i,children:o,...l},u)=>{const{isMobile:f,state:p,openMobile:d,setOpenMobile:m}=useSidebar();return n==="none"?jsxRuntime.jsx("div",{className:cn("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",i),ref:u,...l,children:o}):f?jsxRuntime.jsx(Sheet,{open:d,onOpenChange:m,...l,children:jsxRuntime.jsx(SheetContent,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":SIDEBAR_WIDTH_MOBILE},side:e,children:jsxRuntime.jsx("div",{className:"flex h-full w-full flex-col",children:o})})}):jsxRuntime.jsxs("div",{ref:u,className:"group peer hidden md:block text-sidebar-foreground","data-state":p,"data-collapsible":p==="collapsed"?n:"","data-variant":t,"data-side":e,children:[jsxRuntime.jsx("div",{className:cn("duration-200 relative h-svh w-(--sidebar-width) bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),jsxRuntime.jsx("div",{className:cn("duration-200 fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...l,children:jsxRuntime.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm",children:o})})]})});Sidebar.displayName="Sidebar";const SidebarTrigger=React__namespace.forwardRef(({className:e,onClick:t,...n},i)=>{const{toggleSidebar:o}=useSidebar();return jsxRuntime.jsxs(Button,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:cn("h-7 w-7 text-sidebar-foreground",e),onClick:l=>{t==null||t(l),o()},...n,children:[jsxRuntime.jsx(PanelLeft,{}),jsxRuntime.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});SidebarTrigger.displayName="SidebarTrigger";const SidebarRail=React__namespace.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:i}=useSidebar();return jsxRuntime.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:cn("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});SidebarRail.displayName="SidebarRail";const SidebarInset=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("main",{ref:n,className:cn("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",e),...t}));SidebarInset.displayName="SidebarInset";const SidebarInput=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(Input,{ref:n,"data-sidebar":"input",className:cn("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));SidebarInput.displayName="SidebarInput";const SidebarHeader=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-sidebar":"header",className:cn("flex flex-col gap-2 p-2",e),...t}));SidebarHeader.displayName="SidebarHeader";const SidebarFooter=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-sidebar":"footer",className:cn("flex flex-col gap-2 p-2",e),...t}));SidebarFooter.displayName="SidebarFooter";const SidebarSeparator=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(Separator,{ref:n,"data-sidebar":"separator",className:cn("mx-2 w-auto bg-sidebar-border",e),...t}));SidebarSeparator.displayName="SidebarSeparator";const SidebarContent=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-sidebar":"content",className:cn("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));SidebarContent.displayName="SidebarContent";const SidebarGroup=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-sidebar":"group",className:cn("relative flex w-full min-w-0 flex-col p-2",e),...t}));SidebarGroup.displayName="SidebarGroup";const SidebarGroupLabel=React__namespace.forwardRef(({className:e,asChild:t=!1,...n},i)=>{const o=t?Slot:"div";return jsxRuntime.jsx(o,{ref:i,"data-sidebar":"group-label",className:cn("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-hidden ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});SidebarGroupLabel.displayName="SidebarGroupLabel";const SidebarGroupAction=React__namespace.forwardRef(({className:e,asChild:t=!1,...n},i)=>{const o=t?Slot:"button";return jsxRuntime.jsx(o,{ref:i,"data-sidebar":"group-action",className:cn("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...n})});SidebarGroupAction.displayName="SidebarGroupAction";const SidebarGroupContent=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-sidebar":"group-content",className:cn("w-full text-sm",e),...t}));SidebarGroupContent.displayName="SidebarGroupContent";const SidebarMenu=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("ul",{ref:n,"data-sidebar":"menu",className:cn("flex w-full min-w-0 flex-col gap-1",e),...t}));SidebarMenu.displayName="SidebarMenu";const SidebarMenuItem=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("li",{ref:n,"data-sidebar":"menu-item",className:cn("group/menu-item relative",e),...t}));SidebarMenuItem.displayName="SidebarMenuItem";const sidebarMenuButtonVariants=cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}}),SidebarMenuButton=React__namespace.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:i="default",tooltip:o,className:l,...u},f)=>{const p=e?Slot:"button",{isMobile:d,state:m}=useSidebar(),g=jsxRuntime.jsx(p,{ref:f,"data-sidebar":"menu-button","data-size":i,"data-active":t,className:cn(sidebarMenuButtonVariants({variant:n,size:i}),l),...u});return o?(typeof o=="string"&&(o={children:o}),jsxRuntime.jsxs(Tooltip$1,{children:[jsxRuntime.jsx(TooltipTrigger,{asChild:!0,children:g}),jsxRuntime.jsx(TooltipContent,{side:"right",align:"center",hidden:m!=="collapsed"||d,...o})]})):g});SidebarMenuButton.displayName="SidebarMenuButton";const SidebarMenuAction=React__namespace.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...i},o)=>{const l=t?Slot:"button";return jsxRuntime.jsx(l,{ref:o,"data-sidebar":"menu-action",className:cn("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...i})});SidebarMenuAction.displayName="SidebarMenuAction";const SidebarMenuBadge=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:cn("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));SidebarMenuBadge.displayName="SidebarMenuBadge";const SidebarMenuSkeleton=React__namespace.forwardRef(({className:e,showIcon:t=!1,...n},i)=>{const o=React__namespace.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntime.jsxs("div",{ref:i,"data-sidebar":"menu-skeleton",className:cn("rounded-md h-8 flex gap-2 px-2 items-center",e),...n,children:[t&&jsxRuntime.jsx(Skeleton,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsxRuntime.jsx(Skeleton,{className:"h-4 flex-1 max-w-(--skeleton-width)","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});SidebarMenuSkeleton.displayName="SidebarMenuSkeleton";const SidebarMenuSub=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:cn("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));SidebarMenuSub.displayName="SidebarMenuSub";const SidebarMenuSubItem=React__namespace.forwardRef(({...e},t)=>jsxRuntime.jsx("li",{ref:t,...e}));SidebarMenuSubItem.displayName="SidebarMenuSubItem";const SidebarMenuSubButton=React__namespace.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:i,...o},l)=>{const u=e?Slot:"a";return jsxRuntime.jsx(u,{ref:l,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:cn("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",i),...o})});SidebarMenuSubButton.displayName="SidebarMenuSubButton";var PROVIDER_NAME="ToastProvider",[Collection,useCollection,createCollectionScope]=createCollection("Toast"),[createToastContext,createToastScope]=createContextScope("Toast",[createCollectionScope]),[ToastProviderProvider,useToastProviderContext]=createToastContext(PROVIDER_NAME),ToastProvider$1=e=>{const{__scopeToast:t,label:n="Notification",duration:i=5e3,swipeDirection:o="right",swipeThreshold:l=50,children:u}=e,[f,p]=React__namespace.useState(null),[d,m]=React__namespace.useState(0),g=React__namespace.useRef(!1),_=React__namespace.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${PROVIDER_NAME}\`. Expected non-empty \`string\`.`),jsxRuntime.jsx(Collection.Provider,{scope:t,children:jsxRuntime.jsx(ToastProviderProvider,{scope:t,label:n,duration:i,swipeDirection:o,swipeThreshold:l,toastCount:d,viewport:f,onViewportChange:p,onToastAdd:React__namespace.useCallback(()=>m(S=>S+1),[]),onToastRemove:React__namespace.useCallback(()=>m(S=>S-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:_,children:u})})};ToastProvider$1.displayName=PROVIDER_NAME;var VIEWPORT_NAME="ToastViewport",VIEWPORT_DEFAULT_HOTKEY=["F8"],VIEWPORT_PAUSE="toast.viewportPause",VIEWPORT_RESUME="toast.viewportResume",ToastViewport$1=React__namespace.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:i=VIEWPORT_DEFAULT_HOTKEY,label:o="Notifications ({hotkey})",...l}=e,u=useToastProviderContext(VIEWPORT_NAME,n),f=useCollection(n),p=React__namespace.useRef(null),d=React__namespace.useRef(null),m=React__namespace.useRef(null),g=React__namespace.useRef(null),_=useComposedRefs(t,g,u.onViewportChange),S=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=u.toastCount>0;React__namespace.useEffect(()=>{const b=A=>{var O;i.length!==0&&i.every(M=>A[M]||A.code===M)&&((O=g.current)==null||O.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[i]),React__namespace.useEffect(()=>{const b=p.current,A=g.current;if(E&&b&&A){const C=()=>{if(!u.isClosePausedRef.current){const j=new CustomEvent(VIEWPORT_PAUSE);A.dispatchEvent(j),u.isClosePausedRef.current=!0}},O=()=>{if(u.isClosePausedRef.current){const j=new CustomEvent(VIEWPORT_RESUME);A.dispatchEvent(j),u.isClosePausedRef.current=!1}},M=j=>{!b.contains(j.relatedTarget)&&O()},T=()=>{b.contains(document.activeElement)||O()};return b.addEventListener("focusin",C),b.addEventListener("focusout",M),b.addEventListener("pointermove",C),b.addEventListener("pointerleave",T),window.addEventListener("blur",C),window.addEventListener("focus",O),()=>{b.removeEventListener("focusin",C),b.removeEventListener("focusout",M),b.removeEventListener("pointermove",C),b.removeEventListener("pointerleave",T),window.removeEventListener("blur",C),window.removeEventListener("focus",O)}}},[E,u.isClosePausedRef]);const R=React__namespace.useCallback(({tabbingDirection:b})=>{const C=f().map(O=>{const M=O.ref.current,T=[M,...getTabbableCandidates(M)];return b==="forwards"?T:T.reverse()});return(b==="forwards"?C.reverse():C).flat()},[f]);return React__namespace.useEffect(()=>{const b=g.current;if(b){const A=C=>{var T,j,I;const O=C.altKey||C.ctrlKey||C.metaKey;if(C.key==="Tab"&&!O){const D=document.activeElement,L=C.shiftKey;if(C.target===b&&L){(T=d.current)==null||T.focus();return}const B=R({tabbingDirection:L?"backwards":"forwards"}),z=B.findIndex(V=>V===D);focusFirst(B.slice(z+1))?C.preventDefault():L?(j=d.current)==null||j.focus():(I=m.current)==null||I.focus()}};return b.addEventListener("keydown",A),()=>b.removeEventListener("keydown",A)}},[f,R]),jsxRuntime.jsxs(Branch,{ref:p,role:"region","aria-label":o.replace("{hotkey}",S),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&jsxRuntime.jsx(FocusProxy,{ref:d,onFocusFromOutsideViewport:()=>{const b=R({tabbingDirection:"forwards"});focusFirst(b)}}),jsxRuntime.jsx(Collection.Slot,{scope:n,children:jsxRuntime.jsx(Primitive.ol,{tabIndex:-1,...l,ref:_})}),E&&jsxRuntime.jsx(FocusProxy,{ref:m,onFocusFromOutsideViewport:()=>{const b=R({tabbingDirection:"backwards"});focusFirst(b)}})]})});ToastViewport$1.displayName=VIEWPORT_NAME;var FOCUS_PROXY_NAME="ToastFocusProxy",FocusProxy=React__namespace.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:i,...o}=e,l=useToastProviderContext(FOCUS_PROXY_NAME,n);return jsxRuntime.jsx(VisuallyHidden,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:u=>{var d;const f=u.relatedTarget;!((d=l.viewport)!=null&&d.contains(f))&&i()}})});FocusProxy.displayName=FOCUS_PROXY_NAME;var TOAST_NAME="Toast",TOAST_SWIPE_START="toast.swipeStart",TOAST_SWIPE_MOVE="toast.swipeMove",TOAST_SWIPE_CANCEL="toast.swipeCancel",TOAST_SWIPE_END="toast.swipeEnd",Toast$1=React__namespace.forwardRef((e,t)=>{const{forceMount:n,open:i,defaultOpen:o,onOpenChange:l,...u}=e,[f=!0,p]=useControllableState({prop:i,defaultProp:o,onChange:l});return jsxRuntime.jsx(Presence,{present:n||f,children:jsxRuntime.jsx(ToastImpl,{open:f,...u,ref:t,onClose:()=>p(!1),onPause:useCallbackRef$1(e.onPause),onResume:useCallbackRef$1(e.onResume),onSwipeStart:composeEventHandlers(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:composeEventHandlers(e.onSwipeMove,d=>{const{x:m,y:g}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:composeEventHandlers(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:composeEventHandlers(e.onSwipeEnd,d=>{const{x:m,y:g}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),p(!1)})})})});Toast$1.displayName=TOAST_NAME;var[ToastInteractiveProvider,useToastInteractiveContext]=createToastContext(TOAST_NAME,{onClose(){}}),ToastImpl=React__namespace.forwardRef((e,t)=>{const{__scopeToast:n,type:i="foreground",duration:o,open:l,onClose:u,onEscapeKeyDown:f,onPause:p,onResume:d,onSwipeStart:m,onSwipeMove:g,onSwipeCancel:_,onSwipeEnd:S,...E}=e,R=useToastProviderContext(TOAST_NAME,n),[b,A]=React__namespace.useState(null),C=useComposedRefs(t,V=>A(V)),O=React__namespace.useRef(null),M=React__namespace.useRef(null),T=o||R.duration,j=React__namespace.useRef(0),I=React__namespace.useRef(T),D=React__namespace.useRef(0),{onToastAdd:L,onToastRemove:F}=R,N=useCallbackRef$1(()=>{var W;(b==null?void 0:b.contains(document.activeElement))&&((W=R.viewport)==null||W.focus()),u()}),B=React__namespace.useCallback(V=>{!V||V===1/0||(window.clearTimeout(D.current),j.current=new Date().getTime(),D.current=window.setTimeout(N,V))},[N]);React__namespace.useEffect(()=>{const V=R.viewport;if(V){const W=()=>{B(I.current),d==null||d()},U=()=>{const Q=new Date().getTime()-j.current;I.current=I.current-Q,window.clearTimeout(D.current),p==null||p()};return V.addEventListener(VIEWPORT_PAUSE,U),V.addEventListener(VIEWPORT_RESUME,W),()=>{V.removeEventListener(VIEWPORT_PAUSE,U),V.removeEventListener(VIEWPORT_RESUME,W)}}},[R.viewport,T,p,d,B]),React__namespace.useEffect(()=>{l&&!R.isClosePausedRef.current&&B(T)},[l,T,R.isClosePausedRef,B]),React__namespace.useEffect(()=>(L(),()=>F()),[L,F]);const z=React__namespace.useMemo(()=>b?getAnnounceTextContent(b):null,[b]);return R.viewport?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[z&&jsxRuntime.jsx(ToastAnnounce,{__scopeToast:n,role:"status","aria-live":i==="foreground"?"assertive":"polite","aria-atomic":!0,children:z}),jsxRuntime.jsx(ToastInteractiveProvider,{scope:n,onClose:N,children:ReactDOM__namespace.createPortal(jsxRuntime.jsx(Collection.ItemSlot,{scope:n,children:jsxRuntime.jsx(Root$6,{asChild:!0,onEscapeKeyDown:composeEventHandlers(f,()=>{R.isFocusedToastEscapeKeyDownRef.current||N(),R.isFocusedToastEscapeKeyDownRef.current=!1}),children:jsxRuntime.jsx(Primitive.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":R.swipeDirection,...E,ref:C,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:composeEventHandlers(e.onKeyDown,V=>{V.key==="Escape"&&(f==null||f(V.nativeEvent),V.nativeEvent.defaultPrevented||(R.isFocusedToastEscapeKeyDownRef.current=!0,N()))}),onPointerDown:composeEventHandlers(e.onPointerDown,V=>{V.button===0&&(O.current={x:V.clientX,y:V.clientY})}),onPointerMove:composeEventHandlers(e.onPointerMove,V=>{if(!O.current)return;const W=V.clientX-O.current.x,U=V.clientY-O.current.y,Q=!!M.current,q=["left","right"].includes(R.swipeDirection),G=["left","up"].includes(R.swipeDirection)?Math.min:Math.max,H=q?G(0,W):0,Z=q?0:G(0,U),ee=V.pointerType==="touch"?10:2,ne={x:H,y:Z},ie={originalEvent:V,delta:ne};Q?(M.current=ne,handleAndDispatchCustomEvent(TOAST_SWIPE_MOVE,g,ie,{discrete:!1})):isDeltaInDirection(ne,R.swipeDirection,ee)?(M.current=ne,handleAndDispatchCustomEvent(TOAST_SWIPE_START,m,ie,{discrete:!1}),V.target.setPointerCapture(V.pointerId)):(Math.abs(W)>ee||Math.abs(U)>ee)&&(O.current=null)}),onPointerUp:composeEventHandlers(e.onPointerUp,V=>{const W=M.current,U=V.target;if(U.hasPointerCapture(V.pointerId)&&U.releasePointerCapture(V.pointerId),M.current=null,O.current=null,W){const Q=V.currentTarget,q={originalEvent:V,delta:W};isDeltaInDirection(W,R.swipeDirection,R.swipeThreshold)?handleAndDispatchCustomEvent(TOAST_SWIPE_END,S,q,{discrete:!0}):handleAndDispatchCustomEvent(TOAST_SWIPE_CANCEL,_,q,{discrete:!0}),Q.addEventListener("click",G=>G.preventDefault(),{once:!0})}})})})}),R.viewport)})]}):null}),ToastAnnounce=e=>{const{__scopeToast:t,children:n,...i}=e,o=useToastProviderContext(TOAST_NAME,t),[l,u]=React__namespace.useState(!1),[f,p]=React__namespace.useState(!1);return useNextFrame(()=>u(!0)),React__namespace.useEffect(()=>{const d=window.setTimeout(()=>p(!0),1e3);return()=>window.clearTimeout(d)},[]),f?null:jsxRuntime.jsx(Portal$3,{asChild:!0,children:jsxRuntime.jsx(VisuallyHidden,{...i,children:l&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[o.label," ",n]})})})},TITLE_NAME="ToastTitle",ToastTitle$1=React__namespace.forwardRef((e,t)=>{const{__scopeToast:n,...i}=e;return jsxRuntime.jsx(Primitive.div,{...i,ref:t})});ToastTitle$1.displayName=TITLE_NAME;var DESCRIPTION_NAME="ToastDescription",ToastDescription$1=React__namespace.forwardRef((e,t)=>{const{__scopeToast:n,...i}=e;return jsxRuntime.jsx(Primitive.div,{...i,ref:t})});ToastDescription$1.displayName=DESCRIPTION_NAME;var ACTION_NAME="ToastAction",ToastAction$1=React__namespace.forwardRef((e,t)=>{const{altText:n,...i}=e;return n.trim()?jsxRuntime.jsx(ToastAnnounceExclude,{altText:n,asChild:!0,children:jsxRuntime.jsx(ToastClose$1,{...i,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ACTION_NAME}\`. Expected non-empty \`string\`.`),null)});ToastAction$1.displayName=ACTION_NAME;var CLOSE_NAME="ToastClose",ToastClose$1=React__namespace.forwardRef((e,t)=>{const{__scopeToast:n,...i}=e,o=useToastInteractiveContext(CLOSE_NAME,n);return jsxRuntime.jsx(ToastAnnounceExclude,{asChild:!0,children:jsxRuntime.jsx(Primitive.button,{type:"button",...i,ref:t,onClick:composeEventHandlers(e.onClick,o.onClose)})})});ToastClose$1.displayName=CLOSE_NAME;var ToastAnnounceExclude=React__namespace.forwardRef((e,t)=>{const{__scopeToast:n,altText:i,...o}=e;return jsxRuntime.jsx(Primitive.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...o,ref:t})});function getAnnounceTextContent(e){const t=[];return Array.from(e.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&t.push(i.textContent),isHTMLElement(i)){const o=i.ariaHidden||i.hidden||i.style.display==="none",l=i.dataset.radixToastAnnounceExclude==="";if(!o)if(l){const u=i.dataset.radixToastAnnounceAlt;u&&t.push(u)}else t.push(...getAnnounceTextContent(i))}}),t}function handleAndDispatchCustomEvent(e,t,n,{discrete:i}){const o=n.originalEvent.currentTarget,l=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?dispatchDiscreteCustomEvent(o,l):o.dispatchEvent(l)}var isDeltaInDirection=(e,t,n=0)=>{const i=Math.abs(e.x),o=Math.abs(e.y),l=i>o;return t==="left"||t==="right"?l&&i>n:!l&&o>n};function useNextFrame(e=()=>{}){const t=useCallbackRef$1(e);useLayoutEffect2(()=>{let n=0,i=0;return n=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(i)}},[t])}function isHTMLElement(e){return e.nodeType===e.ELEMENT_NODE}function getTabbableCandidates(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function focusFirst(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Provider=ToastProvider$1,Viewport=ToastViewport$1,Root2=Toast$1,Title=ToastTitle$1,Description=ToastDescription$1,Action=ToastAction$1,Close=ToastClose$1;const ToastProvider=Provider,ToastViewport=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(Viewport,{ref:n,className:cn("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));ToastViewport.displayName=Viewport.displayName;const toastVariants=cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground",success:"border-green-600 bg-green-600 text-white",warning:"border-yellow-500 bg-yellow-500 text-white",info:"border-blue-500 bg-blue-500 text-white",secondary:"border-secondary bg-secondary text-secondary-foreground",outline:"border-input bg-background text-foreground hover:bg-accent hover:text-accent-foreground"}},defaultVariants:{variant:"default"}}),Toast=React__namespace.forwardRef(({className:e,variant:t,...n},i)=>jsxRuntime.jsx(Root2,{ref:i,className:cn(toastVariants({variant:t}),e),...n}));Toast.displayName=Root2.displayName;const ToastAction=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(Action,{ref:n,className:cn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-hidden focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",e),...t}));ToastAction.displayName=Action.displayName;const ToastClose=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(Close,{ref:n,className:cn("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-50 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",e),"toast-close":"",...t,children:jsxRuntime.jsx(X,{className:"h-4 w-4"})}));ToastClose.displayName=Close.displayName;const ToastTitle=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(Title,{ref:n,className:cn("text-sm font-semibold [&+div]:text-xs",e),...t}));ToastTitle.displayName=Title.displayName;const ToastDescription=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx(Description,{ref:n,className:cn("text-sm opacity-90",e),...t}));ToastDescription.displayName=Description.displayName;const TOAST_LIMIT=1,TOAST_REMOVE_DELAY=1e6;let count=0;function genId(){return count=(count+1)%Number.MAX_SAFE_INTEGER,count.toString()}const toastTimeouts=new Map,addToRemoveQueue=e=>{if(toastTimeouts.has(e))return;const t=setTimeout(()=>{toastTimeouts.delete(e),dispatch({type:"REMOVE_TOAST",toastId:e})},TOAST_REMOVE_DELAY);toastTimeouts.set(e,t)},reducer=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,TOAST_LIMIT)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?addToRemoveQueue(n):e.toasts.forEach(i=>addToRemoveQueue(i.id)),{...e,toasts:e.toasts.map(i=>i.id===n||n===void 0?{...i,open:!1}:i)}}case"REMOVE_TOAST":return{...e,toasts:t.toastId?e.toasts.filter(n=>n.id!==t.toastId):[]}}},listeners=[];let memoryState={toasts:[]};function dispatch(e){memoryState=reducer(memoryState,e),listeners.forEach(t=>t(memoryState))}function toast({...e}){const t=genId(),n=o=>dispatch({type:"UPDATE_TOAST",toast:{...o,id:t}}),i=()=>dispatch({type:"DISMISS_TOAST",toastId:t});return dispatch({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||i()}}}),{id:t,dismiss:i,update:n}}function useToast(){const[e,t]=React__namespace.useState(memoryState);return React__namespace.useEffect(()=>(listeners.push(t),()=>{const n=listeners.indexOf(t);n>-1&&listeners.splice(n,1)}),[]),{...e,toast,dismiss:n=>dispatch({type:"DISMISS_TOAST",toastId:n})}}function Toaster(){const{toasts:e}=useToast();return jsxRuntime.jsxs(ToastProvider,{children:[e.map(function({id:t,title:n,description:i,action:o,...l}){return jsxRuntime.jsxs(Toast,{...l,children:[jsxRuntime.jsxs("div",{className:"grid gap-1",children:[n&&jsxRuntime.jsx(ToastTitle,{children:n}),i&&jsxRuntime.jsx(ToastDescription,{children:i})]}),o,jsxRuntime.jsx(ToastClose,{})]},t)}),jsxRuntime.jsx(ToastViewport,{})]})}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var isArray_1,hasRequiredIsArray;function requireIsArray(){if(hasRequiredIsArray)return isArray_1;hasRequiredIsArray=1;var e=Array.isArray;return isArray_1=e,isArray_1}var _freeGlobal,hasRequired_freeGlobal;function require_freeGlobal(){if(hasRequired_freeGlobal)return _freeGlobal;hasRequired_freeGlobal=1;var e=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;return _freeGlobal=e,_freeGlobal}var _root,hasRequired_root;function require_root(){if(hasRequired_root)return _root;hasRequired_root=1;var e=require_freeGlobal(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return _root=n,_root}var _Symbol,hasRequired_Symbol;function require_Symbol(){if(hasRequired_Symbol)return _Symbol;hasRequired_Symbol=1;var e=require_root(),t=e.Symbol;return _Symbol=t,_Symbol}var _getRawTag,hasRequired_getRawTag;function require_getRawTag(){if(hasRequired_getRawTag)return _getRawTag;hasRequired_getRawTag=1;var e=require_Symbol(),t=Object.prototype,n=t.hasOwnProperty,i=t.toString,o=e?e.toStringTag:void 0;function l(u){var f=n.call(u,o),p=u[o];try{u[o]=void 0;var d=!0}catch{}var m=i.call(u);return d&&(f?u[o]=p:delete u[o]),m}return _getRawTag=l,_getRawTag}var _objectToString,hasRequired_objectToString;function require_objectToString(){if(hasRequired_objectToString)return _objectToString;hasRequired_objectToString=1;var e=Object.prototype,t=e.toString;function n(i){return t.call(i)}return _objectToString=n,_objectToString}var _baseGetTag,hasRequired_baseGetTag;function require_baseGetTag(){if(hasRequired_baseGetTag)return _baseGetTag;hasRequired_baseGetTag=1;var e=require_Symbol(),t=require_getRawTag(),n=require_objectToString(),i="[object Null]",o="[object Undefined]",l=e?e.toStringTag:void 0;function u(f){return f==null?f===void 0?o:i:l&&l in Object(f)?t(f):n(f)}return _baseGetTag=u,_baseGetTag}var isObjectLike_1,hasRequiredIsObjectLike;function requireIsObjectLike(){if(hasRequiredIsObjectLike)return isObjectLike_1;hasRequiredIsObjectLike=1;function e(t){return t!=null&&typeof t=="object"}return isObjectLike_1=e,isObjectLike_1}var isSymbol_1,hasRequiredIsSymbol;function requireIsSymbol(){if(hasRequiredIsSymbol)return isSymbol_1;hasRequiredIsSymbol=1;var e=require_baseGetTag(),t=requireIsObjectLike(),n="[object Symbol]";function i(o){return typeof o=="symbol"||t(o)&&e(o)==n}return isSymbol_1=i,isSymbol_1}var _isKey,hasRequired_isKey;function require_isKey(){if(hasRequired_isKey)return _isKey;hasRequired_isKey=1;var e=requireIsArray(),t=requireIsSymbol(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function o(l,u){if(e(l))return!1;var f=typeof l;return f=="number"||f=="symbol"||f=="boolean"||l==null||t(l)?!0:i.test(l)||!n.test(l)||u!=null&&l in Object(u)}return _isKey=o,_isKey}var isObject_1,hasRequiredIsObject;function requireIsObject(){if(hasRequiredIsObject)return isObject_1;hasRequiredIsObject=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return isObject_1=e,isObject_1}var isFunction_1,hasRequiredIsFunction;function requireIsFunction(){if(hasRequiredIsFunction)return isFunction_1;hasRequiredIsFunction=1;var e=require_baseGetTag(),t=requireIsObject(),n="[object AsyncFunction]",i="[object Function]",o="[object GeneratorFunction]",l="[object Proxy]";function u(f){if(!t(f))return!1;var p=e(f);return p==i||p==o||p==n||p==l}return isFunction_1=u,isFunction_1}var _coreJsData,hasRequired_coreJsData;function require_coreJsData(){if(hasRequired_coreJsData)return _coreJsData;hasRequired_coreJsData=1;var e=require_root(),t=e["__core-js_shared__"];return _coreJsData=t,_coreJsData}var _isMasked,hasRequired_isMasked;function require_isMasked(){if(hasRequired_isMasked)return _isMasked;hasRequired_isMasked=1;var e=require_coreJsData(),t=function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function n(i){return!!t&&t in i}return _isMasked=n,_isMasked}var _toSource,hasRequired_toSource;function require_toSource(){if(hasRequired_toSource)return _toSource;hasRequired_toSource=1;var e=Function.prototype,t=e.toString;function n(i){if(i!=null){try{return t.call(i)}catch{}try{return i+""}catch{}}return""}return _toSource=n,_toSource}var _baseIsNative,hasRequired_baseIsNative;function require_baseIsNative(){if(hasRequired_baseIsNative)return _baseIsNative;hasRequired_baseIsNative=1;var e=requireIsFunction(),t=require_isMasked(),n=requireIsObject(),i=require_toSource(),o=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,f=Object.prototype,p=u.toString,d=f.hasOwnProperty,m=RegExp("^"+p.call(d).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(_){if(!n(_)||t(_))return!1;var S=e(_)?m:l;return S.test(i(_))}return _baseIsNative=g,_baseIsNative}var _getValue,hasRequired_getValue;function require_getValue(){if(hasRequired_getValue)return _getValue;hasRequired_getValue=1;function e(t,n){return t==null?void 0:t[n]}return _getValue=e,_getValue}var _getNative,hasRequired_getNative;function require_getNative(){if(hasRequired_getNative)return _getNative;hasRequired_getNative=1;var e=require_baseIsNative(),t=require_getValue();function n(i,o){var l=t(i,o);return e(l)?l:void 0}return _getNative=n,_getNative}var _nativeCreate,hasRequired_nativeCreate;function require_nativeCreate(){if(hasRequired_nativeCreate)return _nativeCreate;hasRequired_nativeCreate=1;var e=require_getNative(),t=e(Object,"create");return _nativeCreate=t,_nativeCreate}var _hashClear,hasRequired_hashClear;function require_hashClear(){if(hasRequired_hashClear)return _hashClear;hasRequired_hashClear=1;var e=require_nativeCreate();function t(){this.__data__=e?e(null):{},this.size=0}return _hashClear=t,_hashClear}var _hashDelete,hasRequired_hashDelete;function require_hashDelete(){if(hasRequired_hashDelete)return _hashDelete;hasRequired_hashDelete=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return _hashDelete=e,_hashDelete}var _hashGet,hasRequired_hashGet;function require_hashGet(){if(hasRequired_hashGet)return _hashGet;hasRequired_hashGet=1;var e=require_nativeCreate(),t="__lodash_hash_undefined__",n=Object.prototype,i=n.hasOwnProperty;function o(l){var u=this.__data__;if(e){var f=u[l];return f===t?void 0:f}return i.call(u,l)?u[l]:void 0}return _hashGet=o,_hashGet}var _hashHas,hasRequired_hashHas;function require_hashHas(){if(hasRequired_hashHas)return _hashHas;hasRequired_hashHas=1;var e=require_nativeCreate(),t=Object.prototype,n=t.hasOwnProperty;function i(o){var l=this.__data__;return e?l[o]!==void 0:n.call(l,o)}return _hashHas=i,_hashHas}var _hashSet,hasRequired_hashSet;function require_hashSet(){if(hasRequired_hashSet)return _hashSet;hasRequired_hashSet=1;var e=require_nativeCreate(),t="__lodash_hash_undefined__";function n(i,o){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=e&&o===void 0?t:o,this}return _hashSet=n,_hashSet}var _Hash,hasRequired_Hash;function require_Hash(){if(hasRequired_Hash)return _Hash;hasRequired_Hash=1;var e=require_hashClear(),t=require_hashDelete(),n=require_hashGet(),i=require_hashHas(),o=require_hashSet();function l(u){var f=-1,p=u==null?0:u.length;for(this.clear();++f<p;){var d=u[f];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=i,l.prototype.set=o,_Hash=l,_Hash}var _listCacheClear,hasRequired_listCacheClear;function require_listCacheClear(){if(hasRequired_listCacheClear)return _listCacheClear;hasRequired_listCacheClear=1;function e(){this.__data__=[],this.size=0}return _listCacheClear=e,_listCacheClear}var eq_1,hasRequiredEq;function requireEq(){if(hasRequiredEq)return eq_1;hasRequiredEq=1;function e(t,n){return t===n||t!==t&&n!==n}return eq_1=e,eq_1}var _assocIndexOf,hasRequired_assocIndexOf;function require_assocIndexOf(){if(hasRequired_assocIndexOf)return _assocIndexOf;hasRequired_assocIndexOf=1;var e=requireEq();function t(n,i){for(var o=n.length;o--;)if(e(n[o][0],i))return o;return-1}return _assocIndexOf=t,_assocIndexOf}var _listCacheDelete,hasRequired_listCacheDelete;function require_listCacheDelete(){if(hasRequired_listCacheDelete)return _listCacheDelete;hasRequired_listCacheDelete=1;var e=require_assocIndexOf(),t=Array.prototype,n=t.splice;function i(o){var l=this.__data__,u=e(l,o);if(u<0)return!1;var f=l.length-1;return u==f?l.pop():n.call(l,u,1),--this.size,!0}return _listCacheDelete=i,_listCacheDelete}var _listCacheGet,hasRequired_listCacheGet;function require_listCacheGet(){if(hasRequired_listCacheGet)return _listCacheGet;hasRequired_listCacheGet=1;var e=require_assocIndexOf();function t(n){var i=this.__data__,o=e(i,n);return o<0?void 0:i[o][1]}return _listCacheGet=t,_listCacheGet}var _listCacheHas,hasRequired_listCacheHas;function require_listCacheHas(){if(hasRequired_listCacheHas)return _listCacheHas;hasRequired_listCacheHas=1;var e=require_assocIndexOf();function t(n){return e(this.__data__,n)>-1}return _listCacheHas=t,_listCacheHas}var _listCacheSet,hasRequired_listCacheSet;function require_listCacheSet(){if(hasRequired_listCacheSet)return _listCacheSet;hasRequired_listCacheSet=1;var e=require_assocIndexOf();function t(n,i){var o=this.__data__,l=e(o,n);return l<0?(++this.size,o.push([n,i])):o[l][1]=i,this}return _listCacheSet=t,_listCacheSet}var _ListCache,hasRequired_ListCache;function require_ListCache(){if(hasRequired_ListCache)return _ListCache;hasRequired_ListCache=1;var e=require_listCacheClear(),t=require_listCacheDelete(),n=require_listCacheGet(),i=require_listCacheHas(),o=require_listCacheSet();function l(u){var f=-1,p=u==null?0:u.length;for(this.clear();++f<p;){var d=u[f];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=i,l.prototype.set=o,_ListCache=l,_ListCache}var _Map,hasRequired_Map;function require_Map(){if(hasRequired_Map)return _Map;hasRequired_Map=1;var e=require_getNative(),t=require_root(),n=e(t,"Map");return _Map=n,_Map}var _mapCacheClear,hasRequired_mapCacheClear;function require_mapCacheClear(){if(hasRequired_mapCacheClear)return _mapCacheClear;hasRequired_mapCacheClear=1;var e=require_Hash(),t=require_ListCache(),n=require_Map();function i(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return _mapCacheClear=i,_mapCacheClear}var _isKeyable,hasRequired_isKeyable;function require_isKeyable(){if(hasRequired_isKeyable)return _isKeyable;hasRequired_isKeyable=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return _isKeyable=e,_isKeyable}var _getMapData,hasRequired_getMapData;function require_getMapData(){if(hasRequired_getMapData)return _getMapData;hasRequired_getMapData=1;var e=require_isKeyable();function t(n,i){var o=n.__data__;return e(i)?o[typeof i=="string"?"string":"hash"]:o.map}return _getMapData=t,_getMapData}var _mapCacheDelete,hasRequired_mapCacheDelete;function require_mapCacheDelete(){if(hasRequired_mapCacheDelete)return _mapCacheDelete;hasRequired_mapCacheDelete=1;var e=require_getMapData();function t(n){var i=e(this,n).delete(n);return this.size-=i?1:0,i}return _mapCacheDelete=t,_mapCacheDelete}var _mapCacheGet,hasRequired_mapCacheGet;function require_mapCacheGet(){if(hasRequired_mapCacheGet)return _mapCacheGet;hasRequired_mapCacheGet=1;var e=require_getMapData();function t(n){return e(this,n).get(n)}return _mapCacheGet=t,_mapCacheGet}var _mapCacheHas,hasRequired_mapCacheHas;function require_mapCacheHas(){if(hasRequired_mapCacheHas)return _mapCacheHas;hasRequired_mapCacheHas=1;var e=require_getMapData();function t(n){return e(this,n).has(n)}return _mapCacheHas=t,_mapCacheHas}var _mapCacheSet,hasRequired_mapCacheSet;function require_mapCacheSet(){if(hasRequired_mapCacheSet)return _mapCacheSet;hasRequired_mapCacheSet=1;var e=require_getMapData();function t(n,i){var o=e(this,n),l=o.size;return o.set(n,i),this.size+=o.size==l?0:1,this}return _mapCacheSet=t,_mapCacheSet}var _MapCache,hasRequired_MapCache;function require_MapCache(){if(hasRequired_MapCache)return _MapCache;hasRequired_MapCache=1;var e=require_mapCacheClear(),t=require_mapCacheDelete(),n=require_mapCacheGet(),i=require_mapCacheHas(),o=require_mapCacheSet();function l(u){var f=-1,p=u==null?0:u.length;for(this.clear();++f<p;){var d=u[f];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=i,l.prototype.set=o,_MapCache=l,_MapCache}var memoize_1,hasRequiredMemoize;function requireMemoize(){if(hasRequiredMemoize)return memoize_1;hasRequiredMemoize=1;var e=require_MapCache(),t="Expected a function";function n(i,o){if(typeof i!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var l=function(){var u=arguments,f=o?o.apply(this,u):u[0],p=l.cache;if(p.has(f))return p.get(f);var d=i.apply(this,u);return l.cache=p.set(f,d)||p,d};return l.cache=new(n.Cache||e),l}return n.Cache=e,memoize_1=n,memoize_1}var _memoizeCapped,hasRequired_memoizeCapped;function require_memoizeCapped(){if(hasRequired_memoizeCapped)return _memoizeCapped;hasRequired_memoizeCapped=1;var e=requireMemoize(),t=500;function n(i){var o=e(i,function(u){return l.size===t&&l.clear(),u}),l=o.cache;return o}return _memoizeCapped=n,_memoizeCapped}var _stringToPath,hasRequired_stringToPath;function require_stringToPath(){if(hasRequired_stringToPath)return _stringToPath;hasRequired_stringToPath=1;var e=require_memoizeCapped(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,i=e(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(t,function(u,f,p,d){l.push(p?d.replace(n,"$1"):f||u)}),l});return _stringToPath=i,_stringToPath}var _arrayMap,hasRequired_arrayMap;function require_arrayMap(){if(hasRequired_arrayMap)return _arrayMap;hasRequired_arrayMap=1;function e(t,n){for(var i=-1,o=t==null?0:t.length,l=Array(o);++i<o;)l[i]=n(t[i],i,t);return l}return _arrayMap=e,_arrayMap}var _baseToString,hasRequired_baseToString;function require_baseToString(){if(hasRequired_baseToString)return _baseToString;hasRequired_baseToString=1;var e=require_Symbol(),t=require_arrayMap(),n=requireIsArray(),i=requireIsSymbol(),o=e?e.prototype:void 0,l=o?o.toString:void 0;function u(f){if(typeof f=="string")return f;if(n(f))return t(f,u)+"";if(i(f))return l?l.call(f):"";var p=f+"";return p=="0"&&1/f==-1/0?"-0":p}return _baseToString=u,_baseToString}var toString_1,hasRequiredToString;function requireToString(){if(hasRequiredToString)return toString_1;hasRequiredToString=1;var e=require_baseToString();function t(n){return n==null?"":e(n)}return toString_1=t,toString_1}var _castPath,hasRequired_castPath;function require_castPath(){if(hasRequired_castPath)return _castPath;hasRequired_castPath=1;var e=requireIsArray(),t=require_isKey(),n=require_stringToPath(),i=requireToString();function o(l,u){return e(l)?l:t(l,u)?[l]:n(i(l))}return _castPath=o,_castPath}var _toKey,hasRequired_toKey;function require_toKey(){if(hasRequired_toKey)return _toKey;hasRequired_toKey=1;var e=requireIsSymbol();function t(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i}return _toKey=t,_toKey}var _baseGet,hasRequired_baseGet;function require_baseGet(){if(hasRequired_baseGet)return _baseGet;hasRequired_baseGet=1;var e=require_castPath(),t=require_toKey();function n(i,o){o=e(o,i);for(var l=0,u=o.length;i!=null&&l<u;)i=i[t(o[l++])];return l&&l==u?i:void 0}return _baseGet=n,_baseGet}var get_1,hasRequiredGet;function requireGet(){if(hasRequiredGet)return get_1;hasRequiredGet=1;var e=require_baseGet();function t(n,i,o){var l=n==null?void 0:e(n,i);return l===void 0?o:l}return get_1=t,get_1}var getExports=requireGet();const get=getDefaultExportFromCjs(getExports);var isNil_1,hasRequiredIsNil;function requireIsNil(){if(hasRequiredIsNil)return isNil_1;hasRequiredIsNil=1;function e(t){return t==null}return isNil_1=e,isNil_1}var isNilExports=requireIsNil();const isNil=getDefaultExportFromCjs(isNilExports);var isString_1,hasRequiredIsString;function requireIsString(){if(hasRequiredIsString)return isString_1;hasRequiredIsString=1;var e=require_baseGetTag(),t=requireIsArray(),n=requireIsObjectLike(),i="[object String]";function o(l){return typeof l=="string"||!t(l)&&n(l)&&e(l)==i}return isString_1=o,isString_1}var isStringExports=requireIsString();const isString=getDefaultExportFromCjs(isStringExports);var isFunctionExports=requireIsFunction();const isFunction=getDefaultExportFromCjs(isFunctionExports);var isObjectExports=requireIsObject();const isObject=getDefaultExportFromCjs(isObjectExports);var reactIs$1={exports:{}},reactIs_production_min$1={};/**
195
+ * @license React
196
+ * react-is.production.min.js
197
+ *
198
+ * Copyright (c) Facebook, Inc. and its affiliates.
199
+ *
200
+ * This source code is licensed under the MIT license found in the
201
+ * LICENSE file in the root directory of this source tree.
202
+ */var hasRequiredReactIs_production_min$1;function requireReactIs_production_min$1(){if(hasRequiredReactIs_production_min$1)return reactIs_production_min$1;hasRequiredReactIs_production_min$1=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function R(b){if(typeof b=="object"&&b!==null){var A=b.$$typeof;switch(A){case e:switch(b=b.type,b){case n:case o:case i:case d:case m:return b;default:switch(b=b&&b.$$typeof,b){case f:case u:case p:case _:case g:case l:return b;default:return A}}case t:return A}}}return reactIs_production_min$1.ContextConsumer=u,reactIs_production_min$1.ContextProvider=l,reactIs_production_min$1.Element=e,reactIs_production_min$1.ForwardRef=p,reactIs_production_min$1.Fragment=n,reactIs_production_min$1.Lazy=_,reactIs_production_min$1.Memo=g,reactIs_production_min$1.Portal=t,reactIs_production_min$1.Profiler=o,reactIs_production_min$1.StrictMode=i,reactIs_production_min$1.Suspense=d,reactIs_production_min$1.SuspenseList=m,reactIs_production_min$1.isAsyncMode=function(){return!1},reactIs_production_min$1.isConcurrentMode=function(){return!1},reactIs_production_min$1.isContextConsumer=function(b){return R(b)===u},reactIs_production_min$1.isContextProvider=function(b){return R(b)===l},reactIs_production_min$1.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},reactIs_production_min$1.isForwardRef=function(b){return R(b)===p},reactIs_production_min$1.isFragment=function(b){return R(b)===n},reactIs_production_min$1.isLazy=function(b){return R(b)===_},reactIs_production_min$1.isMemo=function(b){return R(b)===g},reactIs_production_min$1.isPortal=function(b){return R(b)===t},reactIs_production_min$1.isProfiler=function(b){return R(b)===o},reactIs_production_min$1.isStrictMode=function(b){return R(b)===i},reactIs_production_min$1.isSuspense=function(b){return R(b)===d},reactIs_production_min$1.isSuspenseList=function(b){return R(b)===m},reactIs_production_min$1.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===i||b===d||b===m||b===S||typeof b=="object"&&b!==null&&(b.$$typeof===_||b.$$typeof===g||b.$$typeof===l||b.$$typeof===u||b.$$typeof===p||b.$$typeof===E||b.getModuleId!==void 0)},reactIs_production_min$1.typeOf=R,reactIs_production_min$1}var reactIs_development$1={};/**
203
+ * @license React
204
+ * react-is.development.js
205
+ *
206
+ * Copyright (c) Facebook, Inc. and its affiliates.
207
+ *
208
+ * This source code is licensed under the MIT license found in the
209
+ * LICENSE file in the root directory of this source tree.
210
+ */var hasRequiredReactIs_development$1;function requireReactIs_development$1(){return hasRequiredReactIs_development$1||(hasRequiredReactIs_development$1=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),E=!1,R=!1,b=!1,A=!1,C=!1,O;O=Symbol.for("react.module.reference");function M(J){return!!(typeof J=="string"||typeof J=="function"||J===n||J===o||C||J===i||J===d||J===m||A||J===S||E||R||b||typeof J=="object"&&J!==null&&(J.$$typeof===_||J.$$typeof===g||J.$$typeof===l||J.$$typeof===u||J.$$typeof===p||J.$$typeof===O||J.getModuleId!==void 0))}function T(J){if(typeof J=="object"&&J!==null){var fe=J.$$typeof;switch(fe){case e:var de=J.type;switch(de){case n:case o:case i:case d:case m:return de;default:var me=de&&de.$$typeof;switch(me){case f:case u:case p:case _:case g:case l:return me;default:return fe}}case t:return fe}}}var j=u,I=l,D=e,L=p,F=n,N=_,B=g,z=t,V=o,W=i,U=d,Q=m,q=!1,G=!1;function H(J){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Z(J){return G||(G=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee(J){return T(J)===u}function ne(J){return T(J)===l}function ie(J){return typeof J=="object"&&J!==null&&J.$$typeof===e}function oe(J){return T(J)===p}function ce(J){return T(J)===n}function le(J){return T(J)===_}function ue(J){return T(J)===g}function te(J){return T(J)===t}function se(J){return T(J)===o}function ae(J){return T(J)===i}function K(J){return T(J)===d}function pe(J){return T(J)===m}reactIs_development$1.ContextConsumer=j,reactIs_development$1.ContextProvider=I,reactIs_development$1.Element=D,reactIs_development$1.ForwardRef=L,reactIs_development$1.Fragment=F,reactIs_development$1.Lazy=N,reactIs_development$1.Memo=B,reactIs_development$1.Portal=z,reactIs_development$1.Profiler=V,reactIs_development$1.StrictMode=W,reactIs_development$1.Suspense=U,reactIs_development$1.SuspenseList=Q,reactIs_development$1.isAsyncMode=H,reactIs_development$1.isConcurrentMode=Z,reactIs_development$1.isContextConsumer=ee,reactIs_development$1.isContextProvider=ne,reactIs_development$1.isElement=ie,reactIs_development$1.isForwardRef=oe,reactIs_development$1.isFragment=ce,reactIs_development$1.isLazy=le,reactIs_development$1.isMemo=ue,reactIs_development$1.isPortal=te,reactIs_development$1.isProfiler=se,reactIs_development$1.isStrictMode=ae,reactIs_development$1.isSuspense=K,reactIs_development$1.isSuspenseList=pe,reactIs_development$1.isValidElementType=M,reactIs_development$1.typeOf=T}()),reactIs_development$1}var hasRequiredReactIs$1;function requireReactIs$1(){return hasRequiredReactIs$1||(hasRequiredReactIs$1=1,process.env.NODE_ENV==="production"?reactIs$1.exports=requireReactIs_production_min$1():reactIs$1.exports=requireReactIs_development$1()),reactIs$1.exports}var reactIsExports=requireReactIs$1(),isNumber_1,hasRequiredIsNumber;function requireIsNumber(){if(hasRequiredIsNumber)return isNumber_1;hasRequiredIsNumber=1;var e=require_baseGetTag(),t=requireIsObjectLike(),n="[object Number]";function i(o){return typeof o=="number"||t(o)&&e(o)==n}return isNumber_1=i,isNumber_1}var _isNaN,hasRequired_isNaN;function require_isNaN(){if(hasRequired_isNaN)return _isNaN;hasRequired_isNaN=1;var e=requireIsNumber();function t(n){return e(n)&&n!=+n}return _isNaN=t,_isNaN}var _isNaNExports=require_isNaN();const isNan=getDefaultExportFromCjs(_isNaNExports);var isNumberExports=requireIsNumber();const isNumber$1=getDefaultExportFromCjs(isNumberExports);var mathSign=function(t){return t===0?0:t>0?1:-1},isPercent=function(t){return isString(t)&&t.indexOf("%")===t.length-1},isNumber=function(t){return isNumber$1(t)&&!isNan(t)},isNumOrStr=function(t){return isNumber(t)||isString(t)},idCounter=0,uniqueId=function(t){var n=++idCounter;return"".concat(t||"").concat(n)},getPercentValue=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!isNumber(t)&&!isString(t))return i;var l;if(isPercent(t)){var u=t.indexOf("%");l=n*parseFloat(t.slice(0,u))/100}else l=+t;return isNan(l)&&(l=i),o&&l>n&&(l=n),l},getAnyElementOfObject=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},hasDuplicate=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,i={},o=0;o<n;o++)if(!i[t[o]])i[t[o]]=!0;else return!0;return!1},interpolateNumber$2=function(t,n){return isNumber(t)&&isNumber(n)?function(i){return t+i*(n-t)}:function(){return n}};function findEntryInArray(e,t,n){return!e||!e.length?null:e.find(function(i){return i&&(typeof t=="function"?t(i):get(i,t))===n})}function shallowEqual(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var i in t)if({}.hasOwnProperty.call(t,i)&&!{}.hasOwnProperty.call(e,i))return!1;return!0}function _typeof$J(e){"@babel/helpers - typeof";return _typeof$J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$J(e)}var SVGContainerPropKeys=["viewBox","children"],SVGElementPropKeys=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],PolyElementKeys=["points","pathLength"],FilteredElementKeyMap={svg:SVGContainerPropKeys,polygon:PolyElementKeys,polyline:PolyElementKeys},EventKeys=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],adaptEventHandlers=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(React.isValidElement(t)&&(i=t.props),!isObject(i))return null;var o={};return Object.keys(i).forEach(function(l){EventKeys.includes(l)&&(o[l]=n||function(u){return i[l](i,u)})}),o},getEventHandlerOfChild=function(t,n,i){return function(o){return t(n,i,o),null}},adaptEventsOfChild=function(t,n,i){if(!isObject(t)||_typeof$J(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(l){var u=t[l];EventKeys.includes(l)&&typeof u=="function"&&(o||(o={}),o[l]=getEventHandlerOfChild(u,n,i))}),o},_excluded$h=["children"],_excluded2$6=["children"];function _objectWithoutProperties$h(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$h(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$h(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function _typeof$I(e){"@babel/helpers - typeof";return _typeof$I=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$I(e)}var REACT_BROWSER_EVENT_MAP={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},getDisplayName=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},lastChildren=null,lastResult=null,toArray=function e(t){if(t===lastChildren&&Array.isArray(lastResult))return lastResult;var n=[];return React.Children.forEach(t,function(i){isNil(i)||(reactIsExports.isFragment(i)?n=n.concat(e(i.props.children)):n.push(i))}),lastResult=n,lastChildren=t,n};function findAllByType(e,t){var n=[],i=[];return Array.isArray(t)?i=t.map(function(o){return getDisplayName(o)}):i=[getDisplayName(t)],toArray(e).forEach(function(o){var l=get(o,"type.displayName")||get(o,"type.name");i.indexOf(l)!==-1&&n.push(o)}),n}function findChildByType(e,t){var n=findAllByType(e,t);return n&&n[0]}var validateWidthHeight=function(t){if(!t||!t.props)return!1;var n=t.props,i=n.width,o=n.height;return!(!isNumber(i)||i<=0||!isNumber(o)||o<=0)},SVG_TAGS=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],isSvgElement=function(t){return t&&t.type&&isString(t.type)&&SVG_TAGS.indexOf(t.type)>=0},hasClipDot=function(t){return t&&_typeof$I(t)==="object"&&"clipDot"in t},isValidSpreadableProp=function(t,n,i,o){var l,u=(l=FilteredElementKeyMap==null?void 0:FilteredElementKeyMap[o])!==null&&l!==void 0?l:[];return n.startsWith("data-")||!isFunction(t)&&(o&&u.includes(n)||SVGElementPropKeys.includes(n))||i&&EventKeys.includes(n)},filterProps=function(t,n,i){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(React.isValidElement(t)&&(o=t.props),!isObject(o))return null;var l={};return Object.keys(o).forEach(function(u){var f;isValidSpreadableProp((f=o)===null||f===void 0?void 0:f[u],u,n,i)&&(l[u]=o[u])}),l},isChildrenEqual=function e(t,n){if(t===n)return!0;var i=React.Children.count(t);if(i!==React.Children.count(n))return!1;if(i===0)return!0;if(i===1)return isSingleChildEqual(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<i;o++){var l=t[o],u=n[o];if(Array.isArray(l)||Array.isArray(u)){if(!e(l,u))return!1}else if(!isSingleChildEqual(l,u))return!1}return!0},isSingleChildEqual=function(t,n){if(isNil(t)&&isNil(n))return!0;if(!isNil(t)&&!isNil(n)){var i=t.props||{},o=i.children,l=_objectWithoutProperties$h(i,_excluded$h),u=n.props||{},f=u.children,p=_objectWithoutProperties$h(u,_excluded2$6);return o&&f?shallowEqual(l,p)&&isChildrenEqual(o,f):!o&&!f?shallowEqual(l,p):!1}return!1},renderByOrder=function(t,n){var i=[],o={};return toArray(t).forEach(function(l,u){if(isSvgElement(l))i.push(l);else if(l){var f=getDisplayName(l.type),p=n[f]||{},d=p.handler,m=p.once;if(d&&(!m||!o[f])){var g=d(l,f,u);i.push(g),o[f]=!0}}}),i},getReactEventByType=function(t){var n=t&&t.type;return n&&REACT_BROWSER_EVENT_MAP[n]?REACT_BROWSER_EVENT_MAP[n]:null},parseChildIndex=function(t,n){return toArray(n).indexOf(t)},_excluded$g=["children","width","height","viewBox","className","style","title","desc"];function _extends$q(){return _extends$q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$q.apply(this,arguments)}function _objectWithoutProperties$g(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$g(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$g(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function Surface(e){var t=e.children,n=e.width,i=e.height,o=e.viewBox,l=e.className,u=e.style,f=e.title,p=e.desc,d=_objectWithoutProperties$g(e,_excluded$g),m=o||{width:n,height:i,x:0,y:0},g=clsx("recharts-surface",l);return React.createElement("svg",_extends$q({},filterProps(d,!0,"svg"),{className:g,width:n,height:i,style:u,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height)}),React.createElement("title",null,f),React.createElement("desc",null,p),t)}var _excluded$f=["children","className"];function _extends$p(){return _extends$p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$p.apply(this,arguments)}function _objectWithoutProperties$f(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$f(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$f(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}var Layer=React.forwardRef(function(e,t){var n=e.children,i=e.className,o=_objectWithoutProperties$f(e,_excluded$f),l=clsx("recharts-layer",i);return React.createElement("g",_extends$p({className:l},filterProps(o,!0),{ref:t}),n)}),isDev$1=process.env.NODE_ENV!=="production",warn$1=function(t,n){for(var i=arguments.length,o=new Array(i>2?i-2:0),l=2;l<i;l++)o[l-2]=arguments[l];if(isDev$1&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;console.warn(n.replace(/%s/g,function(){return o[u++]}))}},_baseSlice,hasRequired_baseSlice;function require_baseSlice(){if(hasRequired_baseSlice)return _baseSlice;hasRequired_baseSlice=1;function e(t,n,i){var o=-1,l=t.length;n<0&&(n=-n>l?0:l+n),i=i>l?l:i,i<0&&(i+=l),l=n>i?0:i-n>>>0,n>>>=0;for(var u=Array(l);++o<l;)u[o]=t[o+n];return u}return _baseSlice=e,_baseSlice}var _castSlice,hasRequired_castSlice;function require_castSlice(){if(hasRequired_castSlice)return _castSlice;hasRequired_castSlice=1;var e=require_baseSlice();function t(n,i,o){var l=n.length;return o=o===void 0?l:o,!i&&o>=l?n:e(n,i,o)}return _castSlice=t,_castSlice}var _hasUnicode,hasRequired_hasUnicode;function require_hasUnicode(){if(hasRequired_hasUnicode)return _hasUnicode;hasRequired_hasUnicode=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",o=t+n+i,l="\\ufe0e\\ufe0f",u="\\u200d",f=RegExp("["+u+e+o+l+"]");function p(d){return f.test(d)}return _hasUnicode=p,_hasUnicode}var _asciiToArray,hasRequired_asciiToArray;function require_asciiToArray(){if(hasRequired_asciiToArray)return _asciiToArray;hasRequired_asciiToArray=1;function e(t){return t.split("")}return _asciiToArray=e,_asciiToArray}var _unicodeToArray,hasRequired_unicodeToArray;function require_unicodeToArray(){if(hasRequired_unicodeToArray)return _unicodeToArray;hasRequired_unicodeToArray=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",o=t+n+i,l="\\ufe0e\\ufe0f",u="["+e+"]",f="["+o+"]",p="\\ud83c[\\udffb-\\udfff]",d="(?:"+f+"|"+p+")",m="[^"+e+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",S="\\u200d",E=d+"?",R="["+l+"]?",b="(?:"+S+"(?:"+[m,g,_].join("|")+")"+R+E+")*",A=R+E+b,C="(?:"+[m+f+"?",f,g,_,u].join("|")+")",O=RegExp(p+"(?="+p+")|"+C+A,"g");function M(T){return T.match(O)||[]}return _unicodeToArray=M,_unicodeToArray}var _stringToArray,hasRequired_stringToArray;function require_stringToArray(){if(hasRequired_stringToArray)return _stringToArray;hasRequired_stringToArray=1;var e=require_asciiToArray(),t=require_hasUnicode(),n=require_unicodeToArray();function i(o){return t(o)?n(o):e(o)}return _stringToArray=i,_stringToArray}var _createCaseFirst,hasRequired_createCaseFirst;function require_createCaseFirst(){if(hasRequired_createCaseFirst)return _createCaseFirst;hasRequired_createCaseFirst=1;var e=require_castSlice(),t=require_hasUnicode(),n=require_stringToArray(),i=requireToString();function o(l){return function(u){u=i(u);var f=t(u)?n(u):void 0,p=f?f[0]:u.charAt(0),d=f?e(f,1).join(""):u.slice(1);return p[l]()+d}}return _createCaseFirst=o,_createCaseFirst}var upperFirst_1,hasRequiredUpperFirst;function requireUpperFirst(){if(hasRequiredUpperFirst)return upperFirst_1;hasRequiredUpperFirst=1;var e=require_createCaseFirst(),t=e("toUpperCase");return upperFirst_1=t,upperFirst_1}var upperFirstExports=requireUpperFirst();const upperFirst=getDefaultExportFromCjs(upperFirstExports);function constant$1(e){return function(){return e}}const cos=Math.cos,sin=Math.sin,sqrt$1=Math.sqrt,pi$1=Math.PI,tau$1=2*pi$1,pi=Math.PI,tau=2*pi,epsilon=1e-6,tauEpsilon=tau-epsilon;function append(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function appendRound(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return append;const n=10**t;return function(i){this._+=i[0];for(let o=1,l=i.length;o<l;++o)this._+=Math.round(arguments[o]*n)/n+i[o]}}class Path{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?append:appendRound(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,i,o){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+o}`}bezierCurveTo(t,n,i,o,l,u){this._append`C${+t},${+n},${+i},${+o},${this._x1=+l},${this._y1=+u}`}arcTo(t,n,i,o,l){if(t=+t,n=+n,i=+i,o=+o,l=+l,l<0)throw new Error(`negative radius: ${l}`);let u=this._x1,f=this._y1,p=i-t,d=o-n,m=u-t,g=f-n,_=m*m+g*g;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(_>epsilon)if(!(Math.abs(g*p-d*m)>epsilon)||!l)this._append`L${this._x1=t},${this._y1=n}`;else{let S=i-u,E=o-f,R=p*p+d*d,b=S*S+E*E,A=Math.sqrt(R),C=Math.sqrt(_),O=l*Math.tan((pi-Math.acos((R+_-b)/(2*A*C)))/2),M=O/C,T=O/A;Math.abs(M-1)>epsilon&&this._append`L${t+M*m},${n+M*g}`,this._append`A${l},${l},0,0,${+(g*S>m*E)},${this._x1=t+T*p},${this._y1=n+T*d}`}}arc(t,n,i,o,l,u){if(t=+t,n=+n,i=+i,u=!!u,i<0)throw new Error(`negative radius: ${i}`);let f=i*Math.cos(o),p=i*Math.sin(o),d=t+f,m=n+p,g=1^u,_=u?o-l:l-o;this._x1===null?this._append`M${d},${m}`:(Math.abs(this._x1-d)>epsilon||Math.abs(this._y1-m)>epsilon)&&this._append`L${d},${m}`,i&&(_<0&&(_=_%tau+tau),_>tauEpsilon?this._append`A${i},${i},0,1,${g},${t-f},${n-p}A${i},${i},0,1,${g},${this._x1=d},${this._y1=m}`:_>epsilon&&this._append`A${i},${i},0,${+(_>=pi)},${g},${this._x1=t+i*Math.cos(l)},${this._y1=n+i*Math.sin(l)}`)}rect(t,n,i,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+o}h${-i}Z`}toString(){return this._}}function withPath(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);t=i}return e},()=>new Path(t)}function array(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Linear(e){this._context=e}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function curveLinear(e){return new Linear(e)}function x(e){return e[0]}function y(e){return e[1]}function shapeLine(e,t){var n=constant$1(!0),i=null,o=curveLinear,l=null,u=withPath(f);e=typeof e=="function"?e:e===void 0?x:constant$1(e),t=typeof t=="function"?t:t===void 0?y:constant$1(t);function f(p){var d,m=(p=array(p)).length,g,_=!1,S;for(i==null&&(l=o(S=u())),d=0;d<=m;++d)!(d<m&&n(g=p[d],d,p))===_&&((_=!_)?l.lineStart():l.lineEnd()),_&&l.point(+e(g,d,p),+t(g,d,p));if(S)return l=null,S+""||null}return f.x=function(p){return arguments.length?(e=typeof p=="function"?p:constant$1(+p),f):e},f.y=function(p){return arguments.length?(t=typeof p=="function"?p:constant$1(+p),f):t},f.defined=function(p){return arguments.length?(n=typeof p=="function"?p:constant$1(!!p),f):n},f.curve=function(p){return arguments.length?(o=p,i!=null&&(l=o(i)),f):o},f.context=function(p){return arguments.length?(p==null?i=l=null:l=o(i=p),f):i},f}function shapeArea(e,t,n){var i=null,o=constant$1(!0),l=null,u=curveLinear,f=null,p=withPath(d);e=typeof e=="function"?e:e===void 0?x:constant$1(+e),t=typeof t=="function"?t:constant$1(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?y:constant$1(+n);function d(g){var _,S,E,R=(g=array(g)).length,b,A=!1,C,O=new Array(R),M=new Array(R);for(l==null&&(f=u(C=p())),_=0;_<=R;++_){if(!(_<R&&o(b=g[_],_,g))===A)if(A=!A)S=_,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),E=_-1;E>=S;--E)f.point(O[E],M[E]);f.lineEnd(),f.areaEnd()}A&&(O[_]=+e(b,_,g),M[_]=+t(b,_,g),f.point(i?+i(b,_,g):O[_],n?+n(b,_,g):M[_]))}if(C)return f=null,C+""||null}function m(){return shapeLine().defined(o).curve(u).context(l)}return d.x=function(g){return arguments.length?(e=typeof g=="function"?g:constant$1(+g),i=null,d):e},d.x0=function(g){return arguments.length?(e=typeof g=="function"?g:constant$1(+g),d):e},d.x1=function(g){return arguments.length?(i=g==null?null:typeof g=="function"?g:constant$1(+g),d):i},d.y=function(g){return arguments.length?(t=typeof g=="function"?g:constant$1(+g),n=null,d):t},d.y0=function(g){return arguments.length?(t=typeof g=="function"?g:constant$1(+g),d):t},d.y1=function(g){return arguments.length?(n=g==null?null:typeof g=="function"?g:constant$1(+g),d):n},d.lineX0=d.lineY0=function(){return m().x(e).y(t)},d.lineY1=function(){return m().x(e).y(n)},d.lineX1=function(){return m().x(i).y(t)},d.defined=function(g){return arguments.length?(o=typeof g=="function"?g:constant$1(!!g),d):o},d.curve=function(g){return arguments.length?(u=g,l!=null&&(f=u(l)),d):u},d.context=function(g){return arguments.length?(g==null?l=f=null:f=u(l=g),d):l},d}class Bump{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function bumpX(e){return new Bump(e,!0)}function bumpY(e){return new Bump(e,!1)}const symbolCircle={draw(e,t){const n=sqrt$1(t/pi$1);e.moveTo(n,0),e.arc(0,0,n,0,tau$1)}},symbolCross={draw(e,t){const n=sqrt$1(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},tan30=sqrt$1(1/3),tan30_2=tan30*2,symbolDiamond={draw(e,t){const n=sqrt$1(t/tan30_2),i=n*tan30;e.moveTo(0,-n),e.lineTo(i,0),e.lineTo(0,n),e.lineTo(-i,0),e.closePath()}},symbolSquare={draw(e,t){const n=sqrt$1(t),i=-n/2;e.rect(i,i,n,n)}},ka=.8908130915292852,kr=sin(pi$1/10)/sin(7*pi$1/10),kx=sin(tau$1/10)*kr,ky=-cos(tau$1/10)*kr,symbolStar={draw(e,t){const n=sqrt$1(t*ka),i=kx*n,o=ky*n;e.moveTo(0,-n),e.lineTo(i,o);for(let l=1;l<5;++l){const u=tau$1*l/5,f=cos(u),p=sin(u);e.lineTo(p*n,-f*n),e.lineTo(f*i-p*o,p*i+f*o)}e.closePath()}},sqrt3=sqrt$1(3),symbolTriangle={draw(e,t){const n=-sqrt$1(t/(sqrt3*3));e.moveTo(0,n*2),e.lineTo(-sqrt3*n,-n),e.lineTo(sqrt3*n,-n),e.closePath()}},c=-.5,s=sqrt$1(3)/2,k=1/sqrt$1(12),a=(k/2+1)*3,symbolWye={draw(e,t){const n=sqrt$1(t/a),i=n/2,o=n*k,l=i,u=n*k+n,f=-l,p=u;e.moveTo(i,o),e.lineTo(l,u),e.lineTo(f,p),e.lineTo(c*i-s*o,s*i+c*o),e.lineTo(c*l-s*u,s*l+c*u),e.lineTo(c*f-s*p,s*f+c*p),e.lineTo(c*i+s*o,c*o-s*i),e.lineTo(c*l+s*u,c*u-s*l),e.lineTo(c*f+s*p,c*p-s*f),e.closePath()}};function Symbol$1(e,t){let n=null,i=withPath(o);e=typeof e=="function"?e:constant$1(e||symbolCircle),t=typeof t=="function"?t:constant$1(t===void 0?64:+t);function o(){let l;if(n||(n=l=i()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),l)return n=null,l+""||null}return o.type=function(l){return arguments.length?(e=typeof l=="function"?l:constant$1(l),o):e},o.size=function(l){return arguments.length?(t=typeof l=="function"?l:constant$1(+l),o):t},o.context=function(l){return arguments.length?(n=l??null,o):n},o}function noop(){}function point$2(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Basis(e){this._context=e}Basis.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$2(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasis(e){return new Basis(e)}function BasisClosed(e){this._context=e}BasisClosed.prototype={areaStart:noop,areaEnd:noop,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:point$2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasisClosed(e){return new BasisClosed(e)}function BasisOpen(e){this._context=e}BasisOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:point$2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasisOpen(e){return new BasisOpen(e)}function LinearClosed(e){this._context=e}LinearClosed.prototype={areaStart:noop,areaEnd:noop,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function curveLinearClosed(e){return new LinearClosed(e)}function sign(e){return e<0?-1:1}function slope3(e,t,n){var i=e._x1-e._x0,o=t-e._x1,l=(e._y1-e._y0)/(i||o<0&&-0),u=(n-e._y1)/(o||i<0&&-0),f=(l*o+u*i)/(i+o);return(sign(l)+sign(u))*Math.min(Math.abs(l),Math.abs(u),.5*Math.abs(f))||0}function slope2(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function point$1(e,t,n){var i=e._x0,o=e._y0,l=e._x1,u=e._y1,f=(l-i)/3;e._context.bezierCurveTo(i+f,o+f*t,l-f,u-f*n,l,u)}function MonotoneX(e){this._context=e}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point$1(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,point$1(this,slope2(this,n=slope3(this,e,t)),n);break;default:point$1(this,this._t0,n=slope3(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function MonotoneY(e){this._context=new ReflectContext(e)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(e,t){MonotoneX.prototype.point.call(this,t,e)};function ReflectContext(e){this._context=e}ReflectContext.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,i,o,l){this._context.bezierCurveTo(t,e,i,n,l,o)}};function monotoneX(e){return new MonotoneX(e)}function monotoneY(e){return new MonotoneY(e)}function Natural(e){this._context=e}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var i=controlPoints(e),o=controlPoints(t),l=0,u=1;u<n;++l,++u)this._context.bezierCurveTo(i[0][l],o[0][l],i[1][l],o[1][l],e[u],t[u]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function controlPoints(e){var t,n=e.length-1,i,o=new Array(n),l=new Array(n),u=new Array(n);for(o[0]=0,l[0]=2,u[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,l[t]=4,u[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,l[n-1]=7,u[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)i=o[t]/l[t-1],l[t]-=i,u[t]-=i*u[t-1];for(o[n-1]=u[n-1]/l[n-1],t=n-2;t>=0;--t)o[t]=(u[t]-o[t+1])/l[t];for(l[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)l[t]=2*e[t+1]-o[t+1];return[o,l]}function curveNatural(e){return new Natural(e)}function Step(e,t){this._context=e,this._t=t}Step.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function curveStep(e){return new Step(e,.5)}function stepBefore(e){return new Step(e,0)}function stepAfter(e){return new Step(e,1)}function stackOffsetNone(e,t){if((u=e.length)>1)for(var n=1,i,o,l=e[t[0]],u,f=l.length;n<u;++n)for(o=l,l=e[t[n]],i=0;i<f;++i)l[i][1]+=l[i][0]=isNaN(o[i][1])?o[i][0]:o[i][1]}function stackOrderNone(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function stackValue(e,t){return e[t]}function stackSeries(e){const t=[];return t.key=e,t}function shapeStack(){var e=constant$1([]),t=stackOrderNone,n=stackOffsetNone,i=stackValue;function o(l){var u=Array.from(e.apply(this,arguments),stackSeries),f,p=u.length,d=-1,m;for(const g of l)for(f=0,++d;f<p;++f)(u[f][d]=[0,+i(g,u[f].key,d,l)]).data=g;for(f=0,m=array(t(u));f<p;++f)u[m[f]].index=f;return n(u,m),u}return o.keys=function(l){return arguments.length?(e=typeof l=="function"?l:constant$1(Array.from(l)),o):e},o.value=function(l){return arguments.length?(i=typeof l=="function"?l:constant$1(+l),o):i},o.order=function(l){return arguments.length?(t=l==null?stackOrderNone:typeof l=="function"?l:constant$1(Array.from(l)),o):t},o.offset=function(l){return arguments.length?(n=l??stackOffsetNone,o):n},o}function stackOffsetExpand(e,t){if((i=e.length)>0){for(var n,i,o=0,l=e[0].length,u;o<l;++o){for(u=n=0;n<i;++n)u+=e[n][o][1]||0;if(u)for(n=0;n<i;++n)e[n][o][1]/=u}stackOffsetNone(e,t)}}function stackOffsetSilhouette(e,t){if((o=e.length)>0){for(var n=0,i=e[t[0]],o,l=i.length;n<l;++n){for(var u=0,f=0;u<o;++u)f+=e[u][n][1]||0;i[n][1]+=i[n][0]=-f/2}stackOffsetNone(e,t)}}function stackOffsetWiggle(e,t){if(!(!((u=e.length)>0)||!((l=(o=e[t[0]]).length)>0))){for(var n=0,i=1,o,l,u;i<l;++i){for(var f=0,p=0,d=0;f<u;++f){for(var m=e[t[f]],g=m[i][1]||0,_=m[i-1][1]||0,S=(g-_)/2,E=0;E<f;++E){var R=e[t[E]],b=R[i][1]||0,A=R[i-1][1]||0;S+=b-A}p+=g,d+=S*g}o[i-1][1]+=o[i-1][0]=n,p&&(n-=d/p)}o[i-1][1]+=o[i-1][0]=n,stackOffsetNone(e,t)}}function _typeof$H(e){"@babel/helpers - typeof";return _typeof$H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$H(e)}var _excluded$e=["type","size","sizeType"];function _extends$o(){return _extends$o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$o.apply(this,arguments)}function ownKeys$z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$z(Object(n),!0).forEach(function(i){_defineProperty$F(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$z(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$F(e,t,n){return t=_toPropertyKey$F(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$F(e){var t=_toPrimitive$F(e,"string");return _typeof$H(t)=="symbol"?t:t+""}function _toPrimitive$F(e,t){if(_typeof$H(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$H(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _objectWithoutProperties$e(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$e(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$e(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}var symbolFactories={symbolCircle,symbolCross,symbolDiamond,symbolSquare,symbolStar,symbolTriangle,symbolWye},RADIAN$1=Math.PI/180,getSymbolFactory=function(t){var n="symbol".concat(upperFirst(t));return symbolFactories[n]||symbolCircle},calculateAreaSize=function(t,n,i){if(n==="area")return t;switch(i){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*RADIAN$1;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},registerSymbol=function(t,n){symbolFactories["symbol".concat(upperFirst(t))]=n},Symbols=function(t){var n=t.type,i=n===void 0?"circle":n,o=t.size,l=o===void 0?64:o,u=t.sizeType,f=u===void 0?"area":u,p=_objectWithoutProperties$e(t,_excluded$e),d=_objectSpread$z(_objectSpread$z({},p),{},{type:i,size:l,sizeType:f}),m=function(){var b=getSymbolFactory(i),A=Symbol$1().type(b).size(calculateAreaSize(l,f,i));return A()},g=d.className,_=d.cx,S=d.cy,E=filterProps(d,!0);return _===+_&&S===+S&&l===+l?React.createElement("path",_extends$o({},E,{className:clsx("recharts-symbols",g),transform:"translate(".concat(_,", ").concat(S,")"),d:m()})):null};Symbols.registerSymbol=registerSymbol;function _typeof$G(e){"@babel/helpers - typeof";return _typeof$G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$G(e)}function _extends$n(){return _extends$n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$n.apply(this,arguments)}function ownKeys$y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$y(Object(n),!0).forEach(function(i){_defineProperty$E(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$y(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _classCallCheck$i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$E(i.key),i)}}function _createClass$i(e,t,n){return t&&_defineProperties$i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$e(e,t,n){return t=_getPrototypeOf$f(t),_possibleConstructorReturn$f(e,_isNativeReflectConstruct$f()?Reflect.construct(t,n||[],_getPrototypeOf$f(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$f(e,t){if(t&&(_typeof$G(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$f(e)}function _assertThisInitialized$f(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$f=function(){return!!e})()}function _getPrototypeOf$f(e){return _getPrototypeOf$f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$f(e)}function _inherits$f(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$f(e,t)}function _setPrototypeOf$f(e,t){return _setPrototypeOf$f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf$f(e,t)}function _defineProperty$E(e,t,n){return t=_toPropertyKey$E(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$E(e){var t=_toPrimitive$E(e,"string");return _typeof$G(t)=="symbol"?t:t+""}function _toPrimitive$E(e,t){if(_typeof$G(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$G(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var SIZE=32,DefaultLegendContent=function(e){function t(){return _classCallCheck$i(this,t),_callSuper$e(this,t,arguments)}return _inherits$f(t,e),_createClass$i(t,[{key:"renderIcon",value:function(i){var o=this.props.inactiveColor,l=SIZE/2,u=SIZE/6,f=SIZE/3,p=i.inactive?o:i.color;if(i.type==="plainline")return React.createElement("line",{strokeWidth:4,fill:"none",stroke:p,strokeDasharray:i.payload.strokeDasharray,x1:0,y1:l,x2:SIZE,y2:l,className:"recharts-legend-icon"});if(i.type==="line")return React.createElement("path",{strokeWidth:4,fill:"none",stroke:p,d:"M0,".concat(l,"h").concat(f,`
211
+ A`).concat(u,",").concat(u,",0,1,1,").concat(2*f,",").concat(l,`
212
+ H`).concat(SIZE,"M").concat(2*f,",").concat(l,`
213
+ A`).concat(u,",").concat(u,",0,1,1,").concat(f,",").concat(l),className:"recharts-legend-icon"});if(i.type==="rect")return React.createElement("path",{stroke:"none",fill:p,d:"M0,".concat(SIZE/8,"h").concat(SIZE,"v").concat(SIZE*3/4,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(React.isValidElement(i.legendIcon)){var d=_objectSpread$y({},i);return delete d.legendIcon,React.cloneElement(i.legendIcon,d)}return React.createElement(Symbols,{fill:p,cx:l,cy:l,size:SIZE,sizeType:"diameter",type:i.type})}},{key:"renderItems",value:function(){var i=this,o=this.props,l=o.payload,u=o.iconSize,f=o.layout,p=o.formatter,d=o.inactiveColor,m={x:0,y:0,width:SIZE,height:SIZE},g={display:f==="horizontal"?"inline-block":"block",marginRight:10},_={display:"inline-block",verticalAlign:"middle",marginRight:4};return l.map(function(S,E){var R=S.formatter||p,b=clsx(_defineProperty$E(_defineProperty$E({"recharts-legend-item":!0},"legend-item-".concat(E),!0),"inactive",S.inactive));if(S.type==="none")return null;var A=isFunction(S.value)?null:S.value;warn$1(!isFunction(S.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var C=S.inactive?d:S.color;return React.createElement("li",_extends$n({className:b,style:g,key:"legend-item-".concat(E)},adaptEventsOfChild(i.props,S,E)),React.createElement(Surface,{width:u,height:u,viewBox:m,style:_},i.renderIcon(S)),React.createElement("span",{className:"recharts-legend-item-text",style:{color:C}},R?R(A,S,E):A))})}},{key:"render",value:function(){var i=this.props,o=i.payload,l=i.layout,u=i.align;if(!o||!o.length)return null;var f={padding:0,margin:0,textAlign:l==="horizontal"?u:"left"};return React.createElement("ul",{className:"recharts-default-legend",style:f},this.renderItems())}}])}(React.PureComponent);_defineProperty$E(DefaultLegendContent,"displayName","Legend"),_defineProperty$E(DefaultLegendContent,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var _stackClear,hasRequired_stackClear;function require_stackClear(){if(hasRequired_stackClear)return _stackClear;hasRequired_stackClear=1;var e=require_ListCache();function t(){this.__data__=new e,this.size=0}return _stackClear=t,_stackClear}var _stackDelete,hasRequired_stackDelete;function require_stackDelete(){if(hasRequired_stackDelete)return _stackDelete;hasRequired_stackDelete=1;function e(t){var n=this.__data__,i=n.delete(t);return this.size=n.size,i}return _stackDelete=e,_stackDelete}var _stackGet,hasRequired_stackGet;function require_stackGet(){if(hasRequired_stackGet)return _stackGet;hasRequired_stackGet=1;function e(t){return this.__data__.get(t)}return _stackGet=e,_stackGet}var _stackHas,hasRequired_stackHas;function require_stackHas(){if(hasRequired_stackHas)return _stackHas;hasRequired_stackHas=1;function e(t){return this.__data__.has(t)}return _stackHas=e,_stackHas}var _stackSet,hasRequired_stackSet;function require_stackSet(){if(hasRequired_stackSet)return _stackSet;hasRequired_stackSet=1;var e=require_ListCache(),t=require_Map(),n=require_MapCache(),i=200;function o(l,u){var f=this.__data__;if(f instanceof e){var p=f.__data__;if(!t||p.length<i-1)return p.push([l,u]),this.size=++f.size,this;f=this.__data__=new n(p)}return f.set(l,u),this.size=f.size,this}return _stackSet=o,_stackSet}var _Stack,hasRequired_Stack;function require_Stack(){if(hasRequired_Stack)return _Stack;hasRequired_Stack=1;var e=require_ListCache(),t=require_stackClear(),n=require_stackDelete(),i=require_stackGet(),o=require_stackHas(),l=require_stackSet();function u(f){var p=this.__data__=new e(f);this.size=p.size}return u.prototype.clear=t,u.prototype.delete=n,u.prototype.get=i,u.prototype.has=o,u.prototype.set=l,_Stack=u,_Stack}var _setCacheAdd,hasRequired_setCacheAdd;function require_setCacheAdd(){if(hasRequired_setCacheAdd)return _setCacheAdd;hasRequired_setCacheAdd=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return _setCacheAdd=t,_setCacheAdd}var _setCacheHas,hasRequired_setCacheHas;function require_setCacheHas(){if(hasRequired_setCacheHas)return _setCacheHas;hasRequired_setCacheHas=1;function e(t){return this.__data__.has(t)}return _setCacheHas=e,_setCacheHas}var _SetCache,hasRequired_SetCache;function require_SetCache(){if(hasRequired_SetCache)return _SetCache;hasRequired_SetCache=1;var e=require_MapCache(),t=require_setCacheAdd(),n=require_setCacheHas();function i(o){var l=-1,u=o==null?0:o.length;for(this.__data__=new e;++l<u;)this.add(o[l])}return i.prototype.add=i.prototype.push=t,i.prototype.has=n,_SetCache=i,_SetCache}var _arraySome,hasRequired_arraySome;function require_arraySome(){if(hasRequired_arraySome)return _arraySome;hasRequired_arraySome=1;function e(t,n){for(var i=-1,o=t==null?0:t.length;++i<o;)if(n(t[i],i,t))return!0;return!1}return _arraySome=e,_arraySome}var _cacheHas,hasRequired_cacheHas;function require_cacheHas(){if(hasRequired_cacheHas)return _cacheHas;hasRequired_cacheHas=1;function e(t,n){return t.has(n)}return _cacheHas=e,_cacheHas}var _equalArrays,hasRequired_equalArrays;function require_equalArrays(){if(hasRequired_equalArrays)return _equalArrays;hasRequired_equalArrays=1;var e=require_SetCache(),t=require_arraySome(),n=require_cacheHas(),i=1,o=2;function l(u,f,p,d,m,g){var _=p&i,S=u.length,E=f.length;if(S!=E&&!(_&&E>S))return!1;var R=g.get(u),b=g.get(f);if(R&&b)return R==f&&b==u;var A=-1,C=!0,O=p&o?new e:void 0;for(g.set(u,f),g.set(f,u);++A<S;){var M=u[A],T=f[A];if(d)var j=_?d(T,M,A,f,u,g):d(M,T,A,u,f,g);if(j!==void 0){if(j)continue;C=!1;break}if(O){if(!t(f,function(I,D){if(!n(O,D)&&(M===I||m(M,I,p,d,g)))return O.push(D)})){C=!1;break}}else if(!(M===T||m(M,T,p,d,g))){C=!1;break}}return g.delete(u),g.delete(f),C}return _equalArrays=l,_equalArrays}var _Uint8Array,hasRequired_Uint8Array;function require_Uint8Array(){if(hasRequired_Uint8Array)return _Uint8Array;hasRequired_Uint8Array=1;var e=require_root(),t=e.Uint8Array;return _Uint8Array=t,_Uint8Array}var _mapToArray,hasRequired_mapToArray;function require_mapToArray(){if(hasRequired_mapToArray)return _mapToArray;hasRequired_mapToArray=1;function e(t){var n=-1,i=Array(t.size);return t.forEach(function(o,l){i[++n]=[l,o]}),i}return _mapToArray=e,_mapToArray}var _setToArray,hasRequired_setToArray;function require_setToArray(){if(hasRequired_setToArray)return _setToArray;hasRequired_setToArray=1;function e(t){var n=-1,i=Array(t.size);return t.forEach(function(o){i[++n]=o}),i}return _setToArray=e,_setToArray}var _equalByTag,hasRequired_equalByTag;function require_equalByTag(){if(hasRequired_equalByTag)return _equalByTag;hasRequired_equalByTag=1;var e=require_Symbol(),t=require_Uint8Array(),n=requireEq(),i=require_equalArrays(),o=require_mapToArray(),l=require_setToArray(),u=1,f=2,p="[object Boolean]",d="[object Date]",m="[object Error]",g="[object Map]",_="[object Number]",S="[object RegExp]",E="[object Set]",R="[object String]",b="[object Symbol]",A="[object ArrayBuffer]",C="[object DataView]",O=e?e.prototype:void 0,M=O?O.valueOf:void 0;function T(j,I,D,L,F,N,B){switch(D){case C:if(j.byteLength!=I.byteLength||j.byteOffset!=I.byteOffset)return!1;j=j.buffer,I=I.buffer;case A:return!(j.byteLength!=I.byteLength||!N(new t(j),new t(I)));case p:case d:case _:return n(+j,+I);case m:return j.name==I.name&&j.message==I.message;case S:case R:return j==I+"";case g:var z=o;case E:var V=L&u;if(z||(z=l),j.size!=I.size&&!V)return!1;var W=B.get(j);if(W)return W==I;L|=f,B.set(j,I);var U=i(z(j),z(I),L,F,N,B);return B.delete(j),U;case b:if(M)return M.call(j)==M.call(I)}return!1}return _equalByTag=T,_equalByTag}var _arrayPush,hasRequired_arrayPush;function require_arrayPush(){if(hasRequired_arrayPush)return _arrayPush;hasRequired_arrayPush=1;function e(t,n){for(var i=-1,o=n.length,l=t.length;++i<o;)t[l+i]=n[i];return t}return _arrayPush=e,_arrayPush}var _baseGetAllKeys,hasRequired_baseGetAllKeys;function require_baseGetAllKeys(){if(hasRequired_baseGetAllKeys)return _baseGetAllKeys;hasRequired_baseGetAllKeys=1;var e=require_arrayPush(),t=requireIsArray();function n(i,o,l){var u=o(i);return t(i)?u:e(u,l(i))}return _baseGetAllKeys=n,_baseGetAllKeys}var _arrayFilter,hasRequired_arrayFilter;function require_arrayFilter(){if(hasRequired_arrayFilter)return _arrayFilter;hasRequired_arrayFilter=1;function e(t,n){for(var i=-1,o=t==null?0:t.length,l=0,u=[];++i<o;){var f=t[i];n(f,i,t)&&(u[l++]=f)}return u}return _arrayFilter=e,_arrayFilter}var stubArray_1,hasRequiredStubArray;function requireStubArray(){if(hasRequiredStubArray)return stubArray_1;hasRequiredStubArray=1;function e(){return[]}return stubArray_1=e,stubArray_1}var _getSymbols,hasRequired_getSymbols;function require_getSymbols(){if(hasRequired_getSymbols)return _getSymbols;hasRequired_getSymbols=1;var e=require_arrayFilter(),t=requireStubArray(),n=Object.prototype,i=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,l=o?function(u){return u==null?[]:(u=Object(u),e(o(u),function(f){return i.call(u,f)}))}:t;return _getSymbols=l,_getSymbols}var _baseTimes,hasRequired_baseTimes;function require_baseTimes(){if(hasRequired_baseTimes)return _baseTimes;hasRequired_baseTimes=1;function e(t,n){for(var i=-1,o=Array(t);++i<t;)o[i]=n(i);return o}return _baseTimes=e,_baseTimes}var _baseIsArguments,hasRequired_baseIsArguments;function require_baseIsArguments(){if(hasRequired_baseIsArguments)return _baseIsArguments;hasRequired_baseIsArguments=1;var e=require_baseGetTag(),t=requireIsObjectLike(),n="[object Arguments]";function i(o){return t(o)&&e(o)==n}return _baseIsArguments=i,_baseIsArguments}var isArguments_1,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments_1;hasRequiredIsArguments=1;var e=require_baseIsArguments(),t=requireIsObjectLike(),n=Object.prototype,i=n.hasOwnProperty,o=n.propertyIsEnumerable,l=e(function(){return arguments}())?e:function(u){return t(u)&&i.call(u,"callee")&&!o.call(u,"callee")};return isArguments_1=l,isArguments_1}var isBuffer={exports:{}},stubFalse_1,hasRequiredStubFalse;function requireStubFalse(){if(hasRequiredStubFalse)return stubFalse_1;hasRequiredStubFalse=1;function e(){return!1}return stubFalse_1=e,stubFalse_1}isBuffer.exports;var hasRequiredIsBuffer;function requireIsBuffer(){return hasRequiredIsBuffer||(hasRequiredIsBuffer=1,function(e,t){var n=require_root(),i=requireStubFalse(),o=t&&!t.nodeType&&t,l=o&&!0&&e&&!e.nodeType&&e,u=l&&l.exports===o,f=u?n.Buffer:void 0,p=f?f.isBuffer:void 0,d=p||i;e.exports=d}(isBuffer,isBuffer.exports)),isBuffer.exports}var _isIndex,hasRequired_isIndex;function require_isIndex(){if(hasRequired_isIndex)return _isIndex;hasRequired_isIndex=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(i,o){var l=typeof i;return o=o??e,!!o&&(l=="number"||l!="symbol"&&t.test(i))&&i>-1&&i%1==0&&i<o}return _isIndex=n,_isIndex}var isLength_1,hasRequiredIsLength;function requireIsLength(){if(hasRequiredIsLength)return isLength_1;hasRequiredIsLength=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return isLength_1=t,isLength_1}var _baseIsTypedArray,hasRequired_baseIsTypedArray;function require_baseIsTypedArray(){if(hasRequired_baseIsTypedArray)return _baseIsTypedArray;hasRequired_baseIsTypedArray=1;var e=require_baseGetTag(),t=requireIsLength(),n=requireIsObjectLike(),i="[object Arguments]",o="[object Array]",l="[object Boolean]",u="[object Date]",f="[object Error]",p="[object Function]",d="[object Map]",m="[object Number]",g="[object Object]",_="[object RegExp]",S="[object Set]",E="[object String]",R="[object WeakMap]",b="[object ArrayBuffer]",A="[object DataView]",C="[object Float32Array]",O="[object Float64Array]",M="[object Int8Array]",T="[object Int16Array]",j="[object Int32Array]",I="[object Uint8Array]",D="[object Uint8ClampedArray]",L="[object Uint16Array]",F="[object Uint32Array]",N={};N[C]=N[O]=N[M]=N[T]=N[j]=N[I]=N[D]=N[L]=N[F]=!0,N[i]=N[o]=N[b]=N[l]=N[A]=N[u]=N[f]=N[p]=N[d]=N[m]=N[g]=N[_]=N[S]=N[E]=N[R]=!1;function B(z){return n(z)&&t(z.length)&&!!N[e(z)]}return _baseIsTypedArray=B,_baseIsTypedArray}var _baseUnary,hasRequired_baseUnary;function require_baseUnary(){if(hasRequired_baseUnary)return _baseUnary;hasRequired_baseUnary=1;function e(t){return function(n){return t(n)}}return _baseUnary=e,_baseUnary}var _nodeUtil={exports:{}};_nodeUtil.exports;var hasRequired_nodeUtil;function require_nodeUtil(){return hasRequired_nodeUtil||(hasRequired_nodeUtil=1,function(e,t){var n=require_freeGlobal(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===i,u=l&&n.process,f=function(){try{var p=o&&o.require&&o.require("util").types;return p||u&&u.binding&&u.binding("util")}catch{}}();e.exports=f}(_nodeUtil,_nodeUtil.exports)),_nodeUtil.exports}var isTypedArray_1,hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray_1;hasRequiredIsTypedArray=1;var e=require_baseIsTypedArray(),t=require_baseUnary(),n=require_nodeUtil(),i=n&&n.isTypedArray,o=i?t(i):e;return isTypedArray_1=o,isTypedArray_1}var _arrayLikeKeys,hasRequired_arrayLikeKeys;function require_arrayLikeKeys(){if(hasRequired_arrayLikeKeys)return _arrayLikeKeys;hasRequired_arrayLikeKeys=1;var e=require_baseTimes(),t=requireIsArguments(),n=requireIsArray(),i=requireIsBuffer(),o=require_isIndex(),l=requireIsTypedArray(),u=Object.prototype,f=u.hasOwnProperty;function p(d,m){var g=n(d),_=!g&&t(d),S=!g&&!_&&i(d),E=!g&&!_&&!S&&l(d),R=g||_||S||E,b=R?e(d.length,String):[],A=b.length;for(var C in d)(m||f.call(d,C))&&!(R&&(C=="length"||S&&(C=="offset"||C=="parent")||E&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||o(C,A)))&&b.push(C);return b}return _arrayLikeKeys=p,_arrayLikeKeys}var _isPrototype,hasRequired_isPrototype;function require_isPrototype(){if(hasRequired_isPrototype)return _isPrototype;hasRequired_isPrototype=1;var e=Object.prototype;function t(n){var i=n&&n.constructor,o=typeof i=="function"&&i.prototype||e;return n===o}return _isPrototype=t,_isPrototype}var _overArg,hasRequired_overArg;function require_overArg(){if(hasRequired_overArg)return _overArg;hasRequired_overArg=1;function e(t,n){return function(i){return t(n(i))}}return _overArg=e,_overArg}var _nativeKeys,hasRequired_nativeKeys;function require_nativeKeys(){if(hasRequired_nativeKeys)return _nativeKeys;hasRequired_nativeKeys=1;var e=require_overArg(),t=e(Object.keys,Object);return _nativeKeys=t,_nativeKeys}var _baseKeys,hasRequired_baseKeys;function require_baseKeys(){if(hasRequired_baseKeys)return _baseKeys;hasRequired_baseKeys=1;var e=require_isPrototype(),t=require_nativeKeys(),n=Object.prototype,i=n.hasOwnProperty;function o(l){if(!e(l))return t(l);var u=[];for(var f in Object(l))i.call(l,f)&&f!="constructor"&&u.push(f);return u}return _baseKeys=o,_baseKeys}var isArrayLike_1,hasRequiredIsArrayLike;function requireIsArrayLike(){if(hasRequiredIsArrayLike)return isArrayLike_1;hasRequiredIsArrayLike=1;var e=requireIsFunction(),t=requireIsLength();function n(i){return i!=null&&t(i.length)&&!e(i)}return isArrayLike_1=n,isArrayLike_1}var keys_1,hasRequiredKeys;function requireKeys(){if(hasRequiredKeys)return keys_1;hasRequiredKeys=1;var e=require_arrayLikeKeys(),t=require_baseKeys(),n=requireIsArrayLike();function i(o){return n(o)?e(o):t(o)}return keys_1=i,keys_1}var _getAllKeys,hasRequired_getAllKeys;function require_getAllKeys(){if(hasRequired_getAllKeys)return _getAllKeys;hasRequired_getAllKeys=1;var e=require_baseGetAllKeys(),t=require_getSymbols(),n=requireKeys();function i(o){return e(o,n,t)}return _getAllKeys=i,_getAllKeys}var _equalObjects,hasRequired_equalObjects;function require_equalObjects(){if(hasRequired_equalObjects)return _equalObjects;hasRequired_equalObjects=1;var e=require_getAllKeys(),t=1,n=Object.prototype,i=n.hasOwnProperty;function o(l,u,f,p,d,m){var g=f&t,_=e(l),S=_.length,E=e(u),R=E.length;if(S!=R&&!g)return!1;for(var b=S;b--;){var A=_[b];if(!(g?A in u:i.call(u,A)))return!1}var C=m.get(l),O=m.get(u);if(C&&O)return C==u&&O==l;var M=!0;m.set(l,u),m.set(u,l);for(var T=g;++b<S;){A=_[b];var j=l[A],I=u[A];if(p)var D=g?p(I,j,A,u,l,m):p(j,I,A,l,u,m);if(!(D===void 0?j===I||d(j,I,f,p,m):D)){M=!1;break}T||(T=A=="constructor")}if(M&&!T){var L=l.constructor,F=u.constructor;L!=F&&"constructor"in l&&"constructor"in u&&!(typeof L=="function"&&L instanceof L&&typeof F=="function"&&F instanceof F)&&(M=!1)}return m.delete(l),m.delete(u),M}return _equalObjects=o,_equalObjects}var _DataView,hasRequired_DataView;function require_DataView(){if(hasRequired_DataView)return _DataView;hasRequired_DataView=1;var e=require_getNative(),t=require_root(),n=e(t,"DataView");return _DataView=n,_DataView}var _Promise,hasRequired_Promise;function require_Promise(){if(hasRequired_Promise)return _Promise;hasRequired_Promise=1;var e=require_getNative(),t=require_root(),n=e(t,"Promise");return _Promise=n,_Promise}var _Set,hasRequired_Set;function require_Set(){if(hasRequired_Set)return _Set;hasRequired_Set=1;var e=require_getNative(),t=require_root(),n=e(t,"Set");return _Set=n,_Set}var _WeakMap,hasRequired_WeakMap;function require_WeakMap(){if(hasRequired_WeakMap)return _WeakMap;hasRequired_WeakMap=1;var e=require_getNative(),t=require_root(),n=e(t,"WeakMap");return _WeakMap=n,_WeakMap}var _getTag,hasRequired_getTag;function require_getTag(){if(hasRequired_getTag)return _getTag;hasRequired_getTag=1;var e=require_DataView(),t=require_Map(),n=require_Promise(),i=require_Set(),o=require_WeakMap(),l=require_baseGetTag(),u=require_toSource(),f="[object Map]",p="[object Object]",d="[object Promise]",m="[object Set]",g="[object WeakMap]",_="[object DataView]",S=u(e),E=u(t),R=u(n),b=u(i),A=u(o),C=l;return(e&&C(new e(new ArrayBuffer(1)))!=_||t&&C(new t)!=f||n&&C(n.resolve())!=d||i&&C(new i)!=m||o&&C(new o)!=g)&&(C=function(O){var M=l(O),T=M==p?O.constructor:void 0,j=T?u(T):"";if(j)switch(j){case S:return _;case E:return f;case R:return d;case b:return m;case A:return g}return M}),_getTag=C,_getTag}var _baseIsEqualDeep,hasRequired_baseIsEqualDeep;function require_baseIsEqualDeep(){if(hasRequired_baseIsEqualDeep)return _baseIsEqualDeep;hasRequired_baseIsEqualDeep=1;var e=require_Stack(),t=require_equalArrays(),n=require_equalByTag(),i=require_equalObjects(),o=require_getTag(),l=requireIsArray(),u=requireIsBuffer(),f=requireIsTypedArray(),p=1,d="[object Arguments]",m="[object Array]",g="[object Object]",_=Object.prototype,S=_.hasOwnProperty;function E(R,b,A,C,O,M){var T=l(R),j=l(b),I=T?m:o(R),D=j?m:o(b);I=I==d?g:I,D=D==d?g:D;var L=I==g,F=D==g,N=I==D;if(N&&u(R)){if(!u(b))return!1;T=!0,L=!1}if(N&&!L)return M||(M=new e),T||f(R)?t(R,b,A,C,O,M):n(R,b,I,A,C,O,M);if(!(A&p)){var B=L&&S.call(R,"__wrapped__"),z=F&&S.call(b,"__wrapped__");if(B||z){var V=B?R.value():R,W=z?b.value():b;return M||(M=new e),O(V,W,A,C,M)}}return N?(M||(M=new e),i(R,b,A,C,O,M)):!1}return _baseIsEqualDeep=E,_baseIsEqualDeep}var _baseIsEqual,hasRequired_baseIsEqual;function require_baseIsEqual(){if(hasRequired_baseIsEqual)return _baseIsEqual;hasRequired_baseIsEqual=1;var e=require_baseIsEqualDeep(),t=requireIsObjectLike();function n(i,o,l,u,f){return i===o?!0:i==null||o==null||!t(i)&&!t(o)?i!==i&&o!==o:e(i,o,l,u,n,f)}return _baseIsEqual=n,_baseIsEqual}var _baseIsMatch,hasRequired_baseIsMatch;function require_baseIsMatch(){if(hasRequired_baseIsMatch)return _baseIsMatch;hasRequired_baseIsMatch=1;var e=require_Stack(),t=require_baseIsEqual(),n=1,i=2;function o(l,u,f,p){var d=f.length,m=d,g=!p;if(l==null)return!m;for(l=Object(l);d--;){var _=f[d];if(g&&_[2]?_[1]!==l[_[0]]:!(_[0]in l))return!1}for(;++d<m;){_=f[d];var S=_[0],E=l[S],R=_[1];if(g&&_[2]){if(E===void 0&&!(S in l))return!1}else{var b=new e;if(p)var A=p(E,R,S,l,u,b);if(!(A===void 0?t(R,E,n|i,p,b):A))return!1}}return!0}return _baseIsMatch=o,_baseIsMatch}var _isStrictComparable,hasRequired_isStrictComparable;function require_isStrictComparable(){if(hasRequired_isStrictComparable)return _isStrictComparable;hasRequired_isStrictComparable=1;var e=requireIsObject();function t(n){return n===n&&!e(n)}return _isStrictComparable=t,_isStrictComparable}var _getMatchData,hasRequired_getMatchData;function require_getMatchData(){if(hasRequired_getMatchData)return _getMatchData;hasRequired_getMatchData=1;var e=require_isStrictComparable(),t=requireKeys();function n(i){for(var o=t(i),l=o.length;l--;){var u=o[l],f=i[u];o[l]=[u,f,e(f)]}return o}return _getMatchData=n,_getMatchData}var _matchesStrictComparable,hasRequired_matchesStrictComparable;function require_matchesStrictComparable(){if(hasRequired_matchesStrictComparable)return _matchesStrictComparable;hasRequired_matchesStrictComparable=1;function e(t,n){return function(i){return i==null?!1:i[t]===n&&(n!==void 0||t in Object(i))}}return _matchesStrictComparable=e,_matchesStrictComparable}var _baseMatches,hasRequired_baseMatches;function require_baseMatches(){if(hasRequired_baseMatches)return _baseMatches;hasRequired_baseMatches=1;var e=require_baseIsMatch(),t=require_getMatchData(),n=require_matchesStrictComparable();function i(o){var l=t(o);return l.length==1&&l[0][2]?n(l[0][0],l[0][1]):function(u){return u===o||e(u,o,l)}}return _baseMatches=i,_baseMatches}var _baseHasIn,hasRequired_baseHasIn;function require_baseHasIn(){if(hasRequired_baseHasIn)return _baseHasIn;hasRequired_baseHasIn=1;function e(t,n){return t!=null&&n in Object(t)}return _baseHasIn=e,_baseHasIn}var _hasPath,hasRequired_hasPath;function require_hasPath(){if(hasRequired_hasPath)return _hasPath;hasRequired_hasPath=1;var e=require_castPath(),t=requireIsArguments(),n=requireIsArray(),i=require_isIndex(),o=requireIsLength(),l=require_toKey();function u(f,p,d){p=e(p,f);for(var m=-1,g=p.length,_=!1;++m<g;){var S=l(p[m]);if(!(_=f!=null&&d(f,S)))break;f=f[S]}return _||++m!=g?_:(g=f==null?0:f.length,!!g&&o(g)&&i(S,g)&&(n(f)||t(f)))}return _hasPath=u,_hasPath}var hasIn_1,hasRequiredHasIn;function requireHasIn(){if(hasRequiredHasIn)return hasIn_1;hasRequiredHasIn=1;var e=require_baseHasIn(),t=require_hasPath();function n(i,o){return i!=null&&t(i,o,e)}return hasIn_1=n,hasIn_1}var _baseMatchesProperty,hasRequired_baseMatchesProperty;function require_baseMatchesProperty(){if(hasRequired_baseMatchesProperty)return _baseMatchesProperty;hasRequired_baseMatchesProperty=1;var e=require_baseIsEqual(),t=requireGet(),n=requireHasIn(),i=require_isKey(),o=require_isStrictComparable(),l=require_matchesStrictComparable(),u=require_toKey(),f=1,p=2;function d(m,g){return i(m)&&o(g)?l(u(m),g):function(_){var S=t(_,m);return S===void 0&&S===g?n(_,m):e(g,S,f|p)}}return _baseMatchesProperty=d,_baseMatchesProperty}var identity_1,hasRequiredIdentity;function requireIdentity(){if(hasRequiredIdentity)return identity_1;hasRequiredIdentity=1;function e(t){return t}return identity_1=e,identity_1}var _baseProperty,hasRequired_baseProperty;function require_baseProperty(){if(hasRequired_baseProperty)return _baseProperty;hasRequired_baseProperty=1;function e(t){return function(n){return n==null?void 0:n[t]}}return _baseProperty=e,_baseProperty}var _basePropertyDeep,hasRequired_basePropertyDeep;function require_basePropertyDeep(){if(hasRequired_basePropertyDeep)return _basePropertyDeep;hasRequired_basePropertyDeep=1;var e=require_baseGet();function t(n){return function(i){return e(i,n)}}return _basePropertyDeep=t,_basePropertyDeep}var property_1,hasRequiredProperty;function requireProperty(){if(hasRequiredProperty)return property_1;hasRequiredProperty=1;var e=require_baseProperty(),t=require_basePropertyDeep(),n=require_isKey(),i=require_toKey();function o(l){return n(l)?e(i(l)):t(l)}return property_1=o,property_1}var _baseIteratee,hasRequired_baseIteratee;function require_baseIteratee(){if(hasRequired_baseIteratee)return _baseIteratee;hasRequired_baseIteratee=1;var e=require_baseMatches(),t=require_baseMatchesProperty(),n=requireIdentity(),i=requireIsArray(),o=requireProperty();function l(u){return typeof u=="function"?u:u==null?n:typeof u=="object"?i(u)?t(u[0],u[1]):e(u):o(u)}return _baseIteratee=l,_baseIteratee}var _baseFindIndex,hasRequired_baseFindIndex;function require_baseFindIndex(){if(hasRequired_baseFindIndex)return _baseFindIndex;hasRequired_baseFindIndex=1;function e(t,n,i,o){for(var l=t.length,u=i+(o?1:-1);o?u--:++u<l;)if(n(t[u],u,t))return u;return-1}return _baseFindIndex=e,_baseFindIndex}var _baseIsNaN,hasRequired_baseIsNaN;function require_baseIsNaN(){if(hasRequired_baseIsNaN)return _baseIsNaN;hasRequired_baseIsNaN=1;function e(t){return t!==t}return _baseIsNaN=e,_baseIsNaN}var _strictIndexOf,hasRequired_strictIndexOf;function require_strictIndexOf(){if(hasRequired_strictIndexOf)return _strictIndexOf;hasRequired_strictIndexOf=1;function e(t,n,i){for(var o=i-1,l=t.length;++o<l;)if(t[o]===n)return o;return-1}return _strictIndexOf=e,_strictIndexOf}var _baseIndexOf,hasRequired_baseIndexOf;function require_baseIndexOf(){if(hasRequired_baseIndexOf)return _baseIndexOf;hasRequired_baseIndexOf=1;var e=require_baseFindIndex(),t=require_baseIsNaN(),n=require_strictIndexOf();function i(o,l,u){return l===l?n(o,l,u):e(o,t,u)}return _baseIndexOf=i,_baseIndexOf}var _arrayIncludes,hasRequired_arrayIncludes;function require_arrayIncludes(){if(hasRequired_arrayIncludes)return _arrayIncludes;hasRequired_arrayIncludes=1;var e=require_baseIndexOf();function t(n,i){var o=n==null?0:n.length;return!!o&&e(n,i,0)>-1}return _arrayIncludes=t,_arrayIncludes}var _arrayIncludesWith,hasRequired_arrayIncludesWith;function require_arrayIncludesWith(){if(hasRequired_arrayIncludesWith)return _arrayIncludesWith;hasRequired_arrayIncludesWith=1;function e(t,n,i){for(var o=-1,l=t==null?0:t.length;++o<l;)if(i(n,t[o]))return!0;return!1}return _arrayIncludesWith=e,_arrayIncludesWith}var noop_1,hasRequiredNoop;function requireNoop(){if(hasRequiredNoop)return noop_1;hasRequiredNoop=1;function e(){}return noop_1=e,noop_1}var _createSet,hasRequired_createSet;function require_createSet(){if(hasRequired_createSet)return _createSet;hasRequired_createSet=1;var e=require_Set(),t=requireNoop(),n=require_setToArray(),i=1/0,o=e&&1/n(new e([,-0]))[1]==i?function(l){return new e(l)}:t;return _createSet=o,_createSet}var _baseUniq,hasRequired_baseUniq;function require_baseUniq(){if(hasRequired_baseUniq)return _baseUniq;hasRequired_baseUniq=1;var e=require_SetCache(),t=require_arrayIncludes(),n=require_arrayIncludesWith(),i=require_cacheHas(),o=require_createSet(),l=require_setToArray(),u=200;function f(p,d,m){var g=-1,_=t,S=p.length,E=!0,R=[],b=R;if(m)E=!1,_=n;else if(S>=u){var A=d?null:o(p);if(A)return l(A);E=!1,_=i,b=new e}else b=d?[]:R;e:for(;++g<S;){var C=p[g],O=d?d(C):C;if(C=m||C!==0?C:0,E&&O===O){for(var M=b.length;M--;)if(b[M]===O)continue e;d&&b.push(O),R.push(C)}else _(b,O,m)||(b!==R&&b.push(O),R.push(C))}return R}return _baseUniq=f,_baseUniq}var uniqBy_1,hasRequiredUniqBy;function requireUniqBy(){if(hasRequiredUniqBy)return uniqBy_1;hasRequiredUniqBy=1;var e=require_baseIteratee(),t=require_baseUniq();function n(i,o){return i&&i.length?t(i,e(o,2)):[]}return uniqBy_1=n,uniqBy_1}var uniqByExports=requireUniqBy();const uniqBy=getDefaultExportFromCjs(uniqByExports);function getUniqPayload(e,t,n){return t===!0?uniqBy(e,n):isFunction(t)?uniqBy(e,t):e}function _typeof$F(e){"@babel/helpers - typeof";return _typeof$F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$F(e)}var _excluded$d=["ref"];function ownKeys$x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$x(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$x(Object(n),!0).forEach(function(i){_defineProperty$D(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$x(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _classCallCheck$h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$D(i.key),i)}}function _createClass$h(e,t,n){return t&&_defineProperties$h(e.prototype,t),n&&_defineProperties$h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$d(e,t,n){return t=_getPrototypeOf$e(t),_possibleConstructorReturn$e(e,_isNativeReflectConstruct$e()?Reflect.construct(t,n||[],_getPrototypeOf$e(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$e(e,t){if(t&&(_typeof$F(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$e(e)}function _assertThisInitialized$e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$e=function(){return!!e})()}function _getPrototypeOf$e(e){return _getPrototypeOf$e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$e(e)}function _inherits$e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$e(e,t)}function _setPrototypeOf$e(e,t){return _setPrototypeOf$e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf$e(e,t)}function _defineProperty$D(e,t,n){return t=_toPropertyKey$D(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$D(e){var t=_toPrimitive$D(e,"string");return _typeof$F(t)=="symbol"?t:t+""}function _toPrimitive$D(e,t){if(_typeof$F(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$F(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function _objectWithoutProperties$d(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$d(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$d(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function defaultUniqBy$1(e){return e.value}function renderContent$1(e,t){if(React.isValidElement(e))return React.cloneElement(e,t);if(typeof e=="function")return React.createElement(e,t);t.ref;var n=_objectWithoutProperties$d(t,_excluded$d);return React.createElement(DefaultLegendContent,n)}var EPS$1=1,Legend=function(e){function t(){var n;_classCallCheck$h(this,t);for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return n=_callSuper$d(this,t,[].concat(o)),_defineProperty$D(n,"lastBoundingBox",{width:-1,height:-1}),n}return _inherits$e(t,e),_createClass$h(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();return i.height=this.wrapperNode.offsetHeight,i.width=this.wrapperNode.offsetWidth,i}return null}},{key:"updateBBox",value:function(){var i=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>EPS$1||Math.abs(o.height-this.lastBoundingBox.height)>EPS$1)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,i&&i(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,i&&i(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?_objectSpread$x({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(i){var o=this.props,l=o.layout,u=o.align,f=o.verticalAlign,p=o.margin,d=o.chartWidth,m=o.chartHeight,g,_;if(!i||(i.left===void 0||i.left===null)&&(i.right===void 0||i.right===null))if(u==="center"&&l==="vertical"){var S=this.getBBoxSnapshot();g={left:((d||0)-S.width)/2}}else g=u==="right"?{right:p&&p.right||0}:{left:p&&p.left||0};if(!i||(i.top===void 0||i.top===null)&&(i.bottom===void 0||i.bottom===null))if(f==="middle"){var E=this.getBBoxSnapshot();_={top:((m||0)-E.height)/2}}else _=f==="bottom"?{bottom:p&&p.bottom||0}:{top:p&&p.top||0};return _objectSpread$x(_objectSpread$x({},g),_)}},{key:"render",value:function(){var i=this,o=this.props,l=o.content,u=o.width,f=o.height,p=o.wrapperStyle,d=o.payloadUniqBy,m=o.payload,g=_objectSpread$x(_objectSpread$x({position:"absolute",width:u||"auto",height:f||"auto"},this.getDefaultPosition(p)),p);return React.createElement("div",{className:"recharts-legend-wrapper",style:g,ref:function(S){i.wrapperNode=S}},renderContent$1(l,_objectSpread$x(_objectSpread$x({},this.props),{},{payload:getUniqPayload(m,d,defaultUniqBy$1)})))}}],[{key:"getWithHeight",value:function(i,o){var l=_objectSpread$x(_objectSpread$x({},this.defaultProps),i.props),u=l.layout;return u==="vertical"&&isNumber(i.props.height)?{height:i.props.height}:u==="horizontal"?{width:i.props.width||o}:null}}])}(React.PureComponent);_defineProperty$D(Legend,"displayName","Legend"),_defineProperty$D(Legend,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var _isFlattenable,hasRequired_isFlattenable;function require_isFlattenable(){if(hasRequired_isFlattenable)return _isFlattenable;hasRequired_isFlattenable=1;var e=require_Symbol(),t=requireIsArguments(),n=requireIsArray(),i=e?e.isConcatSpreadable:void 0;function o(l){return n(l)||t(l)||!!(i&&l&&l[i])}return _isFlattenable=o,_isFlattenable}var _baseFlatten,hasRequired_baseFlatten;function require_baseFlatten(){if(hasRequired_baseFlatten)return _baseFlatten;hasRequired_baseFlatten=1;var e=require_arrayPush(),t=require_isFlattenable();function n(i,o,l,u,f){var p=-1,d=i.length;for(l||(l=t),f||(f=[]);++p<d;){var m=i[p];o>0&&l(m)?o>1?n(m,o-1,l,u,f):e(f,m):u||(f[f.length]=m)}return f}return _baseFlatten=n,_baseFlatten}var _createBaseFor,hasRequired_createBaseFor;function require_createBaseFor(){if(hasRequired_createBaseFor)return _createBaseFor;hasRequired_createBaseFor=1;function e(t){return function(n,i,o){for(var l=-1,u=Object(n),f=o(n),p=f.length;p--;){var d=f[t?p:++l];if(i(u[d],d,u)===!1)break}return n}}return _createBaseFor=e,_createBaseFor}var _baseFor,hasRequired_baseFor;function require_baseFor(){if(hasRequired_baseFor)return _baseFor;hasRequired_baseFor=1;var e=require_createBaseFor(),t=e();return _baseFor=t,_baseFor}var _baseForOwn,hasRequired_baseForOwn;function require_baseForOwn(){if(hasRequired_baseForOwn)return _baseForOwn;hasRequired_baseForOwn=1;var e=require_baseFor(),t=requireKeys();function n(i,o){return i&&e(i,o,t)}return _baseForOwn=n,_baseForOwn}var _createBaseEach,hasRequired_createBaseEach;function require_createBaseEach(){if(hasRequired_createBaseEach)return _createBaseEach;hasRequired_createBaseEach=1;var e=requireIsArrayLike();function t(n,i){return function(o,l){if(o==null)return o;if(!e(o))return n(o,l);for(var u=o.length,f=i?u:-1,p=Object(o);(i?f--:++f<u)&&l(p[f],f,p)!==!1;);return o}}return _createBaseEach=t,_createBaseEach}var _baseEach,hasRequired_baseEach;function require_baseEach(){if(hasRequired_baseEach)return _baseEach;hasRequired_baseEach=1;var e=require_baseForOwn(),t=require_createBaseEach(),n=t(e);return _baseEach=n,_baseEach}var _baseMap,hasRequired_baseMap;function require_baseMap(){if(hasRequired_baseMap)return _baseMap;hasRequired_baseMap=1;var e=require_baseEach(),t=requireIsArrayLike();function n(i,o){var l=-1,u=t(i)?Array(i.length):[];return e(i,function(f,p,d){u[++l]=o(f,p,d)}),u}return _baseMap=n,_baseMap}var _baseSortBy,hasRequired_baseSortBy;function require_baseSortBy(){if(hasRequired_baseSortBy)return _baseSortBy;hasRequired_baseSortBy=1;function e(t,n){var i=t.length;for(t.sort(n);i--;)t[i]=t[i].value;return t}return _baseSortBy=e,_baseSortBy}var _compareAscending,hasRequired_compareAscending;function require_compareAscending(){if(hasRequired_compareAscending)return _compareAscending;hasRequired_compareAscending=1;var e=requireIsSymbol();function t(n,i){if(n!==i){var o=n!==void 0,l=n===null,u=n===n,f=e(n),p=i!==void 0,d=i===null,m=i===i,g=e(i);if(!d&&!g&&!f&&n>i||f&&p&&m&&!d&&!g||l&&p&&m||!o&&m||!u)return 1;if(!l&&!f&&!g&&n<i||g&&o&&u&&!l&&!f||d&&o&&u||!p&&u||!m)return-1}return 0}return _compareAscending=t,_compareAscending}var _compareMultiple,hasRequired_compareMultiple;function require_compareMultiple(){if(hasRequired_compareMultiple)return _compareMultiple;hasRequired_compareMultiple=1;var e=require_compareAscending();function t(n,i,o){for(var l=-1,u=n.criteria,f=i.criteria,p=u.length,d=o.length;++l<p;){var m=e(u[l],f[l]);if(m){if(l>=d)return m;var g=o[l];return m*(g=="desc"?-1:1)}}return n.index-i.index}return _compareMultiple=t,_compareMultiple}var _baseOrderBy,hasRequired_baseOrderBy;function require_baseOrderBy(){if(hasRequired_baseOrderBy)return _baseOrderBy;hasRequired_baseOrderBy=1;var e=require_arrayMap(),t=require_baseGet(),n=require_baseIteratee(),i=require_baseMap(),o=require_baseSortBy(),l=require_baseUnary(),u=require_compareMultiple(),f=requireIdentity(),p=requireIsArray();function d(m,g,_){g.length?g=e(g,function(R){return p(R)?function(b){return t(b,R.length===1?R[0]:R)}:R}):g=[f];var S=-1;g=e(g,l(n));var E=i(m,function(R,b,A){var C=e(g,function(O){return O(R)});return{criteria:C,index:++S,value:R}});return o(E,function(R,b){return u(R,b,_)})}return _baseOrderBy=d,_baseOrderBy}var _apply,hasRequired_apply;function require_apply(){if(hasRequired_apply)return _apply;hasRequired_apply=1;function e(t,n,i){switch(i.length){case 0:return t.call(n);case 1:return t.call(n,i[0]);case 2:return t.call(n,i[0],i[1]);case 3:return t.call(n,i[0],i[1],i[2])}return t.apply(n,i)}return _apply=e,_apply}var _overRest,hasRequired_overRest;function require_overRest(){if(hasRequired_overRest)return _overRest;hasRequired_overRest=1;var e=require_apply(),t=Math.max;function n(i,o,l){return o=t(o===void 0?i.length-1:o,0),function(){for(var u=arguments,f=-1,p=t(u.length-o,0),d=Array(p);++f<p;)d[f]=u[o+f];f=-1;for(var m=Array(o+1);++f<o;)m[f]=u[f];return m[o]=l(d),e(i,this,m)}}return _overRest=n,_overRest}var constant_1,hasRequiredConstant;function requireConstant(){if(hasRequiredConstant)return constant_1;hasRequiredConstant=1;function e(t){return function(){return t}}return constant_1=e,constant_1}var _defineProperty$C,hasRequired_defineProperty;function require_defineProperty(){if(hasRequired_defineProperty)return _defineProperty$C;hasRequired_defineProperty=1;var e=require_getNative(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return _defineProperty$C=t,_defineProperty$C}var _baseSetToString,hasRequired_baseSetToString;function require_baseSetToString(){if(hasRequired_baseSetToString)return _baseSetToString;hasRequired_baseSetToString=1;var e=requireConstant(),t=require_defineProperty(),n=requireIdentity(),i=t?function(o,l){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:n;return _baseSetToString=i,_baseSetToString}var _shortOut,hasRequired_shortOut;function require_shortOut(){if(hasRequired_shortOut)return _shortOut;hasRequired_shortOut=1;var e=800,t=16,n=Date.now;function i(o){var l=0,u=0;return function(){var f=n(),p=t-(f-u);if(u=f,p>0){if(++l>=e)return arguments[0]}else l=0;return o.apply(void 0,arguments)}}return _shortOut=i,_shortOut}var _setToString,hasRequired_setToString;function require_setToString(){if(hasRequired_setToString)return _setToString;hasRequired_setToString=1;var e=require_baseSetToString(),t=require_shortOut(),n=t(e);return _setToString=n,_setToString}var _baseRest,hasRequired_baseRest;function require_baseRest(){if(hasRequired_baseRest)return _baseRest;hasRequired_baseRest=1;var e=requireIdentity(),t=require_overRest(),n=require_setToString();function i(o,l){return n(t(o,l,e),o+"")}return _baseRest=i,_baseRest}var _isIterateeCall,hasRequired_isIterateeCall;function require_isIterateeCall(){if(hasRequired_isIterateeCall)return _isIterateeCall;hasRequired_isIterateeCall=1;var e=requireEq(),t=requireIsArrayLike(),n=require_isIndex(),i=requireIsObject();function o(l,u,f){if(!i(f))return!1;var p=typeof u;return(p=="number"?t(f)&&n(u,f.length):p=="string"&&u in f)?e(f[u],l):!1}return _isIterateeCall=o,_isIterateeCall}var sortBy_1,hasRequiredSortBy;function requireSortBy(){if(hasRequiredSortBy)return sortBy_1;hasRequiredSortBy=1;var e=require_baseFlatten(),t=require_baseOrderBy(),n=require_baseRest(),i=require_isIterateeCall(),o=n(function(l,u){if(l==null)return[];var f=u.length;return f>1&&i(l,u[0],u[1])?u=[]:f>2&&i(u[0],u[1],u[2])&&(u=[u[0]]),t(l,e(u,1),[])});return sortBy_1=o,sortBy_1}var sortByExports=requireSortBy();const sortBy=getDefaultExportFromCjs(sortByExports);function _typeof$E(e){"@babel/helpers - typeof";return _typeof$E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$E(e)}function _extends$m(){return _extends$m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$m.apply(this,arguments)}function _slicedToArray$b(e,t){return _arrayWithHoles$c(e)||_iterableToArrayLimit$b(e,t)||_unsupportedIterableToArray$i(e,t)||_nonIterableRest$c()}function _nonIterableRest$c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
214
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$i(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$i(e,t)}}function _arrayLikeToArray$i(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _iterableToArrayLimit$b(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,l,u,f=[],p=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(p=(i=l.call(n)).done)&&(f.push(i.value),f.length!==t);p=!0);}catch(m){d=!0,o=m}finally{try{if(!p&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(d)throw o}}return f}}function _arrayWithHoles$c(e){if(Array.isArray(e))return e}function ownKeys$w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$w(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$w(Object(n),!0).forEach(function(i){_defineProperty$B(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$w(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$B(e,t,n){return t=_toPropertyKey$C(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$C(e){var t=_toPrimitive$C(e,"string");return _typeof$E(t)=="symbol"?t:t+""}function _toPrimitive$C(e,t){if(_typeof$E(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$E(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function defaultFormatter(e){return Array.isArray(e)&&isNumOrStr(e[0])&&isNumOrStr(e[1])?e.join(" ~ "):e}var DefaultTooltipContent=function(t){var n=t.separator,i=n===void 0?" : ":n,o=t.contentStyle,l=o===void 0?{}:o,u=t.itemStyle,f=u===void 0?{}:u,p=t.labelStyle,d=p===void 0?{}:p,m=t.payload,g=t.formatter,_=t.itemSorter,S=t.wrapperClassName,E=t.labelClassName,R=t.label,b=t.labelFormatter,A=t.accessibilityLayer,C=A===void 0?!1:A,O=function(){if(m&&m.length){var B={padding:0,margin:0},z=(_?sortBy(m,_):m).map(function(V,W){if(V.type==="none")return null;var U=_objectSpread$w({display:"block",paddingTop:4,paddingBottom:4,color:V.color||"#000"},f),Q=V.formatter||g||defaultFormatter,q=V.value,G=V.name,H=q,Z=G;if(Q&&H!=null&&Z!=null){var ee=Q(q,G,V,W,m);if(Array.isArray(ee)){var ne=_slicedToArray$b(ee,2);H=ne[0],Z=ne[1]}else H=ee}return React.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(W),style:U},isNumOrStr(Z)?React.createElement("span",{className:"recharts-tooltip-item-name"},Z):null,isNumOrStr(Z)?React.createElement("span",{className:"recharts-tooltip-item-separator"},i):null,React.createElement("span",{className:"recharts-tooltip-item-value"},H),React.createElement("span",{className:"recharts-tooltip-item-unit"},V.unit||""))});return React.createElement("ul",{className:"recharts-tooltip-item-list",style:B},z)}return null},M=_objectSpread$w({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},l),T=_objectSpread$w({margin:0},d),j=!isNil(R),I=j?R:"",D=clsx("recharts-default-tooltip",S),L=clsx("recharts-tooltip-label",E);j&&b&&m!==void 0&&m!==null&&(I=b(R,m));var F=C?{role:"status","aria-live":"assertive"}:{};return React.createElement("div",_extends$m({className:D,style:M},F),React.createElement("p",{className:L,style:T},React.isValidElement(I)?I:"".concat(I)),O())};function _typeof$D(e){"@babel/helpers - typeof";return _typeof$D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$D(e)}function _defineProperty$A(e,t,n){return t=_toPropertyKey$B(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$B(e){var t=_toPrimitive$B(e,"string");return _typeof$D(t)=="symbol"?t:t+""}function _toPrimitive$B(e,t){if(_typeof$D(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$D(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CSS_CLASS_PREFIX="recharts-tooltip-wrapper",TOOLTIP_HIDDEN={visibility:"hidden"};function getTooltipCSSClassName(e){var t=e.coordinate,n=e.translateX,i=e.translateY;return clsx(CSS_CLASS_PREFIX,_defineProperty$A(_defineProperty$A(_defineProperty$A(_defineProperty$A({},"".concat(CSS_CLASS_PREFIX,"-right"),isNumber(n)&&t&&isNumber(t.x)&&n>=t.x),"".concat(CSS_CLASS_PREFIX,"-left"),isNumber(n)&&t&&isNumber(t.x)&&n<t.x),"".concat(CSS_CLASS_PREFIX,"-bottom"),isNumber(i)&&t&&isNumber(t.y)&&i>=t.y),"".concat(CSS_CLASS_PREFIX,"-top"),isNumber(i)&&t&&isNumber(t.y)&&i<t.y))}function getTooltipTranslateXY(e){var t=e.allowEscapeViewBox,n=e.coordinate,i=e.key,o=e.offsetTopLeft,l=e.position,u=e.reverseDirection,f=e.tooltipDimension,p=e.viewBox,d=e.viewBoxDimension;if(l&&isNumber(l[i]))return l[i];var m=n[i]-f-o,g=n[i]+o;if(t[i])return u[i]?m:g;if(u[i]){var _=m,S=p[i];return _<S?Math.max(g,p[i]):Math.max(m,p[i])}var E=g+f,R=p[i]+d;return E>R?Math.max(m,p[i]):Math.max(g,p[i])}function getTransformStyle(e){var t=e.translateX,n=e.translateY,i=e.useTranslate3d;return{transform:i?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function getTooltipTranslate(e){var t=e.allowEscapeViewBox,n=e.coordinate,i=e.offsetTopLeft,o=e.position,l=e.reverseDirection,u=e.tooltipBox,f=e.useTranslate3d,p=e.viewBox,d,m,g;return u.height>0&&u.width>0&&n?(m=getTooltipTranslateXY({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:i,position:o,reverseDirection:l,tooltipDimension:u.width,viewBox:p,viewBoxDimension:p.width}),g=getTooltipTranslateXY({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:i,position:o,reverseDirection:l,tooltipDimension:u.height,viewBox:p,viewBoxDimension:p.height}),d=getTransformStyle({translateX:m,translateY:g,useTranslate3d:f})):d=TOOLTIP_HIDDEN,{cssProperties:d,cssClasses:getTooltipCSSClassName({translateX:m,translateY:g,coordinate:n})}}function _typeof$C(e){"@babel/helpers - typeof";return _typeof$C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$C(e)}function ownKeys$v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$v(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$v(Object(n),!0).forEach(function(i){_defineProperty$z(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$v(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _classCallCheck$g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$g(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$A(i.key),i)}}function _createClass$g(e,t,n){return t&&_defineProperties$g(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$c(e,t,n){return t=_getPrototypeOf$d(t),_possibleConstructorReturn$d(e,_isNativeReflectConstruct$d()?Reflect.construct(t,n||[],_getPrototypeOf$d(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$d(e,t){if(t&&(_typeof$C(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$d(e)}function _assertThisInitialized$d(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$d=function(){return!!e})()}function _getPrototypeOf$d(e){return _getPrototypeOf$d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$d(e)}function _inherits$d(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$d(e,t)}function _setPrototypeOf$d(e,t){return _setPrototypeOf$d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf$d(e,t)}function _defineProperty$z(e,t,n){return t=_toPropertyKey$A(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$A(e){var t=_toPrimitive$A(e,"string");return _typeof$C(t)=="symbol"?t:t+""}function _toPrimitive$A(e,t){if(_typeof$C(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$C(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var EPSILON=1,TooltipBoundingBox=function(e){function t(){var n;_classCallCheck$g(this,t);for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return n=_callSuper$c(this,t,[].concat(o)),_defineProperty$z(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),_defineProperty$z(n,"handleKeyDown",function(u){if(u.key==="Escape"){var f,p,d,m;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(f=(p=n.props.coordinate)===null||p===void 0?void 0:p.x)!==null&&f!==void 0?f:0,y:(d=(m=n.props.coordinate)===null||m===void 0?void 0:m.y)!==null&&d!==void 0?d:0}})}}),n}return _inherits$d(t,e),_createClass$g(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-this.state.lastBoundingBox.width)>EPSILON||Math.abs(i.height-this.state.lastBoundingBox.height)>EPSILON)&&this.setState({lastBoundingBox:{width:i.width,height:i.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var i,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((i=this.props.coordinate)===null||i===void 0?void 0:i.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var i=this,o=this.props,l=o.active,u=o.allowEscapeViewBox,f=o.animationDuration,p=o.animationEasing,d=o.children,m=o.coordinate,g=o.hasPayload,_=o.isAnimationActive,S=o.offset,E=o.position,R=o.reverseDirection,b=o.useTranslate3d,A=o.viewBox,C=o.wrapperStyle,O=getTooltipTranslate({allowEscapeViewBox:u,coordinate:m,offsetTopLeft:S,position:E,reverseDirection:R,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:A}),M=O.cssClasses,T=O.cssProperties,j=_objectSpread$v(_objectSpread$v({transition:_&&l?"transform ".concat(f,"ms ").concat(p):void 0},T),{},{pointerEvents:"none",visibility:!this.state.dismissed&&l&&g?"visible":"hidden",position:"absolute",top:0,left:0},C);return React.createElement("div",{tabIndex:-1,className:M,style:j,ref:function(D){i.wrapperNode=D}},d)}}])}(React.PureComponent),parseIsSsrByDefault=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Global={isSsr:parseIsSsrByDefault()};function _typeof$B(e){"@babel/helpers - typeof";return _typeof$B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$B(e)}function ownKeys$u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$u(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$u(Object(n),!0).forEach(function(i){_defineProperty$y(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$u(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _classCallCheck$f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$z(i.key),i)}}function _createClass$f(e,t,n){return t&&_defineProperties$f(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$b(e,t,n){return t=_getPrototypeOf$c(t),_possibleConstructorReturn$c(e,_isNativeReflectConstruct$c()?Reflect.construct(t,n||[],_getPrototypeOf$c(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$c(e,t){if(t&&(_typeof$B(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$c(e)}function _assertThisInitialized$c(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$c=function(){return!!e})()}function _getPrototypeOf$c(e){return _getPrototypeOf$c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$c(e)}function _inherits$c(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$c(e,t)}function _setPrototypeOf$c(e,t){return _setPrototypeOf$c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf$c(e,t)}function _defineProperty$y(e,t,n){return t=_toPropertyKey$z(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$z(e){var t=_toPrimitive$z(e,"string");return _typeof$B(t)=="symbol"?t:t+""}function _toPrimitive$z(e,t){if(_typeof$B(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$B(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function defaultUniqBy(e){return e.dataKey}function renderContent(e,t){return React.isValidElement(e)?React.cloneElement(e,t):typeof e=="function"?React.createElement(e,t):React.createElement(DefaultTooltipContent,t)}var Tooltip=function(e){function t(){return _classCallCheck$f(this,t),_callSuper$b(this,t,arguments)}return _inherits$c(t,e),_createClass$f(t,[{key:"render",value:function(){var i=this,o=this.props,l=o.active,u=o.allowEscapeViewBox,f=o.animationDuration,p=o.animationEasing,d=o.content,m=o.coordinate,g=o.filterNull,_=o.isAnimationActive,S=o.offset,E=o.payload,R=o.payloadUniqBy,b=o.position,A=o.reverseDirection,C=o.useTranslate3d,O=o.viewBox,M=o.wrapperStyle,T=E??[];g&&T.length&&(T=getUniqPayload(E.filter(function(I){return I.value!=null&&(I.hide!==!0||i.props.includeHidden)}),R,defaultUniqBy));var j=T.length>0;return React.createElement(TooltipBoundingBox,{allowEscapeViewBox:u,animationDuration:f,animationEasing:p,isAnimationActive:_,active:l,coordinate:m,hasPayload:j,offset:S,position:b,reverseDirection:A,useTranslate3d:C,viewBox:O,wrapperStyle:M},renderContent(d,_objectSpread$u(_objectSpread$u({},this.props),{},{payload:T})))}}])}(React.PureComponent);_defineProperty$y(Tooltip,"displayName","Tooltip"),_defineProperty$y(Tooltip,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Global.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var now_1,hasRequiredNow;function requireNow(){if(hasRequiredNow)return now_1;hasRequiredNow=1;var e=require_root(),t=function(){return e.Date.now()};return now_1=t,now_1}var _trimmedEndIndex,hasRequired_trimmedEndIndex;function require_trimmedEndIndex(){if(hasRequired_trimmedEndIndex)return _trimmedEndIndex;hasRequired_trimmedEndIndex=1;var e=/\s/;function t(n){for(var i=n.length;i--&&e.test(n.charAt(i)););return i}return _trimmedEndIndex=t,_trimmedEndIndex}var _baseTrim,hasRequired_baseTrim;function require_baseTrim(){if(hasRequired_baseTrim)return _baseTrim;hasRequired_baseTrim=1;var e=require_trimmedEndIndex(),t=/^\s+/;function n(i){return i&&i.slice(0,e(i)+1).replace(t,"")}return _baseTrim=n,_baseTrim}var toNumber_1,hasRequiredToNumber;function requireToNumber(){if(hasRequiredToNumber)return toNumber_1;hasRequiredToNumber=1;var e=require_baseTrim(),t=requireIsObject(),n=requireIsSymbol(),i=NaN,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,f=parseInt;function p(d){if(typeof d=="number")return d;if(n(d))return i;if(t(d)){var m=typeof d.valueOf=="function"?d.valueOf():d;d=t(m)?m+"":m}if(typeof d!="string")return d===0?d:+d;d=e(d);var g=l.test(d);return g||u.test(d)?f(d.slice(2),g?2:8):o.test(d)?i:+d}return toNumber_1=p,toNumber_1}var debounce_1,hasRequiredDebounce;function requireDebounce(){if(hasRequiredDebounce)return debounce_1;hasRequiredDebounce=1;var e=requireIsObject(),t=requireNow(),n=requireToNumber(),i="Expected a function",o=Math.max,l=Math.min;function u(f,p,d){var m,g,_,S,E,R,b=0,A=!1,C=!1,O=!0;if(typeof f!="function")throw new TypeError(i);p=n(p)||0,e(d)&&(A=!!d.leading,C="maxWait"in d,_=C?o(n(d.maxWait)||0,p):_,O="trailing"in d?!!d.trailing:O);function M(z){var V=m,W=g;return m=g=void 0,b=z,S=f.apply(W,V),S}function T(z){return b=z,E=setTimeout(D,p),A?M(z):S}function j(z){var V=z-R,W=z-b,U=p-V;return C?l(U,_-W):U}function I(z){var V=z-R,W=z-b;return R===void 0||V>=p||V<0||C&&W>=_}function D(){var z=t();if(I(z))return L(z);E=setTimeout(D,j(z))}function L(z){return E=void 0,O&&m?M(z):(m=g=void 0,S)}function F(){E!==void 0&&clearTimeout(E),b=0,m=R=g=E=void 0}function N(){return E===void 0?S:L(t())}function B(){var z=t(),V=I(z);if(m=arguments,g=this,R=z,V){if(E===void 0)return T(R);if(C)return clearTimeout(E),E=setTimeout(D,p),M(R)}return E===void 0&&(E=setTimeout(D,p)),S}return B.cancel=F,B.flush=N,B}return debounce_1=u,debounce_1}var throttle_1,hasRequiredThrottle;function requireThrottle(){if(hasRequiredThrottle)return throttle_1;hasRequiredThrottle=1;var e=requireDebounce(),t=requireIsObject(),n="Expected a function";function i(o,l,u){var f=!0,p=!0;if(typeof o!="function")throw new TypeError(n);return t(u)&&(f="leading"in u?!!u.leading:f,p="trailing"in u?!!u.trailing:p),e(o,l,{leading:f,maxWait:l,trailing:p})}return throttle_1=i,throttle_1}var throttleExports=requireThrottle();const throttle=getDefaultExportFromCjs(throttleExports);function _typeof$A(e){"@babel/helpers - typeof";return _typeof$A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$A(e)}function ownKeys$t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$t(Object(n),!0).forEach(function(i){_defineProperty$x(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$t(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$x(e,t,n){return t=_toPropertyKey$y(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$y(e){var t=_toPrimitive$y(e,"string");return _typeof$A(t)=="symbol"?t:t+""}function _toPrimitive$y(e,t){if(_typeof$A(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$A(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _slicedToArray$a(e,t){return _arrayWithHoles$b(e)||_iterableToArrayLimit$a(e,t)||_unsupportedIterableToArray$h(e,t)||_nonIterableRest$b()}function _nonIterableRest$b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
215
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$h(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$h(e,t)}}function _arrayLikeToArray$h(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _iterableToArrayLimit$a(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,l,u,f=[],p=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(p=(i=l.call(n)).done)&&(f.push(i.value),f.length!==t);p=!0);}catch(m){d=!0,o=m}finally{try{if(!p&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(d)throw o}}return f}}function _arrayWithHoles$b(e){if(Array.isArray(e))return e}var ResponsiveContainer=React.forwardRef(function(e,t){var n=e.aspect,i=e.initialDimension,o=i===void 0?{width:-1,height:-1}:i,l=e.width,u=l===void 0?"100%":l,f=e.height,p=f===void 0?"100%":f,d=e.minWidth,m=d===void 0?0:d,g=e.minHeight,_=e.maxHeight,S=e.children,E=e.debounce,R=E===void 0?0:E,b=e.id,A=e.className,C=e.onResize,O=e.style,M=O===void 0?{}:O,T=React.useRef(null),j=React.useRef();j.current=C,React.useImperativeHandle(t,function(){return Object.defineProperty(T.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),T.current},configurable:!0})});var I=React.useState({containerWidth:o.width,containerHeight:o.height}),D=_slicedToArray$a(I,2),L=D[0],F=D[1],N=React.useCallback(function(z,V){F(function(W){var U=Math.round(z),Q=Math.round(V);return W.containerWidth===U&&W.containerHeight===Q?W:{containerWidth:U,containerHeight:Q}})},[]);React.useEffect(function(){var z=function(G){var H,Z=G[0].contentRect,ee=Z.width,ne=Z.height;N(ee,ne),(H=j.current)===null||H===void 0||H.call(j,ee,ne)};R>0&&(z=throttle(z,R,{trailing:!0,leading:!1}));var V=new ResizeObserver(z),W=T.current.getBoundingClientRect(),U=W.width,Q=W.height;return N(U,Q),V.observe(T.current),function(){V.disconnect()}},[N,R]);var B=React.useMemo(function(){var z=L.containerWidth,V=L.containerHeight;if(z<0||V<0)return null;warn$1(isPercent(u)||isPercent(p),`The width(%s) and height(%s) are both fixed numbers,
216
+ maybe you don't need to use a ResponsiveContainer.`,u,p),warn$1(!n||n>0,"The aspect(%s) must be greater than zero.",n);var W=isPercent(u)?z:u,U=isPercent(p)?V:p;n&&n>0&&(W?U=W/n:U&&(W=U*n),_&&U>_&&(U=_)),warn$1(W>0||U>0,`The width(%s) and height(%s) of chart should be greater than 0,
217
+ please check the style of container, or the props width(%s) and height(%s),
218
+ or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
219
+ height and width.`,W,U,u,p,m,g,n);var Q=!Array.isArray(S)&&getDisplayName(S.type).endsWith("Chart");return React.Children.map(S,function(q){return React.isValidElement(q)?React.cloneElement(q,_objectSpread$t({width:W,height:U},Q?{style:_objectSpread$t({height:"100%",width:"100%",maxHeight:U,maxWidth:W},q.props.style)}:{})):q})},[n,S,p,_,g,m,L,u]);return React.createElement("div",{id:b?"".concat(b):void 0,className:clsx("recharts-responsive-container",A),style:_objectSpread$t(_objectSpread$t({},M),{},{width:u,height:p,minWidth:m,minHeight:g,maxHeight:_}),ref:T},B)}),Cell=function(t){return null};Cell.displayName="Cell";function _typeof$z(e){"@babel/helpers - typeof";return _typeof$z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$z(e)}function ownKeys$s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$s(Object(n),!0).forEach(function(i){_defineProperty$w(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$s(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$w(e,t,n){return t=_toPropertyKey$x(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$x(e){var t=_toPrimitive$x(e,"string");return _typeof$z(t)=="symbol"?t:t+""}function _toPrimitive$x(e,t){if(_typeof$z(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$z(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var stringCache={widthCache:{},cacheCount:0},MAX_CACHE_NUM=2e3,SPAN_STYLE={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},MEASUREMENT_SPAN_ID="recharts_measurement_span";function removeInvalidKeys(e){var t=_objectSpread$s({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var getStringSize=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Global.isSsr)return{width:0,height:0};var i=removeInvalidKeys(n),o=JSON.stringify({text:t,copyStyle:i});if(stringCache.widthCache[o])return stringCache.widthCache[o];try{var l=document.getElementById(MEASUREMENT_SPAN_ID);l||(l=document.createElement("span"),l.setAttribute("id",MEASUREMENT_SPAN_ID),l.setAttribute("aria-hidden","true"),document.body.appendChild(l));var u=_objectSpread$s(_objectSpread$s({},SPAN_STYLE),i);Object.assign(l.style,u),l.textContent="".concat(t);var f=l.getBoundingClientRect(),p={width:f.width,height:f.height};return stringCache.widthCache[o]=p,++stringCache.cacheCount>MAX_CACHE_NUM&&(stringCache.cacheCount=0,stringCache.widthCache={}),p}catch{return{width:0,height:0}}},getOffset=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function _typeof$y(e){"@babel/helpers - typeof";return _typeof$y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$y(e)}function _slicedToArray$9(e,t){return _arrayWithHoles$a(e)||_iterableToArrayLimit$9(e,t)||_unsupportedIterableToArray$g(e,t)||_nonIterableRest$a()}function _nonIterableRest$a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
220
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$g(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$g(e,t)}}function _arrayLikeToArray$g(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _iterableToArrayLimit$9(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,l,u,f=[],p=!0,d=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;p=!1}else for(;!(p=(i=l.call(n)).done)&&(f.push(i.value),f.length!==t);p=!0);}catch(m){d=!0,o=m}finally{try{if(!p&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(d)throw o}}return f}}function _arrayWithHoles$a(e){if(Array.isArray(e))return e}function _classCallCheck$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$w(i.key),i)}}function _createClass$e(e,t,n){return t&&_defineProperties$e(e.prototype,t),n&&_defineProperties$e(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey$w(e){var t=_toPrimitive$w(e,"string");return _typeof$y(t)=="symbol"?t:t+""}function _toPrimitive$w(e,t){if(_typeof$y(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$y(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var MULTIPLY_OR_DIVIDE_REGEX=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ADD_OR_SUBTRACT_REGEX=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,CSS_LENGTH_UNIT_REGEX=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,NUM_SPLIT_REGEX=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,CONVERSION_RATES={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},FIXED_CSS_LENGTH_UNITS=Object.keys(CONVERSION_RATES),STR_NAN="NaN";function convertToPx(e,t){return e*CONVERSION_RATES[t]}var DecimalCSS=function(){function e(t,n){_classCallCheck$e(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!CSS_LENGTH_UNIT_REGEX.test(n)&&(this.num=NaN,this.unit=""),FIXED_CSS_LENGTH_UNITS.includes(n)&&(this.num=convertToPx(t,n),this.unit="px")}return _createClass$e(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var i,o=(i=NUM_SPLIT_REGEX.exec(n))!==null&&i!==void 0?i:[],l=_slicedToArray$9(o,3),u=l[1],f=l[2];return new e(parseFloat(u),f??"")}}])}();function calculateArithmetic(e){if(e.includes(STR_NAN))return STR_NAN;for(var t=e;t.includes("*")||t.includes("/");){var n,i=(n=MULTIPLY_OR_DIVIDE_REGEX.exec(t))!==null&&n!==void 0?n:[],o=_slicedToArray$9(i,4),l=o[1],u=o[2],f=o[3],p=DecimalCSS.parse(l??""),d=DecimalCSS.parse(f??""),m=u==="*"?p.multiply(d):p.divide(d);if(m.isNaN())return STR_NAN;t=t.replace(MULTIPLY_OR_DIVIDE_REGEX,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var g,_=(g=ADD_OR_SUBTRACT_REGEX.exec(t))!==null&&g!==void 0?g:[],S=_slicedToArray$9(_,4),E=S[1],R=S[2],b=S[3],A=DecimalCSS.parse(E??""),C=DecimalCSS.parse(b??""),O=R==="+"?A.add(C):A.subtract(C);if(O.isNaN())return STR_NAN;t=t.replace(ADD_OR_SUBTRACT_REGEX,O.toString())}return t}var PARENTHESES_REGEX=/\(([^()]*)\)/;function calculateParentheses(e){for(var t=e;t.includes("(");){var n=PARENTHESES_REGEX.exec(t),i=_slicedToArray$9(n,2),o=i[1];t=t.replace(PARENTHESES_REGEX,calculateArithmetic(o))}return t}function evaluateExpression(e){var t=e.replace(/\s+/g,"");return t=calculateParentheses(t),t=calculateArithmetic(t),t}function safeEvaluateExpression(e){try{return evaluateExpression(e)}catch{return STR_NAN}}function reduceCSSCalc(e){var t=safeEvaluateExpression(e.slice(5,-1));return t===STR_NAN?"":t}var _excluded$c=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],_excluded2$5=["dx","dy","angle","className","breakAll"];function _extends$l(){return _extends$l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$l.apply(this,arguments)}function _objectWithoutProperties$c(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$c(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$c(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function _slicedToArray$8(e,t){return _arrayWithHoles$9(e)||_iterableToArrayLimit$8(e,t)||_unsupportedIterableToArray$f(e,t)||_nonIterableRest$9()}function _nonIterableRest$9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
221
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$f(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$f(e,t)}}function _arrayLikeToArray$f(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _iterableToArrayLimit$8(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,l,u,f=[],p=!0,d=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;p=!1}else for(;!(p=(i=l.call(n)).done)&&(f.push(i.value),f.length!==t);p=!0);}catch(m){d=!0,o=m}finally{try{if(!p&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(d)throw o}}return f}}function _arrayWithHoles$9(e){if(Array.isArray(e))return e}var BREAKING_SPACES=/[ \f\n\r\t\v\u2028\u2029]+/,calculateWordWidths=function(t){var n=t.children,i=t.breakAll,o=t.style;try{var l=[];isNil(n)||(i?l=n.toString().split(""):l=n.toString().split(BREAKING_SPACES));var u=l.map(function(p){return{word:p,width:getStringSize(p,o).width}}),f=i?0:getStringSize(" ",o).width;return{wordsWithComputedWidth:u,spaceWidth:f}}catch{return null}},calculateWordsByLines=function(t,n,i,o,l){var u=t.maxLines,f=t.children,p=t.style,d=t.breakAll,m=isNumber(u),g=f,_=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return W.reduce(function(U,Q){var q=Q.word,G=Q.width,H=U[U.length-1];if(H&&(o==null||l||H.width+G+i<Number(o)))H.words.push(q),H.width+=G+i;else{var Z={words:[q],width:G};U.push(Z)}return U},[])},S=_(n),E=function(W){return W.reduce(function(U,Q){return U.width>Q.width?U:Q})};if(!m)return S;for(var R="…",b=function(W){var U=g.slice(0,W),Q=calculateWordWidths({breakAll:d,style:p,children:U+R}).wordsWithComputedWidth,q=_(Q),G=q.length>u||E(q).width>Number(o);return[G,q]},A=0,C=g.length-1,O=0,M;A<=C&&O<=g.length-1;){var T=Math.floor((A+C)/2),j=T-1,I=b(j),D=_slicedToArray$8(I,2),L=D[0],F=D[1],N=b(T),B=_slicedToArray$8(N,1),z=B[0];if(!L&&!z&&(A=T+1),L&&z&&(C=T-1),!L&&z){M=F;break}O++}return M||S},getWordsWithoutCalculate=function(t){var n=isNil(t)?[]:t.toString().split(BREAKING_SPACES);return[{words:n}]},getWordsByLines=function(t){var n=t.width,i=t.scaleToFit,o=t.children,l=t.style,u=t.breakAll,f=t.maxLines;if((n||i)&&!Global.isSsr){var p,d,m=calculateWordWidths({breakAll:u,children:o,style:l});if(m){var g=m.wordsWithComputedWidth,_=m.spaceWidth;p=g,d=_}else return getWordsWithoutCalculate(o);return calculateWordsByLines({breakAll:u,children:o,maxLines:f,style:l},p,d,n,i)}return getWordsWithoutCalculate(o)},DEFAULT_FILL="#808080",Text=function(t){var n=t.x,i=n===void 0?0:n,o=t.y,l=o===void 0?0:o,u=t.lineHeight,f=u===void 0?"1em":u,p=t.capHeight,d=p===void 0?"0.71em":p,m=t.scaleToFit,g=m===void 0?!1:m,_=t.textAnchor,S=_===void 0?"start":_,E=t.verticalAnchor,R=E===void 0?"end":E,b=t.fill,A=b===void 0?DEFAULT_FILL:b,C=_objectWithoutProperties$c(t,_excluded$c),O=React.useMemo(function(){return getWordsByLines({breakAll:C.breakAll,children:C.children,maxLines:C.maxLines,scaleToFit:g,style:C.style,width:C.width})},[C.breakAll,C.children,C.maxLines,g,C.style,C.width]),M=C.dx,T=C.dy,j=C.angle,I=C.className,D=C.breakAll,L=_objectWithoutProperties$c(C,_excluded2$5);if(!isNumOrStr(i)||!isNumOrStr(l))return null;var F=i+(isNumber(M)?M:0),N=l+(isNumber(T)?T:0),B;switch(R){case"start":B=reduceCSSCalc("calc(".concat(d,")"));break;case"middle":B=reduceCSSCalc("calc(".concat((O.length-1)/2," * -").concat(f," + (").concat(d," / 2))"));break;default:B=reduceCSSCalc("calc(".concat(O.length-1," * -").concat(f,")"));break}var z=[];if(g){var V=O[0].width,W=C.width;z.push("scale(".concat((isNumber(W)?W/V:1)/V,")"))}return j&&z.push("rotate(".concat(j,", ").concat(F,", ").concat(N,")")),z.length&&(L.transform=z.join(" ")),React.createElement("text",_extends$l({},filterProps(L,!0),{x:F,y:N,className:clsx("recharts-text",I),textAnchor:S,fill:A.includes("url")?DEFAULT_FILL:A}),O.map(function(U,Q){var q=U.words.join(D?"":" ");return React.createElement("tspan",{x:F,dy:Q===0?B:f,key:"".concat(q,"-").concat(Q)},q)}))};function ascending(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function descending(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function bisector(e){let t,n,i;e.length!==2?(t=ascending,n=(f,p)=>ascending(e(f),p),i=(f,p)=>e(f)-p):(t=e===ascending||e===descending?e:zero$1,n=e,i=e);function o(f,p,d=0,m=f.length){if(d<m){if(t(p,p)!==0)return m;do{const g=d+m>>>1;n(f[g],p)<0?d=g+1:m=g}while(d<m)}return d}function l(f,p,d=0,m=f.length){if(d<m){if(t(p,p)!==0)return m;do{const g=d+m>>>1;n(f[g],p)<=0?d=g+1:m=g}while(d<m)}return d}function u(f,p,d=0,m=f.length){const g=o(f,p,d,m-1);return g>d&&i(f[g-1],p)>-i(f[g],p)?g-1:g}return{left:o,center:u,right:l}}function zero$1(){return 0}function number$2(e){return e===null?NaN:+e}function*numbers(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const ascendingBisect=bisector(ascending),bisectRight=ascendingBisect.right;bisector(number$2).center;class InternMap extends Map{constructor(t,n=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[i,o]of t)this.set(i,o)}get(t){return super.get(intern_get(this,t))}has(t){return super.has(intern_get(this,t))}set(t,n){return super.set(intern_set(this,t),n)}delete(t){return super.delete(intern_delete(this,t))}}function intern_get({_intern:e,_key:t},n){const i=t(n);return e.has(i)?e.get(i):n}function intern_set({_intern:e,_key:t},n){const i=t(n);return e.has(i)?e.get(i):(e.set(i,n),n)}function intern_delete({_intern:e,_key:t},n){const i=t(n);return e.has(i)&&(n=e.get(i),e.delete(i)),n}function keyof(e){return e!==null&&typeof e=="object"?e.valueOf():e}function compareDefined(e=ascending){if(e===ascending)return ascendingDefined;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const i=e(t,n);return i||i===0?i:(e(n,n)===0)-(e(t,t)===0)}}function ascendingDefined(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const e10=Math.sqrt(50),e5=Math.sqrt(10),e2=Math.sqrt(2);function tickSpec(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),l=i/Math.pow(10,o),u=l>=e10?10:l>=e5?5:l>=e2?2:1;let f,p,d;return o<0?(d=Math.pow(10,-o)/u,f=Math.round(e*d),p=Math.round(t*d),f/d<e&&++f,p/d>t&&--p,d=-d):(d=Math.pow(10,o)*u,f=Math.round(e/d),p=Math.round(t/d),f*d<e&&++f,p*d>t&&--p),p<f&&.5<=n&&n<2?tickSpec(e,t,n*2):[f,p,d]}function ticks(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const i=t<e,[o,l,u]=i?tickSpec(t,e,n):tickSpec(e,t,n);if(!(l>=o))return[];const f=l-o+1,p=new Array(f);if(i)if(u<0)for(let d=0;d<f;++d)p[d]=(l-d)/-u;else for(let d=0;d<f;++d)p[d]=(l-d)*u;else if(u<0)for(let d=0;d<f;++d)p[d]=(o+d)/-u;else for(let d=0;d<f;++d)p[d]=(o+d)*u;return p}function tickIncrement(e,t,n){return t=+t,e=+e,n=+n,tickSpec(e,t,n)[2]}function tickStep(e,t,n){t=+t,e=+e,n=+n;const i=t<e,o=i?tickIncrement(t,e,n):tickIncrement(e,t,n);return(i?-1:1)*(o<0?1/-o:o)}function max$1(e,t){let n;for(const i of e)i!=null&&(n<i||n===void 0&&i>=i)&&(n=i);return n}function min$1(e,t){let n;for(const i of e)i!=null&&(n>i||n===void 0&&i>=i)&&(n=i);return n}function quickselect(e,t,n=0,i=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),i=Math.floor(Math.min(e.length-1,i)),!(n<=t&&t<=i))return e;for(o=o===void 0?ascendingDefined:compareDefined(o);i>n;){if(i-n>600){const p=i-n+1,d=t-n+1,m=Math.log(p),g=.5*Math.exp(2*m/3),_=.5*Math.sqrt(m*g*(p-g)/p)*(d-p/2<0?-1:1),S=Math.max(n,Math.floor(t-d*g/p+_)),E=Math.min(i,Math.floor(t+(p-d)*g/p+_));quickselect(e,t,S,E,o)}const l=e[t];let u=n,f=i;for(swap(e,n,t),o(e[i],l)>0&&swap(e,n,i);u<f;){for(swap(e,u,f),++u,--f;o(e[u],l)<0;)++u;for(;o(e[f],l)>0;)--f}o(e[n],l)===0?swap(e,n,f):(++f,swap(e,f,i)),f<=t&&(n=f+1),t<=f&&(i=f-1)}return e}function swap(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function quantile$1(e,t,n){if(e=Float64Array.from(numbers(e)),!(!(i=e.length)||isNaN(t=+t))){if(t<=0||i<2)return min$1(e);if(t>=1)return max$1(e);var i,o=(i-1)*t,l=Math.floor(o),u=max$1(quickselect(e,l).subarray(0,l+1)),f=min$1(e.subarray(l+1));return u+(f-u)*(o-l)}}function quantileSorted(e,t,n=number$2){if(!(!(i=e.length)||isNaN(t=+t))){if(t<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,o=(i-1)*t,l=Math.floor(o),u=+n(e[l],l,e),f=+n(e[l+1],l+1,e);return u+(f-u)*(o-l)}}function range$2(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var i=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,l=new Array(o);++i<o;)l[i]=e+i*n;return l}function initRange(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function initInterpolator(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const implicit=Symbol("implicit");function ordinal(){var e=new InternMap,t=[],n=[],i=implicit;function o(l){let u=e.get(l);if(u===void 0){if(i!==implicit)return i;e.set(l,u=t.push(l)-1)}return n[u%n.length]}return o.domain=function(l){if(!arguments.length)return t.slice();t=[],e=new InternMap;for(const u of l)e.has(u)||e.set(u,t.push(u)-1);return o},o.range=function(l){return arguments.length?(n=Array.from(l),o):n.slice()},o.unknown=function(l){return arguments.length?(i=l,o):i},o.copy=function(){return ordinal(t,n).unknown(i)},initRange.apply(o,arguments),o}function band(){var e=ordinal().unknown(void 0),t=e.domain,n=e.range,i=0,o=1,l,u,f=!1,p=0,d=0,m=.5;delete e.unknown;function g(){var _=t().length,S=o<i,E=S?o:i,R=S?i:o;l=(R-E)/Math.max(1,_-p+d*2),f&&(l=Math.floor(l)),E+=(R-E-l*(_-p))*m,u=l*(1-p),f&&(E=Math.round(E),u=Math.round(u));var b=range$2(_).map(function(A){return E+l*A});return n(S?b.reverse():b)}return e.domain=function(_){return arguments.length?(t(_),g()):t()},e.range=function(_){return arguments.length?([i,o]=_,i=+i,o=+o,g()):[i,o]},e.rangeRound=function(_){return[i,o]=_,i=+i,o=+o,f=!0,g()},e.bandwidth=function(){return u},e.step=function(){return l},e.round=function(_){return arguments.length?(f=!!_,g()):f},e.padding=function(_){return arguments.length?(p=Math.min(1,d=+_),g()):p},e.paddingInner=function(_){return arguments.length?(p=Math.min(1,_),g()):p},e.paddingOuter=function(_){return arguments.length?(d=+_,g()):d},e.align=function(_){return arguments.length?(m=Math.max(0,Math.min(1,_)),g()):m},e.copy=function(){return band(t(),[i,o]).round(f).paddingInner(p).paddingOuter(d).align(m)},initRange.apply(g(),arguments)}function pointish(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return pointish(t())},e}function point(){return pointish(band.apply(null,arguments).paddingInner(1))}function define(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function extend(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Color(){}var darker=.7,brighter=1/darker,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex=/^#([0-9a-f]{3,8})$/,reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};define(Color,color,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:color_formatHex8,formatHsl:color_formatHsl,formatRgb:color_formatRgb,toString:color_formatRgb});function color_formatHex(){return this.rgb().formatHex()}function color_formatHex8(){return this.rgb().formatHex8()}function color_formatHsl(){return hslConvert(this).formatHsl()}function color_formatRgb(){return this.rgb().formatRgb()}function color(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=reHex.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?rgbn(t):n===3?new Rgb(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?rgba(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?rgba(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=reRgbInteger.exec(e))?new Rgb(t[1],t[2],t[3],1):(t=reRgbPercent.exec(e))?new Rgb(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=reRgbaInteger.exec(e))?rgba(t[1],t[2],t[3],t[4]):(t=reRgbaPercent.exec(e))?rgba(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=reHslPercent.exec(e))?hsla(t[1],t[2]/100,t[3]/100,1):(t=reHslaPercent.exec(e))?hsla(t[1],t[2]/100,t[3]/100,t[4]):named.hasOwnProperty(e)?rgbn(named[e]):e==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(e){return new Rgb(e>>16&255,e>>8&255,e&255,1)}function rgba(e,t,n,i){return i<=0&&(e=t=n=NaN),new Rgb(e,t,n,i)}function rgbConvert(e){return e instanceof Color||(e=color(e)),e?(e=e.rgb(),new Rgb(e.r,e.g,e.b,e.opacity)):new Rgb}function rgb$1(e,t,n,i){return arguments.length===1?rgbConvert(e):new Rgb(e,t,n,i??1)}function Rgb(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}define(Rgb,rgb$1,extend(Color,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const e=clampa(this.opacity);return`${e===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${e===1?")":`, ${e})`}`}function clampa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function clampi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hex(e){return e=clampi(e),(e<16?"0":"")+e.toString(16)}function hsla(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Hsl(e,t,n,i)}function hslConvert(e){if(e instanceof Hsl)return new Hsl(e.h,e.s,e.l,e.opacity);if(e instanceof Color||(e=color(e)),!e)return new Hsl;if(e instanceof Hsl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),l=Math.max(t,n,i),u=NaN,f=l-o,p=(l+o)/2;return f?(t===l?u=(n-i)/f+(n<i)*6:n===l?u=(i-t)/f+2:u=(t-n)/f+4,f/=p<.5?l+o:2-l-o,u*=60):f=p>0&&p<1?0:u,new Hsl(u,f,p,e.opacity)}function hsl(e,t,n,i){return arguments.length===1?hslConvert(e):new Hsl(e,t,n,i??1)}function Hsl(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}define(Hsl,hsl,extend(Color,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new Rgb(hsl2rgb(e>=240?e-240:e+120,o,i),hsl2rgb(e,o,i),hsl2rgb(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=clampa(this.opacity);return`${e===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${e===1?")":`, ${e})`}`}}));function clamph(e){return e=(e||0)%360,e<0?e+360:e}function clampt(e){return Math.max(0,Math.min(1,e||0))}function hsl2rgb(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const constant=e=>()=>e;function linear$1(e,t){return function(n){return e+n*t}}function exponential(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function gamma(e){return(e=+e)==1?nogamma:function(t,n){return n-t?exponential(t,n,e):constant(isNaN(t)?n:t)}}function nogamma(e,t){var n=t-e;return n?linear$1(e,n):constant(isNaN(e)?t:e)}const rgb=function e(t){var n=gamma(t);function i(o,l){var u=n((o=rgb$1(o)).r,(l=rgb$1(l)).r),f=n(o.g,l.g),p=n(o.b,l.b),d=nogamma(o.opacity,l.opacity);return function(m){return o.r=u(m),o.g=f(m),o.b=p(m),o.opacity=d(m),o+""}}return i.gamma=e,i}(1);function numberArray(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,i=t.slice(),o;return function(l){for(o=0;o<n;++o)i[o]=e[o]*(1-l)+t[o]*l;return i}}function isNumberArray(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function genericArray(e,t){var n=t?t.length:0,i=e?Math.min(n,e.length):0,o=new Array(i),l=new Array(n),u;for(u=0;u<i;++u)o[u]=interpolate(e[u],t[u]);for(;u<n;++u)l[u]=t[u];return function(f){for(u=0;u<i;++u)l[u]=o[u](f);return l}}function date$1(e,t){var n=new Date;return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function interpolateNumber$1(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function object(e,t){var n={},i={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=interpolate(e[o],t[o]):i[o]=t[o];return function(l){for(o in n)i[o]=n[o](l);return i}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB=new RegExp(reA.source,"g");function zero(e){return function(){return e}}function one(e){return function(t){return e(t)+""}}function string(e,t){var n=reA.lastIndex=reB.lastIndex=0,i,o,l,u=-1,f=[],p=[];for(e=e+"",t=t+"";(i=reA.exec(e))&&(o=reB.exec(t));)(l=o.index)>n&&(l=t.slice(n,l),f[u]?f[u]+=l:f[++u]=l),(i=i[0])===(o=o[0])?f[u]?f[u]+=o:f[++u]=o:(f[++u]=null,p.push({i:u,x:interpolateNumber$1(i,o)})),n=reB.lastIndex;return n<t.length&&(l=t.slice(n),f[u]?f[u]+=l:f[++u]=l),f.length<2?p[0]?one(p[0].x):zero(t):(t=p.length,function(d){for(var m=0,g;m<t;++m)f[(g=p[m]).i]=g.x(d);return f.join("")})}function interpolate(e,t){var n=typeof t,i;return t==null||n==="boolean"?constant(t):(n==="number"?interpolateNumber$1:n==="string"?(i=color(t))?(t=i,rgb):string:t instanceof color?rgb:t instanceof Date?date$1:isNumberArray(t)?numberArray:Array.isArray(t)?genericArray:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?object:interpolateNumber$1)(e,t)}function interpolateRound(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function piecewise(e,t){t===void 0&&(t=e,e=interpolate);for(var n=0,i=t.length-1,o=t[0],l=new Array(i<0?0:i);n<i;)l[n]=e(o,o=t[++n]);return function(u){var f=Math.max(0,Math.min(i-1,Math.floor(u*=i)));return l[f](u-f)}}function constants(e){return function(){return e}}function number$1(e){return+e}var unit=[0,1];function identity$4(e){return e}function normalize(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:constants(isNaN(t)?NaN:.5)}function clamper(e,t){var n;return e>t&&(n=e,e=t,t=n),function(i){return Math.max(e,Math.min(t,i))}}function bimap(e,t,n){var i=e[0],o=e[1],l=t[0],u=t[1];return o<i?(i=normalize(o,i),l=n(u,l)):(i=normalize(i,o),l=n(l,u)),function(f){return l(i(f))}}function polymap(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),l=new Array(i),u=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++u<i;)o[u]=normalize(e[u],e[u+1]),l[u]=n(t[u],t[u+1]);return function(f){var p=bisectRight(e,f,1,i)-1;return l[p](o[p](f))}}function copy$1(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function transformer$2(){var e=unit,t=unit,n=interpolate,i,o,l,u=identity$4,f,p,d;function m(){var _=Math.min(e.length,t.length);return u!==identity$4&&(u=clamper(e[0],e[_-1])),f=_>2?polymap:bimap,p=d=null,g}function g(_){return _==null||isNaN(_=+_)?l:(p||(p=f(e.map(i),t,n)))(i(u(_)))}return g.invert=function(_){return u(o((d||(d=f(t,e.map(i),interpolateNumber$1)))(_)))},g.domain=function(_){return arguments.length?(e=Array.from(_,number$1),m()):e.slice()},g.range=function(_){return arguments.length?(t=Array.from(_),m()):t.slice()},g.rangeRound=function(_){return t=Array.from(_),n=interpolateRound,m()},g.clamp=function(_){return arguments.length?(u=_?!0:identity$4,m()):u!==identity$4},g.interpolate=function(_){return arguments.length?(n=_,m()):n},g.unknown=function(_){return arguments.length?(l=_,g):l},function(_,S){return i=_,o=S,m()}}function continuous(){return transformer$2()(identity$4,identity$4)}function formatDecimal(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function formatDecimalParts(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function exponent(e){return e=formatDecimalParts(Math.abs(e)),e?e[1]:NaN}function formatGroup(e,t){return function(n,i){for(var o=n.length,l=[],u=0,f=e[0],p=0;o>0&&f>0&&(p+f+1>i&&(f=Math.max(1,i-p)),l.push(n.substring(o-=f,o+f)),!((p+=f+1)>i));)f=e[u=(u+1)%e.length];return l.reverse().join(t)}}function formatNumerals(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(e){if(!(t=re.exec(e)))throw new Error("invalid format: "+e);var t;return new FormatSpecifier({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}formatSpecifier.prototype=FormatSpecifier.prototype;function FormatSpecifier(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function formatTrim(e){e:for(var t=e.length,n=1,i=-1,o;n<t;++n)switch(e[n]){case".":i=o=n;break;case"0":i===0&&(i=n),o=n;break;default:if(!+e[n])break e;i>0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(o+1):e}var prefixExponent;function formatPrefixAuto(e,t){var n=formatDecimalParts(e,t);if(!n)return e+"";var i=n[0],o=n[1],l=o-(prefixExponent=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,u=i.length;return l===u?i:l>u?i+new Array(l-u+1).join("0"):l>0?i.slice(0,l)+"."+i.slice(l):"0."+new Array(1-l).join("0")+formatDecimalParts(e,Math.max(0,t+l-1))[0]}function formatRounded(e,t){var n=formatDecimalParts(e,t);if(!n)return e+"";var i=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}const formatTypes={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:formatDecimal,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>formatRounded(e*100,t),r:formatRounded,s:formatPrefixAuto,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function identity$3(e){return e}var map$1=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$1(e){var t=e.grouping===void 0||e.thousands===void 0?identity$3:formatGroup(map$1.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",l=e.numerals===void 0?identity$3:formatNumerals(map$1.call(e.numerals,String)),u=e.percent===void 0?"%":e.percent+"",f=e.minus===void 0?"−":e.minus+"",p=e.nan===void 0?"NaN":e.nan+"";function d(g){g=formatSpecifier(g);var _=g.fill,S=g.align,E=g.sign,R=g.symbol,b=g.zero,A=g.width,C=g.comma,O=g.precision,M=g.trim,T=g.type;T==="n"?(C=!0,T="g"):formatTypes[T]||(O===void 0&&(O=12),M=!0,T="g"),(b||_==="0"&&S==="=")&&(b=!0,_="0",S="=");var j=R==="$"?n:R==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",I=R==="$"?i:/[%p]/.test(T)?u:"",D=formatTypes[T],L=/[defgprs%]/.test(T);O=O===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function F(N){var B=j,z=I,V,W,U;if(T==="c")z=D(N)+z,N="";else{N=+N;var Q=N<0||1/N<0;if(N=isNaN(N)?p:D(Math.abs(N),O),M&&(N=formatTrim(N)),Q&&+N==0&&E!=="+"&&(Q=!1),B=(Q?E==="("?E:f:E==="-"||E==="("?"":E)+B,z=(T==="s"?prefixes[8+prefixExponent/3]:"")+z+(Q&&E==="("?")":""),L){for(V=-1,W=N.length;++V<W;)if(U=N.charCodeAt(V),48>U||U>57){z=(U===46?o+N.slice(V+1):N.slice(V))+z,N=N.slice(0,V);break}}}C&&!b&&(N=t(N,1/0));var q=B.length+N.length+z.length,G=q<A?new Array(A-q+1).join(_):"";switch(C&&b&&(N=t(G+N,G.length?A-z.length:1/0),G=""),S){case"<":N=B+N+z+G;break;case"=":N=B+G+N+z;break;case"^":N=G.slice(0,q=G.length>>1)+B+N+z+G.slice(q);break;default:N=G+B+N+z;break}return l(N)}return F.toString=function(){return g+""},F}function m(g,_){var S=d((g=formatSpecifier(g),g.type="f",g)),E=Math.max(-8,Math.min(8,Math.floor(exponent(_)/3)))*3,R=Math.pow(10,-E),b=prefixes[8+E/3];return function(A){return S(R*A)+b}}return{format:d,formatPrefix:m}}var locale$1,format,formatPrefix;defaultLocale$1({thousands:",",grouping:[3],currency:["$",""]});function defaultLocale$1(e){return locale$1=formatLocale$1(e),format=locale$1.format,formatPrefix=locale$1.formatPrefix,locale$1}function precisionFixed(e){return Math.max(0,-exponent(Math.abs(e)))}function precisionPrefix(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(exponent(t)/3)))*3-exponent(Math.abs(e)))}function precisionRound(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,exponent(t)-exponent(e))+1}function tickFormat(e,t,n,i){var o=tickStep(e,t,n),l;switch(i=formatSpecifier(i??",f"),i.type){case"s":{var u=Math.max(Math.abs(e),Math.abs(t));return i.precision==null&&!isNaN(l=precisionPrefix(o,u))&&(i.precision=l),formatPrefix(i,u)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(l=precisionRound(o,Math.max(Math.abs(e),Math.abs(t))))&&(i.precision=l-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(l=precisionFixed(o))&&(i.precision=l-(i.type==="%")*2);break}}return format(i)}function linearish(e){var t=e.domain;return e.ticks=function(n){var i=t();return ticks(i[0],i[i.length-1],n??10)},e.tickFormat=function(n,i){var o=t();return tickFormat(o[0],o[o.length-1],n??10,i)},e.nice=function(n){n==null&&(n=10);var i=t(),o=0,l=i.length-1,u=i[o],f=i[l],p,d,m=10;for(f<u&&(d=u,u=f,f=d,d=o,o=l,l=d);m-- >0;){if(d=tickIncrement(u,f,n),d===p)return i[o]=u,i[l]=f,t(i);if(d>0)u=Math.floor(u/d)*d,f=Math.ceil(f/d)*d;else if(d<0)u=Math.ceil(u*d)/d,f=Math.floor(f*d)/d;else break;p=d}return e},e}function linear(){var e=continuous();return e.copy=function(){return copy$1(e,linear())},initRange.apply(e,arguments),linearish(e)}function identity$2(e){var t;function n(i){return i==null||isNaN(i=+i)?t:i}return n.invert=n,n.domain=n.range=function(i){return arguments.length?(e=Array.from(i,number$1),n):e.slice()},n.unknown=function(i){return arguments.length?(t=i,n):t},n.copy=function(){return identity$2(e).unknown(t)},e=arguments.length?Array.from(e,number$1):[0,1],linearish(n)}function nice(e,t){e=e.slice();var n=0,i=e.length-1,o=e[n],l=e[i],u;return l<o&&(u=n,n=i,i=u,u=o,o=l,l=u),e[n]=t.floor(o),e[i]=t.ceil(l),e}function transformLog(e){return Math.log(e)}function transformExp(e){return Math.exp(e)}function transformLogn(e){return-Math.log(-e)}function transformExpn(e){return-Math.exp(-e)}function pow10(e){return isFinite(e)?+("1e"+e):e<0?0:e}function powp(e){return e===10?pow10:e===Math.E?Math.exp:t=>Math.pow(e,t)}function logp(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function reflect(e){return(t,n)=>-e(-t,n)}function loggish(e){const t=e(transformLog,transformExp),n=t.domain;let i=10,o,l;function u(){return o=logp(i),l=powp(i),n()[0]<0?(o=reflect(o),l=reflect(l),e(transformLogn,transformExpn)):e(transformLog,transformExp),t}return t.base=function(f){return arguments.length?(i=+f,u()):i},t.domain=function(f){return arguments.length?(n(f),u()):n()},t.ticks=f=>{const p=n();let d=p[0],m=p[p.length-1];const g=m<d;g&&([d,m]=[m,d]);let _=o(d),S=o(m),E,R;const b=f==null?10:+f;let A=[];if(!(i%1)&&S-_<b){if(_=Math.floor(_),S=Math.ceil(S),d>0){for(;_<=S;++_)for(E=1;E<i;++E)if(R=_<0?E/l(-_):E*l(_),!(R<d)){if(R>m)break;A.push(R)}}else for(;_<=S;++_)for(E=i-1;E>=1;--E)if(R=_>0?E/l(-_):E*l(_),!(R<d)){if(R>m)break;A.push(R)}A.length*2<b&&(A=ticks(d,m,b))}else A=ticks(_,S,Math.min(S-_,b)).map(l);return g?A.reverse():A},t.tickFormat=(f,p)=>{if(f==null&&(f=10),p==null&&(p=i===10?"s":","),typeof p!="function"&&(!(i%1)&&(p=formatSpecifier(p)).precision==null&&(p.trim=!0),p=format(p)),f===1/0)return p;const d=Math.max(1,i*f/t.ticks().length);return m=>{let g=m/l(Math.round(o(m)));return g*i<i-.5&&(g*=i),g<=d?p(m):""}},t.nice=()=>n(nice(n(),{floor:f=>l(Math.floor(o(f))),ceil:f=>l(Math.ceil(o(f)))})),t}function log(){const e=loggish(transformer$2()).domain([1,10]);return e.copy=()=>copy$1(e,log()).base(e.base()),initRange.apply(e,arguments),e}function transformSymlog(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function transformSymexp(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function symlogish(e){var t=1,n=e(transformSymlog(t),transformSymexp(t));return n.constant=function(i){return arguments.length?e(transformSymlog(t=+i),transformSymexp(t)):t},linearish(n)}function symlog(){var e=symlogish(transformer$2());return e.copy=function(){return copy$1(e,symlog()).constant(e.constant())},initRange.apply(e,arguments)}function transformPow(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function transformSqrt(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function transformSquare(e){return e<0?-e*e:e*e}function powish(e){var t=e(identity$4,identity$4),n=1;function i(){return n===1?e(identity$4,identity$4):n===.5?e(transformSqrt,transformSquare):e(transformPow(n),transformPow(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,i()):n},linearish(t)}function pow(){var e=powish(transformer$2());return e.copy=function(){return copy$1(e,pow()).exponent(e.exponent())},initRange.apply(e,arguments),e}function sqrt(){return pow.apply(null,arguments).exponent(.5)}function square(e){return Math.sign(e)*e*e}function unsquare(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function radial(){var e=continuous(),t=[0,1],n=!1,i;function o(l){var u=unsquare(e(l));return isNaN(u)?i:n?Math.round(u):u}return o.invert=function(l){return e.invert(square(l))},o.domain=function(l){return arguments.length?(e.domain(l),o):e.domain()},o.range=function(l){return arguments.length?(e.range((t=Array.from(l,number$1)).map(square)),o):t.slice()},o.rangeRound=function(l){return o.range(l).round(!0)},o.round=function(l){return arguments.length?(n=!!l,o):n},o.clamp=function(l){return arguments.length?(e.clamp(l),o):e.clamp()},o.unknown=function(l){return arguments.length?(i=l,o):i},o.copy=function(){return radial(e.domain(),t).round(n).clamp(e.clamp()).unknown(i)},initRange.apply(o,arguments),linearish(o)}function quantile(){var e=[],t=[],n=[],i;function o(){var u=0,f=Math.max(1,t.length);for(n=new Array(f-1);++u<f;)n[u-1]=quantileSorted(e,u/f);return l}function l(u){return u==null||isNaN(u=+u)?i:t[bisectRight(n,u)]}return l.invertExtent=function(u){var f=t.indexOf(u);return f<0?[NaN,NaN]:[f>0?n[f-1]:e[0],f<n.length?n[f]:e[e.length-1]]},l.domain=function(u){if(!arguments.length)return e.slice();e=[];for(let f of u)f!=null&&!isNaN(f=+f)&&e.push(f);return e.sort(ascending),o()},l.range=function(u){return arguments.length?(t=Array.from(u),o()):t.slice()},l.unknown=function(u){return arguments.length?(i=u,l):i},l.quantiles=function(){return n.slice()},l.copy=function(){return quantile().domain(e).range(t).unknown(i)},initRange.apply(l,arguments)}function quantize(){var e=0,t=1,n=1,i=[.5],o=[0,1],l;function u(p){return p!=null&&p<=p?o[bisectRight(i,p,0,n)]:l}function f(){var p=-1;for(i=new Array(n);++p<n;)i[p]=((p+1)*t-(p-n)*e)/(n+1);return u}return u.domain=function(p){return arguments.length?([e,t]=p,e=+e,t=+t,f()):[e,t]},u.range=function(p){return arguments.length?(n=(o=Array.from(p)).length-1,f()):o.slice()},u.invertExtent=function(p){var d=o.indexOf(p);return d<0?[NaN,NaN]:d<1?[e,i[0]]:d>=n?[i[n-1],t]:[i[d-1],i[d]]},u.unknown=function(p){return arguments.length&&(l=p),u},u.thresholds=function(){return i.slice()},u.copy=function(){return quantize().domain([e,t]).range(o).unknown(l)},initRange.apply(linearish(u),arguments)}function threshold(){var e=[.5],t=[0,1],n,i=1;function o(l){return l!=null&&l<=l?t[bisectRight(e,l,0,i)]:n}return o.domain=function(l){return arguments.length?(e=Array.from(l),i=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(l){return arguments.length?(t=Array.from(l),i=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(l){var u=t.indexOf(l);return[e[u-1],e[u]]},o.unknown=function(l){return arguments.length?(n=l,o):n},o.copy=function(){return threshold().domain(e).range(t).unknown(n)},initRange.apply(o,arguments)}const t0=new Date,t1=new Date;function timeInterval(e,t,n,i){function o(l){return e(l=arguments.length===0?new Date:new Date(+l)),l}return o.floor=l=>(e(l=new Date(+l)),l),o.ceil=l=>(e(l=new Date(l-1)),t(l,1),e(l),l),o.round=l=>{const u=o(l),f=o.ceil(l);return l-u<f-l?u:f},o.offset=(l,u)=>(t(l=new Date(+l),u==null?1:Math.floor(u)),l),o.range=(l,u,f)=>{const p=[];if(l=o.ceil(l),f=f==null?1:Math.floor(f),!(l<u)||!(f>0))return p;let d;do p.push(d=new Date(+l)),t(l,f),e(l);while(d<l&&l<u);return p},o.filter=l=>timeInterval(u=>{if(u>=u)for(;e(u),!l(u);)u.setTime(u-1)},(u,f)=>{if(u>=u)if(f<0)for(;++f<=0;)for(;t(u,-1),!l(u););else for(;--f>=0;)for(;t(u,1),!l(u););}),n&&(o.count=(l,u)=>(t0.setTime(+l),t1.setTime(+u),e(t0),e(t1),Math.floor(n(t0,t1))),o.every=l=>(l=Math.floor(l),!isFinite(l)||!(l>0)?null:l>1?o.filter(i?u=>i(u)%l===0:u=>o.count(0,u)%l===0):o)),o}const millisecond=timeInterval(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);millisecond.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?timeInterval(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):millisecond),millisecond.range;const durationSecond=1e3,durationMinute=durationSecond*60,durationHour=durationMinute*60,durationDay=durationHour*24,durationWeek=durationDay*7,durationMonth=durationDay*30,durationYear=durationDay*365,second=timeInterval(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*durationSecond)},(e,t)=>(t-e)/durationSecond,e=>e.getUTCSeconds());second.range;const timeMinute=timeInterval(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*durationSecond)},(e,t)=>{e.setTime(+e+t*durationMinute)},(e,t)=>(t-e)/durationMinute,e=>e.getMinutes());timeMinute.range;const utcMinute=timeInterval(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*durationMinute)},(e,t)=>(t-e)/durationMinute,e=>e.getUTCMinutes());utcMinute.range;const timeHour=timeInterval(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*durationSecond-e.getMinutes()*durationMinute)},(e,t)=>{e.setTime(+e+t*durationHour)},(e,t)=>(t-e)/durationHour,e=>e.getHours());timeHour.range;const utcHour=timeInterval(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*durationHour)},(e,t)=>(t-e)/durationHour,e=>e.getUTCHours());utcHour.range;const timeDay=timeInterval(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute)/durationDay,e=>e.getDate()-1);timeDay.range;const utcDay=timeInterval(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/durationDay,e=>e.getUTCDate()-1);utcDay.range;const unixDay=timeInterval(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/durationDay,e=>Math.floor(e/durationDay));unixDay.range;function timeWeekday(e){return timeInterval(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*durationMinute)/durationWeek)}const timeSunday=timeWeekday(0),timeMonday=timeWeekday(1),timeTuesday=timeWeekday(2),timeWednesday=timeWeekday(3),timeThursday=timeWeekday(4),timeFriday=timeWeekday(5),timeSaturday=timeWeekday(6);timeSunday.range,timeMonday.range,timeTuesday.range,timeWednesday.range,timeThursday.range,timeFriday.range,timeSaturday.range;function utcWeekday(e){return timeInterval(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/durationWeek)}const utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range,utcMonday.range,utcTuesday.range,utcWednesday.range,utcThursday.range,utcFriday.range,utcSaturday.range;const timeMonth=timeInterval(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());timeMonth.range;const utcMonth=timeInterval(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());utcMonth.range;const timeYear=timeInterval(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());timeYear.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:timeInterval(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),timeYear.range;const utcYear=timeInterval(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());utcYear.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:timeInterval(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),utcYear.range;function ticker(e,t,n,i,o,l){const u=[[second,1,durationSecond],[second,5,5*durationSecond],[second,15,15*durationSecond],[second,30,30*durationSecond],[l,1,durationMinute],[l,5,5*durationMinute],[l,15,15*durationMinute],[l,30,30*durationMinute],[o,1,durationHour],[o,3,3*durationHour],[o,6,6*durationHour],[o,12,12*durationHour],[i,1,durationDay],[i,2,2*durationDay],[n,1,durationWeek],[t,1,durationMonth],[t,3,3*durationMonth],[e,1,durationYear]];function f(d,m,g){const _=m<d;_&&([d,m]=[m,d]);const S=g&&typeof g.range=="function"?g:p(d,m,g),E=S?S.range(d,+m+1):[];return _?E.reverse():E}function p(d,m,g){const _=Math.abs(m-d)/g,S=bisector(([,,b])=>b).right(u,_);if(S===u.length)return e.every(tickStep(d/durationYear,m/durationYear,g));if(S===0)return millisecond.every(Math.max(tickStep(d,m,g),1));const[E,R]=u[_/u[S-1][2]<u[S][2]/_?S-1:S];return E.every(R)}return[f,p]}const[utcTicks,utcTickInterval]=ticker(utcYear,utcMonth,utcSunday,unixDay,utcHour,utcMinute),[timeTicks,timeTickInterval]=ticker(timeYear,timeMonth,timeSunday,timeDay,timeHour,timeMinute);function localDate(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function utcDate(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function newDate(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function formatLocale(e){var t=e.dateTime,n=e.date,i=e.time,o=e.periods,l=e.days,u=e.shortDays,f=e.months,p=e.shortMonths,d=formatRe(o),m=formatLookup(o),g=formatRe(l),_=formatLookup(l),S=formatRe(u),E=formatLookup(u),R=formatRe(f),b=formatLookup(f),A=formatRe(p),C=formatLookup(p),O={a:Q,A:q,b:G,B:H,c:null,d:formatDayOfMonth,e:formatDayOfMonth,f:formatMicroseconds,g:formatYearISO,G:formatFullYearISO,H:formatHour24,I:formatHour12,j:formatDayOfYear,L:formatMilliseconds,m:formatMonthNumber,M:formatMinutes,p:Z,q:ee,Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatSeconds,u:formatWeekdayNumberMonday,U:formatWeekNumberSunday,V:formatWeekNumberISO,w:formatWeekdayNumberSunday,W:formatWeekNumberMonday,x:null,X:null,y:formatYear,Y:formatFullYear,Z:formatZone,"%":formatLiteralPercent},M={a:ne,A:ie,b:oe,B:ce,c:null,d:formatUTCDayOfMonth,e:formatUTCDayOfMonth,f:formatUTCMicroseconds,g:formatUTCYearISO,G:formatUTCFullYearISO,H:formatUTCHour24,I:formatUTCHour12,j:formatUTCDayOfYear,L:formatUTCMilliseconds,m:formatUTCMonthNumber,M:formatUTCMinutes,p:le,q:ue,Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatUTCSeconds,u:formatUTCWeekdayNumberMonday,U:formatUTCWeekNumberSunday,V:formatUTCWeekNumberISO,w:formatUTCWeekdayNumberSunday,W:formatUTCWeekNumberMonday,x:null,X:null,y:formatUTCYear,Y:formatUTCFullYear,Z:formatUTCZone,"%":formatLiteralPercent},T={a:F,A:N,b:B,B:z,c:V,d:parseDayOfMonth,e:parseDayOfMonth,f:parseMicroseconds,g:parseYear,G:parseFullYear,H:parseHour24,I:parseHour24,j:parseDayOfYear,L:parseMilliseconds,m:parseMonthNumber,M:parseMinutes,p:L,q:parseQuarter,Q:parseUnixTimestamp,s:parseUnixTimestampSeconds,S:parseSeconds,u:parseWeekdayNumberMonday,U:parseWeekNumberSunday,V:parseWeekNumberISO,w:parseWeekdayNumberSunday,W:parseWeekNumberMonday,x:W,X:U,y:parseYear,Y:parseFullYear,Z:parseZone,"%":parseLiteralPercent};O.x=j(n,O),O.X=j(i,O),O.c=j(t,O),M.x=j(n,M),M.X=j(i,M),M.c=j(t,M);function j(te,se){return function(ae){var K=[],pe=-1,J=0,fe=te.length,de,me,ye;for(ae instanceof Date||(ae=new Date(+ae));++pe<fe;)te.charCodeAt(pe)===37&&(K.push(te.slice(J,pe)),(me=pads[de=te.charAt(++pe)])!=null?de=te.charAt(++pe):me=de==="e"?" ":"0",(ye=se[de])&&(de=ye(ae,me)),K.push(de),J=pe+1);return K.push(te.slice(J,pe)),K.join("")}}function I(te,se){return function(ae){var K=newDate(1900,void 0,1),pe=D(K,te,ae+="",0),J,fe;if(pe!=ae.length)return null;if("Q"in K)return new Date(K.Q);if("s"in K)return new Date(K.s*1e3+("L"in K?K.L:0));if(se&&!("Z"in K)&&(K.Z=0),"p"in K&&(K.H=K.H%12+K.p*12),K.m===void 0&&(K.m="q"in K?K.q:0),"V"in K){if(K.V<1||K.V>53)return null;"w"in K||(K.w=1),"Z"in K?(J=utcDate(newDate(K.y,0,1)),fe=J.getUTCDay(),J=fe>4||fe===0?utcMonday.ceil(J):utcMonday(J),J=utcDay.offset(J,(K.V-1)*7),K.y=J.getUTCFullYear(),K.m=J.getUTCMonth(),K.d=J.getUTCDate()+(K.w+6)%7):(J=localDate(newDate(K.y,0,1)),fe=J.getDay(),J=fe>4||fe===0?timeMonday.ceil(J):timeMonday(J),J=timeDay.offset(J,(K.V-1)*7),K.y=J.getFullYear(),K.m=J.getMonth(),K.d=J.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),fe="Z"in K?utcDate(newDate(K.y,0,1)).getUTCDay():localDate(newDate(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(fe+5)%7:K.w+K.U*7-(fe+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,utcDate(K)):localDate(K)}}function D(te,se,ae,K){for(var pe=0,J=se.length,fe=ae.length,de,me;pe<J;){if(K>=fe)return-1;if(de=se.charCodeAt(pe++),de===37){if(de=se.charAt(pe++),me=T[de in pads?se.charAt(pe++):de],!me||(K=me(te,ae,K))<0)return-1}else if(de!=ae.charCodeAt(K++))return-1}return K}function L(te,se,ae){var K=d.exec(se.slice(ae));return K?(te.p=m.get(K[0].toLowerCase()),ae+K[0].length):-1}function F(te,se,ae){var K=S.exec(se.slice(ae));return K?(te.w=E.get(K[0].toLowerCase()),ae+K[0].length):-1}function N(te,se,ae){var K=g.exec(se.slice(ae));return K?(te.w=_.get(K[0].toLowerCase()),ae+K[0].length):-1}function B(te,se,ae){var K=A.exec(se.slice(ae));return K?(te.m=C.get(K[0].toLowerCase()),ae+K[0].length):-1}function z(te,se,ae){var K=R.exec(se.slice(ae));return K?(te.m=b.get(K[0].toLowerCase()),ae+K[0].length):-1}function V(te,se,ae){return D(te,t,se,ae)}function W(te,se,ae){return D(te,n,se,ae)}function U(te,se,ae){return D(te,i,se,ae)}function Q(te){return u[te.getDay()]}function q(te){return l[te.getDay()]}function G(te){return p[te.getMonth()]}function H(te){return f[te.getMonth()]}function Z(te){return o[+(te.getHours()>=12)]}function ee(te){return 1+~~(te.getMonth()/3)}function ne(te){return u[te.getUTCDay()]}function ie(te){return l[te.getUTCDay()]}function oe(te){return p[te.getUTCMonth()]}function ce(te){return f[te.getUTCMonth()]}function le(te){return o[+(te.getUTCHours()>=12)]}function ue(te){return 1+~~(te.getUTCMonth()/3)}return{format:function(te){var se=j(te+="",O);return se.toString=function(){return te},se},parse:function(te){var se=I(te+="",!1);return se.toString=function(){return te},se},utcFormat:function(te){var se=j(te+="",M);return se.toString=function(){return te},se},utcParse:function(te){var se=I(te+="",!0);return se.toString=function(){return te},se}}}var pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad(e,t,n){var i=e<0?"-":"",o=(i?-e:e)+"",l=o.length;return i+(l<n?new Array(n-l+1).join(t)+o:o)}function requote(e){return e.replace(requoteRe,"\\$&")}function formatRe(e){return new RegExp("^(?:"+e.map(requote).join("|")+")","i")}function formatLookup(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function parseWeekdayNumberSunday(e,t,n){var i=numberRe.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function parseWeekdayNumberMonday(e,t,n){var i=numberRe.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function parseWeekNumberSunday(e,t,n){var i=numberRe.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function parseWeekNumberISO(e,t,n){var i=numberRe.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function parseWeekNumberMonday(e,t,n){var i=numberRe.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function parseFullYear(e,t,n){var i=numberRe.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function parseYear(e,t,n){var i=numberRe.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function parseZone(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function parseQuarter(e,t,n){var i=numberRe.exec(t.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function parseMonthNumber(e,t,n){var i=numberRe.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function parseDayOfMonth(e,t,n){var i=numberRe.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function parseDayOfYear(e,t,n){var i=numberRe.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function parseHour24(e,t,n){var i=numberRe.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function parseMinutes(e,t,n){var i=numberRe.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function parseSeconds(e,t,n){var i=numberRe.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function parseMilliseconds(e,t,n){var i=numberRe.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function parseMicroseconds(e,t,n){var i=numberRe.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function parseLiteralPercent(e,t,n){var i=percentRe.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function parseUnixTimestamp(e,t,n){var i=numberRe.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function parseUnixTimestampSeconds(e,t,n){var i=numberRe.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function formatDayOfMonth(e,t){return pad(e.getDate(),t,2)}function formatHour24(e,t){return pad(e.getHours(),t,2)}function formatHour12(e,t){return pad(e.getHours()%12||12,t,2)}function formatDayOfYear(e,t){return pad(1+timeDay.count(timeYear(e),e),t,3)}function formatMilliseconds(e,t){return pad(e.getMilliseconds(),t,3)}function formatMicroseconds(e,t){return formatMilliseconds(e,t)+"000"}function formatMonthNumber(e,t){return pad(e.getMonth()+1,t,2)}function formatMinutes(e,t){return pad(e.getMinutes(),t,2)}function formatSeconds(e,t){return pad(e.getSeconds(),t,2)}function formatWeekdayNumberMonday(e){var t=e.getDay();return t===0?7:t}function formatWeekNumberSunday(e,t){return pad(timeSunday.count(timeYear(e)-1,e),t,2)}function dISO(e){var t=e.getDay();return t>=4||t===0?timeThursday(e):timeThursday.ceil(e)}function formatWeekNumberISO(e,t){return e=dISO(e),pad(timeThursday.count(timeYear(e),e)+(timeYear(e).getDay()===4),t,2)}function formatWeekdayNumberSunday(e){return e.getDay()}function formatWeekNumberMonday(e,t){return pad(timeMonday.count(timeYear(e)-1,e),t,2)}function formatYear(e,t){return pad(e.getFullYear()%100,t,2)}function formatYearISO(e,t){return e=dISO(e),pad(e.getFullYear()%100,t,2)}function formatFullYear(e,t){return pad(e.getFullYear()%1e4,t,4)}function formatFullYearISO(e,t){var n=e.getDay();return e=n>=4||n===0?timeThursday(e):timeThursday.ceil(e),pad(e.getFullYear()%1e4,t,4)}function formatZone(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pad(t/60|0,"0",2)+pad(t%60,"0",2)}function formatUTCDayOfMonth(e,t){return pad(e.getUTCDate(),t,2)}function formatUTCHour24(e,t){return pad(e.getUTCHours(),t,2)}function formatUTCHour12(e,t){return pad(e.getUTCHours()%12||12,t,2)}function formatUTCDayOfYear(e,t){return pad(1+utcDay.count(utcYear(e),e),t,3)}function formatUTCMilliseconds(e,t){return pad(e.getUTCMilliseconds(),t,3)}function formatUTCMicroseconds(e,t){return formatUTCMilliseconds(e,t)+"000"}function formatUTCMonthNumber(e,t){return pad(e.getUTCMonth()+1,t,2)}function formatUTCMinutes(e,t){return pad(e.getUTCMinutes(),t,2)}function formatUTCSeconds(e,t){return pad(e.getUTCSeconds(),t,2)}function formatUTCWeekdayNumberMonday(e){var t=e.getUTCDay();return t===0?7:t}function formatUTCWeekNumberSunday(e,t){return pad(utcSunday.count(utcYear(e)-1,e),t,2)}function UTCdISO(e){var t=e.getUTCDay();return t>=4||t===0?utcThursday(e):utcThursday.ceil(e)}function formatUTCWeekNumberISO(e,t){return e=UTCdISO(e),pad(utcThursday.count(utcYear(e),e)+(utcYear(e).getUTCDay()===4),t,2)}function formatUTCWeekdayNumberSunday(e){return e.getUTCDay()}function formatUTCWeekNumberMonday(e,t){return pad(utcMonday.count(utcYear(e)-1,e),t,2)}function formatUTCYear(e,t){return pad(e.getUTCFullYear()%100,t,2)}function formatUTCYearISO(e,t){return e=UTCdISO(e),pad(e.getUTCFullYear()%100,t,2)}function formatUTCFullYear(e,t){return pad(e.getUTCFullYear()%1e4,t,4)}function formatUTCFullYearISO(e,t){var n=e.getUTCDay();return e=n>=4||n===0?utcThursday(e):utcThursday.ceil(e),pad(e.getUTCFullYear()%1e4,t,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(e){return+e}function formatUnixTimestampSeconds(e){return Math.floor(+e/1e3)}var locale,timeFormat,utcFormat;defaultLocale({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function defaultLocale(e){return locale=formatLocale(e),timeFormat=locale.format,locale.parse,utcFormat=locale.utcFormat,locale.utcParse,locale}function date(e){return new Date(e)}function number(e){return e instanceof Date?+e:+new Date(+e)}function calendar(e,t,n,i,o,l,u,f,p,d){var m=continuous(),g=m.invert,_=m.domain,S=d(".%L"),E=d(":%S"),R=d("%I:%M"),b=d("%I %p"),A=d("%a %d"),C=d("%b %d"),O=d("%B"),M=d("%Y");function T(j){return(p(j)<j?S:f(j)<j?E:u(j)<j?R:l(j)<j?b:i(j)<j?o(j)<j?A:C:n(j)<j?O:M)(j)}return m.invert=function(j){return new Date(g(j))},m.domain=function(j){return arguments.length?_(Array.from(j,number)):_().map(date)},m.ticks=function(j){var I=_();return e(I[0],I[I.length-1],j??10)},m.tickFormat=function(j,I){return I==null?T:d(I)},m.nice=function(j){var I=_();return(!j||typeof j.range!="function")&&(j=t(I[0],I[I.length-1],j??10)),j?_(nice(I,j)):m},m.copy=function(){return copy$1(m,calendar(e,t,n,i,o,l,u,f,p,d))},m}function time(){return initRange.apply(calendar(timeTicks,timeTickInterval,timeYear,timeMonth,timeSunday,timeDay,timeHour,timeMinute,second,timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function utcTime(){return initRange.apply(calendar(utcTicks,utcTickInterval,utcYear,utcMonth,utcSunday,utcDay,utcHour,utcMinute,second,utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function transformer$1(){var e=0,t=1,n,i,o,l,u=identity$4,f=!1,p;function d(g){return g==null||isNaN(g=+g)?p:u(o===0?.5:(g=(l(g)-n)*o,f?Math.max(0,Math.min(1,g)):g))}d.domain=function(g){return arguments.length?([e,t]=g,n=l(e=+e),i=l(t=+t),o=n===i?0:1/(i-n),d):[e,t]},d.clamp=function(g){return arguments.length?(f=!!g,d):f},d.interpolator=function(g){return arguments.length?(u=g,d):u};function m(g){return function(_){var S,E;return arguments.length?([S,E]=_,u=g(S,E),d):[u(0),u(1)]}}return d.range=m(interpolate),d.rangeRound=m(interpolateRound),d.unknown=function(g){return arguments.length?(p=g,d):p},function(g){return l=g,n=g(e),i=g(t),o=n===i?0:1/(i-n),d}}function copy(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function sequential(){var e=linearish(transformer$1()(identity$4));return e.copy=function(){return copy(e,sequential())},initInterpolator.apply(e,arguments)}function sequentialLog(){var e=loggish(transformer$1()).domain([1,10]);return e.copy=function(){return copy(e,sequentialLog()).base(e.base())},initInterpolator.apply(e,arguments)}function sequentialSymlog(){var e=symlogish(transformer$1());return e.copy=function(){return copy(e,sequentialSymlog()).constant(e.constant())},initInterpolator.apply(e,arguments)}function sequentialPow(){var e=powish(transformer$1());return e.copy=function(){return copy(e,sequentialPow()).exponent(e.exponent())},initInterpolator.apply(e,arguments)}function sequentialSqrt(){return sequentialPow.apply(null,arguments).exponent(.5)}function sequentialQuantile(){var e=[],t=identity$4;function n(i){if(i!=null&&!isNaN(i=+i))return t((bisectRight(e,i,1)-1)/(e.length-1))}return n.domain=function(i){if(!arguments.length)return e.slice();e=[];for(let o of i)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(ascending),n},n.interpolator=function(i){return arguments.length?(t=i,n):t},n.range=function(){return e.map((i,o)=>t(o/(e.length-1)))},n.quantiles=function(i){return Array.from({length:i+1},(o,l)=>quantile$1(e,l/i))},n.copy=function(){return sequentialQuantile(t).domain(e)},initInterpolator.apply(n,arguments)}function transformer(){var e=0,t=.5,n=1,i=1,o,l,u,f,p,d=identity$4,m,g=!1,_;function S(R){return isNaN(R=+R)?_:(R=.5+((R=+m(R))-l)*(i*R<i*l?f:p),d(g?Math.max(0,Math.min(1,R)):R))}S.domain=function(R){return arguments.length?([e,t,n]=R,o=m(e=+e),l=m(t=+t),u=m(n=+n),f=o===l?0:.5/(l-o),p=l===u?0:.5/(u-l),i=l<o?-1:1,S):[e,t,n]},S.clamp=function(R){return arguments.length?(g=!!R,S):g},S.interpolator=function(R){return arguments.length?(d=R,S):d};function E(R){return function(b){var A,C,O;return arguments.length?([A,C,O]=b,d=piecewise(R,[A,C,O]),S):[d(0),d(.5),d(1)]}}return S.range=E(interpolate),S.rangeRound=E(interpolateRound),S.unknown=function(R){return arguments.length?(_=R,S):_},function(R){return m=R,o=R(e),l=R(t),u=R(n),f=o===l?0:.5/(l-o),p=l===u?0:.5/(u-l),i=l<o?-1:1,S}}function diverging(){var e=linearish(transformer()(identity$4));return e.copy=function(){return copy(e,diverging())},initInterpolator.apply(e,arguments)}function divergingLog(){var e=loggish(transformer()).domain([.1,1,10]);return e.copy=function(){return copy(e,divergingLog()).base(e.base())},initInterpolator.apply(e,arguments)}function divergingSymlog(){var e=symlogish(transformer());return e.copy=function(){return copy(e,divergingSymlog()).constant(e.constant())},initInterpolator.apply(e,arguments)}function divergingPow(){var e=powish(transformer());return e.copy=function(){return copy(e,divergingPow()).exponent(e.exponent())},initInterpolator.apply(e,arguments)}function divergingSqrt(){return divergingPow.apply(null,arguments).exponent(.5)}const d3Scales=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:band,scaleDiverging:diverging,scaleDivergingLog:divergingLog,scaleDivergingPow:divergingPow,scaleDivergingSqrt:divergingSqrt,scaleDivergingSymlog:divergingSymlog,scaleIdentity:identity$2,scaleImplicit:implicit,scaleLinear:linear,scaleLog:log,scaleOrdinal:ordinal,scalePoint:point,scalePow:pow,scaleQuantile:quantile,scaleQuantize:quantize,scaleRadial:radial,scaleSequential:sequential,scaleSequentialLog:sequentialLog,scaleSequentialPow:sequentialPow,scaleSequentialQuantile:sequentialQuantile,scaleSequentialSqrt:sequentialSqrt,scaleSequentialSymlog:sequentialSymlog,scaleSqrt:sqrt,scaleSymlog:symlog,scaleThreshold:threshold,scaleTime:time,scaleUtc:utcTime,tickFormat},Symbol.toStringTag,{value:"Module"}));var _baseExtremum,hasRequired_baseExtremum;function require_baseExtremum(){if(hasRequired_baseExtremum)return _baseExtremum;hasRequired_baseExtremum=1;var e=requireIsSymbol();function t(n,i,o){for(var l=-1,u=n.length;++l<u;){var f=n[l],p=i(f);if(p!=null&&(d===void 0?p===p&&!e(p):o(p,d)))var d=p,m=f}return m}return _baseExtremum=t,_baseExtremum}var _baseGt,hasRequired_baseGt;function require_baseGt(){if(hasRequired_baseGt)return _baseGt;hasRequired_baseGt=1;function e(t,n){return t>n}return _baseGt=e,_baseGt}var max_1,hasRequiredMax;function requireMax(){if(hasRequiredMax)return max_1;hasRequiredMax=1;var e=require_baseExtremum(),t=require_baseGt(),n=requireIdentity();function i(o){return o&&o.length?e(o,n,t):void 0}return max_1=i,max_1}var maxExports=requireMax();const max=getDefaultExportFromCjs(maxExports);var _baseLt,hasRequired_baseLt;function require_baseLt(){if(hasRequired_baseLt)return _baseLt;hasRequired_baseLt=1;function e(t,n){return t<n}return _baseLt=e,_baseLt}var min_1,hasRequiredMin;function requireMin(){if(hasRequiredMin)return min_1;hasRequiredMin=1;var e=require_baseExtremum(),t=require_baseLt(),n=requireIdentity();function i(o){return o&&o.length?e(o,n,t):void 0}return min_1=i,min_1}var minExports=requireMin();const min=getDefaultExportFromCjs(minExports);var map_1,hasRequiredMap;function requireMap(){if(hasRequiredMap)return map_1;hasRequiredMap=1;var e=require_arrayMap(),t=require_baseIteratee(),n=require_baseMap(),i=requireIsArray();function o(l,u){var f=i(l)?e:n;return f(l,t(u,3))}return map_1=o,map_1}var flatMap_1,hasRequiredFlatMap;function requireFlatMap(){if(hasRequiredFlatMap)return flatMap_1;hasRequiredFlatMap=1;var e=require_baseFlatten(),t=requireMap();function n(i,o){return e(t(i,o),1)}return flatMap_1=n,flatMap_1}var flatMapExports=requireFlatMap();const flatMap=getDefaultExportFromCjs(flatMapExports);var isEqual_1,hasRequiredIsEqual;function requireIsEqual(){if(hasRequiredIsEqual)return isEqual_1;hasRequiredIsEqual=1;var e=require_baseIsEqual();function t(n,i){return e(n,i)}return isEqual_1=t,isEqual_1}var isEqualExports=requireIsEqual();const isEqual=getDefaultExportFromCjs(isEqualExports);var MAX_DIGITS=1e9,defaults={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Decimal,external=!0,decimalError="[DecimalError] ",invalidArgument=decimalError+"Invalid argument: ",exponentOutOfRange=decimalError+"Exponent out of range: ",mathfloor=Math.floor,mathpow=Math.pow,isDecimal=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ONE,BASE=1e7,LOG_BASE=7,MAX_SAFE_INTEGER=9007199254740991,MAX_E=mathfloor(MAX_SAFE_INTEGER/LOG_BASE),P={};P.absoluteValue=P.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},P.comparedTo=P.cmp=function(e){var t,n,i,o,l=this;if(e=new l.constructor(e),l.s!==e.s)return l.s||-e.s;if(l.e!==e.e)return l.e>e.e^l.s<0?1:-1;for(i=l.d.length,o=e.d.length,t=0,n=i<o?i:o;t<n;++t)if(l.d[t]!==e.d[t])return l.d[t]>e.d[t]^l.s<0?1:-1;return i===o?0:i>o^l.s<0?1:-1},P.decimalPlaces=P.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*LOG_BASE;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},P.dividedBy=P.div=function(e){return divide(this,new this.constructor(e))},P.dividedToIntegerBy=P.idiv=function(e){var t=this,n=t.constructor;return round(divide(t,new n(e),0,1),n.precision)},P.equals=P.eq=function(e){return!this.cmp(e)},P.exponent=function(){return getBase10Exponent(this)},P.greaterThan=P.gt=function(e){return this.cmp(e)>0},P.greaterThanOrEqualTo=P.gte=function(e){return this.cmp(e)>=0},P.isInteger=P.isint=function(){return this.e>this.d.length-2},P.isNegative=P.isneg=function(){return this.s<0},P.isPositive=P.ispos=function(){return this.s>0},P.isZero=function(){return this.s===0},P.lessThan=P.lt=function(e){return this.cmp(e)<0},P.lessThanOrEqualTo=P.lte=function(e){return this.cmp(e)<1},P.logarithm=P.log=function(e){var t,n=this,i=n.constructor,o=i.precision,l=o+5;if(e===void 0)e=new i(10);else if(e=new i(e),e.s<1||e.eq(ONE))throw Error(decimalError+"NaN");if(n.s<1)throw Error(decimalError+(n.s?"NaN":"-Infinity"));return n.eq(ONE)?new i(0):(external=!1,t=divide(ln(n,l),ln(e,l),l),external=!0,round(t,o))},P.minus=P.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?subtract(t,e):add(t,(e.s=-e.s,e))},P.modulo=P.mod=function(e){var t,n=this,i=n.constructor,o=i.precision;if(e=new i(e),!e.s)throw Error(decimalError+"NaN");return n.s?(external=!1,t=divide(n,e,0,1).times(e),external=!0,n.minus(t)):round(new i(n),o)},P.naturalExponential=P.exp=function(){return exp(this)},P.naturalLogarithm=P.ln=function(){return ln(this)},P.negated=P.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},P.plus=P.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?add(t,e):subtract(t,(e.s=-e.s,e))},P.precision=P.sd=function(e){var t,n,i,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(invalidArgument+e);if(t=getBase10Exponent(o)+1,i=o.d.length-1,n=i*LOG_BASE+1,i=o.d[i],i){for(;i%10==0;i/=10)n--;for(i=o.d[0];i>=10;i/=10)n++}return e&&t>n?t:n},P.squareRoot=P.sqrt=function(){var e,t,n,i,o,l,u,f=this,p=f.constructor;if(f.s<1){if(!f.s)return new p(0);throw Error(decimalError+"NaN")}for(e=getBase10Exponent(f),external=!1,o=Math.sqrt(+f),o==0||o==1/0?(t=digitsToString(f.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=mathfloor((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),i=new p(t)):i=new p(o.toString()),n=p.precision,o=u=n+3;;)if(l=i,i=l.plus(divide(f,l,u+2)).times(.5),digitsToString(l.d).slice(0,u)===(t=digitsToString(i.d)).slice(0,u)){if(t=t.slice(u-3,u+1),o==u&&t=="4999"){if(round(l,n+1,0),l.times(l).eq(f)){i=l;break}}else if(t!="9999")break;u+=4}return external=!0,round(i,n)},P.times=P.mul=function(e){var t,n,i,o,l,u,f,p,d,m=this,g=m.constructor,_=m.d,S=(e=new g(e)).d;if(!m.s||!e.s)return new g(0);for(e.s*=m.s,n=m.e+e.e,p=_.length,d=S.length,p<d&&(l=_,_=S,S=l,u=p,p=d,d=u),l=[],u=p+d,i=u;i--;)l.push(0);for(i=d;--i>=0;){for(t=0,o=p+i;o>i;)f=l[o]+S[i]*_[o-i-1]+t,l[o--]=f%BASE|0,t=f/BASE|0;l[o]=(l[o]+t)%BASE|0}for(;!l[--u];)l.pop();return t?++n:l.shift(),e.d=l,e.e=n,external?round(e,g.precision):e},P.toDecimalPlaces=P.todp=function(e,t){var n=this,i=n.constructor;return n=new i(n),e===void 0?n:(checkInt32(e,0,MAX_DIGITS),t===void 0?t=i.rounding:checkInt32(t,0,8),round(n,e+getBase10Exponent(n)+1,t))},P.toExponential=function(e,t){var n,i=this,o=i.constructor;return e===void 0?n=toString(i,!0):(checkInt32(e,0,MAX_DIGITS),t===void 0?t=o.rounding:checkInt32(t,0,8),i=round(new o(i),e+1,t),n=toString(i,!0,e+1)),n},P.toFixed=function(e,t){var n,i,o=this,l=o.constructor;return e===void 0?toString(o):(checkInt32(e,0,MAX_DIGITS),t===void 0?t=l.rounding:checkInt32(t,0,8),i=round(new l(o),e+getBase10Exponent(o)+1,t),n=toString(i.abs(),!1,e+getBase10Exponent(i)+1),o.isneg()&&!o.isZero()?"-"+n:n)},P.toInteger=P.toint=function(){var e=this,t=e.constructor;return round(new t(e),getBase10Exponent(e)+1,t.rounding)},P.toNumber=function(){return+this},P.toPower=P.pow=function(e){var t,n,i,o,l,u,f=this,p=f.constructor,d=12,m=+(e=new p(e));if(!e.s)return new p(ONE);if(f=new p(f),!f.s){if(e.s<1)throw Error(decimalError+"Infinity");return f}if(f.eq(ONE))return f;if(i=p.precision,e.eq(ONE))return round(f,i);if(t=e.e,n=e.d.length-1,u=t>=n,l=f.s,u){if((n=m<0?-m:m)<=MAX_SAFE_INTEGER){for(o=new p(ONE),t=Math.ceil(i/LOG_BASE+4),external=!1;n%2&&(o=o.times(f),truncate(o.d,t)),n=mathfloor(n/2),n!==0;)f=f.times(f),truncate(f.d,t);return external=!0,e.s<0?new p(ONE).div(o):round(o,i)}}else if(l<0)throw Error(decimalError+"NaN");return l=l<0&&e.d[Math.max(t,n)]&1?-1:1,f.s=1,external=!1,o=e.times(ln(f,i+d)),external=!0,o=exp(o),o.s=l,o},P.toPrecision=function(e,t){var n,i,o=this,l=o.constructor;return e===void 0?(n=getBase10Exponent(o),i=toString(o,n<=l.toExpNeg||n>=l.toExpPos)):(checkInt32(e,1,MAX_DIGITS),t===void 0?t=l.rounding:checkInt32(t,0,8),o=round(new l(o),e,t),n=getBase10Exponent(o),i=toString(o,e<=n||n<=l.toExpNeg,e)),i},P.toSignificantDigits=P.tosd=function(e,t){var n=this,i=n.constructor;return e===void 0?(e=i.precision,t=i.rounding):(checkInt32(e,1,MAX_DIGITS),t===void 0?t=i.rounding:checkInt32(t,0,8)),round(new i(n),e,t)},P.toString=P.valueOf=P.val=P.toJSON=P[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=getBase10Exponent(e),n=e.constructor;return toString(e,t<=n.toExpNeg||t>=n.toExpPos)};function add(e,t){var n,i,o,l,u,f,p,d,m=e.constructor,g=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),external?round(t,g):t;if(p=e.d,d=t.d,u=e.e,o=t.e,p=p.slice(),l=u-o,l){for(l<0?(i=p,l=-l,f=d.length):(i=d,o=u,f=p.length),u=Math.ceil(g/LOG_BASE),f=u>f?u+1:f+1,l>f&&(l=f,i.length=1),i.reverse();l--;)i.push(0);i.reverse()}for(f=p.length,l=d.length,f-l<0&&(l=f,i=d,d=p,p=i),n=0;l;)n=(p[--l]=p[l]+d[l]+n)/BASE|0,p[l]%=BASE;for(n&&(p.unshift(n),++o),f=p.length;p[--f]==0;)p.pop();return t.d=p,t.e=o,external?round(t,g):t}function checkInt32(e,t,n){if(e!==~~e||e<t||e>n)throw Error(invalidArgument+e)}function digitsToString(e){var t,n,i,o=e.length-1,l="",u=e[0];if(o>0){for(l+=u,t=1;t<o;t++)i=e[t]+"",n=LOG_BASE-i.length,n&&(l+=getZeroString(n)),l+=i;u=e[t],i=u+"",n=LOG_BASE-i.length,n&&(l+=getZeroString(n))}else if(u===0)return"0";for(;u%10===0;)u/=10;return l+u}var divide=function(){function e(i,o){var l,u=0,f=i.length;for(i=i.slice();f--;)l=i[f]*o+u,i[f]=l%BASE|0,u=l/BASE|0;return u&&i.unshift(u),i}function t(i,o,l,u){var f,p;if(l!=u)p=l>u?1:-1;else for(f=p=0;f<l;f++)if(i[f]!=o[f]){p=i[f]>o[f]?1:-1;break}return p}function n(i,o,l){for(var u=0;l--;)i[l]-=u,u=i[l]<o[l]?1:0,i[l]=u*BASE+i[l]-o[l];for(;!i[0]&&i.length>1;)i.shift()}return function(i,o,l,u){var f,p,d,m,g,_,S,E,R,b,A,C,O,M,T,j,I,D,L=i.constructor,F=i.s==o.s?1:-1,N=i.d,B=o.d;if(!i.s)return new L(i);if(!o.s)throw Error(decimalError+"Division by zero");for(p=i.e-o.e,I=B.length,T=N.length,S=new L(F),E=S.d=[],d=0;B[d]==(N[d]||0);)++d;if(B[d]>(N[d]||0)&&--p,l==null?C=l=L.precision:u?C=l+(getBase10Exponent(i)-getBase10Exponent(o))+1:C=l,C<0)return new L(0);if(C=C/LOG_BASE+2|0,d=0,I==1)for(m=0,B=B[0],C++;(d<T||m)&&C--;d++)O=m*BASE+(N[d]||0),E[d]=O/B|0,m=O%B|0;else{for(m=BASE/(B[0]+1)|0,m>1&&(B=e(B,m),N=e(N,m),I=B.length,T=N.length),M=I,R=N.slice(0,I),b=R.length;b<I;)R[b++]=0;D=B.slice(),D.unshift(0),j=B[0],B[1]>=BASE/2&&++j;do m=0,f=t(B,R,I,b),f<0?(A=R[0],I!=b&&(A=A*BASE+(R[1]||0)),m=A/j|0,m>1?(m>=BASE&&(m=BASE-1),g=e(B,m),_=g.length,b=R.length,f=t(g,R,_,b),f==1&&(m--,n(g,I<_?D:B,_))):(m==0&&(f=m=1),g=B.slice()),_=g.length,_<b&&g.unshift(0),n(R,g,b),f==-1&&(b=R.length,f=t(B,R,I,b),f<1&&(m++,n(R,I<b?D:B,b))),b=R.length):f===0&&(m++,R=[0]),E[d++]=m,f&&R[0]?R[b++]=N[M]||0:(R=[N[M]],b=1);while((M++<T||R[0]!==void 0)&&C--)}return E[0]||E.shift(),S.e=p,round(S,u?l+getBase10Exponent(S)+1:l)}}();function exp(e,t){var n,i,o,l,u,f,p=0,d=0,m=e.constructor,g=m.precision;if(getBase10Exponent(e)>16)throw Error(exponentOutOfRange+getBase10Exponent(e));if(!e.s)return new m(ONE);for(external=!1,f=g,u=new m(.03125);e.abs().gte(.1);)e=e.times(u),d+=5;for(i=Math.log(mathpow(2,d))/Math.LN10*2+5|0,f+=i,n=o=l=new m(ONE),m.precision=f;;){if(o=round(o.times(e),f),n=n.times(++p),u=l.plus(divide(o,n,f)),digitsToString(u.d).slice(0,f)===digitsToString(l.d).slice(0,f)){for(;d--;)l=round(l.times(l),f);return m.precision=g,t==null?(external=!0,round(l,g)):l}l=u}}function getBase10Exponent(e){for(var t=e.e*LOG_BASE,n=e.d[0];n>=10;n/=10)t++;return t}function getLn10(e,t,n){if(t>e.LN10.sd())throw external=!0,n&&(e.precision=n),Error(decimalError+"LN10 precision limit exceeded");return round(new e(e.LN10),t)}function getZeroString(e){for(var t="";e--;)t+="0";return t}function ln(e,t){var n,i,o,l,u,f,p,d,m,g=1,_=10,S=e,E=S.d,R=S.constructor,b=R.precision;if(S.s<1)throw Error(decimalError+(S.s?"NaN":"-Infinity"));if(S.eq(ONE))return new R(0);if(t==null?(external=!1,d=b):d=t,S.eq(10))return t==null&&(external=!0),getLn10(R,d);if(d+=_,R.precision=d,n=digitsToString(E),i=n.charAt(0),l=getBase10Exponent(S),Math.abs(l)<15e14){for(;i<7&&i!=1||i==1&&n.charAt(1)>3;)S=S.times(e),n=digitsToString(S.d),i=n.charAt(0),g++;l=getBase10Exponent(S),i>1?(S=new R("0."+n),l++):S=new R(i+"."+n.slice(1))}else return p=getLn10(R,d+2,b).times(l+""),S=ln(new R(i+"."+n.slice(1)),d-_).plus(p),R.precision=b,t==null?(external=!0,round(S,b)):S;for(f=u=S=divide(S.minus(ONE),S.plus(ONE),d),m=round(S.times(S),d),o=3;;){if(u=round(u.times(m),d),p=f.plus(divide(u,new R(o),d)),digitsToString(p.d).slice(0,d)===digitsToString(f.d).slice(0,d))return f=f.times(2),l!==0&&(f=f.plus(getLn10(R,d+2,b).times(l+""))),f=divide(f,new R(g),d),R.precision=b,t==null?(external=!0,round(f,b)):f;f=p,o+=2}}function parseDecimal(e,t){var n,i,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),i=0;t.charCodeAt(i)===48;)++i;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(i,o),t){if(o-=i,n=n-i-1,e.e=mathfloor(n/LOG_BASE),e.d=[],i=(n+1)%LOG_BASE,n<0&&(i+=LOG_BASE),i<o){for(i&&e.d.push(+t.slice(0,i)),o-=LOG_BASE;i<o;)e.d.push(+t.slice(i,i+=LOG_BASE));t=t.slice(i),i=LOG_BASE-t.length}else i-=o;for(;i--;)t+="0";if(e.d.push(+t),external&&(e.e>MAX_E||e.e<-MAX_E))throw Error(exponentOutOfRange+n)}else e.s=0,e.e=0,e.d=[0];return e}function round(e,t,n){var i,o,l,u,f,p,d,m,g=e.d;for(u=1,l=g[0];l>=10;l/=10)u++;if(i=t-u,i<0)i+=LOG_BASE,o=t,d=g[m=0];else{if(m=Math.ceil((i+1)/LOG_BASE),l=g.length,m>=l)return e;for(d=l=g[m],u=1;l>=10;l/=10)u++;i%=LOG_BASE,o=i-LOG_BASE+u}if(n!==void 0&&(l=mathpow(10,u-o-1),f=d/l%10|0,p=t<0||g[m+1]!==void 0||d%l,p=n<4?(f||p)&&(n==0||n==(e.s<0?3:2)):f>5||f==5&&(n==4||p||n==6&&(i>0?o>0?d/mathpow(10,u-o):0:g[m-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return p?(l=getBase10Exponent(e),g.length=1,t=t-l-1,g[0]=mathpow(10,(LOG_BASE-t%LOG_BASE)%LOG_BASE),e.e=mathfloor(-t/LOG_BASE)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(i==0?(g.length=m,l=1,m--):(g.length=m+1,l=mathpow(10,LOG_BASE-i),g[m]=o>0?(d/mathpow(10,u-o)%mathpow(10,o)|0)*l:0),p)for(;;)if(m==0){(g[0]+=l)==BASE&&(g[0]=1,++e.e);break}else{if(g[m]+=l,g[m]!=BASE)break;g[m--]=0,l=1}for(i=g.length;g[--i]===0;)g.pop();if(external&&(e.e>MAX_E||e.e<-MAX_E))throw Error(exponentOutOfRange+getBase10Exponent(e));return e}function subtract(e,t){var n,i,o,l,u,f,p,d,m,g,_=e.constructor,S=_.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new _(e),external?round(t,S):t;if(p=e.d,g=t.d,i=t.e,d=e.e,p=p.slice(),u=d-i,u){for(m=u<0,m?(n=p,u=-u,f=g.length):(n=g,i=d,f=p.length),o=Math.max(Math.ceil(S/LOG_BASE),f)+2,u>o&&(u=o,n.length=1),n.reverse(),o=u;o--;)n.push(0);n.reverse()}else{for(o=p.length,f=g.length,m=o<f,m&&(f=o),o=0;o<f;o++)if(p[o]!=g[o]){m=p[o]<g[o];break}u=0}for(m&&(n=p,p=g,g=n,t.s=-t.s),f=p.length,o=g.length-f;o>0;--o)p[f++]=0;for(o=g.length;o>u;){if(p[--o]<g[o]){for(l=o;l&&p[--l]===0;)p[l]=BASE-1;--p[l],p[o]+=BASE}p[o]-=g[o]}for(;p[--f]===0;)p.pop();for(;p[0]===0;p.shift())--i;return p[0]?(t.d=p,t.e=i,external?round(t,S):t):new _(0)}function toString(e,t,n){var i,o=getBase10Exponent(e),l=digitsToString(e.d),u=l.length;return t?(n&&(i=n-u)>0?l=l.charAt(0)+"."+l.slice(1)+getZeroString(i):u>1&&(l=l.charAt(0)+"."+l.slice(1)),l=l+(o<0?"e":"e+")+o):o<0?(l="0."+getZeroString(-o-1)+l,n&&(i=n-u)>0&&(l+=getZeroString(i))):o>=u?(l+=getZeroString(o+1-u),n&&(i=n-o-1)>0&&(l=l+"."+getZeroString(i))):((i=o+1)<u&&(l=l.slice(0,i)+"."+l.slice(i)),n&&(i=n-u)>0&&(o+1===u&&(l+="."),l+=getZeroString(i))),e.s<0?"-"+l:l}function truncate(e,t){if(e.length>t)return e.length=t,!0}function clone(e){var t,n,i;function o(l){var u=this;if(!(u instanceof o))return new o(l);if(u.constructor=o,l instanceof o){u.s=l.s,u.e=l.e,u.d=(l=l.d)?l.slice():l;return}if(typeof l=="number"){if(l*0!==0)throw Error(invalidArgument+l);if(l>0)u.s=1;else if(l<0)l=-l,u.s=-1;else{u.s=0,u.e=0,u.d=[0];return}if(l===~~l&&l<1e7){u.e=0,u.d=[l];return}return parseDecimal(u,l.toString())}else if(typeof l!="string")throw Error(invalidArgument+l);if(l.charCodeAt(0)===45?(l=l.slice(1),u.s=-1):u.s=1,isDecimal.test(l))parseDecimal(u,l);else throw Error(invalidArgument+l)}if(o.prototype=P,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=clone,o.config=o.set=config,e===void 0&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<i.length;)e.hasOwnProperty(n=i[t++])||(e[n]=this[n]);return o.config(e),o}function config(e){if(!e||typeof e!="object")throw Error(decimalError+"Object expected");var t,n,i,o=["precision",1,MAX_DIGITS,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((i=e[n=o[t]])!==void 0)if(mathfloor(i)===i&&i>=o[t+1]&&i<=o[t+2])this[n]=i;else throw Error(invalidArgument+n+": "+i);if((i=e[n="LN10"])!==void 0)if(i==Math.LN10)this[n]=new this(i);else throw Error(invalidArgument+n+": "+i);return this}var Decimal=clone(defaults);ONE=new Decimal(1);const Decimal$1=Decimal;function _toConsumableArray$9(e){return _arrayWithoutHoles$9(e)||_iterableToArray$a(e)||_unsupportedIterableToArray$e(e)||_nonIterableSpread$9()}function _nonIterableSpread$9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
222
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$e(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$e(e,t)}}function _iterableToArray$a(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles$9(e){if(Array.isArray(e))return _arrayLikeToArray$e(e)}function _arrayLikeToArray$e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var identity$1=function(t){return t},PLACE_HOLDER={},isPlaceHolder=function(t){return t===PLACE_HOLDER},curry0=function(t){return function n(){return arguments.length===0||arguments.length===1&&isPlaceHolder(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},curryN=function e(t,n){return t===1?n:curry0(function(){for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];var u=o.filter(function(f){return f!==PLACE_HOLDER}).length;return u>=t?n.apply(void 0,o):e(t-u,curry0(function(){for(var f=arguments.length,p=new Array(f),d=0;d<f;d++)p[d]=arguments[d];var m=o.map(function(g){return isPlaceHolder(g)?p.shift():g});return n.apply(void 0,_toConsumableArray$9(m).concat(p))}))})},curry=function(t){return curryN(t.length,t)},range$1=function(t,n){for(var i=[],o=t;o<n;++o)i[o-t]=o;return i},map=curry(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),compose=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(!n.length)return identity$1;var o=n.reverse(),l=o[0],u=o.slice(1);return function(){return u.reduce(function(f,p){return p(f)},l.apply(void 0,arguments))}},reverse=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},memoize$1=function(t){var n=null,i=null;return function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return n&&l.every(function(f,p){return f===n[p]})||(n=l,i=t.apply(void 0,l)),i}};function getDigitCount(e){var t;return e===0?t=1:t=Math.floor(new Decimal$1(e).abs().log(10).toNumber())+1,t}function rangeStep(e,t,n){for(var i=new Decimal$1(e),o=0,l=[];i.lt(t)&&o<1e5;)l.push(i.toNumber()),i=i.add(n),o++;return l}var interpolateNumber=curry(function(e,t,n){var i=+e,o=+t;return i+n*(o-i)}),uninterpolateNumber=curry(function(e,t,n){var i=t-+e;return i=i||1/0,(n-e)/i}),uninterpolateTruncation=curry(function(e,t,n){var i=t-+e;return i=i||1/0,Math.max(0,Math.min(1,(n-e)/i))});const Arithmetic={rangeStep,getDigitCount,interpolateNumber,uninterpolateNumber,uninterpolateTruncation};function _toConsumableArray$8(e){return _arrayWithoutHoles$8(e)||_iterableToArray$9(e)||_unsupportedIterableToArray$d(e)||_nonIterableSpread$8()}function _nonIterableSpread$8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
223
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray$9(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles$8(e){if(Array.isArray(e))return _arrayLikeToArray$d(e)}function _slicedToArray$7(e,t){return _arrayWithHoles$8(e)||_iterableToArrayLimit$7(e,t)||_unsupportedIterableToArray$d(e,t)||_nonIterableRest$8()}function _nonIterableRest$8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
224
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$d(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$d(e,t)}}function _arrayLikeToArray$d(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _iterableToArrayLimit$7(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],i=!0,o=!1,l=void 0;try{for(var u=e[Symbol.iterator](),f;!(i=(f=u.next()).done)&&(n.push(f.value),!(t&&n.length===t));i=!0);}catch(p){o=!0,l=p}finally{try{!i&&u.return!=null&&u.return()}finally{if(o)throw l}}return n}}function _arrayWithHoles$8(e){if(Array.isArray(e))return e}function getValidInterval(e){var t=_slicedToArray$7(e,2),n=t[0],i=t[1],o=n,l=i;return n>i&&(o=i,l=n),[o,l]}function getFormatStep(e,t,n){if(e.lte(0))return new Decimal$1(0);var i=Arithmetic.getDigitCount(e.toNumber()),o=new Decimal$1(10).pow(i),l=e.div(o),u=i!==1?.05:.1,f=new Decimal$1(Math.ceil(l.div(u).toNumber())).add(n).mul(u),p=f.mul(o);return t?p:new Decimal$1(Math.ceil(p))}function getTickOfSingleValue(e,t,n){var i=1,o=new Decimal$1(e);if(!o.isint()&&n){var l=Math.abs(e);l<1?(i=new Decimal$1(10).pow(Arithmetic.getDigitCount(e)-1),o=new Decimal$1(Math.floor(o.div(i).toNumber())).mul(i)):l>1&&(o=new Decimal$1(Math.floor(e)))}else e===0?o=new Decimal$1(Math.floor((t-1)/2)):n||(o=new Decimal$1(Math.floor(e)));var u=Math.floor((t-1)/2),f=compose(map(function(p){return o.add(new Decimal$1(p-u).mul(i)).toNumber()}),range$1);return f(0,t)}function calculateStep(e,t,n,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Decimal$1(0),tickMin:new Decimal$1(0),tickMax:new Decimal$1(0)};var l=getFormatStep(new Decimal$1(t).sub(e).div(n-1),i,o),u;e<=0&&t>=0?u=new Decimal$1(0):(u=new Decimal$1(e).add(t).div(2),u=u.sub(new Decimal$1(u).mod(l)));var f=Math.ceil(u.sub(e).div(l).toNumber()),p=Math.ceil(new Decimal$1(t).sub(u).div(l).toNumber()),d=f+p+1;return d>n?calculateStep(e,t,n,i,o+1):(d<n&&(p=t>0?p+(n-d):p,f=t>0?f:f+(n-d)),{step:l,tickMin:u.sub(new Decimal$1(f).mul(l)),tickMax:u.add(new Decimal$1(p).mul(l))})}function getNiceTickValuesFn(e){var t=_slicedToArray$7(e,2),n=t[0],i=t[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=Math.max(o,2),f=getValidInterval([n,i]),p=_slicedToArray$7(f,2),d=p[0],m=p[1];if(d===-1/0||m===1/0){var g=m===1/0?[d].concat(_toConsumableArray$8(range$1(0,o-1).map(function(){return 1/0}))):[].concat(_toConsumableArray$8(range$1(0,o-1).map(function(){return-1/0})),[m]);return n>i?reverse(g):g}if(d===m)return getTickOfSingleValue(d,o,l);var _=calculateStep(d,m,u,l),S=_.step,E=_.tickMin,R=_.tickMax,b=Arithmetic.rangeStep(E,R.add(new Decimal$1(.1).mul(S)),S);return n>i?reverse(b):b}function getTickValuesFixedDomainFn(e,t){var n=_slicedToArray$7(e,2),i=n[0],o=n[1],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=getValidInterval([i,o]),f=_slicedToArray$7(u,2),p=f[0],d=f[1];if(p===-1/0||d===1/0)return[i,o];if(p===d)return[p];var m=Math.max(t,2),g=getFormatStep(new Decimal$1(d).sub(p).div(m-1),l,0),_=[].concat(_toConsumableArray$8(Arithmetic.rangeStep(new Decimal$1(p),new Decimal$1(d).sub(new Decimal$1(.99).mul(g)),g)),[d]);return i>o?reverse(_):_}var getNiceTickValues=memoize$1(getNiceTickValuesFn),getTickValuesFixedDomain=memoize$1(getTickValuesFixedDomainFn),isProduction=process.env.NODE_ENV==="production",prefix="Invariant failed";function invariant(e,t){if(isProduction)throw new Error(prefix);var n=typeof t=="function"?t():t,i=n?"".concat(prefix,": ").concat(n):prefix;throw new Error(i)}var _excluded$b=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function _typeof$x(e){"@babel/helpers - typeof";return _typeof$x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$x(e)}function _extends$k(){return _extends$k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$k.apply(this,arguments)}function _slicedToArray$6(e,t){return _arrayWithHoles$7(e)||_iterableToArrayLimit$6(e,t)||_unsupportedIterableToArray$c(e,t)||_nonIterableRest$7()}function _nonIterableRest$7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
225
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$c(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$c(e,t)}}function _arrayLikeToArray$c(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _iterableToArrayLimit$6(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,l,u,f=[],p=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(p=(i=l.call(n)).done)&&(f.push(i.value),f.length!==t);p=!0);}catch(m){d=!0,o=m}finally{try{if(!p&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(d)throw o}}return f}}function _arrayWithHoles$7(e){if(Array.isArray(e))return e}function _objectWithoutProperties$b(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$b(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$b(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function _classCallCheck$d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$v(i.key),i)}}function _createClass$d(e,t,n){return t&&_defineProperties$d(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$a(e,t,n){return t=_getPrototypeOf$b(t),_possibleConstructorReturn$b(e,_isNativeReflectConstruct$b()?Reflect.construct(t,n||[],_getPrototypeOf$b(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$b(e,t){if(t&&(_typeof$x(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$b(e)}function _assertThisInitialized$b(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$b=function(){return!!e})()}function _getPrototypeOf$b(e){return _getPrototypeOf$b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$b(e)}function _inherits$b(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$b(e,t)}function _setPrototypeOf$b(e,t){return _setPrototypeOf$b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf$b(e,t)}function _defineProperty$v(e,t,n){return t=_toPropertyKey$v(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$v(e){var t=_toPrimitive$v(e,"string");return _typeof$x(t)=="symbol"?t:t+""}function _toPrimitive$v(e,t){if(_typeof$x(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$x(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ErrorBar=function(e){function t(){return _classCallCheck$d(this,t),_callSuper$a(this,t,arguments)}return _inherits$b(t,e),_createClass$d(t,[{key:"render",value:function(){var i=this.props,o=i.offset,l=i.layout,u=i.width,f=i.dataKey,p=i.data,d=i.dataPointFormatter,m=i.xAxis,g=i.yAxis,_=_objectWithoutProperties$b(i,_excluded$b),S=filterProps(_,!1);this.props.direction==="x"&&m.type!=="number"&&(process.env.NODE_ENV!=="production"?invariant(!1,'ErrorBar requires Axis type property to be "number".'):invariant());var E=p.map(function(R){var b=d(R,f),A=b.x,C=b.y,O=b.value,M=b.errorVal;if(!M)return null;var T=[],j,I;if(Array.isArray(M)){var D=_slicedToArray$6(M,2);j=D[0],I=D[1]}else j=I=M;if(l==="vertical"){var L=m.scale,F=C+o,N=F+u,B=F-u,z=L(O-j),V=L(O+I);T.push({x1:V,y1:N,x2:V,y2:B}),T.push({x1:z,y1:F,x2:V,y2:F}),T.push({x1:z,y1:N,x2:z,y2:B})}else if(l==="horizontal"){var W=g.scale,U=A+o,Q=U-u,q=U+u,G=W(O-j),H=W(O+I);T.push({x1:Q,y1:H,x2:q,y2:H}),T.push({x1:U,y1:G,x2:U,y2:H}),T.push({x1:Q,y1:G,x2:q,y2:G})}return React.createElement(Layer,_extends$k({className:"recharts-errorBar",key:"bar-".concat(T.map(function(Z){return"".concat(Z.x1,"-").concat(Z.x2,"-").concat(Z.y1,"-").concat(Z.y2)}))},S),T.map(function(Z){return React.createElement("line",_extends$k({},Z,{key:"line-".concat(Z.x1,"-").concat(Z.x2,"-").concat(Z.y1,"-").concat(Z.y2)}))}))});return React.createElement(Layer,{className:"recharts-errorBars"},E)}}])}(React.Component);_defineProperty$v(ErrorBar,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),_defineProperty$v(ErrorBar,"displayName","ErrorBar");function _typeof$w(e){"@babel/helpers - typeof";return _typeof$w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$w(e)}function ownKeys$r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$r(Object(n),!0).forEach(function(i){_defineProperty$u(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$r(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$u(e,t,n){return t=_toPropertyKey$u(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$u(e){var t=_toPrimitive$u(e,"string");return _typeof$w(t)=="symbol"?t:t+""}function _toPrimitive$u(e,t){if(_typeof$w(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$w(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var getLegendProps=function(t){var n=t.children,i=t.formattedGraphicalItems,o=t.legendWidth,l=t.legendContent,u=findChildByType(n,Legend);if(!u)return null;var f=Legend.defaultProps,p=f!==void 0?_objectSpread$r(_objectSpread$r({},f),u.props):{},d;return u.props&&u.props.payload?d=u.props&&u.props.payload:l==="children"?d=(i||[]).reduce(function(m,g){var _=g.item,S=g.props,E=S.sectors||S.data||[];return m.concat(E.map(function(R){return{type:u.props.iconType||_.props.legendType,value:R.name,color:R.fill,payload:R}}))},[]):d=(i||[]).map(function(m){var g=m.item,_=g.type.defaultProps,S=_!==void 0?_objectSpread$r(_objectSpread$r({},_),g.props):{},E=S.dataKey,R=S.name,b=S.legendType,A=S.hide;return{inactive:A,dataKey:E,type:p.iconType||b||"square",color:getMainColorOfGraphicItem(g),value:R||E,payload:S}}),_objectSpread$r(_objectSpread$r(_objectSpread$r({},p),Legend.getWithHeight(u,o)),{},{payload:d,item:u})};function _typeof$v(e){"@babel/helpers - typeof";return _typeof$v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$v(e)}function _toConsumableArray$7(e){return _arrayWithoutHoles$7(e)||_iterableToArray$8(e)||_unsupportedIterableToArray$b(e)||_nonIterableSpread$7()}function _nonIterableSpread$7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
226
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$b(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$b(e,t)}}function _iterableToArray$8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _arrayWithoutHoles$7(e){if(Array.isArray(e))return _arrayLikeToArray$b(e)}function _arrayLikeToArray$b(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ownKeys$q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$q(Object(n),!0).forEach(function(i){_defineProperty$t(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$q(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$t(e,t,n){return t=_toPropertyKey$t(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$t(e){var t=_toPrimitive$t(e,"string");return _typeof$v(t)=="symbol"?t:t+""}function _toPrimitive$t(e,t){if(_typeof$v(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$v(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function getValueByDataKey(e,t,n){return isNil(e)||isNil(t)?n:isNumOrStr(t)?get(e,t,n):isFunction(t)?t(e):n}function getDomainOfDataByKey(e,t,n,i){var o=flatMap(e,function(f){return getValueByDataKey(f,t)});if(n==="number"){var l=o.filter(function(f){return isNumber(f)||parseFloat(f)});return l.length?[min(l),max(l)]:[1/0,-1/0]}var u=i?o.filter(function(f){return!isNil(f)}):o;return u.map(function(f){return isNumOrStr(f)||f instanceof Date?f:""})}var calculateActiveTickIndex=function(t){var n,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0,u=-1,f=(n=i==null?void 0:i.length)!==null&&n!==void 0?n:0;if(f<=1)return 0;if(l&&l.axisType==="angleAxis"&&Math.abs(Math.abs(l.range[1]-l.range[0])-360)<=1e-6)for(var p=l.range,d=0;d<f;d++){var m=d>0?o[d-1].coordinate:o[f-1].coordinate,g=o[d].coordinate,_=d>=f-1?o[0].coordinate:o[d+1].coordinate,S=void 0;if(mathSign(g-m)!==mathSign(_-g)){var E=[];if(mathSign(_-g)===mathSign(p[1]-p[0])){S=_;var R=g+p[1]-p[0];E[0]=Math.min(R,(R+m)/2),E[1]=Math.max(R,(R+m)/2)}else{S=m;var b=_+p[1]-p[0];E[0]=Math.min(g,(b+g)/2),E[1]=Math.max(g,(b+g)/2)}var A=[Math.min(g,(S+g)/2),Math.max(g,(S+g)/2)];if(t>A[0]&&t<=A[1]||t>=E[0]&&t<=E[1]){u=o[d].index;break}}else{var C=Math.min(m,_),O=Math.max(m,_);if(t>(C+g)/2&&t<=(O+g)/2){u=o[d].index;break}}}else for(var M=0;M<f;M++)if(M===0&&t<=(i[M].coordinate+i[M+1].coordinate)/2||M>0&&M<f-1&&t>(i[M].coordinate+i[M-1].coordinate)/2&&t<=(i[M].coordinate+i[M+1].coordinate)/2||M===f-1&&t>(i[M].coordinate+i[M-1].coordinate)/2){u=i[M].index;break}return u},getMainColorOfGraphicItem=function(t){var n,i=t,o=i.type.displayName,l=(n=t.type)!==null&&n!==void 0&&n.defaultProps?_objectSpread$q(_objectSpread$q({},t.type.defaultProps),t.props):t.props,u=l.stroke,f=l.fill,p;switch(o){case"Line":p=u;break;case"Area":case"Radar":p=u&&u!=="none"?u:f;break;default:p=f;break}return p},getBarSizeList=function(t){var n=t.barSize,i=t.totalSize,o=t.stackGroups,l=o===void 0?{}:o;if(!l)return{};for(var u={},f=Object.keys(l),p=0,d=f.length;p<d;p++)for(var m=l[f[p]].stackGroups,g=Object.keys(m),_=0,S=g.length;_<S;_++){var E=m[g[_]],R=E.items,b=E.cateAxisId,A=R.filter(function(I){return getDisplayName(I.type).indexOf("Bar")>=0});if(A&&A.length){var C=A[0].type.defaultProps,O=C!==void 0?_objectSpread$q(_objectSpread$q({},C),A[0].props):A[0].props,M=O.barSize,T=O[b];u[T]||(u[T]=[]);var j=isNil(M)?n:M;u[T].push({item:A[0],stackList:A.slice(1),barSize:isNil(j)?void 0:getPercentValue(j,i,0)})}}return u},getBarPosition=function(t){var n=t.barGap,i=t.barCategoryGap,o=t.bandSize,l=t.sizeList,u=l===void 0?[]:l,f=t.maxBarSize,p=u.length;if(p<1)return null;var d=getPercentValue(n,o,0,!0),m,g=[];if(u[0].barSize===+u[0].barSize){var _=!1,S=o/p,E=u.reduce(function(M,T){return M+T.barSize||0},0);E+=(p-1)*d,E>=o&&(E-=(p-1)*d,d=0),E>=o&&S>0&&(_=!0,S*=.9,E=p*S);var R=(o-E)/2>>0,b={offset:R-d,size:0};m=u.reduce(function(M,T){var j={item:T.item,position:{offset:b.offset+b.size+d,size:_?S:T.barSize}},I=[].concat(_toConsumableArray$7(M),[j]);return b=I[I.length-1].position,T.stackList&&T.stackList.length&&T.stackList.forEach(function(D){I.push({item:D,position:b})}),I},g)}else{var A=getPercentValue(i,o,0,!0);o-2*A-(p-1)*d<=0&&(d=0);var C=(o-2*A-(p-1)*d)/p;C>1&&(C>>=0);var O=f===+f?Math.min(C,f):C;m=u.reduce(function(M,T,j){var I=[].concat(_toConsumableArray$7(M),[{item:T.item,position:{offset:A+(C+d)*j+(C-O)/2,size:O}}]);return T.stackList&&T.stackList.length&&T.stackList.forEach(function(D){I.push({item:D,position:I[I.length-1].position})}),I},g)}return m},appendOffsetOfLegend=function(t,n,i,o){var l=i.children,u=i.width,f=i.margin,p=u-(f.left||0)-(f.right||0),d=getLegendProps({children:l,legendWidth:p});if(d){var m=o||{},g=m.width,_=m.height,S=d.align,E=d.verticalAlign,R=d.layout;if((R==="vertical"||R==="horizontal"&&E==="middle")&&S!=="center"&&isNumber(t[S]))return _objectSpread$q(_objectSpread$q({},t),{},_defineProperty$t({},S,t[S]+(g||0)));if((R==="horizontal"||R==="vertical"&&S==="center")&&E!=="middle"&&isNumber(t[E]))return _objectSpread$q(_objectSpread$q({},t),{},_defineProperty$t({},E,t[E]+(_||0)))}return t},isErrorBarRelevantForAxis=function(t,n,i){return isNil(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||i==="x"?n==="xAxis":i==="y"?n==="yAxis":!0},getDomainOfErrorBars=function(t,n,i,o,l){var u=n.props.children,f=findAllByType(u,ErrorBar).filter(function(d){return isErrorBarRelevantForAxis(o,l,d.props.direction)});if(f&&f.length){var p=f.map(function(d){return d.props.dataKey});return t.reduce(function(d,m){var g=getValueByDataKey(m,i);if(isNil(g))return d;var _=Array.isArray(g)?[min(g),max(g)]:[g,g],S=p.reduce(function(E,R){var b=getValueByDataKey(m,R,0),A=_[0]-Math.abs(Array.isArray(b)?b[0]:b),C=_[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(A,E[0]),Math.max(C,E[1])]},[1/0,-1/0]);return[Math.min(S[0],d[0]),Math.max(S[1],d[1])]},[1/0,-1/0])}return null},parseErrorBarsOfAxis=function(t,n,i,o,l){var u=n.map(function(f){return getDomainOfErrorBars(t,f,i,l,o)}).filter(function(f){return!isNil(f)});return u&&u.length?u.reduce(function(f,p){return[Math.min(f[0],p[0]),Math.max(f[1],p[1])]},[1/0,-1/0]):null},getDomainOfItemsWithSameAxis=function(t,n,i,o,l){var u=n.map(function(p){var d=p.props.dataKey;return i==="number"&&d&&getDomainOfErrorBars(t,p,d,o)||getDomainOfDataByKey(t,d,i,l)});if(i==="number")return u.reduce(function(p,d){return[Math.min(p[0],d[0]),Math.max(p[1],d[1])]},[1/0,-1/0]);var f={};return u.reduce(function(p,d){for(var m=0,g=d.length;m<g;m++)f[d[m]]||(f[d[m]]=!0,p.push(d[m]));return p},[])},isCategoricalAxis=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},getCoordinatesOfGrid=function(t,n,i,o){if(o)return t.map(function(p){return p.coordinate});var l,u,f=t.map(function(p){return p.coordinate===n&&(l=!0),p.coordinate===i&&(u=!0),p.coordinate});return l||f.push(n),u||f.push(i),f},getTicksOfAxis=function(t,n,i){if(!t)return null;var o=t.scale,l=t.duplicateDomain,u=t.type,f=t.range,p=t.realScaleType==="scaleBand"?o.bandwidth()/2:2,d=(n||i)&&u==="category"&&o.bandwidth?o.bandwidth()/p:0;if(d=t.axisType==="angleAxis"&&(f==null?void 0:f.length)>=2?mathSign(f[0]-f[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var m=(t.ticks||t.niceTicks).map(function(g){var _=l?l.indexOf(g):g;return{coordinate:o(_)+d,value:g,offset:d}});return m.filter(function(g){return!isNan(g.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(g,_){return{coordinate:o(g)+d,value:g,index:_,offset:d}}):o.ticks&&!i?o.ticks(t.tickCount).map(function(g){return{coordinate:o(g)+d,value:g,offset:d}}):o.domain().map(function(g,_){return{coordinate:o(g)+d,value:l?l[g]:g,index:_,offset:d}})},handlerWeakMap=new WeakMap,combineEventHandlers=function(t,n){if(typeof n!="function")return t;handlerWeakMap.has(t)||handlerWeakMap.set(t,new WeakMap);var i=handlerWeakMap.get(t);if(i.has(n))return i.get(n);var o=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return i.set(n,o),o},parseScale=function(t,n,i){var o=t.scale,l=t.type,u=t.layout,f=t.axisType;if(o==="auto")return u==="radial"&&f==="radiusAxis"?{scale:band(),realScaleType:"band"}:u==="radial"&&f==="angleAxis"?{scale:linear(),realScaleType:"linear"}:l==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!i)?{scale:point(),realScaleType:"point"}:l==="category"?{scale:band(),realScaleType:"band"}:{scale:linear(),realScaleType:"linear"};if(isString(o)){var p="scale".concat(upperFirst(o));return{scale:(d3Scales[p]||point)(),realScaleType:d3Scales[p]?p:"point"}}return isFunction(o)?{scale:o}:{scale:point(),realScaleType:"point"}},EPS=1e-4,checkDomainOfScale=function(t){var n=t.domain();if(!(!n||n.length<=2)){var i=n.length,o=t.range(),l=Math.min(o[0],o[1])-EPS,u=Math.max(o[0],o[1])+EPS,f=t(n[0]),p=t(n[i-1]);(f<l||f>u||p<l||p>u)&&t.domain([n[0],n[i-1]])}},findPositionOfBar=function(t,n){if(!t)return null;for(var i=0,o=t.length;i<o;i++)if(t[i].item===n)return t[i].position;return null},truncateByDomain=function(t,n){if(!n||n.length!==2||!isNumber(n[0])||!isNumber(n[1]))return t;var i=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]),l=[t[0],t[1]];return(!isNumber(t[0])||t[0]<i)&&(l[0]=i),(!isNumber(t[1])||t[1]>o)&&(l[1]=o),l[0]>o&&(l[0]=o),l[1]<i&&(l[1]=i),l},offsetSign=function(t){var n=t.length;if(!(n<=0))for(var i=0,o=t[0].length;i<o;++i)for(var l=0,u=0,f=0;f<n;++f){var p=isNan(t[f][i][1])?t[f][i][0]:t[f][i][1];p>=0?(t[f][i][0]=l,t[f][i][1]=l+p,l=t[f][i][1]):(t[f][i][0]=u,t[f][i][1]=u+p,u=t[f][i][1])}},offsetPositive=function(t){var n=t.length;if(!(n<=0))for(var i=0,o=t[0].length;i<o;++i)for(var l=0,u=0;u<n;++u){var f=isNan(t[u][i][1])?t[u][i][0]:t[u][i][1];f>=0?(t[u][i][0]=l,t[u][i][1]=l+f,l=t[u][i][1]):(t[u][i][0]=0,t[u][i][1]=0)}},STACK_OFFSET_MAP={sign:offsetSign,expand:stackOffsetExpand,none:stackOffsetNone,silhouette:stackOffsetSilhouette,wiggle:stackOffsetWiggle,positive:offsetPositive},getStackedData=function(t,n,i){var o=n.map(function(f){return f.props.dataKey}),l=STACK_OFFSET_MAP[i],u=shapeStack().keys(o).value(function(f,p){return+getValueByDataKey(f,p,0)}).order(stackOrderNone).offset(l);return u(t)},getStackGroupsByAxisId=function(t,n,i,o,l,u){if(!t)return null;var f=u?n.reverse():n,p={},d=f.reduce(function(g,_){var S,E=(S=_.type)!==null&&S!==void 0&&S.defaultProps?_objectSpread$q(_objectSpread$q({},_.type.defaultProps),_.props):_.props,R=E.stackId,b=E.hide;if(b)return g;var A=E[i],C=g[A]||{hasStack:!1,stackGroups:{}};if(isNumOrStr(R)){var O=C.stackGroups[R]||{numericAxisId:i,cateAxisId:o,items:[]};O.items.push(_),C.hasStack=!0,C.stackGroups[R]=O}else C.stackGroups[uniqueId("_stackId_")]={numericAxisId:i,cateAxisId:o,items:[_]};return _objectSpread$q(_objectSpread$q({},g),{},_defineProperty$t({},A,C))},p),m={};return Object.keys(d).reduce(function(g,_){var S=d[_];if(S.hasStack){var E={};S.stackGroups=Object.keys(S.stackGroups).reduce(function(R,b){var A=S.stackGroups[b];return _objectSpread$q(_objectSpread$q({},R),{},_defineProperty$t({},b,{numericAxisId:i,cateAxisId:o,items:A.items,stackedData:getStackedData(t,A.items,l)}))},E)}return _objectSpread$q(_objectSpread$q({},g),{},_defineProperty$t({},_,S))},m)},getTicksOfScale=function(t,n){var i=n.realScaleType,o=n.type,l=n.tickCount,u=n.originalDomain,f=n.allowDecimals,p=i||n.scale;if(p!=="auto"&&p!=="linear")return null;if(l&&o==="number"&&u&&(u[0]==="auto"||u[1]==="auto")){var d=t.domain();if(!d.length)return null;var m=getNiceTickValues(d,l,f);return t.domain([min(m),max(m)]),{niceTicks:m}}if(l&&o==="number"){var g=t.domain(),_=getTickValuesFixedDomain(g,l,f);return{niceTicks:_}}return null};function getCateCoordinateOfLine(e){var t=e.axis,n=e.ticks,i=e.bandSize,o=e.entry,l=e.index,u=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!isNil(o[t.dataKey])){var f=findEntryInArray(n,"value",o[t.dataKey]);if(f)return f.coordinate+i/2}return n[l]?n[l].coordinate+i/2:null}var p=getValueByDataKey(o,isNil(u)?t.dataKey:u);return isNil(p)?null:t.scale(p)}var getCateCoordinateOfBar=function(t){var n=t.axis,i=t.ticks,o=t.offset,l=t.bandSize,u=t.entry,f=t.index;if(n.type==="category")return i[f]?i[f].coordinate+o:null;var p=getValueByDataKey(u,n.dataKey,n.domain[f]);return isNil(p)?null:n.scale(p)-l/2+o},getBaseValueOfBar=function(t){var n=t.numericAxis,i=n.scale.domain();if(n.type==="number"){var o=Math.min(i[0],i[1]),l=Math.max(i[0],i[1]);return o<=0&&l>=0?0:l<0?l:o}return i[0]},getStackedDataOfItem=function(t,n){var i,o=(i=t.type)!==null&&i!==void 0&&i.defaultProps?_objectSpread$q(_objectSpread$q({},t.type.defaultProps),t.props):t.props,l=o.stackId;if(isNumOrStr(l)){var u=n[l];if(u){var f=u.items.indexOf(t);return f>=0?u.stackedData[f]:null}}return null},getDomainOfSingle=function(t){return t.reduce(function(n,i){return[min(i.concat([n[0]]).filter(isNumber)),max(i.concat([n[1]]).filter(isNumber))]},[1/0,-1/0])},getDomainOfStackGroups=function(t,n,i){return Object.keys(t).reduce(function(o,l){var u=t[l],f=u.stackedData,p=f.reduce(function(d,m){var g=getDomainOfSingle(m.slice(n,i+1));return[Math.min(d[0],g[0]),Math.max(d[1],g[1])]},[1/0,-1/0]);return[Math.min(p[0],o[0]),Math.max(p[1],o[1])]},[1/0,-1/0]).map(function(o){return o===1/0||o===-1/0?0:o})},MIN_VALUE_REG=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,MAX_VALUE_REG=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,parseSpecifiedDomain=function(t,n,i){if(isFunction(t))return t(n,i);if(!Array.isArray(t))return n;var o=[];if(isNumber(t[0]))o[0]=i?t[0]:Math.min(t[0],n[0]);else if(MIN_VALUE_REG.test(t[0])){var l=+MIN_VALUE_REG.exec(t[0])[1];o[0]=n[0]-l}else isFunction(t[0])?o[0]=t[0](n[0]):o[0]=n[0];if(isNumber(t[1]))o[1]=i?t[1]:Math.max(t[1],n[1]);else if(MAX_VALUE_REG.test(t[1])){var u=+MAX_VALUE_REG.exec(t[1])[1];o[1]=n[1]+u}else isFunction(t[1])?o[1]=t[1](n[1]):o[1]=n[1];return o},getBandSizeOfAxis=function(t,n,i){if(t&&t.scale&&t.scale.bandwidth){var o=t.scale.bandwidth();if(!i||o>0)return o}if(t&&n&&n.length>=2){for(var l=sortBy(n,function(g){return g.coordinate}),u=1/0,f=1,p=l.length;f<p;f++){var d=l[f],m=l[f-1];u=Math.min((d.coordinate||0)-(m.coordinate||0),u)}return u===1/0?0:u}return i?void 0:0},parseDomainOfCategoryAxis=function(t,n,i){return!t||!t.length||isEqual(t,get(i,"type.defaultProps.domain"))?n:t},getTooltipItem=function(t,n){var i=t.type.defaultProps?_objectSpread$q(_objectSpread$q({},t.type.defaultProps),t.props):t.props,o=i.dataKey,l=i.name,u=i.unit,f=i.formatter,p=i.tooltipType,d=i.chartType,m=i.hide;return _objectSpread$q(_objectSpread$q({},filterProps(t,!1)),{},{dataKey:o,unit:u,formatter:f,name:l||o,color:getMainColorOfGraphicItem(t),value:getValueByDataKey(n,o),type:p,payload:n,chartType:d,hide:m})};function _typeof$u(e){"@babel/helpers - typeof";return _typeof$u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$u(e)}function ownKeys$p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$p(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$p(Object(n),!0).forEach(function(i){_defineProperty$s(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$p(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$s(e,t,n){return t=_toPropertyKey$s(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$s(e){var t=_toPrimitive$s(e,"string");return _typeof$u(t)=="symbol"?t:t+""}function _toPrimitive$s(e,t){if(_typeof$u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$u(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var RADIAN=Math.PI/180,radianToDegree=function(t){return t*180/Math.PI},polarToCartesian=function(t,n,i,o){return{x:t+Math.cos(-RADIAN*o)*i,y:n+Math.sin(-RADIAN*o)*i}},distanceBetweenPoints=function(t,n){var i=t.x,o=t.y,l=n.x,u=n.y;return Math.sqrt(Math.pow(i-l,2)+Math.pow(o-u,2))},getAngleOfPoint=function(t,n){var i=t.x,o=t.y,l=n.cx,u=n.cy,f=distanceBetweenPoints({x:i,y:o},{x:l,y:u});if(f<=0)return{radius:f};var p=(i-l)/f,d=Math.acos(p);return o>u&&(d=2*Math.PI-d),{radius:f,angle:radianToDegree(d),angleInRadian:d}},formatAngleOfSector=function(t){var n=t.startAngle,i=t.endAngle,o=Math.floor(n/360),l=Math.floor(i/360),u=Math.min(o,l);return{startAngle:n-u*360,endAngle:i-u*360}},reverseFormatAngleOfSetor=function(t,n){var i=n.startAngle,o=n.endAngle,l=Math.floor(i/360),u=Math.floor(o/360),f=Math.min(l,u);return t+f*360},inRangeOfSector=function(t,n){var i=t.x,o=t.y,l=getAngleOfPoint({x:i,y:o},n),u=l.radius,f=l.angle,p=n.innerRadius,d=n.outerRadius;if(u<p||u>d)return!1;if(u===0)return!0;var m=formatAngleOfSector(n),g=m.startAngle,_=m.endAngle,S=f,E;if(g<=_){for(;S>_;)S-=360;for(;S<g;)S+=360;E=S>=g&&S<=_}else{for(;S>g;)S-=360;for(;S<_;)S+=360;E=S>=_&&S<=g}return E?_objectSpread$p(_objectSpread$p({},n),{},{radius:u,angle:reverseFormatAngleOfSetor(S,n)}):null};function _typeof$t(e){"@babel/helpers - typeof";return _typeof$t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$t(e)}var _excluded$a=["offset"];function _toConsumableArray$6(e){return _arrayWithoutHoles$6(e)||_iterableToArray$7(e)||_unsupportedIterableToArray$a(e)||_nonIterableSpread$6()}function _nonIterableSpread$6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
227
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$a(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$a(e,t)}}function _iterableToArray$7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _arrayWithoutHoles$6(e){if(Array.isArray(e))return _arrayLikeToArray$a(e)}function _arrayLikeToArray$a(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _objectWithoutProperties$a(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$a(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$a(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function ownKeys$o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$o(Object(n),!0).forEach(function(i){_defineProperty$r(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$o(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$r(e,t,n){return t=_toPropertyKey$r(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$r(e){var t=_toPrimitive$r(e,"string");return _typeof$t(t)=="symbol"?t:t+""}function _toPrimitive$r(e,t){if(_typeof$t(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _extends$j(){return _extends$j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$j.apply(this,arguments)}var getLabel=function(t){var n=t.value,i=t.formatter,o=isNil(t.children)?n:t.children;return isFunction(i)?i(o):o},getDeltaAngle$1=function(t,n){var i=mathSign(n-t),o=Math.min(Math.abs(n-t),360);return i*o},renderRadialLabel=function(t,n,i){var o=t.position,l=t.viewBox,u=t.offset,f=t.className,p=l,d=p.cx,m=p.cy,g=p.innerRadius,_=p.outerRadius,S=p.startAngle,E=p.endAngle,R=p.clockWise,b=(g+_)/2,A=getDeltaAngle$1(S,E),C=A>=0?1:-1,O,M;o==="insideStart"?(O=S+C*u,M=R):o==="insideEnd"?(O=E-C*u,M=!R):o==="end"&&(O=E+C*u,M=R),M=A<=0?M:!M;var T=polarToCartesian(d,m,b,O),j=polarToCartesian(d,m,b,O+(M?1:-1)*359),I="M".concat(T.x,",").concat(T.y,`
228
+ A`).concat(b,",").concat(b,",0,1,").concat(M?0:1,`,
229
+ `).concat(j.x,",").concat(j.y),D=isNil(t.id)?uniqueId("recharts-radial-line-"):t.id;return React.createElement("text",_extends$j({},i,{dominantBaseline:"central",className:clsx("recharts-radial-bar-label",f)}),React.createElement("defs",null,React.createElement("path",{id:D,d:I})),React.createElement("textPath",{xlinkHref:"#".concat(D)},n))},getAttrsOfPolarLabel=function(t){var n=t.viewBox,i=t.offset,o=t.position,l=n,u=l.cx,f=l.cy,p=l.innerRadius,d=l.outerRadius,m=l.startAngle,g=l.endAngle,_=(m+g)/2;if(o==="outside"){var S=polarToCartesian(u,f,d+i,_),E=S.x,R=S.y;return{x:E,y:R,textAnchor:E>=u?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:u,y:f,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:u,y:f,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:u,y:f,textAnchor:"middle",verticalAnchor:"end"};var b=(p+d)/2,A=polarToCartesian(u,f,b,_),C=A.x,O=A.y;return{x:C,y:O,textAnchor:"middle",verticalAnchor:"middle"}},getAttrsOfCartesianLabel=function(t){var n=t.viewBox,i=t.parentViewBox,o=t.offset,l=t.position,u=n,f=u.x,p=u.y,d=u.width,m=u.height,g=m>=0?1:-1,_=g*o,S=g>0?"end":"start",E=g>0?"start":"end",R=d>=0?1:-1,b=R*o,A=R>0?"end":"start",C=R>0?"start":"end";if(l==="top"){var O={x:f+d/2,y:p-g*o,textAnchor:"middle",verticalAnchor:S};return _objectSpread$o(_objectSpread$o({},O),i?{height:Math.max(p-i.y,0),width:d}:{})}if(l==="bottom"){var M={x:f+d/2,y:p+m+_,textAnchor:"middle",verticalAnchor:E};return _objectSpread$o(_objectSpread$o({},M),i?{height:Math.max(i.y+i.height-(p+m),0),width:d}:{})}if(l==="left"){var T={x:f-b,y:p+m/2,textAnchor:A,verticalAnchor:"middle"};return _objectSpread$o(_objectSpread$o({},T),i?{width:Math.max(T.x-i.x,0),height:m}:{})}if(l==="right"){var j={x:f+d+b,y:p+m/2,textAnchor:C,verticalAnchor:"middle"};return _objectSpread$o(_objectSpread$o({},j),i?{width:Math.max(i.x+i.width-j.x,0),height:m}:{})}var I=i?{width:d,height:m}:{};return l==="insideLeft"?_objectSpread$o({x:f+b,y:p+m/2,textAnchor:C,verticalAnchor:"middle"},I):l==="insideRight"?_objectSpread$o({x:f+d-b,y:p+m/2,textAnchor:A,verticalAnchor:"middle"},I):l==="insideTop"?_objectSpread$o({x:f+d/2,y:p+_,textAnchor:"middle",verticalAnchor:E},I):l==="insideBottom"?_objectSpread$o({x:f+d/2,y:p+m-_,textAnchor:"middle",verticalAnchor:S},I):l==="insideTopLeft"?_objectSpread$o({x:f+b,y:p+_,textAnchor:C,verticalAnchor:E},I):l==="insideTopRight"?_objectSpread$o({x:f+d-b,y:p+_,textAnchor:A,verticalAnchor:E},I):l==="insideBottomLeft"?_objectSpread$o({x:f+b,y:p+m-_,textAnchor:C,verticalAnchor:S},I):l==="insideBottomRight"?_objectSpread$o({x:f+d-b,y:p+m-_,textAnchor:A,verticalAnchor:S},I):isObject(l)&&(isNumber(l.x)||isPercent(l.x))&&(isNumber(l.y)||isPercent(l.y))?_objectSpread$o({x:f+getPercentValue(l.x,d),y:p+getPercentValue(l.y,m),textAnchor:"end",verticalAnchor:"end"},I):_objectSpread$o({x:f+d/2,y:p+m/2,textAnchor:"middle",verticalAnchor:"middle"},I)},isPolar=function(t){return"cx"in t&&isNumber(t.cx)};function Label(e){var t=e.offset,n=t===void 0?5:t,i=_objectWithoutProperties$a(e,_excluded$a),o=_objectSpread$o({offset:n},i),l=o.viewBox,u=o.position,f=o.value,p=o.children,d=o.content,m=o.className,g=m===void 0?"":m,_=o.textBreakAll;if(!l||isNil(f)&&isNil(p)&&!React.isValidElement(d)&&!isFunction(d))return null;if(React.isValidElement(d))return React.cloneElement(d,o);var S;if(isFunction(d)){if(S=React.createElement(d,o),React.isValidElement(S))return S}else S=getLabel(o);var E=isPolar(l),R=filterProps(o,!0);if(E&&(u==="insideStart"||u==="insideEnd"||u==="end"))return renderRadialLabel(o,S,R);var b=E?getAttrsOfPolarLabel(o):getAttrsOfCartesianLabel(o);return React.createElement(Text,_extends$j({className:clsx("recharts-label",g)},R,b,{breakAll:_}),S)}Label.displayName="Label";var parseViewBox=function(t){var n=t.cx,i=t.cy,o=t.angle,l=t.startAngle,u=t.endAngle,f=t.r,p=t.radius,d=t.innerRadius,m=t.outerRadius,g=t.x,_=t.y,S=t.top,E=t.left,R=t.width,b=t.height,A=t.clockWise,C=t.labelViewBox;if(C)return C;if(isNumber(R)&&isNumber(b)){if(isNumber(g)&&isNumber(_))return{x:g,y:_,width:R,height:b};if(isNumber(S)&&isNumber(E))return{x:S,y:E,width:R,height:b}}return isNumber(g)&&isNumber(_)?{x:g,y:_,width:0,height:0}:isNumber(n)&&isNumber(i)?{cx:n,cy:i,startAngle:l||o||0,endAngle:u||o||0,innerRadius:d||0,outerRadius:m||p||f||0,clockWise:A}:t.viewBox?t.viewBox:{}},parseLabel=function(t,n){return t?t===!0?React.createElement(Label,{key:"label-implicit",viewBox:n}):isNumOrStr(t)?React.createElement(Label,{key:"label-implicit",viewBox:n,value:t}):React.isValidElement(t)?t.type===Label?React.cloneElement(t,{key:"label-implicit",viewBox:n}):React.createElement(Label,{key:"label-implicit",content:t,viewBox:n}):isFunction(t)?React.createElement(Label,{key:"label-implicit",content:t,viewBox:n}):isObject(t)?React.createElement(Label,_extends$j({viewBox:n},t,{key:"label-implicit"})):null:null},renderCallByParent$1=function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&i&&!t.label)return null;var o=t.children,l=parseViewBox(t),u=findAllByType(o,Label).map(function(p,d){return React.cloneElement(p,{viewBox:n||l,key:"label-".concat(d)})});if(!i)return u;var f=parseLabel(t.label,n||l);return[f].concat(_toConsumableArray$6(u))};Label.parseViewBox=parseViewBox,Label.renderCallByParent=renderCallByParent$1;var last_1,hasRequiredLast;function requireLast(){if(hasRequiredLast)return last_1;hasRequiredLast=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return last_1=e,last_1}var lastExports=requireLast();const last=getDefaultExportFromCjs(lastExports);function _typeof$s(e){"@babel/helpers - typeof";return _typeof$s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$s(e)}var _excluded$9=["valueAccessor"],_excluded2$4=["data","dataKey","clockWise","id","textBreakAll"];function _toConsumableArray$5(e){return _arrayWithoutHoles$5(e)||_iterableToArray$6(e)||_unsupportedIterableToArray$9(e)||_nonIterableSpread$5()}function _nonIterableSpread$5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
230
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$9(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$9(e,t)}}function _iterableToArray$6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _arrayWithoutHoles$5(e){if(Array.isArray(e))return _arrayLikeToArray$9(e)}function _arrayLikeToArray$9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _extends$i(){return _extends$i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$i.apply(this,arguments)}function ownKeys$n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$n(Object(n),!0).forEach(function(i){_defineProperty$q(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$n(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$q(e,t,n){return t=_toPropertyKey$q(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$q(e){var t=_toPrimitive$q(e,"string");return _typeof$s(t)=="symbol"?t:t+""}function _toPrimitive$q(e,t){if(_typeof$s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$s(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _objectWithoutProperties$9(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$9(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$9(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}var defaultAccessor=function(t){return Array.isArray(t.value)?last(t.value):t.value};function LabelList(e){var t=e.valueAccessor,n=t===void 0?defaultAccessor:t,i=_objectWithoutProperties$9(e,_excluded$9),o=i.data,l=i.dataKey,u=i.clockWise,f=i.id,p=i.textBreakAll,d=_objectWithoutProperties$9(i,_excluded2$4);return!o||!o.length?null:React.createElement(Layer,{className:"recharts-label-list"},o.map(function(m,g){var _=isNil(l)?n(m,g):getValueByDataKey(m&&m.payload,l),S=isNil(f)?{}:{id:"".concat(f,"-").concat(g)};return React.createElement(Label,_extends$i({},filterProps(m,!0),d,S,{parentViewBox:m.parentViewBox,value:_,textBreakAll:p,viewBox:Label.parseViewBox(isNil(u)?m:_objectSpread$n(_objectSpread$n({},m),{},{clockWise:u})),key:"label-".concat(g),index:g}))}))}LabelList.displayName="LabelList";function parseLabelList(e,t){return e?e===!0?React.createElement(LabelList,{key:"labelList-implicit",data:t}):React.isValidElement(e)||isFunction(e)?React.createElement(LabelList,{key:"labelList-implicit",data:t,content:e}):isObject(e)?React.createElement(LabelList,_extends$i({data:t},e,{key:"labelList-implicit"})):null:null}function renderCallByParent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var i=e.children,o=findAllByType(i,LabelList).map(function(u,f){return React.cloneElement(u,{data:t,key:"labelList-".concat(f)})});if(!n)return o;var l=parseLabelList(e.label,t);return[l].concat(_toConsumableArray$5(o))}LabelList.renderCallByParent=renderCallByParent;function _typeof$r(e){"@babel/helpers - typeof";return _typeof$r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$r(e)}function _extends$h(){return _extends$h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$h.apply(this,arguments)}function ownKeys$m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$m(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$m(Object(n),!0).forEach(function(i){_defineProperty$p(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$m(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$p(e,t,n){return t=_toPropertyKey$p(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$p(e){var t=_toPrimitive$p(e,"string");return _typeof$r(t)=="symbol"?t:t+""}function _toPrimitive$p(e,t){if(_typeof$r(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$r(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var getDeltaAngle=function(t,n){var i=mathSign(n-t),o=Math.min(Math.abs(n-t),359.999);return i*o},getTangentCircle=function(t){var n=t.cx,i=t.cy,o=t.radius,l=t.angle,u=t.sign,f=t.isExternal,p=t.cornerRadius,d=t.cornerIsExternal,m=p*(f?1:-1)+o,g=Math.asin(p/m)/RADIAN,_=d?l:l+u*g,S=polarToCartesian(n,i,m,_),E=polarToCartesian(n,i,o,_),R=d?l-u*g:l,b=polarToCartesian(n,i,m*Math.cos(g*RADIAN),R);return{center:S,circleTangency:E,lineTangency:b,theta:g}},getSectorPath=function(t){var n=t.cx,i=t.cy,o=t.innerRadius,l=t.outerRadius,u=t.startAngle,f=t.endAngle,p=getDeltaAngle(u,f),d=u+p,m=polarToCartesian(n,i,l,u),g=polarToCartesian(n,i,l,d),_="M ".concat(m.x,",").concat(m.y,`
231
+ A `).concat(l,",").concat(l,`,0,
232
+ `).concat(+(Math.abs(p)>180),",").concat(+(u>d),`,
233
+ `).concat(g.x,",").concat(g.y,`
234
+ `);if(o>0){var S=polarToCartesian(n,i,o,u),E=polarToCartesian(n,i,o,d);_+="L ".concat(E.x,",").concat(E.y,`
235
+ A `).concat(o,",").concat(o,`,0,
236
+ `).concat(+(Math.abs(p)>180),",").concat(+(u<=d),`,
237
+ `).concat(S.x,",").concat(S.y," Z")}else _+="L ".concat(n,",").concat(i," Z");return _},getSectorWithCorner=function(t){var n=t.cx,i=t.cy,o=t.innerRadius,l=t.outerRadius,u=t.cornerRadius,f=t.forceCornerRadius,p=t.cornerIsExternal,d=t.startAngle,m=t.endAngle,g=mathSign(m-d),_=getTangentCircle({cx:n,cy:i,radius:l,angle:d,sign:g,cornerRadius:u,cornerIsExternal:p}),S=_.circleTangency,E=_.lineTangency,R=_.theta,b=getTangentCircle({cx:n,cy:i,radius:l,angle:m,sign:-g,cornerRadius:u,cornerIsExternal:p}),A=b.circleTangency,C=b.lineTangency,O=b.theta,M=p?Math.abs(d-m):Math.abs(d-m)-R-O;if(M<0)return f?"M ".concat(E.x,",").concat(E.y,`
238
+ a`).concat(u,",").concat(u,",0,0,1,").concat(u*2,`,0
239
+ a`).concat(u,",").concat(u,",0,0,1,").concat(-u*2,`,0
240
+ `):getSectorPath({cx:n,cy:i,innerRadius:o,outerRadius:l,startAngle:d,endAngle:m});var T="M ".concat(E.x,",").concat(E.y,`
241
+ A`).concat(u,",").concat(u,",0,0,").concat(+(g<0),",").concat(S.x,",").concat(S.y,`
242
+ A`).concat(l,",").concat(l,",0,").concat(+(M>180),",").concat(+(g<0),",").concat(A.x,",").concat(A.y,`
243
+ A`).concat(u,",").concat(u,",0,0,").concat(+(g<0),",").concat(C.x,",").concat(C.y,`
244
+ `);if(o>0){var j=getTangentCircle({cx:n,cy:i,radius:o,angle:d,sign:g,isExternal:!0,cornerRadius:u,cornerIsExternal:p}),I=j.circleTangency,D=j.lineTangency,L=j.theta,F=getTangentCircle({cx:n,cy:i,radius:o,angle:m,sign:-g,isExternal:!0,cornerRadius:u,cornerIsExternal:p}),N=F.circleTangency,B=F.lineTangency,z=F.theta,V=p?Math.abs(d-m):Math.abs(d-m)-L-z;if(V<0&&u===0)return"".concat(T,"L").concat(n,",").concat(i,"Z");T+="L".concat(B.x,",").concat(B.y,`
245
+ A`).concat(u,",").concat(u,",0,0,").concat(+(g<0),",").concat(N.x,",").concat(N.y,`
246
+ A`).concat(o,",").concat(o,",0,").concat(+(V>180),",").concat(+(g>0),",").concat(I.x,",").concat(I.y,`
247
+ A`).concat(u,",").concat(u,",0,0,").concat(+(g<0),",").concat(D.x,",").concat(D.y,"Z")}else T+="L".concat(n,",").concat(i,"Z");return T},defaultProps$3={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Sector=function(t){var n=_objectSpread$m(_objectSpread$m({},defaultProps$3),t),i=n.cx,o=n.cy,l=n.innerRadius,u=n.outerRadius,f=n.cornerRadius,p=n.forceCornerRadius,d=n.cornerIsExternal,m=n.startAngle,g=n.endAngle,_=n.className;if(u<l||m===g)return null;var S=clsx("recharts-sector",_),E=u-l,R=getPercentValue(f,E,0,!0),b;return R>0&&Math.abs(m-g)<360?b=getSectorWithCorner({cx:i,cy:o,innerRadius:l,outerRadius:u,cornerRadius:Math.min(R,E/2),forceCornerRadius:p,cornerIsExternal:d,startAngle:m,endAngle:g}):b=getSectorPath({cx:i,cy:o,innerRadius:l,outerRadius:u,startAngle:m,endAngle:g}),React.createElement("path",_extends$h({},filterProps(n,!0),{className:S,d:b,role:"img"}))};function _typeof$q(e){"@babel/helpers - typeof";return _typeof$q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$q(e)}function _extends$g(){return _extends$g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$g.apply(this,arguments)}function ownKeys$l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$l(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$l(Object(n),!0).forEach(function(i){_defineProperty$o(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$l(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$o(e,t,n){return t=_toPropertyKey$o(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$o(e){var t=_toPrimitive$o(e,"string");return _typeof$q(t)=="symbol"?t:t+""}function _toPrimitive$o(e,t){if(_typeof$q(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$q(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CURVE_FACTORIES={curveBasisClosed,curveBasisOpen,curveBasis,curveBumpX:bumpX,curveBumpY:bumpY,curveLinearClosed,curveLinear,curveMonotoneX:monotoneX,curveMonotoneY:monotoneY,curveNatural,curveStep,curveStepAfter:stepAfter,curveStepBefore:stepBefore},defined=function(t){return t.x===+t.x&&t.y===+t.y},getX=function(t){return t.x},getY=function(t){return t.y},getCurveFactory=function(t,n){if(isFunction(t))return t;var i="curve".concat(upperFirst(t));return(i==="curveMonotone"||i==="curveBump")&&n?CURVE_FACTORIES["".concat(i).concat(n==="vertical"?"Y":"X")]:CURVE_FACTORIES[i]||curveLinear},getPath$1=function(t){var n=t.type,i=n===void 0?"linear":n,o=t.points,l=o===void 0?[]:o,u=t.baseLine,f=t.layout,p=t.connectNulls,d=p===void 0?!1:p,m=getCurveFactory(i,f),g=d?l.filter(function(R){return defined(R)}):l,_;if(Array.isArray(u)){var S=d?u.filter(function(R){return defined(R)}):u,E=g.map(function(R,b){return _objectSpread$l(_objectSpread$l({},R),{},{base:S[b]})});return f==="vertical"?_=shapeArea().y(getY).x1(getX).x0(function(R){return R.base.x}):_=shapeArea().x(getX).y1(getY).y0(function(R){return R.base.y}),_.defined(defined).curve(m),_(E)}return f==="vertical"&&isNumber(u)?_=shapeArea().y(getY).x1(getX).x0(u):isNumber(u)?_=shapeArea().x(getX).y1(getY).y0(u):_=shapeLine().x(getX).y(getY),_.defined(defined).curve(m),_(g)},Curve=function(t){var n=t.className,i=t.points,o=t.path,l=t.pathRef;if((!i||!i.length)&&!o)return null;var u=i&&i.length?getPath$1(t):o;return React.createElement("path",_extends$g({},filterProps(t,!1),adaptEventHandlers(t),{className:clsx("recharts-curve",n),d:u,ref:l}))},propTypes={exports:{}},reactIs={exports:{}},reactIs_production_min={};/** @license React v16.13.1
248
+ * react-is.production.min.js
249
+ *
250
+ * Copyright (c) Facebook, Inc. and its affiliates.
251
+ *
252
+ * This source code is licensed under the MIT license found in the
253
+ * LICENSE file in the root directory of this source tree.
254
+ */var hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function O(T){if(typeof T=="object"&&T!==null){var j=T.$$typeof;switch(j){case t:switch(T=T.type,T){case p:case d:case i:case l:case o:case g:return T;default:switch(T=T&&T.$$typeof,T){case f:case m:case E:case S:case u:return T;default:return j}}case n:return j}}}function M(T){return O(T)===d}return reactIs_production_min.AsyncMode=p,reactIs_production_min.ConcurrentMode=d,reactIs_production_min.ContextConsumer=f,reactIs_production_min.ContextProvider=u,reactIs_production_min.Element=t,reactIs_production_min.ForwardRef=m,reactIs_production_min.Fragment=i,reactIs_production_min.Lazy=E,reactIs_production_min.Memo=S,reactIs_production_min.Portal=n,reactIs_production_min.Profiler=l,reactIs_production_min.StrictMode=o,reactIs_production_min.Suspense=g,reactIs_production_min.isAsyncMode=function(T){return M(T)||O(T)===p},reactIs_production_min.isConcurrentMode=M,reactIs_production_min.isContextConsumer=function(T){return O(T)===f},reactIs_production_min.isContextProvider=function(T){return O(T)===u},reactIs_production_min.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},reactIs_production_min.isForwardRef=function(T){return O(T)===m},reactIs_production_min.isFragment=function(T){return O(T)===i},reactIs_production_min.isLazy=function(T){return O(T)===E},reactIs_production_min.isMemo=function(T){return O(T)===S},reactIs_production_min.isPortal=function(T){return O(T)===n},reactIs_production_min.isProfiler=function(T){return O(T)===l},reactIs_production_min.isStrictMode=function(T){return O(T)===o},reactIs_production_min.isSuspense=function(T){return O(T)===g},reactIs_production_min.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===i||T===d||T===l||T===o||T===g||T===_||typeof T=="object"&&T!==null&&(T.$$typeof===E||T.$$typeof===S||T.$$typeof===u||T.$$typeof===f||T.$$typeof===m||T.$$typeof===b||T.$$typeof===A||T.$$typeof===C||T.$$typeof===R)},reactIs_production_min.typeOf=O,reactIs_production_min}var reactIs_development={};/** @license React v16.13.1
255
+ * react-is.development.js
256
+ *
257
+ * Copyright (c) Facebook, Inc. and its affiliates.
258
+ *
259
+ * This source code is licensed under the MIT license found in the
260
+ * LICENSE file in the root directory of this source tree.
261
+ */var hasRequiredReactIs_development;function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,R=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function O(K){return typeof K=="string"||typeof K=="function"||K===i||K===d||K===l||K===o||K===g||K===_||typeof K=="object"&&K!==null&&(K.$$typeof===E||K.$$typeof===S||K.$$typeof===u||K.$$typeof===f||K.$$typeof===m||K.$$typeof===b||K.$$typeof===A||K.$$typeof===C||K.$$typeof===R)}function M(K){if(typeof K=="object"&&K!==null){var pe=K.$$typeof;switch(pe){case t:var J=K.type;switch(J){case p:case d:case i:case l:case o:case g:return J;default:var fe=J&&J.$$typeof;switch(fe){case f:case m:case E:case S:case u:return fe;default:return pe}}case n:return pe}}}var T=p,j=d,I=f,D=u,L=t,F=m,N=i,B=E,z=S,V=n,W=l,U=o,Q=g,q=!1;function G(K){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),H(K)||M(K)===p}function H(K){return M(K)===d}function Z(K){return M(K)===f}function ee(K){return M(K)===u}function ne(K){return typeof K=="object"&&K!==null&&K.$$typeof===t}function ie(K){return M(K)===m}function oe(K){return M(K)===i}function ce(K){return M(K)===E}function le(K){return M(K)===S}function ue(K){return M(K)===n}function te(K){return M(K)===l}function se(K){return M(K)===o}function ae(K){return M(K)===g}reactIs_development.AsyncMode=T,reactIs_development.ConcurrentMode=j,reactIs_development.ContextConsumer=I,reactIs_development.ContextProvider=D,reactIs_development.Element=L,reactIs_development.ForwardRef=F,reactIs_development.Fragment=N,reactIs_development.Lazy=B,reactIs_development.Memo=z,reactIs_development.Portal=V,reactIs_development.Profiler=W,reactIs_development.StrictMode=U,reactIs_development.Suspense=Q,reactIs_development.isAsyncMode=G,reactIs_development.isConcurrentMode=H,reactIs_development.isContextConsumer=Z,reactIs_development.isContextProvider=ee,reactIs_development.isElement=ne,reactIs_development.isForwardRef=ie,reactIs_development.isFragment=oe,reactIs_development.isLazy=ce,reactIs_development.isMemo=le,reactIs_development.isPortal=ue,reactIs_development.isProfiler=te,reactIs_development.isStrictMode=se,reactIs_development.isSuspense=ae,reactIs_development.isValidElementType=O,reactIs_development.typeOf=M}()),reactIs_development}var hasRequiredReactIs;function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,process.env.NODE_ENV==="production"?reactIs.exports=requireReactIs_production_min():reactIs.exports=requireReactIs_development()),reactIs.exports}/*
262
+ object-assign
263
+ (c) Sindre Sorhus
264
+ @license MIT
265
+ */var objectAssign,hasRequiredObjectAssign;function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(l){if(l==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(l)}function o(){try{if(!Object.assign)return!1;var l=new String("abc");if(l[5]="de",Object.getOwnPropertyNames(l)[0]==="5")return!1;for(var u={},f=0;f<10;f++)u["_"+String.fromCharCode(f)]=f;var p=Object.getOwnPropertyNames(u).map(function(m){return u[m]});if(p.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(m){d[m]=m}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return objectAssign=o()?Object.assign:function(l,u){for(var f,p=i(l),d,m=1;m<arguments.length;m++){f=Object(arguments[m]);for(var g in f)t.call(f,g)&&(p[g]=f[g]);if(e){d=e(f);for(var _=0;_<d.length;_++)n.call(f,d[_])&&(p[d[_]]=f[d[_]])}}return p},objectAssign}var ReactPropTypesSecret_1,hasRequiredReactPropTypesSecret;function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ReactPropTypesSecret_1=e,ReactPropTypesSecret_1}var has,hasRequiredHas;function requireHas(){return hasRequiredHas||(hasRequiredHas=1,has=Function.call.bind(Object.prototype.hasOwnProperty)),has}var checkPropTypes_1,hasRequiredCheckPropTypes;function requireCheckPropTypes(){if(hasRequiredCheckPropTypes)return checkPropTypes_1;hasRequiredCheckPropTypes=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=requireReactPropTypesSecret(),n={},i=requireHas();e=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function o(l,u,f,p,d){if(process.env.NODE_ENV!=="production"){for(var m in l)if(i(l,m)){var g;try{if(typeof l[m]!="function"){var _=Error((p||"React class")+": "+f+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}g=l[m](u,m,p,f,null,t)}catch(E){g=E}if(g&&!(g instanceof Error)&&e((p||"React class")+": type specification of "+f+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var S=d?d():"";e("Failed "+f+" type: "+g.message+(S??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},checkPropTypes_1=o,checkPropTypes_1}var factoryWithTypeCheckers,hasRequiredFactoryWithTypeCheckers;function requireFactoryWithTypeCheckers(){if(hasRequiredFactoryWithTypeCheckers)return factoryWithTypeCheckers;hasRequiredFactoryWithTypeCheckers=1;var e=requireReactIs(),t=requireObjectAssign(),n=requireReactPropTypesSecret(),i=requireHas(),o=requireCheckPropTypes(),l=function(){};process.env.NODE_ENV!=="production"&&(l=function(f){var p="Warning: "+f;typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}});function u(){return null}return factoryWithTypeCheckers=function(f,p){var d=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function g(H){var Z=H&&(d&&H[d]||H[m]);if(typeof Z=="function")return Z}var _="<<anonymous>>",S={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:C(),arrayOf:O,element:M(),elementType:T(),instanceOf:j,node:F(),objectOf:D,oneOf:I,oneOfType:L,shape:B,exact:z};function E(H,Z){return H===Z?H!==0||1/H===1/Z:H!==H&&Z!==Z}function R(H,Z){this.message=H,this.data=Z&&typeof Z=="object"?Z:{},this.stack=""}R.prototype=Error.prototype;function b(H){if(process.env.NODE_ENV!=="production")var Z={},ee=0;function ne(oe,ce,le,ue,te,se,ae){if(ue=ue||_,se=se||le,ae!==n){if(p){var K=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw K.name="Invariant Violation",K}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=ue+":"+le;!Z[pe]&&ee<3&&(l("You are manually calling a React.PropTypes validation function for the `"+se+"` prop on `"+ue+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Z[pe]=!0,ee++)}}return ce[le]==null?oe?ce[le]===null?new R("The "+te+" `"+se+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new R("The "+te+" `"+se+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:H(ce,le,ue,te,se)}var ie=ne.bind(null,!1);return ie.isRequired=ne.bind(null,!0),ie}function A(H){function Z(ee,ne,ie,oe,ce,le){var ue=ee[ne],te=U(ue);if(te!==H){var se=Q(ue);return new R("Invalid "+oe+" `"+ce+"` of type "+("`"+se+"` supplied to `"+ie+"`, expected ")+("`"+H+"`."),{expectedType:H})}return null}return b(Z)}function C(){return b(u)}function O(H){function Z(ee,ne,ie,oe,ce){if(typeof H!="function")return new R("Property `"+ce+"` of component `"+ie+"` has invalid PropType notation inside arrayOf.");var le=ee[ne];if(!Array.isArray(le)){var ue=U(le);return new R("Invalid "+oe+" `"+ce+"` of type "+("`"+ue+"` supplied to `"+ie+"`, expected an array."))}for(var te=0;te<le.length;te++){var se=H(le,te,ie,oe,ce+"["+te+"]",n);if(se instanceof Error)return se}return null}return b(Z)}function M(){function H(Z,ee,ne,ie,oe){var ce=Z[ee];if(!f(ce)){var le=U(ce);return new R("Invalid "+ie+" `"+oe+"` of type "+("`"+le+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return b(H)}function T(){function H(Z,ee,ne,ie,oe){var ce=Z[ee];if(!e.isValidElementType(ce)){var le=U(ce);return new R("Invalid "+ie+" `"+oe+"` of type "+("`"+le+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return b(H)}function j(H){function Z(ee,ne,ie,oe,ce){if(!(ee[ne]instanceof H)){var le=H.name||_,ue=G(ee[ne]);return new R("Invalid "+oe+" `"+ce+"` of type "+("`"+ue+"` supplied to `"+ie+"`, expected ")+("instance of `"+le+"`."))}return null}return b(Z)}function I(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&(arguments.length>1?l("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):l("Invalid argument supplied to oneOf, expected an array.")),u;function Z(ee,ne,ie,oe,ce){for(var le=ee[ne],ue=0;ue<H.length;ue++)if(E(le,H[ue]))return null;var te=JSON.stringify(H,function(ae,K){var pe=Q(K);return pe==="symbol"?String(K):K});return new R("Invalid "+oe+" `"+ce+"` of value `"+String(le)+"` "+("supplied to `"+ie+"`, expected one of "+te+"."))}return b(Z)}function D(H){function Z(ee,ne,ie,oe,ce){if(typeof H!="function")return new R("Property `"+ce+"` of component `"+ie+"` has invalid PropType notation inside objectOf.");var le=ee[ne],ue=U(le);if(ue!=="object")return new R("Invalid "+oe+" `"+ce+"` of type "+("`"+ue+"` supplied to `"+ie+"`, expected an object."));for(var te in le)if(i(le,te)){var se=H(le,te,ie,oe,ce+"."+te,n);if(se instanceof Error)return se}return null}return b(Z)}function L(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&l("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var Z=0;Z<H.length;Z++){var ee=H[Z];if(typeof ee!="function")return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(ee)+" at index "+Z+"."),u}function ne(ie,oe,ce,le,ue){for(var te=[],se=0;se<H.length;se++){var ae=H[se],K=ae(ie,oe,ce,le,ue,n);if(K==null)return null;K.data&&i(K.data,"expectedType")&&te.push(K.data.expectedType)}var pe=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new R("Invalid "+le+" `"+ue+"` supplied to "+("`"+ce+"`"+pe+"."))}return b(ne)}function F(){function H(Z,ee,ne,ie,oe){return V(Z[ee])?null:new R("Invalid "+ie+" `"+oe+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return b(H)}function N(H,Z,ee,ne,ie){return new R((H||"React class")+": "+Z+" type `"+ee+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ie+"`.")}function B(H){function Z(ee,ne,ie,oe,ce){var le=ee[ne],ue=U(le);if(ue!=="object")return new R("Invalid "+oe+" `"+ce+"` of type `"+ue+"` "+("supplied to `"+ie+"`, expected `object`."));for(var te in H){var se=H[te];if(typeof se!="function")return N(ie,oe,ce,te,Q(se));var ae=se(le,te,ie,oe,ce+"."+te,n);if(ae)return ae}return null}return b(Z)}function z(H){function Z(ee,ne,ie,oe,ce){var le=ee[ne],ue=U(le);if(ue!=="object")return new R("Invalid "+oe+" `"+ce+"` of type `"+ue+"` "+("supplied to `"+ie+"`, expected `object`."));var te=t({},ee[ne],H);for(var se in te){var ae=H[se];if(i(H,se)&&typeof ae!="function")return N(ie,oe,ce,se,Q(ae));if(!ae)return new R("Invalid "+oe+" `"+ce+"` key `"+se+"` supplied to `"+ie+"`.\nBad object: "+JSON.stringify(ee[ne],null," ")+`
266
+ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var K=ae(le,se,ie,oe,ce+"."+se,n);if(K)return K}return null}return b(Z)}function V(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(V);if(H===null||f(H))return!0;var Z=g(H);if(Z){var ee=Z.call(H),ne;if(Z!==H.entries){for(;!(ne=ee.next()).done;)if(!V(ne.value))return!1}else for(;!(ne=ee.next()).done;){var ie=ne.value;if(ie&&!V(ie[1]))return!1}}else return!1;return!0;default:return!1}}function W(H,Z){return H==="symbol"?!0:Z?Z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Z instanceof Symbol:!1}function U(H){var Z=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":W(Z,H)?"symbol":Z}function Q(H){if(typeof H>"u"||H===null)return""+H;var Z=U(H);if(Z==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return Z}function q(H){var Z=Q(H);switch(Z){case"array":case"object":return"an "+Z;case"boolean":case"date":case"regexp":return"a "+Z;default:return Z}}function G(H){return!H.constructor||!H.constructor.name?_:H.constructor.name}return S.checkPropTypes=o,S.resetWarningCache=o.resetWarningCache,S.PropTypes=S,S},factoryWithTypeCheckers}var factoryWithThrowingShims,hasRequiredFactoryWithThrowingShims;function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var e=requireReactPropTypesSecret();function t(){}function n(){}return n.resetWarningCache=t,factoryWithThrowingShims=function(){function i(u,f,p,d,m,g){if(g!==e){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}i.isRequired=i;function o(){return i}var l={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:o,element:i,elementType:i,instanceOf:o,node:i,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return l.PropTypes=l,l},factoryWithThrowingShims}var hasRequiredPropTypes;function requirePropTypes(){if(hasRequiredPropTypes)return propTypes.exports;if(hasRequiredPropTypes=1,process.env.NODE_ENV!=="production"){var e=requireReactIs(),t=!0;propTypes.exports=requireFactoryWithTypeCheckers()(e.isElement,t)}else propTypes.exports=requireFactoryWithThrowingShims()();return propTypes.exports}var propTypesExports=requirePropTypes();const PropTypes=getDefaultExportFromCjs(propTypesExports);var getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty;function combineComparators(e,t){return function(i,o,l){return e(i,o,l)&&t(i,o,l)}}function createIsCircular(e){return function(n,i,o){if(!n||!i||typeof n!="object"||typeof i!="object")return e(n,i,o);var l=o.cache,u=l.get(n),f=l.get(i);if(u&&f)return u===i&&f===n;l.set(n,i),l.set(i,n);var p=e(n,i,o);return l.delete(n),l.delete(i),p}}function getStrictProperties(e){return getOwnPropertyNames(e).concat(getOwnPropertySymbols(e))}var hasOwn=Object.hasOwn||function(e,t){return hasOwnProperty.call(e,t)};function sameValueZeroEqual(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var PREACT_VNODE="__v",PREACT_OWNER="__o",REACT_OWNER="_owner",getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,keys=Object.keys;function areArraysEqual(e,t,n){var i=e.length;if(t.length!==i)return!1;for(;i-- >0;)if(!n.equals(e[i],t[i],i,i,e,t,n))return!1;return!0}function areDatesEqual(e,t){return sameValueZeroEqual(e.getTime(),t.getTime())}function areErrorsEqual(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function areFunctionsEqual(e,t){return e===t}function areMapsEqual(e,t,n){var i=e.size;if(i!==t.size)return!1;if(!i)return!0;for(var o=new Array(i),l=e.entries(),u,f,p=0;(u=l.next())&&!u.done;){for(var d=t.entries(),m=!1,g=0;(f=d.next())&&!f.done;){if(o[g]){g++;continue}var _=u.value,S=f.value;if(n.equals(_[0],S[0],p,g,e,t,n)&&n.equals(_[1],S[1],_[0],S[0],e,t,n)){m=o[g]=!0;break}g++}if(!m)return!1;p++}return!0}var areNumbersEqual=sameValueZeroEqual;function areObjectsEqual(e,t,n){var i=keys(e),o=i.length;if(keys(t).length!==o)return!1;for(;o-- >0;)if(!isPropertyEqual(e,t,n,i[o]))return!1;return!0}function areObjectsEqualStrict(e,t,n){var i=getStrictProperties(e),o=i.length;if(getStrictProperties(t).length!==o)return!1;for(var l,u,f;o-- >0;)if(l=i[o],!isPropertyEqual(e,t,n,l)||(u=getOwnPropertyDescriptor(e,l),f=getOwnPropertyDescriptor(t,l),(u||f)&&(!u||!f||u.configurable!==f.configurable||u.enumerable!==f.enumerable||u.writable!==f.writable)))return!1;return!0}function arePrimitiveWrappersEqual(e,t){return sameValueZeroEqual(e.valueOf(),t.valueOf())}function areRegExpsEqual(e,t){return e.source===t.source&&e.flags===t.flags}function areSetsEqual(e,t,n){var i=e.size;if(i!==t.size)return!1;if(!i)return!0;for(var o=new Array(i),l=e.values(),u,f;(u=l.next())&&!u.done;){for(var p=t.values(),d=!1,m=0;(f=p.next())&&!f.done;){if(!o[m]&&n.equals(u.value,f.value,u.value,f.value,e,t,n)){d=o[m]=!0;break}m++}if(!d)return!1}return!0}function areTypedArraysEqual(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function areUrlsEqual(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function isPropertyEqual(e,t,n,i){return(i===REACT_OWNER||i===PREACT_OWNER||i===PREACT_VNODE)&&(e.$$typeof||t.$$typeof)?!0:hasOwn(t,i)&&n.equals(e[i],t[i],i,i,e,t,n)}var ARGUMENTS_TAG="[object Arguments]",BOOLEAN_TAG="[object Boolean]",DATE_TAG="[object Date]",ERROR_TAG="[object Error]",MAP_TAG="[object Map]",NUMBER_TAG="[object Number]",OBJECT_TAG="[object Object]",REG_EXP_TAG="[object RegExp]",SET_TAG="[object Set]",STRING_TAG="[object String]",URL_TAG="[object URL]",isArray=Array.isArray,isTypedArray=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,assign=Object.assign,getTag=Object.prototype.toString.call.bind(Object.prototype.toString);function createEqualityComparator(e){var t=e.areArraysEqual,n=e.areDatesEqual,i=e.areErrorsEqual,o=e.areFunctionsEqual,l=e.areMapsEqual,u=e.areNumbersEqual,f=e.areObjectsEqual,p=e.arePrimitiveWrappersEqual,d=e.areRegExpsEqual,m=e.areSetsEqual,g=e.areTypedArraysEqual,_=e.areUrlsEqual;return function(E,R,b){if(E===R)return!0;if(E==null||R==null)return!1;var A=typeof E;if(A!==typeof R)return!1;if(A!=="object")return A==="number"?u(E,R,b):A==="function"?o(E,R,b):!1;var C=E.constructor;if(C!==R.constructor)return!1;if(C===Object)return f(E,R,b);if(isArray(E))return t(E,R,b);if(isTypedArray!=null&&isTypedArray(E))return g(E,R,b);if(C===Date)return n(E,R,b);if(C===RegExp)return d(E,R,b);if(C===Map)return l(E,R,b);if(C===Set)return m(E,R,b);var O=getTag(E);return O===DATE_TAG?n(E,R,b):O===REG_EXP_TAG?d(E,R,b):O===MAP_TAG?l(E,R,b):O===SET_TAG?m(E,R,b):O===OBJECT_TAG?typeof E.then!="function"&&typeof R.then!="function"&&f(E,R,b):O===URL_TAG?_(E,R,b):O===ERROR_TAG?i(E,R,b):O===ARGUMENTS_TAG?f(E,R,b):O===BOOLEAN_TAG||O===NUMBER_TAG||O===STRING_TAG?p(E,R,b):!1}}function createEqualityComparatorConfig(e){var t=e.circular,n=e.createCustomConfig,i=e.strict,o={areArraysEqual:i?areObjectsEqualStrict:areArraysEqual,areDatesEqual,areErrorsEqual,areFunctionsEqual,areMapsEqual:i?combineComparators(areMapsEqual,areObjectsEqualStrict):areMapsEqual,areNumbersEqual,areObjectsEqual:i?areObjectsEqualStrict:areObjectsEqual,arePrimitiveWrappersEqual,areRegExpsEqual,areSetsEqual:i?combineComparators(areSetsEqual,areObjectsEqualStrict):areSetsEqual,areTypedArraysEqual:i?areObjectsEqualStrict:areTypedArraysEqual,areUrlsEqual};if(n&&(o=assign({},o,n(o))),t){var l=createIsCircular(o.areArraysEqual),u=createIsCircular(o.areMapsEqual),f=createIsCircular(o.areObjectsEqual),p=createIsCircular(o.areSetsEqual);o=assign({},o,{areArraysEqual:l,areMapsEqual:u,areObjectsEqual:f,areSetsEqual:p})}return o}function createInternalEqualityComparator(e){return function(t,n,i,o,l,u,f){return e(t,n,f)}}function createIsEqual(e){var t=e.circular,n=e.comparator,i=e.createState,o=e.equals,l=e.strict;if(i)return function(p,d){var m=i(),g=m.cache,_=g===void 0?t?new WeakMap:void 0:g,S=m.meta;return n(p,d,{cache:_,equals:o,meta:S,strict:l})};if(t)return function(p,d){return n(p,d,{cache:new WeakMap,equals:o,meta:void 0,strict:l})};var u={cache:void 0,equals:o,meta:void 0,strict:l};return function(p,d){return n(p,d,u)}}var deepEqual=createCustomEqual();createCustomEqual({strict:!0}),createCustomEqual({circular:!0}),createCustomEqual({circular:!0,strict:!0}),createCustomEqual({createInternalComparator:function(){return sameValueZeroEqual}}),createCustomEqual({strict:!0,createInternalComparator:function(){return sameValueZeroEqual}}),createCustomEqual({circular:!0,createInternalComparator:function(){return sameValueZeroEqual}}),createCustomEqual({circular:!0,createInternalComparator:function(){return sameValueZeroEqual},strict:!0});function createCustomEqual(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,i=e.createInternalComparator,o=e.createState,l=e.strict,u=l===void 0?!1:l,f=createEqualityComparatorConfig(e),p=createEqualityComparator(f),d=i?i(p):createInternalEqualityComparator(p);return createIsEqual({circular:n,comparator:p,createState:o,equals:d,strict:u})}function safeRequestAnimationFrame(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function setRafTimeout(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,i=function o(l){n<0&&(n=l),l-n>t?(e(l),n=-1):safeRequestAnimationFrame(o)};requestAnimationFrame(i)}function _typeof$p(e){"@babel/helpers - typeof";return _typeof$p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$p(e)}function _toArray(e){return _arrayWithHoles$6(e)||_iterableToArray$5(e)||_unsupportedIterableToArray$8(e)||_nonIterableRest$6()}function _nonIterableRest$6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
267
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$8(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$8(e,t)}}function _arrayLikeToArray$8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _iterableToArray$5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _arrayWithHoles$6(e){if(Array.isArray(e))return e}function createAnimateManager(){var e={},t=function(){return null},n=!1,i=function o(l){if(!n){if(Array.isArray(l)){if(!l.length)return;var u=l,f=_toArray(u),p=f[0],d=f.slice(1);if(typeof p=="number"){setRafTimeout(o.bind(null,d),p);return}o(p),setRafTimeout(o.bind(null,d));return}_typeof$p(l)==="object"&&(e=l,t(e)),typeof l=="function"&&l()}};return{stop:function(){n=!0},start:function(l){n=!1,i(l)},subscribe:function(l){return t=l,function(){t=function(){return null}}}}}function _typeof$o(e){"@babel/helpers - typeof";return _typeof$o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$o(e)}function ownKeys$k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$k(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$k(Object(n),!0).forEach(function(i){_defineProperty$n(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$k(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$n(e,t,n){return t=_toPropertyKey$n(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$n(e){var t=_toPrimitive$n(e,"string");return _typeof$o(t)==="symbol"?t:String(t)}function _toPrimitive$n(e,t){if(_typeof$o(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$o(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var getIntersectionKeys=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(i,o){return i.filter(function(l){return o.includes(l)})})},identity=function(t){return t},getDashCase=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},mapObject=function(t,n){return Object.keys(n).reduce(function(i,o){return _objectSpread$k(_objectSpread$k({},i),{},_defineProperty$n({},o,t(o,n[o])))},{})},getTransitionVal=function(t,n,i){return t.map(function(o){return"".concat(getDashCase(o)," ").concat(n,"ms ").concat(i)}).join(",")},isDev=process.env.NODE_ENV!=="production",warn=function(t,n,i,o,l,u,f,p){if(isDev&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[i,o,l,u,f,p],m=0;console.warn(n.replace(/%s/g,function(){return d[m++]}))}};function _slicedToArray$5(e,t){return _arrayWithHoles$5(e)||_iterableToArrayLimit$5(e,t)||_unsupportedIterableToArray$7(e,t)||_nonIterableRest$5()}function _nonIterableRest$5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
268
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit$5(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,l,u,f=[],p=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(p=(i=l.call(n)).done)&&(f.push(i.value),f.length!==t);p=!0);}catch(m){d=!0,o=m}finally{try{if(!p&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(d)throw o}}return f}}function _arrayWithHoles$5(e){if(Array.isArray(e))return e}function _toConsumableArray$4(e){return _arrayWithoutHoles$4(e)||_iterableToArray$4(e)||_unsupportedIterableToArray$7(e)||_nonIterableSpread$4()}function _nonIterableSpread$4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
269
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$7(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$7(e,t)}}function _iterableToArray$4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _arrayWithoutHoles$4(e){if(Array.isArray(e))return _arrayLikeToArray$7(e)}function _arrayLikeToArray$7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var ACCURACY=1e-4,cubicBezierFactor=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},multyTime=function(t,n){return t.map(function(i,o){return i*Math.pow(n,o)}).reduce(function(i,o){return i+o})},cubicBezier=function(t,n){return function(i){var o=cubicBezierFactor(t,n);return multyTime(o,i)}},derivativeCubicBezier=function(t,n){return function(i){var o=cubicBezierFactor(t,n),l=[].concat(_toConsumableArray$4(o.map(function(u,f){return u*f}).slice(1)),[0]);return multyTime(l,i)}},configBezier=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=n[0],l=n[1],u=n[2],f=n[3];if(n.length===1)switch(n[0]){case"linear":o=0,l=0,u=1,f=1;break;case"ease":o=.25,l=.1,u=.25,f=1;break;case"ease-in":o=.42,l=0,u=1,f=1;break;case"ease-out":o=.42,l=0,u=.58,f=1;break;case"ease-in-out":o=0,l=0,u=.58,f=1;break;default:{var p=n[0].split("(");if(p[0]==="cubic-bezier"&&p[1].split(")")[0].split(",").length===4){var d=p[1].split(")")[0].split(",").map(function(b){return parseFloat(b)}),m=_slicedToArray$5(d,4);o=m[0],l=m[1],u=m[2],f=m[3]}else warn(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",n)}}warn([o,u,l,f].every(function(b){return typeof b=="number"&&b>=0&&b<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var g=cubicBezier(o,u),_=cubicBezier(l,f),S=derivativeCubicBezier(o,u),E=function(A){return A>1?1:A<0?0:A},R=function(A){for(var C=A>1?1:A,O=C,M=0;M<8;++M){var T=g(O)-C,j=S(O);if(Math.abs(T-C)<ACCURACY||j<ACCURACY)return _(O);O=E(O-T/j)}return _(O)};return R.isStepper=!1,R},configSpring=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,i=n===void 0?100:n,o=t.damping,l=o===void 0?8:o,u=t.dt,f=u===void 0?17:u,p=function(m,g,_){var S=-(m-g)*i,E=_*l,R=_+(S-E)*f/1e3,b=_*f/1e3+m;return Math.abs(b-g)<ACCURACY&&Math.abs(R)<ACCURACY?[g,0]:[b,R]};return p.isStepper=!0,p.dt=f,p},configEasing=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=n[0];if(typeof o=="string")switch(o){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return configBezier(o);case"spring":return configSpring();default:if(o.split("(")[0]==="cubic-bezier")return configBezier(o);warn(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",n)}return typeof o=="function"?o:(warn(!1,"[configEasing]: first argument type should be function or string, instead received %s",n),null)};function _typeof$n(e){"@babel/helpers - typeof";return _typeof$n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$n(e)}function _toConsumableArray$3(e){return _arrayWithoutHoles$3(e)||_iterableToArray$3(e)||_unsupportedIterableToArray$6(e)||_nonIterableSpread$3()}function _nonIterableSpread$3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
270
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray$3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _arrayWithoutHoles$3(e){if(Array.isArray(e))return _arrayLikeToArray$6(e)}function ownKeys$j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$j(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$j(Object(n),!0).forEach(function(i){_defineProperty$m(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$j(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$m(e,t,n){return t=_toPropertyKey$m(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$m(e){var t=_toPrimitive$m(e,"string");return _typeof$n(t)==="symbol"?t:String(t)}function _toPrimitive$m(e,t){if(_typeof$n(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$n(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _slicedToArray$4(e,t){return _arrayWithHoles$4(e)||_iterableToArrayLimit$4(e,t)||_unsupportedIterableToArray$6(e,t)||_nonIterableRest$4()}function _nonIterableRest$4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
271
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$6(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$6(e,t)}}function _arrayLikeToArray$6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _iterableToArrayLimit$4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,l,u,f=[],p=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(p=(i=l.call(n)).done)&&(f.push(i.value),f.length!==t);p=!0);}catch(m){d=!0,o=m}finally{try{if(!p&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(d)throw o}}return f}}function _arrayWithHoles$4(e){if(Array.isArray(e))return e}var alpha=function(t,n,i){return t+(n-t)*i},needContinue=function(t){var n=t.from,i=t.to;return n!==i},calStepperVals=function e(t,n,i){var o=mapObject(function(l,u){if(needContinue(u)){var f=t(u.from,u.to,u.velocity),p=_slicedToArray$4(f,2),d=p[0],m=p[1];return _objectSpread$j(_objectSpread$j({},u),{},{from:d,velocity:m})}return u},n);return i<1?mapObject(function(l,u){return needContinue(u)?_objectSpread$j(_objectSpread$j({},u),{},{velocity:alpha(u.velocity,o[l].velocity,i),from:alpha(u.from,o[l].from,i)}):u},n):e(t,o,i-1)};const configUpdate=function(e,t,n,i,o){var l=getIntersectionKeys(e,t),u=l.reduce(function(b,A){return _objectSpread$j(_objectSpread$j({},b),{},_defineProperty$m({},A,[e[A],t[A]]))},{}),f=l.reduce(function(b,A){return _objectSpread$j(_objectSpread$j({},b),{},_defineProperty$m({},A,{from:e[A],velocity:0,to:t[A]}))},{}),p=-1,d,m,g=function(){return null},_=function(){return mapObject(function(A,C){return C.from},f)},S=function(){return!Object.values(f).filter(needContinue).length},E=function(A){d||(d=A);var C=A-d,O=C/n.dt;f=calStepperVals(n,f,O),o(_objectSpread$j(_objectSpread$j(_objectSpread$j({},e),t),_())),d=A,S()||(p=requestAnimationFrame(g))},R=function(A){m||(m=A);var C=(A-m)/i,O=mapObject(function(T,j){return alpha.apply(void 0,_toConsumableArray$3(j).concat([n(C)]))},u);if(o(_objectSpread$j(_objectSpread$j(_objectSpread$j({},e),t),O)),C<1)p=requestAnimationFrame(g);else{var M=mapObject(function(T,j){return alpha.apply(void 0,_toConsumableArray$3(j).concat([n(1)]))},u);o(_objectSpread$j(_objectSpread$j(_objectSpread$j({},e),t),M))}};return g=n.isStepper?E:R,function(){return requestAnimationFrame(g),function(){cancelAnimationFrame(p)}}};function _typeof$m(e){"@babel/helpers - typeof";return _typeof$m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$m(e)}var _excluded$8=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function _objectWithoutProperties$8(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$8(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$8(e,t){if(e==null)return{};var n={},i=Object.keys(e),o,l;for(l=0;l<i.length;l++)o=i[l],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function _toConsumableArray$2(e){return _arrayWithoutHoles$2(e)||_iterableToArray$2(e)||_unsupportedIterableToArray$5(e)||_nonIterableSpread$2()}function _nonIterableSpread$2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
272
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$5(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$5(e,t)}}function _iterableToArray$2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _arrayWithoutHoles$2(e){if(Array.isArray(e))return _arrayLikeToArray$5(e)}function _arrayLikeToArray$5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ownKeys$i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$i(Object(n),!0).forEach(function(i){_defineProperty$l(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$i(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$l(e,t,n){return t=_toPropertyKey$l(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _classCallCheck$c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$l(i.key),i)}}function _createClass$c(e,t,n){return t&&_defineProperties$c(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey$l(e){var t=_toPrimitive$l(e,"string");return _typeof$m(t)==="symbol"?t:String(t)}function _toPrimitive$l(e,t){if(_typeof$m(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$m(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _inherits$a(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$a(e,t)}function _setPrototypeOf$a(e,t){return _setPrototypeOf$a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf$a(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct$a();return function(){var i=_getPrototypeOf$a(e),o;if(t){var l=_getPrototypeOf$a(this).constructor;o=Reflect.construct(i,arguments,l)}else o=i.apply(this,arguments);return _possibleConstructorReturn$a(this,o)}}function _possibleConstructorReturn$a(e,t){if(t&&(_typeof$m(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$a(e)}function _assertThisInitialized$a(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$a(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$a(e){return _getPrototypeOf$a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$a(e)}var Animate=function(e){_inherits$a(n,e);var t=_createSuper(n);function n(i,o){var l;_classCallCheck$c(this,n),l=t.call(this,i,o);var u=l.props,f=u.isActive,p=u.attributeName,d=u.from,m=u.to,g=u.steps,_=u.children,S=u.duration;if(l.handleStyleChange=l.handleStyleChange.bind(_assertThisInitialized$a(l)),l.changeStyle=l.changeStyle.bind(_assertThisInitialized$a(l)),!f||S<=0)return l.state={style:{}},typeof _=="function"&&(l.state={style:m}),_possibleConstructorReturn$a(l);if(g&&g.length)l.state={style:g[0].style};else if(d){if(typeof _=="function")return l.state={style:d},_possibleConstructorReturn$a(l);l.state={style:p?_defineProperty$l({},p,d):d}}else l.state={style:{}};return l}return _createClass$c(n,[{key:"componentDidMount",value:function(){var o=this.props,l=o.isActive,u=o.canBegin;this.mounted=!0,!(!l||!u)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var l=this.props,u=l.isActive,f=l.canBegin,p=l.attributeName,d=l.shouldReAnimate,m=l.to,g=l.from,_=this.state.style;if(f){if(!u){var S={style:p?_defineProperty$l({},p,m):m};this.state&&_&&(p&&_[p]!==m||!p&&_!==m)&&this.setState(S);return}if(!(deepEqual(o.to,m)&&o.canBegin&&o.isActive)){var E=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var R=E||d?g:o.to;if(this.state&&_){var b={style:p?_defineProperty$l({},p,R):R};(p&&_[p]!==R||!p&&_!==R)&&this.setState(b)}this.runAnimation(_objectSpread$i(_objectSpread$i({},this.props),{},{from:R,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var o=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),o&&o()}},{key:"handleStyleChange",value:function(o){this.changeStyle(o)}},{key:"changeStyle",value:function(o){this.mounted&&this.setState({style:o})}},{key:"runJSAnimation",value:function(o){var l=this,u=o.from,f=o.to,p=o.duration,d=o.easing,m=o.begin,g=o.onAnimationEnd,_=o.onAnimationStart,S=configUpdate(u,f,configEasing(d),p,this.changeStyle),E=function(){l.stopJSAnimation=S()};this.manager.start([_,m,E,p,g])}},{key:"runStepAnimation",value:function(o){var l=this,u=o.steps,f=o.begin,p=o.onAnimationStart,d=u[0],m=d.style,g=d.duration,_=g===void 0?0:g,S=function(R,b,A){if(A===0)return R;var C=b.duration,O=b.easing,M=O===void 0?"ease":O,T=b.style,j=b.properties,I=b.onAnimationEnd,D=A>0?u[A-1]:b,L=j||Object.keys(T);if(typeof M=="function"||M==="spring")return[].concat(_toConsumableArray$2(R),[l.runJSAnimation.bind(l,{from:D.style,to:T,duration:C,easing:M}),C]);var F=getTransitionVal(L,C,M),N=_objectSpread$i(_objectSpread$i(_objectSpread$i({},D.style),T),{},{transition:F});return[].concat(_toConsumableArray$2(R),[N,C,I]).filter(identity)};return this.manager.start([p].concat(_toConsumableArray$2(u.reduce(S,[m,Math.max(_,f)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=createAnimateManager());var l=o.begin,u=o.duration,f=o.attributeName,p=o.to,d=o.easing,m=o.onAnimationStart,g=o.onAnimationEnd,_=o.steps,S=o.children,E=this.manager;if(this.unSubscribe=E.subscribe(this.handleStyleChange),typeof d=="function"||typeof S=="function"||d==="spring"){this.runJSAnimation(o);return}if(_.length>1){this.runStepAnimation(o);return}var R=f?_defineProperty$l({},f,p):p,b=getTransitionVal(Object.keys(R),u,d);E.start([m,l,_objectSpread$i(_objectSpread$i({},R),{},{transition:b}),u,g])}},{key:"render",value:function(){var o=this.props,l=o.children;o.begin;var u=o.duration;o.attributeName,o.easing;var f=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var p=_objectWithoutProperties$8(o,_excluded$8),d=React.Children.count(l),m=this.state.style;if(typeof l=="function")return l(m);if(!f||d===0||u<=0)return l;var g=function(S){var E=S.props,R=E.style,b=R===void 0?{}:R,A=E.className,C=React.cloneElement(S,_objectSpread$i(_objectSpread$i({},p),{},{style:_objectSpread$i(_objectSpread$i({},b),m),className:A}));return C};return d===1?g(React.Children.only(l)):React.createElement("div",null,React.Children.map(l,function(_){return g(_)}))}}]),n}(React.PureComponent);Animate.displayName="Animate",Animate.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Animate.propTypes={from:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),to:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),attributeName:PropTypes.string,duration:PropTypes.number,begin:PropTypes.number,easing:PropTypes.oneOfType([PropTypes.string,PropTypes.func]),steps:PropTypes.arrayOf(PropTypes.shape({duration:PropTypes.number.isRequired,style:PropTypes.object.isRequired,easing:PropTypes.oneOfType([PropTypes.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),PropTypes.func]),properties:PropTypes.arrayOf("string"),onAnimationEnd:PropTypes.func})),children:PropTypes.oneOfType([PropTypes.node,PropTypes.func]),isActive:PropTypes.bool,canBegin:PropTypes.bool,onAnimationEnd:PropTypes.func,shouldReAnimate:PropTypes.bool,onAnimationStart:PropTypes.func,onAnimationReStart:PropTypes.func};function _typeof$l(e){"@babel/helpers - typeof";return _typeof$l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$l(e)}function _extends$f(){return _extends$f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$f.apply(this,arguments)}function _slicedToArray$3(e,t){return _arrayWithHoles$3(e)||_iterableToArrayLimit$3(e,t)||_unsupportedIterableToArray$4(e,t)||_nonIterableRest$3()}function _nonIterableRest$3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
273
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$4(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$4(e,t)}}function _arrayLikeToArray$4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _iterableToArrayLimit$3(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,l,u,f=[],p=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(p=(i=l.call(n)).done)&&(f.push(i.value),f.length!==t);p=!0);}catch(m){d=!0,o=m}finally{try{if(!p&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(d)throw o}}return f}}function _arrayWithHoles$3(e){if(Array.isArray(e))return e}function ownKeys$h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$h(Object(n),!0).forEach(function(i){_defineProperty$k(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$h(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$k(e,t,n){return t=_toPropertyKey$k(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$k(e){var t=_toPrimitive$k(e,"string");return _typeof$l(t)=="symbol"?t:t+""}function _toPrimitive$k(e,t){if(_typeof$l(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$l(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var getRectanglePath=function(t,n,i,o,l){var u=Math.min(Math.abs(i)/2,Math.abs(o)/2),f=o>=0?1:-1,p=i>=0?1:-1,d=o>=0&&i>=0||o<0&&i<0?1:0,m;if(u>0&&l instanceof Array){for(var g=[0,0,0,0],_=0,S=4;_<S;_++)g[_]=l[_]>u?u:l[_];m="M".concat(t,",").concat(n+f*g[0]),g[0]>0&&(m+="A ".concat(g[0],",").concat(g[0],",0,0,").concat(d,",").concat(t+p*g[0],",").concat(n)),m+="L ".concat(t+i-p*g[1],",").concat(n),g[1]>0&&(m+="A ".concat(g[1],",").concat(g[1],",0,0,").concat(d,`,
274
+ `).concat(t+i,",").concat(n+f*g[1])),m+="L ".concat(t+i,",").concat(n+o-f*g[2]),g[2]>0&&(m+="A ".concat(g[2],",").concat(g[2],",0,0,").concat(d,`,
275
+ `).concat(t+i-p*g[2],",").concat(n+o)),m+="L ".concat(t+p*g[3],",").concat(n+o),g[3]>0&&(m+="A ".concat(g[3],",").concat(g[3],",0,0,").concat(d,`,
276
+ `).concat(t,",").concat(n+o-f*g[3])),m+="Z"}else if(u>0&&l===+l&&l>0){var E=Math.min(u,l);m="M ".concat(t,",").concat(n+f*E,`
277
+ A `).concat(E,",").concat(E,",0,0,").concat(d,",").concat(t+p*E,",").concat(n,`
278
+ L `).concat(t+i-p*E,",").concat(n,`
279
+ A `).concat(E,",").concat(E,",0,0,").concat(d,",").concat(t+i,",").concat(n+f*E,`
280
+ L `).concat(t+i,",").concat(n+o-f*E,`
281
+ A `).concat(E,",").concat(E,",0,0,").concat(d,",").concat(t+i-p*E,",").concat(n+o,`
282
+ L `).concat(t+p*E,",").concat(n+o,`
283
+ A `).concat(E,",").concat(E,",0,0,").concat(d,",").concat(t,",").concat(n+o-f*E," Z")}else m="M ".concat(t,",").concat(n," h ").concat(i," v ").concat(o," h ").concat(-i," Z");return m},isInRectangle=function(t,n){if(!t||!n)return!1;var i=t.x,o=t.y,l=n.x,u=n.y,f=n.width,p=n.height;if(Math.abs(f)>0&&Math.abs(p)>0){var d=Math.min(l,l+f),m=Math.max(l,l+f),g=Math.min(u,u+p),_=Math.max(u,u+p);return i>=d&&i<=m&&o>=g&&o<=_}return!1},defaultProps$2={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Rectangle=function(t){var n=_objectSpread$h(_objectSpread$h({},defaultProps$2),t),i=React.useRef(),o=React.useState(-1),l=_slicedToArray$3(o,2),u=l[0],f=l[1];React.useEffect(function(){if(i.current&&i.current.getTotalLength)try{var M=i.current.getTotalLength();M&&f(M)}catch{}},[]);var p=n.x,d=n.y,m=n.width,g=n.height,_=n.radius,S=n.className,E=n.animationEasing,R=n.animationDuration,b=n.animationBegin,A=n.isAnimationActive,C=n.isUpdateAnimationActive;if(p!==+p||d!==+d||m!==+m||g!==+g||m===0||g===0)return null;var O=clsx("recharts-rectangle",S);return C?React.createElement(Animate,{canBegin:u>0,from:{width:m,height:g,x:p,y:d},to:{width:m,height:g,x:p,y:d},duration:R,animationEasing:E,isActive:C},function(M){var T=M.width,j=M.height,I=M.x,D=M.y;return React.createElement(Animate,{canBegin:u>0,from:"0px ".concat(u===-1?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:R,isActive:A,easing:E},React.createElement("path",_extends$f({},filterProps(n,!0),{className:O,d:getRectanglePath(I,D,T,j,_),ref:i})))}):React.createElement("path",_extends$f({},filterProps(n,!0),{className:O,d:getRectanglePath(p,d,m,g,_)}))};function _extends$e(){return _extends$e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$e.apply(this,arguments)}var Dot=function(t){var n=t.cx,i=t.cy,o=t.r,l=t.className,u=clsx("recharts-dot",l);return n===+n&&i===+i&&o===+o?React.createElement("circle",_extends$e({},filterProps(t,!1),adaptEventHandlers(t),{className:u,cx:n,cy:i,r:o})):null};function _typeof$k(e){"@babel/helpers - typeof";return _typeof$k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$k(e)}var _excluded$7=["x","y","top","left","width","height","className"];function _extends$d(){return _extends$d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$d.apply(this,arguments)}function ownKeys$g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$g(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$g(Object(n),!0).forEach(function(i){_defineProperty$j(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$g(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$j(e,t,n){return t=_toPropertyKey$j(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$j(e){var t=_toPrimitive$j(e,"string");return _typeof$k(t)=="symbol"?t:t+""}function _toPrimitive$j(e,t){if(_typeof$k(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$k(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _objectWithoutProperties$7(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$7(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$7(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}var getPath=function(t,n,i,o,l,u){return"M".concat(t,",").concat(l,"v").concat(o,"M").concat(u,",").concat(n,"h").concat(i)},Cross=function(t){var n=t.x,i=n===void 0?0:n,o=t.y,l=o===void 0?0:o,u=t.top,f=u===void 0?0:u,p=t.left,d=p===void 0?0:p,m=t.width,g=m===void 0?0:m,_=t.height,S=_===void 0?0:_,E=t.className,R=_objectWithoutProperties$7(t,_excluded$7),b=_objectSpread$g({x:i,y:l,top:f,left:d,width:g,height:S},R);return!isNumber(i)||!isNumber(l)||!isNumber(g)||!isNumber(S)||!isNumber(f)||!isNumber(d)?null:React.createElement("path",_extends$d({},filterProps(b,!0),{className:clsx("recharts-cross",E),d:getPath(i,l,g,S,f,d)}))},_getPrototype,hasRequired_getPrototype;function require_getPrototype(){if(hasRequired_getPrototype)return _getPrototype;hasRequired_getPrototype=1;var e=require_overArg(),t=e(Object.getPrototypeOf,Object);return _getPrototype=t,_getPrototype}var isPlainObject_1,hasRequiredIsPlainObject;function requireIsPlainObject(){if(hasRequiredIsPlainObject)return isPlainObject_1;hasRequiredIsPlainObject=1;var e=require_baseGetTag(),t=require_getPrototype(),n=requireIsObjectLike(),i="[object Object]",o=Function.prototype,l=Object.prototype,u=o.toString,f=l.hasOwnProperty,p=u.call(Object);function d(m){if(!n(m)||e(m)!=i)return!1;var g=t(m);if(g===null)return!0;var _=f.call(g,"constructor")&&g.constructor;return typeof _=="function"&&_ instanceof _&&u.call(_)==p}return isPlainObject_1=d,isPlainObject_1}var isPlainObjectExports=requireIsPlainObject();const isPlainObject=getDefaultExportFromCjs(isPlainObjectExports);var isBoolean_1,hasRequiredIsBoolean;function requireIsBoolean(){if(hasRequiredIsBoolean)return isBoolean_1;hasRequiredIsBoolean=1;var e=require_baseGetTag(),t=requireIsObjectLike(),n="[object Boolean]";function i(o){return o===!0||o===!1||t(o)&&e(o)==n}return isBoolean_1=i,isBoolean_1}var isBooleanExports=requireIsBoolean();const isBoolean=getDefaultExportFromCjs(isBooleanExports);function _typeof$j(e){"@babel/helpers - typeof";return _typeof$j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$j(e)}function _extends$c(){return _extends$c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$c.apply(this,arguments)}function _slicedToArray$2(e,t){return _arrayWithHoles$2(e)||_iterableToArrayLimit$2(e,t)||_unsupportedIterableToArray$3(e,t)||_nonIterableRest$2()}function _nonIterableRest$2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
284
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$3(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$3(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$3(e,t)}}function _arrayLikeToArray$3(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _iterableToArrayLimit$2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,l,u,f=[],p=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(p=(i=l.call(n)).done)&&(f.push(i.value),f.length!==t);p=!0);}catch(m){d=!0,o=m}finally{try{if(!p&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(d)throw o}}return f}}function _arrayWithHoles$2(e){if(Array.isArray(e))return e}function ownKeys$f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$f(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$f(Object(n),!0).forEach(function(i){_defineProperty$i(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$f(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$i(e,t,n){return t=_toPropertyKey$i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$i(e){var t=_toPrimitive$i(e,"string");return _typeof$j(t)=="symbol"?t:t+""}function _toPrimitive$i(e,t){if(_typeof$j(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$j(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var getTrapezoidPath=function(t,n,i,o,l){var u=i-o,f;return f="M ".concat(t,",").concat(n),f+="L ".concat(t+i,",").concat(n),f+="L ".concat(t+i-u/2,",").concat(n+l),f+="L ".concat(t+i-u/2-o,",").concat(n+l),f+="L ".concat(t,",").concat(n," Z"),f},defaultProps$1={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Trapezoid=function(t){var n=_objectSpread$f(_objectSpread$f({},defaultProps$1),t),i=React.useRef(),o=React.useState(-1),l=_slicedToArray$2(o,2),u=l[0],f=l[1];React.useEffect(function(){if(i.current&&i.current.getTotalLength)try{var O=i.current.getTotalLength();O&&f(O)}catch{}},[]);var p=n.x,d=n.y,m=n.upperWidth,g=n.lowerWidth,_=n.height,S=n.className,E=n.animationEasing,R=n.animationDuration,b=n.animationBegin,A=n.isUpdateAnimationActive;if(p!==+p||d!==+d||m!==+m||g!==+g||_!==+_||m===0&&g===0||_===0)return null;var C=clsx("recharts-trapezoid",S);return A?React.createElement(Animate,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:_,x:p,y:d},to:{upperWidth:m,lowerWidth:g,height:_,x:p,y:d},duration:R,animationEasing:E,isActive:A},function(O){var M=O.upperWidth,T=O.lowerWidth,j=O.height,I=O.x,D=O.y;return React.createElement(Animate,{canBegin:u>0,from:"0px ".concat(u===-1?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:R,easing:E},React.createElement("path",_extends$c({},filterProps(n,!0),{className:C,d:getTrapezoidPath(I,D,M,T,j),ref:i})))}):React.createElement("g",null,React.createElement("path",_extends$c({},filterProps(n,!0),{className:C,d:getTrapezoidPath(p,d,m,g,_)})))},_excluded$6=["option","shapeType","propTransformer","activeClassName","isActive"];function _typeof$i(e){"@babel/helpers - typeof";return _typeof$i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$i(e)}function _objectWithoutProperties$6(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$6(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$6(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function ownKeys$e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$e(Object(n),!0).forEach(function(i){_defineProperty$h(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$e(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$h(e,t,n){return t=_toPropertyKey$h(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$h(e){var t=_toPrimitive$h(e,"string");return _typeof$i(t)=="symbol"?t:t+""}function _toPrimitive$h(e,t){if(_typeof$i(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$i(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function defaultPropTransformer(e,t){return _objectSpread$e(_objectSpread$e({},t),e)}function isSymbolsProps(e,t){return e==="symbols"}function ShapeSelector(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return React.createElement(Rectangle,n);case"trapezoid":return React.createElement(Trapezoid,n);case"sector":return React.createElement(Sector,n);case"symbols":if(isSymbolsProps(t))return React.createElement(Symbols,n);break;default:return null}}function getPropsFromShapeOption(e){return React.isValidElement(e)?e.props:e}function Shape(e){var t=e.option,n=e.shapeType,i=e.propTransformer,o=i===void 0?defaultPropTransformer:i,l=e.activeClassName,u=l===void 0?"recharts-active-shape":l,f=e.isActive,p=_objectWithoutProperties$6(e,_excluded$6),d;if(React.isValidElement(t))d=React.cloneElement(t,_objectSpread$e(_objectSpread$e({},p),getPropsFromShapeOption(t)));else if(isFunction(t))d=t(p);else if(isPlainObject(t)&&!isBoolean(t)){var m=o(t,p);d=React.createElement(ShapeSelector,{shapeType:n,elementProps:m})}else{var g=p;d=React.createElement(ShapeSelector,{shapeType:n,elementProps:g})}return f?React.createElement(Layer,{className:u},d):d}function isFunnel(e,t){return t!=null&&"trapezoids"in e.props}function isPie(e,t){return t!=null&&"sectors"in e.props}function isScatter(e,t){return t!=null&&"points"in e.props}function compareFunnel(e,t){var n,i,o=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,l=e.y===(t==null||(i=t.labelViewBox)===null||i===void 0?void 0:i.y)||e.y===t.y;return o&&l}function comparePie(e,t){var n=e.endAngle===t.endAngle,i=e.startAngle===t.startAngle;return n&&i}function compareScatter(e,t){var n=e.x===t.x,i=e.y===t.y,o=e.z===t.z;return n&&i&&o}function getComparisonFn(e,t){var n;return isFunnel(e,t)?n=compareFunnel:isPie(e,t)?n=comparePie:isScatter(e,t)&&(n=compareScatter),n}function getShapeDataKey(e,t){var n;return isFunnel(e,t)?n="trapezoids":isPie(e,t)?n="sectors":isScatter(e,t)&&(n="points"),n}function getActiveShapeTooltipPayload(e,t){if(isFunnel(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(isPie(e,t)){var i;return(i=t.tooltipPayload)===null||i===void 0||(i=i[0])===null||i===void 0||(i=i.payload)===null||i===void 0?void 0:i.payload}return isScatter(e,t)?t.payload:{}}function getActiveShapeIndexForTooltip(e){var t=e.activeTooltipItem,n=e.graphicalItem,i=e.itemData,o=getShapeDataKey(n,t),l=getActiveShapeTooltipPayload(n,t),u=i.filter(function(p,d){var m=isEqual(l,p),g=n.props[o].filter(function(E){var R=getComparisonFn(n,t);return R(E,t)}),_=n.props[o].indexOf(g[g.length-1]),S=d===_;return m&&S}),f=i.indexOf(u[u.length-1]);return f}var _baseRange,hasRequired_baseRange;function require_baseRange(){if(hasRequired_baseRange)return _baseRange;hasRequired_baseRange=1;var e=Math.ceil,t=Math.max;function n(i,o,l,u){for(var f=-1,p=t(e((o-i)/(l||1)),0),d=Array(p);p--;)d[u?p:++f]=i,i+=l;return d}return _baseRange=n,_baseRange}var toFinite_1,hasRequiredToFinite;function requireToFinite(){if(hasRequiredToFinite)return toFinite_1;hasRequiredToFinite=1;var e=requireToNumber(),t=1/0,n=17976931348623157e292;function i(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-1/0){var l=o<0?-1:1;return l*n}return o===o?o:0}return toFinite_1=i,toFinite_1}var _createRange,hasRequired_createRange;function require_createRange(){if(hasRequired_createRange)return _createRange;hasRequired_createRange=1;var e=require_baseRange(),t=require_isIterateeCall(),n=requireToFinite();function i(o){return function(l,u,f){return f&&typeof f!="number"&&t(l,u,f)&&(u=f=void 0),l=n(l),u===void 0?(u=l,l=0):u=n(u),f=f===void 0?l<u?1:-1:n(f),e(l,u,f,o)}}return _createRange=i,_createRange}var range_1,hasRequiredRange;function requireRange(){if(hasRequiredRange)return range_1;hasRequiredRange=1;var e=require_createRange(),t=e();return range_1=t,range_1}var rangeExports=requireRange();const range=getDefaultExportFromCjs(rangeExports);function _typeof$h(e){"@babel/helpers - typeof";return _typeof$h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$h(e)}function ownKeys$d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$d(Object(n),!0).forEach(function(i){_defineProperty$g(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$d(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$g(e,t,n){return t=_toPropertyKey$g(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$g(e){var t=_toPrimitive$g(e,"string");return _typeof$h(t)=="symbol"?t:t+""}function _toPrimitive$g(e,t){if(_typeof$h(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$h(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PREFIX_LIST=["Webkit","Moz","O","ms"],generatePrefixStyle=function(t,n){var i=t.replace(/(\w)/,function(l){return l.toUpperCase()}),o=PREFIX_LIST.reduce(function(l,u){return _objectSpread$d(_objectSpread$d({},l),{},_defineProperty$g({},u+i,n))},{});return o[t]=n,o};function _typeof$g(e){"@babel/helpers - typeof";return _typeof$g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$g(e)}function _extends$b(){return _extends$b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$b.apply(this,arguments)}function ownKeys$c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$c(Object(n),!0).forEach(function(i){_defineProperty$f(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$c(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _classCallCheck$b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$b(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$f(i.key),i)}}function _createClass$b(e,t,n){return t&&_defineProperties$b(e.prototype,t),n&&_defineProperties$b(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$9(e,t,n){return t=_getPrototypeOf$9(t),_possibleConstructorReturn$9(e,_isNativeReflectConstruct$9()?Reflect.construct(t,n||[],_getPrototypeOf$9(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$9(e,t){if(t&&(_typeof$g(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$9(e)}function _assertThisInitialized$9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$9=function(){return!!e})()}function _getPrototypeOf$9(e){return _getPrototypeOf$9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$9(e)}function _inherits$9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$9(e,t)}function _setPrototypeOf$9(e,t){return _setPrototypeOf$9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf$9(e,t)}function _defineProperty$f(e,t,n){return t=_toPropertyKey$f(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$f(e){var t=_toPrimitive$f(e,"string");return _typeof$g(t)=="symbol"?t:t+""}function _toPrimitive$f(e,t){if(_typeof$g(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$g(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var createScale=function(t){var n=t.data,i=t.startIndex,o=t.endIndex,l=t.x,u=t.width,f=t.travellerWidth;if(!n||!n.length)return{};var p=n.length,d=point().domain(range(0,p)).range([l,l+u-f]),m=d.domain().map(function(g){return d(g)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(i),endX:d(o),scale:d,scaleValues:m}},isTouch=function(t){return t.changedTouches&&!!t.changedTouches.length},Brush=function(e){function t(n){var i;return _classCallCheck$b(this,t),i=_callSuper$9(this,t,[n]),_defineProperty$f(i,"handleDrag",function(o){i.leaveTimer&&(clearTimeout(i.leaveTimer),i.leaveTimer=null),i.state.isTravellerMoving?i.handleTravellerMove(o):i.state.isSlideMoving&&i.handleSlideDrag(o)}),_defineProperty$f(i,"handleTouchMove",function(o){o.changedTouches!=null&&o.changedTouches.length>0&&i.handleDrag(o.changedTouches[0])}),_defineProperty$f(i,"handleDragEnd",function(){i.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=i.props,l=o.endIndex,u=o.onDragEnd,f=o.startIndex;u==null||u({endIndex:l,startIndex:f})}),i.detachDragEndListener()}),_defineProperty$f(i,"handleLeaveWrapper",function(){(i.state.isTravellerMoving||i.state.isSlideMoving)&&(i.leaveTimer=window.setTimeout(i.handleDragEnd,i.props.leaveTimeOut))}),_defineProperty$f(i,"handleEnterSlideOrTraveller",function(){i.setState({isTextActive:!0})}),_defineProperty$f(i,"handleLeaveSlideOrTraveller",function(){i.setState({isTextActive:!1})}),_defineProperty$f(i,"handleSlideDragStart",function(o){var l=isTouch(o)?o.changedTouches[0]:o;i.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:l.pageX}),i.attachDragEndListener()}),i.travellerDragStartHandlers={startX:i.handleTravellerDragStart.bind(i,"startX"),endX:i.handleTravellerDragStart.bind(i,"endX")},i.state={},i}return _inherits$9(t,e),_createClass$b(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(i){var o=i.startX,l=i.endX,u=this.state.scaleValues,f=this.props,p=f.gap,d=f.data,m=d.length-1,g=Math.min(o,l),_=Math.max(o,l),S=t.getIndexInRange(u,g),E=t.getIndexInRange(u,_);return{startIndex:S-S%p,endIndex:E===m?m:E-E%p}}},{key:"getTextOfTick",value:function(i){var o=this.props,l=o.data,u=o.tickFormatter,f=o.dataKey,p=getValueByDataKey(l[i],f,i);return isFunction(u)?u(p,i):p}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(i){var o=this.state,l=o.slideMoveStartX,u=o.startX,f=o.endX,p=this.props,d=p.x,m=p.width,g=p.travellerWidth,_=p.startIndex,S=p.endIndex,E=p.onChange,R=i.pageX-l;R>0?R=Math.min(R,d+m-g-f,d+m-g-u):R<0&&(R=Math.max(R,d-u,d-f));var b=this.getIndex({startX:u+R,endX:f+R});(b.startIndex!==_||b.endIndex!==S)&&E&&E(b),this.setState({startX:u+R,endX:f+R,slideMoveStartX:i.pageX})}},{key:"handleTravellerDragStart",value:function(i,o){var l=isTouch(o)?o.changedTouches[0]:o;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:i,brushMoveStartX:l.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(i){var o=this.state,l=o.brushMoveStartX,u=o.movingTravellerId,f=o.endX,p=o.startX,d=this.state[u],m=this.props,g=m.x,_=m.width,S=m.travellerWidth,E=m.onChange,R=m.gap,b=m.data,A={startX:this.state.startX,endX:this.state.endX},C=i.pageX-l;C>0?C=Math.min(C,g+_-S-d):C<0&&(C=Math.max(C,g-d)),A[u]=d+C;var O=this.getIndex(A),M=O.startIndex,T=O.endIndex,j=function(){var D=b.length-1;return u==="startX"&&(f>p?M%R===0:T%R===0)||f<p&&T===D||u==="endX"&&(f>p?T%R===0:M%R===0)||f>p&&T===D};this.setState(_defineProperty$f(_defineProperty$f({},u,d+C),"brushMoveStartX",i.pageX),function(){E&&j()&&E(O)})}},{key:"handleTravellerMoveKeyboard",value:function(i,o){var l=this,u=this.state,f=u.scaleValues,p=u.startX,d=u.endX,m=this.state[o],g=f.indexOf(m);if(g!==-1){var _=g+i;if(!(_===-1||_>=f.length)){var S=f[_];o==="startX"&&S>=d||o==="endX"&&S<=p||this.setState(_defineProperty$f({},o,S),function(){l.props.onChange(l.getIndex({startX:l.state.startX,endX:l.state.endX}))})}}}},{key:"renderBackground",value:function(){var i=this.props,o=i.x,l=i.y,u=i.width,f=i.height,p=i.fill,d=i.stroke;return React.createElement("rect",{stroke:d,fill:p,x:o,y:l,width:u,height:f})}},{key:"renderPanorama",value:function(){var i=this.props,o=i.x,l=i.y,u=i.width,f=i.height,p=i.data,d=i.children,m=i.padding,g=React.Children.only(d);return g?React.cloneElement(g,{x:o,y:l,width:u,height:f,margin:m,compact:!0,data:p}):null}},{key:"renderTravellerLayer",value:function(i,o){var l,u,f=this,p=this.props,d=p.y,m=p.travellerWidth,g=p.height,_=p.traveller,S=p.ariaLabel,E=p.data,R=p.startIndex,b=p.endIndex,A=Math.max(i,this.props.x),C=_objectSpread$c(_objectSpread$c({},filterProps(this.props,!1)),{},{x:A,y:d,width:m,height:g}),O=S||"Min value: ".concat((l=E[R])===null||l===void 0?void 0:l.name,", Max value: ").concat((u=E[b])===null||u===void 0?void 0:u.name);return React.createElement(Layer,{tabIndex:0,role:"slider","aria-label":O,"aria-valuenow":i,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[o],onTouchStart:this.travellerDragStartHandlers[o],onKeyDown:function(T){["ArrowLeft","ArrowRight"].includes(T.key)&&(T.preventDefault(),T.stopPropagation(),f.handleTravellerMoveKeyboard(T.key==="ArrowRight"?1:-1,o))},onFocus:function(){f.setState({isTravellerFocused:!0})},onBlur:function(){f.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(_,C))}},{key:"renderSlide",value:function(i,o){var l=this.props,u=l.y,f=l.height,p=l.stroke,d=l.travellerWidth,m=Math.min(i,o)+d,g=Math.max(Math.abs(o-i)-d,0);return React.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:p,fillOpacity:.2,x:m,y:u,width:g,height:f})}},{key:"renderText",value:function(){var i=this.props,o=i.startIndex,l=i.endIndex,u=i.y,f=i.height,p=i.travellerWidth,d=i.stroke,m=this.state,g=m.startX,_=m.endX,S=5,E={pointerEvents:"none",fill:d};return React.createElement(Layer,{className:"recharts-brush-texts"},React.createElement(Text,_extends$b({textAnchor:"end",verticalAnchor:"middle",x:Math.min(g,_)-S,y:u+f/2},E),this.getTextOfTick(o)),React.createElement(Text,_extends$b({textAnchor:"start",verticalAnchor:"middle",x:Math.max(g,_)+p+S,y:u+f/2},E),this.getTextOfTick(l)))}},{key:"render",value:function(){var i=this.props,o=i.data,l=i.className,u=i.children,f=i.x,p=i.y,d=i.width,m=i.height,g=i.alwaysShowText,_=this.state,S=_.startX,E=_.endX,R=_.isTextActive,b=_.isSlideMoving,A=_.isTravellerMoving,C=_.isTravellerFocused;if(!o||!o.length||!isNumber(f)||!isNumber(p)||!isNumber(d)||!isNumber(m)||d<=0||m<=0)return null;var O=clsx("recharts-brush",l),M=React.Children.count(u)===1,T=generatePrefixStyle("userSelect","none");return React.createElement(Layer,{className:O,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:T},this.renderBackground(),M&&this.renderPanorama(),this.renderSlide(S,E),this.renderTravellerLayer(S,"startX"),this.renderTravellerLayer(E,"endX"),(R||b||A||C||g)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(i){var o=i.x,l=i.y,u=i.width,f=i.height,p=i.stroke,d=Math.floor(l+f/2)-1;return React.createElement(React.Fragment,null,React.createElement("rect",{x:o,y:l,width:u,height:f,fill:p,stroke:"none"}),React.createElement("line",{x1:o+1,y1:d,x2:o+u-1,y2:d,fill:"none",stroke:"#fff"}),React.createElement("line",{x1:o+1,y1:d+2,x2:o+u-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(i,o){var l;return React.isValidElement(i)?l=React.cloneElement(i,o):isFunction(i)?l=i(o):l=t.renderDefaultTraveller(o),l}},{key:"getDerivedStateFromProps",value:function(i,o){var l=i.data,u=i.width,f=i.x,p=i.travellerWidth,d=i.updateId,m=i.startIndex,g=i.endIndex;if(l!==o.prevData||d!==o.prevUpdateId)return _objectSpread$c({prevData:l,prevTravellerWidth:p,prevUpdateId:d,prevX:f,prevWidth:u},l&&l.length?createScale({data:l,width:u,x:f,travellerWidth:p,startIndex:m,endIndex:g}):{scale:null,scaleValues:null});if(o.scale&&(u!==o.prevWidth||f!==o.prevX||p!==o.prevTravellerWidth)){o.scale.range([f,f+u-p]);var _=o.scale.domain().map(function(S){return o.scale(S)});return{prevData:l,prevTravellerWidth:p,prevUpdateId:d,prevX:f,prevWidth:u,startX:o.scale(i.startIndex),endX:o.scale(i.endIndex),scaleValues:_}}return null}},{key:"getIndexInRange",value:function(i,o){for(var l=i.length,u=0,f=l-1;f-u>1;){var p=Math.floor((u+f)/2);i[p]>o?f=p:u=p}return o>=i[f]?f:u}}])}(React.PureComponent);_defineProperty$f(Brush,"displayName","Brush"),_defineProperty$f(Brush,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var _baseSome,hasRequired_baseSome;function require_baseSome(){if(hasRequired_baseSome)return _baseSome;hasRequired_baseSome=1;var e=require_baseEach();function t(n,i){var o;return e(n,function(l,u,f){return o=i(l,u,f),!o}),!!o}return _baseSome=t,_baseSome}var some_1,hasRequiredSome;function requireSome(){if(hasRequiredSome)return some_1;hasRequiredSome=1;var e=require_arraySome(),t=require_baseIteratee(),n=require_baseSome(),i=requireIsArray(),o=require_isIterateeCall();function l(u,f,p){var d=i(u)?e:n;return p&&o(u,f,p)&&(f=void 0),d(u,t(f,3))}return some_1=l,some_1}var someExports=requireSome();const some=getDefaultExportFromCjs(someExports);var ifOverflowMatches=function(t,n){var i=t.alwaysShow,o=t.ifOverflow;return i&&(o="extendDomain"),o===n},_baseAssignValue,hasRequired_baseAssignValue;function require_baseAssignValue(){if(hasRequired_baseAssignValue)return _baseAssignValue;hasRequired_baseAssignValue=1;var e=require_defineProperty();function t(n,i,o){i=="__proto__"&&e?e(n,i,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[i]=o}return _baseAssignValue=t,_baseAssignValue}var mapValues_1,hasRequiredMapValues;function requireMapValues(){if(hasRequiredMapValues)return mapValues_1;hasRequiredMapValues=1;var e=require_baseAssignValue(),t=require_baseForOwn(),n=require_baseIteratee();function i(o,l){var u={};return l=n(l,3),t(o,function(f,p,d){e(u,p,l(f,p,d))}),u}return mapValues_1=i,mapValues_1}var mapValuesExports=requireMapValues();const mapValues=getDefaultExportFromCjs(mapValuesExports);var _arrayEvery,hasRequired_arrayEvery;function require_arrayEvery(){if(hasRequired_arrayEvery)return _arrayEvery;hasRequired_arrayEvery=1;function e(t,n){for(var i=-1,o=t==null?0:t.length;++i<o;)if(!n(t[i],i,t))return!1;return!0}return _arrayEvery=e,_arrayEvery}var _baseEvery,hasRequired_baseEvery;function require_baseEvery(){if(hasRequired_baseEvery)return _baseEvery;hasRequired_baseEvery=1;var e=require_baseEach();function t(n,i){var o=!0;return e(n,function(l,u,f){return o=!!i(l,u,f),o}),o}return _baseEvery=t,_baseEvery}var every_1,hasRequiredEvery;function requireEvery(){if(hasRequiredEvery)return every_1;hasRequiredEvery=1;var e=require_arrayEvery(),t=require_baseEvery(),n=require_baseIteratee(),i=requireIsArray(),o=require_isIterateeCall();function l(u,f,p){var d=i(u)?e:t;return p&&o(u,f,p)&&(f=void 0),d(u,n(f,3))}return every_1=l,every_1}var everyExports=requireEvery();const every=getDefaultExportFromCjs(everyExports);var _excluded$5=["x","y"];function _typeof$f(e){"@babel/helpers - typeof";return _typeof$f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$f(e)}function _extends$a(){return _extends$a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$a.apply(this,arguments)}function ownKeys$b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$b(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$b(Object(n),!0).forEach(function(i){_defineProperty$e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$b(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$e(e,t,n){return t=_toPropertyKey$e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$e(e){var t=_toPrimitive$e(e,"string");return _typeof$f(t)=="symbol"?t:t+""}function _toPrimitive$e(e,t){if(_typeof$f(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$f(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _objectWithoutProperties$5(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$5(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$5(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function typeguardBarRectangleProps(e,t){var n=e.x,i=e.y,o=_objectWithoutProperties$5(e,_excluded$5),l="".concat(n),u=parseInt(l,10),f="".concat(i),p=parseInt(f,10),d="".concat(t.height||o.height),m=parseInt(d,10),g="".concat(t.width||o.width),_=parseInt(g,10);return _objectSpread$b(_objectSpread$b(_objectSpread$b(_objectSpread$b(_objectSpread$b({},t),o),u?{x:u}:{}),p?{y:p}:{}),{},{height:m,width:_,name:t.name,radius:t.radius})}function BarRectangle(e){return React.createElement(Shape,_extends$a({shapeType:"rectangle",propTransformer:typeguardBarRectangleProps,activeClassName:"recharts-active-bar"},e))}var minPointSizeCallback=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(i,o){if(typeof t=="number")return t;var l=typeof i=="number";return l?t(i,o):(l||(process.env.NODE_ENV!=="production"?invariant(!1,"minPointSize callback function received a value with type of ".concat(_typeof$f(i),". Currently only numbers are supported.")):invariant()),n)}},_excluded$4=["value","background"],_Bar;function _typeof$e(e){"@babel/helpers - typeof";return _typeof$e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$e(e)}function _objectWithoutProperties$4(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$4(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$4(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function _extends$9(){return _extends$9=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$9.apply(this,arguments)}function ownKeys$a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$a(Object(n),!0).forEach(function(i){_defineProperty$d(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$a(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _classCallCheck$a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$d(i.key),i)}}function _createClass$a(e,t,n){return t&&_defineProperties$a(e.prototype,t),n&&_defineProperties$a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$8(e,t,n){return t=_getPrototypeOf$8(t),_possibleConstructorReturn$8(e,_isNativeReflectConstruct$8()?Reflect.construct(t,n||[],_getPrototypeOf$8(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$8(e,t){if(t&&(_typeof$e(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$8(e)}function _assertThisInitialized$8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$8=function(){return!!e})()}function _getPrototypeOf$8(e){return _getPrototypeOf$8=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$8(e)}function _inherits$8(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$8(e,t)}function _setPrototypeOf$8(e,t){return _setPrototypeOf$8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf$8(e,t)}function _defineProperty$d(e,t,n){return t=_toPropertyKey$d(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$d(e){var t=_toPrimitive$d(e,"string");return _typeof$e(t)=="symbol"?t:t+""}function _toPrimitive$d(e,t){if(_typeof$e(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$e(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bar=function(e){function t(){var n;_classCallCheck$a(this,t);for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return n=_callSuper$8(this,t,[].concat(o)),_defineProperty$d(n,"state",{isAnimationFinished:!1}),_defineProperty$d(n,"id",uniqueId("recharts-bar-")),_defineProperty$d(n,"handleAnimationEnd",function(){var u=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),u&&u()}),_defineProperty$d(n,"handleAnimationStart",function(){var u=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),u&&u()}),n}return _inherits$8(t,e),_createClass$a(t,[{key:"renderRectanglesStatically",value:function(i){var o=this,l=this.props,u=l.shape,f=l.dataKey,p=l.activeIndex,d=l.activeBar,m=filterProps(this.props,!1);return i&&i.map(function(g,_){var S=_===p,E=S?d:u,R=_objectSpread$a(_objectSpread$a(_objectSpread$a({},m),g),{},{isActive:S,option:E,index:_,dataKey:f,onAnimationStart:o.handleAnimationStart,onAnimationEnd:o.handleAnimationEnd});return React.createElement(Layer,_extends$9({className:"recharts-bar-rectangle"},adaptEventsOfChild(o.props,g,_),{key:"rectangle-".concat(g==null?void 0:g.x,"-").concat(g==null?void 0:g.y,"-").concat(g==null?void 0:g.value,"-").concat(_)}),React.createElement(BarRectangle,R))})}},{key:"renderRectanglesWithAnimation",value:function(){var i=this,o=this.props,l=o.data,u=o.layout,f=o.isAnimationActive,p=o.animationBegin,d=o.animationDuration,m=o.animationEasing,g=o.animationId,_=this.state.prevData;return React.createElement(Animate,{begin:p,duration:d,isActive:f,easing:m,from:{t:0},to:{t:1},key:"bar-".concat(g),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var E=S.t,R=l.map(function(b,A){var C=_&&_[A];if(C){var O=interpolateNumber$2(C.x,b.x),M=interpolateNumber$2(C.y,b.y),T=interpolateNumber$2(C.width,b.width),j=interpolateNumber$2(C.height,b.height);return _objectSpread$a(_objectSpread$a({},b),{},{x:O(E),y:M(E),width:T(E),height:j(E)})}if(u==="horizontal"){var I=interpolateNumber$2(0,b.height),D=I(E);return _objectSpread$a(_objectSpread$a({},b),{},{y:b.y+b.height-D,height:D})}var L=interpolateNumber$2(0,b.width),F=L(E);return _objectSpread$a(_objectSpread$a({},b),{},{width:F})});return React.createElement(Layer,null,i.renderRectanglesStatically(R))})}},{key:"renderRectangles",value:function(){var i=this.props,o=i.data,l=i.isAnimationActive,u=this.state.prevData;return l&&o&&o.length&&(!u||!isEqual(u,o))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(o)}},{key:"renderBackground",value:function(){var i=this,o=this.props,l=o.data,u=o.dataKey,f=o.activeIndex,p=filterProps(this.props.background,!1);return l.map(function(d,m){d.value;var g=d.background,_=_objectWithoutProperties$4(d,_excluded$4);if(!g)return null;var S=_objectSpread$a(_objectSpread$a(_objectSpread$a(_objectSpread$a(_objectSpread$a({},_),{},{fill:"#eee"},g),p),adaptEventsOfChild(i.props,d,m)),{},{onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd,dataKey:u,index:m,className:"recharts-bar-background-rectangle"});return React.createElement(BarRectangle,_extends$9({key:"background-bar-".concat(m),option:i.props.background,isActive:m===f},S))})}},{key:"renderErrorBar",value:function(i,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var l=this.props,u=l.data,f=l.xAxis,p=l.yAxis,d=l.layout,m=l.children,g=findAllByType(m,ErrorBar);if(!g)return null;var _=d==="vertical"?u[0].height/2:u[0].width/2,S=function(b,A){var C=Array.isArray(b.value)?b.value[1]:b.value;return{x:b.x,y:b.y,value:C,errorVal:getValueByDataKey(b,A)}},E={clipPath:i?"url(#clipPath-".concat(o,")"):null};return React.createElement(Layer,E,g.map(function(R){return React.cloneElement(R,{key:"error-bar-".concat(o,"-").concat(R.props.dataKey),data:u,xAxis:f,yAxis:p,layout:d,offset:_,dataPointFormatter:S})}))}},{key:"render",value:function(){var i=this.props,o=i.hide,l=i.data,u=i.className,f=i.xAxis,p=i.yAxis,d=i.left,m=i.top,g=i.width,_=i.height,S=i.isAnimationActive,E=i.background,R=i.id;if(o||!l||!l.length)return null;var b=this.state.isAnimationFinished,A=clsx("recharts-bar",u),C=f&&f.allowDataOverflow,O=p&&p.allowDataOverflow,M=C||O,T=isNil(R)?this.id:R;return React.createElement(Layer,{className:A},C||O?React.createElement("defs",null,React.createElement("clipPath",{id:"clipPath-".concat(T)},React.createElement("rect",{x:C?d:d-g/2,y:O?m:m-_/2,width:C?g:g*2,height:O?_:_*2}))):null,React.createElement(Layer,{className:"recharts-bar-rectangles",clipPath:M?"url(#clipPath-".concat(T,")"):null},E?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(M,T),(!S||b)&&LabelList.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.animationId!==o.prevAnimationId?{prevAnimationId:i.animationId,curData:i.data,prevData:o.curData}:i.data!==o.curData?{curData:i.data}:null}}])}(React.PureComponent);_Bar=Bar,_defineProperty$d(Bar,"displayName","Bar"),_defineProperty$d(Bar,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Global.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),_defineProperty$d(Bar,"getComposedData",function(e){var t=e.props,n=e.item,i=e.barPosition,o=e.bandSize,l=e.xAxis,u=e.yAxis,f=e.xAxisTicks,p=e.yAxisTicks,d=e.stackedData,m=e.dataStartIndex,g=e.displayedData,_=e.offset,S=findPositionOfBar(i,n);if(!S)return null;var E=t.layout,R=n.type.defaultProps,b=R!==void 0?_objectSpread$a(_objectSpread$a({},R),n.props):n.props,A=b.dataKey,C=b.children,O=b.minPointSize,M=E==="horizontal"?u:l,T=d?M.scale.domain():null,j=getBaseValueOfBar({numericAxis:M}),I=findAllByType(C,Cell),D=g.map(function(L,F){var N,B,z,V,W,U;d?N=truncateByDomain(d[m+F],T):(N=getValueByDataKey(L,A),Array.isArray(N)||(N=[j,N]));var Q=minPointSizeCallback(O,_Bar.defaultProps.minPointSize)(N[1],F);if(E==="horizontal"){var q,G=[u.scale(N[0]),u.scale(N[1])],H=G[0],Z=G[1];B=getCateCoordinateOfBar({axis:l,ticks:f,bandSize:o,offset:S.offset,entry:L,index:F}),z=(q=Z??H)!==null&&q!==void 0?q:void 0,V=S.size;var ee=H-Z;if(W=Number.isNaN(ee)?0:ee,U={x:B,y:u.y,width:V,height:u.height},Math.abs(Q)>0&&Math.abs(W)<Math.abs(Q)){var ne=mathSign(W||Q)*(Math.abs(Q)-Math.abs(W));z-=ne,W+=ne}}else{var ie=[l.scale(N[0]),l.scale(N[1])],oe=ie[0],ce=ie[1];if(B=oe,z=getCateCoordinateOfBar({axis:u,ticks:p,bandSize:o,offset:S.offset,entry:L,index:F}),V=ce-oe,W=S.size,U={x:l.x,y:z,width:l.width,height:W},Math.abs(Q)>0&&Math.abs(V)<Math.abs(Q)){var le=mathSign(V||Q)*(Math.abs(Q)-Math.abs(V));V+=le}}return _objectSpread$a(_objectSpread$a(_objectSpread$a({},L),{},{x:B,y:z,width:V,height:W,value:d?N:N[1],payload:L,background:U},I&&I[F]&&I[F].props),{},{tooltipPayload:[getTooltipItem(n,L)],tooltipPosition:{x:B+V/2,y:z+W/2}})});return _objectSpread$a({data:D,layout:E},_)});function _typeof$d(e){"@babel/helpers - typeof";return _typeof$d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$d(e)}function _classCallCheck$9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$9(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$c(i.key),i)}}function _createClass$9(e,t,n){return t&&_defineProperties$9(e.prototype,t),n&&_defineProperties$9(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ownKeys$9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$9(Object(n),!0).forEach(function(i){_defineProperty$c(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$9(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$c(e,t,n){return t=_toPropertyKey$c(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$c(e){var t=_toPrimitive$c(e,"string");return _typeof$d(t)=="symbol"?t:t+""}function _toPrimitive$c(e,t){if(_typeof$d(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$d(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var formatAxisMap=function(t,n,i,o,l){var u=t.width,f=t.height,p=t.layout,d=t.children,m=Object.keys(n),g={left:i.left,leftMirror:i.left,right:u-i.right,rightMirror:u-i.right,top:i.top,topMirror:i.top,bottom:f-i.bottom,bottomMirror:f-i.bottom},_=!!findChildByType(d,Bar);return m.reduce(function(S,E){var R=n[E],b=R.orientation,A=R.domain,C=R.padding,O=C===void 0?{}:C,M=R.mirror,T=R.reversed,j="".concat(b).concat(M?"Mirror":""),I,D,L,F,N;if(R.type==="number"&&(R.padding==="gap"||R.padding==="no-gap")){var B=A[1]-A[0],z=1/0,V=R.categoricalDomain.sort();if(V.forEach(function(ie,oe){oe>0&&(z=Math.min((ie||0)-(V[oe-1]||0),z))}),Number.isFinite(z)){var W=z/B,U=R.layout==="vertical"?i.height:i.width;if(R.padding==="gap"&&(I=W*U/2),R.padding==="no-gap"){var Q=getPercentValue(t.barCategoryGap,W*U),q=W*U/2;I=q-Q-(q-Q)/U*Q}}}o==="xAxis"?D=[i.left+(O.left||0)+(I||0),i.left+i.width-(O.right||0)-(I||0)]:o==="yAxis"?D=p==="horizontal"?[i.top+i.height-(O.bottom||0),i.top+(O.top||0)]:[i.top+(O.top||0)+(I||0),i.top+i.height-(O.bottom||0)-(I||0)]:D=R.range,T&&(D=[D[1],D[0]]);var G=parseScale(R,l,_),H=G.scale,Z=G.realScaleType;H.domain(A).range(D),checkDomainOfScale(H);var ee=getTicksOfScale(H,_objectSpread$9(_objectSpread$9({},R),{},{realScaleType:Z}));o==="xAxis"?(N=b==="top"&&!M||b==="bottom"&&M,L=i.left,F=g[j]-N*R.height):o==="yAxis"&&(N=b==="left"&&!M||b==="right"&&M,L=g[j]-N*R.width,F=i.top);var ne=_objectSpread$9(_objectSpread$9(_objectSpread$9({},R),ee),{},{realScaleType:Z,x:L,y:F,scale:H,width:o==="xAxis"?i.width:R.width,height:o==="yAxis"?i.height:R.height});return ne.bandSize=getBandSizeOfAxis(ne,ee),!R.hide&&o==="xAxis"?g[j]+=(N?-1:1)*ne.height:R.hide||(g[j]+=(N?-1:1)*ne.width),_objectSpread$9(_objectSpread$9({},S),{},_defineProperty$c({},E,ne))},{})},rectWithPoints=function(t,n){var i=t.x,o=t.y,l=n.x,u=n.y;return{x:Math.min(i,l),y:Math.min(o,u),width:Math.abs(l-i),height:Math.abs(u-o)}},rectWithCoords=function(t){var n=t.x1,i=t.y1,o=t.x2,l=t.y2;return rectWithPoints({x:n,y:i},{x:o,y:l})},ScaleHelper=function(){function e(t){_classCallCheck$9(this,e),this.scale=t}return _createClass$9(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,l=i.position;if(n!==void 0){if(l)switch(l){case"start":return this.scale(n);case"middle":{var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+u}case"end":{var f=this.bandwidth?this.bandwidth():0;return this.scale(n)+f}default:return this.scale(n)}if(o){var p=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+p}return this.scale(n)}}},{key:"isInRange",value:function(n){var i=this.range(),o=i[0],l=i[i.length-1];return o<=l?n>=o&&n<=l:n>=l&&n<=o}}],[{key:"create",value:function(n){return new e(n)}}])}();_defineProperty$c(ScaleHelper,"EPS",1e-4);var createLabeledScales=function(t){var n=Object.keys(t).reduce(function(i,o){return _objectSpread$9(_objectSpread$9({},i),{},_defineProperty$c({},o,ScaleHelper.create(t[o])))},{});return _objectSpread$9(_objectSpread$9({},n),{},{apply:function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=l.bandAware,f=l.position;return mapValues(o,function(p,d){return n[d].apply(p,{bandAware:u,position:f})})},isInRange:function(o){return every(o,function(l,u){return n[u].isInRange(l)})}})};function normalizeAngle(e){return(e%180+180)%180}var getAngledRectangleWidth=function(t){var n=t.width,i=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=normalizeAngle(o),u=l*Math.PI/180,f=Math.atan(i/n),p=u>f&&u<Math.PI-f?i/Math.sin(u):n/Math.cos(u);return Math.abs(p)},_createFind,hasRequired_createFind;function require_createFind(){if(hasRequired_createFind)return _createFind;hasRequired_createFind=1;var e=require_baseIteratee(),t=requireIsArrayLike(),n=requireKeys();function i(o){return function(l,u,f){var p=Object(l);if(!t(l)){var d=e(u,3);l=n(l),u=function(g){return d(p[g],g,p)}}var m=o(l,u,f);return m>-1?p[d?l[m]:m]:void 0}}return _createFind=i,_createFind}var toInteger_1,hasRequiredToInteger;function requireToInteger(){if(hasRequiredToInteger)return toInteger_1;hasRequiredToInteger=1;var e=requireToFinite();function t(n){var i=e(n),o=i%1;return i===i?o?i-o:i:0}return toInteger_1=t,toInteger_1}var findIndex_1,hasRequiredFindIndex;function requireFindIndex(){if(hasRequiredFindIndex)return findIndex_1;hasRequiredFindIndex=1;var e=require_baseFindIndex(),t=require_baseIteratee(),n=requireToInteger(),i=Math.max;function o(l,u,f){var p=l==null?0:l.length;if(!p)return-1;var d=f==null?0:n(f);return d<0&&(d=i(p+d,0)),e(l,t(u,3),d)}return findIndex_1=o,findIndex_1}var find_1,hasRequiredFind;function requireFind(){if(hasRequiredFind)return find_1;hasRequiredFind=1;var e=require_createFind(),t=requireFindIndex(),n=e(t);return find_1=n,find_1}var findExports=requireFind();const find=getDefaultExportFromCjs(findExports);var memoizeExports=requireMemoize();const memoize=getDefaultExportFromCjs(memoizeExports);var calculateViewBox=memoize(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function _typeof$c(e){"@babel/helpers - typeof";return _typeof$c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$c(e)}var XAxisContext=React.createContext(void 0),YAxisContext=React.createContext(void 0),ViewBoxContext=React.createContext(void 0),OffsetContext=React.createContext({}),ClipPathIdContext=React.createContext(void 0),ChartHeightContext=React.createContext(0),ChartWidthContext=React.createContext(0),ChartLayoutContextProvider=function(t){var n=t.state,i=n.xAxisMap,o=n.yAxisMap,l=n.offset,u=t.clipPathId,f=t.children,p=t.width,d=t.height,m=calculateViewBox(l);return React.createElement(XAxisContext.Provider,{value:i},React.createElement(YAxisContext.Provider,{value:o},React.createElement(OffsetContext.Provider,{value:l},React.createElement(ViewBoxContext.Provider,{value:m},React.createElement(ClipPathIdContext.Provider,{value:u},React.createElement(ChartHeightContext.Provider,{value:d},React.createElement(ChartWidthContext.Provider,{value:p},f)))))))},useClipPathId=function(){return React.useContext(ClipPathIdContext)};function getKeysForDebug(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var useXAxisOrThrow=function(t){var n=React.useContext(XAxisContext);n==null&&(process.env.NODE_ENV!=="production"?invariant(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):invariant());var i=n[t];return i==null&&(process.env.NODE_ENV!=="production"?invariant(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(_typeof$c(t),"]. ").concat(getKeysForDebug(n))):invariant()),i},useArbitraryXAxis=function(){var t=React.useContext(XAxisContext);return getAnyElementOfObject(t)},useYAxisWithFiniteDomainOrRandom=function(){var t=React.useContext(YAxisContext),n=find(t,function(i){return every(i.domain,Number.isFinite)});return n||getAnyElementOfObject(t)},useYAxisOrThrow=function(t){var n=React.useContext(YAxisContext);n==null&&(process.env.NODE_ENV!=="production"?invariant(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):invariant());var i=n[t];return i==null&&(process.env.NODE_ENV!=="production"?invariant(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(_typeof$c(t),"]. ").concat(getKeysForDebug(n))):invariant()),i},useViewBox=function(){var t=React.useContext(ViewBoxContext);return t},useOffset=function(){return React.useContext(OffsetContext)},useChartWidth=function(){return React.useContext(ChartWidthContext)},useChartHeight=function(){return React.useContext(ChartHeightContext)};function _typeof$b(e){"@babel/helpers - typeof";return _typeof$b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$b(e)}function _classCallCheck$8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$8(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$b(i.key),i)}}function _createClass$8(e,t,n){return t&&_defineProperties$8(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$7(e,t,n){return t=_getPrototypeOf$7(t),_possibleConstructorReturn$7(e,_isNativeReflectConstruct$7()?Reflect.construct(t,n||[],_getPrototypeOf$7(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$7(e,t){if(t&&(_typeof$b(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$7(e)}function _assertThisInitialized$7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$7=function(){return!!e})()}function _getPrototypeOf$7(e){return _getPrototypeOf$7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$7(e)}function _inherits$7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$7(e,t)}function _setPrototypeOf$7(e,t){return _setPrototypeOf$7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf$7(e,t)}function ownKeys$8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$8(Object(n),!0).forEach(function(i){_defineProperty$b(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$8(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$b(e,t,n){return t=_toPropertyKey$b(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$b(e){var t=_toPrimitive$b(e,"string");return _typeof$b(t)=="symbol"?t:t+""}function _toPrimitive$b(e,t){if(_typeof$b(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$b(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function _slicedToArray$1(e,t){return _arrayWithHoles$1(e)||_iterableToArrayLimit$1(e,t)||_unsupportedIterableToArray$2(e,t)||_nonIterableRest$1()}function _nonIterableRest$1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
285
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$2(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$2(e,t)}}function _arrayLikeToArray$2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _iterableToArrayLimit$1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,l,u,f=[],p=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(p=(i=l.call(n)).done)&&(f.push(i.value),f.length!==t);p=!0);}catch(m){d=!0,o=m}finally{try{if(!p&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(d)throw o}}return f}}function _arrayWithHoles$1(e){if(Array.isArray(e))return e}function _extends$8(){return _extends$8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$8.apply(this,arguments)}var renderLine=function(t,n){var i;return React.isValidElement(t)?i=React.cloneElement(t,n):isFunction(t)?i=t(n):i=React.createElement("line",_extends$8({},n,{className:"recharts-reference-line-line"})),i},getEndPoints=function(t,n,i,o,l,u,f,p,d){var m=l.x,g=l.y,_=l.width,S=l.height;if(i){var E=d.y,R=t.y.apply(E,{position:u});if(ifOverflowMatches(d,"discard")&&!t.y.isInRange(R))return null;var b=[{x:m+_,y:R},{x:m,y:R}];return p==="left"?b.reverse():b}if(n){var A=d.x,C=t.x.apply(A,{position:u});if(ifOverflowMatches(d,"discard")&&!t.x.isInRange(C))return null;var O=[{x:C,y:g+S},{x:C,y:g}];return f==="top"?O.reverse():O}if(o){var M=d.segment,T=M.map(function(j){return t.apply(j,{position:u})});return ifOverflowMatches(d,"discard")&&some(T,function(j){return!t.isInRange(j)})?null:T}return null};function ReferenceLineImpl(e){var t=e.x,n=e.y,i=e.segment,o=e.xAxisId,l=e.yAxisId,u=e.shape,f=e.className,p=e.alwaysShow,d=useClipPathId(),m=useXAxisOrThrow(o),g=useYAxisOrThrow(l),_=useViewBox();if(!d||!_)return null;warn$1(p===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var S=createLabeledScales({x:m.scale,y:g.scale}),E=isNumOrStr(t),R=isNumOrStr(n),b=i&&i.length===2,A=getEndPoints(S,E,R,b,_,e.position,m.orientation,g.orientation,e);if(!A)return null;var C=_slicedToArray$1(A,2),O=C[0],M=O.x,T=O.y,j=C[1],I=j.x,D=j.y,L=ifOverflowMatches(e,"hidden")?"url(#".concat(d,")"):void 0,F=_objectSpread$8(_objectSpread$8({clipPath:L},filterProps(e,!0)),{},{x1:M,y1:T,x2:I,y2:D});return React.createElement(Layer,{className:clsx("recharts-reference-line",f)},renderLine(u,F),Label.renderCallByParent(e,rectWithCoords({x1:M,y1:T,x2:I,y2:D})))}var ReferenceLine=function(e){function t(){return _classCallCheck$8(this,t),_callSuper$7(this,t,arguments)}return _inherits$7(t,e),_createClass$8(t,[{key:"render",value:function(){return React.createElement(ReferenceLineImpl,this.props)}}])}(React.Component);_defineProperty$b(ReferenceLine,"displayName","ReferenceLine"),_defineProperty$b(ReferenceLine,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function _extends$7(){return _extends$7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$7.apply(this,arguments)}function _typeof$a(e){"@babel/helpers - typeof";return _typeof$a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$a(e)}function ownKeys$7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$7(Object(n),!0).forEach(function(i){_defineProperty$a(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$7(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _classCallCheck$7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$7(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$a(i.key),i)}}function _createClass$7(e,t,n){return t&&_defineProperties$7(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$6(e,t,n){return t=_getPrototypeOf$6(t),_possibleConstructorReturn$6(e,_isNativeReflectConstruct$6()?Reflect.construct(t,n||[],_getPrototypeOf$6(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$6(e,t){if(t&&(_typeof$a(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$6(e)}function _assertThisInitialized$6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$6=function(){return!!e})()}function _getPrototypeOf$6(e){return _getPrototypeOf$6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$6(e)}function _inherits$6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$6(e,t)}function _setPrototypeOf$6(e,t){return _setPrototypeOf$6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf$6(e,t)}function _defineProperty$a(e,t,n){return t=_toPropertyKey$a(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$a(e){var t=_toPrimitive$a(e,"string");return _typeof$a(t)=="symbol"?t:t+""}function _toPrimitive$a(e,t){if(_typeof$a(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$a(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var getCoordinate=function(t){var n=t.x,i=t.y,o=t.xAxis,l=t.yAxis,u=createLabeledScales({x:o.scale,y:l.scale}),f=u.apply({x:n,y:i},{bandAware:!0});return ifOverflowMatches(t,"discard")&&!u.isInRange(f)?null:f},ReferenceDot=function(e){function t(){return _classCallCheck$7(this,t),_callSuper$6(this,t,arguments)}return _inherits$6(t,e),_createClass$7(t,[{key:"render",value:function(){var i=this.props,o=i.x,l=i.y,u=i.r,f=i.alwaysShow,p=i.clipPathId,d=isNumOrStr(o),m=isNumOrStr(l);if(warn$1(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!m)return null;var g=getCoordinate(this.props);if(!g)return null;var _=g.x,S=g.y,E=this.props,R=E.shape,b=E.className,A=ifOverflowMatches(this.props,"hidden")?"url(#".concat(p,")"):void 0,C=_objectSpread$7(_objectSpread$7({clipPath:A},filterProps(this.props,!0)),{},{cx:_,cy:S});return React.createElement(Layer,{className:clsx("recharts-reference-dot",b)},t.renderDot(R,C),Label.renderCallByParent(this.props,{x:_-u,y:S-u,width:2*u,height:2*u}))}}])}(React.Component);_defineProperty$a(ReferenceDot,"displayName","ReferenceDot"),_defineProperty$a(ReferenceDot,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),_defineProperty$a(ReferenceDot,"renderDot",function(e,t){var n;return React.isValidElement(e)?n=React.cloneElement(e,t):isFunction(e)?n=e(t):n=React.createElement(Dot,_extends$7({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function _extends$6(){return _extends$6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$6.apply(this,arguments)}function _typeof$9(e){"@babel/helpers - typeof";return _typeof$9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$9(e)}function ownKeys$6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$6(Object(n),!0).forEach(function(i){_defineProperty$9(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$6(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _classCallCheck$6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$6(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$9(i.key),i)}}function _createClass$6(e,t,n){return t&&_defineProperties$6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$5(e,t,n){return t=_getPrototypeOf$5(t),_possibleConstructorReturn$5(e,_isNativeReflectConstruct$5()?Reflect.construct(t,n||[],_getPrototypeOf$5(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$5(e,t){if(t&&(_typeof$9(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$5(e)}function _assertThisInitialized$5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$5=function(){return!!e})()}function _getPrototypeOf$5(e){return _getPrototypeOf$5=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$5(e)}function _inherits$5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$5(e,t)}function _setPrototypeOf$5(e,t){return _setPrototypeOf$5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf$5(e,t)}function _defineProperty$9(e,t,n){return t=_toPropertyKey$9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$9(e){var t=_toPrimitive$9(e,"string");return _typeof$9(t)=="symbol"?t:t+""}function _toPrimitive$9(e,t){if(_typeof$9(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$9(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var getRect=function(t,n,i,o,l){var u=l.x1,f=l.x2,p=l.y1,d=l.y2,m=l.xAxis,g=l.yAxis;if(!m||!g)return null;var _=createLabeledScales({x:m.scale,y:g.scale}),S={x:t?_.x.apply(u,{position:"start"}):_.x.rangeMin,y:i?_.y.apply(p,{position:"start"}):_.y.rangeMin},E={x:n?_.x.apply(f,{position:"end"}):_.x.rangeMax,y:o?_.y.apply(d,{position:"end"}):_.y.rangeMax};return ifOverflowMatches(l,"discard")&&(!_.isInRange(S)||!_.isInRange(E))?null:rectWithPoints(S,E)},ReferenceArea=function(e){function t(){return _classCallCheck$6(this,t),_callSuper$5(this,t,arguments)}return _inherits$5(t,e),_createClass$6(t,[{key:"render",value:function(){var i=this.props,o=i.x1,l=i.x2,u=i.y1,f=i.y2,p=i.className,d=i.alwaysShow,m=i.clipPathId;warn$1(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var g=isNumOrStr(o),_=isNumOrStr(l),S=isNumOrStr(u),E=isNumOrStr(f),R=this.props.shape;if(!g&&!_&&!S&&!E&&!R)return null;var b=getRect(g,_,S,E,this.props);if(!b&&!R)return null;var A=ifOverflowMatches(this.props,"hidden")?"url(#".concat(m,")"):void 0;return React.createElement(Layer,{className:clsx("recharts-reference-area",p)},t.renderRect(R,_objectSpread$6(_objectSpread$6({clipPath:A},filterProps(this.props,!0)),b)),Label.renderCallByParent(this.props,b))}}])}(React.Component);_defineProperty$9(ReferenceArea,"displayName","ReferenceArea"),_defineProperty$9(ReferenceArea,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),_defineProperty$9(ReferenceArea,"renderRect",function(e,t){var n;return React.isValidElement(e)?n=React.cloneElement(e,t):isFunction(e)?n=e(t):n=React.createElement(Rectangle,_extends$6({},t,{className:"recharts-reference-area-rect"})),n});function getEveryNthWithCondition(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var i=[],o=0;o<e.length;o+=t)i.push(e[o]);return i}function getAngledTickWidth(e,t,n){var i={width:e.width+t.width,height:e.height+t.height};return getAngledRectangleWidth(i,n)}function getTickBoundaries(e,t,n){var i=n==="width",o=e.x,l=e.y,u=e.width,f=e.height;return t===1?{start:i?o:l,end:i?o+u:l+f}:{start:i?o+u:l+f,end:i?o:l}}function isVisible(e,t,n,i,o){if(e*t<e*i||e*t>e*o)return!1;var l=n();return e*(t-e*l/2-i)>=0&&e*(t+e*l/2-o)<=0}function getNumberIntervalTicks(e,t){return getEveryNthWithCondition(e,t+1)}function getEquidistantTicks(e,t,n,i,o){for(var l=(i||[]).slice(),u=t.start,f=t.end,p=0,d=1,m=u,g=function(){var E=i==null?void 0:i[p];if(E===void 0)return{v:getEveryNthWithCondition(i,d)};var R=p,b,A=function(){return b===void 0&&(b=n(E,R)),b},C=E.coordinate,O=p===0||isVisible(e,C,A,m,f);O||(p=0,m=u,d+=1),O&&(m=C+e*(A()/2+o),p+=d)},_;d<=l.length;)if(_=g(),_)return _.v;return[]}function _typeof$8(e){"@babel/helpers - typeof";return _typeof$8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$8(e)}function ownKeys$5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$5(Object(n),!0).forEach(function(i){_defineProperty$8(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$5(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$8(e,t,n){return t=_toPropertyKey$8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$8(e){var t=_toPrimitive$8(e,"string");return _typeof$8(t)=="symbol"?t:t+""}function _toPrimitive$8(e,t){if(_typeof$8(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$8(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function getTicksEnd(e,t,n,i,o){for(var l=(i||[]).slice(),u=l.length,f=t.start,p=t.end,d=function(_){var S=l[_],E,R=function(){return E===void 0&&(E=n(S,_)),E};if(_===u-1){var b=e*(S.coordinate+e*R()/2-p);l[_]=S=_objectSpread$5(_objectSpread$5({},S),{},{tickCoord:b>0?S.coordinate-b*e:S.coordinate})}else l[_]=S=_objectSpread$5(_objectSpread$5({},S),{},{tickCoord:S.coordinate});var A=isVisible(e,S.tickCoord,R,f,p);A&&(p=S.tickCoord-e*(R()/2+o),l[_]=_objectSpread$5(_objectSpread$5({},S),{},{isShow:!0}))},m=u-1;m>=0;m--)d(m);return l}function getTicksStart(e,t,n,i,o,l){var u=(i||[]).slice(),f=u.length,p=t.start,d=t.end;if(l){var m=i[f-1],g=n(m,f-1),_=e*(m.coordinate+e*g/2-d);u[f-1]=m=_objectSpread$5(_objectSpread$5({},m),{},{tickCoord:_>0?m.coordinate-_*e:m.coordinate});var S=isVisible(e,m.tickCoord,function(){return g},p,d);S&&(d=m.tickCoord-e*(g/2+o),u[f-1]=_objectSpread$5(_objectSpread$5({},m),{},{isShow:!0}))}for(var E=l?f-1:f,R=function(C){var O=u[C],M,T=function(){return M===void 0&&(M=n(O,C)),M};if(C===0){var j=e*(O.coordinate-e*T()/2-p);u[C]=O=_objectSpread$5(_objectSpread$5({},O),{},{tickCoord:j<0?O.coordinate-j*e:O.coordinate})}else u[C]=O=_objectSpread$5(_objectSpread$5({},O),{},{tickCoord:O.coordinate});var I=isVisible(e,O.tickCoord,T,p,d);I&&(p=O.tickCoord+e*(T()/2+o),u[C]=_objectSpread$5(_objectSpread$5({},O),{},{isShow:!0}))},b=0;b<E;b++)R(b);return u}function getTicks(e,t,n){var i=e.tick,o=e.ticks,l=e.viewBox,u=e.minTickGap,f=e.orientation,p=e.interval,d=e.tickFormatter,m=e.unit,g=e.angle;if(!o||!o.length||!i)return[];if(isNumber(p)||Global.isSsr)return getNumberIntervalTicks(o,typeof p=="number"&&isNumber(p)?p:0);var _=[],S=f==="top"||f==="bottom"?"width":"height",E=m&&S==="width"?getStringSize(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},R=function(O,M){var T=isFunction(d)?d(O.value,M):O.value;return S==="width"?getAngledTickWidth(getStringSize(T,{fontSize:t,letterSpacing:n}),E,g):getStringSize(T,{fontSize:t,letterSpacing:n})[S]},b=o.length>=2?mathSign(o[1].coordinate-o[0].coordinate):1,A=getTickBoundaries(l,b,S);return p==="equidistantPreserveStart"?getEquidistantTicks(b,A,R,o,u):(p==="preserveStart"||p==="preserveStartEnd"?_=getTicksStart(b,A,R,o,u,p==="preserveStartEnd"):_=getTicksEnd(b,A,R,o,u),_.filter(function(C){return C.isShow}))}var _excluded$3=["viewBox"],_excluded2$3=["viewBox"],_excluded3=["ticks"];function _typeof$7(e){"@babel/helpers - typeof";return _typeof$7=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$7(e)}function _extends$5(){return _extends$5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$5.apply(this,arguments)}function ownKeys$4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$4(Object(n),!0).forEach(function(i){_defineProperty$7(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$4(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _objectWithoutProperties$3(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$3(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$3(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function _classCallCheck$5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$7(i.key),i)}}function _createClass$5(e,t,n){return t&&_defineProperties$5(e.prototype,t),n&&_defineProperties$5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$4(e,t,n){return t=_getPrototypeOf$4(t),_possibleConstructorReturn$4(e,_isNativeReflectConstruct$4()?Reflect.construct(t,n||[],_getPrototypeOf$4(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$4(e,t){if(t&&(_typeof$7(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$4(e)}function _assertThisInitialized$4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$4=function(){return!!e})()}function _getPrototypeOf$4(e){return _getPrototypeOf$4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$4(e)}function _inherits$4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$4(e,t)}function _setPrototypeOf$4(e,t){return _setPrototypeOf$4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf$4(e,t)}function _defineProperty$7(e,t,n){return t=_toPropertyKey$7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$7(e){var t=_toPrimitive$7(e,"string");return _typeof$7(t)=="symbol"?t:t+""}function _toPrimitive$7(e,t){if(_typeof$7(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$7(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var CartesianAxis=function(e){function t(n){var i;return _classCallCheck$5(this,t),i=_callSuper$4(this,t,[n]),i.state={fontSize:"",letterSpacing:""},i}return _inherits$4(t,e),_createClass$5(t,[{key:"shouldComponentUpdate",value:function(i,o){var l=i.viewBox,u=_objectWithoutProperties$3(i,_excluded$3),f=this.props,p=f.viewBox,d=_objectWithoutProperties$3(f,_excluded2$3);return!shallowEqual(l,p)||!shallowEqual(u,d)||!shallowEqual(o,this.state)}},{key:"componentDidMount",value:function(){var i=this.layerReference;if(i){var o=i.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];o&&this.setState({fontSize:window.getComputedStyle(o).fontSize,letterSpacing:window.getComputedStyle(o).letterSpacing})}}},{key:"getTickLineCoord",value:function(i){var o=this.props,l=o.x,u=o.y,f=o.width,p=o.height,d=o.orientation,m=o.tickSize,g=o.mirror,_=o.tickMargin,S,E,R,b,A,C,O=g?-1:1,M=i.tickSize||m,T=isNumber(i.tickCoord)?i.tickCoord:i.coordinate;switch(d){case"top":S=E=i.coordinate,b=u+ +!g*p,R=b-O*M,C=R-O*_,A=T;break;case"left":R=b=i.coordinate,E=l+ +!g*f,S=E-O*M,A=S-O*_,C=T;break;case"right":R=b=i.coordinate,E=l+ +g*f,S=E+O*M,A=S+O*_,C=T;break;default:S=E=i.coordinate,b=u+ +g*p,R=b+O*M,C=R+O*_,A=T;break}return{line:{x1:S,y1:R,x2:E,y2:b},tick:{x:A,y:C}}}},{key:"getTickTextAnchor",value:function(){var i=this.props,o=i.orientation,l=i.mirror,u;switch(o){case"left":u=l?"start":"end";break;case"right":u=l?"end":"start";break;default:u="middle";break}return u}},{key:"getTickVerticalAnchor",value:function(){var i=this.props,o=i.orientation,l=i.mirror,u="end";switch(o){case"left":case"right":u="middle";break;case"top":u=l?"start":"end";break;default:u=l?"end":"start";break}return u}},{key:"renderAxisLine",value:function(){var i=this.props,o=i.x,l=i.y,u=i.width,f=i.height,p=i.orientation,d=i.mirror,m=i.axisLine,g=_objectSpread$4(_objectSpread$4(_objectSpread$4({},filterProps(this.props,!1)),filterProps(m,!1)),{},{fill:"none"});if(p==="top"||p==="bottom"){var _=+(p==="top"&&!d||p==="bottom"&&d);g=_objectSpread$4(_objectSpread$4({},g),{},{x1:o,y1:l+_*f,x2:o+u,y2:l+_*f})}else{var S=+(p==="left"&&!d||p==="right"&&d);g=_objectSpread$4(_objectSpread$4({},g),{},{x1:o+S*u,y1:l,x2:o+S*u,y2:l+f})}return React.createElement("line",_extends$5({},g,{className:clsx("recharts-cartesian-axis-line",get(m,"className"))}))}},{key:"renderTicks",value:function(i,o,l){var u=this,f=this.props,p=f.tickLine,d=f.stroke,m=f.tick,g=f.tickFormatter,_=f.unit,S=getTicks(_objectSpread$4(_objectSpread$4({},this.props),{},{ticks:i}),o,l),E=this.getTickTextAnchor(),R=this.getTickVerticalAnchor(),b=filterProps(this.props,!1),A=filterProps(m,!1),C=_objectSpread$4(_objectSpread$4({},b),{},{fill:"none"},filterProps(p,!1)),O=S.map(function(M,T){var j=u.getTickLineCoord(M),I=j.line,D=j.tick,L=_objectSpread$4(_objectSpread$4(_objectSpread$4(_objectSpread$4({textAnchor:E,verticalAnchor:R},b),{},{stroke:"none",fill:d},A),D),{},{index:T,payload:M,visibleTicksCount:S.length,tickFormatter:g});return React.createElement(Layer,_extends$5({className:"recharts-cartesian-axis-tick",key:"tick-".concat(M.value,"-").concat(M.coordinate,"-").concat(M.tickCoord)},adaptEventsOfChild(u.props,M,T)),p&&React.createElement("line",_extends$5({},C,I,{className:clsx("recharts-cartesian-axis-tick-line",get(p,"className"))})),m&&t.renderTickItem(m,L,"".concat(isFunction(g)?g(M.value,T):M.value).concat(_||"")))});return React.createElement("g",{className:"recharts-cartesian-axis-ticks"},O)}},{key:"render",value:function(){var i=this,o=this.props,l=o.axisLine,u=o.width,f=o.height,p=o.ticksGenerator,d=o.className,m=o.hide;if(m)return null;var g=this.props,_=g.ticks,S=_objectWithoutProperties$3(g,_excluded3),E=_;return isFunction(p)&&(E=_&&_.length>0?p(this.props):p(S)),u<=0||f<=0||!E||!E.length?null:React.createElement(Layer,{className:clsx("recharts-cartesian-axis",d),ref:function(b){i.layerReference=b}},l&&this.renderAxisLine(),this.renderTicks(E,this.state.fontSize,this.state.letterSpacing),Label.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(i,o,l){var u;return React.isValidElement(i)?u=React.cloneElement(i,o):isFunction(i)?u=i(o):u=React.createElement(Text,_extends$5({},o,{className:"recharts-cartesian-axis-tick-value"}),l),u}}])}(React.Component);_defineProperty$7(CartesianAxis,"displayName","CartesianAxis"),_defineProperty$7(CartesianAxis,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var _excluded$2=["x1","y1","x2","y2","key"],_excluded2$2=["offset"];function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(e)}function ownKeys$3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$3(Object(n),!0).forEach(function(i){_defineProperty$6(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$3(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$6(e,t,n){return t=_toPropertyKey$6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$6(e){var t=_toPrimitive$6(e,"string");return _typeof$6(t)=="symbol"?t:t+""}function _toPrimitive$6(e,t){if(_typeof$6(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$6(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _extends$4(){return _extends$4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$4.apply(this,arguments)}function _objectWithoutProperties$2(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$2(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$2(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}var Background=function(t){var n=t.fill;if(!n||n==="none")return null;var i=t.fillOpacity,o=t.x,l=t.y,u=t.width,f=t.height,p=t.ry;return React.createElement("rect",{x:o,y:l,ry:p,width:u,height:f,stroke:"none",fill:n,fillOpacity:i,className:"recharts-cartesian-grid-bg"})};function renderLineItem(e,t){var n;if(React.isValidElement(e))n=React.cloneElement(e,t);else if(isFunction(e))n=e(t);else{var i=t.x1,o=t.y1,l=t.x2,u=t.y2,f=t.key,p=_objectWithoutProperties$2(t,_excluded$2),d=filterProps(p,!1);d.offset;var m=_objectWithoutProperties$2(d,_excluded2$2);n=React.createElement("line",_extends$4({},m,{x1:i,y1:o,x2:l,y2:u,fill:"none",key:f}))}return n}function HorizontalGridLines(e){var t=e.x,n=e.width,i=e.horizontal,o=i===void 0?!0:i,l=e.horizontalPoints;if(!o||!l||!l.length)return null;var u=l.map(function(f,p){var d=_objectSpread$3(_objectSpread$3({},e),{},{x1:t,y1:f,x2:t+n,y2:f,key:"line-".concat(p),index:p});return renderLineItem(o,d)});return React.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function VerticalGridLines(e){var t=e.y,n=e.height,i=e.vertical,o=i===void 0?!0:i,l=e.verticalPoints;if(!o||!l||!l.length)return null;var u=l.map(function(f,p){var d=_objectSpread$3(_objectSpread$3({},e),{},{x1:f,y1:t,x2:f,y2:t+n,key:"line-".concat(p),index:p});return renderLineItem(o,d)});return React.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function HorizontalStripes(e){var t=e.horizontalFill,n=e.fillOpacity,i=e.x,o=e.y,l=e.width,u=e.height,f=e.horizontalPoints,p=e.horizontal,d=p===void 0?!0:p;if(!d||!t||!t.length)return null;var m=f.map(function(_){return Math.round(_+o-o)}).sort(function(_,S){return _-S});o!==m[0]&&m.unshift(0);var g=m.map(function(_,S){var E=!m[S+1],R=E?o+u-_:m[S+1]-_;if(R<=0)return null;var b=S%t.length;return React.createElement("rect",{key:"react-".concat(S),y:_,x:i,height:R,width:l,stroke:"none",fill:t[b],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return React.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},g)}function VerticalStripes(e){var t=e.vertical,n=t===void 0?!0:t,i=e.verticalFill,o=e.fillOpacity,l=e.x,u=e.y,f=e.width,p=e.height,d=e.verticalPoints;if(!n||!i||!i.length)return null;var m=d.map(function(_){return Math.round(_+l-l)}).sort(function(_,S){return _-S});l!==m[0]&&m.unshift(0);var g=m.map(function(_,S){var E=!m[S+1],R=E?l+f-_:m[S+1]-_;if(R<=0)return null;var b=S%i.length;return React.createElement("rect",{key:"react-".concat(S),x:_,y:u,width:R,height:p,stroke:"none",fill:i[b],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return React.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},g)}var defaultVerticalCoordinatesGenerator=function(t,n){var i=t.xAxis,o=t.width,l=t.height,u=t.offset;return getCoordinatesOfGrid(getTicks(_objectSpread$3(_objectSpread$3(_objectSpread$3({},CartesianAxis.defaultProps),i),{},{ticks:getTicksOfAxis(i,!0),viewBox:{x:0,y:0,width:o,height:l}})),u.left,u.left+u.width,n)},defaultHorizontalCoordinatesGenerator=function(t,n){var i=t.yAxis,o=t.width,l=t.height,u=t.offset;return getCoordinatesOfGrid(getTicks(_objectSpread$3(_objectSpread$3(_objectSpread$3({},CartesianAxis.defaultProps),i),{},{ticks:getTicksOfAxis(i,!0),viewBox:{x:0,y:0,width:o,height:l}})),u.top,u.top+u.height,n)},defaultProps={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function CartesianGrid(e){var t,n,i,o,l,u,f=useChartWidth(),p=useChartHeight(),d=useOffset(),m=_objectSpread$3(_objectSpread$3({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:defaultProps.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:defaultProps.fill,horizontal:(i=e.horizontal)!==null&&i!==void 0?i:defaultProps.horizontal,horizontalFill:(o=e.horizontalFill)!==null&&o!==void 0?o:defaultProps.horizontalFill,vertical:(l=e.vertical)!==null&&l!==void 0?l:defaultProps.vertical,verticalFill:(u=e.verticalFill)!==null&&u!==void 0?u:defaultProps.verticalFill,x:isNumber(e.x)?e.x:d.left,y:isNumber(e.y)?e.y:d.top,width:isNumber(e.width)?e.width:d.width,height:isNumber(e.height)?e.height:d.height}),g=m.x,_=m.y,S=m.width,E=m.height,R=m.syncWithTicks,b=m.horizontalValues,A=m.verticalValues,C=useArbitraryXAxis(),O=useYAxisWithFiniteDomainOrRandom();if(!isNumber(S)||S<=0||!isNumber(E)||E<=0||!isNumber(g)||g!==+g||!isNumber(_)||_!==+_)return null;var M=m.verticalCoordinatesGenerator||defaultVerticalCoordinatesGenerator,T=m.horizontalCoordinatesGenerator||defaultHorizontalCoordinatesGenerator,j=m.horizontalPoints,I=m.verticalPoints;if((!j||!j.length)&&isFunction(T)){var D=b&&b.length,L=T({yAxis:O?_objectSpread$3(_objectSpread$3({},O),{},{ticks:D?b:O.ticks}):void 0,width:f,height:p,offset:d},D?!0:R);warn$1(Array.isArray(L),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(_typeof$6(L),"]")),Array.isArray(L)&&(j=L)}if((!I||!I.length)&&isFunction(M)){var F=A&&A.length,N=M({xAxis:C?_objectSpread$3(_objectSpread$3({},C),{},{ticks:F?A:C.ticks}):void 0,width:f,height:p,offset:d},F?!0:R);warn$1(Array.isArray(N),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(_typeof$6(N),"]")),Array.isArray(N)&&(I=N)}return React.createElement("g",{className:"recharts-cartesian-grid"},React.createElement(Background,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),React.createElement(HorizontalGridLines,_extends$4({},m,{offset:d,horizontalPoints:j,xAxis:C,yAxis:O})),React.createElement(VerticalGridLines,_extends$4({},m,{offset:d,verticalPoints:I,xAxis:C,yAxis:O})),React.createElement(HorizontalStripes,_extends$4({},m,{horizontalPoints:j})),React.createElement(VerticalStripes,_extends$4({},m,{verticalPoints:I})))}CartesianGrid.displayName="CartesianGrid";var _excluded$1=["layout","type","stroke","connectNulls","isRange","ref"],_excluded2$1=["key"],_Area;function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(e)}function _objectWithoutProperties$1(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose$1(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$1(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$3.apply(this,arguments)}function ownKeys$2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$2(Object(n),!0).forEach(function(i){_defineProperty$5(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$2(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _classCallCheck$4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$4(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$5(i.key),i)}}function _createClass$4(e,t,n){return t&&_defineProperties$4(e.prototype,t),n&&_defineProperties$4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$3(e,t,n){return t=_getPrototypeOf$3(t),_possibleConstructorReturn$3(e,_isNativeReflectConstruct$3()?Reflect.construct(t,n||[],_getPrototypeOf$3(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$3(e,t){if(t&&(_typeof$5(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$3(e)}function _assertThisInitialized$3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$3=function(){return!!e})()}function _getPrototypeOf$3(e){return _getPrototypeOf$3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$3(e)}function _inherits$3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$3(e,t)}function _setPrototypeOf$3(e,t){return _setPrototypeOf$3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf$3(e,t)}function _defineProperty$5(e,t,n){return t=_toPropertyKey$5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$5(e){var t=_toPrimitive$5(e,"string");return _typeof$5(t)=="symbol"?t:t+""}function _toPrimitive$5(e,t){if(_typeof$5(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$5(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Area=function(e){function t(){var n;_classCallCheck$4(this,t);for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return n=_callSuper$3(this,t,[].concat(o)),_defineProperty$5(n,"state",{isAnimationFinished:!0}),_defineProperty$5(n,"id",uniqueId("recharts-area-")),_defineProperty$5(n,"handleAnimationEnd",function(){var u=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),isFunction(u)&&u()}),_defineProperty$5(n,"handleAnimationStart",function(){var u=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),isFunction(u)&&u()}),n}return _inherits$3(t,e),_createClass$4(t,[{key:"renderDots",value:function(i,o,l){var u=this.props.isAnimationActive,f=this.state.isAnimationFinished;if(u&&!f)return null;var p=this.props,d=p.dot,m=p.points,g=p.dataKey,_=filterProps(this.props,!1),S=filterProps(d,!0),E=m.map(function(b,A){var C=_objectSpread$2(_objectSpread$2(_objectSpread$2({key:"dot-".concat(A),r:3},_),S),{},{index:A,cx:b.x,cy:b.y,dataKey:g,value:b.value,payload:b.payload,points:m});return t.renderDotItem(d,C)}),R={clipPath:i?"url(#clipPath-".concat(o?"":"dots-").concat(l,")"):null};return React.createElement(Layer,_extends$3({className:"recharts-area-dots"},R),E)}},{key:"renderHorizontalRect",value:function(i){var o=this.props,l=o.baseLine,u=o.points,f=o.strokeWidth,p=u[0].x,d=u[u.length-1].x,m=i*Math.abs(p-d),g=max(u.map(function(_){return _.y||0}));return isNumber(l)&&typeof l=="number"?g=Math.max(l,g):l&&Array.isArray(l)&&l.length&&(g=Math.max(max(l.map(function(_){return _.y||0})),g)),isNumber(g)?React.createElement("rect",{x:p<d?p:p-m,y:0,width:m,height:Math.floor(g+(f?parseInt("".concat(f),10):1))}):null}},{key:"renderVerticalRect",value:function(i){var o=this.props,l=o.baseLine,u=o.points,f=o.strokeWidth,p=u[0].y,d=u[u.length-1].y,m=i*Math.abs(p-d),g=max(u.map(function(_){return _.x||0}));return isNumber(l)&&typeof l=="number"?g=Math.max(l,g):l&&Array.isArray(l)&&l.length&&(g=Math.max(max(l.map(function(_){return _.x||0})),g)),isNumber(g)?React.createElement("rect",{x:0,y:p<d?p:p-m,width:g+(f?parseInt("".concat(f),10):1),height:Math.floor(m)}):null}},{key:"renderClipRect",value:function(i){var o=this.props.layout;return o==="vertical"?this.renderVerticalRect(i):this.renderHorizontalRect(i)}},{key:"renderAreaStatically",value:function(i,o,l,u){var f=this.props,p=f.layout,d=f.type,m=f.stroke,g=f.connectNulls,_=f.isRange;f.ref;var S=_objectWithoutProperties$1(f,_excluded$1);return React.createElement(Layer,{clipPath:l?"url(#clipPath-".concat(u,")"):null},React.createElement(Curve,_extends$3({},filterProps(S,!0),{points:i,connectNulls:g,type:d,baseLine:o,layout:p,stroke:"none",className:"recharts-area-area"})),m!=="none"&&React.createElement(Curve,_extends$3({},filterProps(this.props,!1),{className:"recharts-area-curve",layout:p,type:d,connectNulls:g,fill:"none",points:i})),m!=="none"&&_&&React.createElement(Curve,_extends$3({},filterProps(this.props,!1),{className:"recharts-area-curve",layout:p,type:d,connectNulls:g,fill:"none",points:o})))}},{key:"renderAreaWithAnimation",value:function(i,o){var l=this,u=this.props,f=u.points,p=u.baseLine,d=u.isAnimationActive,m=u.animationBegin,g=u.animationDuration,_=u.animationEasing,S=u.animationId,E=this.state,R=E.prevPoints,b=E.prevBaseLine;return React.createElement(Animate,{begin:m,duration:g,isActive:d,easing:_,from:{t:0},to:{t:1},key:"area-".concat(S),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(A){var C=A.t;if(R){var O=R.length/f.length,M=f.map(function(D,L){var F=Math.floor(L*O);if(R[F]){var N=R[F],B=interpolateNumber$2(N.x,D.x),z=interpolateNumber$2(N.y,D.y);return _objectSpread$2(_objectSpread$2({},D),{},{x:B(C),y:z(C)})}return D}),T;if(isNumber(p)&&typeof p=="number"){var j=interpolateNumber$2(b,p);T=j(C)}else if(isNil(p)||isNan(p)){var I=interpolateNumber$2(b,0);T=I(C)}else T=p.map(function(D,L){var F=Math.floor(L*O);if(b[F]){var N=b[F],B=interpolateNumber$2(N.x,D.x),z=interpolateNumber$2(N.y,D.y);return _objectSpread$2(_objectSpread$2({},D),{},{x:B(C),y:z(C)})}return D});return l.renderAreaStatically(M,T,i,o)}return React.createElement(Layer,null,React.createElement("defs",null,React.createElement("clipPath",{id:"animationClipPath-".concat(o)},l.renderClipRect(C))),React.createElement(Layer,{clipPath:"url(#animationClipPath-".concat(o,")")},l.renderAreaStatically(f,p,i,o)))})}},{key:"renderArea",value:function(i,o){var l=this.props,u=l.points,f=l.baseLine,p=l.isAnimationActive,d=this.state,m=d.prevPoints,g=d.prevBaseLine,_=d.totalLength;return p&&u&&u.length&&(!m&&_>0||!isEqual(m,u)||!isEqual(g,f))?this.renderAreaWithAnimation(i,o):this.renderAreaStatically(u,f,i,o)}},{key:"render",value:function(){var i,o=this.props,l=o.hide,u=o.dot,f=o.points,p=o.className,d=o.top,m=o.left,g=o.xAxis,_=o.yAxis,S=o.width,E=o.height,R=o.isAnimationActive,b=o.id;if(l||!f||!f.length)return null;var A=this.state.isAnimationFinished,C=f.length===1,O=clsx("recharts-area",p),M=g&&g.allowDataOverflow,T=_&&_.allowDataOverflow,j=M||T,I=isNil(b)?this.id:b,D=(i=filterProps(u,!1))!==null&&i!==void 0?i:{r:3,strokeWidth:2},L=D.r,F=L===void 0?3:L,N=D.strokeWidth,B=N===void 0?2:N,z=hasClipDot(u)?u:{},V=z.clipDot,W=V===void 0?!0:V,U=F*2+B;return React.createElement(Layer,{className:O},M||T?React.createElement("defs",null,React.createElement("clipPath",{id:"clipPath-".concat(I)},React.createElement("rect",{x:M?m:m-S/2,y:T?d:d-E/2,width:M?S:S*2,height:T?E:E*2})),!W&&React.createElement("clipPath",{id:"clipPath-dots-".concat(I)},React.createElement("rect",{x:m-U/2,y:d-U/2,width:S+U,height:E+U}))):null,C?null:this.renderArea(j,I),(u||C)&&this.renderDots(j,W,I),(!R||A)&&LabelList.renderCallByParent(this.props,f))}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.animationId!==o.prevAnimationId?{prevAnimationId:i.animationId,curPoints:i.points,curBaseLine:i.baseLine,prevPoints:o.curPoints,prevBaseLine:o.curBaseLine}:i.points!==o.curPoints||i.baseLine!==o.curBaseLine?{curPoints:i.points,curBaseLine:i.baseLine}:null}}])}(React.PureComponent);_Area=Area,_defineProperty$5(Area,"displayName","Area"),_defineProperty$5(Area,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Global.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),_defineProperty$5(Area,"getBaseValue",function(e,t,n,i){var o=e.layout,l=e.baseValue,u=t.props.baseValue,f=u??l;if(isNumber(f)&&typeof f=="number")return f;var p=o==="horizontal"?i:n,d=p.scale.domain();if(p.type==="number"){var m=Math.max(d[0],d[1]),g=Math.min(d[0],d[1]);return f==="dataMin"?g:f==="dataMax"||m<0?m:Math.max(Math.min(d[0],d[1]),0)}return f==="dataMin"?d[0]:f==="dataMax"?d[1]:d[0]}),_defineProperty$5(Area,"getComposedData",function(e){var t=e.props,n=e.item,i=e.xAxis,o=e.yAxis,l=e.xAxisTicks,u=e.yAxisTicks,f=e.bandSize,p=e.dataKey,d=e.stackedData,m=e.dataStartIndex,g=e.displayedData,_=e.offset,S=t.layout,E=d&&d.length,R=_Area.getBaseValue(t,n,i,o),b=S==="horizontal",A=!1,C=g.map(function(M,T){var j;E?j=d[m+T]:(j=getValueByDataKey(M,p),Array.isArray(j)?A=!0:j=[R,j]);var I=j[1]==null||E&&getValueByDataKey(M,p)==null;return b?{x:getCateCoordinateOfLine({axis:i,ticks:l,bandSize:f,entry:M,index:T}),y:I?null:o.scale(j[1]),value:j,payload:M}:{x:I?null:i.scale(j[1]),y:getCateCoordinateOfLine({axis:o,ticks:u,bandSize:f,entry:M,index:T}),value:j,payload:M}}),O;return E||A?O=C.map(function(M){var T=Array.isArray(M.value)?M.value[0]:null;return b?{x:M.x,y:T!=null&&M.y!=null?o.scale(T):null}:{x:T!=null?i.scale(T):null,y:M.y}}):O=b?o.scale(R):i.scale(R),_objectSpread$2({points:C,baseLine:O,layout:S,isRange:A},_)}),_defineProperty$5(Area,"renderDotItem",function(e,t){var n;if(React.isValidElement(e))n=React.cloneElement(e,t);else if(isFunction(e))n=e(t);else{var i=clsx("recharts-area-dot",typeof e!="boolean"?e.className:""),o=t.key,l=_objectWithoutProperties$1(t,_excluded2$1);n=React.createElement(Dot,_extends$3({},l,{key:o,className:i}))}return n});function _typeof$4(e){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(e)}function _classCallCheck$3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$3(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$4(i.key),i)}}function _createClass$3(e,t,n){return t&&_defineProperties$3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$2(e,t,n){return t=_getPrototypeOf$2(t),_possibleConstructorReturn$2(e,_isNativeReflectConstruct$2()?Reflect.construct(t,n||[],_getPrototypeOf$2(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$2(e,t){if(t&&(_typeof$4(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$2(e)}function _assertThisInitialized$2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$2=function(){return!!e})()}function _getPrototypeOf$2(e){return _getPrototypeOf$2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$2(e)}function _inherits$2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$2(e,t)}function _setPrototypeOf$2(e,t){return _setPrototypeOf$2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf$2(e,t)}function _defineProperty$4(e,t,n){return t=_toPropertyKey$4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$4(e){var t=_toPrimitive$4(e,"string");return _typeof$4(t)=="symbol"?t:t+""}function _toPrimitive$4(e,t){if(_typeof$4(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$4(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$2.apply(this,arguments)}function XAxisImpl(e){var t=e.xAxisId,n=useChartWidth(),i=useChartHeight(),o=useXAxisOrThrow(t);return o==null?null:React.createElement(CartesianAxis,_extends$2({},o,{className:clsx("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return getTicksOfAxis(u,!0)}}))}var XAxis=function(e){function t(){return _classCallCheck$3(this,t),_callSuper$2(this,t,arguments)}return _inherits$2(t,e),_createClass$3(t,[{key:"render",value:function(){return React.createElement(XAxisImpl,this.props)}}])}(React.Component);_defineProperty$4(XAxis,"displayName","XAxis"),_defineProperty$4(XAxis,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function _typeof$3(e){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(e)}function _classCallCheck$2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$3(i.key),i)}}function _createClass$2(e,t,n){return t&&_defineProperties$2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper$1(e,t,n){return t=_getPrototypeOf$1(t),_possibleConstructorReturn$1(e,_isNativeReflectConstruct$1()?Reflect.construct(t,n||[],_getPrototypeOf$1(e).constructor):t.apply(e,n))}function _possibleConstructorReturn$1(e,t){if(t&&(_typeof$3(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$1(e)}function _assertThisInitialized$1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct$1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct$1=function(){return!!e})()}function _getPrototypeOf$1(e){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$1(e)}function _inherits$1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf$1(e,t)}function _setPrototypeOf$1(e,t){return _setPrototypeOf$1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf$1(e,t)}function _defineProperty$3(e,t,n){return t=_toPropertyKey$3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$3(e){var t=_toPrimitive$3(e,"string");return _typeof$3(t)=="symbol"?t:t+""}function _toPrimitive$3(e,t){if(_typeof$3(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$3(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends$1.apply(this,arguments)}var YAxisImpl=function(t){var n=t.yAxisId,i=useChartWidth(),o=useChartHeight(),l=useYAxisOrThrow(n);return l==null?null:React.createElement(CartesianAxis,_extends$1({},l,{className:clsx("recharts-".concat(l.axisType," ").concat(l.axisType),l.className),viewBox:{x:0,y:0,width:i,height:o},ticksGenerator:function(f){return getTicksOfAxis(f,!0)}}))},YAxis=function(e){function t(){return _classCallCheck$2(this,t),_callSuper$1(this,t,arguments)}return _inherits$1(t,e),_createClass$2(t,[{key:"render",value:function(){return React.createElement(YAxisImpl,this.props)}}])}(React.Component);_defineProperty$3(YAxis,"displayName","YAxis"),_defineProperty$3(YAxis,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function _toConsumableArray$1(e){return _arrayWithoutHoles$1(e)||_iterableToArray$1(e)||_unsupportedIterableToArray$1(e)||_nonIterableSpread$1()}function _nonIterableSpread$1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
286
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$1(e,t)}}function _iterableToArray$1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _arrayWithoutHoles$1(e){if(Array.isArray(e))return _arrayLikeToArray$1(e)}function _arrayLikeToArray$1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var detectReferenceElementsDomain=function(t,n,i,o,l){var u=findAllByType(t,ReferenceLine),f=findAllByType(t,ReferenceDot),p=[].concat(_toConsumableArray$1(u),_toConsumableArray$1(f)),d=findAllByType(t,ReferenceArea),m="".concat(o,"Id"),g=o[0],_=n;if(p.length&&(_=p.reduce(function(R,b){if(b.props[m]===i&&ifOverflowMatches(b.props,"extendDomain")&&isNumber(b.props[g])){var A=b.props[g];return[Math.min(R[0],A),Math.max(R[1],A)]}return R},_)),d.length){var S="".concat(g,"1"),E="".concat(g,"2");_=d.reduce(function(R,b){if(b.props[m]===i&&ifOverflowMatches(b.props,"extendDomain")&&isNumber(b.props[S])&&isNumber(b.props[E])){var A=b.props[S],C=b.props[E];return[Math.min(R[0],A,C),Math.max(R[1],A,C)]}return R},_)}return l&&l.length&&(_=l.reduce(function(R,b){return isNumber(b)?[Math.min(R[0],b),Math.max(R[1],b)]:R},_)),_},eventemitter3={exports:{}},hasRequiredEventemitter3;function requireEventemitter3(){return hasRequiredEventemitter3||(hasRequiredEventemitter3=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function o(p,d,m){this.fn=p,this.context=d,this.once=m||!1}function l(p,d,m,g,_){if(typeof m!="function")throw new TypeError("The listener must be a function");var S=new o(m,g||p,_),E=n?n+d:d;return p._events[E]?p._events[E].fn?p._events[E]=[p._events[E],S]:p._events[E].push(S):(p._events[E]=S,p._eventsCount++),p}function u(p,d){--p._eventsCount===0?p._events=new i:delete p._events[d]}function f(){this._events=new i,this._eventsCount=0}f.prototype.eventNames=function(){var d=[],m,g;if(this._eventsCount===0)return d;for(g in m=this._events)t.call(m,g)&&d.push(n?g.slice(1):g);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(m)):d},f.prototype.listeners=function(d){var m=n?n+d:d,g=this._events[m];if(!g)return[];if(g.fn)return[g.fn];for(var _=0,S=g.length,E=new Array(S);_<S;_++)E[_]=g[_].fn;return E},f.prototype.listenerCount=function(d){var m=n?n+d:d,g=this._events[m];return g?g.fn?1:g.length:0},f.prototype.emit=function(d,m,g,_,S,E){var R=n?n+d:d;if(!this._events[R])return!1;var b=this._events[R],A=arguments.length,C,O;if(b.fn){switch(b.once&&this.removeListener(d,b.fn,void 0,!0),A){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,m),!0;case 3:return b.fn.call(b.context,m,g),!0;case 4:return b.fn.call(b.context,m,g,_),!0;case 5:return b.fn.call(b.context,m,g,_,S),!0;case 6:return b.fn.call(b.context,m,g,_,S,E),!0}for(O=1,C=new Array(A-1);O<A;O++)C[O-1]=arguments[O];b.fn.apply(b.context,C)}else{var M=b.length,T;for(O=0;O<M;O++)switch(b[O].once&&this.removeListener(d,b[O].fn,void 0,!0),A){case 1:b[O].fn.call(b[O].context);break;case 2:b[O].fn.call(b[O].context,m);break;case 3:b[O].fn.call(b[O].context,m,g);break;case 4:b[O].fn.call(b[O].context,m,g,_);break;default:if(!C)for(T=1,C=new Array(A-1);T<A;T++)C[T-1]=arguments[T];b[O].fn.apply(b[O].context,C)}}return!0},f.prototype.on=function(d,m,g){return l(this,d,m,g,!1)},f.prototype.once=function(d,m,g){return l(this,d,m,g,!0)},f.prototype.removeListener=function(d,m,g,_){var S=n?n+d:d;if(!this._events[S])return this;if(!m)return u(this,S),this;var E=this._events[S];if(E.fn)E.fn===m&&(!_||E.once)&&(!g||E.context===g)&&u(this,S);else{for(var R=0,b=[],A=E.length;R<A;R++)(E[R].fn!==m||_&&!E[R].once||g&&E[R].context!==g)&&b.push(E[R]);b.length?this._events[S]=b.length===1?b[0]:b:u(this,S)}return this},f.prototype.removeAllListeners=function(d){var m;return d?(m=n?n+d:d,this._events[m]&&u(this,m)):(this._events=new i,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=n,f.EventEmitter=f,e.exports=f}(eventemitter3)),eventemitter3.exports}var eventemitter3Exports=requireEventemitter3();const EventEmitter=getDefaultExportFromCjs(eventemitter3Exports);var eventCenter=new EventEmitter,SYNC_EVENT="recharts.syncMouseEvents";function _typeof$2(e){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(e)}function _classCallCheck$1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey$2(i.key),i)}}function _createClass$1(e,t,n){return t&&_defineProperties$1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty$2(e,t,n){return t=_toPropertyKey$2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$2(e){var t=_toPrimitive$2(e,"string");return _typeof$2(t)=="symbol"?t:t+""}function _toPrimitive$2(e,t){if(_typeof$2(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$2(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var AccessibilityManager=function(){function e(){_classCallCheck$1(this,e),_defineProperty$2(this,"activeIndex",0),_defineProperty$2(this,"coordinateList",[]),_defineProperty$2(this,"layout","horizontal")}return _createClass$1(e,[{key:"setDetails",value:function(n){var i,o=n.coordinateList,l=o===void 0?null:o,u=n.container,f=u===void 0?null:u,p=n.layout,d=p===void 0?null:p,m=n.offset,g=m===void 0?null:m,_=n.mouseHandlerCallback,S=_===void 0?null:_;this.coordinateList=(i=l??this.coordinateList)!==null&&i!==void 0?i:[],this.container=f??this.container,this.layout=d??this.layout,this.offset=g??this.offset,this.mouseHandlerCallback=S??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,i;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var o=this.container.getBoundingClientRect(),l=o.x,u=o.y,f=o.height,p=this.coordinateList[this.activeIndex].coordinate,d=((n=window)===null||n===void 0?void 0:n.scrollX)||0,m=((i=window)===null||i===void 0?void 0:i.scrollY)||0,g=l+p+d,_=u+this.offset.top+f/2+m;this.mouseHandlerCallback({pageX:g,pageY:_})}}}])}();function isDomainSpecifiedByUser(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var i=e==null?void 0:e[0],o=e==null?void 0:e[1];if(i&&o&&isNumber(i)&&isNumber(o))return!0}return!1}function getCursorRectangle(e,t,n,i){var o=i/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-o,width:e==="horizontal"?i:n.width-1,height:e==="horizontal"?n.height-1:i}}function getRadialCursorPoints(e){var t=e.cx,n=e.cy,i=e.radius,o=e.startAngle,l=e.endAngle,u=polarToCartesian(t,n,i,o),f=polarToCartesian(t,n,i,l);return{points:[u,f],cx:t,cy:n,radius:i,startAngle:o,endAngle:l}}function getCursorPoints(e,t,n){var i,o,l,u;if(e==="horizontal")i=t.x,l=i,o=n.top,u=n.top+n.height;else if(e==="vertical")o=t.y,u=o,i=n.left,l=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var f=t.cx,p=t.cy,d=t.innerRadius,m=t.outerRadius,g=t.angle,_=polarToCartesian(f,p,d,g),S=polarToCartesian(f,p,m,g);i=_.x,o=_.y,l=S.x,u=S.y}else return getRadialCursorPoints(t);return[{x:i,y:o},{x:l,y:u}]}function _typeof$1(e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(e)}function ownKeys$1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread$1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys$1(Object(n),!0).forEach(function(i){_defineProperty$1(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$1(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty$1(e,t,n){return t=_toPropertyKey$1(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey$1(e){var t=_toPrimitive$1(e,"string");return _typeof$1(t)=="symbol"?t:t+""}function _toPrimitive$1(e,t){if(_typeof$1(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof$1(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cursor(e){var t,n,i=e.element,o=e.tooltipEventType,l=e.isActive,u=e.activeCoordinate,f=e.activePayload,p=e.offset,d=e.activeTooltipIndex,m=e.tooltipAxisBandSize,g=e.layout,_=e.chartName,S=(t=i.props.cursor)!==null&&t!==void 0?t:(n=i.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!i||!S||!l||!u||_!=="ScatterChart"&&o!=="axis")return null;var E,R=Curve;if(_==="ScatterChart")E=u,R=Cross;else if(_==="BarChart")E=getCursorRectangle(g,u,p,m),R=Rectangle;else if(g==="radial"){var b=getRadialCursorPoints(u),A=b.cx,C=b.cy,O=b.radius,M=b.startAngle,T=b.endAngle;E={cx:A,cy:C,startAngle:M,endAngle:T,innerRadius:O,outerRadius:O},R=Sector}else E={points:getCursorPoints(g,u,p)},R=Curve;var j=_objectSpread$1(_objectSpread$1(_objectSpread$1(_objectSpread$1({stroke:"#ccc",pointerEvents:"none"},p),E),filterProps(S,!1)),{},{payload:f,payloadIndex:d,className:clsx("recharts-tooltip-cursor",S.className)});return React.isValidElement(S)?React.cloneElement(S,j):React.createElement(R,j)}var _excluded=["item"],_excluded2=["children","className","width","height","style","compact","title","desc"];function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(e)}function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends.apply(this,arguments)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
287
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,l,u,f=[],p=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(p=(i=l.call(n)).done)&&(f.push(i.value),f.length!==t);p=!0);}catch(m){d=!0,o=m}finally{try{if(!p&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(d)throw o}}return f}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectWithoutProperties(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose(e,t),i,o;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)i=l[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _possibleConstructorReturn(e,t){if(t&&(_typeof(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf(e)}function _inherits(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},_setPrototypeOf(e,t)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
288
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}}function _iterableToArray(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(i){_defineProperty(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _defineProperty(e,t,n){return t=_toPropertyKey(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return _typeof(t)=="symbol"?t:t+""}function _toPrimitive(e,t){if(_typeof(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(_typeof(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ORIENT_MAP={xAxis:["bottom","top"],yAxis:["left","right"]},FULL_WIDTH_AND_HEIGHT={width:"100%",height:"100%"},originCoordinate={x:0,y:0};function renderAsIs(e){return e}var calculateTooltipPos=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},getActiveCoordinate=function(t,n,i,o){var l=n.find(function(m){return m&&m.index===i});if(l){if(t==="horizontal")return{x:l.coordinate,y:o.y};if(t==="vertical")return{x:o.x,y:l.coordinate};if(t==="centric"){var u=l.coordinate,f=o.radius;return _objectSpread(_objectSpread(_objectSpread({},o),polarToCartesian(o.cx,o.cy,f,u)),{},{angle:u,radius:f})}var p=l.coordinate,d=o.angle;return _objectSpread(_objectSpread(_objectSpread({},o),polarToCartesian(o.cx,o.cy,p,d)),{},{angle:d,radius:p})}return originCoordinate},getDisplayedData=function(t,n){var i=n.graphicalItems,o=n.dataStartIndex,l=n.dataEndIndex,u=(i??[]).reduce(function(f,p){var d=p.props.data;return d&&d.length?[].concat(_toConsumableArray(f),_toConsumableArray(d)):f},[]);return u.length>0?u:t&&t.length&&isNumber(o)&&isNumber(l)?t.slice(o,l+1):[]};function getDefaultDomainByAxisType(e){return e==="number"?[0,"auto"]:void 0}var getTooltipContent=function(t,n,i,o){var l=t.graphicalItems,u=t.tooltipAxis,f=getDisplayedData(n,t);return i<0||!l||!l.length||i>=f.length?null:l.reduce(function(p,d){var m,g=(m=d.props.data)!==null&&m!==void 0?m:n;g&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=i&&(g=g.slice(t.dataStartIndex,t.dataEndIndex+1));var _;if(u.dataKey&&!u.allowDuplicatedCategory){var S=g===void 0?f:g;_=findEntryInArray(S,u.dataKey,o)}else _=g&&g[i]||f[i];return _?[].concat(_toConsumableArray(p),[getTooltipItem(d,_)]):p},[])},getTooltipData=function(t,n,i,o){var l=o||{x:t.chartX,y:t.chartY},u=calculateTooltipPos(l,i),f=t.orderedTooltipTicks,p=t.tooltipAxis,d=t.tooltipTicks,m=calculateActiveTickIndex(u,f,d,p);if(m>=0&&d){var g=d[m]&&d[m].value,_=getTooltipContent(t,n,m,g),S=getActiveCoordinate(i,f,m,l);return{activeTooltipIndex:m,activeLabel:g,activePayload:_,activeCoordinate:S}}return null},getAxisMapByAxes=function(t,n){var i=n.axes,o=n.graphicalItems,l=n.axisType,u=n.axisIdKey,f=n.stackGroups,p=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,g=t.children,_=t.stackOffset,S=isCategoricalAxis(m,l);return i.reduce(function(E,R){var b,A=R.type.defaultProps!==void 0?_objectSpread(_objectSpread({},R.type.defaultProps),R.props):R.props,C=A.type,O=A.dataKey,M=A.allowDataOverflow,T=A.allowDuplicatedCategory,j=A.scale,I=A.ticks,D=A.includeHidden,L=A[u];if(E[L])return E;var F=getDisplayedData(t.data,{graphicalItems:o.filter(function(ee){var ne,ie=u in ee.props?ee.props[u]:(ne=ee.type.defaultProps)===null||ne===void 0?void 0:ne[u];return ie===L}),dataStartIndex:p,dataEndIndex:d}),N=F.length,B,z,V;isDomainSpecifiedByUser(A.domain,M,C)&&(B=parseSpecifiedDomain(A.domain,null,M),S&&(C==="number"||j!=="auto")&&(V=getDomainOfDataByKey(F,O,"category")));var W=getDefaultDomainByAxisType(C);if(!B||B.length===0){var U,Q=(U=A.domain)!==null&&U!==void 0?U:W;if(O){if(B=getDomainOfDataByKey(F,O,C),C==="category"&&S){var q=hasDuplicate(B);T&&q?(z=B,B=range(0,N)):T||(B=parseDomainOfCategoryAxis(Q,B,R).reduce(function(ee,ne){return ee.indexOf(ne)>=0?ee:[].concat(_toConsumableArray(ee),[ne])},[]))}else if(C==="category")T?B=B.filter(function(ee){return ee!==""&&!isNil(ee)}):B=parseDomainOfCategoryAxis(Q,B,R).reduce(function(ee,ne){return ee.indexOf(ne)>=0||ne===""||isNil(ne)?ee:[].concat(_toConsumableArray(ee),[ne])},[]);else if(C==="number"){var G=parseErrorBarsOfAxis(F,o.filter(function(ee){var ne,ie,oe=u in ee.props?ee.props[u]:(ne=ee.type.defaultProps)===null||ne===void 0?void 0:ne[u],ce="hide"in ee.props?ee.props.hide:(ie=ee.type.defaultProps)===null||ie===void 0?void 0:ie.hide;return oe===L&&(D||!ce)}),O,l,m);G&&(B=G)}S&&(C==="number"||j!=="auto")&&(V=getDomainOfDataByKey(F,O,"category"))}else S?B=range(0,N):f&&f[L]&&f[L].hasStack&&C==="number"?B=_==="expand"?[0,1]:getDomainOfStackGroups(f[L].stackGroups,p,d):B=getDomainOfItemsWithSameAxis(F,o.filter(function(ee){var ne=u in ee.props?ee.props[u]:ee.type.defaultProps[u],ie="hide"in ee.props?ee.props.hide:ee.type.defaultProps.hide;return ne===L&&(D||!ie)}),C,m,!0);if(C==="number")B=detectReferenceElementsDomain(g,B,L,l,I),Q&&(B=parseSpecifiedDomain(Q,B,M));else if(C==="category"&&Q){var H=Q,Z=B.every(function(ee){return H.indexOf(ee)>=0});Z&&(B=H)}}return _objectSpread(_objectSpread({},E),{},_defineProperty({},L,_objectSpread(_objectSpread({},A),{},{axisType:l,domain:B,categoricalDomain:V,duplicateDomain:z,originalDomain:(b=A.domain)!==null&&b!==void 0?b:W,isCategorical:S,layout:m})))},{})},getAxisMapByItems=function(t,n){var i=n.graphicalItems,o=n.Axis,l=n.axisType,u=n.axisIdKey,f=n.stackGroups,p=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,g=t.children,_=getDisplayedData(t.data,{graphicalItems:i,dataStartIndex:p,dataEndIndex:d}),S=_.length,E=isCategoricalAxis(m,l),R=-1;return i.reduce(function(b,A){var C=A.type.defaultProps!==void 0?_objectSpread(_objectSpread({},A.type.defaultProps),A.props):A.props,O=C[u],M=getDefaultDomainByAxisType("number");if(!b[O]){R++;var T;return E?T=range(0,S):f&&f[O]&&f[O].hasStack?(T=getDomainOfStackGroups(f[O].stackGroups,p,d),T=detectReferenceElementsDomain(g,T,O,l)):(T=parseSpecifiedDomain(M,getDomainOfItemsWithSameAxis(_,i.filter(function(j){var I,D,L=u in j.props?j.props[u]:(I=j.type.defaultProps)===null||I===void 0?void 0:I[u],F="hide"in j.props?j.props.hide:(D=j.type.defaultProps)===null||D===void 0?void 0:D.hide;return L===O&&!F}),"number",m),o.defaultProps.allowDataOverflow),T=detectReferenceElementsDomain(g,T,O,l)),_objectSpread(_objectSpread({},b),{},_defineProperty({},O,_objectSpread(_objectSpread({axisType:l},o.defaultProps),{},{hide:!0,orientation:get(ORIENT_MAP,"".concat(l,".").concat(R%2),null),domain:T,originalDomain:M,isCategorical:E,layout:m})))}return b},{})},getAxisMap=function(t,n){var i=n.axisType,o=i===void 0?"xAxis":i,l=n.AxisComp,u=n.graphicalItems,f=n.stackGroups,p=n.dataStartIndex,d=n.dataEndIndex,m=t.children,g="".concat(o,"Id"),_=findAllByType(m,l),S={};return _&&_.length?S=getAxisMapByAxes(t,{axes:_,graphicalItems:u,axisType:o,axisIdKey:g,stackGroups:f,dataStartIndex:p,dataEndIndex:d}):u&&u.length&&(S=getAxisMapByItems(t,{Axis:l,graphicalItems:u,axisType:o,axisIdKey:g,stackGroups:f,dataStartIndex:p,dataEndIndex:d})),S},tooltipTicksGenerator=function(t){var n=getAnyElementOfObject(t),i=getTicksOfAxis(n,!1,!0);return{tooltipTicks:i,orderedTooltipTicks:sortBy(i,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:getBandSizeOfAxis(n,i)}},createDefaultState=function(t){var n=t.children,i=t.defaultShowTooltip,o=findChildByType(n,Brush),l=0,u=0;return t.data&&t.data.length!==0&&(u=t.data.length-1),o&&o.props&&(o.props.startIndex>=0&&(l=o.props.startIndex),o.props.endIndex>=0&&(u=o.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:l,dataEndIndex:u,activeTooltipIndex:-1,isTooltipActive:!!i}},hasGraphicalBarItem=function(t){return!t||!t.length?!1:t.some(function(n){var i=getDisplayName(n&&n.type);return i&&i.indexOf("Bar")>=0})},getAxisNameByLayout=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},calculateOffset=function(t,n){var i=t.props,o=t.graphicalItems,l=t.xAxisMap,u=l===void 0?{}:l,f=t.yAxisMap,p=f===void 0?{}:f,d=i.width,m=i.height,g=i.children,_=i.margin||{},S=findChildByType(g,Brush),E=findChildByType(g,Legend),R=Object.keys(p).reduce(function(T,j){var I=p[j],D=I.orientation;return!I.mirror&&!I.hide?_objectSpread(_objectSpread({},T),{},_defineProperty({},D,T[D]+I.width)):T},{left:_.left||0,right:_.right||0}),b=Object.keys(u).reduce(function(T,j){var I=u[j],D=I.orientation;return!I.mirror&&!I.hide?_objectSpread(_objectSpread({},T),{},_defineProperty({},D,get(T,"".concat(D))+I.height)):T},{top:_.top||0,bottom:_.bottom||0}),A=_objectSpread(_objectSpread({},b),R),C=A.bottom;S&&(A.bottom+=S.props.height||Brush.defaultProps.height),E&&n&&(A=appendOffsetOfLegend(A,o,i,n));var O=d-A.left-A.right,M=m-A.top-A.bottom;return _objectSpread(_objectSpread({brushBottom:C},A),{},{width:Math.max(O,0),height:Math.max(M,0)})},getCartesianAxisSize=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},generateCategoricalChart=function(t){var n=t.chartName,i=t.GraphicalChild,o=t.defaultTooltipEventType,l=o===void 0?"axis":o,u=t.validateTooltipEventTypes,f=u===void 0?["axis"]:u,p=t.axisComponents,d=t.legendContent,m=t.formatAxisMap,g=t.defaultProps,_=function(A,C){var O=C.graphicalItems,M=C.stackGroups,T=C.offset,j=C.updateId,I=C.dataStartIndex,D=C.dataEndIndex,L=A.barSize,F=A.layout,N=A.barGap,B=A.barCategoryGap,z=A.maxBarSize,V=getAxisNameByLayout(F),W=V.numericAxisName,U=V.cateAxisName,Q=hasGraphicalBarItem(O),q=[];return O.forEach(function(G,H){var Z=getDisplayedData(A.data,{graphicalItems:[G],dataStartIndex:I,dataEndIndex:D}),ee=G.type.defaultProps!==void 0?_objectSpread(_objectSpread({},G.type.defaultProps),G.props):G.props,ne=ee.dataKey,ie=ee.maxBarSize,oe=ee["".concat(W,"Id")],ce=ee["".concat(U,"Id")],le={},ue=p.reduce(function(Se,ve){var _e,xe,be=C["".concat(ve.axisType,"Map")],Pe=ee["".concat(ve.axisType,"Id")];be&&be[Pe]||ve.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?invariant(!1,"Specifying a(n) ".concat(ve.axisType,"Id requires a corresponding ").concat(ve.axisType,"Id on the targeted graphical component ").concat((_e=G==null||(xe=G.type)===null||xe===void 0?void 0:xe.displayName)!==null&&_e!==void 0?_e:"")):invariant());var we=be[Pe];return _objectSpread(_objectSpread({},Se),{},_defineProperty(_defineProperty({},ve.axisType,we),"".concat(ve.axisType,"Ticks"),getTicksOfAxis(we)))},le),te=ue[U],se=ue["".concat(U,"Ticks")],ae=M&&M[oe]&&M[oe].hasStack&&getStackedDataOfItem(G,M[oe].stackGroups),K=getDisplayName(G.type).indexOf("Bar")>=0,pe=getBandSizeOfAxis(te,se),J=[],fe=Q&&getBarSizeList({barSize:L,stackGroups:M,totalSize:getCartesianAxisSize(ue,U)});if(K){var de,me,ye=isNil(ie)?z:ie,he=(de=(me=getBandSizeOfAxis(te,se,!0))!==null&&me!==void 0?me:ye)!==null&&de!==void 0?de:0;J=getBarPosition({barGap:N,barCategoryGap:B,bandSize:he!==pe?he:pe,sizeList:fe[ce],maxBarSize:ye}),he!==pe&&(J=J.map(function(Se){return _objectSpread(_objectSpread({},Se),{},{position:_objectSpread(_objectSpread({},Se.position),{},{offset:Se.position.offset-he/2})})}))}var ge=G&&G.type&&G.type.getComposedData;ge&&q.push({props:_objectSpread(_objectSpread({},ge(_objectSpread(_objectSpread({},ue),{},{displayedData:Z,props:A,dataKey:ne,item:G,bandSize:pe,barPosition:J,offset:T,stackedData:ae,layout:F,dataStartIndex:I,dataEndIndex:D}))),{},_defineProperty(_defineProperty(_defineProperty({key:G.key||"item-".concat(H)},W,ue[W]),U,ue[U]),"animationId",j)),childIndex:parseChildIndex(G,A.children),item:G})}),q},S=function(A,C){var O=A.props,M=A.dataStartIndex,T=A.dataEndIndex,j=A.updateId;if(!validateWidthHeight({props:O}))return null;var I=O.children,D=O.layout,L=O.stackOffset,F=O.data,N=O.reverseStackOrder,B=getAxisNameByLayout(D),z=B.numericAxisName,V=B.cateAxisName,W=findAllByType(I,i),U=getStackGroupsByAxisId(F,W,"".concat(z,"Id"),"".concat(V,"Id"),L,N),Q=p.reduce(function(ee,ne){var ie="".concat(ne.axisType,"Map");return _objectSpread(_objectSpread({},ee),{},_defineProperty({},ie,getAxisMap(O,_objectSpread(_objectSpread({},ne),{},{graphicalItems:W,stackGroups:ne.axisType===z&&U,dataStartIndex:M,dataEndIndex:T}))))},{}),q=calculateOffset(_objectSpread(_objectSpread({},Q),{},{props:O,graphicalItems:W}),C==null?void 0:C.legendBBox);Object.keys(Q).forEach(function(ee){Q[ee]=m(O,Q[ee],q,ee.replace("Map",""),n)});var G=Q["".concat(V,"Map")],H=tooltipTicksGenerator(G),Z=_(O,_objectSpread(_objectSpread({},Q),{},{dataStartIndex:M,dataEndIndex:T,updateId:j,graphicalItems:W,stackGroups:U,offset:q}));return _objectSpread(_objectSpread({formattedGraphicalItems:Z,graphicalItems:W,offset:q,stackGroups:U},H),Q)},E=function(b){function A(C){var O,M,T;return _classCallCheck(this,A),T=_callSuper(this,A,[C]),_defineProperty(T,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),_defineProperty(T,"accessibilityManager",new AccessibilityManager),_defineProperty(T,"handleLegendBBoxUpdate",function(j){if(j){var I=T.state,D=I.dataStartIndex,L=I.dataEndIndex,F=I.updateId;T.setState(_objectSpread({legendBBox:j},S({props:T.props,dataStartIndex:D,dataEndIndex:L,updateId:F},_objectSpread(_objectSpread({},T.state),{},{legendBBox:j}))))}}),_defineProperty(T,"handleReceiveSyncEvent",function(j,I,D){if(T.props.syncId===j){if(D===T.eventEmitterSymbol&&typeof T.props.syncMethod!="function")return;T.applySyncEvent(I)}}),_defineProperty(T,"handleBrushChange",function(j){var I=j.startIndex,D=j.endIndex;if(I!==T.state.dataStartIndex||D!==T.state.dataEndIndex){var L=T.state.updateId;T.setState(function(){return _objectSpread({dataStartIndex:I,dataEndIndex:D},S({props:T.props,dataStartIndex:I,dataEndIndex:D,updateId:L},T.state))}),T.triggerSyncEvent({dataStartIndex:I,dataEndIndex:D})}}),_defineProperty(T,"handleMouseEnter",function(j){var I=T.getMouseInfo(j);if(I){var D=_objectSpread(_objectSpread({},I),{},{isTooltipActive:!0});T.setState(D),T.triggerSyncEvent(D);var L=T.props.onMouseEnter;isFunction(L)&&L(D,j)}}),_defineProperty(T,"triggeredAfterMouseMove",function(j){var I=T.getMouseInfo(j),D=I?_objectSpread(_objectSpread({},I),{},{isTooltipActive:!0}):{isTooltipActive:!1};T.setState(D),T.triggerSyncEvent(D);var L=T.props.onMouseMove;isFunction(L)&&L(D,j)}),_defineProperty(T,"handleItemMouseEnter",function(j){T.setState(function(){return{isTooltipActive:!0,activeItem:j,activePayload:j.tooltipPayload,activeCoordinate:j.tooltipPosition||{x:j.cx,y:j.cy}}})}),_defineProperty(T,"handleItemMouseLeave",function(){T.setState(function(){return{isTooltipActive:!1}})}),_defineProperty(T,"handleMouseMove",function(j){j.persist(),T.throttleTriggeredAfterMouseMove(j)}),_defineProperty(T,"handleMouseLeave",function(j){T.throttleTriggeredAfterMouseMove.cancel();var I={isTooltipActive:!1};T.setState(I),T.triggerSyncEvent(I);var D=T.props.onMouseLeave;isFunction(D)&&D(I,j)}),_defineProperty(T,"handleOuterEvent",function(j){var I=getReactEventByType(j),D=get(T.props,"".concat(I));if(I&&isFunction(D)){var L,F;/.*touch.*/i.test(I)?F=T.getMouseInfo(j.changedTouches[0]):F=T.getMouseInfo(j),D((L=F)!==null&&L!==void 0?L:{},j)}}),_defineProperty(T,"handleClick",function(j){var I=T.getMouseInfo(j);if(I){var D=_objectSpread(_objectSpread({},I),{},{isTooltipActive:!0});T.setState(D),T.triggerSyncEvent(D);var L=T.props.onClick;isFunction(L)&&L(D,j)}}),_defineProperty(T,"handleMouseDown",function(j){var I=T.props.onMouseDown;if(isFunction(I)){var D=T.getMouseInfo(j);I(D,j)}}),_defineProperty(T,"handleMouseUp",function(j){var I=T.props.onMouseUp;if(isFunction(I)){var D=T.getMouseInfo(j);I(D,j)}}),_defineProperty(T,"handleTouchMove",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&T.throttleTriggeredAfterMouseMove(j.changedTouches[0])}),_defineProperty(T,"handleTouchStart",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&T.handleMouseDown(j.changedTouches[0])}),_defineProperty(T,"handleTouchEnd",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&T.handleMouseUp(j.changedTouches[0])}),_defineProperty(T,"handleDoubleClick",function(j){var I=T.props.onDoubleClick;if(isFunction(I)){var D=T.getMouseInfo(j);I(D,j)}}),_defineProperty(T,"handleContextMenu",function(j){var I=T.props.onContextMenu;if(isFunction(I)){var D=T.getMouseInfo(j);I(D,j)}}),_defineProperty(T,"triggerSyncEvent",function(j){T.props.syncId!==void 0&&eventCenter.emit(SYNC_EVENT,T.props.syncId,j,T.eventEmitterSymbol)}),_defineProperty(T,"applySyncEvent",function(j){var I=T.props,D=I.layout,L=I.syncMethod,F=T.state.updateId,N=j.dataStartIndex,B=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)T.setState(_objectSpread({dataStartIndex:N,dataEndIndex:B},S({props:T.props,dataStartIndex:N,dataEndIndex:B,updateId:F},T.state)));else if(j.activeTooltipIndex!==void 0){var z=j.chartX,V=j.chartY,W=j.activeTooltipIndex,U=T.state,Q=U.offset,q=U.tooltipTicks;if(!Q)return;if(typeof L=="function")W=L(q,j);else if(L==="value"){W=-1;for(var G=0;G<q.length;G++)if(q[G].value===j.activeLabel){W=G;break}}var H=_objectSpread(_objectSpread({},Q),{},{x:Q.left,y:Q.top}),Z=Math.min(z,H.x+H.width),ee=Math.min(V,H.y+H.height),ne=q[W]&&q[W].value,ie=getTooltipContent(T.state,T.props.data,W),oe=q[W]?{x:D==="horizontal"?q[W].coordinate:Z,y:D==="horizontal"?ee:q[W].coordinate}:originCoordinate;T.setState(_objectSpread(_objectSpread({},j),{},{activeLabel:ne,activeCoordinate:oe,activePayload:ie,activeTooltipIndex:W}))}else T.setState(j)}),_defineProperty(T,"renderCursor",function(j){var I,D=T.state,L=D.isTooltipActive,F=D.activeCoordinate,N=D.activePayload,B=D.offset,z=D.activeTooltipIndex,V=D.tooltipAxisBandSize,W=T.getTooltipEventType(),U=(I=j.props.active)!==null&&I!==void 0?I:L,Q=T.props.layout,q=j.key||"_recharts-cursor";return React.createElement(Cursor,{key:q,activeCoordinate:F,activePayload:N,activeTooltipIndex:z,chartName:n,element:j,isActive:U,layout:Q,offset:B,tooltipAxisBandSize:V,tooltipEventType:W})}),_defineProperty(T,"renderPolarAxis",function(j,I,D){var L=get(j,"type.axisType"),F=get(T.state,"".concat(L,"Map")),N=j.type.defaultProps,B=N!==void 0?_objectSpread(_objectSpread({},N),j.props):j.props,z=F&&F[B["".concat(L,"Id")]];return React.cloneElement(j,_objectSpread(_objectSpread({},z),{},{className:clsx(L,z.className),key:j.key||"".concat(I,"-").concat(D),ticks:getTicksOfAxis(z,!0)}))}),_defineProperty(T,"renderPolarGrid",function(j){var I=j.props,D=I.radialLines,L=I.polarAngles,F=I.polarRadius,N=T.state,B=N.radiusAxisMap,z=N.angleAxisMap,V=getAnyElementOfObject(B),W=getAnyElementOfObject(z),U=W.cx,Q=W.cy,q=W.innerRadius,G=W.outerRadius;return React.cloneElement(j,{polarAngles:Array.isArray(L)?L:getTicksOfAxis(W,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray(F)?F:getTicksOfAxis(V,!0).map(function(H){return H.coordinate}),cx:U,cy:Q,innerRadius:q,outerRadius:G,key:j.key||"polar-grid",radialLines:D})}),_defineProperty(T,"renderLegend",function(){var j=T.state.formattedGraphicalItems,I=T.props,D=I.children,L=I.width,F=I.height,N=T.props.margin||{},B=L-(N.left||0)-(N.right||0),z=getLegendProps({children:D,formattedGraphicalItems:j,legendWidth:B,legendContent:d});if(!z)return null;var V=z.item,W=_objectWithoutProperties(z,_excluded);return React.cloneElement(V,_objectSpread(_objectSpread({},W),{},{chartWidth:L,chartHeight:F,margin:N,onBBoxUpdate:T.handleLegendBBoxUpdate}))}),_defineProperty(T,"renderTooltip",function(){var j,I=T.props,D=I.children,L=I.accessibilityLayer,F=findChildByType(D,Tooltip);if(!F)return null;var N=T.state,B=N.isTooltipActive,z=N.activeCoordinate,V=N.activePayload,W=N.activeLabel,U=N.offset,Q=(j=F.props.active)!==null&&j!==void 0?j:B;return React.cloneElement(F,{viewBox:_objectSpread(_objectSpread({},U),{},{x:U.left,y:U.top}),active:Q,label:W,payload:Q?V:[],coordinate:z,accessibilityLayer:L})}),_defineProperty(T,"renderBrush",function(j){var I=T.props,D=I.margin,L=I.data,F=T.state,N=F.offset,B=F.dataStartIndex,z=F.dataEndIndex,V=F.updateId;return React.cloneElement(j,{key:j.key||"_recharts-brush",onChange:combineEventHandlers(T.handleBrushChange,j.props.onChange),data:L,x:isNumber(j.props.x)?j.props.x:N.left,y:isNumber(j.props.y)?j.props.y:N.top+N.height+N.brushBottom-(D.bottom||0),width:isNumber(j.props.width)?j.props.width:N.width,startIndex:B,endIndex:z,updateId:"brush-".concat(V)})}),_defineProperty(T,"renderReferenceElement",function(j,I,D){if(!j)return null;var L=T,F=L.clipPathId,N=T.state,B=N.xAxisMap,z=N.yAxisMap,V=N.offset,W=j.type.defaultProps||{},U=j.props,Q=U.xAxisId,q=Q===void 0?W.xAxisId:Q,G=U.yAxisId,H=G===void 0?W.yAxisId:G;return React.cloneElement(j,{key:j.key||"".concat(I,"-").concat(D),xAxis:B[q],yAxis:z[H],viewBox:{x:V.left,y:V.top,width:V.width,height:V.height},clipPathId:F})}),_defineProperty(T,"renderActivePoints",function(j){var I=j.item,D=j.activePoint,L=j.basePoint,F=j.childIndex,N=j.isRange,B=[],z=I.props.key,V=I.item.type.defaultProps!==void 0?_objectSpread(_objectSpread({},I.item.type.defaultProps),I.item.props):I.item.props,W=V.activeDot,U=V.dataKey,Q=_objectSpread(_objectSpread({index:F,dataKey:U,cx:D.x,cy:D.y,r:4,fill:getMainColorOfGraphicItem(I.item),strokeWidth:2,stroke:"#fff",payload:D.payload,value:D.value},filterProps(W,!1)),adaptEventHandlers(W));return B.push(A.renderActiveDot(W,Q,"".concat(z,"-activePoint-").concat(F))),L?B.push(A.renderActiveDot(W,_objectSpread(_objectSpread({},Q),{},{cx:L.x,cy:L.y}),"".concat(z,"-basePoint-").concat(F))):N&&B.push(null),B}),_defineProperty(T,"renderGraphicChild",function(j,I,D){var L=T.filterFormatItem(j,I,D);if(!L)return null;var F=T.getTooltipEventType(),N=T.state,B=N.isTooltipActive,z=N.tooltipAxis,V=N.activeTooltipIndex,W=N.activeLabel,U=T.props.children,Q=findChildByType(U,Tooltip),q=L.props,G=q.points,H=q.isRange,Z=q.baseLine,ee=L.item.type.defaultProps!==void 0?_objectSpread(_objectSpread({},L.item.type.defaultProps),L.item.props):L.item.props,ne=ee.activeDot,ie=ee.hide,oe=ee.activeBar,ce=ee.activeShape,le=!!(!ie&&B&&Q&&(ne||oe||ce)),ue={};F!=="axis"&&Q&&Q.props.trigger==="click"?ue={onClick:combineEventHandlers(T.handleItemMouseEnter,j.props.onClick)}:F!=="axis"&&(ue={onMouseLeave:combineEventHandlers(T.handleItemMouseLeave,j.props.onMouseLeave),onMouseEnter:combineEventHandlers(T.handleItemMouseEnter,j.props.onMouseEnter)});var te=React.cloneElement(j,_objectSpread(_objectSpread({},L.props),ue));function se(ve){return typeof z.dataKey=="function"?z.dataKey(ve.payload):null}if(le)if(V>=0){var ae,K;if(z.dataKey&&!z.allowDuplicatedCategory){var pe=typeof z.dataKey=="function"?se:"payload.".concat(z.dataKey.toString());ae=findEntryInArray(G,pe,W),K=H&&Z&&findEntryInArray(Z,pe,W)}else ae=G==null?void 0:G[V],K=H&&Z&&Z[V];if(ce||oe){var J=j.props.activeIndex!==void 0?j.props.activeIndex:V;return[React.cloneElement(j,_objectSpread(_objectSpread(_objectSpread({},L.props),ue),{},{activeIndex:J})),null,null]}if(!isNil(ae))return[te].concat(_toConsumableArray(T.renderActivePoints({item:L,activePoint:ae,basePoint:K,childIndex:V,isRange:H})))}else{var fe,de=(fe=T.getItemByXY(T.state.activeCoordinate))!==null&&fe!==void 0?fe:{graphicalItem:te},me=de.graphicalItem,ye=me.item,he=ye===void 0?j:ye,ge=me.childIndex,Se=_objectSpread(_objectSpread(_objectSpread({},L.props),ue),{},{activeIndex:ge});return[React.cloneElement(he,Se),null,null]}return H?[te,null,null]:[te,null]}),_defineProperty(T,"renderCustomized",function(j,I,D){return React.cloneElement(j,_objectSpread(_objectSpread({key:"recharts-customized-".concat(D)},T.props),T.state))}),_defineProperty(T,"renderMap",{CartesianGrid:{handler:renderAsIs,once:!0},ReferenceArea:{handler:T.renderReferenceElement},ReferenceLine:{handler:renderAsIs},ReferenceDot:{handler:T.renderReferenceElement},XAxis:{handler:renderAsIs},YAxis:{handler:renderAsIs},Brush:{handler:T.renderBrush,once:!0},Bar:{handler:T.renderGraphicChild},Line:{handler:T.renderGraphicChild},Area:{handler:T.renderGraphicChild},Radar:{handler:T.renderGraphicChild},RadialBar:{handler:T.renderGraphicChild},Scatter:{handler:T.renderGraphicChild},Pie:{handler:T.renderGraphicChild},Funnel:{handler:T.renderGraphicChild},Tooltip:{handler:T.renderCursor,once:!0},PolarGrid:{handler:T.renderPolarGrid,once:!0},PolarAngleAxis:{handler:T.renderPolarAxis},PolarRadiusAxis:{handler:T.renderPolarAxis},Customized:{handler:T.renderCustomized}}),T.clipPathId="".concat((O=C.id)!==null&&O!==void 0?O:uniqueId("recharts"),"-clip"),T.throttleTriggeredAfterMouseMove=throttle(T.triggeredAfterMouseMove,(M=C.throttleDelay)!==null&&M!==void 0?M:1e3/60),T.state={},T}return _inherits(A,b),_createClass(A,[{key:"componentDidMount",value:function(){var O,M;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(M=this.props.margin.top)!==null&&M!==void 0?M:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var O=this.props,M=O.children,T=O.data,j=O.height,I=O.layout,D=findChildByType(M,Tooltip);if(D){var L=D.props.defaultIndex;if(!(typeof L!="number"||L<0||L>this.state.tooltipTicks.length-1)){var F=this.state.tooltipTicks[L]&&this.state.tooltipTicks[L].value,N=getTooltipContent(this.state,T,L,F),B=this.state.tooltipTicks[L].coordinate,z=(this.state.offset.top+j)/2,V=I==="horizontal",W=V?{x:B,y:z}:{y:B,x:z},U=this.state.formattedGraphicalItems.find(function(q){var G=q.item;return G.type.name==="Scatter"});U&&(W=_objectSpread(_objectSpread({},W),U.props.points[L].tooltipPosition),N=U.props.points[L].tooltipPayload);var Q={activeTooltipIndex:L,isTooltipActive:!0,activeLabel:F,activePayload:N,activeCoordinate:W};this.setState(Q),this.renderCursor(D),this.accessibilityManager.setIndex(L)}}}},{key:"getSnapshotBeforeUpdate",value:function(O,M){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==M.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==O.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==O.margin){var T,j;this.accessibilityManager.setDetails({offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0}})}return null}},{key:"componentDidUpdate",value:function(O){isChildrenEqual([findChildByType(O.children,Tooltip)],[findChildByType(this.props.children,Tooltip)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var O=findChildByType(this.props.children,Tooltip);if(O&&typeof O.props.shared=="boolean"){var M=O.props.shared?"axis":"item";return f.indexOf(M)>=0?M:l}return l}},{key:"getMouseInfo",value:function(O){if(!this.container)return null;var M=this.container,T=M.getBoundingClientRect(),j=getOffset(T),I={chartX:Math.round(O.pageX-j.left),chartY:Math.round(O.pageY-j.top)},D=T.width/M.offsetWidth||1,L=this.inRange(I.chartX,I.chartY,D);if(!L)return null;var F=this.state,N=F.xAxisMap,B=F.yAxisMap,z=this.getTooltipEventType(),V=getTooltipData(this.state,this.props.data,this.props.layout,L);if(z!=="axis"&&N&&B){var W=getAnyElementOfObject(N).scale,U=getAnyElementOfObject(B).scale,Q=W&&W.invert?W.invert(I.chartX):null,q=U&&U.invert?U.invert(I.chartY):null;return _objectSpread(_objectSpread({},I),{},{xValue:Q,yValue:q},V)}return V?_objectSpread(_objectSpread({},I),V):null}},{key:"inRange",value:function(O,M){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,I=O/T,D=M/T;if(j==="horizontal"||j==="vertical"){var L=this.state.offset,F=I>=L.left&&I<=L.left+L.width&&D>=L.top&&D<=L.top+L.height;return F?{x:I,y:D}:null}var N=this.state,B=N.angleAxisMap,z=N.radiusAxisMap;if(B&&z){var V=getAnyElementOfObject(B);return inRangeOfSector({x:I,y:D},V)}return null}},{key:"parseEventsOfWrapper",value:function(){var O=this.props.children,M=this.getTooltipEventType(),T=findChildByType(O,Tooltip),j={};T&&M==="axis"&&(T.props.trigger==="click"?j={onClick:this.handleClick}:j={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var I=adaptEventHandlers(this.props,this.handleOuterEvent);return _objectSpread(_objectSpread({},I),j)}},{key:"addListener",value:function(){eventCenter.on(SYNC_EVENT,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){eventCenter.removeListener(SYNC_EVENT,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(O,M,T){for(var j=this.state.formattedGraphicalItems,I=0,D=j.length;I<D;I++){var L=j[I];if(L.item===O||L.props.key===O.key||M===getDisplayName(L.item.type)&&T===L.childIndex)return L}return null}},{key:"renderClipPath",value:function(){var O=this.clipPathId,M=this.state.offset,T=M.left,j=M.top,I=M.height,D=M.width;return React.createElement("defs",null,React.createElement("clipPath",{id:O},React.createElement("rect",{x:T,y:j,height:I,width:D})))}},{key:"getXScales",value:function(){var O=this.state.xAxisMap;return O?Object.entries(O).reduce(function(M,T){var j=_slicedToArray(T,2),I=j[0],D=j[1];return _objectSpread(_objectSpread({},M),{},_defineProperty({},I,D.scale))},{}):null}},{key:"getYScales",value:function(){var O=this.state.yAxisMap;return O?Object.entries(O).reduce(function(M,T){var j=_slicedToArray(T,2),I=j[0],D=j[1];return _objectSpread(_objectSpread({},M),{},_defineProperty({},I,D.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(O){var M;return(M=this.state.xAxisMap)===null||M===void 0||(M=M[O])===null||M===void 0?void 0:M.scale}},{key:"getYScaleByAxisId",value:function(O){var M;return(M=this.state.yAxisMap)===null||M===void 0||(M=M[O])===null||M===void 0?void 0:M.scale}},{key:"getItemByXY",value:function(O){var M=this.state,T=M.formattedGraphicalItems,j=M.activeItem;if(T&&T.length)for(var I=0,D=T.length;I<D;I++){var L=T[I],F=L.props,N=L.item,B=N.type.defaultProps!==void 0?_objectSpread(_objectSpread({},N.type.defaultProps),N.props):N.props,z=getDisplayName(N.type);if(z==="Bar"){var V=(F.data||[]).find(function(q){return isInRectangle(O,q)});if(V)return{graphicalItem:L,payload:V}}else if(z==="RadialBar"){var W=(F.data||[]).find(function(q){return inRangeOfSector(O,q)});if(W)return{graphicalItem:L,payload:W}}else if(isFunnel(L,j)||isPie(L,j)||isScatter(L,j)){var U=getActiveShapeIndexForTooltip({graphicalItem:L,activeTooltipItem:j,itemData:B.data}),Q=B.activeIndex===void 0?U:B.activeIndex;return{graphicalItem:_objectSpread(_objectSpread({},L),{},{childIndex:Q}),payload:isScatter(L,j)?B.data[U]:L.props.data[U]}}}return null}},{key:"render",value:function(){var O=this;if(!validateWidthHeight(this))return null;var M=this.props,T=M.children,j=M.className,I=M.width,D=M.height,L=M.style,F=M.compact,N=M.title,B=M.desc,z=_objectWithoutProperties(M,_excluded2),V=filterProps(z,!1);if(F)return React.createElement(ChartLayoutContextProvider,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},React.createElement(Surface,_extends({},V,{width:I,height:D,title:N,desc:B}),this.renderClipPath(),renderByOrder(T,this.renderMap)));if(this.props.accessibilityLayer){var W,U;V.tabIndex=(W=this.props.tabIndex)!==null&&W!==void 0?W:0,V.role=(U=this.props.role)!==null&&U!==void 0?U:"application",V.onKeyDown=function(q){O.accessibilityManager.keyboardEvent(q)},V.onFocus=function(){O.accessibilityManager.focus()}}var Q=this.parseEventsOfWrapper();return React.createElement(ChartLayoutContextProvider,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},React.createElement("div",_extends({className:clsx("recharts-wrapper",j),style:_objectSpread({position:"relative",cursor:"default",width:I,height:D},L)},Q,{ref:function(G){O.container=G}}),React.createElement(Surface,_extends({},V,{width:I,height:D,title:N,desc:B,style:FULL_WIDTH_AND_HEIGHT}),this.renderClipPath(),renderByOrder(T,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(React.Component);_defineProperty(E,"displayName",n),_defineProperty(E,"defaultProps",_objectSpread({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},g)),_defineProperty(E,"getDerivedStateFromProps",function(b,A){var C=b.dataKey,O=b.data,M=b.children,T=b.width,j=b.height,I=b.layout,D=b.stackOffset,L=b.margin,F=A.dataStartIndex,N=A.dataEndIndex;if(A.updateId===void 0){var B=createDefaultState(b);return _objectSpread(_objectSpread(_objectSpread({},B),{},{updateId:0},S(_objectSpread(_objectSpread({props:b},B),{},{updateId:0}),A)),{},{prevDataKey:C,prevData:O,prevWidth:T,prevHeight:j,prevLayout:I,prevStackOffset:D,prevMargin:L,prevChildren:M})}if(C!==A.prevDataKey||O!==A.prevData||T!==A.prevWidth||j!==A.prevHeight||I!==A.prevLayout||D!==A.prevStackOffset||!shallowEqual(L,A.prevMargin)){var z=createDefaultState(b),V={chartX:A.chartX,chartY:A.chartY,isTooltipActive:A.isTooltipActive},W=_objectSpread(_objectSpread({},getTooltipData(A,O,I)),{},{updateId:A.updateId+1}),U=_objectSpread(_objectSpread(_objectSpread({},z),V),W);return _objectSpread(_objectSpread(_objectSpread({},U),S(_objectSpread({props:b},U),A)),{},{prevDataKey:C,prevData:O,prevWidth:T,prevHeight:j,prevLayout:I,prevStackOffset:D,prevMargin:L,prevChildren:M})}if(!isChildrenEqual(M,A.prevChildren)){var Q,q,G,H,Z=findChildByType(M,Brush),ee=Z&&(Q=(q=Z.props)===null||q===void 0?void 0:q.startIndex)!==null&&Q!==void 0?Q:F,ne=Z&&(G=(H=Z.props)===null||H===void 0?void 0:H.endIndex)!==null&&G!==void 0?G:N,ie=ee!==F||ne!==N,oe=!isNil(O),ce=oe&&!ie?A.updateId:A.updateId+1;return _objectSpread(_objectSpread({updateId:ce},S(_objectSpread(_objectSpread({props:b},A),{},{updateId:ce,dataStartIndex:ee,dataEndIndex:ne}),A)),{},{prevChildren:M,dataStartIndex:ee,dataEndIndex:ne})}return null}),_defineProperty(E,"renderActiveDot",function(b,A,C){var O;return React.isValidElement(b)?O=React.cloneElement(b,A):isFunction(b)?O=b(A):O=React.createElement(Dot,A),React.createElement(Layer,{className:"recharts-active-dot",key:C},O)});var R=React.forwardRef(function(A,C){return React.createElement(E,_extends({},A,{ref:C}))});return R.displayName=E.displayName,R},AreaChart$1=generateCategoricalChart({chartName:"AreaChart",GraphicalChild:Area,axisComponents:[{axisType:"xAxis",AxisComp:XAxis},{axisType:"yAxis",AxisComp:YAxis}],formatAxisMap});function ChartTooltipContent({active:e,payload:t,label:n,units:i="",unitsPosition:o="right",className:l}){return!e||!(t!=null&&t.length)?null:jsxRuntime.jsxs("div",{className:cn("bg-background border border-border rounded-md p-3 shadow-md",l),children:[jsxRuntime.jsx("p",{className:"font-medium text-sm mb-2",children:n}),jsxRuntime.jsx("div",{className:"space-y-2",children:t.map((u,f)=>{const p=u.stroke||u.color||"var(--primary, #8884d8)",d=u.value.toLocaleString();return jsxRuntime.jsxs("div",{className:"flex items-center justify-between gap-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[jsxRuntime.jsx("div",{className:"h-2 w-2 rounded-full",style:{backgroundColor:p}}),jsxRuntime.jsx("span",{className:"capitalize",children:u.dataKey})]}),jsxRuntime.jsxs("p",{className:"text-sm font-medium",children:[o==="left"&&i,d,o==="right"&&i]})]},f)})})]})}function AreaChart({data:e,units:t,unitsPosition:n="right",width:i="100%",height:o=300,className:l}){if(!(e!=null&&e.length))return jsxRuntime.jsx("div",{className:"flex items-center justify-center h-40 text-muted-foreground",children:"No data available"});const u=Object.keys(e[0])[0],f=Object.keys(e[0]).filter(d=>d!==u);if(!f.length)return jsxRuntime.jsx("div",{className:"flex items-center justify-center h-40 text-muted-foreground",children:"Invalid data format"});const p=d=>n==="left"?`${t||""}${d}`:`${d}${t||""}`;return jsxRuntime.jsx("div",{className:cn("w-full",l),children:jsxRuntime.jsx(ResponsiveContainer,{width:i,height:o,children:jsxRuntime.jsxs(AreaChart$1,{data:e,margin:{top:10,right:30,left:0,bottom:0},children:[jsxRuntime.jsx("defs",{children:f.map(d=>jsxRuntime.jsxs("linearGradient",{id:`gradient-${d}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[jsxRuntime.jsx("stop",{offset:"5%",stopColor:"var(--primary, #8884d8)",stopOpacity:.8}),jsxRuntime.jsx("stop",{offset:"95%",stopColor:"var(--primary, #8884d8)",stopOpacity:.1})]},d))}),jsxRuntime.jsx(CartesianGrid,{strokeDasharray:"3 3",className:"stroke-border/50"}),jsxRuntime.jsx(XAxis,{dataKey:u,className:"text-xs text-muted-foreground",tickLine:!1,axisLine:!1}),jsxRuntime.jsx(YAxis,{className:"text-xs text-muted-foreground",tickLine:!1,axisLine:!1,tickFormatter:p}),jsxRuntime.jsx(Tooltip,{content:jsxRuntime.jsx(ChartTooltipContent,{units:t,unitsPosition:n}),cursor:{stroke:"var(--muted)",strokeWidth:1}}),f.map(d=>jsxRuntime.jsx(Area,{type:"monotone",dataKey:d,stroke:"var(--primary, #8884d8)",fillOpacity:.6,fill:`url(#gradient-${d})`,strokeWidth:2},d))]})})})}/*! *****************************************************************************
289
+ Copyright (c) Microsoft Corporation.
290
+
291
+ Permission to use, copy, modify, and/or distribute this software for any
292
+ purpose with or without fee is hereby granted.
293
+
294
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
295
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
296
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
297
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
298
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
299
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
300
+ PERFORMANCE OF THIS SOFTWARE.
301
+ ***************************************************************************** */var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])})(e,t)};function __extends(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}extendStatics(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function __awaiter(e,t,n,i){return new(n||(n=Promise))(function(o,l){function u(d){try{p(i.next(d))}catch(m){l(m)}}function f(d){try{p(i.throw(d))}catch(m){l(m)}}function p(d){var m;d.done?o(d.value):(m=d.value,m instanceof n?m:new n(function(g){g(m)})).then(u,f)}p((i=i.apply(e,[])).next())})}function __generator(e,t){var n,i,o,l,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(p){return function(d){return function(m){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,i&&(o=2&m[0]?i.return:m[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,m[1])).done)return o;switch(i=0,o&&(m=[2&m[0],o.value]),m[0]){case 0:case 1:o=m;break;case 4:return u.label++,{value:m[1],done:!1};case 5:u.label++,i=m[1],m=[0];continue;case 7:m=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!((o=o.length>0&&o[o.length-1])||m[0]!==6&&m[0]!==2)){u=0;continue}if(m[0]===3&&(!o||m[1]>o[0]&&m[1]<o[3])){u.label=m[1];break}if(m[0]===6&&u.label<o[1]){u.label=o[1],o=m;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(m);break}o[2]&&u.ops.pop(),u.trys.pop();continue}m=t.call(e,u)}catch(g){m=[6,g],i=0}finally{n=o=0}if(5&m[0])throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}([p,d])}}}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var lottie=createCommonjsModule(function(module,exports){typeof navigator<"u"&&function(e,t){module.exports=t()}(0,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,i,o=e.length;for(n=0;n<o;n+=1)for(var l in i=e[n].prototype)Object.prototype.hasOwnProperty.call(i,l)&&(t.prototype[l]=i[l])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].pause()},resume:function(){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].resume()},setRate:function(t){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,n=this.audios.length;for(t=0;t<n;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(t,n){var i,o=0,l=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(o=0;o<n;o+=1)l.push(i);return l}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?function(t,n){return t==="float32"?new Float32Array(n):t==="int16"?new Int16Array(n):t==="uint8c"?new Uint8ClampedArray(n):e(t,n)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return(_typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=t.length;for(e=0;e<n;e+=1)BMMath[t[e]]=Math[t[e]]})(),BMMath.random=Math.random,BMMath.abs=function(e){if(_typeof$6(e)==="object"&&e.length){var t,n=createSizedArray(e.length),i=e.length;for(t=0;t<i;t+=1)n[t]=Math.abs(e[t]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,i){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,i){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,n){var i,o,l,u,f,p,d,m;switch(p=n*(1-t),d=n*(1-(f=6*e-(u=Math.floor(6*e)))*t),m=n*(1-(1-f)*t),u%6){case 0:i=n,o=m,l=p;break;case 1:i=d,o=n,l=p;break;case 2:i=p,o=n,l=m;break;case 3:i=p,o=d,l=n;break;case 4:i=m,o=p,l=n;break;case 5:i=n,o=p,l=d}return[i,o,l]}function RGBtoHSV(e,t,n){var i,o=Math.max(e,t,n),l=Math.min(e,t,n),u=o-l,f=o===0?0:u/o,p=o/255;switch(o){case l:i=0;break;case e:i=t-n+u*(t<n?6:0),i/=6*u;break;case t:i=n-e+2*u,i/=6*u;break;case n:i=e-t+4*u,i/=6*u}return[i,f,p]}function addSaturationToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=t.length===1?"0"+t:t;return function(i,o,l){return i<0&&(i=0),o<0&&(o=0),l<0&&(l=0),"#"+n[i]+n[o]+n[l]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return(_typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var dataManager=function(){var e,t,n=1,i=[],o={onmessage:function(){},postMessage:function(p){e({data:p})}},l={postMessage:function(p){o.onmessage({data:p})}};function u(){t||((t=function(p){if(window.Worker&&window.Blob&&getWebWorker()){var d=new Blob(["var _workerSelf = self; self.onmessage = ",p.toString()],{type:"text/javascript"}),m=URL.createObjectURL(d);return new Worker(m)}return e=p,o}(function(p){if(l.dataManager||(l.dataManager=function(){function m(I,D){var L,F,N,B,z,V,W=I.length;for(F=0;F<W;F+=1)if("ks"in(L=I[F])&&!L.completed){if(L.completed=!0,L.hasMask){var U=L.masksProperties;for(B=U.length,N=0;N<B;N+=1)if(U[N].pt.k.i)S(U[N].pt.k);else for(V=U[N].pt.k.length,z=0;z<V;z+=1)U[N].pt.k[z].s&&S(U[N].pt.k[z].s[0]),U[N].pt.k[z].e&&S(U[N].pt.k[z].e[0])}L.ty===0?(L.layers=g(L.refId,D),m(L.layers,D)):L.ty===4?_(L.shapes):L.ty===5&&T(L)}}function g(I,D){var L=function(F,N){for(var B=0,z=N.length;B<z;){if(N[B].id===F)return N[B];B+=1}return null}(I,D);return L?L.layers.__used?JSON.parse(JSON.stringify(L.layers)):(L.layers.__used=!0,L.layers):null}function _(I){var D,L,F;for(D=I.length-1;D>=0;D-=1)if(I[D].ty==="sh")if(I[D].ks.k.i)S(I[D].ks.k);else for(F=I[D].ks.k.length,L=0;L<F;L+=1)I[D].ks.k[L].s&&S(I[D].ks.k[L].s[0]),I[D].ks.k[L].e&&S(I[D].ks.k[L].e[0]);else I[D].ty==="gr"&&_(I[D].it)}function S(I){var D,L=I.i.length;for(D=0;D<L;D+=1)I.i[D][0]+=I.v[D][0],I.i[D][1]+=I.v[D][1],I.o[D][0]+=I.v[D][0],I.o[D][1]+=I.v[D][1]}function E(I,D){var L=D?D.split("."):[100,100,100];return I[0]>L[0]||!(L[0]>I[0])&&(I[1]>L[1]||!(L[1]>I[1])&&(I[2]>L[2]||!(L[2]>I[2])&&null))}var R,b=function(){var I=[4,4,14];function D(L){var F,N,B,z=L.length;for(F=0;F<z;F+=1)L[F].ty===5&&(N=L[F],B=void 0,B=N.t.d,N.t.d={k:[{s:B,t:0}]})}return function(L){if(E(I,L.v)&&(D(L.layers),L.assets)){var F,N=L.assets.length;for(F=0;F<N;F+=1)L.assets[F].layers&&D(L.assets[F].layers)}}}(),A=(R=[4,7,99],function(I){if(I.chars&&!E(R,I.v)){var D,L=I.chars.length;for(D=0;D<L;D+=1){var F=I.chars[D];F.data&&F.data.shapes&&(_(F.data.shapes),F.data.ip=0,F.data.op=99999,F.data.st=0,F.data.sr=1,F.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},I.chars[D].t||(F.data.shapes.push({ty:"no"}),F.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),C=function(){var I=[5,7,15];function D(L){var F,N,B,z=L.length;for(F=0;F<z;F+=1)L[F].ty===5&&(N=L[F],B=void 0,typeof(B=N.t.p).a=="number"&&(B.a={a:0,k:B.a}),typeof B.p=="number"&&(B.p={a:0,k:B.p}),typeof B.r=="number"&&(B.r={a:0,k:B.r}))}return function(L){if(E(I,L.v)&&(D(L.layers),L.assets)){var F,N=L.assets.length;for(F=0;F<N;F+=1)L.assets[F].layers&&D(L.assets[F].layers)}}}(),O=function(){var I=[4,1,9];function D(F){var N,B,z,V=F.length;for(N=0;N<V;N+=1)if(F[N].ty==="gr")D(F[N].it);else if(F[N].ty==="fl"||F[N].ty==="st")if(F[N].c.k&&F[N].c.k[0].i)for(z=F[N].c.k.length,B=0;B<z;B+=1)F[N].c.k[B].s&&(F[N].c.k[B].s[0]/=255,F[N].c.k[B].s[1]/=255,F[N].c.k[B].s[2]/=255,F[N].c.k[B].s[3]/=255),F[N].c.k[B].e&&(F[N].c.k[B].e[0]/=255,F[N].c.k[B].e[1]/=255,F[N].c.k[B].e[2]/=255,F[N].c.k[B].e[3]/=255);else F[N].c.k[0]/=255,F[N].c.k[1]/=255,F[N].c.k[2]/=255,F[N].c.k[3]/=255}function L(F){var N,B=F.length;for(N=0;N<B;N+=1)F[N].ty===4&&D(F[N].shapes)}return function(F){if(E(I,F.v)&&(L(F.layers),F.assets)){var N,B=F.assets.length;for(N=0;N<B;N+=1)F.assets[N].layers&&L(F.assets[N].layers)}}}(),M=function(){var I=[4,4,18];function D(F){var N,B,z;for(N=F.length-1;N>=0;N-=1)if(F[N].ty==="sh")if(F[N].ks.k.i)F[N].ks.k.c=F[N].closed;else for(z=F[N].ks.k.length,B=0;B<z;B+=1)F[N].ks.k[B].s&&(F[N].ks.k[B].s[0].c=F[N].closed),F[N].ks.k[B].e&&(F[N].ks.k[B].e[0].c=F[N].closed);else F[N].ty==="gr"&&D(F[N].it)}function L(F){var N,B,z,V,W,U,Q=F.length;for(B=0;B<Q;B+=1){if((N=F[B]).hasMask){var q=N.masksProperties;for(V=q.length,z=0;z<V;z+=1)if(q[z].pt.k.i)q[z].pt.k.c=q[z].cl;else for(U=q[z].pt.k.length,W=0;W<U;W+=1)q[z].pt.k[W].s&&(q[z].pt.k[W].s[0].c=q[z].cl),q[z].pt.k[W].e&&(q[z].pt.k[W].e[0].c=q[z].cl)}N.ty===4&&D(N.shapes)}}return function(F){if(E(I,F.v)&&(L(F.layers),F.assets)){var N,B=F.assets.length;for(N=0;N<B;N+=1)F.assets[N].layers&&L(F.assets[N].layers)}}}();function T(I){I.t.a.length===0&&I.t.p}var j={completeData:function(I){I.__complete||(O(I),b(I),A(I),C(I),M(I),m(I.layers,I.assets),function(D,L){if(D){var F=0,N=D.length;for(F=0;F<N;F+=1)D[F].t===1&&(D[F].data.layers=g(D[F].data.refId,L),m(D[F].data.layers,L))}}(I.chars,I.assets),I.__complete=!0)}};return j.checkColors=O,j.checkChars=A,j.checkPathProperties=C,j.checkShapes=M,j.completeLayers=m,j}()),l.assetLoader||(l.assetLoader=function(){function m(g){var _=g.getResponseHeader("content-type");return _&&g.responseType==="json"&&_.indexOf("json")!==-1||g.response&&_typeof$5(g.response)==="object"?g.response:g.response&&typeof g.response=="string"?JSON.parse(g.response):g.responseText?JSON.parse(g.responseText):null}return{load:function(g,_,S,E){var R,b=new XMLHttpRequest;try{b.responseType="json"}catch{}b.onreadystatechange=function(){if(b.readyState===4)if(b.status===200)R=m(b),S(R);else try{R=m(b),S(R)}catch(A){E&&E(A)}};try{b.open(["G","E","T"].join(""),g,!0)}catch{b.open(["G","E","T"].join(""),_+"/"+g,!0)}b.send()}}}()),p.data.type==="loadAnimation")l.assetLoader.load(p.data.path,p.data.fullPath,function(m){l.dataManager.completeData(m),l.postMessage({id:p.data.id,payload:m,status:"success"})},function(){l.postMessage({id:p.data.id,status:"error"})});else if(p.data.type==="complete"){var d=p.data.animation;l.dataManager.completeData(d),l.postMessage({id:p.data.id,payload:d,status:"success"})}else p.data.type==="loadData"&&l.assetLoader.load(p.data.path,p.data.fullPath,function(m){l.postMessage({id:p.data.id,payload:m,status:"success"})},function(){l.postMessage({id:p.data.id,status:"error"})})})).onmessage=function(p){var d=p.data,m=d.id,g=i[m];i[m]=null,d.status==="success"?g.onComplete(d.payload):g.onError&&g.onError()})}function f(p,d){var m="processId_"+(n+=1);return i[m]={onComplete:p,onError:d},m}return{loadAnimation:function(p,d,m){u();var g=f(d,m);t.postMessage({type:"loadAnimation",path:p,fullPath:window.location.origin+window.location.pathname,id:g})},loadData:function(p,d,m){u();var g=f(d,m);t.postMessage({type:"loadData",path:p,fullPath:window.location.origin+window.location.pathname,id:g})},completeAnimation:function(p,d,m){u();var g=f(d,m);t.postMessage({type:"complete",animation:p,id:g})}}}(),ImagePreloader=function(){var e=function(){var f=createTag("canvas");f.width=1,f.height=1;var p=f.getContext("2d");return p.fillStyle="rgba(0,0,0,0)",p.fillRect(0,0,1,1),f}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(f,p,d){var m="";if(f.e)m=f.p;else if(p){var g=f.p;g.indexOf("images/")!==-1&&(g=g.split("/")[1]),m=p+g}else m=d,m+=f.u?f.u:"",m+=f.p;return m}function o(f){var p=0,d=setInterval((function(){(f.getBBox().width||p>500)&&(this._imageLoaded(),clearInterval(d)),p+=1}).bind(this),50)}function l(f){var p={assetData:f},d=i(f,this.assetsPath,this.path);return dataManager.loadData(d,(function(m){p.img=m,this._footageLoaded()}).bind(this),(function(){p.img={},this._footageLoaded()}).bind(this)),p}function u(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return u.prototype={loadAssets:function(f,p){var d;this.imagesLoadedCb=p;var m=f.length;for(d=0;d<m;d+=1)f[d].layers||(f[d].t&&f[d].t!=="seq"?f[d].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(f[d]))):(this.totalImages+=1,this.images.push(this._createImageData(f[d]))))},setAssetsPath:function(f){this.assetsPath=f||""},setPath:function(f){this.path=f||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(f){for(var p=0,d=this.images.length;p<d;){if(this.images[p].assetData===f)return this.images[p].img;p+=1}return null},createImgData:function(f){var p=i(f,this.assetsPath,this.path),d=createTag("img");d.crossOrigin="anonymous",d.addEventListener("load",this._imageLoaded,!1),d.addEventListener("error",(function(){m.img=e,this._imageLoaded()}).bind(this),!1),d.src=p;var m={img:d,assetData:f};return m},createImageData:function(f){var p=i(f,this.assetsPath,this.path),d=createNS("image");isSafari?this.testImageLoaded(d):d.addEventListener("load",this._imageLoaded,!1),d.addEventListener("error",(function(){m.img=e,this._imageLoaded()}).bind(this),!1),d.setAttributeNS("http://www.w3.org/1999/xlink","href",p),this._elementHelper.append?this._elementHelper.append(d):this._elementHelper.appendChild(d);var m={img:d,assetData:f};return m},imageLoaded:t,footageLoaded:n,setCacheType:function(f,p){f==="svg"?(this._elementHelper=p,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},u}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var n=this._cbs[e],i=0;i<n.length;i+=1)n[i](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),(function(){this.removeEventListener(e,t)}).bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var n=0,i=this._cbs[e].length;n<i;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,i-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(t){for(var n,i=t.split(`\r
302
+ `),o={},l=0,u=0;u<i.length;u+=1)(n=i[u].split(":")).length===2&&(o[n[0]]=n[1].trim(),l+=1);if(l===0)throw new Error;return o}return function(t){for(var n=[],i=0;i<t.length;i+=1){var o=t[i],l={time:o.tm,duration:o.dr};try{l.payload=JSON.parse(t[i].cm)}catch{try{l.payload=e(t[i].cm)}catch{l.payload={name:t[i].cm}}}n.push(l)}return n}}(),ProjectInterface=function(){function e(t){this.compositions.push(t)}return function(){function t(n){for(var i=0,o=this.compositions.length;i<o;){if(this.compositions[i].data&&this.compositions[i].data.nm===n)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return(_typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},i=e.attributes;n.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",n.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var o=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";o==="false"?n.loop=!1:o==="true"?n.loop=!0:o!==""&&(n.loop=parseInt(o,10));var l=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;n.autoplay=l!=="false",n.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"",(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,i=this.animationData.layers,o=i.length,l=e.layers,u=l.length;for(n=0;n<u;n+=1)for(t=0;t<o;){if(i[t].id===l[n].id){i[t]=l[n];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(o=e.assets.length,t=0;t<o;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var n=typeof e=="number"?e:void 0,i=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(n,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(this.isLoaded!==!1&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var i=Number(e);if(isNaN(i)){var o=this.getMarkerData(e);o&&this.goToAndStop(o.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var i=Number(e);if(isNaN(i)){var o=this.getMarkerData(e);o&&(o.duration?this.playSegments([o.time,o.time+o.duration],!0):this.goToAndStop(o.time,!0))}else this.goToAndStop(i,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(this.isPaused!==!0&&this.isLoaded!==!1){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var n,i=e.length;for(n=0;n<i;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{this.renderer.getElementByPath(e).updateDocumentData(t,n)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],n=0,i=0,o=0,l=!0,u=!1;function f(R){for(var b=0,A=R.target;b<i;)t[b].animation===A&&(t.splice(b,1),b-=1,i-=1,A.isPaused||m()),b+=1}function p(R,b){if(!R)return null;for(var A=0;A<i;){if(t[A].elem===R&&t[A].elem!==null)return t[A].animation;A+=1}var C=new AnimationItem;return g(C,R),C.setData(R,b),C}function d(){o+=1,E()}function m(){o-=1}function g(R,b){R.addEventListener("destroy",f),R.addEventListener("_active",d),R.addEventListener("_idle",m),t.push({elem:b,animation:R}),i+=1}function _(R){var b,A=R-n;for(b=0;b<i;b+=1)t[b].animation.advanceTime(A);n=R,o&&!u?window.requestAnimationFrame(_):l=!0}function S(R){n=R,window.requestAnimationFrame(_)}function E(){!u&&o&&l&&(window.requestAnimationFrame(S),l=!1)}return e.registerAnimation=p,e.loadAnimation=function(R){var b=new AnimationItem;return g(b,null),b.setParams(R),b},e.setSpeed=function(R,b){var A;for(A=0;A<i;A+=1)t[A].animation.setSpeed(R,b)},e.setDirection=function(R,b){var A;for(A=0;A<i;A+=1)t[A].animation.setDirection(R,b)},e.play=function(R){var b;for(b=0;b<i;b+=1)t[b].animation.play(R)},e.pause=function(R){var b;for(b=0;b<i;b+=1)t[b].animation.pause(R)},e.stop=function(R){var b;for(b=0;b<i;b+=1)t[b].animation.stop(R)},e.togglePause=function(R){var b;for(b=0;b<i;b+=1)t[b].animation.togglePause(R)},e.searchAnimations=function(R,b,A){var C,O=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),M=O.length;for(C=0;C<M;C+=1)A&&O[C].setAttribute("data-bm-type",A),p(O[C],R);if(b&&M===0){A||(A="svg");var T=document.getElementsByTagName("body")[0];T.innerText="";var j=createTag("div");j.style.width="100%",j.style.height="100%",j.setAttribute("data-bm-type",A),T.appendChild(j),p(j,R)}},e.resize=function(){var R;for(R=0;R<i;R+=1)t[R].animation.resize()},e.goToAndStop=function(R,b,A){var C;for(C=0;C<i;C+=1)t[C].animation.goToAndStop(R,b,A)},e.destroy=function(R){var b;for(b=i-1;b>=0;b-=1)t[b].animation.destroy(R)},e.freeze=function(){u=!0},e.unfreeze=function(){u=!1,E()},e.setVolume=function(R,b){var A;for(A=0;A<i;A+=1)t[A].animation.setVolume(R,b)},e.mute=function(R){var b;for(b=0;b<i;b+=1)t[b].animation.mute(R)},e.unmute=function(R){var b;for(b=0;b<i;b+=1)t[b].animation.unmute(R)},e.getRegisteredAnimations=function(){var R,b=t.length,A=[];for(R=0;R<b;R+=1)A.push(t[R].animation);return A},e}(),BezierFactory=function(){var e={getBezierEasing:function(d,m,g,_,S){var E=S||("bez_"+d+"_"+m+"_"+g+"_"+_).replace(/\./g,"p");if(t[E])return t[E];var R=new p([d,m,g,_]);return t[E]=R,R}},t={},n=typeof Float32Array=="function";function i(d,m){return 1-3*m+3*d}function o(d,m){return 3*m-6*d}function l(d){return 3*d}function u(d,m,g){return((i(m,g)*d+o(m,g))*d+l(m))*d}function f(d,m,g){return 3*i(m,g)*d*d+2*o(m,g)*d+l(m)}function p(d){this._p=d,this._mSampleValues=n?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return p.prototype={get:function(d){var m=this._p[0],g=this._p[1],_=this._p[2],S=this._p[3];return this._precomputed||this._precompute(),m===g&&_===S?d:d===0?0:d===1?1:u(this._getTForX(d),g,S)},_precompute:function(){var d=this._p[0],m=this._p[1],g=this._p[2],_=this._p[3];this._precomputed=!0,d===m&&g===_||this._calcSampleValues()},_calcSampleValues:function(){for(var d=this._p[0],m=this._p[2],g=0;g<11;++g)this._mSampleValues[g]=u(.1*g,d,m)},_getTForX:function(d){for(var m=this._p[0],g=this._p[2],_=this._mSampleValues,S=0,E=1;E!==10&&_[E]<=d;++E)S+=.1;var R=S+.1*((d-_[--E])/(_[E+1]-_[E])),b=f(R,m,g);return b>=.001?function(A,C,O,M){for(var T=0;T<4;++T){var j=f(C,O,M);if(j===0)return C;C-=(u(C,O,M)-A)/j}return C}(d,R,m,g):b===0?R:function(A,C,O,M,T){var j,I,D=0;do(j=u(I=C+(O-C)/2,M,T)-A)>0?O=I:C=I;while(Math.abs(j)>1e-7&&++D<10);return I}(d,S,S+.1,m,g)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,n){var i=0,o=e,l=createSizedArray(o);return{newElement:function(){return i?l[i-=1]:t()},release:function(u){i===o&&(l=pooling.double(l),o*=2),n&&n(u),l[i]=u,i+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(e){var t,n=e.lengths.length;for(t=0;t<n;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0});function bezFunction(){var e=Math;function t(d,m,g,_,S,E){var R=d*_+m*S+g*E-S*_-E*d-g*m;return R>-.001&&R<.001}var n=function(d,m,g,_){var S,E,R,b,A,C,O=getDefaultCurveSegments(),M=0,T=[],j=[],I=bezierLengthPool.newElement();for(R=g.length,S=0;S<O;S+=1){for(A=S/(O-1),C=0,E=0;E<R;E+=1)b=bmPow(1-A,3)*d[E]+3*bmPow(1-A,2)*A*g[E]+3*(1-A)*bmPow(A,2)*_[E]+bmPow(A,3)*m[E],T[E]=b,j[E]!==null&&(C+=bmPow(T[E]-j[E],2)),j[E]=T[E];C&&(M+=C=bmSqrt(C)),I.percents[S]=A,I.lengths[S]=M}return I.addedLength=M,I};function i(d){this.segmentLength=0,this.points=new Array(d)}function o(d,m){this.partialLength=d,this.point=m}var l,u=(l={},function(d,m,g,_){var S=(d[0]+"_"+d[1]+"_"+m[0]+"_"+m[1]+"_"+g[0]+"_"+g[1]+"_"+_[0]+"_"+_[1]).replace(/\./g,"p");if(!l[S]){var E,R,b,A,C,O,M,T=getDefaultCurveSegments(),j=0,I=null;d.length===2&&(d[0]!==m[0]||d[1]!==m[1])&&t(d[0],d[1],m[0],m[1],d[0]+g[0],d[1]+g[1])&&t(d[0],d[1],m[0],m[1],m[0]+_[0],m[1]+_[1])&&(T=2);var D=new i(T);for(b=g.length,E=0;E<T;E+=1){for(M=createSizedArray(b),C=E/(T-1),O=0,R=0;R<b;R+=1)A=bmPow(1-C,3)*d[R]+3*bmPow(1-C,2)*C*(d[R]+g[R])+3*(1-C)*bmPow(C,2)*(m[R]+_[R])+bmPow(C,3)*m[R],M[R]=A,I!==null&&(O+=bmPow(M[R]-I[R],2));j+=O=bmSqrt(O),D.points[E]=new o(O,M),I=M}D.segmentLength=j,l[S]=D}return l[S]});function f(d,m){var g=m.percents,_=m.lengths,S=g.length,E=bmFloor((S-1)*d),R=d*m.addedLength,b=0;if(E===S-1||E===0||R===_[E])return g[E];for(var A=_[E]>R?-1:1,C=!0;C;)if(_[E]<=R&&_[E+1]>R?(b=(R-_[E])/(_[E+1]-_[E]),C=!1):E+=A,E<0||E>=S-1){if(E===S-1)return g[E];C=!1}return g[E]+(g[E+1]-g[E])*b}var p=createTypedArray("float32",8);return{getSegmentsLength:function(d){var m,g=segmentsLengthPool.newElement(),_=d.c,S=d.v,E=d.o,R=d.i,b=d._length,A=g.lengths,C=0;for(m=0;m<b-1;m+=1)A[m]=n(S[m],S[m+1],E[m],R[m+1]),C+=A[m].addedLength;return _&&b&&(A[m]=n(S[m],S[0],E[m],R[0]),C+=A[m].addedLength),g.totalLength=C,g},getNewSegment:function(d,m,g,_,S,E,R){S<0?S=0:S>1&&(S=1);var b,A=f(S,R),C=f(E=E>1?1:E,R),O=d.length,M=1-A,T=1-C,j=M*M*M,I=A*M*M*3,D=A*A*M*3,L=A*A*A,F=M*M*T,N=A*M*T+M*A*T+M*M*C,B=A*A*T+M*A*C+A*M*C,z=A*A*C,V=M*T*T,W=A*T*T+M*C*T+M*T*C,U=A*C*T+M*C*C+A*T*C,Q=A*C*C,q=T*T*T,G=C*T*T+T*C*T+T*T*C,H=C*C*T+T*C*C+C*T*C,Z=C*C*C;for(b=0;b<O;b+=1)p[4*b]=e.round(1e3*(j*d[b]+I*g[b]+D*_[b]+L*m[b]))/1e3,p[4*b+1]=e.round(1e3*(F*d[b]+N*g[b]+B*_[b]+z*m[b]))/1e3,p[4*b+2]=e.round(1e3*(V*d[b]+W*g[b]+U*_[b]+Q*m[b]))/1e3,p[4*b+3]=e.round(1e3*(q*d[b]+G*g[b]+H*_[b]+Z*m[b]))/1e3;return p},getPointInSegment:function(d,m,g,_,S,E){var R=f(S,E),b=1-R;return[e.round(1e3*(b*b*b*d[0]+(R*b*b+b*R*b+b*b*R)*g[0]+(R*R*b+b*R*R+R*b*R)*_[0]+R*R*R*m[0]))/1e3,e.round(1e3*(b*b*b*d[1]+(R*b*b+b*R*b+b*b*R)*g[1]+(R*R*b+b*R*R+R*b*R)*_[1]+R*R*R*m[1]))/1e3]},buildBezierData:u,pointOnLine2D:t,pointOnLine3D:function(d,m,g,_,S,E,R,b,A){if(g===0&&E===0&&A===0)return t(d,m,_,S,R,b);var C,O=e.sqrt(e.pow(_-d,2)+e.pow(S-m,2)+e.pow(E-g,2)),M=e.sqrt(e.pow(R-d,2)+e.pow(b-m,2)+e.pow(A-g,2)),T=e.sqrt(e.pow(R-_,2)+e.pow(b-S,2)+e.pow(A-E,2));return(C=O>M?O>T?O-M-T:T-M-O:T>M?T-M-O:M-O-T)>-1e-4&&C<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var n,i=this.offsetTime;this.propType==="multidimensional"&&(n=createTypedArray("float32",this.pv.length));for(var o,l,u,f,p,d,m,g,_,S=t.lastIndex,E=S,R=this.keyframes.length-1,b=!0;b;){if(o=this.keyframes[E],l=this.keyframes[E+1],E===R-1&&e>=l.t-i){o.h&&(o=l),S=0;break}if(l.t-i>e){S=E;break}E<R-1?E+=1:(S=0,b=!1)}u=this.keyframesMetadata[E]||{};var A,C=l.t-i,O=o.t-i;if(o.to){u.bezierData||(u.bezierData=bez.buildBezierData(o.s,l.s||o.e,o.to,o.ti));var M=u.bezierData;if(e>=C||e<O){var T=e>=C?M.points.length-1:0;for(p=M.points[T].point.length,f=0;f<p;f+=1)n[f]=M.points[T].point[f]}else{u.__fnct?_=u.__fnct:(_=BezierFactory.getBezierEasing(o.o.x,o.o.y,o.i.x,o.i.y,o.n).get,u.__fnct=_),d=_((e-O)/(C-O));var j,I=M.segmentLength*d,D=t.lastFrame<e&&t._lastKeyframeIndex===E?t._lastAddedLength:0;for(g=t.lastFrame<e&&t._lastKeyframeIndex===E?t._lastPoint:0,b=!0,m=M.points.length;b;){if(D+=M.points[g].partialLength,I===0||d===0||g===M.points.length-1){for(p=M.points[g].point.length,f=0;f<p;f+=1)n[f]=M.points[g].point[f];break}if(I>=D&&I<D+M.points[g+1].partialLength){for(j=(I-D)/M.points[g+1].partialLength,p=M.points[g].point.length,f=0;f<p;f+=1)n[f]=M.points[g].point[f]+(M.points[g+1].point[f]-M.points[g].point[f])*j;break}g<m-1?g+=1:b=!1}t._lastPoint=g,t._lastAddedLength=D-M.points[g].partialLength,t._lastKeyframeIndex=E}}else{var L,F,N,B,z;if(R=o.s.length,A=l.s||o.e,this.sh&&o.h!==1)e>=C?(n[0]=A[0],n[1]=A[1],n[2]=A[2]):e<=O?(n[0]=o.s[0],n[1]=o.s[1],n[2]=o.s[2]):quaternionToEuler(n,slerp(createQuaternion(o.s),createQuaternion(A),(e-O)/(C-O)));else for(E=0;E<R;E+=1)o.h!==1&&(e>=C?d=1:e<O?d=0:(o.o.x.constructor===Array?(u.__fnct||(u.__fnct=[]),u.__fnct[E]?_=u.__fnct[E]:(L=o.o.x[E]===void 0?o.o.x[0]:o.o.x[E],F=o.o.y[E]===void 0?o.o.y[0]:o.o.y[E],N=o.i.x[E]===void 0?o.i.x[0]:o.i.x[E],B=o.i.y[E]===void 0?o.i.y[0]:o.i.y[E],_=BezierFactory.getBezierEasing(L,F,N,B).get,u.__fnct[E]=_)):u.__fnct?_=u.__fnct:(L=o.o.x,F=o.o.y,N=o.i.x,B=o.i.y,_=BezierFactory.getBezierEasing(L,F,N,B).get,o.keyframeMetadata=_),d=_((e-O)/(C-O)))),A=l.s||o.e,z=o.h===1?o.s[E]:o.s[E]+(A[E]-o.s[E])*d,this.propType==="multidimensional"?n[E]=z:n=z}return t.lastIndex=S,n}function slerp(e,t,n){var i,o,l,u,f,p=[],d=e[0],m=e[1],g=e[2],_=e[3],S=t[0],E=t[1],R=t[2],b=t[3];return(o=d*S+m*E+g*R+_*b)<0&&(o=-o,S=-S,E=-E,R=-R,b=-b),1-o>1e-6?(i=Math.acos(o),l=Math.sin(i),u=Math.sin((1-n)*i)/l,f=Math.sin(n*i)/l):(u=1-n,f=n),p[0]=u*d+f*S,p[1]=u*m+f*E,p[2]=u*g+f*R,p[3]=u*_+f*b,p}function quaternionToEuler(e,t){var n=t[0],i=t[1],o=t[2],l=t[3],u=Math.atan2(2*i*l-2*n*o,1-2*i*i-2*o*o),f=Math.asin(2*n*i+2*o*l),p=Math.atan2(2*n*l-2*i*o,1-2*n*n-2*o*o);e[0]=u/degToRads,e[1]=f/degToRads,e[2]=p/degToRads}function createQuaternion(e){var t=e[0]*degToRads,n=e[1]*degToRads,i=e[2]*degToRads,o=Math.cos(t/2),l=Math.cos(n/2),u=Math.cos(i/2),f=Math.sin(t/2),p=Math.sin(n/2),d=Math.sin(i/2);return[f*p*u+o*l*d,f*l*u+o*p*d,o*p*u-f*l*d,o*l*u-f*p*d]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,i=this.v.length;n<i;)t=e[n]*this.mult,mathAbs(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,n,i){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,n,i){var o;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var l=t.k.length;for(this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l),this.vel=createTypedArray("float32",l),o=0;o<l;o+=1)this.v[o]=t.k[o]*this.mult,this.pv[o]=t.k[o];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,n,i){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=n||1,this.elem=e,this.container=i,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,n,i){var o;this.propType="multidimensional";var l,u,f,p,d=t.k.length;for(o=0;o<d-1;o+=1)t.k[o].to&&t.k[o].s&&t.k[o+1]&&t.k[o+1].s&&(l=t.k[o].s,u=t.k[o+1].s,f=t.k[o].to,p=t.k[o].ti,(l.length===2&&(l[0]!==u[0]||l[1]!==u[1])&&bez.pointOnLine2D(l[0],l[1],u[0],u[1],l[0]+f[0],l[1]+f[1])&&bez.pointOnLine2D(l[0],l[1],u[0],u[1],u[0]+p[0],u[1]+p[1])||l.length===3&&(l[0]!==u[0]||l[1]!==u[1]||l[2]!==u[2])&&bez.pointOnLine3D(l[0],l[1],l[2],u[0],u[1],u[2],l[0]+f[0],l[1]+f[1],l[2]+f[2])&&bez.pointOnLine3D(l[0],l[1],l[2],u[0],u[1],u[2],u[0]+p[0],u[1]+p[1],u[2]+p[2]))&&(t.k[o].to=null,t.k[o].ti=null),l[0]===u[0]&&l[1]===u[1]&&f[0]===0&&f[1]===0&&p[0]===0&&p[1]===0&&(l.length===2||l[2]===u[2]&&f[2]===0&&p[2]===0)&&(t.k[o].to=null,t.k[o].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var m=t.k[0].s.length;for(this.v=createTypedArray("float32",m),this.pv=createTypedArray("float32",m),o=0;o<m;o+=1)this.v[o]=initFrame,this.pv[o]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",m)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,n,i,o){var l;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if(typeof t.k[0]=="number")l=new MultiDimensionalProperty(e,t,i,o);else switch(n){case 0:l=new KeyframedValueProperty(e,t,i,o);break;case 1:l=new KeyframedMultidimensionalProperty(e,t,i,o)}else l=new ValueProperty(e,t,i,o);return l.effectsSequence.length&&o.addDynamicProperty(l),l}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){this.dynamicProperties.indexOf(e)===-1&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,i,o){var l;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":l=this.v;break;case"i":l=this.i;break;case"o":l=this.o;break;default:l=[]}(!l[i]||l[i]&&!o)&&(l[i]=pointPool.newElement()),l[i][0]=e,l[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,i,o,l,u,f){this.setXYAt(e,t,"v",u,f),this.setXYAt(n,i,"o",u,f),this.setXYAt(o,l,"i",u,f)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,i=this.i,o=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],n[0][0],n[0][1],0,!1),o=1);var l,u=this._length-1,f=this._length;for(l=o;l<f;l+=1)e.setTripleAt(t[u][0],t[u][1],i[u][0],i[u][1],n[u][0],n[u][1],l,!1),u-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(e){var t,n=e._length;for(t=0;t<n;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1}),factory.clone=function(e){var t,n=factory.newElement(),i=e._length===void 0?e.v.length:e._length;for(n.setLength(i),n.c=e.c,t=0;t<i;t+=1)n.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return n},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,n=e._length;for(t=0;t<n;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){function e(_,S,E){var R,b,A,C,O,M,T,j,I,D=E.lastIndex,L=this.keyframes;if(_<L[0].t-this.offsetTime)R=L[0].s[0],A=!0,D=0;else if(_>=L[L.length-1].t-this.offsetTime)R=L[L.length-1].s?L[L.length-1].s[0]:L[L.length-2].e[0],A=!0;else{for(var F,N,B,z=D,V=L.length-1,W=!0;W&&(F=L[z],!((N=L[z+1]).t-this.offsetTime>_));)z<V-1?z+=1:W=!1;if(B=this.keyframesMetadata[z]||{},D=z,!(A=F.h===1)){if(_>=N.t-this.offsetTime)j=1;else if(_<F.t-this.offsetTime)j=0;else{var U;B.__fnct?U=B.__fnct:(U=BezierFactory.getBezierEasing(F.o.x,F.o.y,F.i.x,F.i.y).get,B.__fnct=U),j=U((_-(F.t-this.offsetTime))/(N.t-this.offsetTime-(F.t-this.offsetTime)))}b=N.s?N.s[0]:F.e[0]}R=F.s[0]}for(M=S._length,T=R.i[0].length,E.lastIndex=D,C=0;C<M;C+=1)for(O=0;O<T;O+=1)I=A?R.i[C][O]:R.i[C][O]+(b.i[C][O]-R.i[C][O])*j,S.i[C][O]=I,I=A?R.o[C][O]:R.o[C][O]+(b.o[C][O]-R.o[C][O])*j,S.o[C][O]=I,I=A?R.v[C][O]:R.v[C][O]+(b.v[C][O]-R.v[C][O])*j,S.v[C][O]=I}function t(){var _=this.comp.renderedFrame-this.offsetTime,S=this.keyframes[0].t-this.offsetTime,E=this.keyframes[this.keyframes.length-1].t-this.offsetTime,R=this._caching.lastFrame;return R!==-999999&&(R<S&&_<S||R>E&&_>E)||(this._caching.lastIndex=R<_?this._caching.lastIndex:0,this.interpolateShape(_,this.pv,this._caching)),this._caching.lastFrame=_,this.pv}function n(){this.paths=this.localShapeCollection}function i(_){(function(S,E){if(S._length!==E._length||S.c!==E.c)return!1;var R,b=S._length;for(R=0;R<b;R+=1)if(S.v[R][0]!==E.v[R][0]||S.v[R][1]!==E.v[R][1]||S.o[R][0]!==E.o[R][0]||S.o[R][1]!==E.o[R][1]||S.i[R][0]!==E.i[R][0]||S.i[R][1]!==E.i[R][1])return!1;return!0})(this.v,_)||(this.v=shapePool.clone(_),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var _,S;this.lock=!0,this._mdf=!1,_=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var E=this.effectsSequence.length;for(S=0;S<E;S+=1)_=this.effectsSequence[S](_);this.setVValue(_),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function l(_,S,E){this.propType="shape",this.comp=_.comp,this.container=_,this.elem=_,this.data=S,this.k=!1,this.kf=!1,this._mdf=!1;var R=E===3?S.pt.k:S.ks.k;this.v=shapePool.clone(R),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function u(_){this.effectsSequence.push(_),this.container.addDynamicProperty(this)}function f(_,S,E){this.propType="shape",this.comp=_.comp,this.elem=_,this.container=_,this.offsetTime=_.data.st,this.keyframes=E===3?S.pt.k:S.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var R=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,R),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=n,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[t.bind(this)]}l.prototype.interpolateShape=e,l.prototype.getValue=o,l.prototype.setVValue=i,l.prototype.addEffect=u,f.prototype.getValue=o,f.prototype.interpolateShape=e,f.prototype.setVValue=i,f.prototype.addEffect=u;var p=function(){var _=roundCorner;function S(E,R){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=R.d,this.elem=E,this.comp=E.comp,this.frameId=-1,this.initDynamicPropertyContainer(E),this.p=PropertyFactory.getProp(E,R.p,1,0,this),this.s=PropertyFactory.getProp(E,R.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return S.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var E=this.p.v[0],R=this.p.v[1],b=this.s.v[0]/2,A=this.s.v[1]/2,C=this.d!==3,O=this.v;O.v[0][0]=E,O.v[0][1]=R-A,O.v[1][0]=C?E+b:E-b,O.v[1][1]=R,O.v[2][0]=E,O.v[2][1]=R+A,O.v[3][0]=C?E-b:E+b,O.v[3][1]=R,O.i[0][0]=C?E-b*_:E+b*_,O.i[0][1]=R-A,O.i[1][0]=C?E+b:E-b,O.i[1][1]=R-A*_,O.i[2][0]=C?E+b*_:E-b*_,O.i[2][1]=R+A,O.i[3][0]=C?E-b:E+b,O.i[3][1]=R+A*_,O.o[0][0]=C?E+b*_:E-b*_,O.o[0][1]=R-A,O.o[1][0]=C?E+b:E-b,O.o[1][1]=R+A*_,O.o[2][0]=C?E-b*_:E+b*_,O.o[2][1]=R+A,O.o[3][0]=C?E-b:E+b,O.o[3][1]=R-A*_}},extendPrototype([DynamicPropertyContainer],S),S}(),d=function(){function _(S,E){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=S,this.comp=S.comp,this.data=E,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(S),E.sy===1?(this.ir=PropertyFactory.getProp(S,E.ir,0,0,this),this.is=PropertyFactory.getProp(S,E.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(S,E.pt,0,0,this),this.p=PropertyFactory.getProp(S,E.p,1,0,this),this.r=PropertyFactory.getProp(S,E.r,0,degToRads,this),this.or=PropertyFactory.getProp(S,E.or,0,0,this),this.os=PropertyFactory.getProp(S,E.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return _.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var S,E,R,b,A=2*Math.floor(this.pt.v),C=2*Math.PI/A,O=!0,M=this.or.v,T=this.ir.v,j=this.os.v,I=this.is.v,D=2*Math.PI*M/(2*A),L=2*Math.PI*T/(2*A),F=-Math.PI/2;F+=this.r.v;var N=this.data.d===3?-1:1;for(this.v._length=0,S=0;S<A;S+=1){R=O?j:I,b=O?D:L;var B=(E=O?M:T)*Math.cos(F),z=E*Math.sin(F),V=B===0&&z===0?0:z/Math.sqrt(B*B+z*z),W=B===0&&z===0?0:-B/Math.sqrt(B*B+z*z);B+=+this.p.v[0],z+=+this.p.v[1],this.v.setTripleAt(B,z,B-V*b*R*N,z-W*b*R*N,B+V*b*R*N,z+W*b*R*N,S,!0),O=!O,F+=C*N}},convertPolygonToPath:function(){var S,E=Math.floor(this.pt.v),R=2*Math.PI/E,b=this.or.v,A=this.os.v,C=2*Math.PI*b/(4*E),O=.5*-Math.PI,M=this.data.d===3?-1:1;for(O+=this.r.v,this.v._length=0,S=0;S<E;S+=1){var T=b*Math.cos(O),j=b*Math.sin(O),I=T===0&&j===0?0:j/Math.sqrt(T*T+j*j),D=T===0&&j===0?0:-T/Math.sqrt(T*T+j*j);T+=+this.p.v[0],j+=+this.p.v[1],this.v.setTripleAt(T,j,T-I*C*A*M,j-D*C*A*M,T+I*C*A*M,j+D*C*A*M,S,!0),O+=R*M}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],_),_}(),m=function(){function _(S,E){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=S,this.comp=S.comp,this.frameId=-1,this.d=E.d,this.initDynamicPropertyContainer(S),this.p=PropertyFactory.getProp(S,E.p,1,0,this),this.s=PropertyFactory.getProp(S,E.s,1,0,this),this.r=PropertyFactory.getProp(S,E.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return _.prototype={convertRectToPath:function(){var S=this.p.v[0],E=this.p.v[1],R=this.s.v[0]/2,b=this.s.v[1]/2,A=bmMin(R,b,this.r.v),C=A*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(S+R,E-b+A,S+R,E-b+A,S+R,E-b+C,0,!0),this.v.setTripleAt(S+R,E+b-A,S+R,E+b-C,S+R,E+b-A,1,!0),A!==0?(this.v.setTripleAt(S+R-A,E+b,S+R-A,E+b,S+R-C,E+b,2,!0),this.v.setTripleAt(S-R+A,E+b,S-R+C,E+b,S-R+A,E+b,3,!0),this.v.setTripleAt(S-R,E+b-A,S-R,E+b-A,S-R,E+b-C,4,!0),this.v.setTripleAt(S-R,E-b+A,S-R,E-b+C,S-R,E-b+A,5,!0),this.v.setTripleAt(S-R+A,E-b,S-R+A,E-b,S-R+C,E-b,6,!0),this.v.setTripleAt(S+R-A,E-b,S+R-C,E-b,S+R-A,E-b,7,!0)):(this.v.setTripleAt(S-R,E+b,S-R+C,E+b,S-R,E+b,2),this.v.setTripleAt(S-R,E-b,S-R,E-b+C,S-R,E-b,3))):(this.v.setTripleAt(S+R,E-b+A,S+R,E-b+C,S+R,E-b+A,0,!0),A!==0?(this.v.setTripleAt(S+R-A,E-b,S+R-A,E-b,S+R-C,E-b,1,!0),this.v.setTripleAt(S-R+A,E-b,S-R+C,E-b,S-R+A,E-b,2,!0),this.v.setTripleAt(S-R,E-b+A,S-R,E-b+A,S-R,E-b+C,3,!0),this.v.setTripleAt(S-R,E+b-A,S-R,E+b-C,S-R,E+b-A,4,!0),this.v.setTripleAt(S-R+A,E+b,S-R+A,E+b,S-R+C,E+b,5,!0),this.v.setTripleAt(S+R-A,E+b,S+R-C,E+b,S+R-A,E+b,6,!0),this.v.setTripleAt(S+R,E+b-A,S+R,E+b-A,S+R,E+b-C,7,!0)):(this.v.setTripleAt(S-R,E-b,S-R+C,E-b,S-R,E-b,1,!0),this.v.setTripleAt(S-R,E+b,S-R,E+b-C,S-R,E+b,2,!0),this.v.setTripleAt(S+R,E+b,S+R-C,E+b,S+R,E+b,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],_),_}(),g={getShapeProp:function(_,S,E){var R;return E===3||E===4?R=(E===3?S.pt:S.ks).k.length?new f(_,S,E):new l(_,S,E):E===5?R=new m(_,S):E===6?R=new p(_,S):E===7&&(R=new d(_,S)),R.k&&_.addDynamicProperty(R),R},getConstructorFunction:function(){return l},getKeyframedConstructorFunction:function(){return f}};return g}(),Matrix=function(){var e=Math.cos,t=Math.sin,n=Math.tan,i=Math.round;function o(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function l(q){if(q===0)return this;var G=e(q),H=t(q);return this._t(G,-H,0,0,H,G,0,0,0,0,1,0,0,0,0,1)}function u(q){if(q===0)return this;var G=e(q),H=t(q);return this._t(1,0,0,0,0,G,-H,0,0,H,G,0,0,0,0,1)}function f(q){if(q===0)return this;var G=e(q),H=t(q);return this._t(G,0,H,0,0,1,0,0,-H,0,G,0,0,0,0,1)}function p(q){if(q===0)return this;var G=e(q),H=t(q);return this._t(G,-H,0,0,H,G,0,0,0,0,1,0,0,0,0,1)}function d(q,G){return this._t(1,G,q,1,0,0)}function m(q,G){return this.shear(n(q),n(G))}function g(q,G){var H=e(G),Z=t(G);return this._t(H,Z,0,0,-Z,H,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(q),1,0,0,0,0,1,0,0,0,0,1)._t(H,-Z,0,0,Z,H,0,0,0,0,1,0,0,0,0,1)}function _(q,G,H){return H||H===0||(H=1),q===1&&G===1&&H===1?this:this._t(q,0,0,0,0,G,0,0,0,0,H,0,0,0,0,1)}function S(q,G,H,Z,ee,ne,ie,oe,ce,le,ue,te,se,ae,K,pe){return this.props[0]=q,this.props[1]=G,this.props[2]=H,this.props[3]=Z,this.props[4]=ee,this.props[5]=ne,this.props[6]=ie,this.props[7]=oe,this.props[8]=ce,this.props[9]=le,this.props[10]=ue,this.props[11]=te,this.props[12]=se,this.props[13]=ae,this.props[14]=K,this.props[15]=pe,this}function E(q,G,H){return H=H||0,q!==0||G!==0||H!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,q,G,H,1):this}function R(q,G,H,Z,ee,ne,ie,oe,ce,le,ue,te,se,ae,K,pe){var J=this.props;if(q===1&&G===0&&H===0&&Z===0&&ee===0&&ne===1&&ie===0&&oe===0&&ce===0&&le===0&&ue===1&&te===0)return J[12]=J[12]*q+J[15]*se,J[13]=J[13]*ne+J[15]*ae,J[14]=J[14]*ue+J[15]*K,J[15]*=pe,this._identityCalculated=!1,this;var fe=J[0],de=J[1],me=J[2],ye=J[3],he=J[4],ge=J[5],Se=J[6],ve=J[7],_e=J[8],xe=J[9],be=J[10],Pe=J[11],we=J[12],Ee=J[13],Re=J[14],Ce=J[15];return J[0]=fe*q+de*ee+me*ce+ye*se,J[1]=fe*G+de*ne+me*le+ye*ae,J[2]=fe*H+de*ie+me*ue+ye*K,J[3]=fe*Z+de*oe+me*te+ye*pe,J[4]=he*q+ge*ee+Se*ce+ve*se,J[5]=he*G+ge*ne+Se*le+ve*ae,J[6]=he*H+ge*ie+Se*ue+ve*K,J[7]=he*Z+ge*oe+Se*te+ve*pe,J[8]=_e*q+xe*ee+be*ce+Pe*se,J[9]=_e*G+xe*ne+be*le+Pe*ae,J[10]=_e*H+xe*ie+be*ue+Pe*K,J[11]=_e*Z+xe*oe+be*te+Pe*pe,J[12]=we*q+Ee*ee+Re*ce+Ce*se,J[13]=we*G+Ee*ne+Re*le+Ce*ae,J[14]=we*H+Ee*ie+Re*ue+Ce*K,J[15]=we*Z+Ee*oe+Re*te+Ce*pe,this._identityCalculated=!1,this}function b(q){var G=q.props;return this.transform(G[0],G[1],G[2],G[3],G[4],G[5],G[6],G[7],G[8],G[9],G[10],G[11],G[12],G[13],G[14],G[15])}function A(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function C(q){for(var G=0;G<16;){if(q.props[G]!==this.props[G])return!1;G+=1}return!0}function O(q){var G;for(G=0;G<16;G+=1)q.props[G]=this.props[G];return q}function M(q){var G;for(G=0;G<16;G+=1)this.props[G]=q[G]}function T(q,G,H){return{x:q*this.props[0]+G*this.props[4]+H*this.props[8]+this.props[12],y:q*this.props[1]+G*this.props[5]+H*this.props[9]+this.props[13],z:q*this.props[2]+G*this.props[6]+H*this.props[10]+this.props[14]}}function j(q,G,H){return q*this.props[0]+G*this.props[4]+H*this.props[8]+this.props[12]}function I(q,G,H){return q*this.props[1]+G*this.props[5]+H*this.props[9]+this.props[13]}function D(q,G,H){return q*this.props[2]+G*this.props[6]+H*this.props[10]+this.props[14]}function L(){var q=this.props[0]*this.props[5]-this.props[1]*this.props[4],G=this.props[5]/q,H=-this.props[1]/q,Z=-this.props[4]/q,ee=this.props[0]/q,ne=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/q,ie=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/q,oe=new Matrix;return oe.props[0]=G,oe.props[1]=H,oe.props[4]=Z,oe.props[5]=ee,oe.props[12]=ne,oe.props[13]=ie,oe}function F(q){return this.getInverseMatrix().applyToPointArray(q[0],q[1],q[2]||0)}function N(q){var G,H=q.length,Z=[];for(G=0;G<H;G+=1)Z[G]=F(q[G]);return Z}function B(q,G,H){var Z=createTypedArray("float32",6);if(this.isIdentity())Z[0]=q[0],Z[1]=q[1],Z[2]=G[0],Z[3]=G[1],Z[4]=H[0],Z[5]=H[1];else{var ee=this.props[0],ne=this.props[1],ie=this.props[4],oe=this.props[5],ce=this.props[12],le=this.props[13];Z[0]=q[0]*ee+q[1]*ie+ce,Z[1]=q[0]*ne+q[1]*oe+le,Z[2]=G[0]*ee+G[1]*ie+ce,Z[3]=G[0]*ne+G[1]*oe+le,Z[4]=H[0]*ee+H[1]*ie+ce,Z[5]=H[0]*ne+H[1]*oe+le}return Z}function z(q,G,H){return this.isIdentity()?[q,G,H]:[q*this.props[0]+G*this.props[4]+H*this.props[8]+this.props[12],q*this.props[1]+G*this.props[5]+H*this.props[9]+this.props[13],q*this.props[2]+G*this.props[6]+H*this.props[10]+this.props[14]]}function V(q,G){if(this.isIdentity())return q+","+G;var H=this.props;return Math.round(100*(q*H[0]+G*H[4]+H[12]))/100+","+Math.round(100*(q*H[1]+G*H[5]+H[13]))/100}function W(){for(var q=0,G=this.props,H="matrix3d(";q<16;)H+=i(1e4*G[q])/1e4,H+=q===15?")":",",q+=1;return H}function U(q){return q<1e-6&&q>0||q>-1e-6&&q<0?i(1e4*q)/1e4:q}function Q(){var q=this.props;return"matrix("+U(q[0])+","+U(q[1])+","+U(q[4])+","+U(q[5])+","+U(q[12])+","+U(q[13])+")"}return function(){this.reset=o,this.rotate=l,this.rotateX=u,this.rotateY=f,this.rotateZ=p,this.skew=m,this.skewFromAxis=g,this.shear=d,this.scale=_,this.setTransform=S,this.translate=E,this.transform=R,this.multiply=b,this.applyToPoint=T,this.applyToX=j,this.applyToY=I,this.applyToZ=D,this.applyToPointArray=z,this.applyToTriplePoints=B,this.applyToPointStringified=V,this.toCSS=W,this.to2dCSS=Q,this.clone=O,this.cloneFromProps=M,this.equals=C,this.inversePoints=N,this.inversePoint=F,this.getInverseMatrix=L,this._t=this.transform,this.isIdentity=A,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return(_typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var i=t[n].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(n,i){t[n]||(t[n]=i)},e.getModifier=function(n,i,o){return new t[n](i,o)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,i,o){var l=[];t<=1?l.push({s:e,e:t}):e>=1?l.push({s:e-1,e:t-1}):(l.push({s:e,e:1}),l.push({s:0,e:t-1}));var u,f,p=[],d=l.length;for(u=0;u<d;u+=1){var m,g;(f=l[u]).e*o<i||f.s*o>i+n||(m=f.s*o<=i?0:(f.s*o-i)/n,g=f.e*o>=i+n?1:(f.e*o-i)/n,p.push([m,g]))}return p.length||p.push([0,0]),p},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n,i,o;if(this._mdf||e){var l=this.o.v%360/360;if(l<0&&(l+=1),(t=this.s.v>1?1+l:this.s.v<0?0+l:this.s.v+l)>(n=this.e.v>1?1+l:this.e.v<0?0+l:this.e.v+l)){var u=t;t=n,n=u}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var f,p,d,m,g,_=this.shapes.length,S=0;if(n===t)for(o=0;o<_;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection,this._mdf&&(this.shapes[o].pathsData.length=0);else if(n===1&&t===0||n===0&&t===1){if(this._mdf)for(o=0;o<_;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var E,R,b=[];for(o=0;o<_;o+=1)if((E=this.shapes[o]).shape._mdf||this._mdf||e||this.m===2){if(p=(i=E.shape.paths)._length,g=0,!E.shape._mdf&&E.pathsData.length)g=E.totalShapeLength;else{for(d=this.releasePathsData(E.pathsData),f=0;f<p;f+=1)m=bez.getSegmentsLength(i.shapes[f]),d.push(m),g+=m.totalLength;E.totalShapeLength=g,E.pathsData=d}S+=g,E.shape._mdf=!0}else E.shape.paths=E.localShapeCollection;var A,C=t,O=n,M=0;for(o=_-1;o>=0;o-=1)if((E=this.shapes[o]).shape._mdf){for((R=E.localShapeCollection).releaseShapes(),this.m===2&&_>1?(A=this.calculateShapeEdges(t,n,E.totalShapeLength,M,S),M+=E.totalShapeLength):A=[[C,O]],p=A.length,f=0;f<p;f+=1){C=A[f][0],O=A[f][1],b.length=0,O<=1?b.push({s:E.totalShapeLength*C,e:E.totalShapeLength*O}):C>=1?b.push({s:E.totalShapeLength*(C-1),e:E.totalShapeLength*(O-1)}):(b.push({s:E.totalShapeLength*C,e:E.totalShapeLength}),b.push({s:0,e:E.totalShapeLength*(O-1)}));var T=this.addShapes(E,b[0]);if(b[0].s!==b[0].e){if(b.length>1)if(E.shape.paths.shapes[E.shape.paths._length-1].c){var j=T.pop();this.addPaths(T,R),T=this.addShapes(E,b[1],j)}else this.addPaths(T,R),T=this.addShapes(E,b[1]);this.addPaths(T,R)}}E.shape.paths=R}}},TrimModifier.prototype.addPaths=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,i,o,l,u){o.setXYAt(t[0],t[1],"o",l),o.setXYAt(n[0],n[1],"i",l+1),u&&o.setXYAt(e[0],e[1],"v",l),o.setXYAt(i[0],i[1],"v",l+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,i){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),i&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var i,o,l,u,f,p,d,m,g=e.pathsData,_=e.shape.paths.shapes,S=e.shape.paths._length,E=0,R=[],b=!0;for(n?(f=n._length,m=n._length):(n=shapePool.newElement(),f=0,m=0),R.push(n),i=0;i<S;i+=1){for(p=g[i].lengths,n.c=_[i].c,l=_[i].c?p.length:p.length+1,o=1;o<l;o+=1)if(E+(u=p[o-1]).addedLength<t.s)E+=u.addedLength,n.c=!1;else{if(E>t.e){n.c=!1;break}t.s<=E&&t.e>=E+u.addedLength?(this.addSegment(_[i].v[o-1],_[i].o[o-1],_[i].i[o],_[i].v[o],n,f,b),b=!1):(d=bez.getNewSegment(_[i].v[o-1],_[i].v[o],_[i].o[o-1],_[i].i[o],(t.s-E)/u.addedLength,(t.e-E)/u.addedLength,p[o-1]),this.addSegmentFromArray(d,n,f,b),b=!1,n.c=!1),E+=u.addedLength,f+=1}if(_[i].c&&p.length){if(u=p[o-1],E<=t.e){var A=p[o-1].addedLength;t.s<=E&&t.e>=E+A?(this.addSegment(_[i].v[o-1],_[i].o[o-1],_[i].i[0],_[i].v[0],n,f,b),b=!1):(d=bez.getNewSegment(_[i].v[o-1],_[i].v[0],_[i].o[o-1],_[i].i[0],(t.s-E)/A,(t.e-E)/A,p[o-1]),this.addSegmentFromArray(d,n,f,b),b=!1,n.c=!1)}else n.c=!1;E+=u.addedLength,f+=1}if(n._length&&(n.setXYAt(n.v[m][0],n.v[m][1],"i",m),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),E>t.e)break;i<S-1&&(n=shapePool.newElement(),b=!0,R.push(n),f=0)}return R},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,i=[0,0],o=e._length,l=0;for(l=0;l<o;l+=1)i[0]+=e.v[l][0],i[1]+=e.v[l][1];i[0]/=o,i[1]/=o;var u,f,p,d,m,g,_=shapePool.newElement();for(_.c=e.c,l=0;l<o;l+=1)u=e.v[l][0]+(i[0]-e.v[l][0])*n,f=e.v[l][1]+(i[1]-e.v[l][1])*n,p=e.o[l][0]+(i[0]-e.o[l][0])*-n,d=e.o[l][1]+(i[1]-e.o[l][1])*-n,m=e.i[l][0]+(i[0]-e.i[l][0])*-n,g=e.i[l][1]+(i[1]-e.i[l][1])*-n,_.setTripleAt(u,f,p,d,m,g,l);return _},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,i,o,l,u,f=this.shapes.length,p=this.amount.v;if(p!==0)for(n=0;n<f;n+=1){if(u=(l=this.shapes[n]).localShapeCollection,l.shape._mdf||this._mdf||e)for(u.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,o=l.shape.paths._length,i=0;i<o;i+=1)u.addShape(this.processPath(t[i],p));l.shape.paths=l.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(n,i,o){if(this.elem=n,this.frameId=-1,this.propType="transform",this.data=i,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(o||n),i.p&&i.p.s?(this.px=PropertyFactory.getProp(n,i.p.x,0,0,this),this.py=PropertyFactory.getProp(n,i.p.y,0,0,this),i.p.z&&(this.pz=PropertyFactory.getProp(n,i.p.z,0,0,this))):this.p=PropertyFactory.getProp(n,i.p||{k:[0,0,0]},1,0,this),i.rx){if(this.rx=PropertyFactory.getProp(n,i.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(n,i.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(n,i.rz,0,degToRads,this),i.or.k[0].ti){var l,u=i.or.k.length;for(l=0;l<u;l+=1)i.or.k[l].to=null,i.or.k[l].ti=null}this.or=PropertyFactory.getProp(n,i.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(n,i.r||{k:0},0,degToRads,this);i.sk&&(this.sk=PropertyFactory.getProp(n,i.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(n,i.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(n,i.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(n,i.s||{k:[100,100,100]},1,.01,this),i.o?this.o=PropertyFactory.getProp(n,i.o,0,.01,n):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(n){var i=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||i,this.a&&n.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&n.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&n.skewFromAxis(-this.sk.v,this.sa.v),this.r?n.rotate(-this.r.v):n.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?n.translate(this.px.v,this.py.v,-this.pz.v):n.translate(this.px.v,this.py.v,0):n.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(n){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||n){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var o,l;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(o=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),l=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(o=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),l=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(o=this.p.pv,l=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){o=[],l=[];var u=this.px,f=this.py;u._caching.lastFrame+u.offsetTime<=u.keyframes[0].t?(o[0]=u.getValueAtTime((u.keyframes[0].t+.01)/i,0),o[1]=f.getValueAtTime((f.keyframes[0].t+.01)/i,0),l[0]=u.getValueAtTime(u.keyframes[0].t/i,0),l[1]=f.getValueAtTime(f.keyframes[0].t/i,0)):u._caching.lastFrame+u.offsetTime>=u.keyframes[u.keyframes.length-1].t?(o[0]=u.getValueAtTime(u.keyframes[u.keyframes.length-1].t/i,0),o[1]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/i,0),l[0]=u.getValueAtTime((u.keyframes[u.keyframes.length-1].t-.01)/i,0),l[1]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-.01)/i,0)):(o=[u.pv,f.pv],l[0]=u.getValueAtTime((u._caching.lastFrame+u.offsetTime-.01)/i,u.offsetTime),l[1]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-.01)/i,f.offsetTime))}else o=l=e;this.v.rotate(-Math.atan2(o[1]-l[1],o[0]-l[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(n){this._addDynamicProperty(n),this.elem.addDynamicProperty(n),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(n,i,o){return new t(n,i,o)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(e===0)return[];var i=t*t-4*e*n;if(i<0)return[];var o=-t/(2*e);if(i===0)return[o];var l=Math.sqrt(i)/(2*e);return[o-l,o+l]}function polynomialCoefficients(e,t,n,i){return[3*t-e-3*n+i,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,i,o){o&&pointEqual(e,t)&&(t=lerpPoint(e,i,1/3)),o&&pointEqual(n,i)&&(n=lerpPoint(e,i,2/3));var l=polynomialCoefficients(e[0],t[0],n[0],i[0]),u=polynomialCoefficients(e[1],t[1],n[1],i[1]);this.a=[l[0],u[0]],this.b=[l[1],u[1]],this.c=[l[2],u[2]],this.d=[l[3],u[3]],this.points=[e,t,n,i]}function extrema(e,t){var n=e.points[0][t],i=e.points[e.points.length-1][t];if(n>i){var o=i;i=n,n=o}for(var l=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),u=0;u<l.length;u+=1)if(l[u]>0&&l[u]<1){var f=e.point(l[u])[t];f<n?n=f:f>i&&(i=f)}return{min:n,max:i}}function intersectData(e,t,n){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,n,i,o,l){if(boxIntersect(e,t))if(n>=l||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i)o.push([e.t,t.t]);else{var u=splitData(e),f=splitData(t);intersectsImpl(u[0],f[0],n+1,i,o,l),intersectsImpl(u[0],f[1],n+1,i,o,l),intersectsImpl(u[1],f[0],n+1,i,o,l),intersectsImpl(u[1],f[1],n+1,i,o,l)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,n,i){var o=[e[0],e[1],1],l=[t[0],t[1],1],u=[n[0],n[1],1],f=[i[0],i[1],1],p=crossProduct(crossProduct(o,l),crossProduct(u,f));return floatZero(p[2])?null:[p[0]/p[2],p[1]/p[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,n,i,o,l,u){var f=n-Math.PI/2,p=n+Math.PI/2,d=t[0]+Math.cos(n)*i*o,m=t[1]-Math.sin(n)*i*o;e.setTripleAt(d,m,d+Math.cos(f)*l,m-Math.sin(f)*l,d+Math.cos(p)*u,m-Math.sin(p)*u,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],i=.5*-Math.PI;return[Math.cos(i)*n[0]-Math.sin(i)*n[1],Math.sin(i)*n[0]+Math.cos(i)*n[1]]}function getProjectingAngle(e,t){var n=t===0?e.length()-1:t-1,i=(t+1)%e.length(),o=getPerpendicularVector(e.v[n],e.v[i]);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(e,t,n,i,o,l,u){var f=getProjectingAngle(t,n),p=t.v[n%t._length],d=t.v[n===0?t._length-1:n-1],m=t.v[(n+1)%t._length],g=l===2?Math.sqrt(Math.pow(p[0]-d[0],2)+Math.pow(p[1]-d[1],2)):0,_=l===2?Math.sqrt(Math.pow(p[0]-m[0],2)+Math.pow(p[1]-m[1],2)):0;setPoint(e,t.v[n%t._length],f,u,i,_/(2*(o+1)),g/(2*(o+1)))}function zigZagSegment(e,t,n,i,o,l){for(var u=0;u<i;u+=1){var f=(u+1)/(i+1),p=o===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,d=t.normalAngle(f);setPoint(e,t.point(f),d,l,n,p/(2*(i+1)),p/(2*(i+1))),l=-l}return l}function linearOffset(e,t,n){var i=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,i,n),polarOffset(t,i,n)]}function offsetSegment(e,t){var n,i,o,l,u,f,p;n=(p=linearOffset(e.points[0],e.points[1],t))[0],i=p[1],o=(p=linearOffset(e.points[1],e.points[2],t))[0],l=p[1],u=(p=linearOffset(e.points[2],e.points[3],t))[0],f=p[1];var d=lineIntersection(n,i,o,l);d===null&&(d=i);var m=lineIntersection(u,f,o,l);return m===null&&(m=u),new PolynomialBezier(n,d,m,f)}function joinLines(e,t,n,i,o){var l=t.points[3],u=n.points[0];if(i===3||pointEqual(l,u))return l;if(i===2){var f=-t.tangentAngle(1),p=-n.tangentAngle(0)+Math.PI,d=lineIntersection(l,polarOffset(l,f+Math.PI/2,100),u,polarOffset(u,f+Math.PI/2,100)),m=d?pointDistance(d,l):pointDistance(l,u)/2,g=polarOffset(l,f,2*m*roundCorner);return e.setXYAt(g[0],g[1],"o",e.length()-1),g=polarOffset(u,p,2*m*roundCorner),e.setTripleAt(u[0],u[1],u[0],u[1],g[0],g[1],e.length()),u}var _=lineIntersection(pointEqual(l,t.points[2])?t.points[0]:t.points[2],l,u,pointEqual(u,n.points[1])?n.points[3]:n.points[1]);return _&&pointDistance(_,l)<o?(e.setTripleAt(_[0],_[1],_[0],_[1],_[0],_[1],e.length()),_):l}function getIntersection(e,t){var n=e.intersections(t);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,t){var n=e.slice(),i=t.slice(),o=getIntersection(e[e.length-1],t[0]);return o&&(n[e.length-1]=e[e.length-1].split(o[0])[0],i[0]=t[0].split(o[1])[1]),e.length>1&&t.length>1&&(o=getIntersection(e[0],t[t.length-1]))?[[e[0].split(o[0])[0]],[t[t.length-1].split(o[1])[1]]]:[n,i]}function pruneIntersections(e){for(var t,n=1;n<e.length;n+=1)t=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var n,i,o,l,u=e.inflectionPoints();if(u.length===0)return[offsetSegment(e,t)];if(u.length===1||floatEqual(u[1],1))return n=(o=e.split(u[0]))[0],i=o[1],[offsetSegment(n,t),offsetSegment(i,t)];n=(o=e.split(u[0]))[0];var f=(u[1]-u[0])/(1-u[0]);return l=(o=o[1].split(f))[0],i=o[1],[offsetSegment(n,t),offsetSegment(l,t),offsetSegment(i,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",i="normal",o=t.length,l=0;l<o;l+=1)switch(t[l].toLowerCase()){case"italic":i="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:i,weight:e.fWeight||n}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,i,o,l){var u=l?-1:1,f=i.s.v[0]+(1-i.s.v[0])*(1-o),p=i.s.v[1]+(1-i.s.v[1])*(1-o);e.translate(i.p.v[0]*u*o,i.p.v[1]*u*o,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*u*o),t.translate(i.a.v[0],i.a.v[1],i.a.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.scale(l?1/f:f,l?1/p:p),n.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,i){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)e[n]._render=t,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,i,o,l,u=!1;if(this._mdf||e){var f,p=Math.ceil(this.c.v);if(this._groups.length<p){for(;this._groups.length<p;){var d={it:this.cloneElements(this._elements),ty:"gr"};d.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,d),this._groups.splice(0,0,d),this._currentCopies+=1}this.elem.reloadShapes(),u=!0}for(l=0,i=0;i<=this._groups.length-1;i+=1){if(f=l<p,this._groups[i]._render=f,this.changeGroupRender(this._groups[i].it,f),!f){var m=this.elemsData[i].it,g=m[m.length-1];g.transform.op.v!==0?(g.transform.op._mdf=!0,g.transform.op.v=0):g.transform.op._mdf=!1}l+=1}this._currentCopies=p;var _=this.o.v,S=_%1,E=_>0?Math.floor(_):Math.ceil(_),R=this.pMatrix.props,b=this.rMatrix.props,A=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var C,O,M=0;if(_>0){for(;M<E;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),M+=1;S&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,S,!1),M+=S)}else if(_<0){for(;M>E;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),M-=1;S&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-S,!0),M-=S)}for(i=this.data.m===1?0:this._currentCopies-1,o=this.data.m===1?1:-1,l=this._currentCopies;l;){if(O=(n=(t=this.elemsData[i].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),M!==0){for((i!==0&&o===1||i!==this._currentCopies-1&&o===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(A[0],A[1],A[2],A[3],A[4],A[5],A[6],A[7],A[8],A[9],A[10],A[11],A[12],A[13],A[14],A[15]),this.matrix.transform(R[0],R[1],R[2],R[3],R[4],R[5],R[6],R[7],R[8],R[9],R[10],R[11],R[12],R[13],R[14],R[15]),C=0;C<O;C+=1)n[C]=this.matrix.props[C];this.matrix.reset()}else for(this.matrix.reset(),C=0;C<O;C+=1)n[C]=this.matrix.props[C];M+=1,l-=1,i+=o}}else for(l=this._currentCopies,i=0,o=1;l;)n=(t=this.elemsData[i].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,l-=1,i+=o;return u},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n,i=shapePool.newElement();i.c=e.c;var o,l,u,f,p,d,m,g,_,S,E,R,b=e._length,A=0;for(n=0;n<b;n+=1)o=e.v[n],u=e.o[n],l=e.i[n],o[0]===u[0]&&o[1]===u[1]&&o[0]===l[0]&&o[1]===l[1]?n!==0&&n!==b-1||e.c?(f=n===0?e.v[b-1]:e.v[n-1],d=(p=Math.sqrt(Math.pow(o[0]-f[0],2)+Math.pow(o[1]-f[1],2)))?Math.min(p/2,t)/p:0,m=E=o[0]+(f[0]-o[0])*d,g=R=o[1]-(o[1]-f[1])*d,_=m-(m-o[0])*roundCorner,S=g-(g-o[1])*roundCorner,i.setTripleAt(m,g,_,S,E,R,A),A+=1,f=n===b-1?e.v[0]:e.v[n+1],d=(p=Math.sqrt(Math.pow(o[0]-f[0],2)+Math.pow(o[1]-f[1],2)))?Math.min(p/2,t)/p:0,m=_=o[0]+(f[0]-o[0])*d,g=S=o[1]+(f[1]-o[1])*d,E=m-(m-o[0])*roundCorner,R=g-(g-o[1])*roundCorner,i.setTripleAt(m,g,_,S,E,R,A),A+=1):(i.setTripleAt(o[0],o[1],u[0],u[1],l[0],l[1],A),A+=1):(i.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],A),A+=1);return i},RoundCornersModifier.prototype.processShapes=function(e){var t,n,i,o,l,u,f=this.shapes.length,p=this.rd.v;if(p!==0)for(n=0;n<f;n+=1){if(u=(l=this.shapes[n]).localShapeCollection,l.shape._mdf||this._mdf||e)for(u.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,o=l.shape.paths._length,i=0;i<o;i+=1)u.addShape(this.processPath(t[i],p));l.shape.paths=l.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var i=Math.sqrt(n);return floatZero(i)?i>0&&i<1?[t]:[]:[t-i,t+i].filter(function(o){return o>0&&o<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),o=lerpPoint(t,n,e),l=lerpPoint(n,i,e),u=lerpPoint(o,l,e);return[new PolynomialBezier(this.points[0],t,o,u,!0),new PolynomialBezier(u,l,i,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,n){t===void 0&&(t=2),n===void 0&&(n=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,n),i},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0},ZigZagModifier.prototype.processPath=function(e,t,n,i){var o=e._length,l=shapePool.newElement();if(l.c=e.c,e.c||(o-=1),o===0)return l;var u=-1,f=PolynomialBezier.shapeSegment(e,0);zigZagCorner(l,e,0,t,n,i,u);for(var p=0;p<o;p+=1)u=zigZagSegment(l,f,t,n,i,-u),f=p!==o-1||e.c?PolynomialBezier.shapeSegment(e,(p+1)%o):null,zigZagCorner(l,e,p+1,t,n,i,u);return l},ZigZagModifier.prototype.processShapes=function(e){var t,n,i,o,l,u,f=this.shapes.length,p=this.amplitude.v,d=Math.max(0,Math.round(this.frequency.v)),m=this.pointsType.v;if(p!==0)for(n=0;n<f;n+=1){if(u=(l=this.shapes[n]).localShapeCollection,l.shape._mdf||this._mdf||e)for(u.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,o=l.shape.paths._length,i=0;i<o;i+=1)u.addShape(this.processPath(t[i],p,d,m));l.shape.paths=l.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,n,i){var o=shapePool.newElement();o.c=e.c;var l,u,f,p=e.length();e.c||(p-=1);var d=[];for(l=0;l<p;l+=1)f=PolynomialBezier.shapeSegment(e,l),d.push(offsetSegmentSplit(f,t));if(!e.c)for(l=p-1;l>=0;l-=1)f=PolynomialBezier.shapeSegmentInverted(e,l),d.push(offsetSegmentSplit(f,t));d=pruneIntersections(d);var m=null,g=null;for(l=0;l<d.length;l+=1){var _=d[l];for(g&&(m=joinLines(o,g,_[0],n,i)),g=_[_.length-1],u=0;u<_.length;u+=1)f=_[u],m&&pointEqual(f.points[0],m)?o.setXYAt(f.points[1][0],f.points[1][1],"o",o.length()-1):o.setTripleAt(f.points[0][0],f.points[0][1],f.points[1][0],f.points[1][1],f.points[0][0],f.points[0][1],o.length()),o.setTripleAt(f.points[3][0],f.points[3][1],f.points[3][0],f.points[3][1],f.points[2][0],f.points[2][1],o.length()),m=f.points[3]}return d.length&&joinLines(o,g,d[0][0],n,i),o},OffsetPathModifier.prototype.processShapes=function(e){var t,n,i,o,l,u,f=this.shapes.length,p=this.amount.v,d=this.miterLimit.v,m=this.lineJoin;if(p!==0)for(n=0;n<f;n+=1){if(u=(l=this.shapes[n]).localShapeCollection,l.shape._mdf||this._mdf||e)for(u.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,o=l.shape.paths._length,i=0;i<o;i+=1)u.addShape(this.processPath(t[i],p,m,d));l.shape.paths=l.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function i(p,d){var m=createTag("span");m.setAttribute("aria-hidden",!0),m.style.fontFamily=d;var g=createTag("span");g.innerText="giItT1WQy@!-/#",m.style.position="absolute",m.style.left="-10000px",m.style.top="-10000px",m.style.fontSize="300px",m.style.fontVariant="normal",m.style.fontStyle="normal",m.style.fontWeight="normal",m.style.letterSpacing="0",m.appendChild(g),document.body.appendChild(m);var _=g.offsetWidth;return g.style.fontFamily=function(S){var E,R=S.split(","),b=R.length,A=[];for(E=0;E<b;E+=1)R[E]!=="sans-serif"&&R[E]!=="monospace"&&A.push(R[E]);return A.join(",")}(p)+", "+d,{node:g,w:_,parent:m}}function o(p,d){var m,g=document.body&&d?"svg":"canvas",_=getFontProperties(p);if(g==="svg"){var S=createNS("text");S.style.fontSize="100px",S.setAttribute("font-family",p.fFamily),S.setAttribute("font-style",_.style),S.setAttribute("font-weight",_.weight),S.textContent="1",p.fClass?(S.style.fontFamily="inherit",S.setAttribute("class",p.fClass)):S.style.fontFamily=p.fFamily,d.appendChild(S),m=S}else{var E=new OffscreenCanvas(500,500).getContext("2d");E.font=_.style+" "+_.weight+" 100px "+p.fFamily,m=E}return{measureText:function(R){return g==="svg"?(m.textContent=R,m.getComputedTextLength()):m.measureText(R).width}}}function l(p){var d=0,m=p.charCodeAt(0);if(m>=55296&&m<=56319){var g=p.charCodeAt(1);g>=56320&&g<=57343&&(d=1024*(m-55296)+g-56320+65536)}return d}function u(p){var d=l(p);return d>=127462&&d<=127487}var f=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return f.isModifier=function(p,d){var m=p.toString(16)+d.toString(16);return n.indexOf(m)!==-1},f.isZeroWidthJoiner=function(p){return p===8205},f.isFlagEmoji=function(p){return u(p.substr(0,2))&&u(p.substr(2,2))},f.isRegionalCode=u,f.isCombinedCharacter=function(p){return t.indexOf(p)!==-1},f.isRegionalFlag=function(p,d){var m=l(p.substr(d,2));if(m!==127988)return!1;var g=0;for(d+=2;g<5;){if((m=l(p.substr(d,2)))<917601||m>917626)return!1;g+=1,d+=2}return l(p.substr(d,2))===917631},f.isVariationSelector=function(p){return p===65039},f.BLACK_FLAG_CODE_POINT=127988,f.prototype={addChars:function(p){if(p){var d;this.chars||(this.chars=[]);var m,g,_=p.length,S=this.chars.length;for(d=0;d<_;d+=1){for(m=0,g=!1;m<S;)this.chars[m].style===p[d].style&&this.chars[m].fFamily===p[d].fFamily&&this.chars[m].ch===p[d].ch&&(g=!0),m+=1;g||(this.chars.push(p[d]),S+=1)}}},addFonts:function(p,d){if(p){if(this.chars)return this.isLoaded=!0,void(this.fonts=p.list);if(!document.body)return this.isLoaded=!0,p.list.forEach(function(M){M.helper=o(M),M.cache={}}),void(this.fonts=p.list);var m,g=p.list,_=g.length,S=_;for(m=0;m<_;m+=1){var E,R,b=!0;if(g[m].loaded=!1,g[m].monoCase=i(g[m].fFamily,"monospace"),g[m].sansCase=i(g[m].fFamily,"sans-serif"),g[m].fPath){if(g[m].fOrigin==="p"||g[m].origin===3){if((E=document.querySelectorAll('style[f-forigin="p"][f-family="'+g[m].fFamily+'"], style[f-origin="3"][f-family="'+g[m].fFamily+'"]')).length>0&&(b=!1),b){var A=createTag("style");A.setAttribute("f-forigin",g[m].fOrigin),A.setAttribute("f-origin",g[m].origin),A.setAttribute("f-family",g[m].fFamily),A.type="text/css",A.innerText="@font-face {font-family: "+g[m].fFamily+"; font-style: normal; src: url('"+g[m].fPath+"');}",d.appendChild(A)}}else if(g[m].fOrigin==="g"||g[m].origin===1){for(E=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),R=0;R<E.length;R+=1)E[R].href.indexOf(g[m].fPath)!==-1&&(b=!1);if(b){var C=createTag("link");C.setAttribute("f-forigin",g[m].fOrigin),C.setAttribute("f-origin",g[m].origin),C.type="text/css",C.rel="stylesheet",C.href=g[m].fPath,document.body.appendChild(C)}}else if(g[m].fOrigin==="t"||g[m].origin===2){for(E=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),R=0;R<E.length;R+=1)g[m].fPath===E[R].src&&(b=!1);if(b){var O=createTag("link");O.setAttribute("f-forigin",g[m].fOrigin),O.setAttribute("f-origin",g[m].origin),O.setAttribute("rel","stylesheet"),O.setAttribute("href",g[m].fPath),d.appendChild(O)}}}else g[m].loaded=!0,S-=1;g[m].helper=o(g[m],d),g[m].cache={},this.fonts.push(g[m])}S===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(p,d,m){for(var g=0,_=this.chars.length;g<_;){if(this.chars[g].ch===p&&this.chars[g].style===d&&this.chars[g].fFamily===m)return this.chars[g];g+=1}return(typeof p=="string"&&p.charCodeAt(0)!==13||!p)&&console&&console.warn&&!this._warned&&(this._warned=!0),e},getFontByName:function(p){for(var d=0,m=this.fonts.length;d<m;){if(this.fonts[d].fName===p)return this.fonts[d];d+=1}return this.fonts[0]},measureText:function(p,d,m){var g=this.getFontByName(d),_=p;if(!g.cache[_]){var S=g.helper;if(p===" "){var E=S.measureText("|"+p+"|"),R=S.measureText("||");g.cache[_]=(E-R)/100}else g.cache[_]=S.measureText(p)/100}return g.cache[_]*m},checkLoadedFonts:function(){var p,d,m,g=this.fonts.length,_=g;for(p=0;p<g;p+=1)this.fonts[p].loaded?_-=1:this.fonts[p].fOrigin==="n"||this.fonts[p].origin===0?this.fonts[p].loaded=!0:(d=this.fonts[p].monoCase.node,m=this.fonts[p].monoCase.w,d.offsetWidth!==m?(_-=1,this.fonts[p].loaded=!0):(d=this.fonts[p].sansCase.node,m=this.fonts[p].sansCase.w,d.offsetWidth!==m&&(_-=1,this.fonts[p].loaded=!0)),this.fonts[p].loaded&&(this.fonts[p].sansCase.parent.parentNode.removeChild(this.fonts[p].sansCase.parent),this.fonts[p].monoCase.parent.parentNode.removeChild(this.fonts[p].monoCase.parent)));_!==0&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},f}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){this.renderableComponents.indexOf(e)===-1&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){this.renderableComponents.indexOf(e)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n,i=e.ef||[];this.effectElements=[];var o,l=i.length;for(n=0;n<l;n+=1)o=new GroupEffect(i[n],t),this.effectElements.push(o)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var i,o=this.data.ef.length,l=this.data.ef;for(n=0;n<o;n+=1){switch(i=null,l[n].ty){case 0:i=new SliderEffect(l[n],t,this);break;case 1:i=new AngleEffect(l[n],t,this);break;case 2:i=new ColorEffect(l[n],t,this);break;case 3:i=new PointEffect(l[n],t,this);break;case 4:case 7:i=new CheckboxEffect(l[n],t,this);break;case 10:i=new LayerIndexEffect(l[n],t,this);break;case 11:i=new MaskIndexEffect(l[n],t,this);break;case 5:i=new EffectsManager(l[n],t);break;default:i=new NoValueEffect(l[n])}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if(this.data.masksProperties[e].mode!=="n"&&this.data.masksProperties[e].cl!==!1)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),n=e("effects"),i=e("shape"),o=e("text"),l=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var u=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(u),this.data.ty===0||this.data.xt?this.compInterface=l(this):this.data.ty===4?(this.layerInterface.shapeInterface=i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=o(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,n){this.globalData=t,this.comp=n,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var n,i=this.dynamicProperties.length;for(n=0;n<i;n+=1)(t||this._isParent&&this.dynamicProperties[n].propType==="transform")&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){this.dynamicProperties.indexOf(e)===-1&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,n,i=this.layers.length;for(this.completeLayers=!0,t=i-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var n,i=e.length,o=this.layers.length;for(t=0;t<i;t+=1)for(n=0;n<o;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var i=this.elements,o=this.layers,l=0,u=o.length;l<u;)o[l].ind==t&&(i[l]&&i[l]!==!0?(n.push(i[l]),i[l].setAsParent(),o[l].parent!==void 0?this.buildElementParenting(e,o[l].parent,n):e.setHierarchy(n)):(this.buildItem(l),this.addPendingElement(e))),l+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,n=e.shift();if(typeof n=="number")t=this.elements[n];else{var i,o=this.elements.length;for(i=0;i<o;i+=1)if(this.elements[i].data.nm===n){t=this.elements[i];break}}return e.length===0?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,o,l=this.globalData.defs,u=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(u),this.solidPath="";var f,p,d,m,g,_,S=this.masksProperties,E=0,R=[],b=createElementID(),A="clipPath",C="clip-path";for(i=0;i<u;i+=1)if((S[i].mode!=="a"&&S[i].mode!=="n"||S[i].inv||S[i].o.k!==100||S[i].o.x)&&(A="mask",C="mask"),S[i].mode!=="s"&&S[i].mode!=="i"||E!==0?d=null:((d=createNS("rect")).setAttribute("fill","#ffffff"),d.setAttribute("width",this.element.comp.data.w||0),d.setAttribute("height",this.element.comp.data.h||0),R.push(d)),o=createNS("path"),S[i].mode==="n")this.viewData[i]={op:PropertyFactory.getProp(this.element,S[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,S[i],3),elem:o,lastPath:""},l.appendChild(o);else{var O;if(E+=1,o.setAttribute("fill",S[i].mode==="s"?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero"),S[i].x.k!==0?(A="mask",C="mask",_=PropertyFactory.getProp(this.element,S[i].x,0,null,this.element),O=createElementID(),(m=createNS("filter")).setAttribute("id",O),(g=createNS("feMorphology")).setAttribute("operator","erode"),g.setAttribute("in","SourceGraphic"),g.setAttribute("radius","0"),m.appendChild(g),l.appendChild(m),o.setAttribute("stroke",S[i].mode==="s"?"#000000":"#ffffff")):(g=null,_=null),this.storedData[i]={elem:o,x:_,expan:g,lastPath:"",lastOperator:"",filterId:O,lastRadius:0},S[i].mode==="i"){p=R.length;var M=createNS("g");for(f=0;f<p;f+=1)M.appendChild(R[f]);var T=createNS("mask");T.setAttribute("mask-type","alpha"),T.setAttribute("id",b+"_"+E),T.appendChild(o),l.appendChild(T),M.setAttribute("mask","url("+getLocationHref()+"#"+b+"_"+E+")"),R.length=0,R.push(M)}else R.push(o);S[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,S[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,S[i],3),invRect:d},this.viewData[i].prop.k||this.drawPath(S[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(A),u=R.length,i=0;i<u;i+=1)this.maskElement.appendChild(R[i]);E>0&&(this.maskElement.setAttribute("id",b),this.element.maskedElement.setAttribute(C,"url("+getLocationHref()+"#"+b+")"),l.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,n=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<i;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<i;n+=1)t.multiply(this.hierarchy[n].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),e=1;e<t;e+=1){var i=this.localTransforms[e].matrix;n.multiply(i)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var o=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)o*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=o}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,n=e.length;for(t=0;t<n;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,i=!0,o=this.comp;i;)o.finalTransform?(o.data.hasMask&&t.splice(0,0,o.finalTransform),o=o.comp):i=!1;var l,u=t.length;for(n=0;n<u;n+=1)l=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-l[0],e[1]-l[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,i=this.masksProperties.length;for(t=0;t<i;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),this.masksProperties[t].mode!=="n"&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var o=this.storedData[t].expan;this.storedData[t].x.v<0?(this.storedData[t].lastOperator!=="erode"&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),o.setAttribute("radius",-this.storedData[t].x.v)):(this.storedData[t].lastOperator!=="dilate"&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,n){var i,o,l=" M"+t.v[0][0]+","+t.v[0][1];for(o=t._length,i=1;i<o;i+=1)l+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[i][0]+","+t.i[i][1]+" "+t.v[i][0]+","+t.v[i][1];if(t.c&&o>1&&(l+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==l){var u="";n.elem&&(t.c&&(u=e.inv?this.solidPath+l:l),n.elem.setAttribute("d",u)),n.lastPath=l}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={};return e.createFilter=function(t,n){var i=createNS("filter");return i.setAttribute("id",t),n!==!0&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},e.createAlphaToLuminanceFilter=function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,n,i="SourceGraphic",o=e.data.ef?e.data.ef.length:0,l=createElementID(),u=filtersFactory.createFilter(l,!0),f=0;for(this.filters=[],t=0;t<o;t+=1){n=null;var p=e.data.ef[t].ty;registeredEffects$1[p]&&(n=new registeredEffects$1[p].effect(u,e.effectsManager.effectElements[t],e,idPrefix+f,i),i=idPrefix+f,registeredEffects$1[p].countsAsEffect&&(f+=1)),n&&this.filters.push(n)}f&&(e.globalData.defs.appendChild(u),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+l+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,n){registeredEffects$1[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,n=this.filters.length,i=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var n=createNS("clipPath"),i=createNS("path");i.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var o=createElementID();if(n.setAttribute("id",o),n.appendChild(i),this.globalData.defs.appendChild(n),this.checkMasks()){var l=createNS("g");l.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),l.appendChild(this.layerElement),this.transformedElement=l,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,n,i,o,l=this.layerId+"_"+e;if(e===1||e===3){var u=createNS("mask");u.setAttribute("id",l),u.setAttribute("mask-type",e===3?"luminance":"alpha"),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(i),this.globalData.defs.appendChild(u),featureSupport.maskType||e!==1||(u.setAttribute("mask-type","luminance"),t=createElementID(),n=filtersFactory.createFilter(t),this.globalData.defs.appendChild(n),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(o=createNS("g")).appendChild(i),u.appendChild(o),o.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(e===2){var f=createNS("mask");f.setAttribute("id",l),f.setAttribute("mask-type","alpha");var p=createNS("g");f.appendChild(p),t=createElementID(),n=filtersFactory.createFilter(t);var d=createNS("feComponentTransfer");d.setAttribute("in","SourceGraphic"),n.appendChild(d);var m=createNS("feFuncA");m.setAttribute("type","table"),m.setAttribute("tableValues","1.0 0.0"),d.appendChild(m),this.globalData.defs.appendChild(n);var g=createNS("rect");g.setAttribute("width",this.comp.data.w),g.setAttribute("height",this.comp.data.h),g.setAttribute("x","0"),g.setAttribute("y","0"),g.setAttribute("fill","#ffffff"),g.setAttribute("opacity","0"),p.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),p.appendChild(g),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),p.appendChild(i),featureSupport.maskType||(f.setAttribute("mask-type","luminance"),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),p.appendChild(g),o.appendChild(this.layerElement),p.appendChild(o)),this.globalData.defs.appendChild(f)}this.matteMasks[e]=l}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,n=this.shapeModifiers.length;for(t=0;t<n;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,i=t.length;n<i;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,i=n.length;i;)if(n[i-=1].elem===e)return void(n[i].pos=t);n.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var i=0,o=e.length;i<o;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,n,i){var o;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var l,u=t.length||0;for(o=0;o<u;o+=1)l=PropertyFactory.getProp(e,t[o].v,0,0,this),this.k=l.k||this.k,this.dataProps[o]={n:t[o].n,p:l};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var i=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<n;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,i=this.o.length/2;n<i;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n,i,o=4*this.data.p;for(t=0;t<o;t+=1)n=t%4==0?100:255,i=Math.round(this.prop.v[t]*n),this.c[t]!==i&&(this.c[t]=i,this._cmdf=!e);if(this.o.length)for(o=this.prop.v.length,t=4*this.data.p;t<o;t+=1)n=t%2==0?100:1,i=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==i&&(this.o[t-4*this.data.p]=i,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),i=createNS(t.t===1?"linearGradient":"radialGradient");i.setAttribute("id",n),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var o,l,u,f=[];for(u=4*t.g.p,l=0;l<u;l+=4)o=createNS("stop"),i.appendChild(o),f.push(o);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=i,this.cst=f},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,i,o,l=createNS("mask"),u=createNS("path");l.appendChild(u);var f=createElementID(),p=createElementID();l.setAttribute("id",p);var d=createNS(e.t===1?"linearGradient":"radialGradient");d.setAttribute("id",f),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse"),o=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var m=this.stops;for(i=4*e.g.p;i<o;i+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),d.appendChild(n),m.push(n);u.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+f+")"),e.ty==="gs"&&(u.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),u.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&u.setAttribute("stroke-miterlimit",e.ml)),this.of=d,this.ms=l,this.ost=m,this.maskId=p,t.msElem=u}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,n,i){if(t===0)return"";var o,l=e.o,u=e.i,f=e.v,p=" M"+i.applyToPointStringified(f[0][0],f[0][1]);for(o=1;o<t;o+=1)p+=" C"+i.applyToPointStringified(l[o-1][0],l[o-1][1])+" "+i.applyToPointStringified(u[o][0],u[o][1])+" "+i.applyToPointStringified(f[o][0],f[o][1]);return n&&t&&(p+=" C"+i.applyToPointStringified(l[o-1][0],l[o-1][1])+" "+i.applyToPointStringified(u[0][0],u[0][1])+" "+i.applyToPointStringified(f[0][0],f[0][1]),p+="z"),p},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function n(d,m,g){(g||m.transform.op._mdf)&&m.transform.container.setAttribute("opacity",m.transform.op.v),(g||m.transform.mProps._mdf)&&m.transform.container.setAttribute("transform",m.transform.mProps.v.to2dCSS())}function i(){}function o(d,m,g){var _,S,E,R,b,A,C,O,M,T,j=m.styles.length,I=m.lvl;for(A=0;A<j;A+=1){if(R=m.sh._mdf||g,m.styles[A].lvl<I){for(O=t.reset(),M=I-m.styles[A].lvl,T=m.transformers.length-1;!R&&M>0;)R=m.transformers[T].mProps._mdf||R,M-=1,T-=1;if(R)for(M=I-m.styles[A].lvl,T=m.transformers.length-1;M>0;)O.multiply(m.transformers[T].mProps.v),M-=1,T-=1}else O=e;if(S=(C=m.sh.paths)._length,R){for(E="",_=0;_<S;_+=1)(b=C.shapes[_])&&b._length&&(E+=buildShapeString(b,b._length,b.c,O));m.caches[A]=E}else E=m.caches[A];m.styles[A].d+=d.hd===!0?"":E,m.styles[A]._mdf=R||m.styles[A]._mdf}}function l(d,m,g){var _=m.style;(m.c._mdf||g)&&_.pElem.setAttribute("fill","rgb("+bmFloor(m.c.v[0])+","+bmFloor(m.c.v[1])+","+bmFloor(m.c.v[2])+")"),(m.o._mdf||g)&&_.pElem.setAttribute("fill-opacity",m.o.v)}function u(d,m,g){f(d,m,g),p(d,m,g)}function f(d,m,g){var _,S,E,R,b,A=m.gf,C=m.g._hasOpacity,O=m.s.v,M=m.e.v;if(m.o._mdf||g){var T=d.ty==="gf"?"fill-opacity":"stroke-opacity";m.style.pElem.setAttribute(T,m.o.v)}if(m.s._mdf||g){var j=d.t===1?"x1":"cx",I=j==="x1"?"y1":"cy";A.setAttribute(j,O[0]),A.setAttribute(I,O[1]),C&&!m.g._collapsable&&(m.of.setAttribute(j,O[0]),m.of.setAttribute(I,O[1]))}if(m.g._cmdf||g){_=m.cst;var D=m.g.c;for(E=_.length,S=0;S<E;S+=1)(R=_[S]).setAttribute("offset",D[4*S]+"%"),R.setAttribute("stop-color","rgb("+D[4*S+1]+","+D[4*S+2]+","+D[4*S+3]+")")}if(C&&(m.g._omdf||g)){var L=m.g.o;for(E=(_=m.g._collapsable?m.cst:m.ost).length,S=0;S<E;S+=1)R=_[S],m.g._collapsable||R.setAttribute("offset",L[2*S]+"%"),R.setAttribute("stop-opacity",L[2*S+1])}if(d.t===1)(m.e._mdf||g)&&(A.setAttribute("x2",M[0]),A.setAttribute("y2",M[1]),C&&!m.g._collapsable&&(m.of.setAttribute("x2",M[0]),m.of.setAttribute("y2",M[1])));else if((m.s._mdf||m.e._mdf||g)&&(b=Math.sqrt(Math.pow(O[0]-M[0],2)+Math.pow(O[1]-M[1],2)),A.setAttribute("r",b),C&&!m.g._collapsable&&m.of.setAttribute("r",b)),m.e._mdf||m.h._mdf||m.a._mdf||g){b||(b=Math.sqrt(Math.pow(O[0]-M[0],2)+Math.pow(O[1]-M[1],2)));var F=Math.atan2(M[1]-O[1],M[0]-O[0]),N=m.h.v;N>=1?N=.99:N<=-1&&(N=-.99);var B=b*N,z=Math.cos(F+m.a.v)*B+O[0],V=Math.sin(F+m.a.v)*B+O[1];A.setAttribute("fx",z),A.setAttribute("fy",V),C&&!m.g._collapsable&&(m.of.setAttribute("fx",z),m.of.setAttribute("fy",V))}}function p(d,m,g){var _=m.style,S=m.d;S&&(S._mdf||g)&&S.dashStr&&(_.pElem.setAttribute("stroke-dasharray",S.dashStr),_.pElem.setAttribute("stroke-dashoffset",S.dashoffset[0])),m.c&&(m.c._mdf||g)&&_.pElem.setAttribute("stroke","rgb("+bmFloor(m.c.v[0])+","+bmFloor(m.c.v[1])+","+bmFloor(m.c.v[2])+")"),(m.o._mdf||g)&&_.pElem.setAttribute("stroke-opacity",m.o.v),(m.w._mdf||g)&&(_.pElem.setAttribute("stroke-width",m.w.v),_.msElem&&_.msElem.setAttribute("stroke-width",m.w.v))}return{createRenderFunction:function(d){switch(d.ty){case"fl":return l;case"gf":return f;case"gs":return u;case"st":return p;case"sh":case"el":case"rc":case"sr":return o;case"tr":return n;case"no":return i;default:return null}}}}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function LetterProps(e,t,n,i,o,l){this.o=e,this.sw=t,this.sc=n,this.fc=i,this.m=o,this.p=l,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!i,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,n,i,o=this.shapes.length,l=this.stylesList.length,u=[],f=!1;for(n=0;n<l;n+=1){for(i=this.stylesList[n],f=!1,u.length=0,e=0;e<o;e+=1)(t=this.shapes[e]).styles.indexOf(i)!==-1&&(u.push(t),f=t._isAnimated||f);u.length>1&&f&&this.setShapesAsAnimated(u)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,i=new SVGStyleData(e,t),o=i.pElem;return e.ty==="st"?n=new SVGStrokeStyleData(this,e,i):e.ty==="fl"?n=new SVGFillStyleData(this,e,i):e.ty==="gf"||e.ty==="gs"?(n=new(e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,i),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),o.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):e.ty==="no"&&(n=new SVGNoStyleData(this,e,i)),e.ty!=="st"&&e.ty!=="gs"||(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),o.setAttribute("fill-opacity","0"),e.lj===1&&o.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&o.setAttribute("fill-rule","evenodd"),e.ln&&o.setAttribute("id",e.ln),e.cl&&o.setAttribute("class",e.cl),e.bm&&(o.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7);var o=new SVGShapeData(t,n,ShapePropertyFactory.getShapeProp(this,e,i,this));return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,i=this.animatedContents.length;n<i;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,n=e.styles,i=this.stylesList.length;for(t=0;t<i;t+=1)this.stylesList[t].closed||n.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,i,o,l,u){var f,p,d,m,g,_,S=[].concat(l),E=e.length-1,R=[],b=[];for(f=E;f>=0;f-=1){if((_=this.searchProcessedElement(e[f]))?t[f]=n[_-1]:e[f]._render=u,e[f].ty==="fl"||e[f].ty==="st"||e[f].ty==="gf"||e[f].ty==="gs"||e[f].ty==="no")_?t[f].style.closed=!1:t[f]=this.createStyleElement(e[f],o),e[f]._render&&t[f].style.pElem.parentNode!==i&&i.appendChild(t[f].style.pElem),R.push(t[f].style);else if(e[f].ty==="gr"){if(_)for(d=t[f].it.length,p=0;p<d;p+=1)t[f].prevViewData[p]=t[f].it[p];else t[f]=this.createGroupElement(e[f]);this.searchShapes(e[f].it,t[f].it,t[f].prevViewData,t[f].gr,o+1,S,u),e[f]._render&&t[f].gr.parentNode!==i&&i.appendChild(t[f].gr)}else e[f].ty==="tr"?(_||(t[f]=this.createTransformElement(e[f],i)),m=t[f].transform,S.push(m)):e[f].ty==="sh"||e[f].ty==="rc"||e[f].ty==="el"||e[f].ty==="sr"?(_||(t[f]=this.createShapeElement(e[f],S,o)),this.setElementStyles(t[f])):e[f].ty==="tm"||e[f].ty==="rd"||e[f].ty==="ms"||e[f].ty==="pb"||e[f].ty==="zz"||e[f].ty==="op"?(_?(g=t[f]).closed=!1:((g=ShapeModifiers.getModifier(e[f].ty)).init(this,e[f]),t[f]=g,this.shapeModifiers.push(g)),b.push(g)):e[f].ty==="rp"&&(_?(g=t[f]).closed=!0:(g=ShapeModifiers.getModifier(e[f].ty),t[f]=g,g.init(this,e,f,t),this.shapeModifiers.push(g),u=!1),b.push(g));this.addProcessedElement(e[f],f+1)}for(E=R.length,f=0;f<E;f+=1)R[f].closed=!0;for(E=b.length,f=0;f<E;f+=1)b[f].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,n=this.animatedContents.length;for(e=0;e<n;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&t.data!==!0&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,n,i,o,l){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var u=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,u=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,u=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,u=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,u=!0),this.m!==o&&(this.m=o,this._mdf.m=!0,u=!0),!l.length||this.p[0]===l[0]&&this.p[1]===l[1]&&this.p[4]===l[4]&&this.p[5]===l[5]&&this.p[12]===l[12]&&this.p[13]===l[13]||(this.p=l,this._mdf.p=!0,u=!0),u},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var o=this.effectsSequence.length,l=e||this.data.d.k[this.keysIndex].s;for(i=0;i<o;i+=1)l=n!==this.keysIndex?this.effectsSequence[i](l,l.t):this.effectsSequence[i](this.currentData,l.t);t!==l&&this.setCurrentData(l),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,i=e.length;n<=i-1&&!(n===i-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,i=[],o=0,l=e.length,u=!1,f=!1,p="";o<l;)u=f,f=!1,t=e.charCodeAt(o),p=e.charAt(o),FontManager.isCombinedCharacter(t)?u=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,o)?p=e.substr(o,14):(n=e.charCodeAt(o+1))>=56320&&n<=57343&&(FontManager.isModifier(t,n)?(p=e.substr(o,2),u=!0):p=FontManager.isFlagEmoji(e.substr(o,4))?e.substr(o,4):e.substr(o,2)):t>56319?(n=e.charCodeAt(o+1),FontManager.isVariationSelector(t)&&(u=!0)):FontManager.isZeroWidthJoiner(t)&&(u=!0,f=!0),u?(i[i.length-1]+=p,u=!1):i.push(p),o+=p.length;return i},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,n,i,o,l,u,f,p=this.elem.globalData.fontManager,d=this.data,m=[],g=0,_=d.m.g,S=0,E=0,R=0,b=[],A=0,C=0,O=p.getFontByName(e.f),M=0,T=getFontProperties(O);e.fWeight=T.weight,e.fStyle=T.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var j,I=e.tr/1e3*e.finalSize;if(e.sz)for(var D,L,F=!0,N=e.sz[0],B=e.sz[1];F;){D=0,A=0,n=(L=this.buildFinalText(e.t)).length,I=e.tr/1e3*e.finalSize;var z=-1;for(t=0;t<n;t+=1)j=L[t].charCodeAt(0),i=!1,L[t]===" "?z=t:j!==13&&j!==3||(A=0,i=!0,D+=e.finalLineHeight||1.2*e.finalSize),p.chars?(f=p.getCharData(L[t],O.fStyle,O.fFamily),M=i?0:f.w*e.finalSize/100):M=p.measureText(L[t],e.f,e.finalSize),A+M>N&&L[t]!==" "?(z===-1?n+=1:t=z,D+=e.finalLineHeight||1.2*e.finalSize,L.splice(t,z===t?1:0,"\r"),z=-1,A=0):(A+=M,A+=I);D+=O.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&B<D?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=L,n=e.finalText.length,F=!1)}A=-I,M=0;var V,W=0;for(t=0;t<n;t+=1)if(i=!1,(j=(V=e.finalText[t]).charCodeAt(0))===13||j===3?(W=0,b.push(A),C=A>C?A:C,A=-2*I,o="",i=!0,R+=1):o=V,p.chars?(f=p.getCharData(V,O.fStyle,p.getFontByName(e.f).fFamily),M=i?0:f.w*e.finalSize/100):M=p.measureText(o,e.f,e.finalSize),V===" "?W+=M+I:(A+=M+I+W,W=0),m.push({l:M,an:M,add:S,n:i,anIndexes:[],val:o,line:R,animatorJustifyOffset:0}),_==2){if(S+=M,o===""||o===" "||t===n-1){for(o!==""&&o!==" "||(S-=M);E<=t;)m[E].an=S,m[E].ind=g,m[E].extra=M,E+=1;g+=1,S=0}}else if(_==3){if(S+=M,o===""||t===n-1){for(o===""&&(S-=M);E<=t;)m[E].an=S,m[E].ind=g,m[E].extra=M,E+=1;S=0,g+=1}}else m[g].ind=g,m[g].extra=0,g+=1;if(e.l=m,C=A>C?A:C,b.push(A),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=C,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=b;var U,Q,q,G,H=d.a;u=H.length;var Z=[];for(l=0;l<u;l+=1){for((U=H[l]).a.sc&&(e.strokeColorAnim=!0),U.a.sw&&(e.strokeWidthAnim=!0),(U.a.fc||U.a.fh||U.a.fs||U.a.fb)&&(e.fillColorAnim=!0),G=0,q=U.s.b,t=0;t<n;t+=1)(Q=m[t]).anIndexes[l]=G,(q==1&&Q.val!==""||q==2&&Q.val!==""&&Q.val!==" "||q==3&&(Q.n||Q.val==" "||t==n-1)||q==4&&(Q.n||t==n-1))&&(U.s.rn===1&&Z.push(G),G+=1);d.a[l].s.totalChars=G;var ee,ne=-1;if(U.s.rn===1)for(t=0;t<n;t+=1)ne!=(Q=m[t]).anIndexes[l]&&(ne=Q.anIndexes[l],ee=Z.splice(Math.floor(Math.random()*Z.length),1)[0]),Q.anIndexes[l]=ee}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=O.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,n=Math.floor;function i(o,l){this._currentTextLength=-1,this.k=!1,this.data=l,this.elem=o,this.comp=o.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(o),this.s=PropertyFactory.getProp(o,l.s||{k:0},0,0,this),this.e="e"in l?PropertyFactory.getProp(o,l.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(o,l.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(o,l.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(o,l.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(o,l.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(o,l.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return i.prototype={getMult:function(o){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,u=0,f=1,p=1;this.ne.v>0?l=this.ne.v/100:u=-this.ne.v/100,this.xe.v>0?f=1-this.xe.v/100:p=1+this.xe.v/100;var d=BezierFactory.getBezierEasing(l,u,f,p).get,m=0,g=this.finalS,_=this.finalE,S=this.data.sh;if(S===2)m=d(m=_===g?o>=_?1:0:e(0,t(.5/(_-g)+(o-g)/(_-g),1)));else if(S===3)m=d(m=_===g?o>=_?0:1:1-e(0,t(.5/(_-g)+(o-g)/(_-g),1)));else if(S===4)_===g?m=0:(m=e(0,t(.5/(_-g)+(o-g)/(_-g),1)))<.5?m*=2:m=1-2*(m-.5),m=d(m);else if(S===5){if(_===g)m=0;else{var E=_-g,R=-E/2+(o=t(e(0,o+.5-g),_-g)),b=E/2;m=Math.sqrt(1-R*R/(b*b))}m=d(m)}else S===6?(_===g?m=0:(o=t(e(0,o+.5-g),_-g),m=(1+Math.cos(Math.PI+2*Math.PI*o/(_-g)))/2),m=d(m)):(o>=n(g)&&(m=e(0,t(o-g<0?t(_,1)-(g-o):_-o,1))),m=d(m));if(this.sm.v!==100){var A=.01*this.sm.v;A===0&&(A=1e-8);var C=.5-.5*A;m<C?m=0:(m=(m-C)/A)>1&&(m=1)}return m*this.a.v},getValue:function(o){this.iterateDynamicProperties(),this._mdf=o||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,o&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,u=this.o.v/l,f=this.s.v/l+u,p=this.e.v/l+u;if(f>p){var d=f;f=p,p=d}this.finalS=f,this.finalE=p}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(o,l,u){return new i(o,l)}}}();function TextAnimatorDataProperty(e,t,n){var i={propType:!1},o=PropertyFactory.getProp,l=t.a;this.a={r:l.r?o(e,l.r,0,degToRads,n):i,rx:l.rx?o(e,l.rx,0,degToRads,n):i,ry:l.ry?o(e,l.ry,0,degToRads,n):i,sk:l.sk?o(e,l.sk,0,degToRads,n):i,sa:l.sa?o(e,l.sa,0,degToRads,n):i,s:l.s?o(e,l.s,1,.01,n):i,a:l.a?o(e,l.a,1,0,n):i,o:l.o?o(e,l.o,0,.01,n):i,p:l.p?o(e,l.p,1,0,n):i,sw:l.sw?o(e,l.sw,0,0,n):i,sc:l.sc?o(e,l.sc,1,0,n):i,fc:l.fc?o(e,l.fc,1,0,n):i,fh:l.fh?o(e,l.fh,0,0,n):i,fs:l.fs?o(e,l.fs,0,.01,n):i,fb:l.fb?o(e,l.fb,0,.01,n):i,t:l.t?o(e,l.t,0,0,n):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,i=PropertyFactory.getProp;for(e=0;e<n;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,i,o,l,u,f,p,d,m,g,_,S,E,R,b,A,C,O,M,T=this._moreOptions.alignment.v,j=this._animatorsData,I=this._textData,D=this.mHelper,L=this._renderType,F=this.renderedLetters.length,N=e.l;if(this._hasMaskedPath){if(M=this._pathData.m,!this._pathData.n||this._pathData._mdf){var B,z=M.v;for(this._pathData.r.v&&(z=z.reverse()),u={tLength:0,segments:[]},l=z._length-1,A=0,o=0;o<l;o+=1)B=bez.buildBezierData(z.v[o],z.v[o+1],[z.o[o][0]-z.v[o][0],z.o[o][1]-z.v[o][1]],[z.i[o+1][0]-z.v[o+1][0],z.i[o+1][1]-z.v[o+1][1]]),u.tLength+=B.segmentLength,u.segments.push(B),A+=B.segmentLength;o=l,M.v.c&&(B=bez.buildBezierData(z.v[o],z.v[0],[z.o[o][0]-z.v[o][0],z.o[o][1]-z.v[o][1]],[z.i[0][0]-z.v[0][0],z.i[0][1]-z.v[0][1]]),u.tLength+=B.segmentLength,u.segments.push(B),A+=B.segmentLength),this._pathData.pi=u}if(u=this._pathData.pi,f=this._pathData.f.v,_=0,g=1,d=0,m=!0,R=u.segments,f<0&&M.v.c)for(u.tLength<Math.abs(f)&&(f=-Math.abs(f)%u.tLength),g=(E=R[_=R.length-1].points).length-1;f<0;)f+=E[g].partialLength,(g-=1)<0&&(g=(E=R[_-=1].points).length-1);S=(E=R[_].points)[g-1],b=(p=E[g]).partialLength}l=N.length,n=0,i=0;var V,W,U,Q,q,G=1.2*e.finalSize*.714,H=!0;U=j.length;var Z,ee,ne,ie,oe,ce,le,ue,te,se,ae,K,pe=-1,J=f,fe=_,de=g,me=-1,ye="",he=this.defaultPropsArray;if(e.j===2||e.j===1){var ge=0,Se=0,ve=e.j===2?-.5:-1,_e=0,xe=!0;for(o=0;o<l;o+=1)if(N[o].n){for(ge&&(ge+=Se);_e<o;)N[_e].animatorJustifyOffset=ge,_e+=1;ge=0,xe=!0}else{for(W=0;W<U;W+=1)(V=j[W].a).t.propType&&(xe&&e.j===2&&(Se+=V.t.v*ve),(q=j[W].s.getMult(N[o].anIndexes[W],I.a[W].s.totalChars)).length?ge+=V.t.v*q[0]*ve:ge+=V.t.v*q*ve);xe=!1}for(ge&&(ge+=Se);_e<o;)N[_e].animatorJustifyOffset=ge,_e+=1}for(o=0;o<l;o+=1){if(D.reset(),ie=1,N[o].n)n=0,i+=e.yOffset,i+=H?1:0,f=J,H=!1,this._hasMaskedPath&&(g=de,S=(E=R[_=fe].points)[g-1],b=(p=E[g]).partialLength,d=0),ye="",ae="",te="",K="",he=this.defaultPropsArray;else{if(this._hasMaskedPath){if(me!==N[o].line){switch(e.j){case 1:f+=A-e.lineWidths[N[o].line];break;case 2:f+=(A-e.lineWidths[N[o].line])/2}me=N[o].line}pe!==N[o].ind&&(N[pe]&&(f+=N[pe].extra),f+=N[o].an/2,pe=N[o].ind),f+=T[0]*N[o].an*.005;var be=0;for(W=0;W<U;W+=1)(V=j[W].a).p.propType&&((q=j[W].s.getMult(N[o].anIndexes[W],I.a[W].s.totalChars)).length?be+=V.p.v[0]*q[0]:be+=V.p.v[0]*q),V.a.propType&&((q=j[W].s.getMult(N[o].anIndexes[W],I.a[W].s.totalChars)).length?be+=V.a.v[0]*q[0]:be+=V.a.v[0]*q);for(m=!0,this._pathData.a.v&&(f=.5*N[0].an+(A-this._pathData.f.v-.5*N[0].an-.5*N[N.length-1].an)*pe/(l-1),f+=this._pathData.f.v);m;)d+b>=f+be||!E?(C=(f+be-d)/p.partialLength,ee=S.point[0]+(p.point[0]-S.point[0])*C,ne=S.point[1]+(p.point[1]-S.point[1])*C,D.translate(-T[0]*N[o].an*.005,-T[1]*G*.01),m=!1):E&&(d+=p.partialLength,(g+=1)>=E.length&&(g=0,R[_+=1]?E=R[_].points:M.v.c?(g=0,E=R[_=0].points):(d-=p.partialLength,E=null)),E&&(S=p,b=(p=E[g]).partialLength));Z=N[o].an/2-N[o].add,D.translate(-Z,0,0)}else Z=N[o].an/2-N[o].add,D.translate(-Z,0,0),D.translate(-T[0]*N[o].an*.005,-T[1]*G*.01,0);for(W=0;W<U;W+=1)(V=j[W].a).t.propType&&(q=j[W].s.getMult(N[o].anIndexes[W],I.a[W].s.totalChars),n===0&&e.j===0||(this._hasMaskedPath?q.length?f+=V.t.v*q[0]:f+=V.t.v*q:q.length?n+=V.t.v*q[0]:n+=V.t.v*q));for(e.strokeWidthAnim&&(ce=e.sw||0),e.strokeColorAnim&&(oe=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(le=[e.fc[0],e.fc[1],e.fc[2]]),W=0;W<U;W+=1)(V=j[W].a).a.propType&&((q=j[W].s.getMult(N[o].anIndexes[W],I.a[W].s.totalChars)).length?D.translate(-V.a.v[0]*q[0],-V.a.v[1]*q[1],V.a.v[2]*q[2]):D.translate(-V.a.v[0]*q,-V.a.v[1]*q,V.a.v[2]*q));for(W=0;W<U;W+=1)(V=j[W].a).s.propType&&((q=j[W].s.getMult(N[o].anIndexes[W],I.a[W].s.totalChars)).length?D.scale(1+(V.s.v[0]-1)*q[0],1+(V.s.v[1]-1)*q[1],1):D.scale(1+(V.s.v[0]-1)*q,1+(V.s.v[1]-1)*q,1));for(W=0;W<U;W+=1){if(V=j[W].a,q=j[W].s.getMult(N[o].anIndexes[W],I.a[W].s.totalChars),V.sk.propType&&(q.length?D.skewFromAxis(-V.sk.v*q[0],V.sa.v*q[1]):D.skewFromAxis(-V.sk.v*q,V.sa.v*q)),V.r.propType&&(q.length?D.rotateZ(-V.r.v*q[2]):D.rotateZ(-V.r.v*q)),V.ry.propType&&(q.length?D.rotateY(V.ry.v*q[1]):D.rotateY(V.ry.v*q)),V.rx.propType&&(q.length?D.rotateX(V.rx.v*q[0]):D.rotateX(V.rx.v*q)),V.o.propType&&(q.length?ie+=(V.o.v*q[0]-ie)*q[0]:ie+=(V.o.v*q-ie)*q),e.strokeWidthAnim&&V.sw.propType&&(q.length?ce+=V.sw.v*q[0]:ce+=V.sw.v*q),e.strokeColorAnim&&V.sc.propType)for(ue=0;ue<3;ue+=1)q.length?oe[ue]+=(V.sc.v[ue]-oe[ue])*q[0]:oe[ue]+=(V.sc.v[ue]-oe[ue])*q;if(e.fillColorAnim&&e.fc){if(V.fc.propType)for(ue=0;ue<3;ue+=1)q.length?le[ue]+=(V.fc.v[ue]-le[ue])*q[0]:le[ue]+=(V.fc.v[ue]-le[ue])*q;V.fh.propType&&(le=q.length?addHueToRGB(le,V.fh.v*q[0]):addHueToRGB(le,V.fh.v*q)),V.fs.propType&&(le=q.length?addSaturationToRGB(le,V.fs.v*q[0]):addSaturationToRGB(le,V.fs.v*q)),V.fb.propType&&(le=q.length?addBrightnessToRGB(le,V.fb.v*q[0]):addBrightnessToRGB(le,V.fb.v*q))}}for(W=0;W<U;W+=1)(V=j[W].a).p.propType&&(q=j[W].s.getMult(N[o].anIndexes[W],I.a[W].s.totalChars),this._hasMaskedPath?q.length?D.translate(0,V.p.v[1]*q[0],-V.p.v[2]*q[1]):D.translate(0,V.p.v[1]*q,-V.p.v[2]*q):q.length?D.translate(V.p.v[0]*q[0],V.p.v[1]*q[1],-V.p.v[2]*q[2]):D.translate(V.p.v[0]*q,V.p.v[1]*q,-V.p.v[2]*q));if(e.strokeWidthAnim&&(te=ce<0?0:ce),e.strokeColorAnim&&(se="rgb("+Math.round(255*oe[0])+","+Math.round(255*oe[1])+","+Math.round(255*oe[2])+")"),e.fillColorAnim&&e.fc&&(ae="rgb("+Math.round(255*le[0])+","+Math.round(255*le[1])+","+Math.round(255*le[2])+")"),this._hasMaskedPath){if(D.translate(0,-e.ls),D.translate(0,T[1]*G*.01+i,0),this._pathData.p.v){O=(p.point[1]-S.point[1])/(p.point[0]-S.point[0]);var Pe=180*Math.atan(O)/Math.PI;p.point[0]<S.point[0]&&(Pe+=180),D.rotate(-Pe*Math.PI/180)}D.translate(ee,ne,0),f-=T[0]*N[o].an*.005,N[o+1]&&pe!==N[o+1].ind&&(f+=N[o].an/2,f+=.001*e.tr*e.finalSize)}else{switch(D.translate(n,i,0),e.ps&&D.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:D.translate(N[o].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[N[o].line]),0,0);break;case 2:D.translate(N[o].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[N[o].line])/2,0,0)}D.translate(0,-e.ls),D.translate(Z,0,0),D.translate(T[0]*N[o].an*.005,T[1]*G*.01,0),n+=N[o].l+.001*e.tr*e.finalSize}L==="html"?ye=D.toCSS():L==="svg"?ye=D.to2dCSS():he=[D.props[0],D.props[1],D.props[2],D.props[3],D.props[4],D.props[5],D.props[6],D.props[7],D.props[8],D.props[9],D.props[10],D.props[11],D.props[12],D.props[13],D.props[14],D.props[15]],K=ie}F<=o?(Q=new LetterProps(K,te,se,ae,ye,he),this.renderedLetters.push(Q),F+=1,this.lettersChangedFlag=!0):(Q=this.renderedLetters[o],this.lettersChangedFlag=Q.update(K,te,se,ae,ye,he)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var n,i,o=t.length,l="";for(n=0;n<o;n+=1)t[n].ty==="sh"&&(i=t[n].ks.k,l+=buildShapeString(i,i.i.length,!0,e));return l},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,i,o){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(i,o,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function ISolidElement(e,t,n){this.initElement(e,t,n)}function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var i=createNS("title"),o=createElementID();i.setAttribute("id",o),i.textContent=t.title,this.svgElement.appendChild(i),n+=o}if(t&&t.description){var l=createNS("desc"),u=createElementID();l.setAttribute("id",u),l.textContent=t.description,this.svgElement.appendChild(l),n+=" "+u}n&&this.svgElement.setAttribute("aria-labelledby",n);var f=createNS("defs");this.svgElement.appendChild(f);var p=createNS("g");this.svgElement.appendChild(p),this.layerElement=p,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:f,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,i=[],o="";t<n;)e[t]==="\r"||e[t]===""?(i.push(o),o=""):o+=e[t],t+=1;return i.push(o),i},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var i=n.it[n.it.length-1];i.s&&(i.s.k[0]=t,i.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var i=this.globalData.fontManager.getFontByName(n.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var o=n.fWeight,l=n.fStyle;this.layerElement.setAttribute("font-style",l),this.layerElement.setAttribute("font-weight",o)}this.layerElement.setAttribute("aria-label",n.t);var u,f=n.l||[],p=!!this.globalData.fontManager.chars;t=f.length;var d=this.mHelper,m=this.data.singleShape,g=0,_=0,S=!0,E=.001*n.tr*n.finalSize;if(!m||p||n.sz){var R,b=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!p||!m||e===0){if(u=b>e?this.textSpans[e].span:createNS(p?"g":"text"),b<=e){if(u.setAttribute("stroke-linecap","butt"),u.setAttribute("stroke-linejoin","round"),u.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=u,p){var A=createNS("g");u.appendChild(A),this.textSpans[e].childSpan=A}this.textSpans[e].span=u,this.layerElement.appendChild(u)}u.style.display="inherit"}if(d.reset(),m&&(f[e].n&&(g=-E,_+=n.yOffset,_+=S?1:0,S=!1),this.applyTextPropertiesToMatrix(n,d,f[e].line,g,_),g+=f[e].l||0,g+=E),p){var C;if((R=this.globalData.fontManager.getCharData(n.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t===1)C=new SVGCompElement(R.data,this.globalData,this);else{var O=emptyShapeData;R.data&&R.data.shapes&&(O=this.buildShapeData(R.data,n.finalSize)),C=new SVGShapeElement(O,this.globalData,this)}if(this.textSpans[e].glyph){var M=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(M.layerElement),M.destroy()}this.textSpans[e].glyph=C,C._debug=!0,C.prepareFrame(0),C.renderFrame(),this.textSpans[e].childSpan.appendChild(C.layerElement),R.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else m&&u.setAttribute("transform","translate("+d.props[12]+","+d.props[13]+")"),u.textContent=f[e].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}m&&u&&u.setAttribute("d","")}else{var T=this.textContainer,j="start";switch(n.j){case 1:j="end";break;case 2:j="middle";break;default:j="start"}T.setAttribute("text-anchor",j),T.setAttribute("letter-spacing",E);var I=this.buildTextContents(n.finalText);for(t=I.length,_=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(u=this.textSpans[e].span||createNS("tspan")).textContent=I[e],u.setAttribute("x",0),u.setAttribute("y",_),u.style.display="inherit",T.appendChild(u),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=u,_+=n.finalLineHeight;this.layerElement.appendChild(T)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var n,i,o,l=this.textAnimator.renderedLetters,u=this.textProperty.currentData.l;for(t=u.length,e=0;e<t;e+=1)u[e].n||(n=l[e],i=this.textSpans[e].span,(o=this.textSpans[e].glyph)&&o.renderFrame(),n._mdf.m&&i.setAttribute("transform",n.m),n._mdf.o&&i.setAttribute("opacity",n.o),n._mdf.sw&&i.setAttribute("stroke-width",n.sw),n._mdf.sc&&i.setAttribute("stroke",n.sc),n._mdf.fc&&i.setAttribute("fill",n.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var o=createElementID();n.setAttribute("id",o),n.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&this.layers[e].ty!==99){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(i===-1)return;if(this.elements[i]&&this.elements[i]!==!0){var o=t[i].getMatte(this.layers[e].tt);n.setMatte(o)}else this.buildItem(i),this.addPendingElement(n)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,o=this.elements[i].getMatte(this.layers[t].tt);e.setMatte(o);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var i,o=0;o<t;)this.elements[o]&&this.elements[o]!==!0&&this.elements[o].getBaseElement()&&(i=this.elements[o].getBaseElement()),o+=1;i?this.layerElement.insertBefore(n,i):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,n=e.length,i="_";for(t=0;t<n;t+=1)i+=e[t].transform.key+"_";var o=this.sequences[i];return o||(o={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=o,this.sequenceList.push(o)),o},processSequence:function(e,t){for(var n=0,i=e.transforms.length,o=t;n<i&&!t;){if(e.transforms[n].transform.mProps._mdf){o=!0;break}n+=1}if(o)for(e.finalTransform.reset(),n=i-1;n>=0;n-=1)e.finalTransform.multiply(e.transforms[n].transform.mProps.v);e._mdf=o},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t<n;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,n=null,i=null;function o(){var l,u,f;t||(l=createNS("svg"),u=createNS("filter"),f=createNS("feColorMatrix"),u.setAttribute("id",e),f.setAttribute("type","matrix"),f.setAttribute("color-interpolation-filters","sRGB"),f.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),u.appendChild(f),l.appendChild(u),l.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(l.style.display="none"),i=l,document.body.appendChild(i),t=createTag("canvas"),(n=t.getContext("2d")).filter="url(#"+e+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}return{load:o,get:function(l){return t||o(),t.width=l.width,t.height=l.height,n.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var n=createTag("canvas");return n.width=e,n.height=t,n}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(e){var t,n,i=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<i;t+=1){n=null;var o=e.data.ef[t].ty;registeredEffects[o]&&(n=new registeredEffects[o].effect(e.effectsManager.effectElements[t],e)),n&&this.filters.push(n)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var n;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i=this.masksProperties.length,o=!1;for(n=0;n<i;n+=1)this.masksProperties[n].mode!=="n"&&(o=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=o,o&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,n=this.filters.length,i=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,n,i,o=this.element.finalTransform.mat,l=this.element.canvasContext,u=this.masksProperties.length;for(l.beginPath(),e=0;e<u;e+=1)if(this.masksProperties[e].mode!=="n"){var f;this.masksProperties[e].inv&&(l.moveTo(0,0),l.lineTo(this.element.globalData.compSize.w,0),l.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),l.lineTo(0,this.element.globalData.compSize.h),l.lineTo(0,0)),i=this.viewData[e].v,t=o.applyToPointArray(i.v[0][0],i.v[0][1],0),l.moveTo(t[0],t[1]);var p=i._length;for(f=1;f<p;f+=1)n=o.applyToTriplePoints(i.o[f-1],i.i[f],i.v[f]),l.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=o.applyToTriplePoints(i.o[f-1],i.i[0],i.v[0]),l.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),l.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,n,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var o,l=4;t.ty==="rc"?l=5:t.ty==="el"?l=6:t.ty==="sr"&&(l=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,l,e);var u,f=n.length;for(o=0;o<f;o+=1)n[o].closed||(u={transforms:i.addTransformSequence(n[o].transforms),trNodes:[]},this.styledShapes.push(u),n[o].elements.push(u))}function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}function CVSolidElement(e,t,n){this.initElement(e,t,n)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||t.clearCanvas===void 0||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,n){this.initElement(e,t,n)}function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var o,l=e.ks.or.k.length;for(o=0;o<l;o+=1)e.ks.or.k[o].to=null,e.ks.or.k[o].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var n=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(n),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var n=assetLoader.getLumaCanvas(this.canvasContext.canvas);n.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(n,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(this.data.td!==1||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},i={};if(e.ty==="fl"||e.ty==="st"?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(n.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):e.ty!=="gf"&&e.ty!=="gs"||(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],e.lj==1&&(n.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(n.wi=i.w.v),e.d){var o=new DashProperty(this,e.d,"canvas",this);i.d=o,i.d.k||(n.da=i.d.dashArray,n.do=i.d.dashoffset[0])}}else n.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(n),i.style=n,i},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,i,o){var l,u,f,p,d,m,g=e.length-1,_=[],S=[],E=[].concat(o);for(l=g;l>=0;l-=1){if((p=this.searchProcessedElement(e[l]))?t[l]=n[p-1]:e[l]._shouldRender=i,e[l].ty==="fl"||e[l].ty==="st"||e[l].ty==="gf"||e[l].ty==="gs")p?t[l].style.closed=!1:t[l]=this.createStyleElement(e[l],E),_.push(t[l].style);else if(e[l].ty==="gr"){if(p)for(f=t[l].it.length,u=0;u<f;u+=1)t[l].prevViewData[u]=t[l].it[u];else t[l]=this.createGroupElement(e[l]);this.searchShapes(e[l].it,t[l].it,t[l].prevViewData,i,E)}else e[l].ty==="tr"?(p||(m=this.createTransformElement(e[l]),t[l]=m),E.push(t[l]),this.addTransformToStyleList(t[l])):e[l].ty==="sh"||e[l].ty==="rc"||e[l].ty==="el"||e[l].ty==="sr"?p||(t[l]=this.createShapeElement(e[l])):e[l].ty==="tm"||e[l].ty==="rd"||e[l].ty==="pb"||e[l].ty==="zz"||e[l].ty==="op"?(p?(d=t[l]).closed=!1:((d=ShapeModifiers.getModifier(e[l].ty)).init(this,e[l]),t[l]=d,this.shapeModifiers.push(d)),S.push(d)):e[l].ty==="rp"&&(p?(d=t[l]).closed=!0:(d=ShapeModifiers.getModifier(e[l].ty),t[l]=d,d.init(this,e,l,t),this.shapeModifiers.push(d),i=!1),S.push(d));this.addProcessedElement(e[l],l+1)}for(this.removeTransformFromStyleList(),this.closeStyles(_),g=S.length,l=0;l<g;l+=1)S[l].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,n,i,o,l,u,f,p,d=this.stylesList.length,m=this.globalData.renderer,g=this.globalData.canvasContext;for(e=0;e<d;e+=1)if(((f=(p=this.stylesList[e]).type)!=="st"&&f!=="gs"||p.wi!==0)&&p.data._shouldRender&&p.coOp!==0&&this.globalData.currentGlobalAlpha!==0){for(m.save(),l=p.elements,f==="st"||f==="gs"?(m.ctxStrokeStyle(f==="st"?p.co:p.grd),m.ctxLineWidth(p.wi),m.ctxLineCap(p.lc),m.ctxLineJoin(p.lj),m.ctxMiterLimit(p.ml||0)):m.ctxFillStyle(f==="fl"?p.co:p.grd),m.ctxOpacity(p.coOp),f!=="st"&&f!=="gs"&&g.beginPath(),m.ctxTransform(p.preTransforms.finalTransform.props),n=l.length,t=0;t<n;t+=1){for(f!=="st"&&f!=="gs"||(g.beginPath(),p.da&&(g.setLineDash(p.da),g.lineDashOffset=p.do)),o=(u=l[t].trNodes).length,i=0;i<o;i+=1)u[i].t==="m"?g.moveTo(u[i].p[0],u[i].p[1]):u[i].t==="c"?g.bezierCurveTo(u[i].pts[0],u[i].pts[1],u[i].pts[2],u[i].pts[3],u[i].pts[4],u[i].pts[5]):g.closePath();f!=="st"&&f!=="gs"||(m.ctxStroke(),p.da&&g.setLineDash(this.dashResetter))}f!=="st"&&f!=="gs"&&this.globalData.renderer.ctxFill(p.r),m.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,i){var o,l;for(l=e,o=t.length-1;o>=0;o-=1)t[o].ty==="tr"?(l=n[o].transform,this.renderShapeTransform(e,l)):t[o].ty==="sh"||t[o].ty==="el"||t[o].ty==="rc"||t[o].ty==="sr"?this.renderPath(t[o],n[o]):t[o].ty==="fl"?this.renderFill(t[o],n[o],l):t[o].ty==="st"?this.renderStroke(t[o],n[o],l):t[o].ty==="gf"||t[o].ty==="gs"?this.renderGradientFill(t[o],n[o],l):t[o].ty==="gr"?this.renderShape(l,t[o].it,n[o].it):t[o].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n,i,o,l=e.trNodes,u=t.paths,f=u._length;l.length=0;var p=e.transforms.finalTransform;for(o=0;o<f;o+=1){var d=u.shapes[o];if(d&&d.v){for(i=d._length,n=1;n<i;n+=1)n===1&&l.push({t:"m",p:p.applyToPointArray(d.v[0][0],d.v[0][1],0)}),l.push({t:"c",pts:p.applyToTriplePoints(d.o[n-1],d.i[n],d.v[n])});i===1&&l.push({t:"m",p:p.applyToPointArray(d.v[0][0],d.v[0][1],0)}),d.c&&i&&(l.push({t:"c",pts:p.applyToTriplePoints(d.o[n-1],d.i[0],d.v[0])}),l.push({t:"z"}))}}e.trNodes=l}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var n,i=t.styledShapes.length;for(n=0;n<i;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var i,o=t.style;if(!o.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var l,u=this.globalData.canvasContext,f=t.s.v,p=t.e.v;if(e.t===1)i=u.createLinearGradient(f[0],f[1],p[0],p[1]);else{var d=Math.sqrt(Math.pow(f[0]-p[0],2)+Math.pow(f[1]-p[1],2)),m=Math.atan2(p[1]-f[1],p[0]-f[0]),g=t.h.v;g>=1?g=.99:g<=-1&&(g=-.99);var _=d*g,S=Math.cos(m+t.a.v)*_+f[0],E=Math.sin(m+t.a.v)*_+f[1];i=u.createRadialGradient(S,E,0,f[0],f[1],d)}var R=e.g.p,b=t.g.c,A=1;for(l=0;l<R;l+=1)t.g._hasOpacity&&t.g._collapsable&&(A=t.g.o[2*l+1]),i.addColorStop(b[4*l]/100,"rgba("+b[4*l+1]+","+b[4*l+2]+","+b[4*l+3]+","+A+")");o.grd=i}o.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var i=t.style,o=t.d;o&&(o._mdf||this._isFirstFrame)&&(i.da=o.dashArray,i.do=o.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i,o,l,u,f,p,d,m,g,_,S,E,R=this.globalData.fontManager.getFontByName(e.f),b=e.l,A=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var C=this.data.singleShape,O=.001*e.tr*e.finalSize,M=0,T=0,j=!0,I=0;for(i=0;i<o;i+=1){u=(l=this.globalData.fontManager.getCharData(e.finalText[i],R.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&l.data||{},A.reset(),C&&b[i].n&&(M=-O,T+=e.yOffset,T+=j?1:0,j=!1),g=(d=u.shapes?u.shapes[0].it:[]).length,A.scale(e.finalSize/100,e.finalSize/100),C&&this.applyTextPropertiesToMatrix(e,A,b[i].line,M,T),S=createSizedArray(g-1);var D=0;for(m=0;m<g;m+=1)if(d[m].ty==="sh"){for(p=d[m].ks.k.i.length,_=d[m].ks.k,E=[],f=1;f<p;f+=1)f===1&&E.push(A.applyToX(_.v[0][0],_.v[0][1],0),A.applyToY(_.v[0][0],_.v[0][1],0)),E.push(A.applyToX(_.o[f-1][0],_.o[f-1][1],0),A.applyToY(_.o[f-1][0],_.o[f-1][1],0),A.applyToX(_.i[f][0],_.i[f][1],0),A.applyToY(_.i[f][0],_.i[f][1],0),A.applyToX(_.v[f][0],_.v[f][1],0),A.applyToY(_.v[f][0],_.v[f][1],0));E.push(A.applyToX(_.o[f-1][0],_.o[f-1][1],0),A.applyToY(_.o[f-1][0],_.o[f-1][1],0),A.applyToX(_.i[0][0],_.i[0][1],0),A.applyToY(_.i[0][0],_.i[0][1],0),A.applyToX(_.v[0][0],_.v[0][1],0),A.applyToY(_.v[0][0],_.v[0][1],0)),S[D]=E,D+=1}C&&(M+=b[i].l,M+=O),this.textSpans[I]?this.textSpans[I].elem=S:this.textSpans[I]={elem:S},I+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,n,i,o,l;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var u,f=this.textAnimator.renderedLetters,p=this.textProperty.currentData.l;t=p.length;var d,m,g=null,_=null,S=null,E=this.globalData.renderer;for(e=0;e<t;e+=1)if(!p[e].n){if((u=f[e])&&(E.save(),E.ctxTransform(u.p),E.ctxOpacity(u.o)),this.fill){for(u&&u.fc?g!==u.fc&&(E.ctxFillStyle(u.fc),g=u.fc):g!==this.values.fill&&(g=this.values.fill,E.ctxFillStyle(this.values.fill)),i=(d=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<i;n+=1)for(l=(m=d[n]).length,this.globalData.canvasContext.moveTo(m[0],m[1]),o=2;o<l;o+=6)this.globalData.canvasContext.bezierCurveTo(m[o],m[o+1],m[o+2],m[o+3],m[o+4],m[o+5]);this.globalData.canvasContext.closePath(),E.ctxFill()}if(this.stroke){for(u&&u.sw?S!==u.sw&&(S=u.sw,E.ctxLineWidth(u.sw)):S!==this.values.sWidth&&(S=this.values.sWidth,E.ctxLineWidth(this.values.sWidth)),u&&u.sc?_!==u.sc&&(_=u.sc,E.ctxStrokeStyle(u.sc)):_!==this.values.stroke&&(_=this.values.stroke,E.ctxStrokeStyle(this.values.stroke)),i=(d=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<i;n+=1)for(l=(m=d[n]).length,this.globalData.canvasContext.moveTo(m[0],m[1]),o=2;o<l;o+=6)this.globalData.canvasContext.bezierCurveTo(m[o],m[o+1],m[o+2],m[o+3],m[o+4],m[o+5]);this.globalData.canvasContext.closePath(),E.ctxStroke()}u&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,n,i=e.getContext("2d"),o=this.img.width,l=this.img.height,u=o/l,f=this.assetData.w/this.assetData.h,p=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;u>f&&p==="xMidYMid slice"||u<f&&p!=="xMidYMid slice"?t=(n=l)*f:n=(t=o)/f,i.drawImage(this.img,(o-t)/2,(l-n)/2,t,n,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,n,i){this.canvasContext.fillRect(e,t,n,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var n,i,o,l;if(this.reset(),e?(n=e,i=t,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr),this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var u=this.renderConfig.preserveAspectRatio.split(" "),f=u[1]||"meet",p=u[0]||"xMidYMid",d=p.substr(0,4),m=p.substr(4);o=n/i,(l=this.transformCanvas.w/this.transformCanvas.h)>o&&f==="meet"||l<o&&f==="slice"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx=d==="xMid"&&(l<o&&f==="meet"||l>o&&f==="slice")?(n-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:d==="xMax"&&(l<o&&f==="meet"||l>o&&f==="slice")?(n-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty=m==="YMid"&&(l>o&&f==="meet"||l<o&&f==="slice")?(i-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:m==="YMax"&&(l>o&&f==="meet"||l<o&&f==="slice")?(i-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||this.renderConfig.clearCanvas!==!0||t)&&!this.destroyed&&e!==-1){var n;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var i=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&this.layers[e].ty!==99){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,n=this.stack[this.cArrPos],i=n.transform,o=this.cTr.props;for(t=0;t<16;t+=1)o[t]=i[t];if(e){this.nativeContext.restore();var l=this.stack[this.cArrPos+1];this.appliedFillStyle=l.fillStyle,this.appliedStrokeStyle=l.strokeStyle,this.appliedLineWidth=l.lineWidth,this.appliedLineCap=l.lineCap,this.appliedLineJoin=l.lineJoin,this.appliedMiterLimit=l.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(e||n.opacity!==-1&&this.currentOpacity!==n.opacity)&&(this.nativeContext.globalAlpha=n.opacity,this.currentOpacity=n.opacity),this.currentFillStyle=n.fillStyle,this.currentStrokeStyle=n.strokeStyle,this.currentLineWidth=n.lineWidth,this.currentLineCap=n.lineCap,this.currentLineJoin=n.lineJoin,this.currentMiterLimit=n.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n,i=this.stack[this.cArrPos];for(n=0;n<16;n+=1)i.transform[n]=t[n];this.cArrPos+=1;var o=this.stack[this.cArrPos];o.opacity=i.opacity,o.fillStyle=i.fillStyle,o.strokeStyle=i.strokeStyle,o.lineWidth=i.lineWidth,o.lineCap=i.lineCap,o.lineJoin=i.lineJoin,o.miterLimit=i.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var n=t.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,n,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,n,i)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n,i,o,l,u,f=e.sh.v,p=e.transformers,d=f._length;if(!(d<=1)){for(n=0;n<d-1;n+=1)i=this.getTransformedPoint(p,f.v[n]),o=this.getTransformedPoint(p,f.o[n]),l=this.getTransformedPoint(p,f.i[n+1]),u=this.getTransformedPoint(p,f.v[n+1]),this.checkBounds(i,o,l,u,t);f.c&&(i=this.getTransformedPoint(p,f.v[n]),o=this.getTransformedPoint(p,f.o[n]),l=this.getTransformedPoint(p,f.i[0]),u=this.getTransformedPoint(p,f.v[0]),this.checkBounds(i,o,l,u,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,i,o){this.getBoundsOfCurve(e,t,n,i);var l=this.shapeBoundingBox;o.x=bmMin(l.left,o.x),o.xMax=bmMax(l.right,o.xMax),o.y=bmMin(l.top,o.y),o.yMax=bmMax(l.bottom,o.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,i){for(var o,l,u,f,p,d,m,g=[[e[0],i[0]],[e[1],i[1]]],_=0;_<2;++_)l=6*e[_]-12*t[_]+6*n[_],o=-3*e[_]+9*t[_]-9*n[_]+3*i[_],u=3*t[_]-3*e[_],l|=0,u|=0,(o|=0)===0&&l===0||(o===0?(f=-u/l)>0&&f<1&&g[_].push(this.calculateF(f,e,t,n,i,_)):(p=l*l-4*u*o)>=0&&((d=(-l+bmSqrt(p))/(2*o))>0&&d<1&&g[_].push(this.calculateF(d,e,t,n,i,_)),(m=(-l-bmSqrt(p))/(2*o))>0&&m<1&&g[_].push(this.calculateF(m,e,t,n,i,_))));this.shapeBoundingBox.left=bmMin.apply(null,g[0]),this.shapeBoundingBox.top=bmMin.apply(null,g[1]),this.shapeBoundingBox.right=bmMax.apply(null,g[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,g[1])},HShapeElement.prototype.calculateF=function(e,t,n,i,o,l){return bmPow(1-e,3)*t[l]+3*bmPow(1-e,2)*e*n[l]+3*(1-e)*bmPow(e,2)*i[l]+bmPow(e,3)*o[l]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var o=e.keyframes[i].s;o>n&&(n=o)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,o="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=o,i.webkitTransform=o}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i,o,l=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",l.fClass)this.innerElem.className=l.fClass;else{t.fontFamily=l.fFamily;var u=e.fWeight,f=e.fStyle;t.fontStyle=f,t.fontWeight=u}var p,d,m,g=e.l;o=g.length;var _,S=this.mHelper,E="",R=0;for(i=0;i<o;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[R]?p=this.textPaths[R]:((p=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),p.setAttribute("stroke-linejoin",lineJoinEnum[2]),p.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[R]?m=(d=this.textSpans[R]).children[0]:((d=createTag("div")).style.lineHeight=0,(m=createNS("svg")).appendChild(p),styleDiv(d)))):this.isMasked?p=this.textPaths[R]?this.textPaths[R]:createNS("text"):this.textSpans[R]?(d=this.textSpans[R],p=this.textPaths[R]):(styleDiv(d=createTag("span")),styleDiv(p=createTag("span")),d.appendChild(p)),this.globalData.fontManager.chars){var b,A=this.globalData.fontManager.getCharData(e.finalText[i],l.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(b=A?A.data:null,S.reset(),b&&b.shapes&&b.shapes.length&&(_=b.shapes[0].it,S.scale(e.finalSize/100,e.finalSize/100),E=this.createPathShape(S,_),p.setAttribute("d",E)),this.isMasked)this.innerElem.appendChild(p);else{if(this.innerElem.appendChild(d),b&&b.shapes){document.body.appendChild(m);var C=m.getBBox();m.setAttribute("width",C.width+2),m.setAttribute("height",C.height+2),m.setAttribute("viewBox",C.x-1+" "+(C.y-1)+" "+(C.width+2)+" "+(C.height+2));var O=m.style,M="translate("+(C.x-1)+"px,"+(C.y-1)+"px)";O.transform=M,O.webkitTransform=M,g[i].yOffset=C.y-1}else m.setAttribute("width",1),m.setAttribute("height",1);d.appendChild(m)}}else if(p.textContent=g[i].val,p.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(p);else{this.innerElem.appendChild(d);var T=p.style,j="translate3d(0,"+-e.finalSize/1.2+"px,0)";T.transform=j,T.webkitTransform=j}this.isMasked?this.textSpans[R]=p:this.textSpans[R]=d,this.textSpans[R].style.display="block",this.textPaths[R]=p,R+=1}for(;R<this.textSpans.length;)this.textSpans[R].style.display="none",R+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var n,i,o,l,u,f=0,p=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;for(i=d.length,n=0;n<i;n+=1)d[n].n?f+=1:(l=this.textSpans[n],u=this.textPaths[n],o=p[f],f+=1,o._mdf.m&&(this.isMasked?l.setAttribute("transform",o.m):(l.style.webkitTransform=o.m,l.style.transform=o.m)),l.style.opacity=o.o,o.sw&&o._mdf.sw&&u.setAttribute("stroke-width",o.sw),o.sc&&o._mdf.sc&&u.setAttribute("stroke",o.sc),o.fc&&o._mdf.fc&&(u.setAttribute("fill",o.fc),u.style.color=o.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var m=this.innerElem.getBBox();if(this.currentBBox.w!==m.width&&(this.currentBBox.w=m.width,this.svgElement.setAttribute("width",m.width)),this.currentBBox.h!==m.height&&(this.currentBBox.h=m.height,this.svgElement.setAttribute("height",m.height)),this.currentBBox.w!==m.width+2||this.currentBBox.h!==m.height+2||this.currentBBox.x!==m.x-1||this.currentBBox.y!==m.y-1){this.currentBBox.w=m.width+2,this.currentBBox.h=m.height+2,this.currentBBox.x=m.x-1,this.currentBBox.y=m.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var g="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=g,e.webkitTransform=g}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,n,i,o=this.comp.threeDElements.length;for(e=0;e<o;e+=1)if((t=this.comp.threeDElements[e]).type==="3d"){n=t.perspectiveElem.style,i=t.container.style;var l=this.pe.v+"px",u="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.perspective=l,n.webkitPerspective=l,i.transformOrigin="0px 0px 0px",i.mozTransformOrigin="0px 0px 0px",i.webkitTransformOrigin="0px 0px 0px",n.transform=u,n.webkitTransform=u}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,n=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)n=this.hierarchy[e].finalTransform.mProp._mdf||n;if(n||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var i=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var o;o=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var l=Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2)+Math.pow(o[2],2)),u=[o[0]/l,o[1]/l,o[2]/l],f=Math.sqrt(u[2]*u[2]+u[0]*u[0]),p=Math.atan2(u[1],f),d=Math.atan2(u[0],-u[2]);this.mat.rotateY(d).rotateX(-p)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var m=!this._prevMat.equals(this.mat);if((m||this.pe._mdf)&&this.comp.threeDElements){var g,_,S;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if((g=this.comp.threeDElements[e]).type==="3d"){if(m){var E=this.mat.toCSS();(S=g.container.style).transform=E,S.webkitTransform=E}this.pe._mdf&&((_=g.perspectiveElem.style).perspective=this.pe.v+"px",_.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){var i=this.layers[t];if(i.ddd&&this.supports3d)this.addTo3dContainer(n,t);else if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var o,l,u=0;u<t;)this.elements[u]&&this.elements[u]!==!0&&this.elements[u].getBaseElement&&(l=this.elements[u],o=(this.layers[u].ddd?this.getThreeDContainerByPos(u):l.getBaseElement())||o),u+=1;o?i.ddd&&this.supports3d||this.layerElement.insertBefore(n,o):i.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n,i,o=createTag("div");styleDiv(o);var l=createTag("div");if(styleDiv(l),t==="3d"){(n=o.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px",n.webkitTransformOrigin="50% 50%",n.mozTransformOrigin="50% 50%",n.transformOrigin="50% 50%";var u="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(i=l.style).transform=u,i.webkitTransform=u}o.appendChild(l);var f={container:l,perspectiveElem:o,startPos:e,endPos:e,type:t};return this.threeDElements.push(f),f},HybridRendererBase.prototype.build3dContainers=function(){var e,t,n=this.layers.length,i="";for(e=0;e<n;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):(i!=="2d"&&(i="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(n=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,i=this.threeDElements.length;n<i;){if(t<=this.threeDElements[n].endPos){for(var o,l=this.threeDElements[n].startPos;l<t;)this.elements[l]&&this.elements[l].getBaseElement&&(o=this.elements[l].getBaseElement()),l+=1;o?this.threeDElements[n].container.insertBefore(e,o):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),i.overflow="hidden";var o=createNS("svg");o.setAttribute("width","1"),o.setAttribute("height","1"),styleDiv(o),this.resizerElem.appendChild(o);var l=createNS("defs");o.appendChild(l),this.data=e,this.setupGlobalData(e,o),this.globalData.defs=l,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,n,i,o=this.animationItem.wrapper.offsetWidth,l=this.animationItem.wrapper.offsetHeight,u=o/l;this.globalData.compSize.w/this.globalData.compSize.h>u?(e=o/this.globalData.compSize.w,t=o/this.globalData.compSize.w,n=0,i=(l-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2):(e=l/this.globalData.compSize.h,t=l/this.globalData.compSize.h,n=(o-this.globalData.compSize.w*(l/this.globalData.compSize.h))/2,i=0);var f=this.resizerElem.style;f.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+n+","+i+",0,1)",f.transform=f.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,n=this.globalData.compSize.h,i=this.threeDElements.length;for(e=0;e<i;e+=1){var o=this.threeDElements[e].perspectiveElem.style;o.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(n,2))+"px",o.perspective=o.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,i=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var o=this.createComp(e[t],i,this.globalData.comp,null);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n,i=0;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(e,n):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(n){for(var i=0,o=e.layers.length;i<o;){if(e.layers[i].nm===n||e.layers[i].ind===n)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return(_typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function seedRandom(e,t){var n=this,i=t.pow(256,6),o=t.pow(2,52),l=2*o;function u(m){var g,_=m.length,S=this,E=0,R=S.i=S.j=0,b=S.S=[];for(_||(m=[_++]);E<256;)b[E]=E++;for(E=0;E<256;E++)b[E]=b[R=255&R+m[E%_]+(g=b[E])],b[R]=g;S.g=function(A){for(var C,O=0,M=S.i,T=S.j,j=S.S;A--;)C=j[M=255&M+1],O=256*O+j[255&(j[M]=j[T=255&T+C])+(j[T]=C)];return S.i=M,S.j=T,O}}function f(m,g){return g.i=m.i,g.j=m.j,g.S=m.S.slice(),g}function p(m,g){for(var _,S=m+"",E=0;E<S.length;)g[255&E]=255&(_^=19*g[255&E])+S.charCodeAt(E++);return d(g)}function d(m){return String.fromCharCode.apply(0,m)}t.seedrandom=function(m,g,_){var S=[],E=p(function A(C,O){var M,T=[],j=_typeof$2(C);if(O&&j=="object")for(M in C)try{T.push(A(C[M],O-1))}catch{}return T.length?T:j=="string"?C:C+"\0"}((g=g===!0?{entropy:!0}:g||{}).entropy?[m,d(e)]:m===null?function(){try{var A=new Uint8Array(256);return(n.crypto||n.msCrypto).getRandomValues(A),d(A)}catch{var C=n.navigator,O=C&&C.plugins;return[+new Date,n,O,n.screen,d(e)]}}():m,3),S),R=new u(S),b=function(){for(var A=R.g(6),C=i,O=0;A<o;)A=256*(A+O),C*=256,O=R.g(1);for(;A>=l;)A/=2,C/=2,O>>>=1;return(A+O)/C};return b.int32=function(){return 0|R.g(4)},b.quick=function(){return R.g(4)/4294967296},b.double=b,p(d(R.S),e),(g.pass||_||function(A,C,O,M){return M&&(M.S&&f(M,R),A.state=function(){return f(R,{})}),O?(t.random=A,C):A})(b,E,"global"in g?g.global:this==t,g.state)},p(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return(_typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var n,i=e.length,o=[];for(n=0;n<i;n+=1)o[n]=-e[n];return o}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof$1(e),i=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(i,t)||n==="string"||i==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var o=0,l=e.length,u=t.length,f=[];o<l||o<u;)(typeof e[o]=="number"||e[o]instanceof Number)&&(typeof t[o]=="number"||t[o]instanceof Number)?f[o]=e[o]+t[o]:f[o]=t[o]===void 0?e[o]:e[o]||t[o],o+=1;return f}return 0}var add=sum;function sub(e,t){var n=_typeof$1(e),i=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(i,t))return n==="string"&&(e=parseInt(e,10)),i==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var o=0,l=e.length,u=t.length,f=[];o<l||o<u;)(typeof e[o]=="number"||e[o]instanceof Number)&&(typeof t[o]=="number"||t[o]instanceof Number)?f[o]=e[o]-t[o]:f[o]=t[o]===void 0?e[o]:e[o]||t[o],o+=1;return f}return 0}function mul(e,t){var n,i,o,l=_typeof$1(e),u=_typeof$1(t);if(isNumerable(l,e)&&isNumerable(u,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(u,t)){for(o=e.length,n=createTypedArray("float32",o),i=0;i<o;i+=1)n[i]=e[i]*t;return n}if(isNumerable(l,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,n=createTypedArray("float32",o),i=0;i<o;i+=1)n[i]=e*t[i];return n}return 0}function div(e,t){var n,i,o,l=_typeof$1(e),u=_typeof$1(t);if(isNumerable(l,e)&&isNumerable(u,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(u,t)){for(o=e.length,n=createTypedArray("float32",o),i=0;i<o;i+=1)n[i]=e[i]/t;return n}if(isNumerable(l,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,n=createTypedArray("float32",o),i=0;i<o;i+=1)n[i]=e/t[i];return n}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var i=n;n=t,t=i}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);var n;t||(t=helperLengthArray);var i=Math.min(e.length,t.length),o=0;for(n=0;n<i;n+=1)o+=Math.pow(t[n]-e[n],2);return Math.sqrt(o)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,n,i=e[0],o=e[1],l=e[2],u=Math.max(i,o,l),f=Math.min(i,o,l),p=(u+f)/2;if(u===f)t=0,n=0;else{var d=u-f;switch(n=p>.5?d/(2-u-f):d/(u+f),u){case i:t=(o-l)/d+(o<l?6:0);break;case o:t=(l-i)/d+2;break;case l:t=(i-o)/d+4}t/=6}return[t,n,p,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t,n,i,o=e[0],l=e[1],u=e[2];if(l===0)t=u,i=u,n=u;else{var f=u<.5?u*(1+l):u+l-u*l,p=2*u-f;t=hue2rgb(p,f,o+1/3),n=hue2rgb(p,f,o),i=hue2rgb(p,f,o-1/3)}return[t,n,i,e[3]]}function linear(e,t,n,i,o){if(i!==void 0&&o!==void 0||(i=t,o=n,t=0,n=1),n<t){var l=n;n=t,t=l}if(e<=t)return i;if(e>=n)return o;var u,f=n===t?0:(e-t)/(n-t);if(!i.length)return i+(o-i)*f;var p=i.length,d=createTypedArray("float32",p);for(u=0;u<p;u+=1)d[u]=i[u]+(o[u]-i[u])*f;return d}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var n,i=t.length;e||(e=createTypedArray("float32",i));var o=createTypedArray("float32",i),l=BMMath.random();for(n=0;n<i;n+=1)o[n]=e[n]+l*(t[n]-e[n]);return o}return e===void 0&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,n,i){var o,l=e.length,u=shapePool.newElement();u.setPathData(!!i,l);var f,p,d=[0,0];for(o=0;o<l;o+=1)f=t&&t[o]?t[o]:d,p=n&&n[o]?n[o]:d,u.setTripleAt(e[o][0],e[o][1],p[0]+e[o][0],p[1]+e[o][1],f[0]+e[o][0],f[1]+e[o][1],o,!0);return u}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function(e,t){var n,i,o=this.pv.length?this.pv.length:1,l=createTypedArray("float32",o),u=Math.floor(5*time);for(n=0,i=0;n<u;){for(i=0;i<o;i+=1)l[i]+=-t+2*t*BMMath.random();n+=1}var f=5*time,p=f-Math.floor(f),d=createTypedArray("float32",o);if(o>1){for(i=0;i<o;i+=1)d[i]=this.pv[i]+l[i]+(-t+2*t*BMMath.random())*p;return d}return this.pv+l[0]+(-t+2*t*BMMath.random())*p}).bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,i,0]}function easeOut(e,t,n,i,o){return applyEase(easeOutBez,e,t,n,i,o)}function easeIn(e,t,n,i,o){return applyEase(easeInBez,e,t,n,i,o)}function ease(e,t,n,i,o){return applyEase(easeInOutBez,e,t,n,i,o)}function applyEase(e,t,n,i,o,l){o===void 0?(o=n,l=i):t=(t-n)/(i-n),t>1?t=1:t<0&&(t=0);var u=e(t);if($bm_isInstanceOfArray(o)){var f,p=o.length,d=createTypedArray("float32",p);for(f=0;f<p;f+=1)d[f]=(l[f]-o[f])*u+o[f];return d}return(l-o)*u+o}function nearestKey(e){var t,n,i,o=data.k.length;if(data.k.length&&typeof data.k[0]!="number")if(n=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,i=data.k[0].t;else{for(t=0;t<o-1;t+=1){if(e===data.k[t].t){n=t+1,i=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(n=t+2,i=data.k[t+1].t):(n=t+1,i=data.k[t].t);break}}n===-1&&(n=t+1,i=data.k[t].t)}else n=0,i=0;var l={};return l.index=n,l.time=i/elem.comp.globalData.frameRate,l}function key(e){var t,n,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var o=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=o.length,n=0;n<i;n+=1)t[n]=o[n],t.value[n]=o[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||e===0||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind;!elem.hierarchy||elem.hierarchy.length;var parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType!==4||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),!(!elem.hierarchy||!elem.hierarchy.length)&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={};return e.initExpressions=function(t){var n=0,i=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){n+=1},t.renderer.globalData.popExpression=function(){(n-=1)===0&&function(){var o,l=i.length;for(o=0;o<l;o+=1)i[o].release();i.length=0}()},t.renderer.globalData.registerExpressionProperty=function(o){i.indexOf(o)===-1&&i.push(o)}},e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(t,n){this._mask=t,this._data=n}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var n,i=createSizedArray(t.viewData.length),o=t.viewData.length;for(n=0;n<o;n+=1)i[n]=new e(t.viewData[n],t.masksProperties[n]);return function(l){for(n=0;n<o;){if(t.masksProperties[n].nm===l)return i[n];n+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(o,l,u){Object.defineProperty(o,"velocity",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),o.numKeys=l.keyframes?l.keyframes.length:0,o.key=function(f){if(!o.numKeys)return 0;var p="";p="s"in l.keyframes[f-1]?l.keyframes[f-1].s:"e"in l.keyframes[f-2]?l.keyframes[f-2].e:l.keyframes[f-2].s;var d=u==="unidimensional"?new Number(p):Object.assign({},p);return d.time=l.keyframes[f-1].t/l.elem.comp.globalData.frameRate,d.value=u==="unidimensional"?p[0]:p,d},o.valueAtTime=l.getValueAtTime,o.speedAtTime=l.getSpeedAtTime,o.velocityAtTime=l.getVelocityAtTime,o.propertyGroup=l.propertyGroup}function i(){return e}return function(o){return o?o.propType==="unidimensional"?function(l){l&&"pv"in l||(l=e);var u=1/l.mult,f=l.pv*u,p=new Number(f);return p.value=f,n(p,l,"unidimensional"),function(){return l.k&&l.getValue(),f=l.v*u,p.value!==f&&((p=new Number(f)).value=f,n(p,l,"unidimensional")),p}}(o):function(l){l&&"pv"in l||(l=t);var u=1/l.mult,f=l.data&&l.data.l||l.pv.length,p=createTypedArray("float32",f),d=createTypedArray("float32",f);return p.value=d,n(p,l,"multidimensional"),function(){l.k&&l.getValue();for(var m=0;m<f;m+=1)d[m]=l.v[m]*u,p[m]=d[m];return p}}(o):i}}(),TransformExpressionInterface=function(e){function t(u){switch(u){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var n,i,o,l;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?l=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(o=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?l():[n(),i(),o?o():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(d){var m=new Matrix;return d!==void 0?this._elem.finalTransform.mProp.getValueAtTime(d).clone(m):this._elem.finalTransform.mProp.applyToMatrix(m),m}function t(d,m){var g=this.getMatrix(m);return g.props[12]=0,g.props[13]=0,g.props[14]=0,this.applyPoint(g,d)}function n(d,m){var g=this.getMatrix(m);return this.applyPoint(g,d)}function i(d,m){var g=this.getMatrix(m);return g.props[12]=0,g.props[13]=0,g.props[14]=0,this.invertPoint(g,d)}function o(d,m){var g=this.getMatrix(m);return this.invertPoint(g,d)}function l(d,m){if(this._elem.hierarchy&&this._elem.hierarchy.length){var g,_=this._elem.hierarchy.length;for(g=0;g<_;g+=1)this._elem.hierarchy[g].finalTransform.mProp.applyToMatrix(d)}return d.applyToPointArray(m[0],m[1],m[2]||0)}function u(d,m){if(this._elem.hierarchy&&this._elem.hierarchy.length){var g,_=this._elem.hierarchy.length;for(g=0;g<_;g+=1)this._elem.hierarchy[g].finalTransform.mProp.applyToMatrix(d)}return d.inversePoint(m)}function f(d){var m=new Matrix;if(m.reset(),this._elem.finalTransform.mProp.applyToMatrix(m),this._elem.hierarchy&&this._elem.hierarchy.length){var g,_=this._elem.hierarchy.length;for(g=0;g<_;g+=1)this._elem.hierarchy[g].finalTransform.mProp.applyToMatrix(m);return m.inversePoint(d)}return m.inversePoint(d)}function p(){return[1,1,1,1]}return function(d){var m;function g(S){switch(S){case"ADBE Root Vectors Group":case"Contents":case 2:return g.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return m;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return g.effect;case"ADBE Text Properties":return g.textInterface;default:return null}}g.getMatrix=e,g.invertPoint=u,g.applyPoint=l,g.toWorld=n,g.toWorldVec=t,g.fromWorld=o,g.fromWorldVec=i,g.toComp=n,g.fromComp=f,g.sampleImage=p,g.sourceRectAtTime=d.sourceRectAtTime.bind(d),g._elem=d;var _=getDescriptor(m=TransformExpressionInterface(d.finalTransform.mProp),"anchorPoint");return Object.defineProperties(g,{hasParent:{get:function(){return d.hierarchy.length}},parent:{get:function(){return d.hierarchy[0].layerInterface}},rotation:getDescriptor(m,"rotation"),scale:getDescriptor(m,"scale"),position:getDescriptor(m,"position"),opacity:getDescriptor(m,"opacity"),anchorPoint:_,anchor_point:_,transform:{get:function(){return m}},active:{get:function(){return d.isInRange}}}),g.startTime=d.data.st,g.index=d.data.ind,g.source=d.data.refId,g.height=d.data.ty===0?d.data.h:100,g.width=d.data.ty===0?d.data.w:100,g.inPoint=d.data.ip/d.comp.globalData.frameRate,g.outPoint=d.data.op/d.comp.globalData.frameRate,g._name=d.data.nm,g.registerMaskInterface=function(S){g.mask=new MaskManagerInterface(S,d)},g.registerEffectsInterface=function(S){g.effect=S},g}}(),propertyGroupFactory=function(e,t){return function(n){return(n=n===void 0?1:n)<=0?e:t(n-1)}},PropertyInterface=function(e,t){var n={_name:e};return function(i){return(i=i===void 0?1:i)<=0?n:t(i-1)}},EffectsExpressionInterface=function(){function e(n,i,o,l){function u(g){for(var _=n.ef,S=0,E=_.length;S<E;){if(g===_[S].nm||g===_[S].mn||g===_[S].ix)return _[S].ty===5?d[S]:d[S]();S+=1}throw new Error}var f,p=propertyGroupFactory(u,o),d=[],m=n.ef.length;for(f=0;f<m;f+=1)n.ef[f].ty===5?d.push(e(n.ef[f],i.effectElements[f],i.effectElements[f].propertyGroup,l)):d.push(t(i.effectElements[f],n.ef[f].ty,l,p));return n.mn==="ADBE Color Control"&&Object.defineProperty(u,"color",{get:function(){return d[0]()}}),Object.defineProperties(u,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:p}}),u.enabled=n.en!==0,u.active=u.enabled,u}function t(n,i,o,l){var u=ExpressionPropertyInterface(n.p);return n.p.setGroupProperty&&n.p.setGroupProperty(PropertyInterface("",l)),function(){return i===10?o.comp.compInterface(n.p.v):u()}}return{createEffectsInterface:function(n,i){if(n.effectsManager){var o,l=[],u=n.data.ef,f=n.effectsManager.effectElements.length;for(o=0;o<f;o+=1)l.push(e(u[o],n.effectsManager.effectElements[o],i,n));var p=n.data.ef||[],d=function(m){for(o=0,f=p.length;o<f;){if(m===p[o].nm||m===p[o].mn||m===p[o].ix)return l[o];o+=1}return null};return Object.defineProperty(d,"numProperties",{get:function(){return p.length}}),d}return null}}}(),ShapePathInterface=function(e,t,n){var i=t.sh;function o(u){return u==="Shape"||u==="shape"||u==="Path"||u==="path"||u==="ADBE Vector Shape"||u===2?o.path:null}var l=propertyGroupFactory(o,n);return i.setGroupProperty(PropertyInterface("Path",l)),Object.defineProperties(o,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:n}}),o},ShapeExpressionInterface=function(){function e(S,E,R){var b,A=[],C=S?S.length:0;for(b=0;b<C;b+=1)S[b].ty==="gr"?A.push(t(S[b],E[b],R)):S[b].ty==="fl"?A.push(n(S[b],E[b],R)):S[b].ty==="st"?A.push(l(S[b],E[b],R)):S[b].ty==="tm"?A.push(u(S[b],E[b],R)):S[b].ty==="tr"||(S[b].ty==="el"?A.push(p(S[b],E[b],R)):S[b].ty==="sr"?A.push(d(S[b],E[b],R)):S[b].ty==="sh"?A.push(ShapePathInterface(S[b],E[b],R)):S[b].ty==="rc"?A.push(m(S[b],E[b],R)):S[b].ty==="rd"?A.push(g(S[b],E[b],R)):S[b].ty==="rp"?A.push(_(S[b],E[b],R)):S[b].ty==="gf"?A.push(i(S[b],E[b],R)):A.push(o(S[b],E[b])));return A}function t(S,E,R){var b=function(O){switch(O){case"ADBE Vectors Group":case"Contents":case 2:return b.content;default:return b.transform}};b.propertyGroup=propertyGroupFactory(b,R);var A=function(O,M,T){var j,I=function(L){for(var F=0,N=j.length;F<N;){if(j[F]._name===L||j[F].mn===L||j[F].propertyIndex===L||j[F].ix===L||j[F].ind===L)return j[F];F+=1}return typeof L=="number"?j[L-1]:null};I.propertyGroup=propertyGroupFactory(I,T),j=e(O.it,M.it,I.propertyGroup),I.numProperties=j.length;var D=f(O.it[O.it.length-1],M.it[M.it.length-1],I.propertyGroup);return I.transform=D,I.propertyIndex=O.cix,I._name=O.nm,I}(S,E,b.propertyGroup),C=f(S.it[S.it.length-1],E.it[E.it.length-1],b.propertyGroup);return b.content=A,b.transform=C,Object.defineProperty(b,"_name",{get:function(){return S.nm}}),b.numProperties=S.np,b.propertyIndex=S.ix,b.nm=S.nm,b.mn=S.mn,b}function n(S,E,R){function b(A){return A==="Color"||A==="color"?b.color:A==="Opacity"||A==="opacity"?b.opacity:null}return Object.defineProperties(b,{color:{get:ExpressionPropertyInterface(E.c)},opacity:{get:ExpressionPropertyInterface(E.o)},_name:{value:S.nm},mn:{value:S.mn}}),E.c.setGroupProperty(PropertyInterface("Color",R)),E.o.setGroupProperty(PropertyInterface("Opacity",R)),b}function i(S,E,R){function b(A){return A==="Start Point"||A==="start point"?b.startPoint:A==="End Point"||A==="end point"?b.endPoint:A==="Opacity"||A==="opacity"?b.opacity:null}return Object.defineProperties(b,{startPoint:{get:ExpressionPropertyInterface(E.s)},endPoint:{get:ExpressionPropertyInterface(E.e)},opacity:{get:ExpressionPropertyInterface(E.o)},type:{get:function(){return"a"}},_name:{value:S.nm},mn:{value:S.mn}}),E.s.setGroupProperty(PropertyInterface("Start Point",R)),E.e.setGroupProperty(PropertyInterface("End Point",R)),E.o.setGroupProperty(PropertyInterface("Opacity",R)),b}function o(){return function(){return null}}function l(S,E,R){var b,A=propertyGroupFactory(j,R),C=propertyGroupFactory(T,A);function O(I){Object.defineProperty(T,S.d[I].nm,{get:ExpressionPropertyInterface(E.d.dataProps[I].p)})}var M=S.d?S.d.length:0,T={};for(b=0;b<M;b+=1)O(b),E.d.dataProps[b].p.setGroupProperty(C);function j(I){return I==="Color"||I==="color"?j.color:I==="Opacity"||I==="opacity"?j.opacity:I==="Stroke Width"||I==="stroke width"?j.strokeWidth:null}return Object.defineProperties(j,{color:{get:ExpressionPropertyInterface(E.c)},opacity:{get:ExpressionPropertyInterface(E.o)},strokeWidth:{get:ExpressionPropertyInterface(E.w)},dash:{get:function(){return T}},_name:{value:S.nm},mn:{value:S.mn}}),E.c.setGroupProperty(PropertyInterface("Color",A)),E.o.setGroupProperty(PropertyInterface("Opacity",A)),E.w.setGroupProperty(PropertyInterface("Stroke Width",A)),j}function u(S,E,R){function b(C){return C===S.e.ix||C==="End"||C==="end"?b.end:C===S.s.ix?b.start:C===S.o.ix?b.offset:null}var A=propertyGroupFactory(b,R);return b.propertyIndex=S.ix,E.s.setGroupProperty(PropertyInterface("Start",A)),E.e.setGroupProperty(PropertyInterface("End",A)),E.o.setGroupProperty(PropertyInterface("Offset",A)),b.propertyIndex=S.ix,b.propertyGroup=R,Object.defineProperties(b,{start:{get:ExpressionPropertyInterface(E.s)},end:{get:ExpressionPropertyInterface(E.e)},offset:{get:ExpressionPropertyInterface(E.o)},_name:{value:S.nm}}),b.mn=S.mn,b}function f(S,E,R){function b(C){return S.a.ix===C||C==="Anchor Point"?b.anchorPoint:S.o.ix===C||C==="Opacity"?b.opacity:S.p.ix===C||C==="Position"?b.position:S.r.ix===C||C==="Rotation"||C==="ADBE Vector Rotation"?b.rotation:S.s.ix===C||C==="Scale"?b.scale:S.sk&&S.sk.ix===C||C==="Skew"?b.skew:S.sa&&S.sa.ix===C||C==="Skew Axis"?b.skewAxis:null}var A=propertyGroupFactory(b,R);return E.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",A)),E.transform.mProps.p.setGroupProperty(PropertyInterface("Position",A)),E.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",A)),E.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",A)),E.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",A)),E.transform.mProps.sk&&(E.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",A)),E.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",A))),E.transform.op.setGroupProperty(PropertyInterface("Opacity",A)),Object.defineProperties(b,{opacity:{get:ExpressionPropertyInterface(E.transform.mProps.o)},position:{get:ExpressionPropertyInterface(E.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(E.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(E.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(E.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(E.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(E.transform.mProps.sa)},_name:{value:S.nm}}),b.ty="tr",b.mn=S.mn,b.propertyGroup=R,b}function p(S,E,R){function b(O){return S.p.ix===O?b.position:S.s.ix===O?b.size:null}var A=propertyGroupFactory(b,R);b.propertyIndex=S.ix;var C=E.sh.ty==="tm"?E.sh.prop:E.sh;return C.s.setGroupProperty(PropertyInterface("Size",A)),C.p.setGroupProperty(PropertyInterface("Position",A)),Object.defineProperties(b,{size:{get:ExpressionPropertyInterface(C.s)},position:{get:ExpressionPropertyInterface(C.p)},_name:{value:S.nm}}),b.mn=S.mn,b}function d(S,E,R){function b(O){return S.p.ix===O?b.position:S.r.ix===O?b.rotation:S.pt.ix===O?b.points:S.or.ix===O||O==="ADBE Vector Star Outer Radius"?b.outerRadius:S.os.ix===O?b.outerRoundness:!S.ir||S.ir.ix!==O&&O!=="ADBE Vector Star Inner Radius"?S.is&&S.is.ix===O?b.innerRoundness:null:b.innerRadius}var A=propertyGroupFactory(b,R),C=E.sh.ty==="tm"?E.sh.prop:E.sh;return b.propertyIndex=S.ix,C.or.setGroupProperty(PropertyInterface("Outer Radius",A)),C.os.setGroupProperty(PropertyInterface("Outer Roundness",A)),C.pt.setGroupProperty(PropertyInterface("Points",A)),C.p.setGroupProperty(PropertyInterface("Position",A)),C.r.setGroupProperty(PropertyInterface("Rotation",A)),S.ir&&(C.ir.setGroupProperty(PropertyInterface("Inner Radius",A)),C.is.setGroupProperty(PropertyInterface("Inner Roundness",A))),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(C.p)},rotation:{get:ExpressionPropertyInterface(C.r)},points:{get:ExpressionPropertyInterface(C.pt)},outerRadius:{get:ExpressionPropertyInterface(C.or)},outerRoundness:{get:ExpressionPropertyInterface(C.os)},innerRadius:{get:ExpressionPropertyInterface(C.ir)},innerRoundness:{get:ExpressionPropertyInterface(C.is)},_name:{value:S.nm}}),b.mn=S.mn,b}function m(S,E,R){function b(O){return S.p.ix===O?b.position:S.r.ix===O?b.roundness:S.s.ix===O||O==="Size"||O==="ADBE Vector Rect Size"?b.size:null}var A=propertyGroupFactory(b,R),C=E.sh.ty==="tm"?E.sh.prop:E.sh;return b.propertyIndex=S.ix,C.p.setGroupProperty(PropertyInterface("Position",A)),C.s.setGroupProperty(PropertyInterface("Size",A)),C.r.setGroupProperty(PropertyInterface("Rotation",A)),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(C.p)},roundness:{get:ExpressionPropertyInterface(C.r)},size:{get:ExpressionPropertyInterface(C.s)},_name:{value:S.nm}}),b.mn=S.mn,b}function g(S,E,R){function b(O){return S.r.ix===O||O==="Round Corners 1"?b.radius:null}var A=propertyGroupFactory(b,R),C=E;return b.propertyIndex=S.ix,C.rd.setGroupProperty(PropertyInterface("Radius",A)),Object.defineProperties(b,{radius:{get:ExpressionPropertyInterface(C.rd)},_name:{value:S.nm}}),b.mn=S.mn,b}function _(S,E,R){function b(O){return S.c.ix===O||O==="Copies"?b.copies:S.o.ix===O||O==="Offset"?b.offset:null}var A=propertyGroupFactory(b,R),C=E;return b.propertyIndex=S.ix,C.c.setGroupProperty(PropertyInterface("Copies",A)),C.o.setGroupProperty(PropertyInterface("Offset",A)),Object.defineProperties(b,{copies:{get:ExpressionPropertyInterface(C.c)},offset:{get:ExpressionPropertyInterface(C.o)},_name:{value:S.nm}}),b.mn=S.mn,b}return function(S,E,R){var b;function A(C){if(typeof C=="number")return(C=C===void 0?1:C)===0?R:b[C-1];for(var O=0,M=b.length;O<M;){if(b[O]._name===C)return b[O];O+=1}return null}return A.propertyGroup=propertyGroupFactory(A,function(){return R}),b=e(S,E,A.propertyGroup),A.numProperties=b.length,A._name="Contents",A}}(),TextExpressionInterface=function(e){var t;function n(i){switch(i){case"ADBE Text Document":return n.sourceText;default:return null}}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var i=e.textProperty.currentData.t;return t&&i===t.value||((t=new String(i)).value=i||new String(i),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),n};function _typeof(e){return(_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(n){return n==="Outline"?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(n){var i="",o=n.getFootageData();function l(u){if(o[u])return i=u,_typeof(o=o[u])==="object"?l:o;var f=u.indexOf(i);if(f!==-1){var p=parseInt(u.substr(f+i.length),10);return _typeof(o=o[p])==="object"?l:o}return""}return function(){return i="",o=n.getFootageData(),l}}(e),t},function(e){function t(n){return n==="Data"?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,n){t.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(e,t,n).bind(n)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),n=this.getValueAtTime(e+-.01),i=0;if(t.length){var o;for(o=0;o<t.length;o+=1)i+=Math.pow(n[o]-t[o],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(e){if(this.vel!==void 0)return this.vel;var t,n,i=this.getValueAtTime(e),o=this.getValueAtTime(e+-.001);if(i.length)for(t=createTypedArray("float32",i.length),n=0;n<i.length;n+=1)t[n]=(o[n]-i[n])/-.001;else t=(o-i)/-.001;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(g,_,S){if(!this.k||!this.keyframes)return this.pv;g=g?g.toLowerCase():"";var E,R,b,A,C,O=this.comp.renderedFrame,M=this.keyframes,T=M[M.length-1].t;if(O<=T)return this.pv;if(S?R=T-(E=_?Math.abs(T-this.elem.comp.globalData.frameRate*_):Math.max(0,T-this.elem.data.ip)):((!_||_>M.length-1)&&(_=M.length-1),E=T-(R=M[M.length-1-_].t)),g==="pingpong"){if(Math.floor((O-R)/E)%2!=0)return this.getValueAtTime((E-(O-R)%E+R)/this.comp.globalData.frameRate,0)}else{if(g==="offset"){var j=this.getValueAtTime(R/this.comp.globalData.frameRate,0),I=this.getValueAtTime(T/this.comp.globalData.frameRate,0),D=this.getValueAtTime(((O-R)%E+R)/this.comp.globalData.frameRate,0),L=Math.floor((O-R)/E);if(this.pv.length){for(A=(C=new Array(j.length)).length,b=0;b<A;b+=1)C[b]=(I[b]-j[b])*L+D[b];return C}return(I-j)*L+D}if(g==="continue"){var F=this.getValueAtTime(T/this.comp.globalData.frameRate,0),N=this.getValueAtTime((T-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(A=(C=new Array(F.length)).length,b=0;b<A;b+=1)C[b]=F[b]+(F[b]-N[b])*((O-T)/this.comp.globalData.frameRate)/5e-4;return C}return F+(O-T)/.001*(F-N)}}return this.getValueAtTime(((O-R)%E+R)/this.comp.globalData.frameRate,0)}function t(g,_,S){if(!this.k)return this.pv;g=g?g.toLowerCase():"";var E,R,b,A,C,O=this.comp.renderedFrame,M=this.keyframes,T=M[0].t;if(O>=T)return this.pv;if(S?R=T+(E=_?Math.abs(this.elem.comp.globalData.frameRate*_):Math.max(0,this.elem.data.op-T)):((!_||_>M.length-1)&&(_=M.length-1),E=(R=M[_].t)-T),g==="pingpong"){if(Math.floor((T-O)/E)%2==0)return this.getValueAtTime(((T-O)%E+T)/this.comp.globalData.frameRate,0)}else{if(g==="offset"){var j=this.getValueAtTime(T/this.comp.globalData.frameRate,0),I=this.getValueAtTime(R/this.comp.globalData.frameRate,0),D=this.getValueAtTime((E-(T-O)%E+T)/this.comp.globalData.frameRate,0),L=Math.floor((T-O)/E)+1;if(this.pv.length){for(A=(C=new Array(j.length)).length,b=0;b<A;b+=1)C[b]=D[b]-(I[b]-j[b])*L;return C}return D-(I-j)*L}if(g==="continue"){var F=this.getValueAtTime(T/this.comp.globalData.frameRate,0),N=this.getValueAtTime((T+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(A=(C=new Array(F.length)).length,b=0;b<A;b+=1)C[b]=F[b]+(F[b]-N[b])*(T-O)/.001;return C}return F+(F-N)*(T-O)/.001}}return this.getValueAtTime((E-((T-O)%E+T))/this.comp.globalData.frameRate,0)}function n(g,_){if(!this.k)return this.pv;if(g=.5*(g||.4),(_=Math.floor(_||5))<=1)return this.pv;var S,E,R=this.comp.renderedFrame/this.comp.globalData.frameRate,b=R-g,A=_>1?(R+g-b)/(_-1):1,C=0,O=0;for(S=this.pv.length?createTypedArray("float32",this.pv.length):0;C<_;){if(E=this.getValueAtTime(b+C*A),this.pv.length)for(O=0;O<this.pv.length;O+=1)S[O]+=E[O];else S+=E;C+=1}if(this.pv.length)for(O=0;O<this.pv.length;O+=1)S[O]/=_;else S/=_;return S}function i(g){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var _=this._transformCachingAtTime.v;if(_.cloneFromProps(this.pre.props),this.appliedTransformations<1){var S=this.a.getValueAtTime(g);_.translate(-S[0]*this.a.mult,-S[1]*this.a.mult,S[2]*this.a.mult)}if(this.appliedTransformations<2){var E=this.s.getValueAtTime(g);_.scale(E[0]*this.s.mult,E[1]*this.s.mult,E[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var R=this.sk.getValueAtTime(g),b=this.sa.getValueAtTime(g);_.skewFromAxis(-R*this.sk.mult,b*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var A=this.r.getValueAtTime(g);_.rotate(-A*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var C=this.rz.getValueAtTime(g),O=this.ry.getValueAtTime(g),M=this.rx.getValueAtTime(g),T=this.or.getValueAtTime(g);_.rotateZ(-C*this.rz.mult).rotateY(O*this.ry.mult).rotateX(M*this.rx.mult).rotateZ(-T[2]*this.or.mult).rotateY(T[1]*this.or.mult).rotateX(T[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var j=this.px.getValueAtTime(g),I=this.py.getValueAtTime(g);if(this.data.p.z){var D=this.pz.getValueAtTime(g);_.translate(j*this.px.mult,I*this.py.mult,-D*this.pz.mult)}else _.translate(j*this.px.mult,I*this.py.mult,0)}else{var L=this.p.getValueAtTime(g);_.translate(L[0]*this.p.mult,L[1]*this.p.mult,-L[2]*this.p.mult)}return _}function o(){return this.v.clone(new Matrix)}var l=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(g,_,S){var E=l(g,_,S);return E.dynamicProperties.length?E.getValueAtTime=i.bind(E):E.getValueAtTime=o.bind(E),E.setGroupProperty=expressionHelpers.setGroupProperty,E};var u=PropertyFactory.getProp;PropertyFactory.getProp=function(g,_,S,E,R){var b=u(g,_,S,E,R);b.kf?b.getValueAtTime=expressionHelpers.getValueAtTime.bind(b):b.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(b),b.setGroupProperty=expressionHelpers.setGroupProperty,b.loopOut=e,b.loopIn=t,b.smooth=n,b.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(b),b.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(b),b.numKeys=_.a===1?_.k.length:0,b.propertyIndex=_.ix;var A=0;return S!==0&&(A=createTypedArray("float32",_.a===1?_.k[0].s.length:_.k.length)),b._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:A},expressionHelpers.searchExpressions(g,_,b),b.k&&R.addDynamicProperty(b),b};var f=ShapePropertyFactory.getConstructorFunction(),p=ShapePropertyFactory.getKeyframedConstructorFunction();function d(){}d.prototype={vertices:function(g,_){this.k&&this.getValue();var S,E=this.v;_!==void 0&&(E=this.getValueAtTime(_,0));var R=E._length,b=E[g],A=E.v,C=createSizedArray(R);for(S=0;S<R;S+=1)C[S]=g==="i"||g==="o"?[b[S][0]-A[S][0],b[S][1]-A[S][1]]:[b[S][0],b[S][1]];return C},points:function(g){return this.vertices("v",g)},inTangents:function(g){return this.vertices("i",g)},outTangents:function(g){return this.vertices("o",g)},isClosed:function(){return this.v.c},pointOnPath:function(g,_){var S=this.v;_!==void 0&&(S=this.getValueAtTime(_,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(S));for(var E,R=this._segmentsLength,b=R.lengths,A=R.totalLength*g,C=0,O=b.length,M=0;C<O;){if(M+b[C].addedLength>A){var T=C,j=S.c&&C===O-1?0:C+1,I=(A-M)/b[C].addedLength;E=bez.getPointInSegment(S.v[T],S.v[j],S.o[T],S.i[j],I,b[C]);break}M+=b[C].addedLength,C+=1}return E||(E=S.c?[S.v[0][0],S.v[0][1]]:[S.v[S._length-1][0],S.v[S._length-1][1]]),E},vectorOnPath:function(g,_,S){g==1?g=this.v.c:g==0&&(g=.999);var E=this.pointOnPath(g,_),R=this.pointOnPath(g+.001,_),b=R[0]-E[0],A=R[1]-E[1],C=Math.sqrt(Math.pow(b,2)+Math.pow(A,2));return C===0?[0,0]:S==="tangent"?[b/C,A/C]:[-A/C,b/C]},tangentOnPath:function(g,_){return this.vectorOnPath(g,_,"tangent")},normalOnPath:function(g,_){return this.vectorOnPath(g,_,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([d],f),extendPrototype([d],p),p.prototype.getValueAtTime=function(g){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),g*=this.elem.globalData.frameRate,(g-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<g?this._caching.lastIndex:0,this._cachingAtTime.lastTime=g,this.interpolateShape(g,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},p.prototype.initiateExpression=ExpressionManager.initiateExpression;var m=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(g,_,S,E,R){var b=m(g,_,S,E,R);return b.propertyIndex=_.ix,b.lock=!1,S===3?expressionHelpers.searchExpressions(g,_.pt,b):S===4&&expressionHelpers.searchExpressions(g,_.ks,b),b.k&&g.addDynamicProperty(b),b}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var n=this.calculateExpression(t);if(e.t!==n){var i={};return this.copyData(i,e),i.t=n.toString(),i.__complete=!1,i}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var n,i,o=createNS("feMerge");for(o.setAttribute("result",e),i=0;i<t.length;i+=1)(n=createNS("feMergeNode")).setAttribute("in",t[i]),o.appendChild(n),o.appendChild(n);return o}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,n,i,o){this.filterManager=t;var l=createNS("feColorMatrix");l.setAttribute("type","matrix"),l.setAttribute("color-interpolation-filters","linearRGB"),l.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=l,l.setAttribute("result",i+"_tint_1"),e.appendChild(l),(l=createNS("feColorMatrix")).setAttribute("type","matrix"),l.setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),l.setAttribute("result",i+"_tint_2"),e.appendChild(l),this.matrixFilter=l;var u=this.createMergeNode(i,[o,i+"_tint_1",i+"_tint_2"]);e.appendChild(u)}function SVGFillFilter(e,t,n,i){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",i),e.appendChild(o),this.matrixFilter=o}function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}function SVGTritoneFilter(e,t,n,i){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(o);var l=createNS("feComponentTransfer");l.setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("result",i),this.matrixFilter=l;var u=createNS("feFuncR");u.setAttribute("type","table"),l.appendChild(u),this.feFuncR=u;var f=createNS("feFuncG");f.setAttribute("type","table"),l.appendChild(f),this.feFuncG=f;var p=createNS("feFuncB");p.setAttribute("type","table"),l.appendChild(p),this.feFuncB=p,e.appendChild(l)}function SVGProLevelsFilter(e,t,n,i){this.filterManager=t;var o=this.filterManager.effectElements,l=createNS("feComponentTransfer");(o[10].p.k||o[10].p.v!==0||o[11].p.k||o[11].p.v!==1||o[12].p.k||o[12].p.v!==1||o[13].p.k||o[13].p.v!==0||o[14].p.k||o[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",l)),(o[17].p.k||o[17].p.v!==0||o[18].p.k||o[18].p.v!==1||o[19].p.k||o[19].p.v!==1||o[20].p.k||o[20].p.v!==0||o[21].p.k||o[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",l)),(o[24].p.k||o[24].p.v!==0||o[25].p.k||o[25].p.v!==1||o[26].p.k||o[26].p.v!==1||o[27].p.k||o[27].p.v!==0||o[28].p.k||o[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",l)),(o[31].p.k||o[31].p.v!==0||o[32].p.k||o[32].p.v!==1||o[33].p.k||o[33].p.v!==1||o[34].p.k||o[34].p.v!==0||o[35].p.k||o[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",l)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(l.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(l)),(o[3].p.k||o[3].p.v!==0||o[4].p.k||o[4].p.v!==1||o[5].p.k||o[5].p.v!==1||o[6].p.k||o[6].p.v!==0||o[7].p.k||o[7].p.v!==1)&&((l=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("result",i),e.appendChild(l),this.feFuncRComposed=this.createFeFunc("feFuncR",l),this.feFuncGComposed=this.createFeFunc("feFuncG",l),this.feFuncBComposed=this.createFeFunc("feFuncB",l))}function SVGDropShadowEffect(e,t,n,i,o){var l=t.container.globalData.renderConfig.filterSize,u=t.data.fs||l;e.setAttribute("x",u.x||l.x),e.setAttribute("y",u.y||l.y),e.setAttribute("width",u.width||l.width),e.setAttribute("height",u.height||l.height),this.filterManager=t;var f=createNS("feGaussianBlur");f.setAttribute("in","SourceAlpha"),f.setAttribute("result",i+"_drop_shadow_1"),f.setAttribute("stdDeviation","0"),this.feGaussianBlur=f,e.appendChild(f);var p=createNS("feOffset");p.setAttribute("dx","25"),p.setAttribute("dy","0"),p.setAttribute("in",i+"_drop_shadow_1"),p.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=p,e.appendChild(p);var d=createNS("feFlood");d.setAttribute("flood-color","#00ff00"),d.setAttribute("flood-opacity","1"),d.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=d,e.appendChild(d);var m=createNS("feComposite");m.setAttribute("in",i+"_drop_shadow_3"),m.setAttribute("in2",i+"_drop_shadow_2"),m.setAttribute("operator","in"),m.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(m);var g=this.createMergeNode(i,[i+"_drop_shadow_4",o]);e.appendChild(g)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,n,i,o=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(this.filterManager.effectElements[1].p.v===1?(i=this.elem.maskManager.masksProperties.length,n=0):i=(n=this.filterManager.effectElements[0].p.v-1)+1,(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);n<i;n+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:n});if(this.filterManager.effectElements[10].p.v===3){var l=createNS("mask"),u=createElementID();l.setAttribute("id",u),l.setAttribute("mask-type","alpha"),l.appendChild(t),this.elem.globalData.defs.appendChild(l);var f=createNS("g");for(f.setAttribute("mask","url("+getLocationHref()+"#"+u+")");o[0];)f.appendChild(o[0]);this.elem.layerElement.appendChild(f),this.masker=l,t.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(o=this.elem.layerElement.children||this.elem.layerElement.childNodes;o.length;)this.elem.layerElement.removeChild(o[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var n,i,o=this.paths.length;for(t=0;t<o;t+=1)if(this.paths[t].m!==-1&&(n=this.elem.maskManager.viewData[this.paths[t].m],i=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&i.setAttribute("d",n.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var l;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var u=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),f=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),p=i.getTotalLength();l="0 0 0 "+p*u+" ";var d,m=p*(f-u),g=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,_=Math.floor(m/g);for(d=0;d<_;d+=1)l+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";l+="0 "+10*p+" 0 0"}else l="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",l)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var S=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*S[0])+","+bmFloor(255*S[1])+","+bmFloor(255*S[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,o=i[0]+" "+n[0]+" "+t[0],l=i[1]+" "+n[1]+" "+t[1],u=i[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",o),this.feFuncG.setAttribute("tableValues",l),this.feFuncB.setAttribute("tableValues",u)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,i,o){for(var l,u,f=0,p=Math.min(e,t),d=Math.max(e,t),m=Array.call(null,{length:256}),g=0,_=o-i,S=t-e;f<=256;)u=(l=f/256)<=p?S<0?o:i:l>=d?S<0?i:o:i+_*Math.pow((l-e)/S,1/n),m[g]=u,g+=1,f+=256/255;return m.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,o=n*Math.cos(i),l=n*Math.sin(i);this.feOffset.setAttribute("dx",o),this.feOffset.setAttribute("dy",l)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(e,t,n,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("result",i),e.appendChild(o),this.feGaussianBlur=o}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var i,o=n.children,l=0,u=o.length;l<u&&o[l]!==e.layerElement;)l+=1;l<=u-2&&(i=o[l+1]);var f=createNS("use");f.setAttribute("href","#"+t),i?n.insertBefore(f,i):n.appendChild(f)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var o=e.globalData.defs;o.appendChild(i);var l=createNS("symbol");l.setAttribute("id",n),this.replaceInParent(t,n),l.appendChild(t.layerElement),o.appendChild(l);var u=createNS("use");u.setAttribute("href","#"+n),i.appendChild(u),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,i=t.length;n<i;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=n==3?0:t,o=n==2?0:t;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+o);var l=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",l)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,n=t[0].p.v,i=t[1].p.v,o=t[2].p.v===1,l=t[3].p.v,u=o?l:t[4].p.v,f=t[5].p.v,p=t[6].p.v,d=t[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(.01*u,.01*l,1),this.matrix.rotate(-d*degToRads),this.matrix.skewFromAxis(-f*degToRads,(p+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})}),REACT_LOTTIE_PLAYER_VERSION="3.6.0",LOTTIE_WEB_VERSION="^5.12.2",PlayerState,PlayerEvent;function parseSrc(e){if(typeof e=="object")return e;try{return JSON.parse(e)}catch{}try{return new URL(e).toString()}catch{}return e}(function(e){e.Loading="loading",e.Playing="playing",e.Paused="paused",e.Stopped="stopped",e.Frozen="frozen",e.Error="error"})(PlayerState||(PlayerState={})),function(e){e.Load="load",e.InstanceSaved="instanceSaved",e.Error="error",e.Ready="ready",e.Play="play",e.Pause="pause",e.Stop="stop",e.Freeze="freeze",e.Loop="loop",e.Complete="complete",e.Frame="frame"}(PlayerEvent||(PlayerEvent={}));var defaultOptions={clearCanvas:!1,hideOnTransparent:!0,progressiveLoad:!0},Player=function(e){function t(n){var i=e.call(this,n)||this;return i.container=null,i.unmounted=!1,i.handleBgChange=function(o){i.setState({background:o})},i.triggerDownload=function(o,l){var u=document.createElement("a");u.href=o,u.download=l,document.body.appendChild(u),u.click(),document.body.removeChild(u)},i.snapshot=function(o){var l;o===void 0&&(o=!0);var u=i.props.id?i.props.id:"lottie",f=document.getElementById(u);if(i.props.renderer==="svg"){if(f){var p=f.querySelector("svg");if(p){var d=new XMLSerializer().serializeToString(p);l="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(d)}}o&&i.triggerDownload(l,"snapshot.svg")}else if(i.props.renderer==="canvas"){if(f){var m=f.querySelector("canvas");m&&(l=m.toDataURL("image/png"))}o&&i.triggerDownload(l,"snapshot.png")}return l},typeof window<"u"&&(window.lottie=lottie),i.state={animationData:null,background:"transparent",containerRef:React__namespace.createRef(),debug:!0,instance:null,playerState:PlayerState.Loading,seeker:0},i}return __extends(t,e),t.getDerivedStateFromProps=function(n,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return n.background!==i.background?[2,{background:n.background}]:[2,null]})})},t.prototype.getVersions=function(){return{lottieWebVersion:LOTTIE_WEB_VERSION,lottiePlayerVersion:REACT_LOTTIE_PLAYER_VERSION}},t.prototype.componentDidMount=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){switch(n.label){case 0:return this.unmounted?[3,2]:[4,this.createLottie()];case 1:n.sent(),n.label=2;case 2:return[2]}})})},t.prototype.componentWillUnmount=function(){this.unmounted=!0,this.state.instance&&this.state.instance.destroy()},t.prototype.componentDidUpdate=function(n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){switch(i.label){case 0:return this.props.src===n.src?[3,2]:(this.state.instance&&this.state.instance.destroy(),[4,this.createLottie()]);case 1:i.sent(),i.label=2;case 2:return[2]}})})},t.prototype.render=function(){var n=this,i=this.props,o=i.children,l=i.loop,u=i.style,f=i.onBackgroundChange,p=i.className,d=this.state,m=d.animationData,g=d.instance,_=d.playerState,S=d.seeker,E=d.debug,R=d.background;return React__namespace.createElement("div",{className:"lf-player-container"},this.state.playerState===PlayerState.Error?React__namespace.createElement("div",{className:"lf-error"},React__namespace.createElement("span",{"aria-label":"error-symbol",role:"img"},"⚠️")):React__namespace.createElement("div",{id:this.props.id?this.props.id:"lottie",ref:function(b){return n.container=b},style:__assign({background:R,margin:"0 auto",outline:"none",overflow:"hidden"},u),className:p}),React__namespace.Children.map(o,function(b){return React__namespace.isValidElement(b)?React__namespace.cloneElement(b,{animationData:m,background:R,debug:E,instance:g,loop:l,pause:function(){return n.pause()},play:function(){return n.play()},playerState:_,seeker:S,setBackground:function(A){n.setState({background:A}),typeof f=="function"&&f(A)},setSeeker:function(A,C){return n.setSeeker(A,C)},stop:function(){return n.stop()},toggleDebug:function(){return n.toggleDebug()},setLoop:function(A){return n.setLoop(A)},colorChangedEvent:function(A){n.handleBgChange(A)},snapshot:function(){n.snapshot()}}):null}))},t.prototype.toggleDebug=function(){this.setState({debug:!this.state.debug})},t.prototype.createLottie=function(){return __awaiter(this,void 0,void 0,function(){var n,i,o,l,u,f,p,d,m,g,_,S,E,R,b=this;return __generator(this,function(A){switch(A.label){case 0:if(n=this.props,i=n.autoplay,o=n.direction,l=n.loop,u=n.lottieRef,f=n.renderer,p=n.speed,d=n.src,m=n.background,g=n.rendererSettings,_=n.hover,S=this.state.instance,!d||!this.container)return[2];A.label=1;case 1:return A.trys.push([1,5,,6]),typeof(E=parseSrc(d))!="string"?[3,4]:[4,fetch(E).catch(function(){throw b.setState({playerState:PlayerState.Error}),b.triggerEvent(PlayerEvent.Error),new Error("@LottieFiles/lottie-react: Animation data could not be fetched.")})];case 2:return[4,A.sent().json().catch(function(){throw b.setState({playerState:PlayerState.Error}),b.triggerEvent(PlayerEvent.Error),new Error("@LottieFiles/lottie-react: Animation data could not be fetched.")})];case 3:E=A.sent(),A.label=4;case 4:return S&&S.destroy(),R=lottie.loadAnimation({rendererSettings:g||defaultOptions,animationData:E,autoplay:i||!1,container:this.container,loop:l||!1,renderer:f}),p&&R.setSpeed(p),this.setState({animationData:E}),this.setState({instance:R},function(){b.triggerEvent(PlayerEvent.InstanceSaved),typeof u=="function"&&u(R),i&&b.play()}),R.addEventListener("enterFrame",function(){b.triggerEvent(PlayerEvent.Frame),b.setState({seeker:Math.floor(R.currentFrame)})}),R.addEventListener("DOMLoaded",function(){b.triggerEvent(PlayerEvent.Load)}),R.addEventListener("data_ready",function(){b.triggerEvent(PlayerEvent.Ready)}),R.addEventListener("data_failed",function(){b.setState({playerState:PlayerState.Error}),b.triggerEvent(PlayerEvent.Error)}),R.addEventListener("loopComplete",function(){b.triggerEvent(PlayerEvent.Loop)}),R.addEventListener("complete",function(){b.triggerEvent(PlayerEvent.Complete),b.setState({playerState:PlayerState.Paused}),b.props.keepLastFrame&&!b.props.loop||b.setSeeker(0)}),this.container&&(this.container.addEventListener("mouseenter",function(){_&&b.state.playerState!==PlayerState.Playing&&(b.props.keepLastFrame&&b.stop(),b.play())}),this.container.addEventListener("mouseleave",function(){_&&b.state.playerState===PlayerState.Playing&&b.stop()})),p&&this.setPlayerSpeed(p),o&&this.setPlayerDirection(o),m&&this.setState({background:m}),[3,6];case 5:return A.sent(),this.setState({playerState:PlayerState.Error}),this.triggerEvent(PlayerEvent.Error),[3,6];case 6:return[2]}})})},t.prototype.play=function(){var n=this.state.instance;n&&(this.triggerEvent(PlayerEvent.Play),n.play(),this.setState({playerState:PlayerState.Playing}))},t.prototype.pause=function(){var n=this.state.instance;n&&(this.triggerEvent(PlayerEvent.Pause),n.pause(),this.setState({playerState:PlayerState.Paused}))},t.prototype.stop=function(){var n=this.state.instance;n&&(this.triggerEvent(PlayerEvent.Stop),n.stop(),this.setState({playerState:PlayerState.Stopped}))},t.prototype.setPlayerSpeed=function(n){var i=this.state.instance;i&&i.setSpeed(n)},t.prototype.setPlayerDirection=function(n){var i=this.state.instance;i&&i.setDirection(n)},t.prototype.setSeeker=function(n,i){i===void 0&&(i=!1);var o=this.state,l=o.instance,u=o.playerState;l&&(i&&u===PlayerState.Playing?l.goToAndPlay(n,!0):(l.goToAndStop(n,!0),this.triggerEvent(PlayerEvent.Pause),this.setState({playerState:PlayerState.Paused})))},t.prototype.setLoop=function(n){var i=this.state.instance;i&&(i.loop=n,this.setState({instance:i}))},t.prototype.triggerEvent=function(n){var i=this.props.onEvent;i&&i(n)},t.defaultProps={loop:!1},t}(React__namespace.Component);function styleInject(e,t){t===void 0&&(t={});var n=t.insertAt;if(typeof document<"u"){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var css_248z=`.lf-progress {
303
+ -webkit-appearance: none;
304
+ -moz-apperance: none;
305
+ width: 100%;
306
+ /* margin: 0 10px; */
307
+ height: 4px;
308
+ border-radius: 3px;
309
+ cursor: pointer;
310
+ }
311
+ .lf-progress:focus {
312
+ outline: none;
313
+ border: none;
314
+ }
315
+ .lf-progress::-moz-range-track {
316
+ cursor: pointer;
317
+ background: none;
318
+ border: none;
319
+ outline: none;
320
+ }
321
+ .lf-progress::-webkit-slider-thumb {
322
+ -webkit-appearance: none !important;
323
+ height: 13px;
324
+ width: 13px;
325
+ border: 0;
326
+ border-radius: 50%;
327
+ background: #0fccce;
328
+ cursor: pointer;
329
+ }
330
+ .lf-progress::-moz-range-thumb {
331
+ -moz-appearance: none !important;
332
+ height: 13px;
333
+ width: 13px;
334
+ border: 0;
335
+ border-radius: 50%;
336
+ background: #0fccce;
337
+ cursor: pointer;
338
+ }
339
+ .lf-progress::-ms-track {
340
+ width: 100%;
341
+ height: 3px;
342
+ cursor: pointer;
343
+ background: transparent;
344
+ border-color: transparent;
345
+ color: transparent;
346
+ }
347
+ .lf-progress::-ms-fill-lower {
348
+ background: #ccc;
349
+ border-radius: 3px;
350
+ }
351
+ .lf-progress::-ms-fill-upper {
352
+ background: #ccc;
353
+ border-radius: 3px;
354
+ }
355
+ .lf-progress::-ms-thumb {
356
+ border: 0;
357
+ height: 15px;
358
+ width: 15px;
359
+ border-radius: 50%;
360
+ background: #0fccce;
361
+ cursor: pointer;
362
+ }
363
+ .lf-progress:focus::-ms-fill-lower {
364
+ background: #ccc;
365
+ }
366
+ .lf-progress:focus::-ms-fill-upper {
367
+ background: #ccc;
368
+ }
369
+ .lf-player-container :focus {
370
+ outline: 0;
371
+ }
372
+ .lf-popover {
373
+ position: relative;
374
+ }
375
+
376
+ .lf-popover-content {
377
+ display: inline-block;
378
+ position: absolute;
379
+ opacity: 1;
380
+ visibility: visible;
381
+ transform: translate(0, -10px);
382
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
383
+ transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
384
+ }
385
+
386
+ .lf-popover-content.hidden {
387
+ opacity: 0;
388
+ visibility: hidden;
389
+ transform: translate(0, 0px);
390
+ }
391
+
392
+ .lf-player-btn-container {
393
+ display: flex;
394
+ align-items: center;
395
+ }
396
+ .lf-player-btn {
397
+ cursor: pointer;
398
+ fill: #999;
399
+ width: 14px;
400
+ }
401
+
402
+ .lf-player-btn.active {
403
+ fill: #555;
404
+ }
405
+
406
+ .lf-popover {
407
+ position: relative;
408
+ }
409
+
410
+ .lf-popover-content {
411
+ display: inline-block;
412
+ position: absolute;
413
+ background-color: #ffffff;
414
+ opacity: 1;
415
+
416
+ transform: translate(0, -10px);
417
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
418
+ transition: all 0.3s cubic-bezier(0.75, -0.02, 0.2, 0.97);
419
+ padding: 10px;
420
+ }
421
+
422
+ .lf-popover-content.hidden {
423
+ opacity: 0;
424
+ visibility: hidden;
425
+ transform: translate(0, 0px);
426
+ }
427
+
428
+ .lf-arrow {
429
+ position: absolute;
430
+ z-index: -1;
431
+ content: '';
432
+ bottom: -9px;
433
+ border-style: solid;
434
+ border-width: 10px 10px 0px 10px;
435
+ }
436
+
437
+ .lf-left-align,
438
+ .lf-left-align .lfarrow {
439
+ left: 0;
440
+ right: unset;
441
+ }
442
+
443
+ .lf-right-align,
444
+ .lf-right-align .lf-arrow {
445
+ right: 0;
446
+ left: unset;
447
+ }
448
+
449
+ .lf-text-input {
450
+ border: 1px #ccc solid;
451
+ border-radius: 5px;
452
+ padding: 3px;
453
+ width: 60px;
454
+ margin: 0;
455
+ }
456
+
457
+ .lf-color-picker {
458
+ display: flex;
459
+ flex-direction: row;
460
+ justify-content: space-between;
461
+ height: 90px;
462
+ }
463
+
464
+ .lf-color-selectors {
465
+ display: flex;
466
+ flex-direction: column;
467
+ justify-content: space-between;
468
+ }
469
+
470
+ .lf-color-component {
471
+ display: flex;
472
+ flex-direction: row;
473
+ font-size: 12px;
474
+ align-items: center;
475
+ justify-content: center;
476
+ }
477
+
478
+ .lf-color-component strong {
479
+ width: 40px;
480
+ }
481
+
482
+ .lf-color-component input[type='range'] {
483
+ margin: 0 0 0 10px;
484
+ }
485
+
486
+ .lf-color-component input[type='number'] {
487
+ width: 50px;
488
+ margin: 0 0 0 10px;
489
+ }
490
+
491
+ .lf-color-preview {
492
+ font-size: 12px;
493
+ display: flex;
494
+ flex-direction: column;
495
+ align-items: center;
496
+ justify-content: space-between;
497
+ padding-left: 5px;
498
+ }
499
+
500
+ .lf-preview {
501
+ height: 60px;
502
+ width: 60px;
503
+ }
504
+
505
+ .lf-popover-snapshot {
506
+ width: 150px;
507
+ }
508
+ .lf-popover-snapshot h5 {
509
+ margin: 5px 0 10px 0;
510
+ font-size: 0.75rem;
511
+ }
512
+ .lf-popover-snapshot a {
513
+ display: block;
514
+ text-decoration: none;
515
+ }
516
+ .lf-popover-snapshot a:before {
517
+ content: '⥼';
518
+ margin-right: 5px;
519
+ }
520
+ .lf-popover-snapshot .lf-note {
521
+ display: block;
522
+ margin-top: 10px;
523
+ color: #999;
524
+ }
525
+ .lf-player-controls > div {
526
+ margin-right: 5px;
527
+ margin-left: 5px;
528
+ }
529
+ .lf-player-controls > div:first-child {
530
+ margin-left: 0px;
531
+ }
532
+ .lf-player-controls > div:last-child {
533
+ margin-right: 0px;
534
+ }
535
+ `;styleInject(css_248z);var ColorPicker=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={red:0,green:0,blue:0,rgba:null,hex:"#000000",colorComponents:[]},n.handleChange=function(i,o){if(i==="r"){var l="#"+(256|o).toString(16).slice(1)+(256|n.state.green).toString(16).slice(1)+(256|n.state.blue).toString(16).slice(1);n.setState({hex:l})}else i==="g"?(l="#"+(256|n.state.red).toString(16).slice(1)+(256|o).toString(16).slice(1)+(256|n.state.blue).toString(16).slice(1),n.setState({hex:l})):i==="b"&&(l="#"+(256|n.state.red).toString(16).slice(1)+(256|n.state.green).toString(16).slice(1)+(256|o).toString(16).slice(1),n.setState({hex:l}))},n.parseColor=function(i){var o;if(typeof i=="string"){if(i[0]==="#"){var l=i.length===4?[i.slice(1,2),i.slice(2,3),i.slice(3,4)].map(function(u){return parseInt(""+u+u,16)}):[i.slice(1,3),i.slice(3,5),i.slice(5,7)].map(function(u){return parseInt(u,16)});n.setState({colorComponents:l})}else i.startsWith("rgb")&&(l=(o=i.match(/\d+/g))===null||o===void 0?void 0:o.map(function(u){return parseInt(u)}))!==void 0&&n.setState({colorComponents:l});n.state.colorComponents.length&&(n.setState({red:n.state.colorComponents[0]}),n.setState({green:n.state.colorComponents[1]}),n.setState({blue:n.state.colorComponents[2]}))}},n}return __extends(t,e),t.prototype.componentDidUpdate=function(n,i){return this.props.colorChangedEvent&&this.state.hex!==i.hex&&this.props.colorChangedEvent(this.state.hex),!0},t.prototype.render=function(){var n=this;return React__namespace.createElement("div",{className:"lf-color-picker"},React__namespace.createElement("div",{className:"lf-color-selectors"},React__namespace.createElement("div",{className:"lf-color-component"},React__namespace.createElement("strong",null,"Red"),React__namespace.createElement("input",{type:"range",min:"0",max:"255",value:this.state.red,onChange:function(i){n.setState({red:i.target.value}),n.handleChange("r",i.target.value)}}),React__namespace.createElement("input",{className:"lf-text-input",type:"number",min:"0",max:"255",value:this.state.red,onChange:function(i){n.setState({red:i.target.value}),n.handleChange("r",i.target.value)}})),React__namespace.createElement("div",{className:"lf-color-component"},React__namespace.createElement("strong",null,"Green"),React__namespace.createElement("input",{type:"range",min:"0",max:"255",value:this.state.green,onChange:function(i){n.setState({green:i.target.value}),n.handleChange("g",i.target.value)}}),React__namespace.createElement("input",{className:"lf-text-input",type:"number",min:"0",max:"255",value:this.state.green,onChange:function(i){n.setState({green:i.target.value}),n.handleChange("g",i.target.value)}})),React__namespace.createElement("div",{className:"lf-color-component"},React__namespace.createElement("strong",null,"Blue"),React__namespace.createElement("input",{type:"range",min:"0",max:"255",value:this.state.blue,onChange:function(i){n.setState({blue:i.target.value}),n.handleChange("b",i.target.value)}}),React__namespace.createElement("input",{className:"lf-text-input",type:"number",min:"0",max:"255",value:this.state.blue,onChange:function(i){n.setState({blue:i.target.value}),n.handleChange("b",i.target.value)}}))),React__namespace.createElement("div",{className:"lf-color-preview"},React__namespace.createElement("div",{className:"lf-preview",style:{background:"rgb("+this.state.red+", "+this.state.green+", "+this.state.blue+")"}}),React__namespace.createElement("div",null,React__namespace.createElement("input",{className:"lf-text-input",type:"text",value:this.state.hex,onChange:function(i){n.setState({hex:i.target.value}),n.parseColor(i.target.value)}}))))},t}(React__namespace.Component),Popover=function(e){var t=e.children,n=e.icon,i=React.useState(null),o=i[0],l=i[1],u=React.useState(null),f=u[0],p=u[1],d=React.useState(null),m=d[0],g=d[1],_=React.useState(!1),S=_[0],E=_[1];return React.useEffect(function(){if(o&&f){var R=o.getBoundingClientRect(),b=f.getBoundingClientRect(),A=R.left+b.width>window.innerWidth?-1:0;g(A)}},[m,f,o]),React__namespace.createElement("div",{className:"lf-popover",onMouseOver:function(){E(!0)},onMouseLeave:function(){E(!1)},ref:function(R){l(R)}},React__namespace.createElement("div",{className:" lf-player-btn"},n),React__namespace.createElement("div",{className:"lf-popover-content",ref:function(R){p(R)},style:{bottom:"22px",right:"0px",zIndex:2,visibility:S?"visible":"hidden"}},t))},Seeker=function(e){function t(n){var i=e.call(this,n)||this;return i.inputRef=React__namespace.createRef(),i.handleChange=function(){return function(o){var l=o.target.value,u=Math.floor(l/100*i.props.max);i.props.onChange(u)}},i.state={value:0},i}return __extends(t,e),t.prototype.render=function(){var n=this.props.value/this.props.max*100,i={backgroundImage:"-webkit-gradient(linear, left top, right top, color-stop("+n+"%, rgba(15, 204, 206, 0.4)), color-stop("+n+"%, #DAE1E7))"},o={position:"absolute",left:0,marginTop:"8px",width:"20px",display:"block",border:"0px",backgroundColor:this.props.darkTheme?"#505050":"rgb(218, 225, 231)",color:this.props.darkTheme?"#B9B9B9":"#555",padding:"2px",textAlign:"center",borderRadius:"3px",fontSize:"8px",fontWeight:"bold"},l={position:"absolute",right:0,marginTop:"8px",width:"20px",display:"block",border:"0px",backgroundColor:this.props.darkTheme?"#505050":"rgb(218, 225, 231)",color:this.props.darkTheme?"#B9B9B9":"#555",padding:"2px",textAlign:"center",borderRadius:"3px",fontSize:"8px",fontWeight:"bold"};return React__namespace.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",width:"100%",marginRight:"5px",marginLeft:"5px",position:"relative"}},React__namespace.createElement("input",{ref:this.inputRef,id:"track",className:"lf-progress",name:"progress","aria-label":"progress",type:"range",min:"0",max:"100",step:"0.1",value:n,onInput:this.handleChange(),onChange:this.handleChange(),style:i}),this.props.showLabels&&React__namespace.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},React__namespace.createElement("div",{style:o},this.props.min),React__namespace.createElement("div",{style:l},this.props.max)))},t}(React__namespace.Component),ControlButtonStyle={display:"inline-flex",cursor:"pointer"};(function(e){function t(n){var i=e.call(this,n)||this;return i.state={activeFrame:0,mouseDown:!1},i}return __extends(t,e),t.prototype.render=function(){var n=this,i=this.props,o=i.instance,l=i.playerState,u=i.seeker,f=i.setLoop,p=i.setSeeker,d=i.play,m=i.pause,g=i.stop,_=i.visible,S=i.buttons;if(!o||!_)return null;var E=!S||S.includes("play"),R=!S||S.includes("stop"),b=!S||S.includes("repeat"),A=!S||S.includes("frame"),C=!S||S.includes("background"),O=!S||S.includes("snapshot"),M={width:14,height:14,viewBox:"0 0 24 24"},T=Math.round(o.currentFrame);return React__namespace.createElement("div",{className:"lf-player-controls",style:{display:"flex",justifyContent:"space-between",height:"60px",alignItems:"center",backgroundColor:this.props.transparentTheme?"transparent":this.props.darkTheme?"#3C3C3C":"#ffffff",paddingLeft:"10px",paddingRight:"10px"}},E&&React__namespace.createElement("div",{role:"button","aria-label":l===PlayerState.Playing?PlayerEvent.Pause:PlayerEvent.Play,tabIndex:0,onClick:function(){l===PlayerState.Playing?typeof m=="function"&&m():typeof d=="function"&&d()},onKeyDown:function(){l===PlayerState.Playing?typeof m=="function"&&m():typeof d=="function"&&d()},className:"lf-player-btn",style:ControlButtonStyle},l===PlayerState.Playing?React__namespace.createElement("svg",__assign({},M),React__namespace.createElement("rect",{height:"22.9",rx:"1.9",width:"7.6",x:"14",y:".5"}),React__namespace.createElement("rect",{height:"22.9",rx:"1.9",width:"7.6",x:"2",y:".5"})):React__namespace.createElement("svg",__assign({},M),React__namespace.createElement("path",{d:"M2 3.4C2 1.9 3.5 1 4.8 1.8l16.5 9.6c1.2.7 1.2 2.5 0 3.2L4.8 24.2C3.5 25 2 24.1 2 22.6V3.4z"}))),R&&React__namespace.createElement("div",{tabIndex:0,role:"button","aria-label":PlayerEvent.Stop,onClick:function(){return g&&g()},onKeyDown:function(){return g&&g()},className:l===PlayerState.Stopped?"lf-player-btn active":"lf-player-btn",style:ControlButtonStyle},React__namespace.createElement("svg",__assign({},M),React__namespace.createElement("path",{d:`M2 3.667A1.67 1.67 0 0 1 3.667 2h16.666A1.67 1.67 0 0 1 22 3.667v16.666A1.67 1.67 0 0 1 20.333
536
+ 22H3.667A1.67 1.67 0 0 1 2 20.333z`}))),React__namespace.createElement(Seeker,{min:0,step:1,max:o?o.totalFrames:1,value:u||0,onChange:function(j){p&&n.setState({activeFrame:j},function(){p(j,!1)})},onChangeEnd:function(j){p&&n.setState({activeFrame:j},function(){p(j,!1)})},showLabels:this.props.showLabels,darkTheme:this.props.darkTheme}),A&&React__namespace.createElement("div",{role:"button",className:"lf-player-btn-container"},React__namespace.createElement("input",{style:{outline:"none",border:this.props.darkTheme?"1px #505050 solid":"1px #ccc solid",borderRadius:"3px",width:"40px",textAlign:"center",backgroundColor:this.props.darkTheme?"#505050":"#ffffff",color:this.props.darkTheme?"#B9B9B9":"#999",fontSize:"0.7rem",padding:"0",fontFamily:"inherit"},type:"text",value:T,readOnly:!0})),b&&React__namespace.createElement("div",{role:"button","aria-label":PlayerEvent.Loop,tabIndex:0,onClick:function(){o&&f&&f(!o.loop)},onKeyDown:function(){o&&f&&f(!o.loop)},className:o.loop?"lf-player-btn active":"lf-player-btn",style:ControlButtonStyle},React__namespace.createElement("svg",__assign({},M),React__namespace.createElement("path",{d:`M12.5 16.8137h-.13v1.8939h4.9696c3.6455 0 6.6113-2.9658 6.6113-6.6116
537
+ 0-3.64549-2.9658-6.61131-6.6113-6.61131-.5231 0-.947.42391-.947.94696 0 .52304.4239.94696.947.94696 2.6011 0
538
+ 4.7174 2.11634 4.7174 4.71739 0 2.6014-2.1166 4.7177-4.7174 4.7177H12.5zM13.6025
539
+ 5.61469v-.13H7.48137C3.83582 5.48469.87 8.45051.87 12.096c0 3.6509 3.17269 6.6117 6.81304 6.6117.52304 0
540
+ .94696-.424.94696-.947 0-.5231-.42392-.947-.94696-.947-2.60804 0-4.91907-2.1231-4.91907-4.7176 0-2.60115
541
+ 2.11634-4.71744 4.7174-4.71744h6.12113V5.61469z`,stroke:"#8795A1",strokeWidth:".26"}),React__namespace.createElement("path",{d:`M11.1482
542
+ 2.20355h0l-.001-.00116c-.3412-.40061-.9405-.44558-1.33668-.0996h-.00001c-.39526.34519-.43936.94795-.09898
543
+ 1.34767l2.51487 3.03683-2.51894 3.06468c-.33872.40088-.29282 1.00363.10347
544
+ 1.34723l.08517-.0982-.08517.0982c.17853.1549.39807.2308.61647.2308.2671 0 .5328-.114.72-.3347h0l.0011-.0014
545
+ 3.0435-3.68655.0006-.00068c.3035-.35872.3025-.88754-.0019-1.24526l-3.0425-3.65786zM13.9453
546
+ 21.7965h0l.001.0011c.3413.4006.9407.4456 1.337.0996h0c.3953-.3452.4395-.9479.099-1.3477l-2.5154-3.0368
547
+ 2.5195-3.0647c.3388-.4008.2929-1.0036-.1035-1.3472l-.0852.0982.0852-.0982c-.1786-.1549-.3981-.2308-.6166-.2308-.2671
548
+ 0-.5329.114-.7202.3347h0l-.0011.0014-3.0442
549
+ 3.6865c-.0001.0003-.0003.0005-.0005.0007-.3036.3587-.3027.8876.0019 1.2453l3.0431 3.6579z`,fill:"#8795A1",stroke:"#8795A1",strokeWidth:".26"}))),C&&React__namespace.createElement(Popover,{icon:React__namespace.createElement("svg",__assign({},M),React__namespace.createElement("path",{d:`M12 3.1L6.1 8.6a7.6 7.6 0 00-2.2 4 7.2 7.2 0 00.4 4.4 7.9 7.9 0 003 3.5 8.7 8.7 0 004.7 1.3c1.6 0
550
+ 3.2-.5 4.6-1.3s2.4-2 3-3.5a7.2 7.2 0 00.5-4.5 7.6 7.6 0 00-2.2-4L12 3.2zM12 0l7.5 7a9.8 9.8 0 013 5.1
551
+ 9.3 9.3 0 01-.6 5.8c-.9 1.8-2.2 3.3-4 4.4A11.2 11.2 0 0112 24a11.2 11.2 0
552
+ 01-6-1.7c-1.7-1-3-2.6-3.9-4.4a9.3 9.3 0 01-.6-5.8c.4-2 1.5-3.7 3-5L12 0zM6 14h12c0 1.5-.7 3-1.8 4s-2.6
553
+ 1.6-4.2 1.6S9 19 7.8 18s-1.7-2.5-1.7-4z`}))},React__namespace.createElement("div",{slot:"content",className:"lf-popover popover-background"},React__namespace.createElement(ColorPicker,{colorChangedEvent:this.props.colorChangedEvent}))),O&&React__namespace.createElement(Popover,{icon:React__namespace.createElement("svg",__assign({},M),React__namespace.createElement("path",{clipRule:"evenodd",d:`M0 3.01A2.983 2.983 0 012.983.027H16.99a2.983 2.983 0 012.983 2.983v14.008a2.982 2.982 0 01-2.983
554
+ 2.983H2.983A2.983 2.983 0 010 17.018zm2.983-.941a.941.941 0 00-.942.94v14.01c0
555
+ .52.422.94.942.94H16.99a.94.94 0 00.941-.94V3.008a.941.941 0 00-.94-.94H2.981z`,fillRule:"evenodd"}),React__namespace.createElement("path",{d:"M12.229 7.945l-2.07 4.598-2.586-2.605-2.414 2.758v2.146h9.656V11.93z"}),React__namespace.createElement("circle",{cx:"7.444",cy:"6.513",r:"2.032"}),React__namespace.createElement("path",{d:`M9.561 23.916h11.25a2.929 2.929 0 002.926-2.927V9.954a1.06 1.06 0 10-2.122 0v11.035a.805.805 0
556
+ 01-.803.804H9.562a1.061 1.061 0 100 2.123z`,stroke:"#8795a1",strokeWidth:".215"}))},React__namespace.createElement("div",{slot:"content",className:"lf-popover lf-popover-snapshot",onWheel:function(j){p&&p(T+(j.deltaY>0?-1:1),!1)}},React__namespace.createElement("h5",null,"Frame ",T),React__namespace.createElement("div",{style:{cursor:"pointer",color:"#0FCCCE"},onClick:this.props.snapshot},"Download SVG"),React__namespace.createElement("div",{style:{cursor:"pointer",color:"#0FCCCE"},onClick:this.props.snapshot},"Download PNG"),React__namespace.createElement("i",{className:"lf-note"},"Scroll with mousewheel to find exact frame"))))},t})(React__namespace.Component);const v$1="5.12.1",fr$1=59.9400024414062,ip$1=0,op$1=660.000026882351,w$1=1080,h$1=1080,nm$1="Comp 1",ddd$1=0,assets$1=[{id:"comp_0",nm:"randmar pulse",fr:59.9400024414062,layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[960,540,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:21,s:[0,0,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:42,s:[111,111,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:52,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:107,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:134,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:163,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:223,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:250,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:279,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:339,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:366,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:395,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:455,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:482,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:511,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:571,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:598,s:[105,105,100]},{t:627.000025538234,s:[0,0,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[149.125,-150.875],[-152.875,-150.875],[-152.875,151.125],[-92,151.125],[-92,-90],[149.125,-90]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.172549019608,.172549019608,.172549019608,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:21.0000008553475,op:660.000026882351,st:21.0000008553475,ct:1,bm:0},{ddd:0,ind:2,ty:4,nm:"Shape Layer 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[960,540,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:10,s:[0,0,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:31,s:[111,111,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:41,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:96,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:123,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:152,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:212,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:239,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:268,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:328,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:355,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:384,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:444,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:471,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:500,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:560,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:587,s:[105,105,100]},{t:616.000025090194,s:[0,0,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[148,-29.5],[-32,-29.5],[-31.75,150.5],[27.5,150.5],[28,30.5],[148.5,30.5]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.172549019608,.172549019608,.172549019608,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:10.0000004073083,op:660.000026882351,st:10.0000004073083,ct:1,bm:0},{ddd:0,ind:3,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[960,540,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:4,s:[0,0,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:25,s:[111,111,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:35,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:90,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:117,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:146,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:206,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:233,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:262,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:322,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:349,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:378,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:438,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:465,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:494,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:554,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:581,s:[105,105,100]},{t:610.000024845809,s:[0,0,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[60,60],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[.172549019608,.172549019608,.172549019608,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[117.75,119.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:660.000026882351,st:0,ct:1,bm:0}]}],layers$1=[{ddd:0,ind:1,ty:0,nm:"randmar pulse",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,540,0],ix:2,l:2},a:{a:0,k:[960,540,0],ix:1,l:2},s:{a:0,k:[308,308,100],ix:6,l:2}},ao:0,ef:[{ty:5,nm:"Hue/Saturation",np:11,mn:"ADBE HUE SATURATION",ix:1,en:1,ef:[{ty:7,nm:"Channel Control",mn:"ADBE HUE SATURATION-0002",ix:1,v:{a:0,k:1,ix:1}},{},{ty:0,nm:"Master Hue",mn:"ADBE HUE SATURATION-0004",ix:3,v:{a:0,k:0,ix:3}},{ty:0,nm:"Master Saturation",mn:"ADBE HUE SATURATION-0005",ix:4,v:{a:0,k:0,ix:4}},{ty:0,nm:"Master Lightness",mn:"ADBE HUE SATURATION-0006",ix:5,v:{a:0,k:0,ix:5}},{ty:7,nm:"Colorize",mn:"ADBE HUE SATURATION-0007",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"Colorize Hue",mn:"ADBE HUE SATURATION-0008",ix:7,v:{a:0,k:0,ix:7}},{ty:0,nm:"Colorize Saturation",mn:"ADBE HUE SATURATION-0009",ix:8,v:{a:0,k:25,ix:8}},{ty:0,nm:"Colorize Lightness",mn:"ADBE HUE SATURATION-0010",ix:9,v:{a:0,k:0,ix:9}}]}],w:1920,h:1080,ip:0,op:660.000026882351,st:0,bm:0}],markers$1=[],props$1={},LottiePreloaderBlackIcon={v:v$1,fr:fr$1,ip:ip$1,op:op$1,w:w$1,h:h$1,nm:nm$1,ddd:ddd$1,assets:assets$1,layers:layers$1,markers:markers$1,props:props$1},v="5.12.1",fr=59.9400024414062,ip=0,op=660.000026882351,w=1080,h=1080,nm="Comp 1",ddd=0,assets=[{id:"comp_0",nm:"randmar pulse",fr:59.9400024414062,layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[960,540,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:21,s:[0,0,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:42,s:[111,111,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:52,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:107,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:134,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:163,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:223,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:250,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:279,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:339,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:366,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:395,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:455,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:482,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:511,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:571,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:598,s:[105,105,100]},{t:627.000025538234,s:[0,0,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[149.125,-150.875],[-152.875,-150.875],[-152.875,151.125],[-92,151.125],[-92,-90],[149.125,-90]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:21.0000008553475,op:660.000026882351,st:21.0000008553475,ct:1,bm:0},{ddd:0,ind:2,ty:4,nm:"Shape Layer 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[960,540,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:10,s:[0,0,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:31,s:[111,111,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:41,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:96,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:123,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:152,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:212,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:239,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:268,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:328,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:355,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:384,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:444,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:471,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:500,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:560,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:587,s:[105,105,100]},{t:616.000025090194,s:[0,0,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],v:[[148,-29.5],[-32,-29.5],[-31.75,150.5],[27.5,150.5],[28,30.5],[148.5,30.5]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Shape 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:10.0000004073083,op:660.000026882351,st:10.0000004073083,ct:1,bm:0},{ddd:0,ind:3,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[960,540,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:4,s:[0,0,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:25,s:[111,111,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:35,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:90,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:117,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:146,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:206,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:233,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:262,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:322,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:349,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:378,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:438,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:465,s:[105,105,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:494,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:554,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:581,s:[105,105,100]},{t:610.000024845809,s:[0,0,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{ty:"rc",d:1,s:{a:0,k:[60,60],ix:2},p:{a:0,k:[0,0],ix:3},r:{a:0,k:0,ix:4},nm:"Rectangle Path 1",mn:"ADBE Vector Shape - Rect",hd:!1},{ty:"fl",c:{a:0,k:[1,1,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[117.75,119.75],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Rectangle 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:660.000026882351,st:0,ct:1,bm:0}]}],layers=[{ddd:0,ind:1,ty:0,nm:"randmar pulse",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[540,540,0],ix:2,l:2},a:{a:0,k:[960,540,0],ix:1,l:2},s:{a:0,k:[308,308,100],ix:6,l:2}},ao:0,ef:[{ty:5,nm:"Hue/Saturation",np:11,mn:"ADBE HUE SATURATION",ix:1,en:1,ef:[{ty:7,nm:"Channel Control",mn:"ADBE HUE SATURATION-0002",ix:1,v:{a:0,k:1,ix:1}},{},{ty:0,nm:"Master Hue",mn:"ADBE HUE SATURATION-0004",ix:3,v:{a:0,k:0,ix:3}},{ty:0,nm:"Master Saturation",mn:"ADBE HUE SATURATION-0005",ix:4,v:{a:0,k:0,ix:4}},{ty:0,nm:"Master Lightness",mn:"ADBE HUE SATURATION-0006",ix:5,v:{a:0,k:0,ix:5}},{ty:7,nm:"Colorize",mn:"ADBE HUE SATURATION-0007",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"Colorize Hue",mn:"ADBE HUE SATURATION-0008",ix:7,v:{a:0,k:0,ix:7}},{ty:0,nm:"Colorize Saturation",mn:"ADBE HUE SATURATION-0009",ix:8,v:{a:0,k:25,ix:8}},{ty:0,nm:"Colorize Lightness",mn:"ADBE HUE SATURATION-0010",ix:9,v:{a:0,k:0,ix:9}}]},{ty:5,nm:"Change to Color",np:13,mn:"ADBE Change To Color",ix:2,en:1,ef:[{ty:2,nm:"From",mn:"ADBE Change To Color-0001",ix:1,v:{a:0,k:[.72549021244,.184313729405,.184313729405,1],ix:1}},{ty:2,nm:"To",mn:"ADBE Change To Color-0002",ix:2,v:{a:0,k:[1,1,1,1],ix:2}},{ty:7,nm:"Change",mn:"ADBE Change To Color-0003",ix:3,v:{a:0,k:4,ix:3}},{ty:7,nm:"Change By",mn:"ADBE Change To Color-0004",ix:4,v:{a:0,k:1,ix:4}},{ty:6,nm:"Tolerance",mn:"ADBE Change To Color-0010",ix:5,v:0},{ty:0,nm:"Hue",mn:"ADBE Change To Color-0005",ix:6,v:{a:0,k:.1,ix:6}},{ty:0,nm:"Lightness",mn:"ADBE Change To Color-0006",ix:7,v:{a:0,k:1,ix:7}},{ty:0,nm:"Saturation",mn:"ADBE Change To Color-0007",ix:8,v:{a:0,k:1,ix:8}},{ty:6,nm:"Saturation",mn:"ADBE Change To Color-0011",ix:9,v:0},{ty:0,nm:"Softness",mn:"ADBE Change To Color-0008",ix:10,v:{a:0,k:.5,ix:10}},{ty:7,nm:"View Correction Matte",mn:"ADBE Change To Color-0009",ix:11,v:{a:0,k:0,ix:11}}]}],w:1920,h:1080,ip:0,op:660.000026882351,st:0,bm:0}],markers=[],props={},LottiePreloaderWhiteIcon={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers,props},PreloaderIcon=e=>{const{color:t}=e;return jsxRuntime.jsx("div",{style:{display:"flex",justifyContent:"center"},children:jsxRuntime.jsx(Player,{autoplay:!0,loop:!0,speed:1,style:{width:200,aspectRatio:"1 / 1"},src:t==="white"?LottiePreloaderWhiteIcon:LottiePreloaderBlackIcon})})};function Preloader({text:e,color:t="white",className:n}){return jsxRuntime.jsxs("div",{className:cn("h-screen w-screen flex items-center justify-center flex-col gap-6 z-50",n),children:[jsxRuntime.jsx(PreloaderIcon,{color:t}),e&&jsxRuntime.jsx("div",{className:cn("text-center text-xl font-medium",t==="black"?"text-foreground":"text-white"),children:e})]})}const Card=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,className:cn("rounded-md border bg-card text-card-foreground shadow-sm",e),...t}));Card.displayName="Card";const CardHeader=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,className:cn("flex flex-col space-y-1.5 p-6",e),...t}));CardHeader.displayName="CardHeader";const CardTitle=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,className:cn("font-semibold leading-none tracking-tight",e),...t}));CardTitle.displayName="CardTitle";const CardDescription=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,className:cn("text-sm text-muted-foreground",e),...t}));CardDescription.displayName="CardDescription";const CardContent=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,className:cn("p-6 pt-0",e),...t}));CardContent.displayName="CardContent";const CardFooter=React__namespace.forwardRef(({className:e,...t},n)=>jsxRuntime.jsx("div",{ref:n,className:cn("flex items-center p-6 pt-0",e),...t}));CardFooter.displayName="CardFooter";function PartnerCard({id:e,name:t,about:n,voiceName:i,voiceStyle:o,sceneName:l,action:u,loading:f=!1}){const p=`https://api.randmar.io/V4/Partner/${e}/Account/Video`,d=`https://api.randmar.io/V4/Partner/${e}/Account/Video/Exists`,m=`https://api.randmar.io/V4/Partner/${e}/Account/Logo?width=64&height=64`,g=`https://api.randmar.io/V4/Partner/${e}/Account/Logo/Exists`,_=!!(i||o||l),[S,E]=React.useState(null),[R,b]=React.useState(!1),[A,C]=React.useState(!1),[O,M]=React.useState(!1),[T,j]=React.useState(!0);React.useEffect(()=>{if(!e||f)return;const D=async()=>{try{const B=await fetch(g);if(B.ok){const V=(await B.text()).toLowerCase()==="true";return C(V),V}return!1}catch(B){return console.error("Failed to check if logo exists:",B),C(!1),!1}},L=async()=>{b(!0);try{const B=await fetch(m);if(B.ok){const z=await B.blob();E(URL.createObjectURL(z))}}catch(B){console.error("Failed to load logo:",B)}finally{b(!1)}},F=async()=>{try{const B=await fetch(d);if(B.ok){const z=await B.text();M(z.toLowerCase()==="true")}}catch(B){console.error("Failed to check if video exists:",B),M(!1)}};(async()=>{await D()&&L(),F()})()},[e,m,g,d,f]);const I=()=>{j(!1)};return f?jsxRuntime.jsx(Card,{className:"hover:shadow-lg transition-shadow",children:jsxRuntime.jsxs(CardContent,{className:"p-6",children:[jsxRuntime.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start gap-4 mb-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[jsxRuntime.jsx("div",{className:"h-10 flex items-center justify-center mr-4",children:jsxRuntime.jsx(Skeleton,{className:"h-10 w-10 rounded-md"})}),jsxRuntime.jsx(Skeleton,{className:"h-7 w-40"})]}),jsxRuntime.jsx("div",{className:"w-full sm:w-auto",children:jsxRuntime.jsx(Skeleton,{className:"h-9 w-24"})})]}),jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col order-1 md:order-1",children:[jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsx(Skeleton,{className:"h-4 w-full"}),jsxRuntime.jsx(Skeleton,{className:"h-4 w-full"}),jsxRuntime.jsx(Skeleton,{className:"h-4 w-3/4"}),jsxRuntime.jsx(Skeleton,{className:"h-4 w-5/6"})]}),jsxRuntime.jsx("div",{className:"mt-4 p-3 bg-slate-50 rounded-md",children:jsxRuntime.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-2",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Skeleton,{className:"h-3 w-20 mb-1"}),jsxRuntime.jsx(Skeleton,{className:"h-5 w-24"})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Skeleton,{className:"h-3 w-20 mb-1"}),jsxRuntime.jsx(Skeleton,{className:"h-5 w-24"})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Skeleton,{className:"h-3 w-20 mb-1"}),jsxRuntime.jsx(Skeleton,{className:"h-5 w-24"})]})]})})]}),jsxRuntime.jsx("div",{className:"flex flex-col order-1 md:order-1 md:w-auto",children:jsxRuntime.jsx("div",{className:"w-[180px] h-[320px] rounded-md overflow-hidden",children:jsxRuntime.jsx(Skeleton,{className:"w-full h-full"})})})]})]})}):jsxRuntime.jsx(Card,{className:"hover:shadow-lg transition-shadow",children:jsxRuntime.jsxs(CardContent,{className:"p-6",children:[jsxRuntime.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start gap-4 mb-4",children:[jsxRuntime.jsxs("div",{className:"flex items-center",children:[A&&jsxRuntime.jsx("div",{className:"h-10 flex items-center justify-center mr-4",children:R?jsxRuntime.jsx(Skeleton,{className:"h-10 w-10 rounded-md"}):S&&jsxRuntime.jsx("img",{src:S||"/placeholder.svg",alt:`${t} logo`,className:"max-h-10 w-auto object-contain"})}),jsxRuntime.jsx("h3",{className:"font-semibold text-xl",children:t})]}),u&&jsxRuntime.jsx("div",{className:"w-full sm:w-auto",children:u})]}),jsxRuntime.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[jsxRuntime.jsxs("div",{className:"flex-1 flex flex-col order-1 md:order-1",children:[jsxRuntime.jsx("div",{className:"prose prose-sm max-w-none",dangerouslySetInnerHTML:{__html:n}}),_&&jsxRuntime.jsx("div",{className:"mt-4 p-3 bg-slate-50 rounded-md",children:jsxRuntime.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-2",children:[i&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground",children:"Voice Name"}),jsxRuntime.jsx("div",{className:"font-medium",children:i})]}),o&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground",children:"Voice Style"}),jsxRuntime.jsx("div",{className:"font-medium",children:o})]}),l&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground",children:"Scene Name"}),jsxRuntime.jsx("div",{className:"font-medium",children:l})]})]})})]}),O&&jsxRuntime.jsx("div",{className:"flex flex-col order-1 md:order-1 md:w-auto",children:jsxRuntime.jsxs("div",{className:"w-[180px] h-[320px] rounded-md overflow-hidden",children:[T&&jsxRuntime.jsx(Skeleton,{className:"w-full h-full"}),jsxRuntime.jsx("video",{src:p,controls:!0,preload:"auto",playsInline:!0,className:`w-full h-full object-contain ${T?"invisible":"visible"}`,style:{objectPosition:"center",imageRendering:"auto"},onLoadedData:I,onError:()=>j(!1)})]})})]})]})})}const Topbar=React.forwardRef(({onSignOut:e,handleValidSearch:t,rightMenu:n,searchPlaceholder:i},o)=>{const[l,u]=React.useState(""),f=reactRouterDom.useLocation(),{toast:p}=useToast();React.useEffect(()=>{const _=new URLSearchParams(f.search).get("q");_&&u(_)},[f.search]);const d=()=>{const g=l.trim();if(!g||g.length<2){p({title:"Enter more characters to search",description:"At least 2 characters are needed to search products.",variant:"destructive",duration:5e3});return}t(g)},m=g=>{g.key==="Enter"&&d()};return jsxRuntime.jsxs("header",{className:"flex h-16 items-center gap-4 border-b sidebar-foreground bg-sidebar px-6 fixed top-0 right-0 z-50 lg:left-64 left-0 border-sidebar-border",children:[jsxRuntime.jsx(SidebarTrigger,{className:"lg:hidden",children:jsxRuntime.jsx(Menu$1,{className:"h-6 w-6"})}),jsxRuntime.jsx("div",{className:"flex flex-1 items-center gap-4",children:jsxRuntime.jsx("div",{className:"relative w-full max-w-sm",children:jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("button",{type:"button",className:"absolute left-2 top-1/2 -translate-y-1/2",onClick:d,"aria-label":"Search",children:jsxRuntime.jsx(Search,{className:"h-4 w-4 text-muted-foreground"})}),jsxRuntime.jsx(Input,{placeholder:i??"Search...",className:"w-full pl-8 bg-white text-black",value:l,onChange:g=>u(g.target.value),onKeyDown:m,ref:o},"topbar-search")]})})}),n||jsxRuntime.jsx(jsxRuntime.Fragment,{}),e&&jsxRuntime.jsx("div",{className:"flex items-center gap-4",children:jsxRuntime.jsxs(Button,{variant:"ghost",size:"icon",className:"h-9 w-9",onClick:e,children:[jsxRuntime.jsx(LogOut,{className:"h-4 w-4 text-sidebar-foreground"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Sign out"})]})})]})});Topbar.displayName="Topbar";const badgeVariants=cva("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground border border-input hover:bg-accent hover:text-accent-foreground",success:"bg-green-600 text-white hover:bg-green-700",warning:"bg-yellow-500 text-white hover:bg-yellow-600",info:"bg-blue-500 text-white hover:bg-blue-600",ghost:"bg-background hover:bg-accent hover:text-accent-foreground",randmarRed:"bg-randmar-red text-white hover:bg-randmar-red/80",randmarBlue:"bg-randmar-blue text-white hover:bg-randmar-blue/80",randmarPurple:"bg-randmar-purple text-white hover:bg-randmar-purple/80",randmarGreen:"bg-randmar-green text-black hover:bg-randmar-green/80",randmarBlack:"bg-randmar-black text-white hover:bg-randmar-black/80",randmarYellow:"bg-randmar-yellow text-black hover:bg-randmar-yellow/80"},size:{default:"h-6",sm:"h-5 text-[10px]",lg:"h-7 px-3"}},defaultVariants:{variant:"default",size:"default"}}),Badge=React__namespace.forwardRef(({className:e,variant:t,size:n,icon:i,children:o,...l},u)=>jsxRuntime.jsxs("div",{ref:u,className:cn(badgeVariants({variant:t,size:n}),e),...l,children:[i&&jsxRuntime.jsx("span",{className:"mr-1",children:i}),o]}));Badge.displayName="Badge";const CountryFlag=({countryCode:e,className:t=""})=>{const[n,i]=React.useState(null),[o,l]=React.useState(!1);return React.useEffect(()=>{if(!e)return;const f=`https://purecatamphetamine.github.io/country-flag-icons/3x2/${e.toUpperCase()}.svg`;fetch(f,{method:"HEAD"}).then(p=>{p.ok?(i(f),l(!1)):l(!0)}).catch(()=>{l(!0)})},[e]),o||!n?jsxRuntime.jsx("span",{className:t,children:e}):jsxRuntime.jsx("img",{src:n,alt:`${e} flag`,className:`inline-block ${t}`,style:{width:"24px",height:"auto"}})};function Navbar({routes:e,footer:t,dashboardTitle:n}){const{appID:i}=reactRouterDom.useParams(),o=e.filter(l=>l.showInNav);return jsxRuntime.jsxs(Sidebar,{className:"border-r border-sidebar-border",children:[jsxRuntime.jsx(SidebarHeader,{className:"border-b border-sidebar-border px-6 h-16 justify-center bg-sidebar text-sidebar-foreground",children:jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("div",{className:"flex items-center justify-center",children:jsxRuntime.jsx("img",{src:"https://api.randmar.io/images/RandmarIcon.svg",alt:"Randmar Icon",className:"h-4 w-4 filter brightness-0 saturate-100 invert"})}),jsxRuntime.jsx("span",{className:"font-semibold text-lg",children:n})]})}),jsxRuntime.jsx(SidebarContent,{className:"py-4 bg-sidebar text-sidebar-foreground",children:jsxRuntime.jsx(SidebarMenu,{children:o.map(l=>{const u=l.icon,f=`/${l.path.replace(":appID",i)}`;return jsxRuntime.jsx(SidebarMenuItem,{children:jsxRuntime.jsx(SidebarMenuButton,{asChild:!0,children:jsxRuntime.jsxs(reactRouterDom.Link,{to:f,className:"transition-colors hover:bg-muted px-6",children:[u&&jsxRuntime.jsx(u,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{children:l.label})]})})},l.key)})})}),jsxRuntime.jsx(SidebarFooter,{className:"border-t border-sidebar-border p-4 bg-sidebar-background text-sidebar-foreground",children:t})]})}const Layout=React.forwardRef(({children:e,rightMenu:t,routes:n,footer:i,handleValidSearch:o,dashboardTitle:l,onSignOut:u,searchPlaceholder:f},p)=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(SidebarProvider,{children:jsxRuntime.jsxs("div",{className:"flex grow",children:[jsxRuntime.jsx(Navbar,{routes:n,footer:i,dashboardTitle:l}),jsxRuntime.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[jsxRuntime.jsx(Topbar,{ref:p,onSignOut:u,rightMenu:t,handleValidSearch:o,searchPlaceholder:f}),jsxRuntime.jsx("main",{className:"flex-1 overflow-auto mt-16",children:e}),jsxRuntime.jsx(Toaster,{})]})]})})}));Layout.displayName="Layout";const imgSizeMap={sm:100,md:200,lg:300,xl:400};function ProductImage({randmarSKU:e,size:t="md",alt:n,secondaryContent:i}){const[o,l]=React__namespace.useState(!1),[u,f]=React__namespace.useState(!1),[p,d]=React__namespace.useState(!1),[m,g]=React__namespace.useState(!1),_=`https://api.randmar.io/Product/${e}/Video`;React__namespace.useEffect(()=>{(async()=>{try{const O=await(await fetch(_+"/Exists")).json();f(O)}catch(C){console.error("Error checking for video:",C),f(!1)}})()},[e,_]);async function S(){if(u){g(!0);try{const C=await(await fetch(_)).blob(),O=window.URL.createObjectURL(C),M=document.createElement("a");M.href=O,M.download=`${e||"product"}-video.mp4`,document.body.appendChild(M),M.click(),document.body.removeChild(M),window.URL.revokeObjectURL(O)}catch(A){console.error("Error downloading video:",A)}finally{g(!1)}}}function E(){navigator.clipboard.writeText(_),d(!0),setTimeout(()=>{d(!1)},2e3)}function R(){l(!0)}const b=imgSizeMap[t||"xl"];return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Dialog,{open:o,onOpenChange:l,children:jsxRuntime.jsx(DialogContent,{className:"max-w-4xl p-0 overflow-hidden",children:i?jsxRuntime.jsxs("div",{className:"flex flex-row",children:[jsxRuntime.jsxs("video",{className:"w-full rounded-l-lg max-h-[720px] object-contain",controls:!0,autoPlay:!0,muted:!0,loop:!0,children:[jsxRuntime.jsx("source",{src:_,type:"video/mp4"}),"Your browser does not support the video tag."]}),jsxRuntime.jsx("div",{className:"flex-grow min-w-[400px] h-[70vh] p-6",children:i})]}):jsxRuntime.jsxs("div",{className:"w-full relative",children:[jsxRuntime.jsxs("video",{className:"w-full max-h-[720px] object-contain",controls:!0,autoPlay:!0,children:[jsxRuntime.jsx("source",{src:_,type:"video/mp4"}),"Your browser does not support the video tag."]}),jsxRuntime.jsxs("div",{className:"absolute top-2 right-12 flex gap-1",children:[jsxRuntime.jsx(TooltipProvider,{children:jsxRuntime.jsxs(Tooltip$1,{children:[jsxRuntime.jsx(TooltipTrigger,{asChild:!0,children:jsxRuntime.jsx(Button,{variant:"secondary",size:"icon",onClick:E,children:p?jsxRuntime.jsx(Check,{className:"h-4 w-4"}):jsxRuntime.jsx(Copy,{className:"h-4 w-4"})})}),jsxRuntime.jsx(TooltipContent,{children:jsxRuntime.jsx("p",{children:"Copy video link"})})]})}),jsxRuntime.jsx(TooltipProvider,{children:jsxRuntime.jsxs(Tooltip$1,{children:[jsxRuntime.jsx(TooltipTrigger,{asChild:!0,children:jsxRuntime.jsx(Button,{variant:"secondary",size:"icon",onClick:S,disabled:m,children:jsxRuntime.jsx(Download,{className:"h-4 w-4"})})}),jsxRuntime.jsx(TooltipContent,{children:jsxRuntime.jsx("p",{children:"Download video"})})]})})]})]})})}),jsxRuntime.jsxs("div",{className:"relative w-max h-max",children:[jsxRuntime.jsx("img",{alt:n||`Product ${e}`,className:`rounded-md ${u?"cursor-pointer":""}`,onClick:u?R:void 0,src:`https://api.randmar.io/Product/${e}/Image?width=${b*1.5}&height=${b*1.5}`,width:b,height:b}),u&&jsxRuntime.jsx(TooltipProvider,{children:jsxRuntime.jsxs(Tooltip$1,{children:[jsxRuntime.jsx(TooltipTrigger,{asChild:!0,children:jsxRuntime.jsx(Button,{variant:"secondary",size:"icon",className:"absolute top-2 right-2",onClick:R,children:jsxRuntime.jsx(Play,{className:"h-4 w-4"})})}),jsxRuntime.jsx(TooltipContent,{children:jsxRuntime.jsx("p",{children:"Play video"})})]})})]})]})}function ProductCard({item:e,addToCart:t=!1,syncToShopify:n=!1,customAction:i=jsxRuntime.jsx(jsxRuntime.Fragment,{}),defaultOpportunityNumber:o="",viewProductAction:l,addToCartAction:u,isAddToCartActionLoading:f=!1,syncToShopifyAction:p,isSyncToShopifyActionLoading:d=!1}){var G,H,Z,ee,ne,ie,oe,ce,le,ue,te,se;const[m,g]=React.useState(1),[_,S]=React.useState(null),[E,R]=React.useState(0),[b,A]=React.useState(!1),C=((G=e==null?void 0:e.Distribution)==null?void 0:G.Cost)||0,O=((H=e==null?void 0:e.Distribution)==null?void 0:H.RegularPrice)||0,M=((Z=e==null?void 0:e.Distribution)==null?void 0:Z.Price)||0,[T,j]=React.useState(null),[I,D]=React.useState(!1);React.useEffect(()=>{const ae=async()=>{if(e!=null&&e.ManufacturerId){D(!0);try{const K=await fetch(`https://api.randmar.io/V4/Partner/${e.ManufacturerId}/Account/Logo?width=60&height=40`);if(K.ok){const pe=await K.blob();j(URL.createObjectURL(pe))}}catch(K){console.error("Failed to load logo:",K)}finally{D(!1)}}};e!=null&&e.ManufacturerId&&ae()},[e==null?void 0:e.ManufacturerId]),React.useEffect(()=>{var ae;if(e&&o){const K=(ae=e.Opportunities)==null?void 0:ae.find(pe=>pe.BidNumber==o);K&&S(K)}},[e,o]),React.useEffect(()=>{if(!e)return;const ae=_!=null&&_.Price?_.Price:M;R(O>0?Math.round((O-ae)/O*100):0)},[e,_,M,O]),React.useEffect(()=>{f||g(1)},[f]);const L=ae=>{if(ae.Active!==!0)return!1;const K=new Date().toISOString().split("T")[0];return!(ae.EndDate&&ae.EndDate<K||ae.StartDate&&ae.StartDate>K)};if(!e)return jsxRuntime.jsx(Card,{className:"hover:shadow-lg transition-shadow",children:jsxRuntime.jsxs(CardContent,{className:"p-6",children:[jsxRuntime.jsxs("div",{className:"flex justify-between items-start mb-3",children:[jsxRuntime.jsx(Skeleton,{className:"h-7 w-3/4"}),jsxRuntime.jsx("div",{className:"h-10 w-24 flex items-center justify-end ml-4",children:jsxRuntime.jsx(Skeleton,{className:"h-10 w-24 rounded-md"})})]}),jsxRuntime.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[jsxRuntime.jsx(Skeleton,{className:"h-6 w-20 rounded-full"}),jsxRuntime.jsx(Skeleton,{className:"h-6 w-24 rounded-full"}),jsxRuntime.jsx(Skeleton,{className:"h-6 w-28 rounded-full"})]}),jsxRuntime.jsxs("div",{className:"flex gap-6",children:[jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-6 flex-1",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Skeleton,{className:"h-4 w-12 mb-1"}),jsxRuntime.jsx(Skeleton,{className:"h-5 w-20"})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Skeleton,{className:"h-4 w-12 mb-1"}),jsxRuntime.jsx(Skeleton,{className:"h-5 w-24"})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Skeleton,{className:"h-4 w-20 mb-1"}),jsxRuntime.jsx(Skeleton,{className:"h-5 w-16"})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(Skeleton,{className:"h-4 w-12 mb-1"}),jsxRuntime.jsx(Skeleton,{className:"h-5 w-20"})]})]}),jsxRuntime.jsx("div",{className:"flex flex-col",children:jsxRuntime.jsx("div",{className:"w-60 h-40",children:jsxRuntime.jsx(Skeleton,{className:"w-full h-full rounded-lg"})})})]}),jsxRuntime.jsxs("div",{className:"flex gap-6 mt-4",children:[jsxRuntime.jsx("div",{className:"flex flex-1",children:jsxRuntime.jsxs("div",{className:"w-full",children:[jsxRuntime.jsx(Skeleton,{className:"h-4 w-24 mb-3"}),jsxRuntime.jsx(Skeleton,{className:"h-16 w-full rounded-md"})]})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[jsxRuntime.jsx(Skeleton,{className:"h-10 w-32 rounded-md"}),jsxRuntime.jsx(Skeleton,{className:"h-5 w-24 mt-4"})]})]}),jsxRuntime.jsxs("div",{className:"flex gap-6 mt-4",children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-start gap-1 mb-2",children:[jsxRuntime.jsx(Skeleton,{className:"h-8 w-32"}),jsxRuntime.jsx(Skeleton,{className:"h-6 w-24"})]}),jsxRuntime.jsxs("div",{className:"flex flex-1 items-center gap-2",children:[jsxRuntime.jsx(Skeleton,{className:"h-10 w-24 rounded-md"}),jsxRuntime.jsx(Skeleton,{className:"h-10 flex-1 rounded-md"})]})]})]})});const F=(e==null?void 0:e.Opportunities)||[],N=F.length>0,B=()=>{if(m==null){g(1);return}m>1&&g(m-1)},z=()=>{if(m==null){g(1);return}g(m+1)},V=ae=>{const K=parseInt(ae.target.value,10);if(!isNaN(K)&&K>0){g(K);return}g(void 0)},W=()=>{(m==null||m<1)&&g(1)},U=((ne=(ee=e.Distribution)==null?void 0:ee.Inventory)==null?void 0:ne.reduce((ae,K)=>ae+(K.AvailableQuantity||0),0))||0,Q=ae=>{try{return new Date(ae).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch(K){return console.error(K),ae.split("T")[0]||"N/A"}},q=()=>{u&&u({quantity:m??1,bidNumber:(_==null?void 0:_.BidNumber)??null})};return jsxRuntime.jsx(Card,{className:"hover:shadow-lg transition-shadow",children:jsxRuntime.jsxs(CardContent,{className:"p-6",children:[jsxRuntime.jsxs("div",{className:"flex justify-between items-start mb-3",children:[jsxRuntime.jsx("h3",{className:"font-semibold text-xl",children:e.Title||e.RandmarTitle}),jsxRuntime.jsx("div",{className:"h-10 w-24 flex items-center justify-end ml-4",children:I?jsxRuntime.jsx(Skeleton,{className:"h-10 w-24 rounded-md"}):T&&jsxRuntime.jsx("img",{src:T||"/placeholder.svg",alt:e.ManufacturerName??"",className:"max-h-10 max-w-24 object-contain"})})]}),jsxRuntime.jsxs("div",{className:"flex gap-6",children:[jsxRuntime.jsxs("div",{className:"flex-1",children:[jsxRuntime.jsxs("div",{className:"flex flex-wrap gap-2 mb-4",children:[e.State&&jsxRuntime.jsxs(Badge,{variant:"outline",className:`rounded-full px-3 ${e.State==="Active"?"bg-green-50 text-green-700 hover:bg-green-50":"bg-red-50 text-red-700 hover:bg-red-50"}`,children:[jsxRuntime.jsx(Check,{size:"12",className:"mr-1.5"})," ",e.State]}),jsxRuntime.jsxs(Badge,{variant:"outline",className:`rounded-full px-3 ${e.SerialNumber?"bg-green-50 text-green-700 hover:bg-green-50":"bg-yellow-50 text-yellow-700 hover:bg-yellow-50"}`,children:[jsxRuntime.jsx(QrCode,{size:"12",className:"mr-1.5"})," ",e.SerialNumber?"Serialized":"Unserialized"]}),e.TransparencyCode&&jsxRuntime.jsxs(Badge,{variant:"outline",className:"rounded-full px-3 bg-green-50 text-green-700 hover:bg-green-50",children:[jsxRuntime.jsx(CircleDashed,{size:"12",className:"mr-1.5"})," Transparency Code"]}),e.AvailableToBuy===void 0?jsxRuntime.jsxs(Badge,{variant:"outline",className:`rounded-full px-3 ${(ie=e.ManufacturerCategory)!=null&&ie.QualificationRequired?"bg-blue-50 text-blue-700 hover:bg-blue-50":"bg-neutral-50 text-neutral-700 hover:bg-neutral-50"}`,children:[jsxRuntime.jsx(ShieldCheck,{size:"12",className:"mr-1.5"})," ",(oe=e.ManufacturerCategory)!=null&&oe.QualificationRequired?"Qualification Enforced":"No Qualification Needed"]}):jsxRuntime.jsxs(Badge,{variant:"outline",className:`rounded-full px-3 ${e.AvailableToBuy?"bg-green-50 text-green-700 hover:bg-green-50":"bg-red-50 text-red-700 hover:bg-red-50"}`,children:[jsxRuntime.jsx(ShieldCheck,{size:"12",className:"mr-1.5"})," ",(ce=e.ManufacturerCategory)!=null&&ce.QualificationRequired?e.AvailableToBuy?"Qualified":"Not Qualified":"No Qualification Required"]}),e.ManufacturerId&&jsxRuntime.jsxs(Badge,{variant:"outline",className:`rounded-full px-3 ${e.AutoUpdate?"bg-green-50 text-green-700 hover:bg-green-50":"bg-red-50 text-red-700 hover:bg-red-50"}`,children:[jsxRuntime.jsx(RefreshCw,{size:"12",className:"mr-1.5"})," ",e.AutoUpdate?`Automatic Reorder (${e.MasterCarton})`:"Manually Reorders"]}),jsxRuntime.jsxs(Badge,{variant:"outline",className:`rounded-full px-3 ${e.BodyHTML&&e.Title&&e.MAP?"bg-green-50 text-green-700 hover:bg-green-50":"bg-red-50 text-red-700 hover:bg-red-50"}`,children:[jsxRuntime.jsx(Store,{size:"12",className:"mr-1.5"})," ",e.BodyHTML&&e.Title&&e.MAP?"Shopify Ready":"Not Shopify Ready"]})]}),jsxRuntime.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-4 flex-1",children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground",children:"MPN"}),jsxRuntime.jsx("div",{className:"font-medium",children:e.MPN||"N/A"})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground",children:"UPC"}),jsxRuntime.jsx("div",{className:"font-medium",children:e.UPC||"N/A"})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground",children:"Unit Weight"}),jsxRuntime.jsx("div",{className:"font-medium",children:e.UnitWeight?`${e.UnitWeight} lbs`:"N/A"})]}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground",children:"MAP"}),jsxRuntime.jsx("div",{className:"font-medium",children:e.MAP?"$"+e.MAP.toFixed(2):"N/A"})]}),e.CountryCodeOfOrigin&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:"text-sm text-muted-foreground",children:"Origin"}),jsxRuntime.jsxs("div",{className:"font-medium flex items-center",children:[jsxRuntime.jsx(CountryFlag,{countryCode:e.CountryCodeOfOrigin,className:"mr-2"}),e.CountryCodeOfOrigin]})]})]})]}),jsxRuntime.jsx("div",{className:"flex flex-col",children:jsxRuntime.jsx(ProductImage,{randmarSKU:e.RandmarSKU||"",alt:e.RandmarTitle||""})})]}),jsxRuntime.jsxs("div",{className:"flex gap-6 mt-4",children:[jsxRuntime.jsx("div",{className:"flex flex-1",children:N&&e.Distribution&&jsxRuntime.jsxs("div",{className:"w-full",children:[jsxRuntime.jsx("div",{className:"flex items-center",children:"You have "+F.length+(F.length>1?" opportunities":" opportunity")+" for this product:"}),jsxRuntime.jsx("div",{className:"space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1",children:F.map((ae,K)=>{var pe;return jsxRuntime.jsxs("div",{className:`flex justify-between items-center rounded-lg transition-colors py-2 px-4 bg-purple-100 border border-muted
557
+ ${ae.BidNumber==(_==null?void 0:_.BidNumber)?"cursor-pointer border-2 border-purple-900":L(ae)?"hover:bg-purple-200 cursor-pointer":"!bg-neutral-50"}
558
+ `,onClick:()=>{L(ae)&&S(ae.BidNumber!=(_==null?void 0:_.BidNumber)?ae:null)},children:[jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("span",{className:"font-medium text-sm",children:ae.Opportunity}),jsxRuntime.jsxs("span",{className:"text-xs text-neutral-900",children:[ae.BidNumber," ",!L(ae)&&jsxRuntime.jsx(Badge,{variant:"outline",className:"text-xs mx-1 h-5 bg-gray-100",children:"Currently unavailable"})]})]})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-end",children:[jsxRuntime.jsxs("span",{className:"font-semibold",children:["$",(pe=ae.Price)==null?void 0:pe.toFixed(2)]}),ae.Rebate&&ae.Rebate>0&&jsxRuntime.jsxs("span",{className:"text-xs text-green-600",children:["Rebate: $",ae.Rebate.toFixed(2)]}),ae.EndDate&&jsxRuntime.jsxs("span",{className:"text-xs text-neutral-600",children:["Ends: ",Q(ae.EndDate)]})]})]},K)})})]})}),jsxRuntime.jsxs("div",{className:"flex flex-col items-center",children:[l&&jsxRuntime.jsxs(Button,{variant:"secondary",onClick:l,children:[jsxRuntime.jsx(Eye,{className:"mr-2"}),"View Product"]}),((le=e.Distribution)==null?void 0:le.Inventory)&&jsxRuntime.jsx("div",{className:"mt-4",children:jsxRuntime.jsxs(Dialog,{open:b,onOpenChange:A,children:[jsxRuntime.jsx(DialogTrigger,{asChild:!0,children:jsxRuntime.jsxs(Button,{variant:"ghost",className:`flex items-center text-sm ${U>0?"text-green-700":"text-red-700"}`,children:[jsxRuntime.jsx(Warehouse,{size:"16",className:"mr-2"}),U>0?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[U," in stock"]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:"Out of stock"})]})}),jsxRuntime.jsxs(DialogContent,{className:"max-w-4xl",children:[jsxRuntime.jsx(DialogHeader,{children:jsxRuntime.jsxs(DialogTitle,{className:"flex items-center",children:[jsxRuntime.jsx(Warehouse,{className:"mr-2",size:18}),"Inventory Information"]})}),jsxRuntime.jsx(ProductInventoryGrid,{inventory:e.Distribution.Inventory})]})]})})]})]}),e.Distribution&&jsxRuntime.jsxs("div",{className:"flex justify-between items-end mt-4",children:[jsxRuntime.jsx("div",{className:"flex-shrink-1 flex flex-col items-start gap-1",children:C>0?jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs("span",{className:"text-2xl font-bold whitespace-nowrap",children:[jsxRuntime.jsx("span",{children:"Cost: $"}),C.toFixed(2),jsxRuntime.jsx("span",{children:" CAD"})]})}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"flex items-center flex-wrap",children:[jsxRuntime.jsxs("span",{className:"text-2xl font-bold whitespace-nowrap",children:[jsxRuntime.jsx("span",{children:"$"}),_?(te=(ue=e.Opportunities)==null?void 0:ue.find(ae=>ae.BidNumber==_.BidNumber))==null?void 0:te.Price:M.toFixed(2),jsxRuntime.jsx("span",{children:" CAD"})]}),E>0&&jsxRuntime.jsxs("span",{className:"text-muted-foreground line-through ml-2 whitespace-nowrap",children:["$",O.toFixed(2)]})]}),E>0&&jsxRuntime.jsx("div",{className:"flex items-center",children:jsxRuntime.jsxs(Badge,{variant:"outline",className:"bg-red-50 text-red-700 rounded-full px-3 whitespace-nowrap",children:[jsxRuntime.jsxs("span",{children:[E,"% OFF"]}),((se=e.InstantRebate)==null?void 0:se.EndDate)&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"mx-1.5",children:"●"})," Ends ",e.InstantRebate.EndDate.split("T")[0]]}),(_==null?void 0:_.EndDate)&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{className:"mx-1.5",children:"●"})," Ends ",_.EndDate.split("T")[0]]})]})})]})}),jsxRuntime.jsxs("div",{className:"flex flex-shrink-0 gap-2 ml-4",children:[typeof t<"u"&&t&&jsxRuntime.jsxs("div",{className:"flex items-center border rounded-md",children:[jsxRuntime.jsx(Button,{variant:"ghost",size:"icon",className:"rounded-r-none",onClick:B,disabled:typeof m<"u"&&(m<=1||!e.AvailableToBuy||f||!u),children:"-"}),jsxRuntime.jsx("input",{value:m,onChange:V,onBlur:W,onClick:ae=>ae.currentTarget.select(),className:`w-12 text-center border-0 focus:ring-0 focus:outline-none ${!e.AvailableToBuy||f||!u?"text-gray-400":""}`,disabled:!e.AvailableToBuy||f||!u}),jsxRuntime.jsx(Button,{variant:"ghost",size:"icon",className:"rounded-l-none",onClick:z,disabled:!e.AvailableToBuy||f||!u,children:"+"})]}),typeof t<"u"&&t&&jsxRuntime.jsx(Button,{className:"gap-2 whitespace-nowrap",onClick:q,disabled:!e.AvailableToBuy||f||!u,children:f?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin"}),"Adding..."]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ShoppingCart,{className:"mr-2"}),"Add to Cart"]})}),n&&jsxRuntime.jsx(Button,{className:"gap-2 whitespace-nowrap bg-green-600 hover:bg-green-700",onClick:p,disabled:d||!p,children:d?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin"}),"Syncing..."]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ShoppingCart,{className:"mr-2"}),"Sync to Shopify"]})}),i]})]})]})})}exports.AreaChart=AreaChart,exports.AvatarFooter=AvatarFooter,exports.Badge=Badge,exports.Button=Button,exports.Card=Card,exports.CardContent=CardContent,exports.CardDescription=CardDescription,exports.CardFooter=CardFooter,exports.CardHeader=CardHeader,exports.CardTitle=CardTitle,exports.CountryFlag=CountryFlag,exports.Dialog=Dialog,exports.DialogClose=DialogClose,exports.DialogContent=DialogContent,exports.DialogDescription=DialogDescription,exports.DialogFooter=DialogFooter,exports.DialogHeader=DialogHeader,exports.DialogOverlay=DialogOverlay,exports.DialogPortal=DialogPortal,exports.DialogTitle=DialogTitle,exports.DialogTrigger=DialogTrigger,exports.DropdownMenu=DropdownMenu,exports.DropdownMenuCheckboxItem=DropdownMenuCheckboxItem,exports.DropdownMenuContent=DropdownMenuContent,exports.DropdownMenuGroup=DropdownMenuGroup,exports.DropdownMenuItem=DropdownMenuItem,exports.DropdownMenuLabel=DropdownMenuLabel,exports.DropdownMenuPortal=DropdownMenuPortal,exports.DropdownMenuRadioGroup=DropdownMenuRadioGroup,exports.DropdownMenuRadioItem=DropdownMenuRadioItem,exports.DropdownMenuSeparator=DropdownMenuSeparator,exports.DropdownMenuShortcut=DropdownMenuShortcut,exports.DropdownMenuSub=DropdownMenuSub,exports.DropdownMenuSubContent=DropdownMenuSubContent,exports.DropdownMenuSubTrigger=DropdownMenuSubTrigger,exports.DropdownMenuTrigger=DropdownMenuTrigger,exports.Input=Input,exports.InputOTP=InputOTP,exports.InputOTPGroup=InputOTPGroup,exports.InputOTPSeparator=InputOTPSeparator,exports.InputOTPSlot=InputOTPSlot,exports.Label=Label$1,exports.Layout=Layout,exports.Navbar=Navbar,exports.PartnerCard=PartnerCard,exports.Preloader=Preloader,exports.ProductCard=ProductCard,exports.ProductImage=ProductImage,exports.ProductInventoryGrid=ProductInventoryGrid,exports.Separator=Separator,exports.Sheet=Sheet,exports.SheetClose=SheetClose,exports.SheetContent=SheetContent,exports.SheetDescription=SheetDescription,exports.SheetFooter=SheetFooter,exports.SheetHeader=SheetHeader,exports.SheetOverlay=SheetOverlay,exports.SheetPortal=SheetPortal,exports.SheetTitle=SheetTitle,exports.SheetTrigger=SheetTrigger,exports.Sidebar=Sidebar,exports.SidebarContent=SidebarContent,exports.SidebarFooter=SidebarFooter,exports.SidebarGroup=SidebarGroup,exports.SidebarGroupAction=SidebarGroupAction,exports.SidebarGroupContent=SidebarGroupContent,exports.SidebarGroupLabel=SidebarGroupLabel,exports.SidebarHeader=SidebarHeader,exports.SidebarInput=SidebarInput,exports.SidebarInset=SidebarInset,exports.SidebarMenu=SidebarMenu,exports.SidebarMenuAction=SidebarMenuAction,exports.SidebarMenuBadge=SidebarMenuBadge,exports.SidebarMenuButton=SidebarMenuButton,exports.SidebarMenuItem=SidebarMenuItem,exports.SidebarMenuSkeleton=SidebarMenuSkeleton,exports.SidebarMenuSub=SidebarMenuSub,exports.SidebarMenuSubButton=SidebarMenuSubButton,exports.SidebarMenuSubItem=SidebarMenuSubItem,exports.SidebarProvider=SidebarProvider,exports.SidebarRail=SidebarRail,exports.SidebarSeparator=SidebarSeparator,exports.SidebarTrigger=SidebarTrigger,exports.Skeleton=Skeleton,exports.Toast=Toast,exports.ToastAction=ToastAction,exports.ToastClose=ToastClose,exports.ToastDescription=ToastDescription,exports.ToastProvider=ToastProvider,exports.ToastTitle=ToastTitle,exports.ToastViewport=ToastViewport,exports.Toaster=Toaster,exports.Tooltip=Tooltip$1,exports.TooltipContent=TooltipContent,exports.TooltipProvider=TooltipProvider,exports.TooltipTrigger=TooltipTrigger,exports.Topbar=Topbar,exports.badgeVariants=badgeVariants,exports.buttonVariants=buttonVariants,exports.toast=toast,exports.useIsMobile=useIsMobile,exports.useSidebar=useSidebar,exports.useToast=useToast,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})});