diff --git a/hostd/assets/404.html b/hostd/assets/404.html index c672fa3bb..c9b298d14 100644 --- a/hostd/assets/404.html +++ b/hostd/assets/404.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/_next/static/9ig4hKTnhTzQ5_BietKPm/_buildManifest.js b/hostd/assets/_next/static/9ig4hKTnhTzQ5_BietKPm/_buildManifest.js new file mode 100644 index 000000000..232da8b0c --- /dev/null +++ b/hostd/assets/_next/static/9ig4hKTnhTzQ5_BietKPm/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-e7b77d077e51306b.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/config":["static/chunks/pages/config-b347e9e06b4beab4.js"],"/contracts":["static/chunks/pages/contracts-8745a389d33b43c3.js"],"/login":["static/chunks/pages/login-7b3bb221a6795fa1.js"],"/node":["static/chunks/pages/node-a334faf802742481.js"],"/volumes":["static/chunks/pages/volumes-b3be04e94991e699.js"],"/wallet":["static/chunks/pages/wallet-1f360997513d57eb.js"],sortedPages:["/","/_app","/_error","/config","/contracts","/login","/node","/volumes","/wallet"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/hostd/assets/_next/static/bAS1nGr3emIeMnvTm1rWQ/_ssgManifest.js b/hostd/assets/_next/static/9ig4hKTnhTzQ5_BietKPm/_ssgManifest.js similarity index 100% rename from hostd/assets/_next/static/bAS1nGr3emIeMnvTm1rWQ/_ssgManifest.js rename to hostd/assets/_next/static/9ig4hKTnhTzQ5_BietKPm/_ssgManifest.js diff --git a/hostd/assets/_next/static/bAS1nGr3emIeMnvTm1rWQ/_buildManifest.js b/hostd/assets/_next/static/bAS1nGr3emIeMnvTm1rWQ/_buildManifest.js deleted file mode 100644 index 264ff0d93..000000000 --- a/hostd/assets/_next/static/bAS1nGr3emIeMnvTm1rWQ/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-81516b1a8c4cdcfd.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/config":["static/chunks/pages/config-93e4ec30b2b315c2.js"],"/contracts":["static/chunks/pages/contracts-a4baf12268fdc074.js"],"/login":["static/chunks/pages/login-6ad73397c117a0b1.js"],"/node":["static/chunks/pages/node-259c8781ea9f7a5b.js"],"/volumes":["static/chunks/pages/volumes-e202fb21048dec79.js"],"/wallet":["static/chunks/pages/wallet-0b2c8c4cd8b89e12.js"],sortedPages:["/","/_app","/_error","/config","/contracts","/login","/node","/volumes","/wallet"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/_app-b516cd040637730b.js b/hostd/assets/_next/static/chunks/pages/_app-c0b39fc3248dc647.js similarity index 53% rename from hostd/assets/_next/static/chunks/pages/_app-b516cd040637730b.js rename to hostd/assets/_next/static/chunks/pages/_app-c0b39fc3248dc647.js index 7821a397c..eb269054f 100644 --- a/hostd/assets/_next/static/chunks/pages/_app-b516cd040637730b.js +++ b/hostd/assets/_next/static/chunks/pages/_app-c0b39fc3248dc647.js @@ -1,20 +1,20 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{44711:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizeObserver:function(){return q},ResizeObserverEntry:function(){return S},ResizeObserverSize:function(){return c}});var r,i,o,a=[],s="ResizeObserver loop completed with undelivered notifications.",l=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:s}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=s),window.dispatchEvent(e)};(r=i||(i={})).BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var u=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,u(this)},d=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),f=function(e){return e instanceof SVGElement&&"getBBox"in e},h=function(e){if(f(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},p=function(e){if(e instanceof Element)return!0;var t,n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},m=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},v="undefined"!=typeof window?window:{},g=new WeakMap,y=/auto|scroll/,b=/^tb|vertical/,x=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),w=function(e){return parseFloat(e||"0")},E=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new c((n?t:e)||0,(n?e:t)||0)},k=u({devicePixelContentBoxSize:E(),borderBoxSize:E(),contentBoxSize:E(),contentRect:new d(0,0,0,0)}),j=function(e,t){if(void 0===t&&(t=!1),g.has(e)&&!t)return g.get(e);if(h(e))return g.set(e,k),k;var n=getComputedStyle(e),r=f(e)&&e.ownerSVGElement&&e.getBBox(),i=!x&&"border-box"===n.boxSizing,o=b.test(n.writingMode||""),a=!r&&y.test(n.overflowY||""),s=!r&&y.test(n.overflowX||""),l=r?0:w(n.paddingTop),c=r?0:w(n.paddingRight),p=r?0:w(n.paddingBottom),m=r?0:w(n.paddingLeft),v=r?0:w(n.borderTopWidth),j=r?0:w(n.borderRightWidth),_=r?0:w(n.borderBottomWidth),S=r?0:w(n.borderLeftWidth),O=m+c,C=l+p,M=S+j,A=v+_,P=s?e.offsetHeight-A-e.clientHeight:0,T=a?e.offsetWidth-M-e.clientWidth:0,N=r?r.width:w(n.width)-(i?O+M:0)-T,R=r?r.height:w(n.height)-(i?C+A:0)-P,D=N+O+T+M,L=R+C+P+A,F=u({devicePixelContentBoxSize:E(Math.round(N*devicePixelRatio),Math.round(R*devicePixelRatio),o),borderBoxSize:E(D,L,o),contentBoxSize:E(N,R,o),contentRect:new d(m,l,N,R)});return g.set(e,F),F},_=function(e,t,n){var r=j(e,n),o=r.borderBoxSize,a=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return s;case i.BORDER_BOX:return o;default:return a}},S=function(e){var t=j(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=u([t.borderBoxSize]),this.contentBoxSize=u([t.contentBoxSize]),this.devicePixelContentBoxSize=u([t.devicePixelContentBoxSize])},O=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},C=function(){var e=1/0,t=[];a.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new S(t.target),i=O(t.target);r.push(n),t.lastReportedSize=_(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},A=function(){var e=0;for(M(0);a.some(function(e){return e.activeTargets.length>0});)M(e=C());return a.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},P=[],T=function(e){if(!o){var t=0,n=document.createTextNode("");new MutationObserver(function(){return P.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),o=function(){n.textContent=""+(t?t--:t++)}}P.push(e),o()},N=function(e){T(function(){requestAnimationFrame(e)})},R=0,D={attributes:!0,characterData:!0,childList:!0,subtree:!0},L=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],F=function(e){return void 0===e&&(e=0),Date.now()+e},V=!1,I=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!V){V=!0;var n=F(e);N(function(){var r=!1;try{r=A()}finally{if(V=!1,e=n-F(),!R)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,D)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),L.forEach(function(t){return v.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),L.forEach(function(t){return v.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),z=function(e){!R&&e>0&&I.start(),(R+=e)||I.stop()},Z=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=_(this.target,this.observedBox,!0);return f(e=this.target)||m(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),B=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},H=new WeakMap,U=function(e,t){for(var n=0;nU(r.observationTargets,t)&&(i&&a.push(r),r.observationTargets.push(new Z(t,n&&n.box)),z(1),I.schedule())},e.unobserve=function(e,t){var n=H.get(e),r=U(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&a.splice(a.indexOf(n),1),n.observationTargets.splice(r,1),z(-1))},e.disconnect=function(e){var t=this,n=H.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),q=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");W.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");W.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");W.unobserve(this,e)},e.prototype.disconnect=function(){W.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},41816:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}n.d(t,{M:function(){return r}})},26215:function(e,t,n){"use strict";n.d(t,{F:function(){return i},e:function(){return o}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return o},k:function(){return i}});var r=n(2784);function i(e,t){let n=(0,r.createContext)(t);function i(e){let{children:t,...i}=e,o=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:o},t)}return i.displayName=e+"Provider",[i,function(i){let o=(0,r.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(e,t=[]){let n=[],i=()=>{let t=n.map(e=>(0,r.createContext)(e));return function(n){let i=(null==n?void 0:n[e])||t;return(0,r.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let o=(0,r.createContext)(i),a=n.length;function s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][a])||o,u=(0,r.useMemo)(()=>s,Object.values(s));return(0,r.createElement)(l.Provider,{value:u},i)}return n=[...n,i],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][a])||o,u=(0,r.useContext)(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}},72331:function(e,t,n){"use strict";n.d(t,{Dx:function(){return Y},VY:function(){return $},aV:function(){return q},dk:function(){return G},fC:function(){return H},h_:function(){return W},x8:function(){return K},xz:function(){return U}});var r=n(7896),i=n(2784),o=n(41816),a=n(26215),s=n(34540),l=n(26074),u=n(73597),c=n(83317),d=n(77334),f=n(6500),h=n(28245),p=n(72130),m=n(55070),v=n(88965),g=n(49732),y=n(99575);let b="Dialog",[x,w]=(0,s.b)(b),[E,k]=x(b),j=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...s}=e,l=k("DialogTrigger",n),u=(0,a.e)(t,l.triggerRef);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":z(l.open)},s,{ref:u,onClick:(0,o.M)(e.onClick,l.onOpenToggle)}))}),_="DialogPortal",[S,O]=x(_,{forceMount:void 0}),C="DialogOverlay",M=(0,i.forwardRef)((e,t)=>{let n=O(C,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=k(C,e.__scopeDialog);return s.modal?(0,i.createElement)(h.z,{present:o||s.open},(0,i.createElement)(A,(0,r.Z)({},a,{ref:t}))):null}),A=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=k(C,n);return(0,i.createElement)(v.Z,{as:y.g7,allowPinchZoom:!0,shards:[a.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":z(a.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),P="DialogContent",T=(0,i.forwardRef)((e,t)=>{let n=O(P,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=k(P,e.__scopeDialog);return(0,i.createElement)(h.z,{present:o||s.open},s.modal?(0,i.createElement)(N,(0,r.Z)({},a,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},a,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=k(P,e.__scopeDialog),s=(0,i.useRef)(null),l=(0,a.e)(t,n.contentRef,s);return(0,i.useEffect)(()=>{let e=s.current;if(e)return(0,g.R)(e)},[]),(0,i.createElement)(D,(0,r.Z)({},e,{ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=k(P,e.__scopeDialog),o=(0,i.useRef)(!1);return(0,i.createElement)(D,(0,r.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0);let a=t.target,s=null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a);s&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,f=k(P,n),h=(0,i.useRef)(null),p=(0,a.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:l},(0,i.createElement)(c.XB,(0,r.Z)({role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":z(f.open)},u,{ref:p,onDismiss:()=>f.onOpenChange(!1)}))),!1)}),L="DialogTitle",F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=k(L,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:a.titleId},o,{ref:t}))}),V=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=k("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:a.descriptionId},o,{ref:t}))}),I=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,s=k("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},a,{ref:t,onClick:(0,o.M)(e.onClick,()=>s.onOpenChange(!1))}))});function z(e){return e?"open":"closed"}let[Z,B]=(0,s.k)("DialogTitleWarning",{contentName:P,titleName:L,docsSlug:"dialog"}),H=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:o,onChange:a});return(0,i.createElement)(E,{scope:t,triggerRef:c,contentRef:d,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:h,onOpenToggle:(0,i.useCallback)(()=>h(e=>!e),[h]),modal:s},n)},U=j,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=k(_,t);return(0,i.createElement)(S,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||a.open},(0,i.createElement)(f.h,{asChild:!0,container:o},e))))},q=M,$=T,Y=F,G=V,K=I},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),o=n(2784),a=n(41816),s=n(72130),l=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,o.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...b}=e,x=(0,o.useContext)(d),[w,E]=(0,o.useState)(null),[,k]=(0,o.useState)({}),j=(0,l.e)(t,e=>E(e)),_=Array.from(x.layers),[S]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),O=_.indexOf(S),C=w?_.indexOf(w):-1,M=x.layersWithOutsidePointerEventsDisabled.size>0,A=C>=O,P=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1),r=(0,o.useRef)(()=>{});return(0,o.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){p("dismissableLayer.pointerDownOutside",t,n,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=i,document.addEventListener("click",r.current,{once:!0})):i()}n.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));!A||n||(null==m||m(e),null==g||g(e),e.defaultPrevented||null==y||y())}),T=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let e=e=>{e.target&&!n.current&&p("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));n||(null==v||v(e),null==g||g(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=C===x.layers.size-1;t&&(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,o.useEffect)(()=>{if(w)return n&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(w)),x.layers.add(w),h(),()=>{n&&1===x.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[w,n,x]),(0,o.useEffect)(()=>()=>{w&&(x.layers.delete(w),x.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,x]),(0,o.useEffect)(()=>{let e=()=>k({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,o.createElement)(s.WV.div,(0,i.Z)({},b,{ref:j,style:{pointerEvents:M?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,T.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,P.onPointerDownCapture)}))});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,s.jH)(i,o):i.dispatchEvent(o)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return o}});var r=n(2784);let i=0;function o(){(0,r.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},77334:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var i=n(7896),o=n(2784),a=n(26215),s=n(72130),l=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,o.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[b,x]=(0,o.useState)(null),w=(0,l.W)(f),E=(0,l.W)(g),k=(0,o.useRef)(null),j=(0,a.e)(t,e=>x(e)),_=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)(()=>{if(r){function e(e){if(_.paused||!b)return;let t=e.target;b.contains(t)?k.current=t:m(k.current,{select:!0})}function t(e){_.paused||!b||b.contains(e.relatedTarget)||m(k.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,b,_.paused]),(0,o.useEffect)(()=>{if(b){v.add(_);let e=document.activeElement,t=b.contains(e);if(!t){let t=new CustomEvent(u,d);b.addEventListener(u,w),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(h(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(b))}return()=>{b.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(c,d);b.addEventListener(c,E),b.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),b.removeEventListener(c,E),v.remove(_)},0)}}},[b,w,E,_]);let S=(0,o.useCallback)(e=>{if(!n&&!r||_.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=h(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]}(t),a=r&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(o,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,_.paused]);return(0,o.createElement)(s.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:j,onKeyDown:S}))});function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let v=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},26074:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,i=n(2784),o=n(64680);let a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.b)(()=>{e||n(e=>null!=e?e:String(s++))},[e]),e||(t?`radix-${t}`:"")}},6500:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(7896),i=n(2784),o=n(28316),a=n(72130);let s=(0,i.forwardRef)((e,t)=>{var n;let{container:s=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...l}=e;return s?o.createPortal((0,i.createElement)(a.WV.div,(0,r.Z)({},l,{ref:t})),s):null})},28245:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(2784),i=n(28316),o=n(26215),a=n(64680);let s=e=>{let{present:t,children:n}=e,s=function(e){var t;let[n,o]=(0,r.useState)(),s=(0,r.useRef)({}),u=(0,r.useRef)(e),c=(0,r.useRef)("none"),d=e?"mounted":"unmounted",[f,h]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},d));return(0,r.useEffect)(()=>{let e=l(s.current);c.current="mounted"===f?e:"none"},[f]),(0,a.b)(()=>{let t=s.current,n=u.current,r=n!==e;if(r){let r=c.current,i=l(t);e?h("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),u.current=e}},[e,h]),(0,a.b)(()=>{if(n){let e=e=>{let t=l(s.current),r=t.includes(e.animationName);e.target===n&&r&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===n&&(c.current=l(s.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(s.current=getComputedStyle(e)),o(e)},[])}}(t),u="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),c=(0,o.e)(s.ref,u.ref),d="function"==typeof n;return d||s.isPresent?(0,r.cloneElement)(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},72130:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(7896),i=n(2784),o=n(28316),a=n(99575);let s=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,i.forwardRef)((e,n)=>{let{asChild:o,...s}=e,l=o?a.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(l,(0,r.Z)({},s,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&(0,o.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return a}});var r=n(7896),i=n(2784),o=n(26215);let a=(0,i.forwardRef)((e,t)=>{let{children:n,...o}=e,a=i.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),n)});a.displayName="Slot";let s=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?n[r]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,o.F)(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});s.displayName="SlotClone";let l=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===l}},86029:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}},73597:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(2784),i=n(86029);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[o]=n,a=(0,r.useRef)(o),s=(0,i.W)(t);return(0,r.useEffect)(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,u=(0,i.W)(n),c=(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u]);return[l,c]}},64680:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(2784);let i=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},25447:function(e,t,n){"use strict";e.exports=n(44868)},99550:function(e,t,n){"use strict";e.exports=n(22360)},6901:function(e,t,n){"use strict";e.exports=n(78476)},8669:function(e,t,n){"use strict";e.exports=n(19455)},53609:function(e,t,n){"use strict";e.exports=n(96721)},81401:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.children,n=void 0===t?s.default:t,p=e.axisClassName,v=e.hideAxisLine,g=e.hideTicks,y=e.hideZero,b=void 0!==y&&y,x=e.left,w=e.numTicks,E=void 0===w?10:w,k=e.orientation,j=void 0===k?d.default.bottom:k,_=e.rangePadding,S=void 0===_?0:_,O=e.scale,C=e.tickFormat,M=e.tickLength,A=void 0===M?8:M,P=e.tickValues,T=e.top,N=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,h),R=null!=C?C:(0,u.default)(O),D=j===d.default.left,L=j===d.default.top,F=L||j===d.default.bottom,V=(0,l.default)(O),I=D||L?-1:1,z=O.range(),Z=(0,f.default)(S),B=(0,c.default)({x:Number(z[0])+.5-Z.start,y:0},F),H=(0,c.default)({x:Number(z[z.length-1])+.5+Z.end,y:0},F),U=(null!=P?P:(0,a.getTicks)(O,E)).filter(function(e){return!b||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),W=U.map(function(e){var t=e.value,n=e.index,r=(0,a.coerceNumber)(V(t));return{value:t,index:n,from:(0,c.default)({x:r,y:0},F),to:(0,c.default)({x:r,y:A*I},F),formattedValue:R(t,n,U)}});return r.default.createElement(o.Group,{className:(0,i.default)("visx-axis",p),top:void 0===T?0:T,left:void 0===x?0:x},n(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:b,horizontal:F,numTicks:E,orientation:j,rangePadding:S,scale:O,tickFormat:R,tickLength:A,tickPosition:V,tickSign:I,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),o=n(71602),a=n(63243),s=p(n(58052)),l=p(n(71387)),u=p(n(16882)),c=p(n(89591)),d=p(n(87209)),f=p(n(31863)),h=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:a.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:a.default.left,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:a.default.right,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:a.default.top,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=a()).done;){var s=r.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,r.default)(e.x,null!=(o=n.xMin)?o:-1/0,null!=(a=n.xMax)?a:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l:1/0)}};var r=o(n(30968)),i=o(n(98929));function o(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,r.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,n){if(void 0===n&&(n=1),!e)return[];for(var r=[],i=e.getTotalLength(),o=0;o<=i;o+=n){var a=e.getPointAtLength(o).matrixTransform(t);r.push(a)}return r}(e,t)},[null==e?void 0:e.getTotalLength()])};var r=n(2784)},37016:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,r.useState)(e),n=t[0],i=t[1],o=(0,r.useRef)(null),a=(0,r.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){o.current&&(o.current(n),o.current=null)},[n]),[n,a]};var r=n(2784)},65319:function(e,t,n){"use strict";n.r(t),n.d(t,{localPoint:function(){return r.Z},touchPoint:function(){return i.Z}});var r=n(91032),i=n(49833)},91032:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(49833),i=n(44321);function o(e,t){if((0,i.kK)(e)&&t)return(0,r.Z)(e,t);if((0,i.cO)(e)){var n=e.target;if(n)return(0,r.Z)(n,e)}return null}},49833:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(19067),i=n(44321);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:o({},a)}(t),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=n.x,u.y=n.y,u=u.matrixTransform(l.inverse()),new r.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new r.Z({x:n.x-c.left-e.clientLeft,y:n.y-c.top-e.clientTop})}},44321:function(e,t,n){"use strict";function r(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function o(e){return!!e&&"createSVGPoint"in e}function a(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}n.d(t,{DY:function(){return a},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return o},vZ:function(){return i},z6:function(){return s}})},21516:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),S=null!=k?k:(0,u.getTicks)(r,void 0===x?10:x),O=(null!=E?E:0)+(0,c.default)(r)/2,C=S.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+O;return{index:t,from:new l.Point({x:i,y:0}),to:new l.Point({x:i,y:f})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-columns",b),top:void 0===t?0:t,left:void 0===n?0:n},j?j({lines:C}):C.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:w},_))}))}p.propTypes={tickValues:r.default.array,height:r.default.number.isRequired}},34264:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),S=null!=j?j:(0,u.getTicks)(r,void 0===w?10:w),O=(null!=k?k:0)+(0,c.default)(r)/2,C=S.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+O;return{index:t,from:new l.Point({x:0,y:i}),to:new l.Point({x:f,y:i})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-rows",b),top:void 0===t?0:t,left:void 0===n?0:n},x?x({lines:C}):C.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:E},_))}))}p.propTypes={tickValues:r.default.array,width:r.default.number.isRequired}},12345:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return"bandwidth"in e?e.bandwidth():0}},59309:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(13980),i=n.n(r),o=n(2784),a=n(72779),s=n.n(a),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),a)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},71602:function(e,t,n){"use strict";n.r(t),n.d(t,{Group:function(){return r.Z}});var r=n(59309)},19067:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(){function e(e){var t=e.x,n=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===n?0:n}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},61305:function(e,t,n){"use strict";n.r(t),n.d(t,{Point:function(){return r.Z},subtractPoints:function(){return o},sumPoints:function(){return i}});var r=n(19067);function i(e,t){return new r.Z({x:e.x+t.x,y:e.y+t.y})}function o(e,t){return new r.Z({x:e.x-t.x,y:e.y-t.y})}},93125:function(e,t,n){"use strict";t.Z=function(e){var t=e.animationTrajectory,n=e.tickComponent,s=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),l=(0,r.useMemo)(function(){return function(e){return r.default.createElement(o.default,u({},e,{tickComponent:n,animationTrajectory:t}))}},[t,n]);return r.default.createElement(i.default,u({},s,{ticksComponent:l}))},l(n(13980));var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=l(n(81401)),o=l(n(65154)),a=["animationTrajectory","tickComponent"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,height:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"x",lineKey:function(e){var t,n;return"column-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.x)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(21516)),o=s(n(55727)),a=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),h=(0,o.useTransition)(n,u({},(0,a.default)({scale:t,animateXOrY:l,animationTrajectory:r}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,n){var r=e.fromX,a=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(o.animated.line,u({key:h,x1:r,x2:a,y1:s,y2:l,strokeOpacity:c,style:d},f))}))}c.propTypes={lineKey:r.default.func.isRequired}},93353:function(e,t,n){"use strict";t.Z=function(e){var t=e.scale,n=e.width,s=e.numTicks,u=e.tickValues,c=(e.offset,e.className),d=e.animationTrajectory,f=e.top,h=e.left,p=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,width:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"y",lineKey:function(e){var t,n;return"row-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.y)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(34264)),o=s(n(55727)),a=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,o.useRef)(null),y=(0,o.useRef)(0),b=(0,o.useState)({width:0,height:0,top:0,left:0}),x=b[0],w=b[1],E=(0,o.useMemo)(function(){var e=Array.isArray(f)?f:[f];return(0,i.default)(function(t){w(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},l,{leading:m})},[l,m,f]);return(0,o.useEffect)(function(){var e=new a.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,o=t.height;y.current=window.requestAnimationFrame(function(){E({width:i,height:o,top:r,left:n})})})});return g.current&&e.observe(g.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=E&&E.cancel&&E.cancel()}},[E]),o.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),n(c({},x,{ref:g.current,resize:E})))}f.propTypes={className:r.default.string,debounceTime:r.default.number,enableDebounceLeadingCall:r.default.bool,ignoreDimensions:r.default.oneOfType([r.default.any,r.default.arrayOf(r.default.any)]),children:r.default.func.isRequired}},2663:function(e,t,n){"use strict";var r=n(8597),i=n(12430),o=n(70590),a=n(50630),s=n(34278),l=n(64183),u=n(61662),c=n(43634),d=n(73335),f=n(54229),h=n(30558),p=n(71646),m=n(26587);t.Z=function(e){if(void 0!==e&&"type"in e)switch(e.type){case"linear":break;case"log":return(0,i.Z)(e);case"pow":return(0,o.Z)(e);case"sqrt":return(0,a.Z)(e);case"symlog":return(0,s.Z)(e);case"time":return(0,l.Z)(e);case"utc":return(0,u.Z)(e);case"quantile":return(0,c.Z)(e);case"quantize":return(0,d.Z)(e);case"threshold":return(0,f.Z)(e);case"ordinal":return(0,h.Z)(e);case"point":return(0,p.Z)(e);case"band":return(0,m.Z)(e)}return(0,r.Z)(e)}},63243:function(e,t,n){"use strict";n.r(t),n.d(t,{coerceNumber:function(){return _.Z},createScale:function(){return x.Z},getTicks:function(){return S.Z},inferScaleType:function(){return j},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return C.Z},scaleLinear:function(){return o.Z},scaleLog:function(){return f.Z},scaleOrdinal:function(){return p.Z},scalePoint:function(){return i.Z},scalePower:function(){return h.Z},scaleQuantile:function(){return v.Z},scaleQuantize:function(){return m.Z},scaleRadial:function(){return u},scaleSqrt:function(){return b.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return O.Z},updateScale:function(){return E}});var r=n(26587),i=n(71646),o=n(8597),a=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,a.Z)(),e)}var c=n(64183),d=n(61662),f=n(12430),h=n(70590),p=n(30558),m=n(73335),v=n(43634),g=n(34278),y=n(54229),b=n(50630),x=n(2663),w=s.Z.apply(void 0,s.a),E=function(e,t){return w(e.copy(),t)},k=n(40668);function j(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?.5===e.exponent()?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?(0,k.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var _=n(28142),S=n(71220),O=n(51519),C=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return S},Z:function(){return C}});var r=n(88751),i=n(87286),o=n(43780),a=n(77636),s=n(78978),l={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:o.Z,"hsl-long":o.q,cubehelix:a.Z,"cubehelix-long":a.B,rgb:s.ZP},u=n(68603),c=n(54076),d=n(18450),f=n(50690),h=n(52546),p=n(76231),m=n(97344),v=n(12370),g=n(28239),y=n(52004),b=n(94758),x=n(97631),w=n(2908),E=n(40668),k={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},j={day:v.Z,hour:g.Z,minute:y.Z,month:b.Z,second:h.Z,week:x.Ox,year:w.Z},_=n(74672),S=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],O={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var n=t.nice;if("boolean"==typeof n)n&&e.nice();else if("number"==typeof n)e.nice(n);else{var r=(0,E.Z)(e);if("string"==typeof n)e.nice(r?j[n]:k[n]);else{var i=n.interval,o=n.step,a=(r?j[i]:k[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],o=i=0||(i[n]=e[n]);return i}(e,s),y=(0,a.Nb)({innerRadius:i,outerRadius:u,cornerRadius:c,startAngle:d,endAngle:f,padAngle:h,padRadius:p});return m?r.createElement(r.Fragment,null,m({path:y})):n||null!=d&&null!=f&&null!=i&&null!=u?r.createElement("path",l({ref:v,className:o()("visx-arc",t),d:y(n)||""},g)):(console.warn("[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing."),null)}var c=n(59309),d=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),S=(0,a.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),O=(0,a.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:b,sortValues:x}),C=O(void 0===s?[]:s);return E?r.createElement(r.Fragment,null,E({arcs:C,path:S,pie:O})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},C.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:o()("visx-pie-arc",t),d:S(e)||"",fill:null==j||"string"==typeof j?j:j(e)},_)),null==l?void 0:l(S.centroid(e),e))}))}var p=n(63739),m=n(27079),v=["className","angle","radius","defined","curve","data","innerRef","children","fill"];function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v),m=(0,a.aJ)({angle:n,radius:i,defined:s,curve:l});return f?r.createElement(r.Fragment,null,f({path:m})):r.createElement("path",g({ref:d,className:o()("visx-line-radial",t),d:m(c)||"",fill:void 0===h?"transparent":h},p))}var b=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,b),y=(0,a.SO)({x:n,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===h?function(){return!0}:h,curve:m});return t?r.createElement(r.Fragment,null,t({path:y})):r.createElement("path",x({ref:v,className:o()("visx-area",p),d:y(f)||""},g))}var E=n(55746),k=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function j(){return(j=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,k),_=(0,a.kn)({keys:s,value:g,order:y,offset:b}),S=(0,a.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),O=_(l);return w?r.createElement(r.Fragment,null,w({stacks:O,path:S,stack:_})):r.createElement(c.Z,{top:n,left:i},O.map(function(e,n){return r.createElement("path",j({className:o()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:S(e)||"",fill:null==x?void 0:x(e.key,n)},E))}))}var S=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,S);return r.createElement(_,O({className:t,top:n,left:i,keys:a,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},x),b||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",O({className:o()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},x))})})}var M=n(14582),A=n(10897);function P(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}var T=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,T),g=P(u),y=t.map(function(e,t){return{index:t,x0:l(s(e)),bars:h.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,width:g,x:u(t)||0,y:d(r)||0,color:f(t,n),height:p-(d(r)||0)}})}});return m?r.createElement(r.Fragment,null,m(y)):r.createElement(c.Z,{className:o()("visx-bar-group",n),top:i,left:a},y.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map(function(t){return r.createElement(M.Z,N({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},v))}))}))}var D=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,D),y=P(f),b=t.map(function(e,t){return{index:t,y0:d(u(e))||0,bars:m.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,height:y,x:l(r)||0,y:f(t)||0,color:p(t,n),width:h(r)||0}})}});return v?r.createElement(r.Fragment,null,v(b)):r.createElement(c.Z,{className:o()("visx-bar-group-horizontal",n),top:i,left:a},b.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map(function(t){return r.createElement(M.Z,L({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},g))}))}))}var V=n(98926);function I(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function z(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function Z(e){return null==e?void 0:e.source}function B(e){return null==e?void 0:e.target}function H(e){return null==e?void 0:e[0]}function U(e){return null==e?void 0:e[1]}var W=n(26078),q=n(44081),$=n(30382),Y=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Y),E=(0,V.Z)();v&&E.keys(v),g&&(0,W.Z)(E.value,g),y&&E.order((0,q.ZP)(y)),b&&E.offset((0,$.ZP)(b));var k=E(t),j=P(h),_=k.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(p(u(t))||0)-(p(f(t))||0),o=p(f(t)),a="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-j/2);return{bar:t,key:n,index:r,height:i,width:j,x:a||0,y:o||0,color:m(e.key,r)}})}});return x?r.createElement(r.Fragment,null,x(_)):r.createElement(c.Z,{className:o()("visx-bar-stack",n),top:i,left:a},_.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,G({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var X=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function Q(){return(Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,X),E=(0,V.Z)();v&&E.keys(v),g&&(0,W.Z)(E.value,g),y&&E.order((0,q.ZP)(y)),b&&E.offset((0,$.ZP)(b));var k=E(t),j=P(p),_=k.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(h(f(t))||0)-(h(u(t))||0),o=h(u(t)),a="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:j,width:i,x:o||0,y:a||0,color:m(e.key,r)}})}});return x?r.createElement(r.Fragment,null,x(_)):r.createElement(c.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:a},_.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,Q({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var ee=function(e){return Math.PI/180*e},et=n(72215),en=["className","children","data","innerRef","path","x","y","source","target"];function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,en),h=s||ei({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:a,className:o()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var ea=["className","children","data","innerRef","path","x","y","source","target"];function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ea),h=s||el({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",es({ref:a,className:o()("visx-link visx-link-vertical-diagonal",t),d:h(i)||""},f))}var ec=["className","children","data","innerRef","path","angle","radius","source","target"];function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ec),h=s||ef({source:void 0===c?Z:c,target:void 0===d?B:d,angle:void 0===l?I:l,radius:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:a,className:o()("visx-link visx-link-radial-diagonal",t),d:h(i)||""},f))}var ep=n(91672),em=["className","children","data","innerRef","path","percent","x","y","source","target"];function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,em),p=s||eg({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ev({ref:a,className:o()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var eb=["className","children","data","innerRef","path","percent","x","y","source","target"];function ex(){return(ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eb),p=s||ew({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?I:u,y:void 0===c?z:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ex({ref:a,className:o()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var ek=["className","children","data","innerRef","path","percent","x","y","source","target"];function ej(){return(ej=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ek),p=s||e_({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?I:u,y:void 0===c?z:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ej({ref:a,className:o()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eO=["className","children","innerRef","data","path","x","y","source","target"];function eC(){return(eC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eO),h=s||eM({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eC({ref:i,className:o()("visx-link visx-link-horizontal-line",t),d:h(a)||""},f))}var eP=["className","innerRef","data","path","x","y","source","target","children"];function eT(){return(eT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eP),h=a||eN({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?I:s,y:void 0===l?z:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eT({ref:n,className:o()("visx-link visx-link-vertical-line",t),d:h(i)||""},f))}var eD=["className","innerRef","data","path","x","y","source","target","children"];function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eD),h=a||eF({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?I:s,y:void 0===l?z:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className:o()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var eI=["className","innerRef","data","path","percent","x","y","source","target","children"];function ez(){return(ez=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eI),p=a||eZ({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?I:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",ez({ref:n,className:o()("visx-link visx-link-horizontal-step",t),d:p(i)||""},h))}var eH=["className","innerRef","data","path","percent","x","y","source","target","children"];function eU(){return(eU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eH),p=a||eW({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?z:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eU({ref:n,className:o()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var e$=["className","innerRef","data","path","x","y","source","target","children"];function eY(){return(eY=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.PI?f<=d:f>d)?1:0)+","+l*h+","+l*p+"\n L"+c*h+","+c*p+"\n "}}function eK(e){var t=e.className,n=e.innerRef,i=e.data,a=e.path,s=e.x,l=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=a||eG({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?I:s,y:void 0===l?z:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eY({ref:n,className:o()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eX=["sides","size","center","rotate","className","children","innerRef","points"];function eQ(){return(eQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eX),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eJ:i,rotate:void 0===a?0:a}).map(function(e){return[e.x,e.y]});return l?r.createElement(r.Fragment,null,l({points:f})):r.createElement("polygon",eQ({ref:u,className:o()("visx-polygon",s),points:f.join(" ")},d))}var e4=["className","innerRef"];function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,e4);return r.createElement("circle",e3({ref:n,className:o()("visx-circle",t)},i))}var e6=n(13980),e8=n.n(e6),e7="http://www.w3.org/2000/svg",e9=function(){return!0};function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;tf[i]?d.map(function(e){return void 0===e?e9:function(t){return t>=e}}):d.map(function(e){return void 0===e?e9:function(t){return t<=e}}),p=0,m=0;m<=l;m+=a){for(var v=s.getPointAtLength(m),g=v[i];p=w[j+1];)j+=1;c[j].push(S)}}return c}catch(e){return[]}}({path:p,segmentation:s,pointsInSegments:h,sampleRate:l})},[p,s,h,l]);return r.createElement("g",null,v.map(function(e,i){return t?r.createElement(r.Fragment,{key:i},t({index:i,segment:e,styles:f[i]||f[i%f.length]})):r.createElement(m.Z,te({key:i,className:n,data:e,x:tt,y:tn},f[i]||f[i%f.length]))}))}tr.propTypes={segments:e8().arrayOf(e8().array).isRequired,styles:e8().array.isRequired,children:e8().func,className:e8().string}},55746:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(72779),o=n.n(i),a=n(26078),s=n(52511),l=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),E=(0,s.SO)({x:t,x0:n,x1:i,defined:void 0===v?function(){return!0}:v,curve:y});return(null==f?E.y0(h.range()[0]):(0,a.Z)(E.y0,f),c&&!d&&(0,a.Z)(E.y1,c),d&&!c&&(0,a.Z)(E.y1,d),x)?r.createElement(r.Fragment,null,x({path:E})):r.createElement("path",u({ref:b,className:o()("visx-area-closed",g),d:E(m)||""},w))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.createElement("rect",s({ref:n,className:o()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),I=(n=(t={x:j,y:_,width:S,height:O,radius:C,all:void 0!==M&&M,top:void 0!==A&&A,bottom:void 0!==P&&P,left:void 0!==T&&T,right:void 0!==N&&N,topLeft:void 0!==R&&R,topRight:void 0!==D&&D,bottomLeft:void 0!==L&&L,bottomRight:void 0!==F&&F}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,v=t.topRight,g=t.width,y=t.x,b=t.y,v=n||p||h||v,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,x=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+b+" h"+(g-x)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-x)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(x-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(x-c)+"\n "+(m?"a"+f+","+f+" 0 0 1 "+f+","+-f:"v"+-f+"h"+f)+"\nz").split("\n").join(""));return w?r.createElement(r.Fragment,null,w({path:I})):r.createElement("path",s({ref:k,className:o()("visx-bar-rounded",E),d:I},V))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:o()("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))}},27079:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),o=n.n(i),a=n(52511),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,a.jv)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",l({ref:p,className:o()("visx-linepath",f),d:g(i)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))}},52511:function(e,t,n){"use strict";n.d(t,{Nb:function(){return f},SO:function(){return h},aJ:function(){return v},jv:function(){return p},kn:function(){return g},ve:function(){return m}});var r=n(38764),i=n(12235),o=n(79767),a=n(69619),s=n(8329),l=n(98926),u=n(26078),c=n(44081),d=n(30382);function f(e){var t=void 0===e?{}:e,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.startAngle,s=t.endAngle,l=t.padAngle,c=t.padRadius,d=(0,r.Z)();return null!=n&&(0,u.Z)(d.innerRadius,n),null!=i&&(0,u.Z)(d.outerRadius,i),null!=o&&(0,u.Z)(d.cornerRadius,o),null!=a&&(0,u.Z)(d.startAngle,a),null!=s&&(0,u.Z)(d.endAngle,s),null!=l&&(0,u.Z)(d.padAngle,l),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,o=t.x1,a=t.y,s=t.y0,l=t.y1,c=t.defined,d=t.curve,f=(0,i.Z)();return n&&(0,u.Z)(f.x,n),r&&(0,u.Z)(f.x0,r),o&&(0,u.Z)(f.x1,o),a&&(0,u.Z)(f.y,a),s&&(0,u.Z)(f.y0,s),l&&(0,u.Z)(f.y1,l),c&&f.defined(c),d&&f.curve(d),f}function p(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,a=t.curve,s=(0,o.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),a&&s.curve(a),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,s=t.sort,l=t.sortValues,c=(0,a.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=o&&c.value(o),null!=i&&(0,u.Z)(c.padAngle,i),null!=n&&(0,u.Z)(c.startAngle,n),null!=r&&(0,u.Z)(c.endAngle,r),c}function v(e){var t=void 0===e?{}:e,n=t.angle,r=t.radius,i=t.defined,o=t.curve,a=(0,s.Z)();return n&&(0,u.Z)(a.angle,n),r&&(0,u.Z)(a.radius,r),i&&a.defined(i),o&&a.curve(o),a}function g(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,o=(0,l.Z)();return t&&o.keys(t),n&&(0,u.Z)(o.value,n),r&&o.order((0,c.ZP)(r)),i&&o.offset((0,d.ZP)(i)),o}},26078:function(e,t,n){"use strict";function r(e,t){e(t)}n.d(t,{Z:function(){return r}})},30382:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},ed:function(){return u},nW:function(){return l}});var r=n(22254),i=n(76751),o=n(90541),a=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:a.Z,wiggle:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},44081:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return l}});var r=n(19721),i=n(82564),o=n(12197),a=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:o.Z,none:a.Z,reverse:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},12935:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.x,s=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=void 0===h?[]:h,m=e.defined,v=e.className,g=e.curve,y=e.innerRef,b=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),x=(0,o.area)({x:n,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===m?function(){return!0}:m,curve:g});return t?r.default.createElement(r.default.Fragment,null,t({path:x})):r.default.createElement("path",l({ref:y,className:(0,i.default)("visx-area",v),d:x(p)||""},b))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),h=n.x===l.x||n.y===l.y;return r.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var r=a(n(2784)),i=a(n(72779)),o=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),g=(0,o.line)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.default.createElement(r.default.Fragment,null,t({path:g})):r.default.createElement("path",l({ref:p,className:(0,i.default)("visx-linepath",f),d:g(s)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,b=g.startDy,x=g.transform;return r.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===n?0:n,fontSize:v,style:s},y.length>0?r.createElement("text",a({ref:c,transform:x},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?b:f},e.words.join(" "))})):null)}},89907:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(32718),o=n.n(i),a=n(75715),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function l(e){return"number"==typeof e}function u(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function c(e){var t=e.verticalAnchor,n=void 0===t?"end":t,i=e.scaleToFit,c=void 0!==i&&i,d=e.angle,f=e.width,h=e.lineHeight,p=void 0===h?"1em":h,m=e.capHeight,v=void 0===m?"0.71em":m,g=e.children,y=e.style,b=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,s),x=b.x,w=void 0===x?0:x,E=b.y,k=void 0===E?0:E,j=!u(w)||!u(k),_=(0,r.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.Z)(e,y)||0}}),spaceWidth:(0,a.Z)("\xa0",y)||0}},[g,y]),S=_.wordsWithWidth,O=_.spaceWidth,C=(0,r.useMemo)(function(){return j?[]:f||c?S.reduce(function(e,t){var n=t.word,r=t.wordWidth,i=e[e.length-1];return i&&(null==f||c||(i.width||0)+r+O0){var t=C[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=k-n*k;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+k+")"),e.length>0?e.join(" "):""},[j,w,k,f,c,C,d]);return{wordsByLines:C,startDy:M,transform:A}}},44425:function(e,t,n){"use strict";n.r(t),n.d(t,{Text:function(){return r.Z},getStringWidth:function(){return i.Z},useText:function(){return o.Z}});var r=n(64170),i=n(75715),o=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),o="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(o);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",o),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)})},49732:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=new WeakMap,i=new WeakMap,o={},a=0,s=function(e,t,n){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===n&&(n="data-aria-hidden");var s=Array.isArray(e)?e:[e];o[n]||(o[n]=new WeakMap);var l=o[n],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};s.forEach(d);var f=function(e){!e||s.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,a),l.set(e,s),u.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),a++,function(){u.forEach(function(e){var t=r.get(e)-1,o=l.get(e)-1;r.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}}},89644:function(e,t,n){e.exports=n(25644)},70353:function(e,t,n){"use strict";var r=n(93044),i=n(86955),o=n(92233),a=n(68030),s=n(97948),l=n(51875),u=n(60842),c=n(98560),d=n(21218),f=n(68047),h=n(10738);e.exports=function(e){return new Promise(function(t,n){var p,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete v["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var x=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(x+":"+w)}var E=s(e.baseURL,e.url);function k(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}}if(b.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=k:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(k)},b.onabort=function(){b&&(n(new d("Request aborted",d.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var j=(e.withCredentials||u(E))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;j&&(v[e.xsrfHeaderName]=j)}"setRequestHeader"in b&&r.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:b.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new f:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var _=h(E);if(_&&-1===["http","https","file"].indexOf(_)){n(new d("Unsupported protocol "+_+":",d.ERR_BAD_REQUEST,e));return}b.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),o=n(62215),a=n(92937),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(10663));s.Axios=o,s.CanceledError=n(68047),s.CancelToken=n(34089),s.isCancel=n(98041),s.VERSION=n(29241).version,s.toFormData=n(49027),s.AxiosError=n(21218),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(70783),s.isAxiosError=n(65587),e.exports=s,e.exports.default=s},34089:function(e,t,n){"use strict";var r=n(68047);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.merge(c)}),e.exports=f},98560:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(e){e.exports={version:"0.27.2"}},73644:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([n]):a[t]=a[t]?a[t]+", "+n:n)}),a}},10738:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},70783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},49027:function(e,t,n){"use strict";var r=n(48834).lW,i=n(93044);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return!function e(r,a){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var s,l=a?a+"."+r:r;if(n&&!a&&"object"==typeof n){if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(s=i.toArray(n))){s.forEach(function(e){i.isUndefined(e)||t.append(l,o(e))});return}}e(n,l)}}),n.pop()}else t.append(a,o(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,n){"use strict";var r,i,o=n(73644),a=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=a.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),v=l("Blob"),g=l("FileList");function y(e){return"[object Function]"===a.call(e)}var b=l("URLSearchParams");function x(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return -1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},6391:function(e,t,n){var r;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,n,r=1,i=e.length,o=e[0]+"";ru^n?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function m(e,t,n,r){if(en||e!==l(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else tP?h.c=h.e=null:e.e=10;s/=10,o++);o>P?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return k(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&F)return B(h=new V(e),S+h.e+1,O);if(f=String(e),u="number"==typeof e){if(0*e!=0)return k(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,V.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=L.slice(0,t),o=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return k(h,String(e),u,t)}u=!1,(o=(f=E(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=f.length}for(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&V.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>P)h.c=h.e=null;else if(o=M)?g(l,a):y(l,a,"0");else if(o=(e=B(new V(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=o||o<=C)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function z(e,t){for(var n,r=1,i=new V(e[0]);r=10;i/=10,r++);return(n=r+14*n-1)>P?e.c=e.e=null:n=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(r=r||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(o>0?a>0?c/d[i-a]:0:p[f-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),r)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>P?e.c=e.e=null:e.e=M?g(t,n):y(t,n,"0"),e.s<0?"-"+t:t)}return V.clone=e,V.ROUND_UP=0,V.ROUND_DOWN=1,V.ROUND_CEIL=2,V.ROUND_FLOOR=3,V.ROUND_HALF_UP=4,V.ROUND_HALF_DOWN=5,V.ROUND_HALF_EVEN=6,V.ROUND_HALF_CEIL=7,V.ROUND_HALF_FLOOR=8,V.EUCLID=9,V.config=V.set=function(e){var t,n;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(n=e[t],0,1e9,t),S=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),O=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),C=n[0],M=n[1]):(m(n,-1e9,1e9,t),C=-(M=n<0?-n:n))),e.hasOwnProperty(t="RANGE")){if((n=e[t])&&n.pop)m(n[0],-1e9,-1,t),m(n[1],1,1e9,t),A=n[0],P=n[1];else if(m(n,-1e9,1e9,t),n)A=-(P=n<0?-n:n);else throw Error(u+t+" cannot be zero: "+n)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(n=e[t])===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))T=n;else throw T=!n,Error(u+"crypto unavailable")}else T=n}else throw Error(u+t+" not true or false: "+n)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(n=e[t],0,9,t),N=n),e.hasOwnProperty(t="POW_PRECISION")&&(m(n=e[t],0,1e9,t),R=n),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(n=e[t]))D=n;else throw Error(u+t+" not an object: "+n)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);F="0123456789"==n.slice(0,10),L=n}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:S,ROUNDING_MODE:O,EXPONENTIAL_AT:[C,M],RANGE:[A,P],CRYPTO:T,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},V.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!V.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t=1e14||n!==l(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},V.maximum=V.max=function(){return z(arguments,j.lt)},V.minimum=V.min=function(){return z(arguments,j.gt)},V.random=(n=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,i,o,a,c=0,f=[],h=new V(_);if(null==e?e=S:m(e,0,1e9),o=s(e/14),T){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw T=!1,Error(u+"crypto unavailable")}if(!T)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),V.sum=function(){for(var e=1,t=arguments,n=new V(t[0]);en-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(n,r,i,o,a){var s,l,u,c,d,f,p,m,v=n.indexOf("."),g=S,b=O;for(v>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new V(r)).pow(n.length-v),R=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(n,r,i,a?(s=L,e):(s=e,L))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(v<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=w(f,m,g,b,i)).c,d=f.r,u=f.e),v=p[l=u+g+1],c=i/2,d=d||l<0||null!=p[l+1],d=b<4?(null!=v||d)&&(0==b||b==(f.s<0?3:2)):v>c||v==c&&(4==b||d||6==b&&1&p[l-1]||b==(f.s<0?8:7)),l<1||!p[0])n=d?y(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(v=0,n="";v<=c;n+=s.charAt(p[v++]));n=y(n,u,s.charAt(0))}return n}}(),w=function(){function e(e,t,n){var r,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*a,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(r,i,o,a,s){var u,c,d,h,p,m,v,g,y,b,x,w,E,k,j,_,S,O=r.s==i.s?1:-1,C=r.c,M=i.c;if(!C||!C[0]||!M||!M[0])return new V(r.s&&i.s&&(C?!M||C[0]!=M[0]:M)?C&&0==C[0]||!M?0*O:O/0:NaN);for(y=(g=new V(O)).c=[],O=o+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),O=O/14|0),d=0;M[d]==(C[d]||0);d++);if(M[d]>(C[d]||0)&&c--,O<0)y.push(1),h=!0;else{for(k=C.length,_=M.length,d=0,O+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),C=e(C,p,s),_=M.length,k=C.length),E=_,x=(b=C.slice(0,_)).length;x<_;b[x++]=0);S=[0].concat(S=M.slice()),j=M[0],M[1]>=s/2&&j++;do{if(p=0,(u=t(M,b,_,x))<0){if(w=b[0],_!=x&&(w=w*s+(b[1]||0)),(p=l(w/j))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,x=b.length;1==t(m,b,v,x);)p--,n(m,_t(M,b,_,x);)p++,n(b,_=10;O/=10,d++);B(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,k=function(e,t,n,a){var s,l=n?t:t.replace(x,"");if(b.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!n&&(l=l.replace(r,function(e,t,n){return s="x"==(n=n.toLowerCase())?16:"b"==n?2:8,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new V(l,s);if(V.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},j.absoluteValue=j.abs=function(){var e=new V(this);return e.s<0&&(e.s=1),e},j.comparedTo=function(e,t){return p(this,new V(e,t))},j.decimalPlaces=j.dp=function(e,t){var n,r,i;if(null!=e)return m(e,0,1e9),null==t?t=O:m(t,0,8),B(new V(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((i=n.length-1)-f(this.e/14))*14,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},j.dividedBy=j.div=function(e,t){return w(this,new V(e,t),S,O)},j.dividedToIntegerBy=j.idiv=function(e,t){return w(this,new V(e,t),0,1)},j.exponentiatedBy=j.pow=function(e,t){var n,r,i,o,a,c,d,f,h,p=this;if((e=new V(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new V(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new V(Math.pow(+H(p),c?2-v(e):+H(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new V(NaN);(r=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new V(d?1/o:o);R&&(o=s(R/14+2))}for(c?(n=new V(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new V(_);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):r&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(B(e=e.times(n),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?h:(d&&(h=_.div(h)),t?h.mod(t):o?B(h,R,O,a):h)},j.integerValue=function(e){var t=new V(this);return null==e?e=O:m(e,0,8),B(t,t.e+1,e)},j.isEqualTo=j.eq=function(e,t){return 0===p(this,new V(e,t))},j.isFinite=function(){return!!this.c},j.isGreaterThan=j.gt=function(e,t){return p(this,new V(e,t))>0},j.isGreaterThanOrEqualTo=j.gte=function(e,t){return 1===(t=p(this,new V(e,t)))||0===t},j.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},j.isLessThan=j.lt=function(e,t){return 0>p(this,new V(e,t))},j.isLessThanOrEqualTo=j.lte=function(e,t){return -1===(t=p(this,new V(e,t)))||0===t},j.isNaN=function(){return!this.s},j.isNegative=function(){return this.s<0},j.isPositive=function(){return this.s>0},j.isZero=function(){return!!this.c&&0==this.c[0]},j.minus=function(e,t){var n,r,i,o,a=this.s;if(t=(e=new V(e,t)).s,!a||!t)return new V(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new V(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new V(u[0]?this:3==O?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>a;){if(u[--r]=0;){for(n=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[o]+n)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=n}return n?++r:m.splice(0,1),Z(e,m,r)},j.negated=function(){var e=new V(this);return e.s=-e.s||null,e},j.plus=function(e,t){var n,r=this.s;if(t=(e=new V(e,t)).s,!r||!t)return new V(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new V(r/0);if(!a[0]||!s[0])return s[0]?e:new V(a[0]?this:0*r)}if(i=f(i),o=f(o),a=a.slice(),r=i-o){for(r>0?(o=i,n=s):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for((r=a.length)-(t=s.length)<0&&(n=s,s=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+s[t]+r)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return r&&(a=[r].concat(a),++o),Z(e,a,o)},j.precision=j.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=O:m(t,0,8),B(new V(this),e,t);if(!(n=this.c))return null;if(r=14*(i=n.length-1)+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},j.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},j.squareRoot=j.sqrt=function(){var e,t,n,r,i,o=this.c,a=this.s,s=this.e,l=S+4,u=new V("0.5");if(1!==a||!o||!o[0])return new V(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,n=new V(t)):n=new V(a+""),n.c[0]){for((a=(s=n.e)+l)<3&&(a=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(n.c)).slice(0,a)){if(n.e0&&p>0){for(i=p%a||a,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((s=+n.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},j.toFraction=function(e){var t,n,r,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new V(e)).isInteger()&&(s.c||1!==s.s)||s.lt(_)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new V(this);for(t=new V(_),c=n=new V(_),r=l=new V(_),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=P,P=1/0,s=new V(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(n),r,0,1),l=l.plus(i.times(c)),n=n.plus(i.times(r)),l.s=c.s=this.s,o*=2,p=1>w(c,r,o,O).minus(this).abs().comparedTo(w(l,n,o,O).minus(this).abs())?[c,r]:[l,n],P=a,p},j.toNumber=function(){return+H(this)},j.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),I(this,e,t,2)},j.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=C||i>=M?g(h(n.c),i):y(h(n.c),i,"0"):10===e&&F?t=y(h((n=B(new V(n),S+i+1,O)).c),n.e,"0"):(m(e,2,L.length,"Base"),t=E(y(h(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},j.valueOf=j.toJSON=function(){return H(this)},j._isBigNumber=!0,null!=t&&V.set(t),V}()).default=o.BigNumber=o,void 0!==(r=(function(){return o}).call(t,n,t,e))&&(e.exports=r)}(0)},70651:function(e,t,n){let r=n(7967);function i(e,t,n){let r=e[t]+e[n],i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function o(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let o=e[t+1]+r;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(c,e,l,u);let p=c[r]^c[e],m=c[r+1]^c[e+1];c[r]=m,c[r+1]=p,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),o(c,e,f,h),p=c[r]^c[e],m=c[r+1]^c[e+1],c[r]=p>>>16^m<<16,c[r+1]=m>>>16^p<<16,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=m>>>31^p<<1,c[t+1]=p>>>31^m<<1}let l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let n=0;for(n=0;n<16;n++)c[n]=e.h[n],c[n+16]=l[n];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),n=0;n<32;n++)d[n]=a(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,u[16*n+0],u[16*n+1]),s(2,10,18,26,u[16*n+2],u[16*n+3]),s(4,12,20,28,u[16*n+4],u[16*n+5]),s(6,14,22,30,u[16*n+6],u[16*n+7]),s(0,10,20,30,u[16*n+8],u[16*n+9]),s(2,12,22,24,u[16*n+10],u[16*n+11]),s(4,14,16,26,u[16*n+12],u[16*n+13]),s(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^c[n]^c[n+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,n,r){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&16!==n.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(r&&16!==r.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,n&&h.set(n,32),r&&h.set(r,48);for(let e=0;e<16;e++)i.h[e]=l[e]^a(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let n=0;n>2]>>8*(3&n);return t}function g(e,t,n,i,o){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),o&&(o=r.normalizeInput(o));let a=p(n,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,n,i,o){let a=g(e,t,n,i,o);return r.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,a){l[e]=l[e]+l[t]+i,l[r]=o(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],12),l[e]=l[e]+l[t]+a,l[r]=o(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],7)}function o(e,t){return e>>>t^e<<32-t}let a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let n=0;for(n=0;n<8;n++)l[n]=e.h[n],l[n+8]=a[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++){var r,o;u[n]=(r=e.b)[o=4*n]^r[o+1]<<8^r[o+2]<<16^r[o+3]<<24}for(n=0;n<10;n++)i(0,4,8,12,u[s[16*n+0]],u[s[16*n+1]]),i(1,5,9,13,u[s[16*n+2]],u[s[16*n+3]]),i(2,6,10,14,u[s[16*n+4]],u[s[16*n+5]]),i(3,7,11,15,u[s[16*n+6]],u[s[16*n+7]]),i(0,5,10,15,u[s[16*n+8]],u[s[16*n+9]]),i(1,6,11,12,u[s[16*n+10]],u[s[16*n+11]]),i(2,7,8,13,u[s[16*n+12]],u[s[16*n+13]]),i(3,4,9,14,u[s[16*n+14]],u[s[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=l[n]^l[n+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let n=t?t.length:0;if(t&&!(n>0&&n<=32))throw Error("Incorrect key length, should be in [1, 32]");let r={h:new Uint32Array(a),b:new Uint8Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(f(r,t),r.c=64),r}function f(e,t){for(let n=0;n>2]>>8*(3&n)&255;return t}function p(e,t,n){n=n||32,e=r.normalizeInput(e);let i=d(n,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,n){let i=p(e,t,n);return r.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,n){let r=n(70651),i=n(39962);e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},7967:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e){let n=new TextEncoder;t=n.encode(e)}else throw Error("Input must be an string, Buffer or Uint8Array");return t},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,n,r){let i="\n"+e+" = ";for(let o=0;oe?t.activeTargets.push(n):t.skippedTargets.push(n))})})},A=function(){var e=0;for(M(0);a.some(function(e){return e.activeTargets.length>0});)M(e=C());return a.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},P=[],T=function(e){if(!o){var t=0,n=document.createTextNode("");new MutationObserver(function(){return P.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),o=function(){n.textContent=""+(t?t--:t++)}}P.push(e),o()},N=function(e){T(function(){requestAnimationFrame(e)})},R=0,D={attributes:!0,characterData:!0,childList:!0,subtree:!0},L=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],F=function(e){return void 0===e&&(e=0),Date.now()+e},V=!1,z=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!V){V=!0;var n=F(e);N(function(){var r=!1;try{r=A()}finally{if(V=!1,e=n-F(),!R)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,D)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),L.forEach(function(t){return v.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),L.forEach(function(t){return v.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),I=function(e){!R&&e>0&&z.start(),(R+=e)||z.stop()},Z=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=_(this.target,this.observedBox,!0);return f(e=this.target)||m(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),B=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},H=new WeakMap,U=function(e,t){for(var n=0;nU(r.observationTargets,t)&&(i&&a.push(r),r.observationTargets.push(new Z(t,n&&n.box)),I(1),z.schedule())},e.unobserve=function(e,t){var n=H.get(e),r=U(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&a.splice(a.indexOf(n),1),n.observationTargets.splice(r,1),I(-1))},e.disconnect=function(e){var t=this,n=H.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),q=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");W.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");W.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");W.unobserve(this,e)},e.prototype.disconnect=function(){W.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},41816:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}n.d(t,{M:function(){return r}})},26215:function(e,t,n){"use strict";n.d(t,{F:function(){return i},e:function(){return o}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return o},k:function(){return i}});var r=n(2784);function i(e,t){let n=(0,r.createContext)(t);function i(e){let{children:t,...i}=e,o=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:o},t)}return i.displayName=e+"Provider",[i,function(i){let o=(0,r.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(e,t=[]){let n=[],i=()=>{let t=n.map(e=>(0,r.createContext)(e));return function(n){let i=(null==n?void 0:n[e])||t;return(0,r.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let o=(0,r.createContext)(i),a=n.length;function s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][a])||o,u=(0,r.useMemo)(()=>s,Object.values(s));return(0,r.createElement)(l.Provider,{value:u},i)}return n=[...n,i],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][a])||o,u=(0,r.useContext)(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}},72331:function(e,t,n){"use strict";n.d(t,{Dx:function(){return Y},VY:function(){return $},aV:function(){return q},dk:function(){return G},fC:function(){return H},h_:function(){return W},x8:function(){return K},xz:function(){return U}});var r=n(7896),i=n(2784),o=n(41816),a=n(26215),s=n(34540),l=n(26074),u=n(73597),c=n(83317),d=n(77334),f=n(6500),h=n(28245),p=n(72130),m=n(55070),v=n(88965),g=n(49732),y=n(99575);let x="Dialog",[b,w]=(0,s.b)(x),[E,j]=b(x),k=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...s}=e,l=j("DialogTrigger",n),u=(0,a.e)(t,l.triggerRef);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":I(l.open)},s,{ref:u,onClick:(0,o.M)(e.onClick,l.onOpenToggle)}))}),_="DialogPortal",[S,O]=b(_,{forceMount:void 0}),C="DialogOverlay",M=(0,i.forwardRef)((e,t)=>{let n=O(C,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=j(C,e.__scopeDialog);return s.modal?(0,i.createElement)(h.z,{present:o||s.open},(0,i.createElement)(A,(0,r.Z)({},a,{ref:t}))):null}),A=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=j(C,n);return(0,i.createElement)(v.Z,{as:y.g7,allowPinchZoom:!0,shards:[a.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":I(a.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),P="DialogContent",T=(0,i.forwardRef)((e,t)=>{let n=O(P,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=j(P,e.__scopeDialog);return(0,i.createElement)(h.z,{present:o||s.open},s.modal?(0,i.createElement)(N,(0,r.Z)({},a,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},a,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=j(P,e.__scopeDialog),s=(0,i.useRef)(null),l=(0,a.e)(t,n.contentRef,s);return(0,i.useEffect)(()=>{let e=s.current;if(e)return(0,g.R)(e)},[]),(0,i.createElement)(D,(0,r.Z)({},e,{ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=j(P,e.__scopeDialog),o=(0,i.useRef)(!1);return(0,i.createElement)(D,(0,r.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0);let a=t.target,s=null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a);s&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,f=j(P,n),h=(0,i.useRef)(null),p=(0,a.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:l},(0,i.createElement)(c.XB,(0,r.Z)({role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":I(f.open)},u,{ref:p,onDismiss:()=>f.onOpenChange(!1)}))),!1)}),L="DialogTitle",F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=j(L,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:a.titleId},o,{ref:t}))}),V=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=j("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:a.descriptionId},o,{ref:t}))}),z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,s=j("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},a,{ref:t,onClick:(0,o.M)(e.onClick,()=>s.onOpenChange(!1))}))});function I(e){return e?"open":"closed"}let[Z,B]=(0,s.k)("DialogTitleWarning",{contentName:P,titleName:L,docsSlug:"dialog"}),H=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:o,onChange:a});return(0,i.createElement)(E,{scope:t,triggerRef:c,contentRef:d,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:h,onOpenToggle:(0,i.useCallback)(()=>h(e=>!e),[h]),modal:s},n)},U=k,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=j(_,t);return(0,i.createElement)(S,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||a.open},(0,i.createElement)(f.h,{asChild:!0,container:o},e))))},q=M,$=T,Y=F,G=V,K=z},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),o=n(2784),a=n(41816),s=n(72130),l=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,o.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...x}=e,b=(0,o.useContext)(d),[w,E]=(0,o.useState)(null),[,j]=(0,o.useState)({}),k=(0,l.e)(t,e=>E(e)),_=Array.from(b.layers),[S]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),O=_.indexOf(S),C=w?_.indexOf(w):-1,M=b.layersWithOutsidePointerEventsDisabled.size>0,A=C>=O,P=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1),r=(0,o.useRef)(()=>{});return(0,o.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){p("dismissableLayer.pointerDownOutside",t,n,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=i,document.addEventListener("click",r.current,{once:!0})):i()}n.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,n=[...b.branches].some(e=>e.contains(t));!A||n||(null==m||m(e),null==g||g(e),e.defaultPrevented||null==y||y())}),T=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let e=e=>{e.target&&!n.current&&p("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,n=[...b.branches].some(e=>e.contains(t));n||(null==v||v(e),null==g||g(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=C===b.layers.size-1;t&&(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,o.useEffect)(()=>{if(w)return n&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(w)),b.layers.add(w),h(),()=>{n&&1===b.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[w,n,b]),(0,o.useEffect)(()=>()=>{w&&(b.layers.delete(w),b.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,b]),(0,o.useEffect)(()=>{let e=()=>j({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,o.createElement)(s.WV.div,(0,i.Z)({},x,{ref:k,style:{pointerEvents:M?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,T.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,P.onPointerDownCapture)}))});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,s.jH)(i,o):i.dispatchEvent(o)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return o}});var r=n(2784);let i=0;function o(){(0,r.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},77334:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var i=n(7896),o=n(2784),a=n(26215),s=n(72130),l=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,o.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[x,b]=(0,o.useState)(null),w=(0,l.W)(f),E=(0,l.W)(g),j=(0,o.useRef)(null),k=(0,a.e)(t,e=>b(e)),_=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)(()=>{if(r){function e(e){if(_.paused||!x)return;let t=e.target;x.contains(t)?j.current=t:m(j.current,{select:!0})}function t(e){_.paused||!x||x.contains(e.relatedTarget)||m(j.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,x,_.paused]),(0,o.useEffect)(()=>{if(x){v.add(_);let e=document.activeElement,t=x.contains(e);if(!t){let t=new CustomEvent(u,d);x.addEventListener(u,w),x.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(h(x).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(x))}return()=>{x.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(c,d);x.addEventListener(c,E),x.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),x.removeEventListener(c,E),v.remove(_)},0)}}},[x,w,E,_]);let S=(0,o.useCallback)(e=>{if(!n&&!r||_.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=h(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]}(t),a=r&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(o,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,_.paused]);return(0,o.createElement)(s.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:k,onKeyDown:S}))});function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let v=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},26074:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,i=n(2784),o=n(64680);let a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.b)(()=>{e||n(e=>null!=e?e:String(s++))},[e]),e||(t?`radix-${t}`:"")}},6500:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(7896),i=n(2784),o=n(28316),a=n(72130);let s=(0,i.forwardRef)((e,t)=>{var n;let{container:s=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...l}=e;return s?o.createPortal((0,i.createElement)(a.WV.div,(0,r.Z)({},l,{ref:t})),s):null})},28245:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(2784),i=n(28316),o=n(26215),a=n(64680);let s=e=>{let{present:t,children:n}=e,s=function(e){var t;let[n,o]=(0,r.useState)(),s=(0,r.useRef)({}),u=(0,r.useRef)(e),c=(0,r.useRef)("none"),d=e?"mounted":"unmounted",[f,h]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},d));return(0,r.useEffect)(()=>{let e=l(s.current);c.current="mounted"===f?e:"none"},[f]),(0,a.b)(()=>{let t=s.current,n=u.current,r=n!==e;if(r){let r=c.current,i=l(t);e?h("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),u.current=e}},[e,h]),(0,a.b)(()=>{if(n){let e=e=>{let t=l(s.current),r=t.includes(e.animationName);e.target===n&&r&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===n&&(c.current=l(s.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(s.current=getComputedStyle(e)),o(e)},[])}}(t),u="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),c=(0,o.e)(s.ref,u.ref),d="function"==typeof n;return d||s.isPresent?(0,r.cloneElement)(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},72130:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(7896),i=n(2784),o=n(28316),a=n(99575);let s=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,i.forwardRef)((e,n)=>{let{asChild:o,...s}=e,l=o?a.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(l,(0,r.Z)({},s,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&(0,o.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return a}});var r=n(7896),i=n(2784),o=n(26215);let a=(0,i.forwardRef)((e,t)=>{let{children:n,...o}=e,a=i.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),n)});a.displayName="Slot";let s=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?n[r]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,o.F)(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});s.displayName="SlotClone";let l=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===l}},86029:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}},73597:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(2784),i=n(86029);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[o]=n,a=(0,r.useRef)(o),s=(0,i.W)(t);return(0,r.useEffect)(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,u=(0,i.W)(n),c=(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u]);return[l,c]}},64680:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(2784);let i=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},25447:function(e,t,n){"use strict";e.exports=n(44868)},99550:function(e,t,n){"use strict";e.exports=n(22360)},6901:function(e,t,n){"use strict";e.exports=n(78476)},8669:function(e,t,n){"use strict";e.exports=n(19455)},53609:function(e,t,n){"use strict";e.exports=n(96721)},81401:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.children,n=void 0===t?s.default:t,p=e.axisClassName,v=e.hideAxisLine,g=e.hideTicks,y=e.hideZero,x=void 0!==y&&y,b=e.left,w=e.numTicks,E=void 0===w?10:w,j=e.orientation,k=void 0===j?d.default.bottom:j,_=e.rangePadding,S=void 0===_?0:_,O=e.scale,C=e.tickFormat,M=e.tickLength,A=void 0===M?8:M,P=e.tickValues,T=e.top,N=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,h),R=null!=C?C:(0,u.default)(O),D=k===d.default.left,L=k===d.default.top,F=L||k===d.default.bottom,V=(0,l.default)(O),z=D||L?-1:1,I=O.range(),Z=(0,f.default)(S),B=(0,c.default)({x:Number(I[0])+.5-Z.start,y:0},F),H=(0,c.default)({x:Number(I[I.length-1])+.5+Z.end,y:0},F),U=(null!=P?P:(0,a.getTicks)(O,E)).filter(function(e){return!x||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),W=U.map(function(e){var t=e.value,n=e.index,r=(0,a.coerceNumber)(V(t));return{value:t,index:n,from:(0,c.default)({x:r,y:0},F),to:(0,c.default)({x:r,y:A*z},F),formattedValue:R(t,n,U)}});return r.default.createElement(o.Group,{className:(0,i.default)("visx-axis",p),top:void 0===T?0:T,left:void 0===b?0:b},n(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:x,horizontal:F,numTicks:E,orientation:k,rangePadding:S,scale:O,tickFormat:R,tickLength:A,tickPosition:V,tickSign:z,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),o=n(71602),a=n(63243),s=p(n(58052)),l=p(n(71387)),u=p(n(16882)),c=p(n(89591)),d=p(n(87209)),f=p(n(31863)),h=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:a.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:a.default.left,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:a.default.right,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:a.default.top,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=a()).done;){var s=r.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,r.default)(e.x,null!=(o=n.xMin)?o:-1/0,null!=(a=n.xMax)?a:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l:1/0)}};var r=o(n(30968)),i=o(n(98929));function o(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,r.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,n){if(void 0===n&&(n=1),!e)return[];for(var r=[],i=e.getTotalLength(),o=0;o<=i;o+=n){var a=e.getPointAtLength(o).matrixTransform(t);r.push(a)}return r}(e,t)},[null==e?void 0:e.getTotalLength()])};var r=n(2784)},37016:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,r.useState)(e),n=t[0],i=t[1],o=(0,r.useRef)(null),a=(0,r.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){o.current&&(o.current(n),o.current=null)},[n]),[n,a]};var r=n(2784)},65319:function(e,t,n){"use strict";n.r(t),n.d(t,{localPoint:function(){return r.Z},touchPoint:function(){return i.Z}});var r=n(91032),i=n(49833)},91032:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(49833),i=n(44321);function o(e,t){if((0,i.kK)(e)&&t)return(0,r.Z)(e,t);if((0,i.cO)(e)){var n=e.target;if(n)return(0,r.Z)(n,e)}return null}},49833:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(19067),i=n(44321);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:o({},a)}(t),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=n.x,u.y=n.y,u=u.matrixTransform(l.inverse()),new r.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new r.Z({x:n.x-c.left-e.clientLeft,y:n.y-c.top-e.clientTop})}},44321:function(e,t,n){"use strict";function r(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function o(e){return!!e&&"createSVGPoint"in e}function a(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}n.d(t,{DY:function(){return a},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return o},vZ:function(){return i},z6:function(){return s}})},21516:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),S=null!=j?j:(0,u.getTicks)(r,void 0===b?10:b),O=(null!=E?E:0)+(0,c.default)(r)/2,C=S.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+O;return{index:t,from:new l.Point({x:i,y:0}),to:new l.Point({x:i,y:f})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-columns",x),top:void 0===t?0:t,left:void 0===n?0:n},k?k({lines:C}):C.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:w},_))}))}p.propTypes={tickValues:r.default.array,height:r.default.number.isRequired}},34264:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),S=null!=k?k:(0,u.getTicks)(r,void 0===w?10:w),O=(null!=j?j:0)+(0,c.default)(r)/2,C=S.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+O;return{index:t,from:new l.Point({x:0,y:i}),to:new l.Point({x:f,y:i})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-rows",x),top:void 0===t?0:t,left:void 0===n?0:n},b?b({lines:C}):C.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:E},_))}))}p.propTypes={tickValues:r.default.array,width:r.default.number.isRequired}},12345:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return"bandwidth"in e?e.bandwidth():0}},59309:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(13980),i=n.n(r),o=n(2784),a=n(72779),s=n.n(a),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),a)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},71602:function(e,t,n){"use strict";n.r(t),n.d(t,{Group:function(){return r.Z}});var r=n(59309)},19067:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(){function e(e){var t=e.x,n=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===n?0:n}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},61305:function(e,t,n){"use strict";n.r(t),n.d(t,{Point:function(){return r.Z},subtractPoints:function(){return o},sumPoints:function(){return i}});var r=n(19067);function i(e,t){return new r.Z({x:e.x+t.x,y:e.y+t.y})}function o(e,t){return new r.Z({x:e.x-t.x,y:e.y-t.y})}},93125:function(e,t,n){"use strict";t.Z=function(e){var t=e.animationTrajectory,n=e.tickComponent,s=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),l=(0,r.useMemo)(function(){return function(e){return r.default.createElement(o.default,u({},e,{tickComponent:n,animationTrajectory:t}))}},[t,n]);return r.default.createElement(i.default,u({},s,{ticksComponent:l}))},l(n(13980));var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=l(n(81401)),o=l(n(65154)),a=["animationTrajectory","tickComponent"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,height:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"x",lineKey:function(e){var t,n;return"column-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.x)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(21516)),o=s(n(55727)),a=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),h=(0,o.useTransition)(n,u({},(0,a.default)({scale:t,animateXOrY:l,animationTrajectory:r}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,n){var r=e.fromX,a=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(o.animated.line,u({key:h,x1:r,x2:a,y1:s,y2:l,strokeOpacity:c,style:d},f))}))}c.propTypes={lineKey:r.default.func.isRequired}},93353:function(e,t,n){"use strict";t.Z=function(e){var t=e.scale,n=e.width,s=e.numTicks,u=e.tickValues,c=(e.offset,e.className),d=e.animationTrajectory,f=e.top,h=e.left,p=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,width:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"y",lineKey:function(e){var t,n;return"row-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.y)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(34264)),o=s(n(55727)),a=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,o.useRef)(null),y=(0,o.useRef)(0),x=(0,o.useState)({width:0,height:0,top:0,left:0}),b=x[0],w=x[1],E=(0,o.useMemo)(function(){var e=Array.isArray(f)?f:[f];return(0,i.default)(function(t){w(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},l,{leading:m})},[l,m,f]);return(0,o.useEffect)(function(){var e=new a.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,o=t.height;y.current=window.requestAnimationFrame(function(){E({width:i,height:o,top:r,left:n})})})});return g.current&&e.observe(g.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=E&&E.cancel&&E.cancel()}},[E]),o.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),n(c({},b,{ref:g.current,resize:E})))}f.propTypes={className:r.default.string,debounceTime:r.default.number,enableDebounceLeadingCall:r.default.bool,ignoreDimensions:r.default.oneOfType([r.default.any,r.default.arrayOf(r.default.any)]),children:r.default.func.isRequired}},2663:function(e,t,n){"use strict";var r=n(8597),i=n(12430),o=n(70590),a=n(50630),s=n(34278),l=n(64183),u=n(61662),c=n(43634),d=n(73335),f=n(54229),h=n(30558),p=n(71646),m=n(26587);t.Z=function(e){if(void 0!==e&&"type"in e)switch(e.type){case"linear":break;case"log":return(0,i.Z)(e);case"pow":return(0,o.Z)(e);case"sqrt":return(0,a.Z)(e);case"symlog":return(0,s.Z)(e);case"time":return(0,l.Z)(e);case"utc":return(0,u.Z)(e);case"quantile":return(0,c.Z)(e);case"quantize":return(0,d.Z)(e);case"threshold":return(0,f.Z)(e);case"ordinal":return(0,h.Z)(e);case"point":return(0,p.Z)(e);case"band":return(0,m.Z)(e)}return(0,r.Z)(e)}},63243:function(e,t,n){"use strict";n.r(t),n.d(t,{coerceNumber:function(){return _.Z},createScale:function(){return b.Z},getTicks:function(){return S.Z},inferScaleType:function(){return k},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return C.Z},scaleLinear:function(){return o.Z},scaleLog:function(){return f.Z},scaleOrdinal:function(){return p.Z},scalePoint:function(){return i.Z},scalePower:function(){return h.Z},scaleQuantile:function(){return v.Z},scaleQuantize:function(){return m.Z},scaleRadial:function(){return u},scaleSqrt:function(){return x.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return O.Z},updateScale:function(){return E}});var r=n(26587),i=n(71646),o=n(8597),a=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,a.Z)(),e)}var c=n(64183),d=n(61662),f=n(12430),h=n(70590),p=n(30558),m=n(73335),v=n(43634),g=n(34278),y=n(54229),x=n(50630),b=n(2663),w=s.Z.apply(void 0,s.a),E=function(e,t){return w(e.copy(),t)},j=n(40668);function k(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?.5===e.exponent()?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?(0,j.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var _=n(28142),S=n(71220),O=n(51519),C=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return S},Z:function(){return C}});var r=n(88751),i=n(87286),o=n(43780),a=n(77636),s=n(78978),l={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:o.Z,"hsl-long":o.q,cubehelix:a.Z,"cubehelix-long":a.B,rgb:s.ZP},u=n(68603),c=n(54076),d=n(18450),f=n(50690),h=n(52546),p=n(76231),m=n(97344),v=n(12370),g=n(28239),y=n(52004),x=n(94758),b=n(97631),w=n(2908),E=n(40668),j={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},k={day:v.Z,hour:g.Z,minute:y.Z,month:x.Z,second:h.Z,week:b.Ox,year:w.Z},_=n(74672),S=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],O={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var n=t.nice;if("boolean"==typeof n)n&&e.nice();else if("number"==typeof n)e.nice(n);else{var r=(0,E.Z)(e);if("string"==typeof n)e.nice(r?k[n]:j[n]);else{var i=n.interval,o=n.step,a=(r?k[i]:j[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],o=i=0||(i[n]=e[n]);return i}(e,s),y=(0,a.Nb)({innerRadius:i,outerRadius:u,cornerRadius:c,startAngle:d,endAngle:f,padAngle:h,padRadius:p});return m?r.createElement(r.Fragment,null,m({path:y})):n||null!=d&&null!=f&&null!=i&&null!=u?r.createElement("path",l({ref:v,className:o()("visx-arc",t),d:y(n)||""},g)):(console.warn("[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing."),null)}var c=n(59309),d=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),S=(0,a.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),O=(0,a.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:x,sortValues:b}),C=O(void 0===s?[]:s);return E?r.createElement(r.Fragment,null,E({arcs:C,path:S,pie:O})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},C.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:o()("visx-pie-arc",t),d:S(e)||"",fill:null==k||"string"==typeof k?k:k(e)},_)),null==l?void 0:l(S.centroid(e),e))}))}var p=n(63739),m=n(27079),v=["className","angle","radius","defined","curve","data","innerRef","children","fill"];function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v),m=(0,a.aJ)({angle:n,radius:i,defined:s,curve:l});return f?r.createElement(r.Fragment,null,f({path:m})):r.createElement("path",g({ref:d,className:o()("visx-line-radial",t),d:m(c)||"",fill:void 0===h?"transparent":h},p))}var x=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,x),y=(0,a.SO)({x:n,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===h?function(){return!0}:h,curve:m});return t?r.createElement(r.Fragment,null,t({path:y})):r.createElement("path",b({ref:v,className:o()("visx-area",p),d:y(f)||""},g))}var E=n(55746),j=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,j),_=(0,a.kn)({keys:s,value:g,order:y,offset:x}),S=(0,a.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),O=_(l);return w?r.createElement(r.Fragment,null,w({stacks:O,path:S,stack:_})):r.createElement(c.Z,{top:n,left:i},O.map(function(e,n){return r.createElement("path",k({className:o()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:S(e)||"",fill:null==b?void 0:b(e.key,n)},E))}))}var S=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,S);return r.createElement(_,O({className:t,top:n,left:i,keys:a,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},b),x||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",O({className:o()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},b))})})}var M=n(14582),A=n(10897);function P(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}var T=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,T),g=P(u),y=t.map(function(e,t){return{index:t,x0:l(s(e)),bars:h.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,width:g,x:u(t)||0,y:d(r)||0,color:f(t,n),height:p-(d(r)||0)}})}});return m?r.createElement(r.Fragment,null,m(y)):r.createElement(c.Z,{className:o()("visx-bar-group",n),top:i,left:a},y.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map(function(t){return r.createElement(M.Z,N({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},v))}))}))}var D=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,D),y=P(f),x=t.map(function(e,t){return{index:t,y0:d(u(e))||0,bars:m.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,height:y,x:l(r)||0,y:f(t)||0,color:p(t,n),width:h(r)||0}})}});return v?r.createElement(r.Fragment,null,v(x)):r.createElement(c.Z,{className:o()("visx-bar-group-horizontal",n),top:i,left:a},x.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map(function(t){return r.createElement(M.Z,L({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},g))}))}))}var V=n(98926);function z(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function I(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function Z(e){return null==e?void 0:e.source}function B(e){return null==e?void 0:e.target}function H(e){return null==e?void 0:e[0]}function U(e){return null==e?void 0:e[1]}var W=n(26078),q=n(44081),$=n(30382),Y=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function G(){return(G=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Y),E=(0,V.Z)();v&&E.keys(v),g&&(0,W.Z)(E.value,g),y&&E.order((0,q.ZP)(y)),x&&E.offset((0,$.ZP)(x));var j=E(t),k=P(h),_=j.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(p(u(t))||0)-(p(f(t))||0),o=p(f(t)),a="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-k/2);return{bar:t,key:n,index:r,height:i,width:k,x:a||0,y:o||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(_)):r.createElement(c.Z,{className:o()("visx-bar-stack",n),top:i,left:a},_.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,G({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var X=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function Q(){return(Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,X),E=(0,V.Z)();v&&E.keys(v),g&&(0,W.Z)(E.value,g),y&&E.order((0,q.ZP)(y)),x&&E.offset((0,$.ZP)(x));var j=E(t),k=P(p),_=j.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(h(f(t))||0)-(h(u(t))||0),o=h(u(t)),a="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:k,width:i,x:o||0,y:a||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(_)):r.createElement(c.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:a},_.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,Q({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var ee=function(e){return Math.PI/180*e},et=n(72215),en=["className","children","data","innerRef","path","x","y","source","target"];function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,en),h=s||ei({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:a,className:o()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var ea=["className","children","data","innerRef","path","x","y","source","target"];function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ea),h=s||el({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",es({ref:a,className:o()("visx-link visx-link-vertical-diagonal",t),d:h(i)||""},f))}var ec=["className","children","data","innerRef","path","angle","radius","source","target"];function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ec),h=s||ef({source:void 0===c?Z:c,target:void 0===d?B:d,angle:void 0===l?z:l,radius:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:a,className:o()("visx-link visx-link-radial-diagonal",t),d:h(i)||""},f))}var ep=n(91672),em=["className","children","data","innerRef","path","percent","x","y","source","target"];function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,em),p=s||eg({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?I:u,y:void 0===c?z:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ev({ref:a,className:o()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var ex=["className","children","data","innerRef","path","percent","x","y","source","target"];function eb(){return(eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ex),p=s||ew({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eb({ref:a,className:o()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var ej=["className","children","data","innerRef","path","percent","x","y","source","target"];function ek(){return(ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ej),p=s||e_({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?z:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ek({ref:a,className:o()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eO=["className","children","innerRef","data","path","x","y","source","target"];function eC(){return(eC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eO),h=s||eM({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?z:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eC({ref:i,className:o()("visx-link visx-link-horizontal-line",t),d:h(a)||""},f))}var eP=["className","innerRef","data","path","x","y","source","target","children"];function eT(){return(eT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eP),h=a||eN({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eT({ref:n,className:o()("visx-link visx-link-vertical-line",t),d:h(i)||""},f))}var eD=["className","innerRef","data","path","x","y","source","target","children"];function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eD),h=a||eF({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className:o()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var ez=["className","innerRef","data","path","percent","x","y","source","target","children"];function eI(){return(eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ez),p=a||eZ({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?z:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eI({ref:n,className:o()("visx-link visx-link-horizontal-step",t),d:p(i)||""},h))}var eH=["className","innerRef","data","path","percent","x","y","source","target","children"];function eU(){return(eU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eH),p=a||eW({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?z:l,y:void 0===u?I:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eU({ref:n,className:o()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var e$=["className","innerRef","data","path","x","y","source","target","children"];function eY(){return(eY=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.PI?f<=d:f>d)?1:0)+","+l*h+","+l*p+"\n L"+c*h+","+c*p+"\n "}}function eK(e){var t=e.className,n=e.innerRef,i=e.data,a=e.path,s=e.x,l=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=a||eG({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?z:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eY({ref:n,className:o()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eX=["sides","size","center","rotate","className","children","innerRef","points"];function eQ(){return(eQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eX),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eJ:i,rotate:void 0===a?0:a}).map(function(e){return[e.x,e.y]});return l?r.createElement(r.Fragment,null,l({points:f})):r.createElement("polygon",eQ({ref:u,className:o()("visx-polygon",s),points:f.join(" ")},d))}var e4=["className","innerRef"];function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,e4);return r.createElement("circle",e3({ref:n,className:o()("visx-circle",t)},i))}var e6=n(13980),e8=n.n(e6),e7="http://www.w3.org/2000/svg",e9=function(){return!0};function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;tf[i]?d.map(function(e){return void 0===e?e9:function(t){return t>=e}}):d.map(function(e){return void 0===e?e9:function(t){return t<=e}}),p=0,m=0;m<=l;m+=a){for(var v=s.getPointAtLength(m),g=v[i];p=w[k+1];)k+=1;c[k].push(S)}}return c}catch(e){return[]}}({path:p,segmentation:s,pointsInSegments:h,sampleRate:l})},[p,s,h,l]);return r.createElement("g",null,v.map(function(e,i){return t?r.createElement(r.Fragment,{key:i},t({index:i,segment:e,styles:f[i]||f[i%f.length]})):r.createElement(m.Z,te({key:i,className:n,data:e,x:tt,y:tn},f[i]||f[i%f.length]))}))}tr.propTypes={segments:e8().arrayOf(e8().array).isRequired,styles:e8().array.isRequired,children:e8().func,className:e8().string}},55746:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(72779),o=n.n(i),a=n(26078),s=n(52511),l=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),E=(0,s.SO)({x:t,x0:n,x1:i,defined:void 0===v?function(){return!0}:v,curve:y});return(null==f?E.y0(h.range()[0]):(0,a.Z)(E.y0,f),c&&!d&&(0,a.Z)(E.y1,c),d&&!c&&(0,a.Z)(E.y1,d),b)?r.createElement(r.Fragment,null,b({path:E})):r.createElement("path",u({ref:x,className:o()("visx-area-closed",g),d:E(m)||""},w))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.createElement("rect",s({ref:n,className:o()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),z=(n=(t={x:k,y:_,width:S,height:O,radius:C,all:void 0!==M&&M,top:void 0!==A&&A,bottom:void 0!==P&&P,left:void 0!==T&&T,right:void 0!==N&&N,topLeft:void 0!==R&&R,topRight:void 0!==D&&D,bottomLeft:void 0!==L&&L,bottomRight:void 0!==F&&F}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,v=t.topRight,g=t.width,y=t.x,x=t.y,v=n||p||h||v,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,b=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+x+" h"+(g-b)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-b)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(b-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(b-c)+"\n "+(m?"a"+f+","+f+" 0 0 1 "+f+","+-f:"v"+-f+"h"+f)+"\nz").split("\n").join(""));return w?r.createElement(r.Fragment,null,w({path:z})):r.createElement("path",s({ref:j,className:o()("visx-bar-rounded",E),d:z},V))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:o()("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))}},27079:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),o=n.n(i),a=n(52511),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,a.jv)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",l({ref:p,className:o()("visx-linepath",f),d:g(i)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))}},52511:function(e,t,n){"use strict";n.d(t,{Nb:function(){return f},SO:function(){return h},aJ:function(){return v},jv:function(){return p},kn:function(){return g},ve:function(){return m}});var r=n(38764),i=n(12235),o=n(79767),a=n(69619),s=n(8329),l=n(98926),u=n(26078),c=n(44081),d=n(30382);function f(e){var t=void 0===e?{}:e,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.startAngle,s=t.endAngle,l=t.padAngle,c=t.padRadius,d=(0,r.Z)();return null!=n&&(0,u.Z)(d.innerRadius,n),null!=i&&(0,u.Z)(d.outerRadius,i),null!=o&&(0,u.Z)(d.cornerRadius,o),null!=a&&(0,u.Z)(d.startAngle,a),null!=s&&(0,u.Z)(d.endAngle,s),null!=l&&(0,u.Z)(d.padAngle,l),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,o=t.x1,a=t.y,s=t.y0,l=t.y1,c=t.defined,d=t.curve,f=(0,i.Z)();return n&&(0,u.Z)(f.x,n),r&&(0,u.Z)(f.x0,r),o&&(0,u.Z)(f.x1,o),a&&(0,u.Z)(f.y,a),s&&(0,u.Z)(f.y0,s),l&&(0,u.Z)(f.y1,l),c&&f.defined(c),d&&f.curve(d),f}function p(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,a=t.curve,s=(0,o.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),a&&s.curve(a),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,s=t.sort,l=t.sortValues,c=(0,a.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=o&&c.value(o),null!=i&&(0,u.Z)(c.padAngle,i),null!=n&&(0,u.Z)(c.startAngle,n),null!=r&&(0,u.Z)(c.endAngle,r),c}function v(e){var t=void 0===e?{}:e,n=t.angle,r=t.radius,i=t.defined,o=t.curve,a=(0,s.Z)();return n&&(0,u.Z)(a.angle,n),r&&(0,u.Z)(a.radius,r),i&&a.defined(i),o&&a.curve(o),a}function g(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,o=(0,l.Z)();return t&&o.keys(t),n&&(0,u.Z)(o.value,n),r&&o.order((0,c.ZP)(r)),i&&o.offset((0,d.ZP)(i)),o}},26078:function(e,t,n){"use strict";function r(e,t){e(t)}n.d(t,{Z:function(){return r}})},30382:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},ed:function(){return u},nW:function(){return l}});var r=n(22254),i=n(76751),o=n(90541),a=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:a.Z,wiggle:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},44081:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return l}});var r=n(19721),i=n(82564),o=n(12197),a=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:o.Z,none:a.Z,reverse:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},12935:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.x,s=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=void 0===h?[]:h,m=e.defined,v=e.className,g=e.curve,y=e.innerRef,x=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),b=(0,o.area)({x:n,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===m?function(){return!0}:m,curve:g});return t?r.default.createElement(r.default.Fragment,null,t({path:b})):r.default.createElement("path",l({ref:y,className:(0,i.default)("visx-area",v),d:b(p)||""},x))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),h=n.x===l.x||n.y===l.y;return r.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var r=a(n(2784)),i=a(n(72779)),o=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),g=(0,o.line)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.default.createElement(r.default.Fragment,null,t({path:g})):r.default.createElement("path",l({ref:p,className:(0,i.default)("visx-linepath",f),d:g(s)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,x=g.startDy,b=g.transform;return r.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===n?0:n,fontSize:v,style:s},y.length>0?r.createElement("text",a({ref:c,transform:b},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?x:f},e.words.join(" "))})):null)}},89907:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(32718),o=n.n(i),a=n(75715),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function l(e){return"number"==typeof e}function u(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function c(e){var t=e.verticalAnchor,n=void 0===t?"end":t,i=e.scaleToFit,c=void 0!==i&&i,d=e.angle,f=e.width,h=e.lineHeight,p=void 0===h?"1em":h,m=e.capHeight,v=void 0===m?"0.71em":m,g=e.children,y=e.style,x=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,s),b=x.x,w=void 0===b?0:b,E=x.y,j=void 0===E?0:E,k=!u(w)||!u(j),_=(0,r.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.Z)(e,y)||0}}),spaceWidth:(0,a.Z)("\xa0",y)||0}},[g,y]),S=_.wordsWithWidth,O=_.spaceWidth,C=(0,r.useMemo)(function(){return k?[]:f||c?S.reduce(function(e,t){var n=t.word,r=t.wordWidth,i=e[e.length-1];return i&&(null==f||c||(i.width||0)+r+O0){var t=C[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=j-n*j;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+j+")"),e.length>0?e.join(" "):""},[k,w,j,f,c,C,d]);return{wordsByLines:C,startDy:M,transform:A}}},44425:function(e,t,n){"use strict";n.r(t),n.d(t,{Text:function(){return r.Z},getStringWidth:function(){return i.Z},useText:function(){return o.Z}});var r=n(64170),i=n(75715),o=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),o="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(o);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",o),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)})},49732:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=new WeakMap,i=new WeakMap,o={},a=0,s=function(e,t,n){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===n&&(n="data-aria-hidden");var s=Array.isArray(e)?e:[e];o[n]||(o[n]=new WeakMap);var l=o[n],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};s.forEach(d);var f=function(e){!e||s.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,a),l.set(e,s),u.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),a++,function(){u.forEach(function(e){var t=r.get(e)-1,o=l.get(e)-1;r.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}}},89644:function(e,t,n){e.exports=n(25644)},70353:function(e,t,n){"use strict";var r=n(93044),i=n(86955),o=n(92233),a=n(68030),s=n(97948),l=n(51875),u=n(60842),c=n(98560),d=n(21218),f=n(68047),h=n(10738);e.exports=function(e){return new Promise(function(t,n){var p,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete v["Content-Type"];var x=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var E=s(e.baseURL,e.url);function j(){if(x){var r="getAllResponseHeaders"in x?l(x.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:g&&"text"!==g&&"json"!==g?x.response:x.responseText,status:x.status,statusText:x.statusText,headers:r,config:e,request:x}),x=null}}if(x.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,"onloadend"in x?x.onloadend=j:x.onreadystatechange=function(){x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))&&setTimeout(j)},x.onabort=function(){x&&(n(new d("Request aborted",d.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,x,x)),x=null},x.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,x)),x=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(E))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(v[e.xsrfHeaderName]=k)}"setRequestHeader"in x&&r.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:x.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),g&&"json"!==g&&(x.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){x&&(n(!e||e&&e.type?new f:e),x.abort(),x=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var _=h(E);if(_&&-1===["http","https","file"].indexOf(_)){n(new d("Unsupported protocol "+_+":",d.ERR_BAD_REQUEST,e));return}x.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),o=n(62215),a=n(92937),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(10663));s.Axios=o,s.CanceledError=n(68047),s.CancelToken=n(34089),s.isCancel=n(98041),s.VERSION=n(29241).version,s.toFormData=n(49027),s.AxiosError=n(21218),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(70783),s.isAxiosError=n(65587),e.exports=s,e.exports.default=s},34089:function(e,t,n){"use strict";var r=n(68047);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.merge(c)}),e.exports=f},98560:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(e){e.exports={version:"0.27.2"}},73644:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([n]):a[t]=a[t]?a[t]+", "+n:n)}),a}},10738:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},70783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},49027:function(e,t,n){"use strict";var r=n(48834).lW,i=n(93044);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return!function e(r,a){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var s,l=a?a+"."+r:r;if(n&&!a&&"object"==typeof n){if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(s=i.toArray(n))){s.forEach(function(e){i.isUndefined(e)||t.append(l,o(e))});return}}e(n,l)}}),n.pop()}else t.append(a,o(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,n){"use strict";var r,i,o=n(73644),a=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=a.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),v=l("Blob"),g=l("FileList");function y(e){return"[object Function]"===a.call(e)}var x=l("URLSearchParams");function b(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return -1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},6391:function(e,t,n){var r;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,n,r=1,i=e.length,o=e[0]+"";ru^n?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function m(e,t,n,r){if(en||e!==l(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else tP?h.c=h.e=null:e.e=10;s/=10,o++);o>P?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return j(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&F)return B(h=new V(e),S+h.e+1,O);if(f=String(e),u="number"==typeof e){if(0*e!=0)return j(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,V.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=L.slice(0,t),o=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return j(h,String(e),u,t)}u=!1,(o=(f=E(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=f.length}for(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&V.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>P)h.c=h.e=null;else if(o=M)?g(l,a):y(l,a,"0");else if(o=(e=B(new V(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=o||o<=C)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function I(e,t){for(var n,r=1,i=new V(e[0]);r=10;i/=10,r++);return(n=r+14*n-1)>P?e.c=e.e=null:n=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(r=r||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(o>0?a>0?c/d[i-a]:0:p[f-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),r)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>P?e.c=e.e=null:e.e=M?g(t,n):y(t,n,"0"),e.s<0?"-"+t:t)}return V.clone=e,V.ROUND_UP=0,V.ROUND_DOWN=1,V.ROUND_CEIL=2,V.ROUND_FLOOR=3,V.ROUND_HALF_UP=4,V.ROUND_HALF_DOWN=5,V.ROUND_HALF_EVEN=6,V.ROUND_HALF_CEIL=7,V.ROUND_HALF_FLOOR=8,V.EUCLID=9,V.config=V.set=function(e){var t,n;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(n=e[t],0,1e9,t),S=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),O=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),C=n[0],M=n[1]):(m(n,-1e9,1e9,t),C=-(M=n<0?-n:n))),e.hasOwnProperty(t="RANGE")){if((n=e[t])&&n.pop)m(n[0],-1e9,-1,t),m(n[1],1,1e9,t),A=n[0],P=n[1];else if(m(n,-1e9,1e9,t),n)A=-(P=n<0?-n:n);else throw Error(u+t+" cannot be zero: "+n)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(n=e[t])===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))T=n;else throw T=!n,Error(u+"crypto unavailable")}else T=n}else throw Error(u+t+" not true or false: "+n)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(n=e[t],0,9,t),N=n),e.hasOwnProperty(t="POW_PRECISION")&&(m(n=e[t],0,1e9,t),R=n),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(n=e[t]))D=n;else throw Error(u+t+" not an object: "+n)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);F="0123456789"==n.slice(0,10),L=n}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:S,ROUNDING_MODE:O,EXPONENTIAL_AT:[C,M],RANGE:[A,P],CRYPTO:T,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},V.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!V.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t=1e14||n!==l(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},V.maximum=V.max=function(){return I(arguments,k.lt)},V.minimum=V.min=function(){return I(arguments,k.gt)},V.random=(n=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,i,o,a,c=0,f=[],h=new V(_);if(null==e?e=S:m(e,0,1e9),o=s(e/14),T){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw T=!1,Error(u+"crypto unavailable")}if(!T)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),V.sum=function(){for(var e=1,t=arguments,n=new V(t[0]);en-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(n,r,i,o,a){var s,l,u,c,d,f,p,m,v=n.indexOf("."),g=S,x=O;for(v>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new V(r)).pow(n.length-v),R=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(n,r,i,a?(s=L,e):(s=e,L))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(v<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=w(f,m,g,x,i)).c,d=f.r,u=f.e),v=p[l=u+g+1],c=i/2,d=d||l<0||null!=p[l+1],d=x<4?(null!=v||d)&&(0==x||x==(f.s<0?3:2)):v>c||v==c&&(4==x||d||6==x&&1&p[l-1]||x==(f.s<0?8:7)),l<1||!p[0])n=d?y(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(v=0,n="";v<=c;n+=s.charAt(p[v++]));n=y(n,u,s.charAt(0))}return n}}(),w=function(){function e(e,t,n){var r,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*a,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(r,i,o,a,s){var u,c,d,h,p,m,v,g,y,x,b,w,E,j,k,_,S,O=r.s==i.s?1:-1,C=r.c,M=i.c;if(!C||!C[0]||!M||!M[0])return new V(r.s&&i.s&&(C?!M||C[0]!=M[0]:M)?C&&0==C[0]||!M?0*O:O/0:NaN);for(y=(g=new V(O)).c=[],O=o+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),O=O/14|0),d=0;M[d]==(C[d]||0);d++);if(M[d]>(C[d]||0)&&c--,O<0)y.push(1),h=!0;else{for(j=C.length,_=M.length,d=0,O+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),C=e(C,p,s),_=M.length,j=C.length),E=_,b=(x=C.slice(0,_)).length;b<_;x[b++]=0);S=[0].concat(S=M.slice()),k=M[0],M[1]>=s/2&&k++;do{if(p=0,(u=t(M,x,_,b))<0){if(w=x[0],_!=b&&(w=w*s+(x[1]||0)),(p=l(w/k))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,b=x.length;1==t(m,x,v,b);)p--,n(m,_t(M,x,_,b);)p++,n(x,_=10;O/=10,d++);B(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,b=/^\s*\+(?=[\w.])|^\s+|\s+$/g,j=function(e,t,n,a){var s,l=n?t:t.replace(b,"");if(x.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!n&&(l=l.replace(r,function(e,t,n){return s="x"==(n=n.toLowerCase())?16:"b"==n?2:8,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new V(l,s);if(V.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},k.absoluteValue=k.abs=function(){var e=new V(this);return e.s<0&&(e.s=1),e},k.comparedTo=function(e,t){return p(this,new V(e,t))},k.decimalPlaces=k.dp=function(e,t){var n,r,i;if(null!=e)return m(e,0,1e9),null==t?t=O:m(t,0,8),B(new V(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((i=n.length-1)-f(this.e/14))*14,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},k.dividedBy=k.div=function(e,t){return w(this,new V(e,t),S,O)},k.dividedToIntegerBy=k.idiv=function(e,t){return w(this,new V(e,t),0,1)},k.exponentiatedBy=k.pow=function(e,t){var n,r,i,o,a,c,d,f,h,p=this;if((e=new V(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new V(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new V(Math.pow(+H(p),c?2-v(e):+H(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new V(NaN);(r=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new V(d?1/o:o);R&&(o=s(R/14+2))}for(c?(n=new V(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new V(_);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):r&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(B(e=e.times(n),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?h:(d&&(h=_.div(h)),t?h.mod(t):o?B(h,R,O,a):h)},k.integerValue=function(e){var t=new V(this);return null==e?e=O:m(e,0,8),B(t,t.e+1,e)},k.isEqualTo=k.eq=function(e,t){return 0===p(this,new V(e,t))},k.isFinite=function(){return!!this.c},k.isGreaterThan=k.gt=function(e,t){return p(this,new V(e,t))>0},k.isGreaterThanOrEqualTo=k.gte=function(e,t){return 1===(t=p(this,new V(e,t)))||0===t},k.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},k.isLessThan=k.lt=function(e,t){return 0>p(this,new V(e,t))},k.isLessThanOrEqualTo=k.lte=function(e,t){return -1===(t=p(this,new V(e,t)))||0===t},k.isNaN=function(){return!this.s},k.isNegative=function(){return this.s<0},k.isPositive=function(){return this.s>0},k.isZero=function(){return!!this.c&&0==this.c[0]},k.minus=function(e,t){var n,r,i,o,a=this.s;if(t=(e=new V(e,t)).s,!a||!t)return new V(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new V(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new V(u[0]?this:3==O?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>a;){if(u[--r]=0;){for(n=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[o]+n)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=n}return n?++r:m.splice(0,1),Z(e,m,r)},k.negated=function(){var e=new V(this);return e.s=-e.s||null,e},k.plus=function(e,t){var n,r=this.s;if(t=(e=new V(e,t)).s,!r||!t)return new V(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new V(r/0);if(!a[0]||!s[0])return s[0]?e:new V(a[0]?this:0*r)}if(i=f(i),o=f(o),a=a.slice(),r=i-o){for(r>0?(o=i,n=s):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for((r=a.length)-(t=s.length)<0&&(n=s,s=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+s[t]+r)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return r&&(a=[r].concat(a),++o),Z(e,a,o)},k.precision=k.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=O:m(t,0,8),B(new V(this),e,t);if(!(n=this.c))return null;if(r=14*(i=n.length-1)+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},k.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},k.squareRoot=k.sqrt=function(){var e,t,n,r,i,o=this.c,a=this.s,s=this.e,l=S+4,u=new V("0.5");if(1!==a||!o||!o[0])return new V(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,n=new V(t)):n=new V(a+""),n.c[0]){for((a=(s=n.e)+l)<3&&(a=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(n.c)).slice(0,a)){if(n.e0&&p>0){for(i=p%a||a,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((s=+n.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},k.toFraction=function(e){var t,n,r,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new V(e)).isInteger()&&(s.c||1!==s.s)||s.lt(_)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new V(this);for(t=new V(_),c=n=new V(_),r=l=new V(_),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=P,P=1/0,s=new V(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(n),r,0,1),l=l.plus(i.times(c)),n=n.plus(i.times(r)),l.s=c.s=this.s,o*=2,p=1>w(c,r,o,O).minus(this).abs().comparedTo(w(l,n,o,O).minus(this).abs())?[c,r]:[l,n],P=a,p},k.toNumber=function(){return+H(this)},k.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),z(this,e,t,2)},k.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=C||i>=M?g(h(n.c),i):y(h(n.c),i,"0"):10===e&&F?t=y(h((n=B(new V(n),S+i+1,O)).c),n.e,"0"):(m(e,2,L.length,"Base"),t=E(y(h(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},k.valueOf=k.toJSON=function(){return H(this)},k._isBigNumber=!0,null!=t&&V.set(t),V}()).default=o.BigNumber=o,void 0!==(r=(function(){return o}).call(t,n,t,e))&&(e.exports=r)}(0)},70651:function(e,t,n){let r=n(7967);function i(e,t,n){let r=e[t]+e[n],i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function o(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let o=e[t+1]+r;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(c,e,l,u);let p=c[r]^c[e],m=c[r+1]^c[e+1];c[r]=m,c[r+1]=p,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),o(c,e,f,h),p=c[r]^c[e],m=c[r+1]^c[e+1],c[r]=p>>>16^m<<16,c[r+1]=m>>>16^p<<16,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=m>>>31^p<<1,c[t+1]=p>>>31^m<<1}let l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let n=0;for(n=0;n<16;n++)c[n]=e.h[n],c[n+16]=l[n];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),n=0;n<32;n++)d[n]=a(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,u[16*n+0],u[16*n+1]),s(2,10,18,26,u[16*n+2],u[16*n+3]),s(4,12,20,28,u[16*n+4],u[16*n+5]),s(6,14,22,30,u[16*n+6],u[16*n+7]),s(0,10,20,30,u[16*n+8],u[16*n+9]),s(2,12,22,24,u[16*n+10],u[16*n+11]),s(4,14,16,26,u[16*n+12],u[16*n+13]),s(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^c[n]^c[n+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,n,r){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&16!==n.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(r&&16!==r.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,n&&h.set(n,32),r&&h.set(r,48);for(let e=0;e<16;e++)i.h[e]=l[e]^a(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let n=0;n>2]>>8*(3&n);return t}function g(e,t,n,i,o){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),o&&(o=r.normalizeInput(o));let a=p(n,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,n,i,o){let a=g(e,t,n,i,o);return r.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,a){l[e]=l[e]+l[t]+i,l[r]=o(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],12),l[e]=l[e]+l[t]+a,l[r]=o(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],7)}function o(e,t){return e>>>t^e<<32-t}let a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let n=0;for(n=0;n<8;n++)l[n]=e.h[n],l[n+8]=a[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++){var r,o;u[n]=(r=e.b)[o=4*n]^r[o+1]<<8^r[o+2]<<16^r[o+3]<<24}for(n=0;n<10;n++)i(0,4,8,12,u[s[16*n+0]],u[s[16*n+1]]),i(1,5,9,13,u[s[16*n+2]],u[s[16*n+3]]),i(2,6,10,14,u[s[16*n+4]],u[s[16*n+5]]),i(3,7,11,15,u[s[16*n+6]],u[s[16*n+7]]),i(0,5,10,15,u[s[16*n+8]],u[s[16*n+9]]),i(1,6,11,12,u[s[16*n+10]],u[s[16*n+11]]),i(2,7,8,13,u[s[16*n+12]],u[s[16*n+13]]),i(3,4,9,14,u[s[16*n+14]],u[s[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=l[n]^l[n+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let n=t?t.length:0;if(t&&!(n>0&&n<=32))throw Error("Incorrect key length, should be in [1, 32]");let r={h:new Uint32Array(a),b:new Uint8Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(f(r,t),r.c=64),r}function f(e,t){for(let n=0;n>2]>>8*(3&n)&255;return t}function p(e,t,n){n=n||32,e=r.normalizeInput(e);let i=d(n,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,n){let i=p(e,t,n);return r.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,n){let r=n(70651),i=n(39962);e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},7967:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e){let n=new TextEncoder;t=n.encode(e)}else throw Error("Input must be an string, Buffer or Uint8Array");return t},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,n,r){let i="\n"+e+" = ";for(let o=0;o * @license MIT - */var r=n(95766),i=n(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|h(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=a(t),r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return S(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return O(e).length;default:if(i)return r?-1:S(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function k(e,t,n,r,o){return t=+t,n>>>=0,o||E(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,o){return t=+t,n>>>=0,o||E(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);ir.length?s.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else if(s.isBuffer(o))o.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var h=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function O(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function C(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},72779:function(e,t){var n;/*! + */var r=n(95766),i=n(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|h(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=a(t),r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return S(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return O(e).length;default:if(i)return r?-1:S(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function j(e,t,n,r,o){return t=+t,n>>>=0,o||E(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function k(e,t,n,r,o){return t=+t,n>>>=0,o||E(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);ir.length?s.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else if(s.isBuffer(o))o.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var h=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function O(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function C(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},72779:function(e,t){var n;/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t=0;)(u=e(r,i,o,a,h+1,l+1))>p&&(h===s?u*=1:t.test(r.charAt(h-1))?(u*=.9,(d=r.slice(s,h-1).match(n))&&s>0&&(u*=Math.pow(.999,d.length))):(t.test(r.slice(s,h-1))?u*=0:u*=.3,s>0&&(u*=Math.pow(.999,h-s))),r.charAt(h)!==i.charAt(l)&&(u*=.9999)),u<.1&&o.charAt(h-1)===a.charAt(l+1)&&o.charAt(h-1)!==a.charAt(l)&&.1*(c=e(r,i,o,a,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=o.indexOf(f,h+1);return p}(e,r,e.toLowerCase(),r.toLowerCase(),0,0)}},68847:function(e,t,n){"use strict";n.d(t,{B8:function(){return j},Il:function(){return i},J5:function(){return a},SU:function(){return k},Ss:function(){return _},Ym:function(){return P},ZP:function(){return x},xV:function(){return o}});var r=n(40948);function i(){}var o=.7,a=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),m=RegExp("^hsl\\("+[l,u,u]+"\\)$"),v=RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),g={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};function y(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function x(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new _(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?E(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?E(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new _(t[1],t[2],t[3],1):(t=f.exec(e))?new _(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?E(t[1],t[2],t[3],t[4]):(t=p.exec(e))?E(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new _(NaN,NaN,NaN,0):null}function w(e){return new _(e>>16&255,e>>8&255,255&e,1)}function E(e,t,n,r){return r<=0&&(e=t=n=NaN),new _(e,t,n,r)}function k(e){return(e instanceof i||(e=x(e)),e)?(e=e.rgb(),new _(e.r,e.g,e.b,e.opacity)):new _}function j(e,t,n,r){return 1==arguments.length?k(e):new _(e,t,n,null==r?1:r)}function _(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function S(){return"#"+C(this.r)+C(this.g)+C(this.b)}function O(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function C(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new T(e,t,n,r)}function A(e){if(e instanceof T)return new T(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=x(e)),!e)return new T;if(e instanceof T)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-o,u=(a+o)/2;return l?(s=t===a?(n-r)/l+(n0&&u<1?0:s,new T(s,l,u,e.opacity)}function P(e,t,n,r){return 1==arguments.length?A(e):new T(e,t,n,null==r?1:r)}function T(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function N(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}(0,r.Z)(i,x,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return A(this).formatHsl()},formatRgb:b,toString:b}),(0,r.Z)(_,j,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new _(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new _(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:S,formatHex:S,formatRgb:O,toString:O})),(0,r.Z)(T,P,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new T(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new T(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new _(N(e>=240?e-240:e+120,i,r),N(e,i,r),N(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},40948:function(e,t,n){"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,{Z:function(){return r},l:function(){return i}})},20966:function(e,t,n){"use strict";n.d(t,{Uc:function(){return g},ZP:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=4/29,s=6/29,l=3*(6/29)*(6/29),u=6/29*(6/29)*(6/29);function c(e){if(e instanceof f)return new f(e.l,e.a,e.b,e.opacity);if(e instanceof y)return b(e);e instanceof i.Ss||(e=(0,i.SU)(e));var t,n,r=v(e.r),o=v(e.g),a=v(e.b),s=h((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=s:(t=h((.4360747*r+.3850649*o+.1430804*a)/.96422),n=h((.0139322*r+.0971045*o+.7141733*a)/.82521)),new f(116*s-16,500*(t-s),200*(s-n),e.opacity)}function d(e,t,n,r){return 1==arguments.length?c(e):new f(e,t,n,null==r?1:r)}function f(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function h(e){return e>u?Math.pow(e,1/3):e/l+a}function p(e){return e>s?e*e*e:l*(e-a)}function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function v(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function g(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof y)return new y(e.h,e.c,e.l,e.opacity);if(e instanceof f||(e=c(e)),0===e.a&&0===e.b)return new y(NaN,0i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}var d={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:u.Z,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)=>c(100*e,t),r:c,s:function(e,t){var n=(0,u.V)(e,t);if(!n)return e+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+(0,u.V)(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function f(e){return e}var h=Array.prototype.map,p=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(i=function(e){var t,n,i,o=void 0===e.grouping||void 0===e.thousands?f:(t=h.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?f:(i=h.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),v=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function b(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,b=e.comma,x=e.precision,w=e.trim,E=e.type;"n"===E?(b=!0,E="g"):d[E]||(void 0===x&&(x=12),w=!0,E="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var k="$"===s?a:"#"===s&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",j="$"===s?u:/[%p]/.test(E)?v:"",_=d[E],S=/[defgprs%]/.test(E);function O(e){var a,s,l,u=k,d=j;if("c"===E)d=_(e)+d,e="";else{var v=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:_(Math.abs(e),x),w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),v&&0==+e&&"+"!==i&&(v=!1),u=(v?"("===i?i:g:"-"===i||"("===i?"":i)+u,d=("s"===E?p[8+r/3]:"")+d+(v&&"("===i?")":""),S){for(a=-1,s=e.length;++a(l=e.charCodeAt(a))||l>57){d=(46===l?c+e.slice(a+1):e.slice(a))+d,e=e.slice(0,a);break}}}b&&!f&&(e=o(e,1/0));var O=u.length+e.length+d.length,C=O>1)+u+e+d+C.slice(O);break;default:e=C+u+e+d}return m(e)}return x=void 0===x?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),O.toString=function(){return e+""},O}return{format:b,formatPrefix:function(e,t){var n=b(((e=(0,l.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,s.Z)(t)/3))),i=Math.pow(10,-r),o=p[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix},23733:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(39801);function i(e){return(e=(0,r.V)(Math.abs(e)))?e[1]:NaN}},39801:function(e,t,n){"use strict";function r(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function i(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,{V:function(){return i},Z:function(){return r}})},52328:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){var t;if(!(t=r.exec(e)))throw Error("invalid format: "+e);return new o({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]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},12766:function(e,t){!function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function o(e){var t={};return 4===e.length&&(t.x2=e[2][0],t.y2=e[2][1]),e.length>=3&&(t.x1=e[1][0],t.y1=e[1][1]),t.x=e[e.length-1][0],t.y=e[e.length-1][1],4===e.length?t.type="C":3===e.length?t.type="Q":t.type="L",t}var a=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,s={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function l(e,t){for(var n=Array(e),r=0;r0?o-=1:o0&&(o-=1)),t[o]=(t[o]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var a=l(r,t({},e[e.length-1]));return"M"===a[0].type&&a.forEach(function(e){e.type="L"}),n.concat(a)}return n.concat(function(e,n,r){var i,a=[];if("L"===n.type||"Q"===n.type||"C"===n.type)a=a.concat((i=[[e.x,e.y]],null!=n.x1&&i.push([n.x1,n.y1]),null!=n.x2&&i.push([n.x2,n.y2]),i.push([n.x,n.y]),(function(e,t){for(var n=[],r=e,i=1/(t=t||2),o=0;o0&&"Z"===o[o.length-1].type&&o.pop(),a.length>0&&"Z"===a[a.length-1].type&&a.pop(),o.length?a.length||a.push(o[0]):o.push(a[0]),0!==Math.abs(a.length-o.length)&&(a.length>o.length?o=u(o,a,r):a.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,n){var i,o,a;return n-t?(i=t,o=n,i=Math.pow(i,a=e),o=Math.pow(o,a)-i,a=1/a,function(e){return Math.pow(i+e*o,a)}):(0,r.Z)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?i(e,n):(0,r.Z)(isNaN(e)?t:e)}},88992:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},77636:function(e,t,n){"use strict";n.d(t,{B:function(){return f},Z:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=-1.78277*.29227-.1347134789;function s(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof l)return new l(e.h,e.s,e.l,e.opacity);e instanceof i.Ss||(e=(0,i.SU)(e));var t=e.r/255,n=e.g/255,r=e.b/255,s=(a*r+-1.7884503806*t-3.5172982438*n)/(a+-1.7884503806-3.5172982438),u=r-s,c=-((1.97294*(n-s)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*s*(1-s)),f=d?Math.atan2(c,u)*o.B-120:NaN;return new l(f<0?f+360:f,d,s,e.opacity)}(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(l,s,(0,r.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new l(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new l(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*o.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*a)),255*(t+n*(-.29227*r+-.90649*a)),255*(t+n*(1.97294*r)),this.opacity)}}));var u=n(1234);function c(e){return function t(n){function r(t,r){var i=e((t=s(t)).h,(r=s(r)).h),o=(0,u.ZP)(t.s,r.s),a=(0,u.ZP)(t.l,r.l),l=(0,u.ZP)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}var d=c(u.wx),f=c(u.ZP)},91255:function(e,t,n){"use strict";function r(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}n.d(t,{Z:function(){return r}})},87286:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(20966),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),a=(0,i.ZP)(t.c,n.c),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.c=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(68847),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),a=(0,i.ZP)(t.s,n.s),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.s=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},31380:function(e,t,n){"use strict";n.r(t),n.d(t,{interpolate:function(){return s.Z},interpolateArray:function(){return l.Z},interpolateBasis:function(){return u.Z},interpolateBasisClosed:function(){return c.Z},interpolateCubehelix:function(){return N.Z},interpolateCubehelixLong:function(){return N.B},interpolateDate:function(){return d.Z},interpolateDiscrete:function(){return f},interpolateHcl:function(){return T.Z},interpolateHclLong:function(){return T.b},interpolateHsl:function(){return A.Z},interpolateHslLong:function(){return A.q},interpolateHue:function(){return p},interpolateLab:function(){return P.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return v.Z},interpolateObject:function(){return g.Z},interpolateRgb:function(){return M.ZP},interpolateRgbBasis:function(){return M.hD},interpolateRgbBasisClosed:function(){return M.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return b.Z},interpolateTransformCss:function(){return j},interpolateTransformSvg:function(){return _},interpolateZoom:function(){return C},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,o,a,s=n(69777),l=n(47639),u=n(67855),c=n(6984),d=n(91255);function f(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var h=n(1234);function p(e,t){var n=(0,h.wx)(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}var m=n(98876),v=n(43289),g=n(73363),y=n(74672),b=n(76060),x=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function E(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:(0,m.Z)(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=o.skewX)!==(c=a.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:(0,m.Z)(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,n=-1,r=f.length;++nc&&(u=t.slice(c,u),f[d]?f[d]+=u:f[++d]=u),(s=s[0])===(l=l[0])?f[d]?f[d]+=l:f[++d]=l:(f[++d]=null,h.push({i:d,x:(0,r.Z)(s,l)})),c=o.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var h=r-a,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=o*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),b=y/g,x=y/v;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*d)),this._+="A"+o+","+o+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+x*l)+","+(this._y1=t+x*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,l){e=+e,t=+t,o=+o,l=!!l;var u=o*Math.cos(a),c=o*Math.sin(a),d=e+u,f=t+c,h=1^l,p=l?a-s:s-a;if(o<0)throw Error("negative radius: "+o);null===this._x1?this._+="M"+d+","+f:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+d+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+h+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.Z=a},1169:function(e,t,n){"use strict";function r(e,t){return et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},98038:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var r=n(1169);function i(e){let t=e,n=e;function i(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>(0,r.Z)(e(t),n)),{left:i,center:function(e,n,r,o){null==r&&(r=0),null==o&&(o=e.length);let a=i(e,n,r,o-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}var o=n(81048);let a=i(r.Z),s=a.right;a.left,i(o.Z).center;var l=s},81048:function(e,t,n){"use strict";function r(e){return null===e?NaN:+e}function*i(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}n.d(t,{K:function(){return i},Z:function(){return r}})},33907:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(t,{Z:function(){return l},s:function(){return u}});var o=n(1169);function a(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var s=n(81048);function l(e,t,n){if(l=(e=Float64Array.from((0,s.K)(e,n))).length){if((t=+t)<=0||l<2)return i(e);if(t>=1)return r(e);var l,u=(l-1)*t,c=Math.floor(u),d=r((function e(t,n,r=0,i=t.length-1,s=o.Z){for(;i>r;){if(i-r>600){let o=i-r+1,a=n-r+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(a-o/2<0?-1:1),d=Math.max(r,Math.floor(n-a*u/o+c)),f=Math.min(i,Math.floor(n+(o-a)*u/o+c));e(t,n,d,f,s)}let o=t[n],l=r,u=i;for(a(t,r,n),s(t[i],o)>0&&a(t,r,i);ls(t[l],o);)++l;for(;s(t[u],o)>0;)--u}0===s(t[r],o)?a(t,r,u):a(t,++u,i),u<=n&&(r=u+1),n<=u&&(i=u-1)}return t})(e,c).subarray(0,c+1));return d+(i(e.subarray(c+1))-d)*(u-c)}}function u(e,t,n=s.Z){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var r,i,o,a,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=Array(i=r-n+1);++lt&&--r,o=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}function l(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t[e.toLowerCase(),t]))}function k(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function j(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function _(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function S(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function O(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function C(e,t,n){var r=v.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function M(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function A(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function P(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function T(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function R(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function D(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function L(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function F(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function V(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function I(e,t,n){var r=v.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function z(e,t,n){var r=g.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Z(e,t,n){var r=v.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function B(e,t,n){var r=v.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function H(e,t){return b(e.getDate(),t,2)}function U(e,t){return b(e.getHours(),t,2)}function W(e,t){return b(e.getHours()%12||12,t,2)}function q(e,t){return b(1+u.Z.count((0,c.Z)(e),e),t,3)}function $(e,t){return b(e.getMilliseconds(),t,3)}function Y(e,t){return $(e,t)+"000"}function G(e,t){return b(e.getMonth()+1,t,2)}function K(e,t){return b(e.getMinutes(),t,2)}function X(e,t){return b(e.getSeconds(),t,2)}function Q(e){var t=e.getDay();return 0===t?7:t}function J(e,t){return b(l.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,l.bL)(e):l.bL.ceil(e)}function et(e,t){return e=ee(e),b(l.bL.count((0,c.Z)(e),e)+(4===(0,c.Z)(e).getDay()),t,2)}function en(e){return e.getDay()}function er(e,t){return b(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return b(e.getFullYear()%100,t,2)}function eo(e,t){return b((e=ee(e)).getFullYear()%100,t,2)}function ea(e,t){return b(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return b((e=n>=4||0===n?(0,l.bL)(e):l.bL.ceil(e)).getFullYear()%1e4,t,4)}function el(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+b(t/60|0,"0",2)+b(t%60,"0",2)}function eu(e,t){return b(e.getUTCDate(),t,2)}function ec(e,t){return b(e.getUTCHours(),t,2)}function ed(e,t){return b(e.getUTCHours()%12||12,t,2)}function ef(e,t){return b(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return b(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return b(e.getUTCMonth()+1,t,2)}function ev(e,t){return b(e.getUTCMinutes(),t,2)}function eg(e,t){return b(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function eb(e,t){return b(a.Ox.count((0,d.Z)(e)-1,e),t,2)}function ex(e){var t=e.getUTCDay();return t>=4||0===t?(0,a.hB)(e):a.hB.ceil(e)}function ew(e,t){return e=ex(e),b(a.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function eE(e){return e.getUTCDay()}function ek(e,t){return b(a.l6.count((0,d.Z)(e)-1,e),t,2)}function ej(e,t){return b(e.getUTCFullYear()%100,t,2)}function e_(e,t){return b((e=ex(e)).getUTCFullYear()%100,t,2)}function eS(e,t){return b(e.getUTCFullYear()%1e4,t,4)}function eO(e,t){var n=e.getUTCDay();return b((e=n>=4||0===n?(0,a.hB)(e):a.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function eC(){return"+0000"}function eM(){return"%"}function eA(e){return+e}function eP(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=E(i),b=w(o),x=E(o),ee=w(c),ex=E(c),eT=w(d),eN=E(d),eR=w(v),eD=E(v),eL={a:function(e){return c[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:Y,g:eo,G:es,H:U,I:W,j:q,L:$,m:G,M:K,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eA,s:eP,S:X,u:Q,U:J,V:et,w:en,W:er,x:null,X:null,y:ei,Y:ea,Z:el,"%":eM},eF={a:function(e){return c[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return v[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:eu,e:eu,f:ep,g:e_,G:eO,H:ec,I:ed,j:ef,L:eh,m:em,M:ev,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eA,s:eP,S:eg,u:ey,U:eb,V:ew,w:eE,W:ek,x:null,X:null,y:ej,Y:eS,Z:eC,"%":eM},eV={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=ex.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.w=x.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=eR.exec(t.slice(n));return r?(e.m=eD.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=eT.exec(t.slice(n));return r?(e.m=eN.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return eZ(e,t,n,r)},d:N,e:N,f:I,g:M,G:C,H:D,I:D,j:R,L:V,m:T,M:L,p:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.p=y.get(r[0].toLowerCase()),n+r[0].length):-1},q:P,Q:Z,s:B,S:F,u:j,U:_,V:S,w:k,W:O,x:function(e,t,r){return eZ(e,n,t,r)},X:function(e,t,n){return eZ(e,r,t,n)},y:M,Y:C,Z:A,"%":z};function eI(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=h(p(o.y,0,1))).getUTCDay())>4||0===i?a.l6.ceil(r):(0,a.l6)(r),r=s.Z.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=f(p(o.y,0,1))).getDay())>4||0===i?l.wA.ceil(r):(0,l.wA)(r),r=u.Z.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?h(p(o.y,0,1)).getUTCDay():f(p(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,h(o)):f(o)}}function eZ(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=eV[(i=t.charAt(a++))in m?t.charAt(a++):i])||(r=o(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return eL.x=eI(n,eL),eL.X=eI(r,eL),eL.c=eI(t,eL),eF.x=eI(n,eF),eF.X=eI(r,eF),eF.c=eI(t,eF),{format:function(e){var t=eI(e+="",eL);return t.toString=function(){return e},t},parse:function(e){var t=ez(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=eI(e+="",eF);return t.toString=function(){return e},t},utcParse:function(e){var t=ez(e+="",!0);return t.toString=function(){return e},t}}}({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"]})).format,r.parse,o=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},x:function(){return a}});var r=n(22274),i=n(34130);function o(){var e,t,n=(0,i.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=a().length,r=ut&&(n=e,e=t,t=n),g=function(n){return Math.max(e,Math.min(t,n))}),r=i>2?f:d,c=h=null,b}function b(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,v)))(e(g(t)))}return b.invert=function(n){return g(t((h||(h=r(m,p.map(e),o.Z)))(n)))},b.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),v=a.Z,y()},b.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},b.interpolate=function(e){return arguments.length?(v=e,y()):v},b.unknown=function(e){return arguments.length?(n=e,b):n},function(n,r){return e=n,t=r,y()}}function m(){return p()(u,u)}},79870:function(e,t,n){"use strict";n.r(t),n.d(t,{scaleBand:function(){return r.Z},scaleDiverging:function(){return function e(){var t=(0,i.Q)(C()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,a.Q)(C()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return A},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(C());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,o.Z),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,o.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return a.Z},scaleOrdinal:function(){return l.Z},scalePoint:function(){return r.x},scalePow:function(){return u.ZP},scaleQuantile:function(){return d.Z},scaleQuantize:function(){return f.Z},scaleRadial:function(){return c.Z},scaleSequential:function(){return function e(){var t=(0,i.Q)(x()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,a.Q)(x()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleSequentialPow:function(){return E},scaleSequentialQuantile:function(){return function e(){var t=[],n=y.yR;function r(e){if(null!=e&&!isNaN(e=+e))return n(((0,j.ZP)(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(_.Z),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(0,S.Z)(t,r/e))},r.copy=function(){return e(n).domain(t)},b.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return k},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(x());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleSqrt:function(){return u._b},scaleSymlog:function(){return s.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return p.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return P.Z}});var r=n(48623),i=n(93963),o=n(5497),a=n(13641),s=n(46494),l=n(34130),u=n(72851),c=n(19637),d=n(96417),f=n(73408),h=n(74995),p=n(37932),m=n(83803),v=n(69777),g=n(74672),y=n(70552),b=n(22274);function x(){var e,t,n,r,i,o=0,a=1,s=y.yR,l=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,a]},u.clamp=function(e){return arguments.length?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=c(v.Z),u.rangeRound=c(g.Z),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),u}}function w(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function E(){var e=(0,u.Hh)(x());return e.copy=function(){return w(e,E()).exponent(e.exponent())},b.O.apply(e,arguments)}function k(){return E.apply(null,arguments).exponent(.5)}var j=n(98038),_=n(1169),S=n(33907),O=n(87475);function C(){var e,t,n,r,i,o,a,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e0;){if((o=(0,r.G9)(u,c,n))===i)return a[s]=u,a[l]=c,t(a);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;i=o}return e},e}},13641:function(e,t,n){"use strict";n.d(t,{Q:function(){return p},Z:function(){return function e(){var t=p((0,a.l4)()).domain([1,10]);return t.copy=function(){return(0,a.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),o=n(10070),a=n(70552),s=n(22274);function l(e){return Math.log(e)}function u(e){return Math.exp(e)}function c(e){return-Math.log(-e)}function d(e){return-Math.exp(-e)}function f(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return function(t){return-e(-t)}}function p(e){var t,n,a=e(l,u),s=a.domain,p=10;function m(){var r,i;return t=(r=p)===Math.E?Math.log:10===r&&Math.log10||2===r&&Math.log2||(r=Math.log(r),function(e){return Math.log(e)/r}),n=10===(i=p)?f:i===Math.E?Math.exp:function(e){return Math.pow(i,e)},s()[0]<0?(t=h(t),n=h(n),e(c,d)):e(l,u),a}return a.base=function(e){return arguments.length?(p=+e,m()):p},a.domain=function(e){return arguments.length?(s(e),m()):s()},a.ticks=function(e){var i,o=s(),a=o[0],l=o[o.length-1];(i=l0){for(;f<=h;++f)for(c=1,u=n(f);cl)break;v.push(d)}}else for(;f<=h;++f)for(c=p-1,u=n(f);c>=1;--c)if(!((d=u*c)l)break;v.push(d)}2*v.length0?l[t-1]:n[0],t=s?[l[s-1],a]:[l[t-1],l[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return l.slice()},c.copy=function(){return e().domain([n,a]).range(u).unknown(t)},o.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),o=n(22274)},19637:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=(0,r.ZP)(),l=[0,1],u=!1;function c(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:u?Math.round(i):i}return c.invert=function(e){return n.invert(s(e))},c.domain=function(e){return arguments.length?(n.domain(e),c):n.domain()},c.range=function(e){return arguments.length?(n.range((l=Array.from(e,a.Z)).map(s)),c):l.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(u=!!e,c):u},c.clamp=function(e){return arguments.length?(n.clamp(e),c):n.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(n.domain(),l).round(u).clamp(n.clamp()).unknown(t)},i.o.apply(c,arguments),(0,o.Q)(c)}}});var r=n(70552),i=n(22274),o=n(93963),a=n(5497);function s(e){return Math.sign(e)*e*e}},46494:function(e,t,n){"use strict";n.d(t,{P:function(){return l},Z:function(){return function e(){var t=l((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},o.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),o=n(22274);function a(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function s(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l(e){var t=1,n=e(a(1),s(t));return n.constant=function(n){return arguments.length?e(a(t=+n),s(t)):t},(0,r.Q)(n)}},74995:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=[.5],o=[0,1],a=1;function s(e){return null!=e&&e<=e?o[(0,r.ZP)(n,e,0,a)]:t}return s.domain=function(e){return arguments.length?(a=Math.min((n=Array.from(e)).length,o.length-1),s):n.slice()},s.range=function(e){return arguments.length?(o=Array.from(e),a=Math.min(n.length,o.length-1),s):o.slice()},s.invertExtent=function(e){var t=o.indexOf(e);return[n[t-1],n[t]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return e().domain(n).range(o).unknown(t)},i.o.apply(s,arguments)}}});var r=n(98038),i=n(22274)},62498:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(32071),i=n(52328),o=n(23733),a=n(11192);function s(e,t,n,s){var l,u,c,d=(0,r.ly)(e,t,n);switch((s=(0,i.Z)(null==s?",f":s)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=s.precision||isNaN(c=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,o.Z)(f)/3)))-(0,o.Z)(Math.abs(d))))||(s.precision=c),(0,a.jH)(s,f);case"":case"e":case"g":case"p":case"r":null!=s.precision||isNaN((l=d,u=Math.abs(u=Math.max(Math.abs(e),Math.abs(t)))-(l=Math.abs(l)),c=Math.max(0,(0,o.Z)(u)-(0,o.Z)(l))+1))||(s.precision=c-("e"===s.type));break;case"f":case"%":null!=s.precision||isNaN(c=Math.max(0,-(0,o.Z)(Math.abs(d))))||(s.precision=c-("%"===s.type)*2)}return(0,a.WU)(s)}},37932:function(e,t,n){"use strict";n.d(t,{Y:function(){return g},Z:function(){return y}});var r=n(1381),i=n(97344),o=n(50690),a=n(76231),s=n(68603),l=n(54076),u=n(18450),c=n(52546),d=n(61743),f=n(70552),h=n(22274),p=n(10070);function m(e){return new Date(e)}function v(e){return e instanceof Date?+e:+new Date(+e)}function g(e,t,n,r,i,o,a,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),b=u(":%S"),x=u("%I:%M"),w=u("%I %p"),E=u("%a %d"),k=u("%b %d"),j=u("%B"),_=u("%Y");function S(e){return(l(e)P*P+T*T&&(_=O,S=C),{cx:_,cy:S,x01:-d,y01:-f,x11:_*(i/E-1),y11:S*(i/E-1)}}function f(){var e=a,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-o.ou,c=p.apply(this,arguments)-o.ou,g=(0,o.Wn)(c-u),y=c>u;if(v||(v=i=(0,r.Z)()),lo.Ho){if(g>o.BZ-o.Ho)v.moveTo(l*(0,o.mC)(u),l*(0,o.O$)(u)),v.arc(0,0,l,u,c,!y),s>o.Ho&&(v.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),v.arc(0,0,s,c,u,y));else{var b,x,w=u,E=c,k=u,j=c,_=g,S=g,O=m.apply(this,arguments)/2,C=O>o.Ho&&(f?+f.apply(this,arguments):(0,o._b)(s*s+l*l)),M=(0,o.VV)((0,o.Wn)(l-s)/2,+n.apply(this,arguments)),A=M,P=M;if(C>o.Ho){var T=(0,o.ZR)(C/s*(0,o.O$)(O)),N=(0,o.ZR)(C/l*(0,o.O$)(O));(_-=2*T)>o.Ho?(T*=y?1:-1,k+=T,j-=T):(_=0,k=j=(u+c)/2),(S-=2*N)>o.Ho?(N*=y?1:-1,w+=N,E-=N):(S=0,w=E=(u+c)/2)}var R=l*(0,o.mC)(w),D=l*(0,o.O$)(w),L=s*(0,o.mC)(j),F=s*(0,o.O$)(j);if(M>o.Ho){var V,I=l*(0,o.mC)(E),z=l*(0,o.O$)(E),Z=s*(0,o.mC)(k),B=s*(0,o.O$)(k);if(go.Ho?P>o.Ho?(b=d(Z,B,R,D,l,P,y),x=d(I,z,L,F,l,P,y),v.moveTo(b.cx+b.x01,b.cy+b.y01),Po.Ho&&_>o.Ho?A>o.Ho?(b=d(L,F,I,z,s,-A,y),x=d(R,D,Z,B,s,-A,y),v.lineTo(b.cx+b.x01,b.cy+b.y01),A=a;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[o]=+e(h,o,i),y[o]=+n(h,o,i),f.point(t?+t(h,o,i):g[o],l?+l(h,o,i):y[o]))}if(p)return f=null,p+""||null}function p(){return(0,a.Z)().defined(u).curve(d).context(c)}return h.x=function(n){return arguments.length?(e="function"==typeof n?n:(0,i.Z)(+n),t=null,h):e},h.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.Z)(+t),h):e},h.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):t},h.y=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),l=null,h):n},h.y0=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),h):n},h.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):l},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(l)},h.lineX1=function(){return p().x(t).y(n)},h.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.Z)(!!e),h):u},h.curve=function(e){return arguments.length?(d=e,null!=c&&(f=d(c)),h):d},h.context=function(e){return arguments.length?(null==e?c=f=null:f=d(c=e),h):c},h}},72299:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var r=Array.prototype.slice},33554:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},46385:function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}n.d(t,{pC:function(){return i},xm:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.ZP=function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},20651:function(e,t,n){"use strict";function r(e){this._context=e}function i(e){return new r(e)}n.d(t,{Z:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&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)}}}},27266:function(e,t,n){"use strict";function r(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*r)/(r+i)))||0}function i(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function o(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function a(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new a(e)}function c(e){return new s(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),a.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:o(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+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,o(this,i(this,n=r(this,e,t)),n);break;default:o(this,this._t0,n=r(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(s.prototype=Object.create(a.prototype)).point=function(e,t){a.prototype.point.call(this,t,e)},l.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,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},j:function(){return r}});var r=o(n(20651).Z);function i(e){this._curve=e}function o(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}}},45742:function(e,t,n){"use strict";function r(e,t){this._context=e,this._t=t}function i(e){return new r(e,.5)}function o(e){return new r(e,0)}function a(e){return new r(e,1)}n.d(t,{RN:function(){return o},ZP:function(){return i},cD:function(){return a}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=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)}}this._x=e,this._y=t}}},59207:function(e,t,n){"use strict";n.r(t),n.d(t,{arc:function(){return r.Z},area:function(){return i.Z},areaRadial:function(){return u},curveBasis:function(){return k},curveBasisClosed:function(){return _},curveBasisOpen:function(){return O},curveBundle:function(){return M},curveCardinal:function(){return A.ZP},curveCardinalClosed:function(){return T},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return V},curveCatmullRomClosed:function(){return z},curveCatmullRomOpen:function(){return B},curveLinear:function(){return W.Z},curveLinearClosed:function(){return U},curveMonotoneX:function(){return q.Z},curveMonotoneY:function(){return q.s},curveNatural:function(){return G},curveStep:function(){return K.ZP},curveStepAfter:function(){return K.cD},curveStepBefore:function(){return K.RN},line:function(){return o.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return a.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return X.Z},stackOffsetDiverging:function(){return J.Z},stackOffsetExpand:function(){return Q.Z},stackOffsetNone:function(){return ee.Z},stackOffsetSilhouette:function(){return et.Z},stackOffsetWiggle:function(){return en.Z},stackOrderAppearance:function(){return er.Z},stackOrderAscending:function(){return ei.Z},stackOrderDescending:function(){return eo.Z},stackOrderInsideOut:function(){return ea.Z},stackOrderNone:function(){return es.Z},stackOrderReverse:function(){return el.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return v.Z},symbolStar:function(){return g.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return b.Z},symbols:function(){return f.u}});var r=n(38764),i=n(12235),o=n(79767),a=n(69619),s=n(23165),l=n(8329);function u(){var e=(0,i.Z)().curve(s.j),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,l.X)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,l.X)(r())},delete e.lineX1,e.lineInnerRadius=function(){return(0,l.X)(o())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,s.Z)(e)):t()._curve},e}var c=n(3326),d=n(72215),f=n(24037),h=n(62628),p=n(9135),m=n(82893),v=n(44523),g=n(86707),y=n(42965),b=n(60598);function x(){}function w(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 E(e){this._context=e}function k(e){return new E(e)}function j(e){this._context=e}function _(e){return new j(e)}function S(e){this._context=e}function O(e){return new S(e)}function C(e,t){this._basis=new E(e),this._beta=t}E.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:w(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},j.prototype={areaStart:x,areaEnd:x,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)}},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:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},S.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||0!==this._line&&3===this._point)&&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,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},C.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var M=function e(t){function n(e){return 1===t?new E(e):new C(e,t)}return n.beta=function(t){return e(+t)},n}(.85),A=n(46385);function P(e,t){this._context=e,this._k=(1-t)/6}P.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,A.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var T=function e(t){function n(e){return new P(e,t)}return n.tension=function(t){return e(+t)},n}(0);function N(e,t){this._context=e,this._k=(1-t)/6}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,A.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R=function e(t){function n(e){return new N(e,t)}return n.tension=function(t){return e(+t)},n}(0),D=n(15);function L(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>D.Ho){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>D.Ho){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function F(e,t){this._context=e,this._alpha=t}F.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var V=function e(t){function n(e){return t?new F(e,t):new A.pC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function I(e,t){this._context=e,this._alpha=t}I.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var z=function e(t){function n(e){return t?new I(e,t):new P(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Z(e,t){this._context=e,this._alpha=t}Z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var B=function e(t){function n(e){return t?new Z(e,t):new N(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function H(e){this._context=e}function U(e){return new H(e)}H.prototype={areaStart:x,areaEnd:x,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))}};var W=n(20651),q=n(27266);function $(e){this._context=e}function Y(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[r-1]=(e[r]+i[r-1])/2;t1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?f:e<=-1?-f:Math.asin(e)}},76751:function(e,t,n){"use strict";function r(e,t){if((s=e.length)>0)for(var n,r,i,o,a,s,l=0,u=e[t[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}n.d(t,{Z:function(){return r}})},22254:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(90541);function i(e,t){if((i=e.length)>0){for(var n,i,o,a=0,s=e[0].length;a1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o0){for(var n,i=0,o=e[t[0]],a=o.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,o,a=0,s=1;so&&(o=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(o);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function o(e){for(var t,n=0,r=-1,i=e.length;++r=0;)n[t]=t;return n}n.d(t,{Z:function(){return r}})},40277:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(81182);function i(e){return(0,r.Z)(e).reverse()}},69619:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(33554);function i(e,t){return te?1:t>=e?0:NaN}function o(e){return e}var a=n(15);function s(){var e=o,t=i,n=null,s=(0,r.Z)(0),l=(0,r.Z)(a.BZ),u=(0,r.Z)(0);function c(r){var i,o,c,d,f,h=r.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(a.BZ,Math.max(-a.BZ,l.apply(this,arguments)-g)),b=Math.min(Math.abs(y)/h,u.apply(this,arguments)),x=b*(y<0?-1:1);for(i=0;i0&&(p+=f);for(null!=t?m.sort(function(e,n){return t(v[e],v[n])}):null!=n&&m.sort(function(e,t){return n(r[e],r[t])}),i=0,c=p?(y-h*x)/p:0;i0?f*c:0)+x,v[o]={data:r[o],index:i,value:f,startAngle:g,endAngle:d,padAngle:b};return v}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.Z)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,n=null,c):t},c.sort=function(e){return arguments.length?(n=e,t=null,c):n},c.startAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,r.Z)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.Z)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,r.Z)(+e),c):u},c}},11053:function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}n.d(t,{x:function(){return r},y:function(){return i}})},3326:function(e,t,n){"use strict";function r(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}n.d(t,{Z:function(){return r}})},98926:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(72299),i=n(33554),o=n(90541),a=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=a.Z,n=o.Z,l=s;function u(r){var i,o,a=e.apply(this,arguments),s=r.length,u=a.length,c=Array(u);for(i=0;ie.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.UD,e=>e.getDate()-1);t.Z=o;var a=o.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,l=30*a,u=365*a},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym-e.getMinutes()*i.yB)},function(e,t){e.setTime(+e+t*i.Y2)},function(e,t){return(t-e)/i.Y2},function(e){return e.getHours()});t.Z=o;var a=o.range},11365:function(e,t,n){"use strict";n.r(t),n.d(t,{timeDay:function(){return l.Z},timeDays:function(){return l.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return s.Z},timeHours:function(){return s.i},timeInterval:function(){return r.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return a.Z},timeMinutes:function(){return a.L},timeMonday:function(){return u.wA},timeMondays:function(){return u.bJ},timeMonth:function(){return c.Z},timeMonths:function(){return c.e},timeSaturday:function(){return u.EY},timeSaturdays:function(){return u.Ff},timeSecond:function(){return o.Z},timeSeconds:function(){return o.m},timeSunday:function(){return u.OM},timeSundays:function(){return u.vm},timeThursday:function(){return u.bL},timeThursdays:function(){return u.$t},timeTickInterval:function(){return y._g},timeTicks:function(){return y.jK},timeTuesday:function(){return u.sy},timeTuesdays:function(){return u.aU},timeWednesday:function(){return u.zg},timeWednesdays:function(){return u.Ld},timeWeek:function(){return u.OM},timeWeeks:function(){return u.vm},timeYear:function(){return d.Z},timeYears:function(){return d.g},utcDay:function(){return p.Z},utcDays:function(){return p.y},utcFriday:function(){return m.QQ},utcFridays:function(){return m.fz},utcHour:function(){return h.Z},utcHours:function(){return h.X},utcMillisecond:function(){return i.Z},utcMilliseconds:function(){return i.m},utcMinute:function(){return f.Z},utcMinutes:function(){return f.N},utcMonday:function(){return m.l6},utcMondays:function(){return m.$3},utcMonth:function(){return v.Z},utcMonths:function(){return v.K},utcSaturday:function(){return m.g4},utcSaturdays:function(){return m.Q_},utcSecond:function(){return o.Z},utcSeconds:function(){return o.m},utcSunday:function(){return m.Ox},utcSundays:function(){return m.SU},utcThursday:function(){return m.hB},utcThursdays:function(){return m.xj},utcTickInterval:function(){return y.jo},utcTicks:function(){return y.WG},utcTuesday:function(){return m.J1},utcTuesdays:function(){return m.DK},utcWednesday:function(){return m.b3},utcWednesdays:function(){return m.uy},utcWeek:function(){return m.Ox},utcWeeks:function(){return m.SU},utcYear:function(){return g.Z},utcYears:function(){return g.D}});var r=n(22179),i=n(30356),o=n(52546),a=n(18450),s=n(54076),l=n(68603),u=n(76231),c=n(50690),d=n(97344),f=n(52004),h=n(28239),p=n(12370),m=n(97631),v=n(94758),g=n(2908),y=n(1381)},22179:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t,n,o,a){function s(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t0))return a;do a.push(o=new Date(+e)),n(e,i),t(e);while(o=e)for(;t(e),!r(e);)e.setTime(e-1)},function(e,t){if(e>=e){if(t<0)for(;++t<=0;)for(;n(e,-1),!r(e););else for(;--t>=0;)for(;n(e,1),!r(e););}})},o&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(o(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}}});var r=new Date,i=new Date},30356:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(22179),i=(0,r.Z)(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?(0,r.Z)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):i:null},t.Z=i;var o=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym)},function(e,t){e.setTime(+e+t*i.yB)},function(e,t){return(t-e)/i.yB},function(e){return e.getMinutes()});t.Z=o;var a=o.range},50690:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=(0,n(22179).Z)(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});t.Z=r;var i=r.range},52546:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*i.Ym)},function(e,t){return(t-e)/i.Ym},function(e){return e.getUTCSeconds()});t.Z=o;var a=o.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return S},jK:function(){return _},jo:function(){return j},WG:function(){return k}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>{var r;return(r=e(t))n?1:r>=n?0:NaN}),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}})(([,,e])=>e).right(c,i);if(o===c.length)return e.every(a(t/s.qz,n/s.qz,r));if(0===o)return l.Z.every(Math.max(a(t,n,r),1));let[u,d]=c[i/c[o-1][2]0?(0,r.Z)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},t.Z=i;var o=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return b},Ld:function(){return v},OM:function(){return a},aU:function(){return m},b$:function(){return y},bJ:function(){return p},bL:function(){return c},mC:function(){return d},sy:function(){return l},vm:function(){return h},wA:function(){return s},zg:function(){return u}});var r=n(22179),i=n(1514);function o(e){return(0,r.Z)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.iM})}var a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),d=o(5),f=o(6),h=a.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,b=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(22179),i=(0,r.Z)(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},t.Z=i;var o=i.range},19785:function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},66700:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19785);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},36386:function(e){function t(e,t,n){function r(){var u=Date.now()-s;u=0?i=setTimeout(r,t-u):(i=null,n||(l=e.apply(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,l,u=function(){a=this,o=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(a,o),a=o=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},63397:function(e,t,n){"use strict";n.d(t,{TA:function(){return nn}});var r,i,o,a=n(2784),s=n(78435),l=n.n(s),u=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==c},c="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function d(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h(Array.isArray(e)?[]:{},e,t):e}function f(e,t,n){return e.concat(t).map(function(e){return d(e,n)})}function h(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||f,n.isMergeableObject=n.isMergeableObject||u;var r,i,o=Array.isArray(t);return o!==Array.isArray(e)?d(t,n):o?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=d(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=h(e[n],t[n],r):i[n]=d(t[n],r)}),i)}h.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return h(e,n,t)},{})};var p=h,m="object"==typeof global&&global&&global.Object===Object&&global,v="object"==typeof self&&self&&self.Object===Object&&self,g=m||v||Function("return this")(),y=g.Symbol,b=Object.prototype,x=b.hasOwnProperty,w=b.toString,E=y?y.toStringTag:void 0,k=function(e){var t=x.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var i=w.call(e);return r&&(t?e[E]=n:delete e[E]),i},j=Object.prototype.toString,_=y?y.toStringTag:void 0,S=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?k(e):j.call(e)},O=function(e,t){return function(n){return e(t(n))}},C=O(Object.getPrototypeOf,Object),M=function(e){return null!=e&&"object"==typeof e},A=Object.prototype,P=Function.prototype.toString,T=A.hasOwnProperty,N=P.call(Object),R=function(e){if(!M(e)||"[object Object]"!=S(e))return!1;var t=C(e);if(null===t)return!0;var n=T.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&P.call(n)==N},D=function(e,t){return e===t||e!=e&&t!=t},L=function(e,t){for(var n=e.length;n--;)if(D(e[n][0],t))return n;return -1},F=Array.prototype.splice;function V(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},V.prototype.set=function(e,t){var n=this.__data__,r=L(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var I=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},z=function(e){if(!I(e))return!1;var t=S(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Z=g["__core-js_shared__"],B=(r=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",H=Function.prototype.toString,U=function(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""},W=/^\[object .+?Constructor\]$/,q=Object.prototype,$=Function.prototype.toString,Y=q.hasOwnProperty,G=RegExp("^"+$.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=function(e,t){var n,r=null==e?void 0:e[t];return I(n=r)&&(!B||!(B in n))&&(z(n)?G:W).test(U(n))?r:void 0},X=K(g,"Map"),Q=K(Object,"create"),J=Object.prototype.hasOwnProperty,ee=Object.prototype.hasOwnProperty;function et(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},eS={};eS["[object Float32Array]"]=eS["[object Float64Array]"]=eS["[object Int8Array]"]=eS["[object Int16Array]"]=eS["[object Int32Array]"]=eS["[object Uint8Array]"]=eS["[object Uint8ClampedArray]"]=eS["[object Uint16Array]"]=eS["[object Uint32Array]"]=!0,eS["[object Arguments]"]=eS["[object Array]"]=eS["[object ArrayBuffer]"]=eS["[object Boolean]"]=eS["[object DataView]"]=eS["[object Date]"]=eS["[object Error]"]=eS["[object Function]"]=eS["[object Map]"]=eS["[object Number]"]=eS["[object Object]"]=eS["[object RegExp]"]=eS["[object Set]"]=eS["[object String]"]=eS["[object WeakMap]"]=!1;var eO=function(e){return function(t){return e(t)}},eC="object"==typeof exports&&exports&&!exports.nodeType&&exports,eM=eC&&"object"==typeof module&&module&&!module.nodeType&&module,eA=eM&&eM.exports===eC&&m.process,eP=function(){try{var e=eM&&eM.require&&eM.require("util").types;if(e)return e;return eA&&eA.binding&&eA.binding("util")}catch(e){}}(),eT=eP&&eP.isTypedArray,eN=eT?eO(eT):function(e){return M(e)&&e_(e.length)&&!!eS[S(e)]},eR=Object.prototype.hasOwnProperty,eD=function(e,t){var n=ey(e),r=!n&&eg(e),i=!n&&!r&&eE(e),o=!n&&!r&&!i&&eN(e),a=n||r||i||o,s=a?ef(e.length,String):[],l=s.length;for(var u in e)(t||eR.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ej(u,l)))&&s.push(u);return s},eL=Object.prototype,eF=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eL)},eV=O(Object.keys,Object),eI=Object.prototype.hasOwnProperty,ez=function(e){if(!eF(e))return eV(e);var t=[];for(var n in Object(e))eI.call(e,n)&&"constructor"!=n&&t.push(n);return t},eZ=function(e){return null!=e&&e_(e.length)&&!z(e)},eB=function(e){return eZ(e)?eD(e):ez(e)},eH=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eU=Object.prototype.hasOwnProperty,eW=function(e){if(!I(e))return eH(e);var t=eF(e),n=[];for(var r in e)"constructor"==r&&(t||!eU.call(e,r))||n.push(r);return n},eq=function(e){return eZ(e)?eD(e,!0):eW(e)},e$="object"==typeof exports&&exports&&!exports.nodeType&&exports,eY=e$&&"object"==typeof module&&module&&!module.nodeType&&module,eG=eY&&eY.exports===e$?g.Buffer:void 0,eK=eG?eG.allocUnsafe:void 0,eX=function(e,t){if(t)return e.slice();var n=e.length,r=eK?eK(n):new e.constructor(n);return e.copy(r),r},eQ=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0||(i[n]=e[n]);return i}function t0(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var t1=function(e){return Array.isArray(e)&&0===e.length},t2=function(e){return"function"==typeof e},t4=function(e){return null!==e&&"object"==typeof e},t3=function(e){return"[object String]"===Object.prototype.toString.call(e)},t5=function(e){return t4(e)&&t2(e.then)};function t6(e,t,n,r){void 0===r&&(r=0);for(var i=tK(t);e&&r=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}var t7=(0,a.createContext)(void 0);function t9(e,t){switch(t.type){case"SET_VALUES":return tQ({},e,{values:t.payload});case"SET_TOUCHED":return tQ({},e,{touched:t.payload});case"SET_ERRORS":if(l()(e.errors,t.payload))return e;return tQ({},e,{errors:t.payload});case"SET_STATUS":return tQ({},e,{status:t.payload});case"SET_ISSUBMITTING":return tQ({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return tQ({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return tQ({},e,{values:t8(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return tQ({},e,{touched:t8(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return tQ({},e,{errors:t8(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return tQ({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return tQ({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var o,a=o;t6(t,a.path)||(t=t8(t,a.path,a.message))}}return t}(n)):t(n)})})},[m.validationSchema]),O=(0,a.useCallback)(function(e,t){return new Promise(function(n){return n(w.current[e].validate(t))})},[]),C=(0,a.useCallback)(function(e){var t=Object.keys(w.current).filter(function(e){return t2(w.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return O(t,t6(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=t8(e,t[r],n)),e},{})})},[O]),M=(0,a.useCallback)(function(e){return Promise.all([C(e),m.validationSchema?S(e):{},m.validate?_(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return p.all([t,n,r],{arrayMerge:nr})})},[m.validate,m.validationSchema,C,_,S]),A=no(function(e){return void 0===e&&(e=k.values),j({type:"SET_ISVALIDATING",payload:!0}),M(e).then(function(e){return x.current&&(j({type:"SET_ISVALIDATING",payload:!1}),j({type:"SET_ERRORS",payload:e})),e})});(0,a.useEffect)(function(){s&&!0===x.current&&l()(v.current,m.initialValues)&&A(v.current)},[s,A]);var P=(0,a.useCallback)(function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:g.current?g.current:m.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:m.initialTouched||{},i=e&&e.status?e.status:b.current?b.current:m.initialStatus;v.current=t,g.current=n,y.current=r,b.current=i;var o=function(){j({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(m.onReset){var a=m.onReset(k.values,X);t5(a)?a.then(o):o()}else o()},[m.initialErrors,m.initialStatus,m.initialTouched]);(0,a.useEffect)(function(){!0===x.current&&!l()(v.current,m.initialValues)&&(d&&(v.current=m.initialValues,P()),s&&A(v.current))},[d,m.initialValues,P,s,A]),(0,a.useEffect)(function(){d&&!0===x.current&&!l()(g.current,m.initialErrors)&&(g.current=m.initialErrors||ne,j({type:"SET_ERRORS",payload:m.initialErrors||ne}))},[d,m.initialErrors]),(0,a.useEffect)(function(){d&&!0===x.current&&!l()(y.current,m.initialTouched)&&(y.current=m.initialTouched||nt,j({type:"SET_TOUCHED",payload:m.initialTouched||nt}))},[d,m.initialTouched]),(0,a.useEffect)(function(){d&&!0===x.current&&!l()(b.current,m.initialStatus)&&(b.current=m.initialStatus,j({type:"SET_STATUS",payload:m.initialStatus}))},[d,m.initialStatus,m.initialTouched]);var T=no(function(e){if(w.current[e]&&t2(w.current[e].validate)){var t=t6(k.values,e),n=w.current[e].validate(t);return t5(n)?(j({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){j({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),j({type:"SET_ISVALIDATING",payload:!1})})):(j({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return m.validationSchema?(j({type:"SET_ISVALIDATING",payload:!0}),S(k.values,e).then(function(e){return e}).then(function(t){j({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),j({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),N=(0,a.useCallback)(function(e,t){var n=t.validate;w.current[e]={validate:n}},[]),D=(0,a.useCallback)(function(e){delete w.current[e]},[]),L=no(function(e,t){return j({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?A(k.values):Promise.resolve()}),F=(0,a.useCallback)(function(e){j({type:"SET_ERRORS",payload:e})},[]),V=no(function(e,t){var r=t2(e)?e(k.values):e;return j({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?A(r):Promise.resolve()}),I=(0,a.useCallback)(function(e,t){j({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),z=no(function(e,t,r){return j({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?A(t8(k.values,e,t)):Promise.resolve()}),Z=(0,a.useCallback)(function(e,t){var n,r=t,i=e;if(!t3(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;r=t||s||l,i=/number|range/.test(a)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}(t6(k.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&z(r,i)},[z,k.values]),B=no(function(e){if(t3(e))return function(t){return Z(t,e)};Z(e)}),H=no(function(e,t,n){return void 0===t&&(t=!0),j({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?A(k.values):Promise.resolve()}),U=(0,a.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,H(t||r||i,!0)},[H]),W=no(function(e){if(t3(e))return function(t){return U(t,e)};U(e)}),q=(0,a.useCallback)(function(e){t2(e)?j({type:"SET_FORMIK_STATE",payload:e}):j({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),$=(0,a.useCallback)(function(e){j({type:"SET_STATUS",payload:e})},[]),Y=(0,a.useCallback)(function(e){j({type:"SET_ISSUBMITTING",payload:e})},[]),G=no(function(){return j({type:"SUBMIT_ATTEMPT"}),A().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=Q(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return x.current&&j({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(x.current)throw j({type:"SUBMIT_FAILURE"}),e})}if(x.current&&(j({type:"SUBMIT_FAILURE"}),n))throw e})}),K=no(function(e){e&&e.preventDefault&&t2(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t2(e.stopPropagation)&&e.stopPropagation(),G().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),X={resetForm:P,validateForm:A,validateField:T,setErrors:F,setFieldError:I,setFieldTouched:H,setFieldValue:z,setStatus:$,setSubmitting:Y,setTouched:L,setValues:V,setFormikState:q,submitForm:G},Q=no(function(){return f(k.values,X)}),J=no(function(e){e&&e.preventDefault&&t2(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t2(e.stopPropagation)&&e.stopPropagation(),P()}),ee=(0,a.useCallback)(function(e){return{value:t6(k.values,e),error:t6(k.errors,e),touched:!!t6(k.touched,e),initialValue:t6(v.current,e),initialTouched:!!t6(y.current,e),initialError:t6(g.current,e)}},[k.errors,k.touched,k.values]),et=(0,a.useCallback)(function(e){return{setValue:function(t,n){return z(e,t,n)},setTouched:function(t,n){return H(e,t,n)},setError:function(t){return I(e,t)}}},[z,H,I]),en=(0,a.useCallback)(function(e){var t=t4(e),n=t?e.name:e,r=t6(k.values,n),i={name:n,value:r,onChange:B,onBlur:W};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[W,B,k.values]),er=(0,a.useMemo)(function(){return!l()(v.current,k.values)},[v.current,k.values]),ei=(0,a.useMemo)(function(){return void 0!==u?er?k.errors&&0===Object.keys(k.errors).length:!1!==u&&t2(u)?u(m):u:k.errors&&0===Object.keys(k.errors).length},[u,er,k.errors,m]);return tQ({},k,{initialValues:v.current,initialErrors:g.current,initialTouched:y.current,initialStatus:b.current,handleBlur:W,handleChange:B,handleReset:J,handleSubmit:K,resetForm:P,setErrors:F,setFormikState:q,setFieldTouched:H,setFieldValue:z,setFieldError:I,setStatus:$,setSubmitting:Y,setTouched:L,setValues:V,submitForm:G,validateForm:A,validateField:T,isValid:ei,dirty:er,unregisterField:D,registerField:N,getFieldProps:en,getFieldMeta:ee,getFieldHelpers:et,validateOnBlur:i,validateOnChange:n,validateOnMount:s})}function nr(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?p(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=p(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var ni="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function no(e){var t=(0,a.useRef)(e);return ni(function(){t.current=e}),(0,a.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;re?t:e},0);return Array.from(tQ({},e,{length:t+1}))};(function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)(function(n){var i="function"==typeof r?r:e,a="function"==typeof t?t:e,s=t8(n.values,o,e(t6(n.values,o))),l=r?i(t6(n.errors,o)):void 0,u=t?a(t6(n.touched,o)):void 0;return t1(l)&&(l=void 0),t1(u)&&(u=void 0),tQ({},n,{values:s,errors:r?t8(n.errors,o,l):n.errors,touched:t?t8(n.touched,o,u):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(nc(t),[tL(e,5)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return ns(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return na(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return nl(n,e,t)},function(t){return nl(t,e,null)},function(t){return nl(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return nu(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(t0(n)),n.pop=n.pop.bind(t0(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!l()(t6(e.formik.values,e.name),t6(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?nc(n):[];return t||(t=r[e]),t2(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,i=t.children,o=t.name,s=tJ(t.formik,["validate","validationSchema"]),l=tQ({},e,{form:s,name:o});return n?(0,a.createElement)(n,l):r?r(l):i?"function"==typeof i?i(l):0===a.Children.count(i)?null:a.Children.only(i):null},t})(a.Component).defaultProps={validateOnChange:!0}},73463:function(e,t,n){"use strict";var r=n(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v=0;)(u=e(r,i,o,a,h+1,l+1))>p&&(h===s?u*=1:t.test(r.charAt(h-1))?(u*=.9,(d=r.slice(s,h-1).match(n))&&s>0&&(u*=Math.pow(.999,d.length))):(t.test(r.slice(s,h-1))?u*=0:u*=.3,s>0&&(u*=Math.pow(.999,h-s))),r.charAt(h)!==i.charAt(l)&&(u*=.9999)),u<.1&&o.charAt(h-1)===a.charAt(l+1)&&o.charAt(h-1)!==a.charAt(l)&&.1*(c=e(r,i,o,a,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=o.indexOf(f,h+1);return p}(e,r,e.toLowerCase(),r.toLowerCase(),0,0)}},68847:function(e,t,n){"use strict";n.d(t,{B8:function(){return k},Il:function(){return i},J5:function(){return a},SU:function(){return j},Ss:function(){return _},Ym:function(){return P},ZP:function(){return b},xV:function(){return o}});var r=n(40948);function i(){}var o=.7,a=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),m=RegExp("^hsl\\("+[l,u,u]+"\\)$"),v=RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),g={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};function y(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function b(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new _(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?E(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?E(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new _(t[1],t[2],t[3],1):(t=f.exec(e))?new _(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?E(t[1],t[2],t[3],t[4]):(t=p.exec(e))?E(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new _(NaN,NaN,NaN,0):null}function w(e){return new _(e>>16&255,e>>8&255,255&e,1)}function E(e,t,n,r){return r<=0&&(e=t=n=NaN),new _(e,t,n,r)}function j(e){return(e instanceof i||(e=b(e)),e)?(e=e.rgb(),new _(e.r,e.g,e.b,e.opacity)):new _}function k(e,t,n,r){return 1==arguments.length?j(e):new _(e,t,n,null==r?1:r)}function _(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function S(){return"#"+C(this.r)+C(this.g)+C(this.b)}function O(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function C(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new T(e,t,n,r)}function A(e){if(e instanceof T)return new T(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(e)),!e)return new T;if(e instanceof T)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-o,u=(a+o)/2;return l?(s=t===a?(n-r)/l+(n0&&u<1?0:s,new T(s,l,u,e.opacity)}function P(e,t,n,r){return 1==arguments.length?A(e):new T(e,t,n,null==r?1:r)}function T(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function N(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}(0,r.Z)(i,b,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return A(this).formatHsl()},formatRgb:x,toString:x}),(0,r.Z)(_,k,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new _(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new _(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:S,formatHex:S,formatRgb:O,toString:O})),(0,r.Z)(T,P,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new T(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new T(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new _(N(e>=240?e-240:e+120,i,r),N(e,i,r),N(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},40948:function(e,t,n){"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,{Z:function(){return r},l:function(){return i}})},20966:function(e,t,n){"use strict";n.d(t,{Uc:function(){return g},ZP:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=4/29,s=6/29,l=3*(6/29)*(6/29),u=6/29*(6/29)*(6/29);function c(e){if(e instanceof f)return new f(e.l,e.a,e.b,e.opacity);if(e instanceof y)return x(e);e instanceof i.Ss||(e=(0,i.SU)(e));var t,n,r=v(e.r),o=v(e.g),a=v(e.b),s=h((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=s:(t=h((.4360747*r+.3850649*o+.1430804*a)/.96422),n=h((.0139322*r+.0971045*o+.7141733*a)/.82521)),new f(116*s-16,500*(t-s),200*(s-n),e.opacity)}function d(e,t,n,r){return 1==arguments.length?c(e):new f(e,t,n,null==r?1:r)}function f(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function h(e){return e>u?Math.pow(e,1/3):e/l+a}function p(e){return e>s?e*e*e:l*(e-a)}function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function v(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function g(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof y)return new y(e.h,e.c,e.l,e.opacity);if(e instanceof f||(e=c(e)),0===e.a&&0===e.b)return new y(NaN,0i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}var d={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:u.Z,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)=>c(100*e,t),r:c,s:function(e,t){var n=(0,u.V)(e,t);if(!n)return e+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+(0,u.V)(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function f(e){return e}var h=Array.prototype.map,p=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(i=function(e){var t,n,i,o=void 0===e.grouping||void 0===e.thousands?f:(t=h.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?f:(i=h.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),v=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function x(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,x=e.comma,b=e.precision,w=e.trim,E=e.type;"n"===E?(x=!0,E="g"):d[E]||(void 0===b&&(b=12),w=!0,E="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var j="$"===s?a:"#"===s&&/[boxX]/.test(E)?"0"+E.toLowerCase():"",k="$"===s?u:/[%p]/.test(E)?v:"",_=d[E],S=/[defgprs%]/.test(E);function O(e){var a,s,l,u=j,d=k;if("c"===E)d=_(e)+d,e="";else{var v=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:_(Math.abs(e),b),w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),v&&0==+e&&"+"!==i&&(v=!1),u=(v?"("===i?i:g:"-"===i||"("===i?"":i)+u,d=("s"===E?p[8+r/3]:"")+d+(v&&"("===i?")":""),S){for(a=-1,s=e.length;++a(l=e.charCodeAt(a))||l>57){d=(46===l?c+e.slice(a+1):e.slice(a))+d,e=e.slice(0,a);break}}}x&&!f&&(e=o(e,1/0));var O=u.length+e.length+d.length,C=O>1)+u+e+d+C.slice(O);break;default:e=C+u+e+d}return m(e)}return b=void 0===b?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),O.toString=function(){return e+""},O}return{format:x,formatPrefix:function(e,t){var n=x(((e=(0,l.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,s.Z)(t)/3))),i=Math.pow(10,-r),o=p[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix},23733:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(39801);function i(e){return(e=(0,r.V)(Math.abs(e)))?e[1]:NaN}},39801:function(e,t,n){"use strict";function r(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function i(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,{V:function(){return i},Z:function(){return r}})},52328:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){var t;if(!(t=r.exec(e)))throw Error("invalid format: "+e);return new o({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]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},12766:function(e,t){!function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function o(e){var t={};return 4===e.length&&(t.x2=e[2][0],t.y2=e[2][1]),e.length>=3&&(t.x1=e[1][0],t.y1=e[1][1]),t.x=e[e.length-1][0],t.y=e[e.length-1][1],4===e.length?t.type="C":3===e.length?t.type="Q":t.type="L",t}var a=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,s={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function l(e,t){for(var n=Array(e),r=0;r0?o-=1:o0&&(o-=1)),t[o]=(t[o]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var a=l(r,t({},e[e.length-1]));return"M"===a[0].type&&a.forEach(function(e){e.type="L"}),n.concat(a)}return n.concat(function(e,n,r){var i,a=[];if("L"===n.type||"Q"===n.type||"C"===n.type)a=a.concat((i=[[e.x,e.y]],null!=n.x1&&i.push([n.x1,n.y1]),null!=n.x2&&i.push([n.x2,n.y2]),i.push([n.x,n.y]),(function(e,t){for(var n=[],r=e,i=1/(t=t||2),o=0;o0&&"Z"===o[o.length-1].type&&o.pop(),a.length>0&&"Z"===a[a.length-1].type&&a.pop(),o.length?a.length||a.push(o[0]):o.push(a[0]),0!==Math.abs(a.length-o.length)&&(a.length>o.length?o=u(o,a,r):a.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,n){var i,o,a;return n-t?(i=t,o=n,i=Math.pow(i,a=e),o=Math.pow(o,a)-i,a=1/a,function(e){return Math.pow(i+e*o,a)}):(0,r.Z)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?i(e,n):(0,r.Z)(isNaN(e)?t:e)}},88992:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},77636:function(e,t,n){"use strict";n.d(t,{B:function(){return f},Z:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=-1.78277*.29227-.1347134789;function s(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof l)return new l(e.h,e.s,e.l,e.opacity);e instanceof i.Ss||(e=(0,i.SU)(e));var t=e.r/255,n=e.g/255,r=e.b/255,s=(a*r+-1.7884503806*t-3.5172982438*n)/(a+-1.7884503806-3.5172982438),u=r-s,c=-((1.97294*(n-s)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*s*(1-s)),f=d?Math.atan2(c,u)*o.B-120:NaN;return new l(f<0?f+360:f,d,s,e.opacity)}(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(l,s,(0,r.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new l(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new l(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*o.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*a)),255*(t+n*(-.29227*r+-.90649*a)),255*(t+n*(1.97294*r)),this.opacity)}}));var u=n(1234);function c(e){return function t(n){function r(t,r){var i=e((t=s(t)).h,(r=s(r)).h),o=(0,u.ZP)(t.s,r.s),a=(0,u.ZP)(t.l,r.l),l=(0,u.ZP)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}var d=c(u.wx),f=c(u.ZP)},91255:function(e,t,n){"use strict";function r(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}n.d(t,{Z:function(){return r}})},87286:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(20966),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),a=(0,i.ZP)(t.c,n.c),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.c=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(68847),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),a=(0,i.ZP)(t.s,n.s),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.s=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},31380:function(e,t,n){"use strict";n.r(t),n.d(t,{interpolate:function(){return s.Z},interpolateArray:function(){return l.Z},interpolateBasis:function(){return u.Z},interpolateBasisClosed:function(){return c.Z},interpolateCubehelix:function(){return N.Z},interpolateCubehelixLong:function(){return N.B},interpolateDate:function(){return d.Z},interpolateDiscrete:function(){return f},interpolateHcl:function(){return T.Z},interpolateHclLong:function(){return T.b},interpolateHsl:function(){return A.Z},interpolateHslLong:function(){return A.q},interpolateHue:function(){return p},interpolateLab:function(){return P.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return v.Z},interpolateObject:function(){return g.Z},interpolateRgb:function(){return M.ZP},interpolateRgbBasis:function(){return M.hD},interpolateRgbBasisClosed:function(){return M.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return x.Z},interpolateTransformCss:function(){return k},interpolateTransformSvg:function(){return _},interpolateZoom:function(){return C},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,o,a,s=n(69777),l=n(47639),u=n(67855),c=n(6984),d=n(91255);function f(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var h=n(1234);function p(e,t){var n=(0,h.wx)(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}var m=n(98876),v=n(43289),g=n(73363),y=n(74672),x=n(76060),b=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function E(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:(0,m.Z)(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=o.skewX)!==(c=a.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:(0,m.Z)(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,n=-1,r=f.length;++nc&&(u=t.slice(c,u),f[d]?f[d]+=u:f[++d]=u),(s=s[0])===(l=l[0])?f[d]?f[d]+=l:f[++d]=l:(f[++d]=null,h.push({i:d,x:(0,r.Z)(s,l)})),c=o.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var h=r-a,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=o*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),x=y/g,b=y/v;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*c)+","+(t+x*d)),this._+="A"+o+","+o+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+b*l)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,l){e=+e,t=+t,o=+o,l=!!l;var u=o*Math.cos(a),c=o*Math.sin(a),d=e+u,f=t+c,h=1^l,p=l?a-s:s-a;if(o<0)throw Error("negative radius: "+o);null===this._x1?this._+="M"+d+","+f:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+d+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+h+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.Z=a},1169:function(e,t,n){"use strict";function r(e,t){return et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},98038:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var r=n(1169);function i(e){let t=e,n=e;function i(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>(0,r.Z)(e(t),n)),{left:i,center:function(e,n,r,o){null==r&&(r=0),null==o&&(o=e.length);let a=i(e,n,r,o-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}var o=n(81048);let a=i(r.Z),s=a.right;a.left,i(o.Z).center;var l=s},81048:function(e,t,n){"use strict";function r(e){return null===e?NaN:+e}function*i(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}n.d(t,{K:function(){return i},Z:function(){return r}})},33907:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(t,{Z:function(){return l},s:function(){return u}});var o=n(1169);function a(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var s=n(81048);function l(e,t,n){if(l=(e=Float64Array.from((0,s.K)(e,n))).length){if((t=+t)<=0||l<2)return i(e);if(t>=1)return r(e);var l,u=(l-1)*t,c=Math.floor(u),d=r((function e(t,n,r=0,i=t.length-1,s=o.Z){for(;i>r;){if(i-r>600){let o=i-r+1,a=n-r+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(a-o/2<0?-1:1),d=Math.max(r,Math.floor(n-a*u/o+c)),f=Math.min(i,Math.floor(n+(o-a)*u/o+c));e(t,n,d,f,s)}let o=t[n],l=r,u=i;for(a(t,r,n),s(t[i],o)>0&&a(t,r,i);ls(t[l],o);)++l;for(;s(t[u],o)>0;)--u}0===s(t[r],o)?a(t,r,u):a(t,++u,i),u<=n&&(r=u+1),n<=u&&(i=u-1)}return t})(e,c).subarray(0,c+1));return d+(i(e.subarray(c+1))-d)*(u-c)}}function u(e,t,n=s.Z){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var r,i,o,a,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=Array(i=r-n+1);++lt&&--r,o=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}function l(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t[e.toLowerCase(),t]))}function j(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function k(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function _(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function S(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function O(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function C(e,t,n){var r=v.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function M(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function A(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function P(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function T(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function R(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function D(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function L(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function F(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function V(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function z(e,t,n){var r=v.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function I(e,t,n){var r=g.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Z(e,t,n){var r=v.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function B(e,t,n){var r=v.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function H(e,t){return x(e.getDate(),t,2)}function U(e,t){return x(e.getHours(),t,2)}function W(e,t){return x(e.getHours()%12||12,t,2)}function q(e,t){return x(1+u.Z.count((0,c.Z)(e),e),t,3)}function $(e,t){return x(e.getMilliseconds(),t,3)}function Y(e,t){return $(e,t)+"000"}function G(e,t){return x(e.getMonth()+1,t,2)}function K(e,t){return x(e.getMinutes(),t,2)}function X(e,t){return x(e.getSeconds(),t,2)}function Q(e){var t=e.getDay();return 0===t?7:t}function J(e,t){return x(l.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,l.bL)(e):l.bL.ceil(e)}function et(e,t){return e=ee(e),x(l.bL.count((0,c.Z)(e),e)+(4===(0,c.Z)(e).getDay()),t,2)}function en(e){return e.getDay()}function er(e,t){return x(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return x(e.getFullYear()%100,t,2)}function eo(e,t){return x((e=ee(e)).getFullYear()%100,t,2)}function ea(e,t){return x(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return x((e=n>=4||0===n?(0,l.bL)(e):l.bL.ceil(e)).getFullYear()%1e4,t,4)}function el(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+x(t/60|0,"0",2)+x(t%60,"0",2)}function eu(e,t){return x(e.getUTCDate(),t,2)}function ec(e,t){return x(e.getUTCHours(),t,2)}function ed(e,t){return x(e.getUTCHours()%12||12,t,2)}function ef(e,t){return x(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return x(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return x(e.getUTCMonth()+1,t,2)}function ev(e,t){return x(e.getUTCMinutes(),t,2)}function eg(e,t){return x(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function ex(e,t){return x(a.Ox.count((0,d.Z)(e)-1,e),t,2)}function eb(e){var t=e.getUTCDay();return t>=4||0===t?(0,a.hB)(e):a.hB.ceil(e)}function ew(e,t){return e=eb(e),x(a.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function eE(e){return e.getUTCDay()}function ej(e,t){return x(a.l6.count((0,d.Z)(e)-1,e),t,2)}function ek(e,t){return x(e.getUTCFullYear()%100,t,2)}function e_(e,t){return x((e=eb(e)).getUTCFullYear()%100,t,2)}function eS(e,t){return x(e.getUTCFullYear()%1e4,t,4)}function eO(e,t){var n=e.getUTCDay();return x((e=n>=4||0===n?(0,a.hB)(e):a.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function eC(){return"+0000"}function eM(){return"%"}function eA(e){return+e}function eP(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=E(i),x=w(o),b=E(o),ee=w(c),eb=E(c),eT=w(d),eN=E(d),eR=w(v),eD=E(v),eL={a:function(e){return c[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:Y,g:eo,G:es,H:U,I:W,j:q,L:$,m:G,M:K,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eA,s:eP,S:X,u:Q,U:J,V:et,w:en,W:er,x:null,X:null,y:ei,Y:ea,Z:el,"%":eM},eF={a:function(e){return c[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return v[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:eu,e:eu,f:ep,g:e_,G:eO,H:ec,I:ed,j:ef,L:eh,m:em,M:ev,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eA,s:eP,S:eg,u:ey,U:ex,V:ew,w:eE,W:ej,x:null,X:null,y:ek,Y:eS,Z:eC,"%":eM},eV={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=eb.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=x.exec(t.slice(n));return r?(e.w=b.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=eR.exec(t.slice(n));return r?(e.m=eD.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=eT.exec(t.slice(n));return r?(e.m=eN.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return eZ(e,t,n,r)},d:N,e:N,f:z,g:M,G:C,H:D,I:D,j:R,L:V,m:T,M:L,p:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.p=y.get(r[0].toLowerCase()),n+r[0].length):-1},q:P,Q:Z,s:B,S:F,u:k,U:_,V:S,w:j,W:O,x:function(e,t,r){return eZ(e,n,t,r)},X:function(e,t,n){return eZ(e,r,t,n)},y:M,Y:C,Z:A,"%":I};function ez(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=h(p(o.y,0,1))).getUTCDay())>4||0===i?a.l6.ceil(r):(0,a.l6)(r),r=s.Z.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=f(p(o.y,0,1))).getDay())>4||0===i?l.wA.ceil(r):(0,l.wA)(r),r=u.Z.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?h(p(o.y,0,1)).getUTCDay():f(p(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,h(o)):f(o)}}function eZ(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=eV[(i=t.charAt(a++))in m?t.charAt(a++):i])||(r=o(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return eL.x=ez(n,eL),eL.X=ez(r,eL),eL.c=ez(t,eL),eF.x=ez(n,eF),eF.X=ez(r,eF),eF.c=ez(t,eF),{format:function(e){var t=ez(e+="",eL);return t.toString=function(){return e},t},parse:function(e){var t=eI(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=ez(e+="",eF);return t.toString=function(){return e},t},utcParse:function(e){var t=eI(e+="",!0);return t.toString=function(){return e},t}}}({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"]})).format,r.parse,o=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},x:function(){return a}});var r=n(22274),i=n(34130);function o(){var e,t,n=(0,i.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=a().length,r=ut&&(n=e,e=t,t=n),g=function(n){return Math.max(e,Math.min(t,n))}),r=i>2?f:d,c=h=null,x}function x(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,v)))(e(g(t)))}return x.invert=function(n){return g(t((h||(h=r(m,p.map(e),o.Z)))(n)))},x.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},x.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},x.rangeRound=function(e){return m=Array.from(e),v=a.Z,y()},x.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},x.interpolate=function(e){return arguments.length?(v=e,y()):v},x.unknown=function(e){return arguments.length?(n=e,x):n},function(n,r){return e=n,t=r,y()}}function m(){return p()(u,u)}},79870:function(e,t,n){"use strict";n.r(t),n.d(t,{scaleBand:function(){return r.Z},scaleDiverging:function(){return function e(){var t=(0,i.Q)(C()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,a.Q)(C()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return A},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(C());return t.copy=function(){return w(t,e()).constant(t.constant())},x.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,o.Z),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,o.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return a.Z},scaleOrdinal:function(){return l.Z},scalePoint:function(){return r.x},scalePow:function(){return u.ZP},scaleQuantile:function(){return d.Z},scaleQuantize:function(){return f.Z},scaleRadial:function(){return c.Z},scaleSequential:function(){return function e(){var t=(0,i.Q)(b()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,a.Q)(b()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleSequentialPow:function(){return E},scaleSequentialQuantile:function(){return function e(){var t=[],n=y.yR;function r(e){if(null!=e&&!isNaN(e=+e))return n(((0,k.ZP)(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(_.Z),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(0,S.Z)(t,r/e))},r.copy=function(){return e(n).domain(t)},x.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return j},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(b());return t.copy=function(){return w(t,e()).constant(t.constant())},x.O.apply(t,arguments)}},scaleSqrt:function(){return u._b},scaleSymlog:function(){return s.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return p.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return P.Z}});var r=n(48623),i=n(93963),o=n(5497),a=n(13641),s=n(46494),l=n(34130),u=n(72851),c=n(19637),d=n(96417),f=n(73408),h=n(74995),p=n(37932),m=n(83803),v=n(69777),g=n(74672),y=n(70552),x=n(22274);function b(){var e,t,n,r,i,o=0,a=1,s=y.yR,l=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,a]},u.clamp=function(e){return arguments.length?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=c(v.Z),u.rangeRound=c(g.Z),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),u}}function w(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function E(){var e=(0,u.Hh)(b());return e.copy=function(){return w(e,E()).exponent(e.exponent())},x.O.apply(e,arguments)}function j(){return E.apply(null,arguments).exponent(.5)}var k=n(98038),_=n(1169),S=n(33907),O=n(87475);function C(){var e,t,n,r,i,o,a,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e0;){if((o=(0,r.G9)(u,c,n))===i)return a[s]=u,a[l]=c,t(a);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;i=o}return e},e}},13641:function(e,t,n){"use strict";n.d(t,{Q:function(){return p},Z:function(){return function e(){var t=p((0,a.l4)()).domain([1,10]);return t.copy=function(){return(0,a.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),o=n(10070),a=n(70552),s=n(22274);function l(e){return Math.log(e)}function u(e){return Math.exp(e)}function c(e){return-Math.log(-e)}function d(e){return-Math.exp(-e)}function f(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return function(t){return-e(-t)}}function p(e){var t,n,a=e(l,u),s=a.domain,p=10;function m(){var r,i;return t=(r=p)===Math.E?Math.log:10===r&&Math.log10||2===r&&Math.log2||(r=Math.log(r),function(e){return Math.log(e)/r}),n=10===(i=p)?f:i===Math.E?Math.exp:function(e){return Math.pow(i,e)},s()[0]<0?(t=h(t),n=h(n),e(c,d)):e(l,u),a}return a.base=function(e){return arguments.length?(p=+e,m()):p},a.domain=function(e){return arguments.length?(s(e),m()):s()},a.ticks=function(e){var i,o=s(),a=o[0],l=o[o.length-1];(i=l0){for(;f<=h;++f)for(c=1,u=n(f);cl)break;v.push(d)}}else for(;f<=h;++f)for(c=p-1,u=n(f);c>=1;--c)if(!((d=u*c)l)break;v.push(d)}2*v.length0?l[t-1]:n[0],t=s?[l[s-1],a]:[l[t-1],l[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return l.slice()},c.copy=function(){return e().domain([n,a]).range(u).unknown(t)},o.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),o=n(22274)},19637:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=(0,r.ZP)(),l=[0,1],u=!1;function c(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:u?Math.round(i):i}return c.invert=function(e){return n.invert(s(e))},c.domain=function(e){return arguments.length?(n.domain(e),c):n.domain()},c.range=function(e){return arguments.length?(n.range((l=Array.from(e,a.Z)).map(s)),c):l.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(u=!!e,c):u},c.clamp=function(e){return arguments.length?(n.clamp(e),c):n.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(n.domain(),l).round(u).clamp(n.clamp()).unknown(t)},i.o.apply(c,arguments),(0,o.Q)(c)}}});var r=n(70552),i=n(22274),o=n(93963),a=n(5497);function s(e){return Math.sign(e)*e*e}},46494:function(e,t,n){"use strict";n.d(t,{P:function(){return l},Z:function(){return function e(){var t=l((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},o.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),o=n(22274);function a(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function s(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l(e){var t=1,n=e(a(1),s(t));return n.constant=function(n){return arguments.length?e(a(t=+n),s(t)):t},(0,r.Q)(n)}},74995:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=[.5],o=[0,1],a=1;function s(e){return null!=e&&e<=e?o[(0,r.ZP)(n,e,0,a)]:t}return s.domain=function(e){return arguments.length?(a=Math.min((n=Array.from(e)).length,o.length-1),s):n.slice()},s.range=function(e){return arguments.length?(o=Array.from(e),a=Math.min(n.length,o.length-1),s):o.slice()},s.invertExtent=function(e){var t=o.indexOf(e);return[n[t-1],n[t]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return e().domain(n).range(o).unknown(t)},i.o.apply(s,arguments)}}});var r=n(98038),i=n(22274)},62498:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(32071),i=n(52328),o=n(23733),a=n(11192);function s(e,t,n,s){var l,u,c,d=(0,r.ly)(e,t,n);switch((s=(0,i.Z)(null==s?",f":s)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=s.precision||isNaN(c=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,o.Z)(f)/3)))-(0,o.Z)(Math.abs(d))))||(s.precision=c),(0,a.jH)(s,f);case"":case"e":case"g":case"p":case"r":null!=s.precision||isNaN((l=d,u=Math.abs(u=Math.max(Math.abs(e),Math.abs(t)))-(l=Math.abs(l)),c=Math.max(0,(0,o.Z)(u)-(0,o.Z)(l))+1))||(s.precision=c-("e"===s.type));break;case"f":case"%":null!=s.precision||isNaN(c=Math.max(0,-(0,o.Z)(Math.abs(d))))||(s.precision=c-("%"===s.type)*2)}return(0,a.WU)(s)}},37932:function(e,t,n){"use strict";n.d(t,{Y:function(){return g},Z:function(){return y}});var r=n(1381),i=n(97344),o=n(50690),a=n(76231),s=n(68603),l=n(54076),u=n(18450),c=n(52546),d=n(61743),f=n(70552),h=n(22274),p=n(10070);function m(e){return new Date(e)}function v(e){return e instanceof Date?+e:+new Date(+e)}function g(e,t,n,r,i,o,a,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),x=u(":%S"),b=u("%I:%M"),w=u("%I %p"),E=u("%a %d"),j=u("%b %d"),k=u("%B"),_=u("%Y");function S(e){return(l(e)P*P+T*T&&(_=O,S=C),{cx:_,cy:S,x01:-d,y01:-f,x11:_*(i/E-1),y11:S*(i/E-1)}}function f(){var e=a,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-o.ou,c=p.apply(this,arguments)-o.ou,g=(0,o.Wn)(c-u),y=c>u;if(v||(v=i=(0,r.Z)()),lo.Ho){if(g>o.BZ-o.Ho)v.moveTo(l*(0,o.mC)(u),l*(0,o.O$)(u)),v.arc(0,0,l,u,c,!y),s>o.Ho&&(v.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),v.arc(0,0,s,c,u,y));else{var x,b,w=u,E=c,j=u,k=c,_=g,S=g,O=m.apply(this,arguments)/2,C=O>o.Ho&&(f?+f.apply(this,arguments):(0,o._b)(s*s+l*l)),M=(0,o.VV)((0,o.Wn)(l-s)/2,+n.apply(this,arguments)),A=M,P=M;if(C>o.Ho){var T=(0,o.ZR)(C/s*(0,o.O$)(O)),N=(0,o.ZR)(C/l*(0,o.O$)(O));(_-=2*T)>o.Ho?(T*=y?1:-1,j+=T,k-=T):(_=0,j=k=(u+c)/2),(S-=2*N)>o.Ho?(N*=y?1:-1,w+=N,E-=N):(S=0,w=E=(u+c)/2)}var R=l*(0,o.mC)(w),D=l*(0,o.O$)(w),L=s*(0,o.mC)(k),F=s*(0,o.O$)(k);if(M>o.Ho){var V,z=l*(0,o.mC)(E),I=l*(0,o.O$)(E),Z=s*(0,o.mC)(j),B=s*(0,o.O$)(j);if(go.Ho?P>o.Ho?(x=d(Z,B,R,D,l,P,y),b=d(z,I,L,F,l,P,y),v.moveTo(x.cx+x.x01,x.cy+x.y01),Po.Ho&&_>o.Ho?A>o.Ho?(x=d(L,F,z,I,s,-A,y),b=d(R,D,Z,B,s,-A,y),v.lineTo(x.cx+x.x01,x.cy+x.y01),A=a;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[o]=+e(h,o,i),y[o]=+n(h,o,i),f.point(t?+t(h,o,i):g[o],l?+l(h,o,i):y[o]))}if(p)return f=null,p+""||null}function p(){return(0,a.Z)().defined(u).curve(d).context(c)}return h.x=function(n){return arguments.length?(e="function"==typeof n?n:(0,i.Z)(+n),t=null,h):e},h.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.Z)(+t),h):e},h.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):t},h.y=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),l=null,h):n},h.y0=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),h):n},h.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):l},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(l)},h.lineX1=function(){return p().x(t).y(n)},h.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.Z)(!!e),h):u},h.curve=function(e){return arguments.length?(d=e,null!=c&&(f=d(c)),h):d},h.context=function(e){return arguments.length?(null==e?c=f=null:f=d(c=e),h):c},h}},72299:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var r=Array.prototype.slice},33554:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},46385:function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}n.d(t,{pC:function(){return i},xm:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.ZP=function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},20651:function(e,t,n){"use strict";function r(e){this._context=e}function i(e){return new r(e)}n.d(t,{Z:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&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)}}}},27266:function(e,t,n){"use strict";function r(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*r)/(r+i)))||0}function i(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function o(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function a(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new a(e)}function c(e){return new s(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),a.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:o(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+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,o(this,i(this,n=r(this,e,t)),n);break;default:o(this,this._t0,n=r(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(s.prototype=Object.create(a.prototype)).point=function(e,t){a.prototype.point.call(this,t,e)},l.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,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},j:function(){return r}});var r=o(n(20651).Z);function i(e){this._curve=e}function o(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}}},45742:function(e,t,n){"use strict";function r(e,t){this._context=e,this._t=t}function i(e){return new r(e,.5)}function o(e){return new r(e,0)}function a(e){return new r(e,1)}n.d(t,{RN:function(){return o},ZP:function(){return i},cD:function(){return a}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=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)}}this._x=e,this._y=t}}},59207:function(e,t,n){"use strict";n.r(t),n.d(t,{arc:function(){return r.Z},area:function(){return i.Z},areaRadial:function(){return u},curveBasis:function(){return j},curveBasisClosed:function(){return _},curveBasisOpen:function(){return O},curveBundle:function(){return M},curveCardinal:function(){return A.ZP},curveCardinalClosed:function(){return T},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return V},curveCatmullRomClosed:function(){return I},curveCatmullRomOpen:function(){return B},curveLinear:function(){return W.Z},curveLinearClosed:function(){return U},curveMonotoneX:function(){return q.Z},curveMonotoneY:function(){return q.s},curveNatural:function(){return G},curveStep:function(){return K.ZP},curveStepAfter:function(){return K.cD},curveStepBefore:function(){return K.RN},line:function(){return o.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return a.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return X.Z},stackOffsetDiverging:function(){return J.Z},stackOffsetExpand:function(){return Q.Z},stackOffsetNone:function(){return ee.Z},stackOffsetSilhouette:function(){return et.Z},stackOffsetWiggle:function(){return en.Z},stackOrderAppearance:function(){return er.Z},stackOrderAscending:function(){return ei.Z},stackOrderDescending:function(){return eo.Z},stackOrderInsideOut:function(){return ea.Z},stackOrderNone:function(){return es.Z},stackOrderReverse:function(){return el.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return v.Z},symbolStar:function(){return g.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return x.Z},symbols:function(){return f.u}});var r=n(38764),i=n(12235),o=n(79767),a=n(69619),s=n(23165),l=n(8329);function u(){var e=(0,i.Z)().curve(s.j),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,l.X)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,l.X)(r())},delete e.lineX1,e.lineInnerRadius=function(){return(0,l.X)(o())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,s.Z)(e)):t()._curve},e}var c=n(3326),d=n(72215),f=n(24037),h=n(62628),p=n(9135),m=n(82893),v=n(44523),g=n(86707),y=n(42965),x=n(60598);function b(){}function w(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 E(e){this._context=e}function j(e){return new E(e)}function k(e){this._context=e}function _(e){return new k(e)}function S(e){this._context=e}function O(e){return new S(e)}function C(e,t){this._basis=new E(e),this._beta=t}E.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:w(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},k.prototype={areaStart:b,areaEnd:b,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)}},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:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},S.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||0!==this._line&&3===this._point)&&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,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},C.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var M=function e(t){function n(e){return 1===t?new E(e):new C(e,t)}return n.beta=function(t){return e(+t)},n}(.85),A=n(46385);function P(e,t){this._context=e,this._k=(1-t)/6}P.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,A.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var T=function e(t){function n(e){return new P(e,t)}return n.tension=function(t){return e(+t)},n}(0);function N(e,t){this._context=e,this._k=(1-t)/6}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,A.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R=function e(t){function n(e){return new N(e,t)}return n.tension=function(t){return e(+t)},n}(0),D=n(15);function L(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>D.Ho){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>D.Ho){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function F(e,t){this._context=e,this._alpha=t}F.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var V=function e(t){function n(e){return t?new F(e,t):new A.pC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function z(e,t){this._context=e,this._alpha=t}z.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var I=function e(t){function n(e){return t?new z(e,t):new P(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Z(e,t){this._context=e,this._alpha=t}Z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var B=function e(t){function n(e){return t?new Z(e,t):new N(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function H(e){this._context=e}function U(e){return new H(e)}H.prototype={areaStart:b,areaEnd:b,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))}};var W=n(20651),q=n(27266);function $(e){this._context=e}function Y(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[r-1]=(e[r]+i[r-1])/2;t1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?f:e<=-1?-f:Math.asin(e)}},76751:function(e,t,n){"use strict";function r(e,t){if((s=e.length)>0)for(var n,r,i,o,a,s,l=0,u=e[t[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}n.d(t,{Z:function(){return r}})},22254:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(90541);function i(e,t){if((i=e.length)>0){for(var n,i,o,a=0,s=e[0].length;a1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o0){for(var n,i=0,o=e[t[0]],a=o.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,o,a=0,s=1;so&&(o=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(o);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function o(e){for(var t,n=0,r=-1,i=e.length;++r=0;)n[t]=t;return n}n.d(t,{Z:function(){return r}})},40277:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(81182);function i(e){return(0,r.Z)(e).reverse()}},69619:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(33554);function i(e,t){return te?1:t>=e?0:NaN}function o(e){return e}var a=n(15);function s(){var e=o,t=i,n=null,s=(0,r.Z)(0),l=(0,r.Z)(a.BZ),u=(0,r.Z)(0);function c(r){var i,o,c,d,f,h=r.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(a.BZ,Math.max(-a.BZ,l.apply(this,arguments)-g)),x=Math.min(Math.abs(y)/h,u.apply(this,arguments)),b=x*(y<0?-1:1);for(i=0;i0&&(p+=f);for(null!=t?m.sort(function(e,n){return t(v[e],v[n])}):null!=n&&m.sort(function(e,t){return n(r[e],r[t])}),i=0,c=p?(y-h*b)/p:0;i0?f*c:0)+b,v[o]={data:r[o],index:i,value:f,startAngle:g,endAngle:d,padAngle:x};return v}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.Z)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,n=null,c):t},c.sort=function(e){return arguments.length?(n=e,t=null,c):n},c.startAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,r.Z)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.Z)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,r.Z)(+e),c):u},c}},11053:function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}n.d(t,{x:function(){return r},y:function(){return i}})},3326:function(e,t,n){"use strict";function r(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}n.d(t,{Z:function(){return r}})},98926:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(72299),i=n(33554),o=n(90541),a=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=a.Z,n=o.Z,l=s;function u(r){var i,o,a=e.apply(this,arguments),s=r.length,u=a.length,c=Array(u);for(i=0;ie.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.UD,e=>e.getDate()-1);t.Z=o;var a=o.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,l=30*a,u=365*a},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym-e.getMinutes()*i.yB)},function(e,t){e.setTime(+e+t*i.Y2)},function(e,t){return(t-e)/i.Y2},function(e){return e.getHours()});t.Z=o;var a=o.range},11365:function(e,t,n){"use strict";n.r(t),n.d(t,{timeDay:function(){return l.Z},timeDays:function(){return l.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return s.Z},timeHours:function(){return s.i},timeInterval:function(){return r.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return a.Z},timeMinutes:function(){return a.L},timeMonday:function(){return u.wA},timeMondays:function(){return u.bJ},timeMonth:function(){return c.Z},timeMonths:function(){return c.e},timeSaturday:function(){return u.EY},timeSaturdays:function(){return u.Ff},timeSecond:function(){return o.Z},timeSeconds:function(){return o.m},timeSunday:function(){return u.OM},timeSundays:function(){return u.vm},timeThursday:function(){return u.bL},timeThursdays:function(){return u.$t},timeTickInterval:function(){return y._g},timeTicks:function(){return y.jK},timeTuesday:function(){return u.sy},timeTuesdays:function(){return u.aU},timeWednesday:function(){return u.zg},timeWednesdays:function(){return u.Ld},timeWeek:function(){return u.OM},timeWeeks:function(){return u.vm},timeYear:function(){return d.Z},timeYears:function(){return d.g},utcDay:function(){return p.Z},utcDays:function(){return p.y},utcFriday:function(){return m.QQ},utcFridays:function(){return m.fz},utcHour:function(){return h.Z},utcHours:function(){return h.X},utcMillisecond:function(){return i.Z},utcMilliseconds:function(){return i.m},utcMinute:function(){return f.Z},utcMinutes:function(){return f.N},utcMonday:function(){return m.l6},utcMondays:function(){return m.$3},utcMonth:function(){return v.Z},utcMonths:function(){return v.K},utcSaturday:function(){return m.g4},utcSaturdays:function(){return m.Q_},utcSecond:function(){return o.Z},utcSeconds:function(){return o.m},utcSunday:function(){return m.Ox},utcSundays:function(){return m.SU},utcThursday:function(){return m.hB},utcThursdays:function(){return m.xj},utcTickInterval:function(){return y.jo},utcTicks:function(){return y.WG},utcTuesday:function(){return m.J1},utcTuesdays:function(){return m.DK},utcWednesday:function(){return m.b3},utcWednesdays:function(){return m.uy},utcWeek:function(){return m.Ox},utcWeeks:function(){return m.SU},utcYear:function(){return g.Z},utcYears:function(){return g.D}});var r=n(22179),i=n(30356),o=n(52546),a=n(18450),s=n(54076),l=n(68603),u=n(76231),c=n(50690),d=n(97344),f=n(52004),h=n(28239),p=n(12370),m=n(97631),v=n(94758),g=n(2908),y=n(1381)},22179:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t,n,o,a){function s(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t0))return a;do a.push(o=new Date(+e)),n(e,i),t(e);while(o=e)for(;t(e),!r(e);)e.setTime(e-1)},function(e,t){if(e>=e){if(t<0)for(;++t<=0;)for(;n(e,-1),!r(e););else for(;--t>=0;)for(;n(e,1),!r(e););}})},o&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(o(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}}});var r=new Date,i=new Date},30356:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(22179),i=(0,r.Z)(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?(0,r.Z)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):i:null},t.Z=i;var o=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym)},function(e,t){e.setTime(+e+t*i.yB)},function(e,t){return(t-e)/i.yB},function(e){return e.getMinutes()});t.Z=o;var a=o.range},50690:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=(0,n(22179).Z)(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});t.Z=r;var i=r.range},52546:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*i.Ym)},function(e,t){return(t-e)/i.Ym},function(e){return e.getUTCSeconds()});t.Z=o;var a=o.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return S},jK:function(){return _},jo:function(){return k},WG:function(){return j}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>{var r;return(r=e(t))n?1:r>=n?0:NaN}),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}})(([,,e])=>e).right(c,i);if(o===c.length)return e.every(a(t/s.qz,n/s.qz,r));if(0===o)return l.Z.every(Math.max(a(t,n,r),1));let[u,d]=c[i/c[o-1][2]0?(0,r.Z)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},t.Z=i;var o=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return x},Ld:function(){return v},OM:function(){return a},aU:function(){return m},b$:function(){return y},bJ:function(){return p},bL:function(){return c},mC:function(){return d},sy:function(){return l},vm:function(){return h},wA:function(){return s},zg:function(){return u}});var r=n(22179),i=n(1514);function o(e){return(0,r.Z)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.iM})}var a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),d=o(5),f=o(6),h=a.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,x=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(22179),i=(0,r.Z)(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},t.Z=i;var o=i.range},19785:function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},66700:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19785);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},36386:function(e){function t(e,t,n){function r(){var u=Date.now()-s;u=0?i=setTimeout(r,t-u):(i=null,n||(l=e.apply(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,l,u=function(){a=this,o=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(a,o),a=o=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},63397:function(e,t,n){"use strict";n.d(t,{TA:function(){return nn}});var r,i,o,a=n(2784),s=n(78435),l=n.n(s),u=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==c},c="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function d(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h(Array.isArray(e)?[]:{},e,t):e}function f(e,t,n){return e.concat(t).map(function(e){return d(e,n)})}function h(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||f,n.isMergeableObject=n.isMergeableObject||u;var r,i,o=Array.isArray(t);return o!==Array.isArray(e)?d(t,n):o?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=d(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=h(e[n],t[n],r):i[n]=d(t[n],r)}),i)}h.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return h(e,n,t)},{})};var p=h,m="object"==typeof global&&global&&global.Object===Object&&global,v="object"==typeof self&&self&&self.Object===Object&&self,g=m||v||Function("return this")(),y=g.Symbol,x=Object.prototype,b=x.hasOwnProperty,w=x.toString,E=y?y.toStringTag:void 0,j=function(e){var t=b.call(e,E),n=e[E];try{e[E]=void 0;var r=!0}catch(e){}var i=w.call(e);return r&&(t?e[E]=n:delete e[E]),i},k=Object.prototype.toString,_=y?y.toStringTag:void 0,S=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?j(e):k.call(e)},O=function(e,t){return function(n){return e(t(n))}},C=O(Object.getPrototypeOf,Object),M=function(e){return null!=e&&"object"==typeof e},A=Object.prototype,P=Function.prototype.toString,T=A.hasOwnProperty,N=P.call(Object),R=function(e){if(!M(e)||"[object Object]"!=S(e))return!1;var t=C(e);if(null===t)return!0;var n=T.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&P.call(n)==N},D=function(e,t){return e===t||e!=e&&t!=t},L=function(e,t){for(var n=e.length;n--;)if(D(e[n][0],t))return n;return -1},F=Array.prototype.splice;function V(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},V.prototype.set=function(e,t){var n=this.__data__,r=L(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},I=function(e){if(!z(e))return!1;var t=S(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Z=g["__core-js_shared__"],B=(r=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",H=Function.prototype.toString,U=function(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""},W=/^\[object .+?Constructor\]$/,q=Object.prototype,$=Function.prototype.toString,Y=q.hasOwnProperty,G=RegExp("^"+$.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=function(e,t){var n,r=null==e?void 0:e[t];return z(n=r)&&(!B||!(B in n))&&(I(n)?G:W).test(U(n))?r:void 0},X=K(g,"Map"),Q=K(Object,"create"),J=Object.prototype.hasOwnProperty,ee=Object.prototype.hasOwnProperty;function et(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},eS={};eS["[object Float32Array]"]=eS["[object Float64Array]"]=eS["[object Int8Array]"]=eS["[object Int16Array]"]=eS["[object Int32Array]"]=eS["[object Uint8Array]"]=eS["[object Uint8ClampedArray]"]=eS["[object Uint16Array]"]=eS["[object Uint32Array]"]=!0,eS["[object Arguments]"]=eS["[object Array]"]=eS["[object ArrayBuffer]"]=eS["[object Boolean]"]=eS["[object DataView]"]=eS["[object Date]"]=eS["[object Error]"]=eS["[object Function]"]=eS["[object Map]"]=eS["[object Number]"]=eS["[object Object]"]=eS["[object RegExp]"]=eS["[object Set]"]=eS["[object String]"]=eS["[object WeakMap]"]=!1;var eO=function(e){return function(t){return e(t)}},eC="object"==typeof exports&&exports&&!exports.nodeType&&exports,eM=eC&&"object"==typeof module&&module&&!module.nodeType&&module,eA=eM&&eM.exports===eC&&m.process,eP=function(){try{var e=eM&&eM.require&&eM.require("util").types;if(e)return e;return eA&&eA.binding&&eA.binding("util")}catch(e){}}(),eT=eP&&eP.isTypedArray,eN=eT?eO(eT):function(e){return M(e)&&e_(e.length)&&!!eS[S(e)]},eR=Object.prototype.hasOwnProperty,eD=function(e,t){var n=ey(e),r=!n&&eg(e),i=!n&&!r&&eE(e),o=!n&&!r&&!i&&eN(e),a=n||r||i||o,s=a?ef(e.length,String):[],l=s.length;for(var u in e)(t||eR.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ek(u,l)))&&s.push(u);return s},eL=Object.prototype,eF=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eL)},eV=O(Object.keys,Object),ez=Object.prototype.hasOwnProperty,eI=function(e){if(!eF(e))return eV(e);var t=[];for(var n in Object(e))ez.call(e,n)&&"constructor"!=n&&t.push(n);return t},eZ=function(e){return null!=e&&e_(e.length)&&!I(e)},eB=function(e){return eZ(e)?eD(e):eI(e)},eH=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eU=Object.prototype.hasOwnProperty,eW=function(e){if(!z(e))return eH(e);var t=eF(e),n=[];for(var r in e)"constructor"==r&&(t||!eU.call(e,r))||n.push(r);return n},eq=function(e){return eZ(e)?eD(e,!0):eW(e)},e$="object"==typeof exports&&exports&&!exports.nodeType&&exports,eY=e$&&"object"==typeof module&&module&&!module.nodeType&&module,eG=eY&&eY.exports===e$?g.Buffer:void 0,eK=eG?eG.allocUnsafe:void 0,eX=function(e,t){if(t)return e.slice();var n=e.length,r=eK?eK(n):new e.constructor(n);return e.copy(r),r},eQ=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0||(i[n]=e[n]);return i}function t0(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var t1=function(e){return Array.isArray(e)&&0===e.length},t2=function(e){return"function"==typeof e},t4=function(e){return null!==e&&"object"==typeof e},t3=function(e){return"[object String]"===Object.prototype.toString.call(e)},t5=function(e){return t4(e)&&t2(e.then)};function t6(e,t,n,r){void 0===r&&(r=0);for(var i=tK(t);e&&r=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}var t7=(0,a.createContext)(void 0);function t9(e,t){switch(t.type){case"SET_VALUES":return tQ({},e,{values:t.payload});case"SET_TOUCHED":return tQ({},e,{touched:t.payload});case"SET_ERRORS":if(l()(e.errors,t.payload))return e;return tQ({},e,{errors:t.payload});case"SET_STATUS":return tQ({},e,{status:t.payload});case"SET_ISSUBMITTING":return tQ({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return tQ({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return tQ({},e,{values:t8(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return tQ({},e,{touched:t8(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return tQ({},e,{errors:t8(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return tQ({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return tQ({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var o,a=o;t6(t,a.path)||(t=t8(t,a.path,a.message))}}return t}(n)):t(n)})})},[m.validationSchema]),O=(0,a.useCallback)(function(e,t){return new Promise(function(n){return n(w.current[e].validate(t))})},[]),C=(0,a.useCallback)(function(e){var t=Object.keys(w.current).filter(function(e){return t2(w.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return O(t,t6(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=t8(e,t[r],n)),e},{})})},[O]),M=(0,a.useCallback)(function(e){return Promise.all([C(e),m.validationSchema?S(e):{},m.validate?_(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return p.all([t,n,r],{arrayMerge:nr})})},[m.validate,m.validationSchema,C,_,S]),A=no(function(e){return void 0===e&&(e=j.values),k({type:"SET_ISVALIDATING",payload:!0}),M(e).then(function(e){return b.current&&(k({type:"SET_ISVALIDATING",payload:!1}),k({type:"SET_ERRORS",payload:e})),e})});(0,a.useEffect)(function(){s&&!0===b.current&&l()(v.current,m.initialValues)&&A(v.current)},[s,A]);var P=(0,a.useCallback)(function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:g.current?g.current:m.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:m.initialTouched||{},i=e&&e.status?e.status:x.current?x.current:m.initialStatus;v.current=t,g.current=n,y.current=r,x.current=i;var o=function(){k({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(m.onReset){var a=m.onReset(j.values,X);t5(a)?a.then(o):o()}else o()},[m.initialErrors,m.initialStatus,m.initialTouched]);(0,a.useEffect)(function(){!0===b.current&&!l()(v.current,m.initialValues)&&(d&&(v.current=m.initialValues,P()),s&&A(v.current))},[d,m.initialValues,P,s,A]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(g.current,m.initialErrors)&&(g.current=m.initialErrors||ne,k({type:"SET_ERRORS",payload:m.initialErrors||ne}))},[d,m.initialErrors]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(y.current,m.initialTouched)&&(y.current=m.initialTouched||nt,k({type:"SET_TOUCHED",payload:m.initialTouched||nt}))},[d,m.initialTouched]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(x.current,m.initialStatus)&&(x.current=m.initialStatus,k({type:"SET_STATUS",payload:m.initialStatus}))},[d,m.initialStatus,m.initialTouched]);var T=no(function(e){if(w.current[e]&&t2(w.current[e].validate)){var t=t6(j.values,e),n=w.current[e].validate(t);return t5(n)?(k({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),k({type:"SET_ISVALIDATING",payload:!1})})):(k({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return m.validationSchema?(k({type:"SET_ISVALIDATING",payload:!0}),S(j.values,e).then(function(e){return e}).then(function(t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),k({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),N=(0,a.useCallback)(function(e,t){var n=t.validate;w.current[e]={validate:n}},[]),D=(0,a.useCallback)(function(e){delete w.current[e]},[]),L=no(function(e,t){return k({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?A(j.values):Promise.resolve()}),F=(0,a.useCallback)(function(e){k({type:"SET_ERRORS",payload:e})},[]),V=no(function(e,t){var r=t2(e)?e(j.values):e;return k({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?A(r):Promise.resolve()}),z=(0,a.useCallback)(function(e,t){k({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),I=no(function(e,t,r){return k({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?A(t8(j.values,e,t)):Promise.resolve()}),Z=(0,a.useCallback)(function(e,t){var n,r=t,i=e;if(!t3(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;r=t||s||l,i=/number|range/.test(a)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}(t6(j.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&I(r,i)},[I,j.values]),B=no(function(e){if(t3(e))return function(t){return Z(t,e)};Z(e)}),H=no(function(e,t,n){return void 0===t&&(t=!0),k({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?A(j.values):Promise.resolve()}),U=(0,a.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,H(t||r||i,!0)},[H]),W=no(function(e){if(t3(e))return function(t){return U(t,e)};U(e)}),q=(0,a.useCallback)(function(e){t2(e)?k({type:"SET_FORMIK_STATE",payload:e}):k({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),$=(0,a.useCallback)(function(e){k({type:"SET_STATUS",payload:e})},[]),Y=(0,a.useCallback)(function(e){k({type:"SET_ISSUBMITTING",payload:e})},[]),G=no(function(){return k({type:"SUBMIT_ATTEMPT"}),A().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=Q(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return b.current&&k({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(b.current)throw k({type:"SUBMIT_FAILURE"}),e})}if(b.current&&(k({type:"SUBMIT_FAILURE"}),n))throw e})}),K=no(function(e){e&&e.preventDefault&&t2(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t2(e.stopPropagation)&&e.stopPropagation(),G().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),X={resetForm:P,validateForm:A,validateField:T,setErrors:F,setFieldError:z,setFieldTouched:H,setFieldValue:I,setStatus:$,setSubmitting:Y,setTouched:L,setValues:V,setFormikState:q,submitForm:G},Q=no(function(){return f(j.values,X)}),J=no(function(e){e&&e.preventDefault&&t2(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t2(e.stopPropagation)&&e.stopPropagation(),P()}),ee=(0,a.useCallback)(function(e){return{value:t6(j.values,e),error:t6(j.errors,e),touched:!!t6(j.touched,e),initialValue:t6(v.current,e),initialTouched:!!t6(y.current,e),initialError:t6(g.current,e)}},[j.errors,j.touched,j.values]),et=(0,a.useCallback)(function(e){return{setValue:function(t,n){return I(e,t,n)},setTouched:function(t,n){return H(e,t,n)},setError:function(t){return z(e,t)}}},[I,H,z]),en=(0,a.useCallback)(function(e){var t=t4(e),n=t?e.name:e,r=t6(j.values,n),i={name:n,value:r,onChange:B,onBlur:W};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[W,B,j.values]),er=(0,a.useMemo)(function(){return!l()(v.current,j.values)},[v.current,j.values]),ei=(0,a.useMemo)(function(){return void 0!==u?er?j.errors&&0===Object.keys(j.errors).length:!1!==u&&t2(u)?u(m):u:j.errors&&0===Object.keys(j.errors).length},[u,er,j.errors,m]);return tQ({},j,{initialValues:v.current,initialErrors:g.current,initialTouched:y.current,initialStatus:x.current,handleBlur:W,handleChange:B,handleReset:J,handleSubmit:K,resetForm:P,setErrors:F,setFormikState:q,setFieldTouched:H,setFieldValue:I,setFieldError:z,setStatus:$,setSubmitting:Y,setTouched:L,setValues:V,submitForm:G,validateForm:A,validateField:T,isValid:ei,dirty:er,unregisterField:D,registerField:N,getFieldProps:en,getFieldMeta:ee,getFieldHelpers:et,validateOnBlur:i,validateOnChange:n,validateOnMount:s})}function nr(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?p(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=p(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var ni="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function no(e){var t=(0,a.useRef)(e);return ni(function(){t.current=e}),(0,a.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;re?t:e},0);return Array.from(tQ({},e,{length:t+1}))};(function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)(function(n){var i="function"==typeof r?r:e,a="function"==typeof t?t:e,s=t8(n.values,o,e(t6(n.values,o))),l=r?i(t6(n.errors,o)):void 0,u=t?a(t6(n.touched,o)):void 0;return t1(l)&&(l=void 0),t1(u)&&(u=void 0),tQ({},n,{values:s,errors:r?t8(n.errors,o,l):n.errors,touched:t?t8(n.touched,o,u):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(nc(t),[tL(e,5)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return ns(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return na(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return nl(n,e,t)},function(t){return nl(t,e,null)},function(t){return nl(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return nu(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(t0(n)),n.pop=n.pop.bind(t0(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!l()(t6(e.formik.values,e.name),t6(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?nc(n):[];return t||(t=r[e]),t2(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,i=t.children,o=t.name,s=tJ(t.formik,["validate","validationSchema"]),l=tQ({},e,{form:s,name:o});return n?(0,a.createElement)(n,l):r?r(l):i?"function"==typeof i?i(l):0===a.Children.count(i)?null:a.Children.only(i):null},t})(a.Component).defaultProps={validateOnChange:!0}},73463:function(e,t,n){"use strict";var r=n(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*m}},39515:function(e,t,n){var r=n(38761)(n(37772),"DataView");e.exports=r},89612:function(e,t,n){var r=n(52118),i=n(96909),o=n(98138),a=n(4174),s=n(7942);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},34893:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(d=l,f=!1,t=new r(t));t:for(;++c0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},15308:function(e,t,n){var r=n(55463)();e.exports=r},26548:function(e,t,n){var r=n(15308),i=n(90249);e.exports=function(e,t){return e&&r(e,t,i)}},13324:function(e,t,n){var r=n(17297),i=n(33812);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n=120&&g.length>=120)?new r(h&&g):void 0}g=e[0];var y=-1,b=p[0];t:for(;++yi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,p=new r}else p=t?[]:h;t:for(;++u=i?e:r(e,t,n)}},10768:function(e,t,n){var r=n(77832);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},51821:function(e,t,n){var r=n(77832);e.exports=function(e,t){for(var n=-1,i=e.length;++n-1;);return n}},79882:function(e,t,n){var r=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},92175:function(e,t,n){e=n.nmd(e);var r=n(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},34727:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var r=n(50857),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},27520:function(e,t,n){var r=n(4795);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++rc))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),o=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},79493:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var r=n(30733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},54248:function(e,t,n){var r=n(60241)(Object.keys,Object);e.exports=r},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},43114:function(e,t,n){var r=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},15243:function(e,t,n){var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var r=n(80235),i=n(10326),o=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},66024:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r=t||n<0||v&&r>=c}function x(){var e,n,r,o=i();if(b(o))return w(o);f=setTimeout(x,(e=o-h,n=o-p,r=t-e,v?s(r,c-n):r))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function E(){var e,n=i(),r=b(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},E.flush=function(){return void 0===f?d:w(i())},E}},97329:function(e,t,n){var r=n(61655),i=n(66188),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},17335:function(e,t,n){var r=n(85246),i=n(62034),o=n(36060),a=n(93746),s=o(function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]});e.exports=s},45861:function(e,t,n){e.exports=n(28460)},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,n){var r=n(62034);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},72579:function(e,t,n){var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},3440:function(e,t,n){var r=n(13940),i=n(36740),o=Object.prototype.hasOwnProperty,a=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},93352:function(e,t,n){var r=n(32726),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},95041:function(e,t,n){var r=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},23059:function(e){e.exports=function(e){return e}},30898:function(e,t,n){var r=n(50343),i=n(88390),o=n(36060),a=n(5642),s=o(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},79631:function(e,t,n){var r=n(15183),i=n(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},93746:function(e,t,n){var r=n(67878),i=n(15125);e.exports=function(e){return i(e)&&r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},18149:function(e,t,n){var r=n(88746);e.exports=function(e,t){return r(e,t)}},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:function(e,t,n){var r=n(74511),i=n(47826),o=n(4146),a=o&&o.isMap,s=a?i(a):r;e.exports=s},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},97030:function(e,t,n){var r=n(53366),i=n(47353),o=n(15125),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},43679:function(e,t,n){var r=n(8109),i=n(47826),o=n(4146),a=o&&o.isSet,s=a?i(a):r;e.exports=s},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},90249:function(e,t,n){var r=n(1634),i=n(86411),o=n(67878);e.exports=function(e){return o(e)?r(e):i(e)}},18582:function(e,t,n){var r=n(1634),i=n(18390),o=n(67878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},19950:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,t(e,i,o),e)}),n}},34519:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},30733:function(e,t,n){var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},98537:function(e,t,n){var r=n(84565),i=n(97263)(function(e,t,n){r(e,t,n)});e.exports=i},34291:function(e){e.exports=function(){}},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},17620:function(e,t,n){var r=n(50343),i=n(18874),o=n(29078),a=n(17297),s=n(752),l=n(48642),u=n(29097),c=n(76939),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n});e.exports=d},65798:function(e,t,n){var r=n(20256),i=n(82952),o=n(21401),a=n(33812);e.exports=function(e){return o(e)?r(a(e)):i(e)}},57370:function(e,t,n){var r=n(34311)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=r},829:function(e,t,n){var r=n(62034),i=n(23813),o=n(36060),a=n(82406),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,n){var r=n(54073),i=n(29259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},61258:function(e,t,n){var r=n(36473),i=n(89419),o=n(38101),a=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var n=4294967295,s=a(e,4294967295);t=i(t),e-=4294967295;for(var l=r(s,t);++n"+t.value+""+i[o].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},66655:function(e,t,n){"use strict";var r=n(72346);function i(e,t){for(var n=0;np.length-2?p.length-1:e.length-l;n>0;n--)if(void 0!==p[n])for(i=0;i0&&jn)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==n?this.lex(e,t).toPostfix().postfixEval(n):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=r},38617:function(e,t,n){"use strict";n.d(t,{F:function(){return u},f:function(){return c}});var r=n(2784);let i=["light","dark"],o="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=(0,r.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:a=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:g,children:y,nonce:b})=>{let[x,w]=(0,r.useState)(()=>p(l,c)),[E,k]=(0,r.useState)(()=>p(l)),j=g?Object.values(g):u,_=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=v());let o=g?g[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...j),o&&l.classList.add(o)):o?l.setAttribute(f,o):l.removeAttribute(f),a){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),S=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),O=(0,r.useCallback)(t=>{let r=v(t);k(r),"system"===x&&n&&!e&&_("system")},[x,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(O),O(e),()=>e.removeListener(O)},[O]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&S(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[S]),(0,r.useEffect)(()=>{_(null!=e?e:x)},[e,x]);let C=(0,r.useMemo)(()=>({theme:x,setTheme:S,forcedTheme:e,resolvedTheme:"system"===x?E:x,themes:n?[...u,"system"]:u,systemTheme:n?E:void 0}),[x,S,e,E,n,u]);return r.createElement(s.Provider,{value:C},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:a,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:y,attrs:j,nonce:b}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let o=u?u[e]:e,a=t?e+"|| ''":`'${o}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${a})`:"null":o&&(l+=`d[s](n,${a})`),l},v=e?`!function(){${h}${m(e)}}()`:a?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${o}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${f?"":"else{"+m(l,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),p=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},v=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(76176)}])},4941:function(e,t,n){"use strict";n.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(52735),o=n(82851),a=n(99182);function s(e){let{currentPage:t,parentPage:n,commandPage:s,className:l,...u}=e,c=(0,a.U8)(e=>e.search);if((null==n?void 0:n.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",l),value:"".concat(null==s?void 0:s.label," ").concat(u.children.toString()),...u})}function l(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function u(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||!t||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function c(e){let{heading:t,currentPage:n,commandPage:o,...s}=e,l=(0,a.U8)(e=>e.search);return(0,r.jsx)(a.mY.Group,{heading:l&&(null==n?void 0:n.namespace)!==o.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:o.label}),...s})}n(2784)},3639:function(e,t,n){"use strict";n.d(t,{F:function(){return y}});var r=n(52322),i=n(4941);let o={namespace:"contracts/filterStatus",label:"Contracts filter by status"},a=[{id:"filterStatusActive",value:"active",label:"Contract is active"},{id:"filterStatusSuccessful",value:"successful",label:"Contract was successful"},{id:"filterStatusPending",value:"pending",label:"Contract is pending"},{id:"filterStatusRejected",value:"rejected",label:"Contract was rejected"},{id:"filterStatusFailed",value:"failed",label:"Contract has failed"}];function s(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:o,children:a.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:o,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var l=n(22515),u=n(734);let c={namespace:"contracts/filterAddress",label:"Contracts filter by ID"};function d(e){let{select:t,currentPage:n}=e,{openDialog:o}=(0,l.Rh)(),a=(0,u.O)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:c,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:c,onSelect:()=>{t(),o("contractsFilterContractId")},children:a.label})})}function f(e){let{select:t,currentPage:n,parentPage:o,commandPage:a}=e,{openDialog:s}=(0,l.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:a,onSelect:()=>{t(),s("contractsFilterContractId")},children:c.label})}function h(e){let{currentPage:t,select:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n})]})}let p={namespace:"contracts",label:"Contracts"};function m(e){let{currentPage:t,parentPage:n,pushPage:a,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:p,onSelect:()=>{a(o)},children:o.label}),(0,r.jsx)(f,{currentPage:t,parentPage:n,commandPage:p,select:s})]})}var v=n(92838),g=n(2784);function y(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,v.G)(),l=(0,g.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(h,{currentPage:t,select:l})]})}},71930:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return o}});var r=n(27444);let i={home:"/",volumes:{index:"/volumes"},contracts:{index:"/contracts"},config:{index:"/config",host:"/config#host",pricing:"/config#pricing",dns:"/config#dns",bandwidth:"/config#bandwidth",registry:"/config#registry",accounts:"/config#accounts"},wallet:{view:"/wallet"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},o=r.dk},99957:function(e,t,n){"use strict";n.d(t,{iV:function(){return y},ZR:function(){return g}});var r=n(52322),i=n(2784),o=n(52735),a=n(27444);let s=[{value:"",label:"Off"},{value:"route53",label:"Route 53"},{value:"noip",label:"No-IP"},{value:"duckdns",label:"Duck DNS"},{value:"cloudflare",label:"Cloudflare"}],l={acceptingContracts:!1,netAddress:"",maxContractDuration:void 0,contractPrice:void 0,baseRPCPrice:void 0,sectorAccessPrice:void 0,collateralMultiplier:void 0,maxCollateral:void 0,storagePrice:void 0,egressPrice:void 0,ingressPrice:void 0,priceTableValidity:void 0,maxRegistryEntries:void 0,accountExpiry:void 0,maxAccountBalance:void 0,ingressLimit:void 0,egressLimit:void 0,dnsProvider:"",dnsIpv4:!1,dnsIpv6:!1,dnsDuckDnsToken:"",dnsNoIpEmail:"",dnsNoIpPassword:"",dnsAwsId:"",dnsAwsSecret:"",dnsAwsZoneId:"",dnsCloudflareToken:"",dnsCloudflareZoneId:""};var u=n(6391),c=n.n(u),d=n(96206),f=n(94977),h=n(63955),p=n(92762),m=n(2850);let v=(0,i.createContext)({}),g=()=>(0,i.useContext)(v);function y(e){let{children:t}=e,n=function(){let e=(0,a.rV)({standalone:"configSettingsForm",config:{swr:{refreshInterval:(0,o.sWj)(1)}}}),t=(0,a.Te)(),n=(0,a.uo)({disabled:!e.data||!e.data.ddns.provider,config:{swr:{revalidateOnFocus:!1,errorRetryCount:0}}}),[u,v]=(0,p.Z)("v0/config/showAdvanced",{defaultValue:!1}),g=(0,h.cI)({mode:"all",defaultValues:l}),y=(0,i.useCallback)(e=>{let t;let n=(t=null,"duckdns"===e.ddns.provider&&(t={dnsDuckDnsToken:e.ddns.options.token}),"noip"===e.ddns.provider&&(t={dnsNoIpEmail:e.ddns.options.email,dnsNoIpPassword:e.ddns.options.password}),"route53"===e.ddns.provider&&(t={dnsAwsId:e.ddns.options.ID,dnsAwsSecret:e.ddns.options.secret,dnsAwsZoneId:e.ddns.options.zoneID}),"cloudflare"===e.ddns.provider&&(t={dnsCloudflareToken:e.ddns.options.token,dnsCloudflareZoneId:e.ddns.options.zoneID}),{acceptingContracts:e.acceptingContracts,netAddress:e.netAddress,maxContractDuration:new(c())(e.maxContractDuration).div((0,o.S5V)(1)),contractPrice:(0,d.ll)(e.contractPrice,6),baseRPCPrice:(0,d.ll)((0,f.sS)(e.baseRPCPrice),6),sectorAccessPrice:(0,d.ll)((0,f.nS)(e.sectorAccessPrice),6),collateralMultiplier:new(c())(e.collateralMultiplier),maxCollateral:(0,d.ll)(e.maxCollateral,6),storagePrice:(0,d.ll)((0,f.SY)(e.storagePrice),6),egressPrice:(0,d.ll)((0,f.B1)(e.egressPrice),6),ingressPrice:(0,d.ll)((0,f.dK)(e.ingressPrice),6),priceTableValidity:new(c())(e.priceTableValidity).div(1e9).div(60),maxRegistryEntries:new(c())(e.maxRegistryEntries),accountExpiry:new(c())(e.accountExpiry).div(1e9).div(86400),maxAccountBalance:(0,d.ll)(e.maxAccountBalance,6),ingressLimit:(0,o.BTR)(new(c())(e.ingressLimit)),egressLimit:(0,o.BTR)(new(c())(e.egressLimit)),dnsProvider:e.ddns.provider,dnsIpv4:e.ddns.ipv4,dnsIpv6:e.ddns.ipv6,...t});return g.reset(n),n},[g]),b=(0,i.useMemo)(()=>[e.data],[e.data]),x=(0,i.useCallback)(()=>e.data?y(e.data):null,[y,e.data]),[w,E]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(!w){let e=x();e&&E(!0)}},[w,x]);let k=(0,i.useCallback)(async()=>{let t=await e.mutate();t?(y(t),await n.mutate()):(0,o.OHV)("Error fetching settings.")},[e,y,n]),j=(0,i.useCallback)(async n=>{if(e.data)try{var r,i,a;let s;let l={};u||(l.maxCollateral=(r=n.storagePrice,i=n.collateralMultiplier,new(c())(12960).times(r).div((0,o.S5V)(1)).times(i)));let h={...n,...l},p=await t.patch({payload:(a=e.data,s=null,"duckdns"===h.dnsProvider&&(s={token:h.dnsDuckDnsToken}),"noip"===h.dnsProvider&&(s={email:h.dnsNoIpEmail,password:h.dnsNoIpPassword}),"route53"===h.dnsProvider&&(s={ID:h.dnsAwsId,secret:h.dnsAwsSecret,zoneID:h.dnsAwsZoneId}),"cloudflare"===h.dnsProvider&&(s={token:h.dnsCloudflareToken,zoneID:h.dnsCloudflareZoneId}),{...a,acceptingContracts:h.acceptingContracts,netAddress:h.netAddress,maxContractDuration:Number(h.maxContractDuration.times((0,o.S5V)(1)).toFixed(0)),contractPrice:(0,d.qN)(h.contractPrice).toString(),baseRPCPrice:h.baseRPCPrice.div((0,d.ll)((0,f.sS)(1))).toFixed(0),sectorAccessPrice:h.sectorAccessPrice.div((0,d.ll)((0,f.nS)(1))).toFixed(0),collateralMultiplier:h.collateralMultiplier.toNumber(),maxCollateral:(0,d.qN)(h.maxCollateral).toString(),storagePrice:h.storagePrice.div((0,d.ll)((0,f.SY)(1))).toFixed(0),egressPrice:h.egressPrice.div((0,d.ll)((0,f.B1)(1))).toFixed(0),ingressPrice:h.ingressPrice.div((0,d.ll)((0,f.dK)(1))).toFixed(0),priceTableValidity:Number(h.priceTableValidity.times(60).times(1e9).toFixed(0)),maxRegistryEntries:Number(h.maxRegistryEntries.toFixed(0)),accountExpiry:Number(h.accountExpiry.times(86400).times(1e9).toFixed(0)),maxAccountBalance:(0,d.qN)(h.maxAccountBalance).toString(),ingressLimit:Number((0,o.YaL)(h.ingressLimit).toFixed(0)),egressLimit:Number((0,o.YaL)(h.egressLimit).toFixed(0)),ddns:{...null==a?void 0:a.ddns,provider:h.dnsProvider,ipv4:h.dnsIpv4,ipv6:h.dnsIpv6,options:s}})});if(p.error)throw Error(p.error);g.formState.dirtyFields.netAddress?(0,o.OPV)("Settings have been saved. Address has changed, make sure to re-announce the host.",{duration:2e4}):(0,o.OPV)("Settings have been saved."),await k()}catch(e){(0,o.OHV)(e.message),console.log(e)}},[g,u,e,t,k]),_=(0,i.useMemo)(()=>(function(e){let{showAdvanced:t}=e;return{acceptingContracts:{type:"boolean",category:"host",title:"Accepting contracts",description:(0,r.jsx)(r.Fragment,{children:"Whether or not the host is accepting contracts."}),validation:{}},netAddress:{type:"text",category:"host",title:"Address",description:(0,r.jsx)(r.Fragment,{children:"The network address of the host."}),placeholder:"my.host.com:9882",validation:{required:"required"}},maxContractDuration:{type:"number",category:"host",title:"Maximum contract duration",units:"months",decimalsLimit:2,suggestion:new(c())(6),suggestionTip:"The default maximum duration is 6 months.",description:(0,r.jsx)(r.Fragment,{children:"The maximum contract duration that the host will accept."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(c())(e).gte((0,o.E6f)(4320))||"must be at least 1 month"}}},storagePrice:{title:"Storage price",type:"siacoin",category:"pricing",units:"SC/TB/month",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's storage price in siacoins per TB per month."}),validation:{required:"required"}},egressPrice:{title:"Egress price",type:"siacoin",category:"pricing",units:"SC/TB",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's egress price in siacoins per TB."}),validation:{required:"required"}},ingressPrice:{title:"Ingress price",type:"siacoin",category:"pricing",units:"SC/TB",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's ingress price in siacoins per TB."}),validation:{required:"required"}},collateralMultiplier:{title:"Collateral multiplier",type:"number",category:"pricing",units:"* storage price",placeholder:"2",decimalsLimit:1,description:(0,r.jsx)(r.Fragment,{children:"The host's target collateral as a multiple of storage price."}),suggestion:new(c())(2),suggestionTip:"The default multiplier is 2x the storage price.",validation:{required:"required"}},maxCollateral:{title:"Maximum collateral",type:"siacoin",category:"pricing",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's maximum collateral in siacoins."}),hidden:!t,validation:{required:"required"}},contractPrice:{title:"Contract price",type:"siacoin",category:"pricing",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's contract price in siacoins."}),hidden:!t,validation:{required:"required"}},baseRPCPrice:{title:"Base RPC price",type:"siacoin",category:"pricing",units:"SC/million",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's base RPC price in siacoins per million calls."}),hidden:!t,validation:{required:"required"}},sectorAccessPrice:{title:"Sector access price",type:"siacoin",category:"pricing",units:"SC/million",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's sector access price in siacoins million sectors."}),hidden:!t,validation:{required:"required"}},priceTableValidity:{title:"Price table validity",type:"number",category:"pricing",units:"minutes",description:(0,r.jsx)(r.Fragment,{children:"How long a renter's registered price table remains valid."}),hidden:!t,validation:{required:"required"}},maxRegistryEntries:{title:"Maximum registry size",type:"number",category:"registry",units:"entries",decimalsLimit:0,description:(0,r.jsx)(r.Fragment,{children:"The maximum number of registry entries that the host will store. Each registry entry is up to 113 bytes."}),hidden:!t,validation:{required:"required"}},accountExpiry:{title:"Expiry",type:"number",category:"RHP3",units:"days",description:(0,r.jsx)(r.Fragment,{children:"How long a renter's ephemeral accounts are inactive before the host prunes them and recovers the remaining funds."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(c())(e).gte(7)||"must be at least 1 week"}}},maxAccountBalance:{title:"Maximum balance",type:"siacoin",category:"RHP3",description:(0,r.jsx)(r.Fragment,{children:"Maximum balance a renter's ephemeral account can have. When the limit is reached, deposits are rejected until some of the funds have been spent."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(c())(e).gte(1)||"must be at least 1 SC"}}},ingressLimit:{title:"Ingress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of ingress bandwidth traffic in MB per second."}),validation:{required:"required"}},egressLimit:{title:"Egress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of egress bandwidth traffic in MB per second."}),validation:{required:"required"}},dnsProvider:{title:"Dynamic DNS Provider",type:"select",category:"DNS",options:s,description:(0,r.jsx)(r.Fragment,{children:"Enable dynamic DNS with one of the supported providers."}),validation:{validate:e=>!!s.find(t=>t.value===e)||"must be one of supported providers"}},dnsIpv4:{title:"IPv4",type:"boolean",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Whether IPv4 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv6)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv6"]},dnsIpv6:{type:"boolean",title:"IPv6",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Whether IPv6 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv4)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv4"]},dnsDuckDnsToken:{type:"text",title:"Token",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"DuckDNS token."}),show:e=>"duckdns"===e.dnsProvider,validation:{validate:(e,t)=>"duckdns"!==t.dnsProvider||!!e||"required"}},dnsNoIpEmail:{type:"text",title:"Email",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"No-IP email."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsNoIpPassword:{type:"password",title:"Password",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"No-IP password."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsAwsId:{type:"text",title:"ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsSecret:{type:"password",title:"Secret",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 secret."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 zone ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsCloudflareToken:{type:"text",title:"Token",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Cloudflare token."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}},dnsCloudflareZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Cloudflare zone ID."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}}}})({showAdvanced:u}),[u]),S=(0,o.WsO)(_),O=(0,i.useMemo)(()=>g.handleSubmit(j,S),[g,j,S]),C=(0,i.useCallback)(()=>{let e=g.getValues(),t=x();if(t)for(let[n,r]of(g.reset(t),Object.entries(e)))g.setValue(n,r,{shouldDirty:!0})},[g,x]),{isUnlocked:M}=(0,m.Hv)();(0,i.useEffect)(()=>{M&&k()},[M]),(0,i.useEffect)(()=>{g.formState.isSubmitting||C()},[g,u,b]);let A=Object.entries(g.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length;return{fields:_,settings:e,dynDNSCheck:n,changeCount:A,revalidateAndResetFormData:k,form:g,onSubmit:O,showAdvanced:u,setShowAdvanced:v}}();return(0,r.jsx)(v.Provider,{value:n,children:t})}},92838:function(e,t,n){"use strict";n.d(t,{x:function(){return b},G:function(){return y}});var r=n(52322),i=n(52735),o=n(5632),a=n(27444),s=n(2784),l=n(56860),u=n(41775),c=n(96206),d=n(22515);function f(e){let{id:t,status:n,contentProps:o,buttonProps:l}=e,c=(0,a.kr)(),{openDialog:f}=(0,d.Rh)(),h=(0,s.useCallback)(async()=>{let e=await c.put({params:{id:t}});e.error?(0,i.OHV)(e.error):(0,i.OPV)((0,r.jsxs)(r.Fragment,{children:["Integrity check successfully started, depending on contract data size this operation can take a while. Check ",(0,r.jsx)(i.EKh,{children:"hostd"})," ",(0,r.jsx)(i.rUS,{onClick:()=>f("alerts"),children:"alerts"})," for status updates."]}),{duration:12e3})},[t,c,f]),p=["active","pending"].includes(n);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...l,children:(0,r.jsx)(u.iG7,{})}),contentProps:{align:"start",...o},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Contract ",t.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsx)(i.ua7,{content:p?"Trigger a data integrity check":"Data integrity check only available for active or pending contracts",children:(0,r.jsx)("div",{children:(0,r.jsxs)(i.Xiv,{disabled:!p,onSelect:()=>h(),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(u.dDl,{})}),"Integrity check"]})})})]})}let h=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{id:t,status:n}}=e;return(0,r.jsx)(f,{id:t,status:n})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:t}=e,{id:n,renewedFrom:o,isRenewedFrom:a,renewedTo:s,isRenewedTo:l}=t;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(n),label:"contract ID"}),a&&(0,r.jsx)(i.ua7,{content:"Renewed from",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(u.L6f,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",value:(0,i.I13)(o),label:"contract ID"})]})}),l&&(0,r.jsx)(i.ua7,{content:"Renewed to",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(u.IRm,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",value:(0,i.I13)(s),label:"contract ID"})]})})]})}},{id:"status",label:"status",category:"general",render:e=>{let{data:{status:t}}=e;return(0,r.jsx)(i.Cts,{variant:"active"===t?"amber":"failed"===t?"red":"pending"===t?"amber":"rejected"===t?"red":"successful"===t?"green":void 0,children:t})}},{id:"timeline",label:"timeline",category:"time",render:e=>{let{data:t,context:{currentHeight:n,contractsTimeRange:o}}=e,{contractHeightStart:a,contractHeightEnd:s,revision:l,status:u}=t;return(0,r.jsx)("div",{className:"w-[400px]",children:(0,r.jsx)(i.TaT,{currentHeight:n,contractHeightStart:a,contractHeightEnd:"rejected"===u?void 0:s,proofWindowHeightStart:"rejected"===u?void 0:l.windowStart,proofWindowHeightEnd:"rejected"===u?void 0:l.windowEnd,range:o})})}},{id:"contractHeightStart",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightStart:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,i.jrD)(n,t))})}},{id:"contractHeightEnd",label:"expiration date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightEnd:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,i.jrD)(n,t))})}},{id:"payoutHeight",label:"payout date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{payoutHeight:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,i.jrD)(n,t))})}},{id:"filesize",label:"data size",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{filesize:t}}}=e;return(0,r.jsx)(i.m2c,{size:"12",value:t,variant:"value",format:e=>(0,c.vW)(e.toNumber())})}},{id:"fileMerkleRoot",label:"merkle root",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{fileMerkleRoot:t}}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(t)})}},{id:"payout",label:"payout",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.payout})}},{id:"remainingRenterFunds",label:"remaining renter funds",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.remainingRenterFunds})}},{id:"lockedCollateral",label:"locked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{lockedCollateral:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t})}},{id:"usageRiskedCollateral",label:"risked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.riskedCollateral})}},{id:"usageTotal",label:"total usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.total})}},{id:"usageStorage",label:"storage usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.storage})}},{id:"usageIngress",label:"ingress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.ingress})}},{id:"usageEgress",label:"egress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.egress})}},{id:"usageAccountFunding",label:"account funding usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.accountFunding})}},{id:"usageRpc",label:"RPC usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.rpc})}}].map(e=>({...e,..."financial"===e.category?{icon:(0,r.jsx)(u.dZ8,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"financial: ".concat(e.label)}:{label:e.label,tip:e.label}}));var p=n(6391),m=n.n(p),v=n(25573);let g=(0,s.createContext)({}),y=()=>(0,s.useContext)(g);function b(e){let{children:t}=e,n=function(){var e,t;let n=(0,o.useRouter)(),r=Number(n.query.limit||50),u=Number(n.query.offset||0),{filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:g}=(0,i.Uu5)(),{configurableColumns:y,enabledColumns:b,sortableColumns:x,toggleColumnVisibility:w,setColumnsVisible:E,setColumnsHidden:k,toggleSort:j,setSortDirection:_,setSortField:S,sortField:O,sortDirection:C,resetDefaultColumnVisibility:M}=(0,i.oy6)("hostd/v0/contracts",{columns:h,columnsDefaultVisible:l.gd,sortOptions:l.Fo,defaultSortField:l.nw}),A=(0,a.GP)({payload:{limit:r,offset:u,sortField:null===(e=l.Fo.find(e=>e.id===O))||void 0===e?void 0:e.value,sortDesc:"desc"===C,contractIDs:c.filter(e=>"filterContractId"===e.id).map(e=>e.value),statuses:c.filter(e=>e.id.startsWith("filterStatus")).map(e=>e.value)},config:{swr:{refreshInterval:(0,i.XBW)(60)}}}),P=function(e){let{response:t}=e;return(0,s.useMemo)(()=>{var e;return t.data?(null===(e=t.data.contracts)||void 0===e?void 0:e.map(e=>(function(e){var t;let n=new(m())(e.usage.accountFunding||0),r=new(m())(e.usage.egress||0),i=new(m())(e.usage.ingress||0),o=new(m())(e.usage.riskedCollateral||0),a=new(m())(e.usage.rpc||0),s=new(m())(e.usage.storage||0),l=n.plus(r).plus(i).plus(a).plus(s),u=e.resolutionHeight>0?e.resolutionHeight+144:e.revision.windowEnd+144;return{id:e.revision.parentID,revision:{parentID:e.revision.parentID,unlockConditions:e.revision.unlockConditions,filesize:new(m())(e.revision.filesize||0),fileMerkleRoot:e.revision.fileMerkleRoot,windowStart:e.revision.windowStart,windowEnd:e.revision.windowEnd,payout:new(m())("active"==e.status||e.resolutionHeight>0?e.revision.validProofOutputs[1].value:e.revision.missedProofOutputs[1].value),remainingRenterFunds:new(m())((null===(t=e.revision.validProofOutputs)||void 0===t?void 0:t[0].value)||0),validProofOutputs:e.revision.validProofOutputs,missedProofOutputs:e.revision.missedProofOutputs,unlockHash:e.revision.unlockHash,revisionNumber:e.revision.revisionNumber},usage:{total:l,accountFunding:n,egress:r,ingress:i,riskedCollateral:o,rpc:a,storage:s},lockedCollateral:new(m())(e.lockedCollateral||0),hostSignature:e.hostSignature,renterSignature:e.renterSignature,status:e.status,negotiationHeight:e.negotiationHeight,formationConfirmed:e.formationConfirmed,revisionConfirmed:e.revisionConfirmed,resolutionHeight:e.resolutionHeight,payoutHeight:u,contractHeightStart:e.negotiationHeight,contractHeightEnd:e.revision.windowStart,renewedTo:e.renewedTo,renewedFrom:e.renewedFrom,isRenewedFrom:"fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,isRenewedTo:"fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedTo}})(e)))||[]:null},[t.data])}({response:A}),T=(0,s.useMemo)(()=>h.filter(e=>b.includes(e.id)),[b]),N=A.isValidating,R=A.error,D=(0,i.c2j)(P,N,R,c),{estimatedBlockHeight:L,isSynced:F,nodeBlockHeight:V}=(0,v.n)(),I=F?V:L,{range:z}=(0,s.useMemo)(()=>(0,i.EJC)(I,P||[]),[I,P]);return{dataState:D,offset:u,limit:r,cellContext:{contractsTimeRange:z,currentHeight:I},pageCount:(null==P?void 0:P.length)||0,totalCount:null===(t=A.data)||void 0===t?void 0:t.count,columns:T,dataset:P,configurableColumns:y,enabledColumns:b,sortableColumns:x,toggleColumnVisibility:w,setColumnsVisible:E,setColumnsHidden:k,toggleSort:j,setSortDirection:_,setSortField:S,sortField:O,sortDirection:C,resetDefaultColumnVisibility:M,filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:g}}();return(0,r.jsx)(g.Provider,{value:n,children:t})}},56860:function(e,t,n){"use strict";n.d(t,{Fo:function(){return i},gd:function(){return r},nw:function(){return o}});let r=["contractId","status","usageTotal","lockedCollateral","timeline"],i=[{id:"status",value:"status",label:"status",category:"general"},{id:"timeline",value:"negotiationHeight",label:"timeline",category:"time"},{id:"contractHeightStart",value:"negotiationHeight",label:"start height",category:"time"},{id:"contractHeightEnd",value:"expirationHeight",label:"expiration height",category:"time"}],o="timeline"},22515:function(e,t,n){"use strict";n.d(t,{Tu:function(){return em},xQ:function(){return ev},Rh:function(){return ep}});var r=n(52322),i=n(2784),o=n(52735),a=n(27444),s=n(96206),l=n(63955);function u(e,t,n){var r=this,o=(0,i.useRef)(null),a=(0,i.useRef)(0),s=(0,i.useRef)(null),l=(0,i.useRef)([]),u=(0,i.useRef)(),c=(0,i.useRef)(),d=(0,i.useRef)(e),f=(0,i.useRef)(!0);(0,i.useEffect)(function(){d.current=e},[e]);var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,v="maxWait"in n,g=v?Math.max(+n.maxWait||0,t):null;return(0,i.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,i.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,a.current=e,c.current=d.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!f.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||v&&e-a.current>=g},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},b=function e(){var r=Date.now();if(i(r))return y(r);if(f.current){var s=t-(r-o.current);n(e,v?Math.min(s,g-(r-a.current)):s)}},x=function(){var d=Date.now(),h=i(d);if(l.current=[].slice.call(arguments),u.current=r,o.current=d,h){if(!s.current&&f.current)return a.current=o.current,n(b,t),p?e(o.current):c.current;if(v)return n(b,t),e(o.current)}return s.current||n(b,t),c.current};return x.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},x.isPending=function(){return!!s.current},x.flush=function(){return s.current?y(Date.now()):c.current},x},[p,v,t,g,m,h])}function c(e,t){return e===t}function d(e){return"function"==typeof e?function(){return e}:e}var f=n(99182),h=n(4941),p=n(41775);function m(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(p.Qbr,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No matching directory.":"Select a directory to get started."})]})}function v(){var e;let t=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(null===(e=t.data)||void 0===e?void 0:e.OS)==="windows"?"\\":"/"}var g=n(5648),y=n.n(g),b=n(1573),x=n.n(b);function w(e){let{currentPath:t,childPath:n,separator:r}=e;return"\\"===t&&n.endsWith(":")?n+r:E(t,n,r)}function E(e,t,n){e=e===n?e:x()(e,n),t=y()(t,n);let r="";return(r=e.length?t.length&&t!==n?e===n?n+t:e+n+t:e:t).endsWith(":")?r+n:r}function k(){return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(p.Qbr,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:"Error loading directory."})]})}function j(e){let{path:t,onCreate:n}=e,s=v(),l=(0,a.Kw)(),[u,c]=(0,i.useState)(""),d=(0,i.useCallback)(async()=>{let e=await l.put({payload:{path:w({currentPath:t,childPath:u,separator:s})}});e.error?(0,o.OHV)("Error creating directory: ".concat(e.error)):(n(u),c(""))},[l,u,n,t,s]);return(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden w-full",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(p.L37,{})}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)(o.nvn,{focus:"none",variant:"ghost",placeholder:"type new directory name",className:"!pl-0 font-normal h-5",value:u,onChange:e=>{c(e.currentTarget.value)},onKeyUp:e=>{e.stopPropagation(),"Enter"===e.key&&d()},size:"small"})})]})}function _(e){let{path:t,setPath:n,commandPage:i,currentPage:a,beforeSelect:s,afterSelect:l}=e,u=v();return(0,r.jsx)(h.WD,{commandPage:i,currentPage:a,onSelect:()=>{t&&(s&&s(),n(function(e,t){if(e.endsWith(":\\"))return t;let n="".concat(e.split(t).slice(0,-1).join(t));return""===n?t:n.endsWith(":")?n+t:n}(t,u)),l&&l())},value:"..",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(p.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:".."})]})},"..")}let S={namespace:"volumes/directorySelect",label:"Directory select"};function O(e){var t,n,i,a,s,l,u;let{path:c,dir:d,setPath:g,currentPage:y,beforeSelect:b,afterSelect:x}=e,E=v(),O=(null===(t=d.data)||void 0===t?void 0:t.path)===E,C=(null===(n=d.data)||void 0===n?void 0:n.path)==="\\";return(0,r.jsxs)(h.fu,{currentPage:y,commandPage:S,children:[d.isValidating||!d.data||d.error?null:O?null:(0,r.jsx)(_,{path:d.data.path,setPath:g,currentPage:y,commandPage:S,afterSelect:x,beforeSelect:b}),(0,r.jsxs)(f.mY.Empty,{children:[!d.isValidating&&d.error?(0,r.jsx)(k,{}):null,d.isValidating||d.error||(null===(a=d.data)||void 0===a?void 0:null===(i=a.directories)||void 0===i?void 0:i.length)?null:(0,r.jsx)(m,{search:c})]}),!d.isValidating&&!d.error&&(null===(l=d.data)||void 0===l?void 0:null===(s=l.directories)||void 0===s?void 0:s.length)?d.data.directories.map(e=>(0,r.jsx)(h.WD,{commandPage:S,currentPage:y,onSelect:()=>{b&&b();let t=w({currentPath:d.data.path,childPath:e,separator:E});g(t),x&&x()},value:e,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(p.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:e})]})},e)):null,!C&&!d.isValidating&&!d.error&&(0,r.jsx)(h.WD,{commandPage:S,currentPage:y,value:"create new directory",children:(0,r.jsx)(j,{path:null===(u=d.data)||void 0===u?void 0:u.path,onCreate:e=>{d.mutate(t=>{var n;return{...t,directories:(null==t?void 0:null===(n=t.directories)||void 0===n?void 0:n.concat(e))||[e]}})}})})]})}function C(e){let{path:t,dir:n,onChange:i}=e;return(0,r.jsx)(f.mY,{label:"Select volume",shouldFilter:!1,children:(0,r.jsx)(o.s_4,{className:"h-[200px] p-1 overflow-hidden",children:(0,r.jsx)(o.xrM,{keyToResetScrollbars:t,children:(0,r.jsx)(f.mY.List,{children:(0,r.jsx)(O,{path:t,dir:n,setPath:i,currentPage:S})})})})})}var M=n(82851);function A(e){let{label:t,newSizeGB:n,currentSizeGB:i=0,maxSizeGB:a=0}=e,l=in,c=n>a;return(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"relative w-full h-1 rounded-lg bg-gray-300 dark:bg-graydark-300 overflow-hidden",children:[(0,r.jsx)("div",{className:(0,M.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",void 0!==n&&u?"bg-red-500 dark:bg-red-500":"bg-gray-700 dark:bg-graydark-800",l?"z-10":"z-0"),style:{width:a?"".concat(i/a*100,"%"):"0%"}}),(0,r.jsx)("div",{className:(0,M.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",c?"bg-amber-500 dark:bg-amber-500":void 0!==n&&l?"bg-green-500 dark:bg-green-500":"bg-gray-700 dark:bg-graydark-800",u?"z-10":"z-0"),style:{width:a?"".concat(n/a*100,"%"):"0%"}})]}),(0,r.jsxs)("div",{className:"h-4 flex justify-between",children:[t||(0,r.jsx)("div",{}),void 0!==n&&a?(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"".concat((n/a*100).toFixed(0),"% of ").concat((0,s.vW)((0,o.Hzd)(a))," available")}):null]})]})}let P={size:void 0,name:"",path:"~",immediatePath:"~"};function T(e){var t;let{trigger:n,open:c,onOpenChange:d}=e,{closeDialog:f}=ep(),h=(0,a.HU)(),p=v(),m=(0,l.cI)({mode:"all",defaultValues:P}),g=m.watch("path"),y=m.watch("immediatePath"),b=m.watch("name"),x=m.watch("size"),w=u(()=>{g!==y&&m.setValue("path",y)},500);(0,i.useEffect)(()=>{w()},[y]),(0,i.useEffect)(()=>{g!==y&&m.setValue("immediatePath",g)},[g]);let k=(0,i.useCallback)(async e=>{let t=await h.post({payload:{localPath:E(g,b,p),maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("New volume created."),m.reset(P),f())},[m,h,f,b,g,p]),j=(0,a.cM)({disabled:!c,params:{path:""===g?p:g},config:{swr:{shouldRetryOnError:!1}}});(0,i.useEffect)(()=>{j.error&&m.setError("immediatePath",{message:"Directory does not exist"})},[j.error]),(0,i.useEffect)(()=>{j.data&&j.data.path!==g&&m.setValue("path",j.data.path)},[j.data]);let _=(null==x?void 0:x.toNumber())||0,S=j.data?(0,o.Uzc)(j.data.freeBytes).toNumber():0,O=(0,o.Uzc)((null===(t=j.data)||void 0===t?void 0:t.freeBytes)||0).toNumber(),M=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:"data.dat",validation:{required:"required"}},immediatePath:{type:"text",title:"Location",placeholder:"Enter a directory or select one below",validation:{required:"required",validate:{}}},path:{type:"text",title:"Location",validation:{required:"required",validate:{req:e=>"\\"!==e||"directory within a drive required"}}},size:{type:"number",title:"Size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:e=>{let t="Must be between ".concat((0,s.vW)((0,o.Hzd)(10))," and ").concat((0,s.vW)((0,o.Hzd)(O),{fixed:3}));return e<=O&&e>=10||t},nospace:()=>O>10||"not enough space in directory"}}}}),[O]),T=(0,o.WsO)(M);return m.register("path",M.path.validation),(0,r.jsx)(o.VqE,{title:"Create Volume",trigger:n,open:c,onOpenChange:e=>{e||m.reset(P),d(e)},contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(k,T),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.ZqQ,{form:m,children:"Create"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Create a new volume. Select a system directory and specific the size of the volume."}),(0,r.jsx)(o.yEL,{name:"name",form:m,fields:M}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.yEL,{name:"immediatePath",form:m,fields:M})}),(0,r.jsx)(C,{path:g,dir:j,onChange:e=>m.setValue("path",e,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})})]}),(0,r.jsx)(o.jIp,{name:"size",form:m,fields:M}),(0,r.jsx)(A,{newSizeGB:_,currentSizeGB:0,maxSizeGB:S})]})})}let N={size:void 0};function R(e){var t,n;let{trigger:u,open:c,onOpenChange:d}=e,{id:f,closeDialog:h}=ep(),p=v(),m=(0,a.ST)({disabled:!f,params:{id:f}}),g=(0,a.cM)({disabled:!c||!m.data,params:{path:null===(t=m.data)||void 0===t?void 0:t.localPath.split(p).slice(0,-1).join(p)}}),y=(0,a.G)(),b=(0,l.cI)({mode:"all",defaultValues:N}),x=b.watch("size"),w=(0,i.useCallback)(async e=>{let t=await y.put({params:{id:Number(f)},payload:{maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Volume resizing initiated."),b.reset(N),h())},[b,f,y,h]);(0,i.useEffect)(()=>{m.data&&b.reset(N)},[m.data]);let E=null==x?void 0:x.toNumber(),k=m.data?(0,o.bjP)(m.data.totalSectors).toNumber():0,j=g.data?(0,o.Uzc)(g.data.totalBytes).toNumber():0,_=k=1,O=(0,i.useMemo)(()=>({size:{type:"number",title:"New size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:e=>{let t="Must be between ".concat((0,s.vW)((0,o.Hzd)(10))," and ").concat((0,s.vW)((0,o.Hzd)(j),{fixed:3}));return e<=j&&e>=10||t}}}}}),[j]),C=(0,o.WsO)(O);return(0,r.jsx)(o.VqE,{title:"Resize Volume",trigger:u,open:c,onOpenChange:e=>{e||b.reset(N),d(e)},contentVariants:{className:"max-w-[400px]"},onSubmit:b.handleSubmit(w,C),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.ZqQ,{form:b,children:"Resize"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)(o.nvN,{size:"14",children:["Grow or shrink the volume. When growing a volume, make sure to check that there is enough space on-disk. When shrinking a volume, any data that needs to be moved will be placed into other volumes, meaning that no data will be lost. If ",(0,r.jsx)(o.EKh,{children:"hostd"})," is unable to migrate the data, an error will be returned and the operation will be stopped."]}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(o.__J,{children:"Volume"}),(0,r.jsx)(o.xvT,{font:"mono",ellipsis:!0,children:null===(n=m.data)||void 0===n?void 0:n.localPath})]}),(0,r.jsx)(o.jIp,{name:"size",form:b,fields:O}),(0,r.jsx)(A,{currentSizeGB:k,newSizeGB:E,maxSizeGB:j,label:S?(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:_?"Increase by ".concat((0,s.vW)((0,o.Hzd)(E-k))):"Decrease by ".concat((0,s.vW)((0,o.Hzd)(k-E)))}):(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"Current size is ".concat((0,s.vW)((0,o.Hzd)(k)))})})]})})}let D={path:"",force:!1};function L(e){var t,n,u;let{trigger:c,open:d,onOpenChange:f}=e,{id:h,closeDialog:p}=ep(),m=(0,a.uq)(),v=(0,a.ST)({disabled:!h,params:{id:h}}),g=(0,o.x9T)(null===(t=v.data)||void 0===t?void 0:t.totalSectors),y=(0,o.x9T)(null===(n=v.data)||void 0===n?void 0:n.usedSectors),b=null===(u=v.data)||void 0===u?void 0:u.localPath,x=(0,l.cI)({mode:"all",defaultValues:D}),w=(0,i.useCallback)(async e=>{var t;let n=await m.delete({params:{id:null===(t=v.data)||void 0===t?void 0:t.ID,force:e.force}});n.error?(0,o.OHV)(n.error):((0,o.OPV)("Volume permanently deleted."),x.reset(),p())},[x,v.data,m,p]),E=(0,i.useMemo)(()=>({path:{type:"text",title:"Path",placeholder:b,validation:{required:"required",validate:{equals:e=>e===b||"directory path does not match"}}},force:{type:"boolean",title:"Force",validation:{}}}),[b]),k=(0,o.WsO)(E);return(0,r.jsx)(o.VqE,{title:"Delete Volume",trigger:c,open:d,onOpenChange:e=>{e||x.reset(D),f(e)},contentVariants:{className:"w-[400px]"},onSubmit:x.handleSubmit(w,k),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Are you sure you would like to delete the volume?"}),(0,r.jsxs)(o.nvN,{size:"14",children:[(0,r.jsx)(o.EKh,{children:"hostd"})," will move"," ",(0,r.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(y)})," of stored data and will lose ",(0,r.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(g)})," ","of storage capacity. It is not recommended to remove or resize volumes when contracts are about to expire."]}),(0,r.jsx)(o.nvN,{size:"14",children:"Enter the volume path to confirm the removal."}),(0,r.jsx)(o.yEL,{name:"path",form:x,fields:E}),(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.QBj,{name:"force",size:"medium",form:x,fields:E}),(0,r.jsx)(o.Yqd,{children:(0,r.jsx)("div",{className:"flex gap-1 max-w-[200px]",children:(0,r.jsx)(o.nvN,{size:"14",children:"Force deleting a volume will remove the volume even if the data can NOT be relocated - this will result in severe data loss and contract failure. Be extremely careful when using this option."})})})]}),(0,r.jsx)(o.ZqQ,{variant:"red",form:x,children:"Delete"})]})})}var F=n(6391),V=n.n(F);function I(){let{dialog:e,openDialog:t,closeDialog:n}=ep(),s=(0,a.Os)(),l=(0,a.cj)(),u=(0,i.useCallback)(async e=>{let{sc:t,address:n}=e,r=await l.post({payload:{address:n,amount:t.toString()}});return r.error?{error:r.error}:{transactionId:r.data}},[l]);return(0,r.jsx)(o.weF,{balance:s.data?new(V())(s.data.spendable):void 0,send:u,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}function z(){let{id:e,dialog:t,openDialog:n,closeDialog:s}=ep(),l=(0,a.Qq)({params:{},config:{swr:{revalidateOnFocus:!1,refreshInterval:6e4}},disabled:"transactionDetails"!==t}),u=(0,i.useMemo)(()=>{var t;let n=null===(t=l.data)||void 0===t?void 0:t.find(t=>t.ID===e);return n?{txType:(0,o.leQ)(n.transaction,n.source),inflow:n.inflow,outflow:n.outflow,timestamp:n.timestamp,raw:n.transaction}:null},[l,e]);return(0,r.jsx)(o.mPE,{id:e,transaction:u,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):s()})}var Z=n(734),B=n(2850),H=n(71930),U=n(5632);let W={namespace:"wallet",label:"Wallet"};function q(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:s,closeDialog:l}=ep(),u=(0,U.useRouter)(),c=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:W,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:W,onSelect:()=>{i(W)},children:W.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{u.push(H._.wallet.view),l()},children:"View wallet transactions"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{s("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{s("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{s("addressDetails")},children:"View wallet address"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{var e;(0,o.vQq)(null===(e=c.data)||void 0===e?void 0:e.walletAddress,"wallet address"),l()},children:"Copy wallet address to clipboard"})]})}var $=n(38617);let Y={namespace:"settings",label:"Settings"};function G(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:o}=ep(),{setTheme:a}=(0,$.F)(),{settings:s,setSettings:l,lock:u,currencyOptions:c,setCurrency:d}=(0,B.Hv)();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:Y,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:Y,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{l({siaCentral:!s.siaCentral}),o()},children:(s.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(h.o4,{currentPage:t,commandPage:Y,onSelect:()=>{u(),o()},children:"Lock hostd"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{a("system"),o()},children:"Set theme to system preference"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{a("dark"),o()},children:"Set theme to dark"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{a("light"),o()},children:"Set theme to light"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),c.map(e=>{let{id:n,label:i}=e;return(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{d(n),o()},children:"Set currency to ".concat(i)},n)})]})}let K={namespace:"node",label:"Blockchain node"};function X(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:o,closeDialog:a}=ep(),s=(0,U.useRouter)();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:K,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:K,onSelect:()=>{i(K)},children:K.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:K,onSelect:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:K,onSelect:()=>{s.push(H._.node.index),a()},children:"View peers"})]})}var Q=n(99957);let J={namespace:"configuration",label:"Configuration"};function ee(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,U.useRouter)(),{showAdvanced:a}=(0,Q.ZR)(),{closeDialog:s}=ep();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:J,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:J,onSelect:()=>{i(J)},children:J.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.index),s()},children:"Open configuration"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.host),s()},children:"Configure host"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.pricing),s()},children:"Configure pricing"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.dns),s()},children:"Configure DNS"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.bandwidth),s()},children:"Configure bandwidth"}),a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.registry),s()},children:"Configure registry"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.accounts),s()},children:"Configure accounts"})]})]})}var et=n(92838);function en(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(p.owP,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}var er=n(3639);let ei={namespace:"contracts",label:"Contracts"};function eo(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,s=(0,U.useRouter)(),{closeDialog:l}=ep();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(ei)},children:ei.label}),(0,r.jsx)(h.fu,{currentPage:t,commandPage:ei,children:(0,r.jsx)(h.WD,{currentPage:t,commandPage:ei,onSelect:()=>{s.push(H._.contracts.index),l()},children:"View contracts"})}),(0,r.jsx)(er.F,{parentPage:ei,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}let ea={namespace:"volumes",label:"Volumes"};function es(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,U.useRouter)(),{openDialog:a,closeDialog:s}=ep();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(ea)},children:ea.label}),(0,r.jsxs)(h.fu,{currentPage:t,commandPage:ea,children:[(0,r.jsx)(h.WD,{currentPage:t,commandPage:ea,onSelect:()=>{o.push(H._.volumes.index),s()},children:"View volumes"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:ea,onSelect:()=>{a("volumeCreate")},children:"Create volume"})]})]})}function el(e){var t,n,a,s,l,h,p,m,v;let{panel:g}=e,y=(0,U.useRouter)(),{resetFilters:b}=(0,et.G)(),{closeDialog:x}=ep(),[w,E]=(0,i.useState)(""),[k]=(s=t&&t.equalityFn||c,h=(a=(n=(0,i.useState)(d(w)))[1],l=[n[0],(0,i.useCallback)(function(e){return a(d(e))},[])])[0],p=l[1],m=u((0,i.useCallback)(function(e){return p(e)},[p]),500,t),s((v=(0,i.useRef)(w)).current,w)||(m(w),v.current=w),[h,m]),[j,_]=(0,i.useState)([]),S=j[j.length-1],O=0===j.length,C=(0,i.useCallback)(e=>{_(t=>[...t,e])},[_]),A=(0,i.useCallback)(()=>{x()},[x]),P=(0,i.useCallback)(()=>{E("")},[E]),T=(null==S?void 0:S.empty)||en;return(0,r.jsxs)(f.mY,{label:"Command Menu",loop:!0,className:(0,M.cx)(g&&(0,o.z$)()),onKeyDown:e=>{(j.length>0&&"Escape"===e.key||"Backspace"===e.key&&!w)&&(e.preventDefault(),_(e=>e.slice(0,-1)))},children:[S&&(0,r.jsx)(o.__J,{className:"px-2",children:S.label}),(0,r.jsx)(f.mY.Input,{value:w,onValueChange:E,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==S?void 0:S.prompt)||(O?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsxs)(f.mY.List,{children:[(0,r.jsx)(f.mY.Empty,{children:(0,r.jsx)(T,{search:w,debouncedSearch:k})}),(0,r.jsx)(G,{currentPage:S,pushPage:C}),(0,r.jsx)(q,{currentPage:S,pushPage:C}),(0,r.jsx)(es,{currentPage:S,pushPage:C}),(0,r.jsx)(eo,{currentPage:S,pushPage:C,beforeSelect:()=>{A(),b()},afterSelect:()=>{y.pathname.startsWith(H._.contracts.index)||y.push(H._.contracts.index),P()}}),(0,r.jsx)(ee,{currentPage:S,pushPage:C}),(0,r.jsx)(X,{currentPage:S,pushPage:C})]})]})}function eu(e){let{open:t,onOpenChange:n,setOpen:a}=e,{isUnlocked:s}=(0,B.Hv)(),{isConnected:l}=(0,o.Y97)({route:H.h});return(0,i.useEffect)(()=>{if(!s||!l)return;let e=e=>{"k"===e.key&&e.metaKey&&a()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s,l,a]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.VqE,{open:t,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(el,{})})})}function ec(e){let{open:t,onOpenChange:n}=e,s=(0,a.Z7)(),l=(0,a.Uy)(),u=(0,i.useCallback)(async e=>{let t=await l.post({payload:[e]});t.error?(0,o.OHV)("Error dismissing alert."):(0,o.OPV)("Alert has been dismissed.")},[l]),c=(0,i.useCallback)(async(e,t)=>{if(!s.data)return;let n=await l.post({payload:e});n.error?(0,o.OHV)(t?"Error dismissing all ".concat(t," alerts."):"Error dismissing all alerts."):(0,o.OPV)(t?"All ".concat(t," alerts have been dismissed."):"All alerts have been dismissed.")},[l,s]);return(0,r.jsx)(o.hcY,{open:t,onOpenChange:e=>{n(e)},alerts:s,dataFieldOrder:ed,dataFields:ef,dismissMany:c,dismissOne:u})}let ed=["error","contractID","blockHeight","resolution","volume","volumeID","elapsed","error","checked","missing","corrupt","total","oldSectors","currentSectors","targetSectors","migratedSectors","migrated","target","force"],ef={error:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"error"}),(0,r.jsx)(o.xvT,{color:"contrast",children:t})]})}},contractId:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},blockHeight:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"block height"}),(0,r.jsx)(o.XxW,{value:String(t),type:"block"})]})}},resolution:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"resolution"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},volume:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},volumeID:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume ID"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},elapsed:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"elapsed"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:(0,s.bc)(Number(t))})]})}},checked:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"checked"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},missing:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"missing"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},corrupt:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"corrupt"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},total:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"total"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},oldSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"old sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},currentSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"current sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},targetSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migratedSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migrated:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},target:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},force:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"force"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t?"true":"false"})]})}}},eh=(0,i.createContext)({}),ep=()=>(0,i.useContext)(eh);function em(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(),o=(0,i.useCallback)((e,n)=>{t(e),r(n)},[t,r]),[a,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),s(void 0)},[t,r,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:o,confirm:a,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(eh.Provider,{value:n,children:t})}function ev(){var e;let{dialog:t,openDialog:n,openConfirmDialog:i,onOpenChange:s,closeDialog:l,confirm:u}=ep(),c=(0,a.Wl)(),d=(0,a.Os)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eu,{open:"cmdk"===t,onOpenChange:s,setOpen:()=>n("cmdk")}),(0,r.jsx)(o.DLL,{open:"settings"===t,onOpenChange:s}),(0,r.jsx)(ec,{open:"alerts"===t,onOpenChange:s}),(0,r.jsx)(I,{}),(0,r.jsx)(o.YNn,{open:"addressDetails"===t,address:null===(e=d.data)||void 0===e?void 0:e.address,isValidating:d.isValidating,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(z,{}),(0,r.jsx)(o.D_D,{connect:e=>c.put({payload:{address:e}}),open:"connectPeer"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(T,{open:"volumeCreate"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(R,{open:"volumeResize"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(L,{open:"volumeDelete"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(Z.Y,{open:"contractsFilterContractId"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(o.QHy,{open:"confirm"===t,params:u,onOpenChange:e=>e?i(u):l()})]})}},5187:function(e,t,n){"use strict";n.d(t,{C:function(){return E},B:function(){return w}});var r=n(52322),i=n(2784),o=n(52735),a=n(96206);let s={successful:{color:o.O9T.green[600]},active:{color:o.O9T.amber[600]},pending:{color:o.O9T.amber[600],pattern:!0},rejected:{color:o.O9T.red[600]},failed:{color:o.O9T.red[600]},storage:{label:"storage",color:o.O9T.emerald[600]},storagePhysical:{color:o.O9T.indigo[600]},ingress:{label:"ingress",color:o.O9T.pink[600]},egress:{label:"egress",color:o.O9T.blue[600]},registry:{label:"registry",color:o.O9T.purple[600]},storageWrites:{label:"storage write",color:o.O9T.pink[600]},storageReads:{label:"storage read",color:o.O9T.blue[600]},registryReads:{label:"registry reads",color:o.O9T.green[600]},registryWrites:{label:"registry writes",color:o.O9T.yellow[600]},rpc:{label:"RPC",color:o.O9T.slate[500]},capacityStorage:{label:"capacity",color:o.O9T.neutral[500]},capacityRegistry:{label:"capacity",color:o.O9T.neutral[500]},contract:{color:o.O9T.red[800]},collateral:{color:o.O9T.amber[600]},sectorsTemp:{label:"temp sectors",color:o.O9T.amber[600]},sectorsContract:{label:"contract sectors",color:o.O9T.green[600]},sectorAccess:{label:"sector access",color:o.O9T.blue[600]},sc:{color:o.O9T.green[600]},sf:{color:o.O9T.amber[600]},locked:{color:o.O9T.purple[600]},risked:{color:o.O9T.amber[600]},burnt:{color:o.O9T.red[600]}};var l=n(27444);function u(e,t,n){return{...e,category:t,pattern:n}}function c(e,t,n){return{...e,category:t,label:n}}var d=n(6391),f=n.n(d),h=n(14817),p=n(66700);function m(e,t){for(var n=Math.abs(e).toString();n.length"7"===e.value),x=(0,i.createContext)({}),w=()=>(0,i.useContext)(x);function E(e){let{children:t}=e,n=function(){let[e,t]=(0,y.Z)("v0/metrics/dataTimeSpan",{defaultValue:b.value}),[n,r]=(0,y.Z)("v0/metrics/dataInterval",{defaultValue:b.interval}),d=function(e){let[t,n]=(0,i.useState)(new Date().getTime());return(0,i.useEffect)(()=>{n(new Date().getTime());let t=setInterval(()=>{n(new Date().getTime()),console.log("reset time range")},(0,h.uQ)(e));return()=>clearInterval(t)},[e]),t}(n),x=(0,i.useMemo)(()=>(0,o.OQF)(e,d),[e,d]),w=(0,i.useCallback)(e=>{let n=h.lv.find(t=>t.value===e);r(n.interval),t(n.value)},[t,r]),E=(0,i.useMemo)(()=>(0,o.kOJ)(n),[n]),k=(0,l.KU)({params:{interval:n,start:function(e,t){(0,v.Z)(1,arguments);var n=(0,p.Z)(e);if(isNaN(n.getTime()))throw RangeError("Invalid time value");var r=null!=t&&t.format?String(t.format):"extended",i=null!=t&&t.representation?String(t.representation):"complete";if("extended"!==r&&"basic"!==r)throw RangeError("format must be 'extended' or 'basic'");if("date"!==i&&"time"!==i&&"complete"!==i)throw RangeError("representation must be 'date', 'time', or 'complete'");var o="",a="",s="extended"===r?"-":"";if("time"!==i){var l=m(n.getDate(),2),u=m(n.getMonth()+1,2),c=m(n.getFullYear(),4);o="".concat(c).concat(s).concat(u).concat(s).concat(l)}if("date"!==i){var d=n.getTimezoneOffset();if(0!==d){var f=Math.abs(d),h=m(Math.floor(f/60),2),g=m(f%60,2);a="".concat(d<0?"+":"-").concat(h,":").concat(g)}else a="Z";var y=m(n.getHours(),2),b=m(n.getMinutes(),2),x=m(n.getSeconds(),2),w=""===o?"":"T",E=[y,b,x].join("extended"===r?":":"");o="".concat(o).concat(w).concat(E).concat(a)}return o}(new Date(x.start-(0,h.uQ)(n)))},config:{swr:{revalidateOnFocus:!1,refreshInterval:(0,o.sWj)(5)}}}),j=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({storagePotential:Number(e.revenue.potential.storage),ingressPotential:Number(e.revenue.potential.ingress),egressPotential:Number(e.revenue.potential.egress),registryReadPotential:Number(e.revenue.potential.registryRead),registryWritePotential:Number(e.revenue.potential.registryWrite),rpcPotential:Number(e.revenue.potential.rpc),storage:Number(e.revenue.earned.storage),ingress:Number(e.revenue.earned.ingress),egress:Number(e.revenue.earned.egress),registryRead:Number(e.revenue.earned.registryRead),registryWrite:Number(e.revenue.earned.registryWrite),rpc:Number(e.revenue.earned.rpc),potential:new(f())(e.revenue.potential.storage).plus(e.revenue.potential.ingress).plus(e.revenue.potential.egress).plus(e.revenue.potential.registryRead).plus(e.revenue.potential.registryWrite).plus(e.revenue.potential.rpc).toNumber(),earned:new(f())(e.revenue.earned.storage).plus(e.revenue.earned.ingress).plus(e.revenue.earned.egress).plus(e.revenue.earned.registryRead).plus(e.revenue.earned.registryWrite).plus(e.revenue.earned.rpc).toNumber(),timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","registryRead","registryReadPotential","registryWrite","registryWritePotential","rpc","rpcPotential"],enabledTip:["potential","earned","storage","storagePotential","ingress","ingressPotential","egress","egressPotential","registryRead","registryReadPotential","registryWrite","registryWritePotential","rpc","rpcPotential"],categories:["earned","potential"],data:{storagePotential:u(s.storage,"potential",!0),ingressPotential:u(s.ingress,"potential",!0),egressPotential:u(s.egress,"potential",!0),registryReadPotential:u(s.registryReads,"potential",!0),registryWritePotential:u(s.registryWrites,"potential",!0),rpcPotential:u(s.rpc,"potential",!0),storage:u(s.storage,"earned"),ingress:u(s.ingress,"earned"),egress:u(s.egress,"earned"),registryRead:u(s.registryReads,"earned"),registryWrite:u(s.registryWrites,"earned"),rpc:u(s.rpc,"earned"),earned:c({},"earned","total"),potential:c({},"potential","total")},format:e=>(0,a.Vz)(e),formatTimestamp:E,disableAnimations:!0},chartType:"line",isLoading:k.isValidating}},[k,E]),_=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({locked:Number(e.contracts.lockedCollateral),risked:Number(e.contracts.riskedCollateral),timestamp:new Date(e.timestamp).getTime()})),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["locked","risked"],enabledTip:["locked","risked"],data:{locked:s.locked,risked:s.risked},format:e=>(0,a.Vz)(e),formatTimestamp:E,disableAnimations:!0},chartType:"area",isLoading:k.isValidating}},[k,E]),S=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({baseRPC:(0,g.sS)(e.pricing.baseRPCPrice).toNumber(),collateral:(0,g.c5)(new(f())(e.pricing.storagePrice).times(e.pricing.collateralMultiplier)).toNumber(),contract:Number(e.pricing.contractPrice),egress:(0,g.B1)(e.pricing.egressPrice).toNumber(),ingress:(0,g.dK)(e.pricing.ingressPrice).toNumber(),sectorAccess:(0,g.nS)(e.pricing.sectorAccessPrice).toNumber(),storage:(0,g.SY)(e.pricing.storagePrice).toNumber(),timestamp:new Date(e.timestamp).getTime()})),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],enabledTip:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],data:{baseRPC:s.rpc,sectorAccess:s.sectorAccess,contract:s.contract,collateral:s.collateral,egress:s.egress,ingress:s.ingress,storage:s.storage},format:e=>(0,a.Vz)(e),formatTimestamp:E,disableAnimations:!0},chartType:"line",isLoading:k.isValidating}},[k,E]),O=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({active:e.contracts.active,failed:e.contracts.failed,pending:e.contracts.pending,rejected:e.contracts.rejected,successful:e.contracts.successful,timestamp:new Date(e.timestamp).getTime()})),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["successful","active","pending","rejected","failed"],enabledTip:["successful","active","pending","rejected","failed"],data:{active:s.active,failed:s.failed,pending:s.pending,rejected:s.rejected,successful:s.successful},format:e=>"".concat(e," contracts"),formatTimestamp:E,disableAnimations:!0},chartType:"areastack",isLoading:k.isValidating}},[k,E]),C=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({maxSectors:(0,o.B$N)(e.storage.totalSectors).times(4).toNumber(),registryEntries:113*e.registry.entries,maxRegistryEntries:113*e.registry.maxEntries,tempSectors:(0,o.B$N)(e.storage.tempSectors).times(4).toNumber(),physicalSectors:(0,o.B$N)(e.storage.physicalSectors).times(4).toNumber(),contractSectors:(0,o.B$N)(e.storage.contractSectors).times(4).toNumber(),timestamp:new Date(e.timestamp).getTime()})),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["contractSectors","physicalSectors","tempSectors","registryEntries","maxSectors","maxRegistryEntries"],enabledTip:["contractSectors","physicalSectors","tempSectors","registryEntries","maxSectors","maxRegistryEntries"],categories:["storage used","storage capacity"],data:{maxSectors:c(s.capacityStorage,"storage capacity","sectors"),maxRegistryEntries:c(s.capacityRegistry,"storage capacity","registry"),physicalSectors:c(s.storagePhysical,"storage used","sectors physical"),registryEntries:c(s.registry,"storage used","registry (max)"),tempSectors:c(s.sectorsTemp,"storage used","sectors temp"),contractSectors:c(s.storage,"storage used","sectors contract")},format:e=>(0,a.vW)(e),formatTimestamp:E,disableAnimations:!0},chartType:"line",isLoading:k.isValidating}},[k,E]),M=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({storageReads:e.storage.reads,storageWrites:e.storage.writes,registryReads:e.registry.reads,registryWrites:e.registry.writes,timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storageReads","storageWrites","registryReads","registryWrites"],enabledTip:["storageReads","storageWrites","registryReads","registryWrites"],data:{registryReads:s.registryReads,registryWrites:s.registryWrites,storageReads:s.storageReads,storageWrites:s.storageWrites},format:e=>(0,a.yF)(e),formatTimestamp:E,disableAnimations:!0},chartType:"line",isLoading:k.isValidating}},[k,E]),A=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=k.data)||void 0===e?void 0:e.map(e=>({egress:e.data.rhp3.egress+e.data.rhp2.egress,ingress:e.data.rhp3.ingress+e.data.rhp2.ingress,timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["ingress","egress"],enabledTip:["ingress","egress"],data:{ingress:s.ingress,egress:s.egress},format:e=>(0,a.vW)(e),formatTimestamp:E,disableAnimations:!0},chartType:"line",isLoading:k.isValidating}},[k,E]);return{dataTimeSpan:e,setDataTimeSpan:w,timeRange:x,dataInterval:n,setDataInterval:r,operations:M,revenue:j,collateral:_,contracts:O,storage:C,pricing:S,bandwidth:A}}();return(0,r.jsx)(x.Provider,{value:n,children:t})}},14817:function(e,t,n){"use strict";n.d(t,{lv:function(){return i},uQ:function(){return o}});var r=n(52735);let i=[{label:"1D",interval:"5m",value:"1"},{label:"7D",interval:"15m",value:"7"},{label:"1M",interval:"hourly",value:"30"},{label:"3M",interval:"daily",value:"90"},{label:"1Y",interval:"daily",value:"365"},{label:"ALL",interval:"weekly",value:"all"}];function o(e){return"5m"===e?(0,r.sWj)(5):"15m"===e?(0,r.sWj)(15):"hourly"===e?(0,r.ytg)(1):"daily"===e?(0,r.NrH)(1):"weekly"===e?(0,r.NrH)(7):"monthly"===e?(0,r.NrH)(30):"yearly"===e?(0,r.NrH)(365):0}},78743:function(e,t,n){"use strict";n.d(t,{Y:function(){return y},F:function(){return g}});var r=n(52322),i=n(52735),o=n(27444),a=n(2784);let s=["actions","path","storage","available","readOnly","successfulReads","successfulWrites","failedReads","failedWrites"];var l=n(41775),u=n(96206),c=n(22515);function d(e){var t,n;let{id:a,contentProps:s,buttonProps:u}=e,{openDialog:d}=(0,c.Rh)(),h=(0,o.Rz)(),p=(0,o.ST)({params:{id:a}}),m=(0,o._3)(),v=p.data&&"ready"==p.data.status,g=p.data&&!["ready","unavailable"].includes(p.data.status);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...u,children:(0,r.jsx)(l.iG7,{})}),contentProps:{align:"start",...s},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Volume ",p.data?(0,i.$Gg)(null===(t=p.data)||void 0===t?void 0:t.localPath,24):a]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),g?(0,r.jsxs)(i.Xiv,{onSelect:async()=>{var e;let t=null===(e=p.data)||void 0===e?void 0:e.status,n=await m.delete({params:{id:Number(a)}});n.error?(0,i.OHV)("Error canceling volume ".concat(f(t),".")):(0,i.OPV)("Successfully canceled volume ".concat(f(t),"."))},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.PcV,{})}),"Cancel ".concat(f(null===(n=p.data)||void 0===n?void 0:n.status))]}):null,p.data?(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:async()=>{let e=!p.data.readOnly,t=await h.put({params:{id:Number(a)},payload:{readOnly:e}});t.error?(0,i.OHV)(e?"Error setting volume to read-only.":"Error setting volume to read/write."):(0,i.OPV)(e?"Volume set to read-only.":"Volume set to read/write.")},children:[(0,r.jsx)(i.KpP,{children:p.data.readOnly?(0,r.jsx)(l.dr6,{}):(0,r.jsx)(l.Lur,{})}),p.data.readOnly?"Set to read/write":"Set to read-only"]}):null,(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>d("volumeResize",a),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.BB5,{})}),"Resize"]}),(0,r.jsxs)(i.Xiv,{disabled:g,onSelect:()=>d("volumeDelete",a),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.Jrl,{})}),"Delete"]})]})}function f(e){return"resizing"===e?"resize":"creating"===e?"creation":"removing"===e?"removal":"operation"}let h=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,r.jsx)(d,{id:t.id})}},{id:"path",label:"path",category:"general",render:e=>{let{data:t}=e;return(0,r.jsx)(i.xvT,{font:"mono",ellipsis:!0,children:t.localPath})}},{id:"available",label:"status",category:"general",render:e=>{var t;let{data:n}=e;return(0,r.jsx)(i.ua7,{side:"right",content:n.available?"available":(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.xvT,{children:"unavailable"}),(0,r.jsx)("div",{className:"flex flex-col",children:null===(t=n.errors)||void 0===t?void 0:t.map(e=>(0,r.jsx)(i.xvT,{size:"10",noWrap:!0,children:e},e))})]}),children:(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[n.available&&"ready"===n.status&&(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(l.DI$,{})}),n.available&&"ready"!==n.status&&(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(l.dsj,{})}),!n.available&&(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(l.SmH,{})}),(0,r.jsx)(i.xvT,{size:"12",className:"relative -top-px",children:n.status})]})})}},{id:"readOnly",label:"read/write",category:"general",render:e=>{let{data:t}=e;return t.readOnly?(0,r.jsx)(i.ua7,{content:"Read-only",children:(0,r.jsx)(i.xvT,{children:(0,r.jsx)(l.Lur,{})})}):(0,r.jsx)(i.ua7,{content:"Read and write enabled",children:(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(l.dr6,{})})})}},{id:"storage",label:"storage",category:"general",render:e=>{let{data:t}=e;return(0,r.jsx)("div",{className:"flex gap-1 w-full max-w-[200px] pt-[10px]",children:(0,r.jsx)(i.kod,{variant:"accent",value:t.usedBytes,max:t.totalBytes,label:"".concat((0,u.vW)(t.usedBytes)," / ").concat((0,u.vW)(t.totalBytes))})})}},{id:"successfulReads",label:"successful reads",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulReads,format:e=>e.toNumber().toLocaleString()})}},{id:"successfulWrites",label:"successful writes",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulWrites,format:e=>e.toNumber().toLocaleString()})}},{id:"failedReads",label:"failed reads",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedReads,format:e=>e.toNumber().toLocaleString()})}},{id:"failedWrites",label:"failed writes",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedWrites,format:e=>e.toNumber().toLocaleString()})}}];var p=n(6391),m=n.n(p);let v=(0,a.createContext)({}),g=()=>(0,a.useContext)(v);function y(e){let{children:t}=e,n=function(){let{configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:u,setSortDirection:c,setSortField:d,sortField:f,sortDirection:p,resetDefaultColumnVisibility:v}=(0,i.oy6)("hostd/v0/volumes",{columns:h,columnsDefaultVisible:s}),g=(0,o.Fn)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.find(e=>!["ready","unavailable"].includes(e.status)))?(0,i.XBW)(5):(0,i.XBW)(60)}}}),y=function(e){let{response:t}=e;return(0,a.useMemo)(()=>{var e;return t.data?(null===(e=t.data)||void 0===e?void 0:e.map(e=>({id:String(e.ID),ID:e.ID,localPath:e.localPath,usedSectors:e.usedSectors,usedBytes:new(m())(e.usedSectors).times((0,i.B$N)(4)).toNumber(),totalBytes:new(m())(e.totalSectors).times((0,i.B$N)(4)).toNumber(),totalSectors:e.totalSectors,status:e.status,readOnly:e.readOnly,available:e.available,failedReads:new(m())(e.failedReads),failedWrites:new(m())(e.failedWrites),successfulReads:new(m())(e.successfulReads),successfulWrites:new(m())(e.successfulWrites),errors:e.errors})))||[]:null},[t.data])}({response:g}),b=(0,a.useMemo)(()=>h.filter(e=>t.includes(e.id)),[t]),x=g.isValidating,w=g.error,E=(0,i.c2j)(y,x,w,[]);return{dataState:E,totalCount:(null==y?void 0:y.length)||0,isLoading:g.isValidating,columns:b,dataset:y,configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:u,setSortDirection:c,setSortField:d,sortField:f,sortDirection:p,resetDefaultColumnVisibility:v}}();return(0,r.jsx)(v.Provider,{value:n,children:t})}},734:function(e,t,n){"use strict";n.d(t,{O:function(){return u},Y:function(){return f}});var r=n(52322),i=n(52735),o=n(92838),a=n(63397),s=n(24511),l=n(22515);function u(e){return{id:"filterContractId",value:e,label:"contract ID is ".concat(e)}}let c={contractId:""},d=s.Ry().shape({contractId:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.contractId)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by contract ID",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Contract ID",name:"contractId",placeholder:"Exact match for contract ID",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},25573:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(2850),i=n(27444);function o(){var e,t,n,o;let{isUnlocked:a}=(0,r.Hv)(),s=(0,i.d$)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?6e4:1e4}}}),l=(0,i.nH)(),u=s.data?null===(e=s.data)||void 0===e?void 0:e.chainIndex.height:0,c=(0,i.Os)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)>=u?6e4:1e4}}}),d=a&&u&&l?Number((100*Math.min(u/l,1)).toFixed(1)):0,f=a&&u&&c.data?Number((100*Math.min(c.data.scanHeight/l,1)).toFixed(1)):0;return{isSynced:null===(t=s.data)||void 0===t?void 0:t.synced,isWalletSynced:(null===(n=s.data)||void 0===n?void 0:n.synced)&&(null===(o=c.data)||void 0===o?void 0:o.scanHeight)>=u-1,nodeBlockHeight:u,estimatedBlockHeight:l,syncPercent:d,walletScanPercent:f,moreThan100BlocksToSync:!!u&&!!l&&l-u>100,firstTimeSyncing:!!u&&!!l&&l-u>5e4}}},94977:function(e,t,n){"use strict";n.d(t,{B1:function(){return m},K9:function(){return c},LP:function(){return v},SY:function(){return s},c5:function(){return h},co:function(){return l},dK:function(){return g},dz:function(){return a},nS:function(){return d},rZ:function(){return f},s2:function(){return p},sS:function(){return u}});var r=n(52735),i=n(6391),o=n.n(i);let a="/TB/month";function s(e){return new(o())(e).times((0,r.xf5)(1)).times((0,r.S5V)(1))}let l="/million";function u(e){return new(o())(e).times(1e7)}let c="/million";function d(e){return new(o())(e).times(1e7)}let f="/TB/month";function h(e){return new(o())(e).times((0,r.xf5)(1)).times((0,r.S5V)(1))}let p="/TB";function m(e){return new(o())(e).times((0,r.xf5)(1))}let v="/TB";function g(e){return new(o())(e).times((0,r.xf5)(1))}},76176:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var r=n(52322);n(37832);var i=n(52735),o=n(92838),a=n(5187),s=n(22515),l=n(78743),u=n(99957),c=n(41775),d=n(25573),f=n(71930),h=n(27444),p=n(6391),m=n.n(p),v=n(96206),g=n(2850),y=n(92762);function b(){var e,t;let{isUnlocked:n}=(0,g.Hv)(),{openDialog:o}=(0,s.Rh)(),{dataset:a}=(0,l.F)(),u=(0,h.rV)(),p=(0,h.Os)(),[b,w]=(0,y.Z)("v0/hostd/onboarding/maximized",{defaultValue:!0}),E=(0,d.n)();if(!n)return null;let k=new(m())((null===(e=p.data)||void 0===e?void 0:e.confirmed)||0),j=(0,v.qN)(5e3),_=p.data&&k.gte(j),S=(null==a?void 0:a.length)>0,O=null===(t=u.data)||void 0===t?void 0:t.acceptingContracts,C=E.isSynced,M=[_,S,O,C],A=M.length,P=M.filter(e=>e).length;return A===P?null:b?(0,r.jsx)("div",{className:"z-20 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.TRl,{}),(0,r.jsx)(i.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>w(!1),children:(0,r.jsx)(c.mli,{})})]}),(0,r.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,r.jsx)(i.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, your host is ready to store data."})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>o("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Fund your wallet"}),description:"Fund your wallet with at least ".concat((0,v.Vz)(j)," siacoin to cover required contract collateral.").concat(E.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:_?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!E.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(E.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[E.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>o("addressDetails"),children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.volumes.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 2: Add a volume"}),description:"Add a system volume that will be used to store data.",action:S?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:f._.volumes.index,children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Configure pricing and settings"}),description:"Configure your host's pricing and settings and start accepting contracts.",action:O?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:f._.config.index,children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(x,{title:(0,r.jsx)(i.rUS,{href:f._.node.index,underline:"hover",ellipsis:!0,size:"14",children:"Step 4: Wait for the blockchain to sync"}),description:"The blockchain will sync in the background, this takes some time. No user action required.",action:C?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[E.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.hzZ,{})})]})})]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.zxk,{onClick:()=>w(!0),size:"large",className:"flex gap-3 !px-3",children:(0,r.jsxs)(i.xvT,{className:"flex items-center gap-1",children:[(0,r.jsx)(i.TRl,{}),"Setup: ",P,"/",A," steps complete"]})})})}function x(e){let{title:t,action:n,description:o}=e;return(0,r.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("div",{className:"flex-1 flex items-center",children:t}),n]}),(0,r.jsx)("div",{className:"pr-5",children:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:o})})]})})}function w(e){let{children:t}=e;return(0,r.jsx)(s.Tu,{children:(0,r.jsx)(u.iV,{children:(0,r.jsx)(l.Y,{children:(0,r.jsx)(o.x,{children:(0,r.jsxs)(a.C,{children:[(0,r.jsx)(s.xQ,{}),(0,r.jsx)(b,{}),t]})})})})})}function E(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:f._,children:(0,r.jsx)(w,{children:(0,r.jsx)(t,{...n})})})}},52735:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{hcY:function(){return _F},tU3:function(){return _N},zXq:function(){return _Q},juT:function(){return _o},Cts:function(){return lg},Z58:function(){return SM},WVB:function(){return cP},zxk:function(){return le},b0u:function(){return EL},EKh:function(){return lx},vRO:function(){return Oe},QHy:function(){return SQ},TaT:function(){return Sq},eQh:function(){return lE},HfT:function(){return S1},ncR:function(){return jq},A06:function(){return SR},Vy9:function(){return SD},VqE:function(){return l9},h_2:function(){return cL},Xiv:function(){return cF},Juw:function(){return cV},KpP:function(){return cI},XOF:function(){return jW},jIp:function(){return Ot},QBj:function(){return On},yEL:function(){return _Y},cB7:function(){return jQ},ZqQ:function(){return jX},IKw:function(){return j3},Hzd:function(){return Ov},WN2:function(){return Ow},X6q:function(){return cU},Yqd:function(){return fj},__J:function(){return cJ},rUS:function(){return c2},TRl:function(){return c3},YaL:function(){return Oy},kFS:function(){return cT},FzK:function(){return SG},Clw:function(){return cA},B$N:function(){return Oh},PD$:function(){return Os},Wxm:function(){return fC},uDJ:function(){return j8},s_4:function(){return tG},nvN:function(){return t$},u5Q:function(){return SA},j4H:function(){return f_},J2e:function(){return dg},kod:function(){return dP},xrM:function(){return l6},PhF:function(){return fO},Z0O:function(){return c_},DLL:function(){return Sb},KJW:function(){return _l},rsf:function(){return fU},D_D:function(){return Sd},xf5:function(){return Op},iA_:function(){return j5},t6k:function(){return S2},xvT:function(){return tq},nvn:function(){return d3},ua7:function(){return s7},mPE:function(){return Sf},XxW:function(){return jw},m2c:function(){return jj},YKL:function(){return jk},QUh:function(){return Sw},weF:function(){return _7},YNn:function(){return Sm},DmW:function(){return Sv},jrD:function(){return SI},E6f:function(){return SV},Uzc:function(){return Om},BTR:function(){return Og},O9T:function(){return m4},fVJ:function(){return SS},vQq:function(){return jf},NrH:function(){return EP},Y_Z:function(){return SE},EJC:function(){return OE},kOJ:function(){return S_},OQF:function(){return Sk},leQ:function(){return jv},ytg:function(){return EA},Vkc:function(){return cO},sWj:function(){return EM},S5V:function(){return SL},z$:function(){return tY},XBW:function(){return ET},x9T:function(){return Ob},bjP:function(){return Ox},I13:function(){return jp},cEb:function(){return d4},OHV:function(){return ju},OPV:function(){return jl},$Gg:function(){return jh},Y97:function(){return _T},c2j:function(){return _R},WsO:function(){return _$},Uu5:function(){return Of},oy6:function(){return Od}});var s,l,u,c,d,f,h,p,m,v,g,y,b=n(52322),x=n(2784),w=n.t(x,2),E=n(7896),k=n(34540),j=n(26215),_=n(99575);function S(e){let t=e+"CollectionProvider",[n,r]=(0,k.b)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=x.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=(0,j.e)(t,i.collectionRef);return x.createElement(_.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=x.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=x.useRef(null),s=(0,j.e)(t,a),c=o(l,n);return x.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),x.createElement(_.g7,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=x.useRef(null),o=x.useRef(new Map).current;return x.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=x.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}var O=n(41816),C=n(73597),M=n(72130),A=n(64680),P=n(28245),T=n(26074);let N="Collapsible",[R,D]=(0,k.b)(N),[L,F]=R(N),V=((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=(0,C.T)({prop:r,defaultProp:i,onChange:a});return(0,x.createElement)(L,{scope:n,disabled:o,contentId:(0,T.M)(),open:l,onOpenToggle:(0,x.useCallback)(()=>u(e=>!e),[u])},(0,x.createElement)(M.WV.div,(0,E.Z)({"data-state":z(l),"data-disabled":o?"":void 0},s,{ref:t})))},"CollapsibleContent"),I=((e,t)=>{let{forceMount:n,...r}=e,i=F(V,e.__scopeCollapsible);return(0,x.createElement)(P.z,{present:n||i.open},({present:e})=>(0,x.createElement)(I,(0,E.Z)({},r,{ref:t,present:e})))},(0,x.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,a=F(V,n),[s,l]=(0,x.useState)(r),u=(0,x.useRef)(null),c=(0,j.e)(t,u),d=(0,x.useRef)(0),f=d.current,h=(0,x.useRef)(0),p=h.current,m=a.open||s,v=(0,x.useRef)(m),g=(0,x.useRef)();return(0,x.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,A.b)(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationDuration=g.current.animationDuration,e.style.animationFillMode=g.current.animationFillMode),l(r)}},[a.open,r]),(0,x.createElement)(M.WV.div,(0,E.Z)({"data-state":z(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m},o,{ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style}}),m&&i)}));function z(e){return e?"open":"closed"}let Z="Accordion",B=["Home","End","ArrowDown","ArrowUp"],[H,U,W]=S(Z),[q,$]=(0,k.b)(Z,[W,D]),Y=(D(),x.forwardRef((e,t)=>{let{type:n,...r}=e;return x.createElement(H.Provider,{scope:e.__scopeAccordion},"multiple"===n?x.createElement(ee,(0,E.Z)({},r,{ref:t})):x.createElement(J,(0,E.Z)({},r,{ref:t})))}));Y.propTypes={type(e){let t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[G,K]=q(Z),[X,Q]=q(Z,{collapsible:!1}),J=x.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=(0,C.T)({prop:n,defaultProp:r,onChange:i});return x.createElement(G,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:x.useCallback(()=>o&&l(""),[o,l])},x.createElement(X,{scope:e.__scopeAccordion,collapsible:o},x.createElement(er,(0,E.Z)({},a,{ref:t}))))}),ee=x.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[a=[],s]=(0,C.T)({prop:n,defaultProp:r,onChange:i}),l=x.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=x.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return x.createElement(G,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},x.createElement(X,{scope:e.__scopeAccordion,collapsible:!0},x.createElement(er,(0,E.Z)({},o,{ref:t}))))}),[et,en]=q(Z),er=x.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,o=x.useRef(null),a=(0,j.e)(o,t),s=U(n),l=(0,O.M)(e.onKeyDown,e=>{var t;if(!B.includes(e.key))return;let n=e.target,r=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=r.findIndex(e=>e.ref.current===n),o=r.length;if(-1===i)return;e.preventDefault();let a=i;switch(e.key){case"Home":a=0;break;case"End":a=o-1;break;case"ArrowDown":a=i+1;break;case"ArrowUp":(a=i-1)<0&&(a=o-1)}let l=a%o;null===(t=r[l].ref.current)||void 0===t||t.focus()});return x.createElement(et,{scope:n,disabled:r},x.createElement(H.Slot,{scope:n},x.createElement(M.WV.div,(0,E.Z)({},i,{ref:a,onKeyDown:r?void 0:l}))))}),[ei,eo]=q("AccordionItem");var ea=n(82851),es=n(83317);function el(e){return e.split("-")[0]}function eu(e){return e.split("-")[1]}function ec(e){return["top","bottom"].includes(el(e))?"x":"y"}function ed(e){return"y"===e?"height":"width"}function ef(e,t,n){let r,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=ec(t),u=ed(l),c=i[u]/2-o[u]/2,d="x"===l;switch(el(t)){case"top":r={x:a,y:i.y-o.height};break;case"bottom":r={x:a,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:s};break;case"left":r={x:i.x-o.width,y:s};break;default:r={x:i.x,y:i.y}}switch(eu(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let eh=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=ef(l,r,s),d=r,f={},h=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==n)return{};let u=ep(r),c={x:i,y:o},d=ec(a),f=eu(a),h=ed(d),p=await l.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),x=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===x&&(x=s.floating[h]);let w=u[m],E=x-p[h]-u[v],k=x/2-p[h]/2+(g/2-y/2),j=ey(w,eg(k,E)),_=("start"===f?u[m]:u[v])>0&&k!==j&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(_?kex[e])}let eE={start:"end",end:"start"};function ek(e){return e.replace(/start|end/g,e=>eE[e])}let ej=["top","right","bottom","left"];ej.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let e_=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=e,y=el(a),b=p||(y!==u&&v?function(e){let t=ew(e);return[ek(e),t,ek(t)]}(u):[ew(u)]),x=[u,...b],w=await ev(t,g),E=[],k=(null==(n=s.flip)?void 0:n.overflows)||[];if(f&&E.push(w[y]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let r=eu(e),i=ec(e),o=ed(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ew(a)),{main:a,cross:ew(a)}}(a,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));E.push(w[e],w[t])}if(k=[...k,{placement:a,overflows:E}],!E.every(e=>e<=0)){let e=(null!=(r=null==(i=s.flip)?void 0:i.index)?r:0)+1,t=x[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n="bottom";switch(m){case"bestFit":{let e=null==(o=k.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0].placement;e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}}};function eS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eO(e){return ej.some(t=>e[t]>=0)}let eC=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:r}=e;switch(t){case"referenceHidden":{let t=eS(await ev(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eO(t)}}}case"escaped":{let t=eS(await ev(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:eO(t)}}}default:return{}}}}},eM=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,i=await async function(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=el(n),s=eu(n),l="x"===ec(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function eA(e){return"x"===e?"y":"x"}let eP=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,u={x:n,y:r},c=await ev(t,l),d=ec(el(i)),f=eA(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=ey(h+c["y"===d?"top":"left"],eg(h,h-c[e]))}a&&(p=ey(p+c["y"===f?"top":"left"],eg(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},eT=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:n,y:r},d=ec(i),f=eA(d),h=c[d],p=c[f],m="function"==typeof s?s({...o,placement:i}):s,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+v.mainAxis,n=o.reference[d]+o.reference[e]-v.mainAxis;hn&&(h=n)}if(u){var g,y,b,x;let e="y"===d?"width":"height",t=["top","left"].includes(el(i)),n=o.reference[f]-o.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:null!=(b=null==(x=a.offset)?void 0:x[f])?b:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function eN(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function eR(e){if(null==e)return window;if(!eN(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function eD(e){return eR(e).getComputedStyle(e)}function eL(e){return eN(e)?"":e?(e.nodeName||"").toLowerCase():""}function eF(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function eV(e){return e instanceof eR(e).HTMLElement}function eI(e){return e instanceof eR(e).Element}function ez(e){return"undefined"!=typeof ShadowRoot&&(e instanceof eR(e).ShadowRoot||e instanceof ShadowRoot)}function eZ(e){let{overflow:t,overflowX:n,overflowY:r}=eD(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function eB(e){let t=/firefox/i.test(eF()),n=eD(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function eH(){return!/^((?!chrome|android).)*safari/i.test(eF())}let eU=Math.min,eW=Math.max,eq=Math.round;function e$(e,t,n){var r,i,o,a;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&eV(e)&&(l=e.offsetWidth>0&&eq(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&eq(s.height)/e.offsetHeight||1);let c=eI(e)?eR(e):window,d=!eH()&&n,f=(s.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(o=null==(a=c.visualViewport)?void 0:a.offsetTop)?o:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function eY(e){return((e instanceof eR(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function eG(e){return eI(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function eK(e){return e$(eY(e)).left+eG(e).scrollLeft}function eX(e){return"html"===eL(e)?e:e.assignedSlot||e.parentNode||(ez(e)?e.host:null)||eY(e)}function eQ(e){return eV(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function eJ(e){let t=eR(e),n=eQ(e);for(;n&&["table","td","th"].includes(eL(n))&&"static"===getComputedStyle(n).position;)n=eQ(n);return n&&("html"===eL(n)||"body"===eL(n)&&"static"===getComputedStyle(n).position&&!eB(n))?t:n||function(e){let t=eX(e);for(ez(t)&&(t=t.host);eV(t)&&!["html","body"].includes(eL(t));){if(eB(t))return t;t=t.parentNode}return null}(e)||t}function e0(e){if(eV(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=e$(e);return{width:t.width,height:t.height}}function e1(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=eX(t);return["html","body","#document"].includes(eL(n))?t.ownerDocument.body:eV(n)&&eZ(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=eR(r),a=i?[o].concat(o.visualViewport||[],eZ(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(e1(a))}function e2(e,t,n){return"viewport"===t?em(function(e,t){let n=eR(e),r=eY(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=eH();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):eI(t)?function(e,t){let n=e$(e,!1,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):em(function(e){var t;let n=eY(e),r=eG(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=eW(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=eW(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+eK(e),l=-r.scrollTop;return"rtl"===eD(i||n).direction&&(s+=eW(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(eY(e)))}let e4={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e){let t=e1(e),n=["absolute","fixed"].includes(eD(e).position)&&eV(e)?eJ(e):e;return eI(n)?t.filter(e=>eI(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ez(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==eL(e)):[]}(t):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=e2(t,n,i);return e.top=eW(r.top,e.top),e.right=eU(r.right,e.right),e.bottom=eU(r.bottom,e.bottom),e.left=eW(r.left,e.left),e},e2(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=eV(n),o=eY(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==eL(n)||eZ(o))&&(a=eG(n)),eV(n))){let e=e$(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:eI,getDimensions:e0,getOffsetParent:eJ,getDocumentElement:eY,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=eV(t),i=eY(t),o=e$(e,r&&function(e){let t=e$(e);return eq(t.width)!==e.offsetWidth||eq(t.height)!==e.offsetHeight}(t),"fixed"===n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==eL(t)||eZ(i))&&(a=eG(t)),eV(t)){let e=e$(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=eK(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,eJ(n),r),floating:{...e0(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eD(e).direction};function e3(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=i&&!s,u=o&&!s,c=l||u?[...eI(e)?e1(e):[],...e1(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let d,f=null;if(a){let r=!0;f=new ResizeObserver(()=>{r||n(),r=!1}),eI(e)&&!s&&f.observe(e),f.observe(t)}let h=s?e$(e):null;return s&&function t(){let r=e$(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let e5=(e,t,n)=>eh(e,t,{platform:e4,...n});var e6=n(28316),e8="undefined"!=typeof document?x.useLayoutEffect:x.useEffect;function e7(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=x.useRef(null),a=x.useRef(null),s=function(e){let t=x.useRef(e);return e8(()=>{t.current=e}),t}(i),l=x.useRef(null),[u,c]=x.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=x.useState(t);!function e(t,n){let r,i,o;if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&t.toString()===n.toString())return!0;if(t&&n&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){let r=o[i];if(("_owner"!==r||!t.$$typeof)&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=x.useCallback(()=>{o.current&&a.current&&e5(o.current,a.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&e6.flushSync(()=>{c(e)})})},[d,n,r]);e8(()=>{p.current&&h()},[h]);let p=x.useRef(!1);e8(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=x.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current){if(s.current){let e=s.current(o.current,a.current,h);l.current=e}else h()}},[h,s]),v=x.useCallback(e=>{o.current=e,m()},[m]),g=x.useCallback(e=>{a.current=e,m()},[m]),y=x.useMemo(()=>({reference:o,floating:a}),[]);return x.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let e9=e=>{let{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return eb({element:t.current,padding:n}).fn(e)}else if(t)return eb({element:t,padding:n}).fn(e);return{}}}},te=(0,x.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,x.createElement)(M.WV.svg,(0,E.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,x.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tt(e){let[t,n]=(0,x.useState)(void 0);return(0,A.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}let tn="Popper",[tr,ti]=(0,k.b)(tn),[to,ta]=tr(tn),ts=(0,x.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=ta("PopperAnchor",n),a=(0,x.useRef)(null),s=(0,j.e)(t,a);return(0,x.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,x.createElement)(M.WV.div,(0,E.Z)({},i,{ref:s}))}),tl="PopperContent",[tu,tc]=tr(tl),[td,tf]=tr(tl,{hasParent:!1,positionUpdateFns:new Set}),th=(0,x.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:w=!0,...E}=e,k=ta(tl,c),[_,S]=(0,x.useState)(null),O=(0,j.e)(t,e=>S(e)),[C,P]=(0,x.useState)(null),T=tt(C),N=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,R=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,D="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},L=Array.isArray(v)?v:[v],F=L.length>0,V={padding:D,boundary:L.filter(tg),altBoundary:F},{reference:I,floating:z,strategy:Z,x:B,y:H,placement:U,middlewareData:W,update:q}=e7({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:e3,middleware:[eM({mainAxis:f+R,alignmentAxis:p}),w?eP({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?eT():void 0,...V}):void 0,C?e9({element:C,padding:m}):void 0,w?e_({...V}):void 0,ty({arrowWidth:N,arrowHeight:R}),b?eC({strategy:"referenceHidden"}):void 0].filter(tv)});(0,A.b)(()=>{I(k.anchor)},[I,k.anchor]);let $=null!==B&&null!==H,[Y,G]=tb(U),K=null===(i=W.arrow)||void 0===i?void 0:i.x,X=null===(o=W.arrow)||void 0===o?void 0:o.y,Q=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[J,ee]=(0,x.useState)();(0,A.b)(()=>{_&&ee(window.getComputedStyle(_).zIndex)},[_]);let{hasParent:et,positionUpdateFns:en}=tf(tl,c),er=!et;(0,x.useLayoutEffect)(()=>{if(!er)return en.add(q),()=>{en.delete(q)}},[er,en,q]),(0,x.useLayoutEffect)(()=>{er&&$&&Array.from(en).reverse().forEach(e=>requestAnimationFrame(e))},[er,$,en]);let ei={"data-side":Y,"data-align":G,...E,ref:O,style:{...E.style,animation:$?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,x.createElement)("div",{ref:z,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:$?`translate3d(${Math.round(B)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,x.createElement)(tu,{scope:c,placedSide:Y,onArrowChange:P,arrowX:K,arrowY:X,shouldHideArrow:Q},er?(0,x.createElement)(td,{scope:c,hasParent:!0,positionUpdateFns:en},(0,x.createElement)(M.WV.div,ei)):(0,x.createElement)(M.WV.div,ei)))}),tp={top:"bottom",right:"left",bottom:"top",left:"right"},tm=(0,x.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tc("PopperArrow",n),o=tp[i.placedSide];return(0,x.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,x.createElement)(te,(0,E.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function tv(e){return void 0!==e}function tg(e){return null!==e}let ty=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=tb(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function tb(e){let[t,n="center"]=e.split("-");return[t,n]}let tx=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,x.useState)(null);return(0,x.createElement)(to,{scope:t,anchor:r,onAnchorChange:i},n)};var tw=n(6500);let tE=(0,x.forwardRef)((e,t)=>(0,x.createElement)(M.WV.span,(0,E.Z)({},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}}))),[tk,tj]=(0,k.b)("Tooltip",[ti]),t_=ti(),tS="tooltip.open",[tO,tC]=tk("TooltipProvider"),tM="Tooltip",[tA,tP]=tk(tM),tT="TooltipTrigger",tN=(0,x.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=tP(tT,n),o=tC(tT,n),a=t_(n),s=(0,x.useRef)(null),l=(0,j.e)(t,s,i.onTriggerChange),u=(0,x.useRef)(!1),c=(0,x.useRef)(!1),d=(0,x.useCallback)(()=>u.current=!1,[]);return(0,x.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,x.createElement)(ts,(0,E.Z)({asChild:!0},a),(0,x.createElement)(M.WV.button,(0,E.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,O.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,O.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,O.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,O.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,O.M)(e.onBlur,i.onClose),onClick:(0,O.M)(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),tR="TooltipPortal",[tD,tL]=tk(tR,{forceMount:void 0}),tF="TooltipContent",tV=(0,x.forwardRef)((e,t)=>{let n=tL(tF,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=tP(tF,e.__scopeTooltip);return(0,x.createElement)(P.z,{present:r||a.open},a.disableHoverableContent?(0,x.createElement)(tB,(0,E.Z)({side:i},o,{ref:t})):(0,x.createElement)(tI,(0,E.Z)({side:i},o,{ref:t})))}),tI=(0,x.forwardRef)((e,t)=>{let n=tP(tF,e.__scopeTooltip),r=tC(tF,e.__scopeTooltip),i=(0,x.useRef)(null),o=(0,j.e)(t,i),[a,s]=(0,x.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,x.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,x.useCallback)((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:return null}}(r,n.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect()),u=function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([a,...l]);s(u),d(!0)},[d]);return(0,x.useEffect)(()=>()=>f(),[f]),(0,x.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,x.useEffect)(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,a);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,x.createElement)(tB,(0,E.Z)({},e,{ref:o}))}),[tz,tZ]=tk(tM,{isInside:!1}),tB=(0,x.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=tP(tF,n),u=t_(n),{onClose:c}=l;return(0,x.useEffect)(()=>(document.addEventListener(tS,c),()=>document.removeEventListener(tS,c)),[c]),(0,x.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,x.createElement)(es.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,x.createElement)(th,(0,E.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,x.createElement)(_.A4,null,r),(0,x.createElement)(tz,{scope:n,isInside:!0},(0,x.createElement)(tE,{id:l.contentId,role:"tooltip"},i||r))))}),tH=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tC(tM,e.__scopeTooltip),u=t_(t),[c,d]=(0,x.useState)(null),f=(0,T.M)(),h=(0,x.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,x.useRef)(!1),[g=!1,y]=(0,C.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(tS))):l.onClose(),null==o||o(e)}}),b=(0,x.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),w=(0,x.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),E=(0,x.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),k=(0,x.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,x.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,x.createElement)(tx,u,(0,x.createElement)(tA,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,x.useCallback)(()=>{l.isOpenDelayed?k():w()},[l.isOpenDelayed,k,w]),onTriggerLeave:(0,x.useCallback)(()=>{p?E():window.clearTimeout(h.current)},[E,p]),onOpen:w,onClose:E,disableHoverableContent:p},n))},tU=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=tP(tR,t);return(0,x.createElement)(tD,{scope:t,forceMount:n},(0,x.createElement)(P.z,{present:n||o.open},(0,x.createElement)(tw.h,{asChild:!0,container:i},r)))},tW=(0,ea.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),tq=x.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,b.jsx)(n,{ref:t,className:(0,ea.cx)(r,tW({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),t$=x.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,b.jsx)(tq,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,ea.cx)("leading-relaxed md:leading-relaxed",e.className)})}),tY=(0,ea.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),tG=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,b.jsx)("div",{ref:t,className:tY({className:n}),...r})});var tK=n(34406);let tX=(void 0===tK||tK.env,"production"),tQ=1/60*1e3,tJ="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),t0="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(tJ()),tQ),t1=!0,t2=!1,t4=!1,t3={delta:0,timestamp:0},t5=["read","update","preRender","render","postRender"],t6=t5.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:n;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nt2=!0),e),{}),t8=t5.reduce((e,t)=>{let n=t6[t];return e[t]=(e,t=!1,r=!1)=>(t2||nn(),n.schedule(e,t,r)),e},{}),t7=t5.reduce((e,t)=>(e[t]=t6[t].cancel,e),{}),t9=t5.reduce((e,t)=>(e[t]=()=>t6[t].process(t3),e),{}),ne=e=>t6[e].process(t3),nt=e=>{t2=!1,t3.delta=t1?tQ:Math.max(Math.min(e-t3.timestamp,40),1),t3.timestamp=e,t4=!0,t5.forEach(ne),t4=!1,t2&&(t1=!1,t0(nt))},nn=()=>{t2=!0,t1=!0,t4||t0(nt)},nr=()=>t3,ni="undefined"!=typeof document,no=ni?x.useLayoutEffect:x.useEffect;function na(){let e=(0,x.useRef)(!1);return no(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let ns=(0,x.createContext)(null);function nl(e){let t=(0,x.useRef)(null);return null===t.current&&(t.current=e()),t.current}class nu extends x.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function nc({children:e,isPresent:t}){let n=(0,x.useId)(),r=(0,x.useRef)(null),i=(0,x.useRef)({width:0,height:0,top:0,left:0});return(0,x.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!r.current||!e||!o)return;r.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` + */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,x=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return E(e)||w(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===x||e.$$typeof===b||e.$$typeof===g)},t.typeOf=w},73887:function(e,t,n){"use strict";e.exports=n(43459)},62333:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*m}},39515:function(e,t,n){var r=n(38761)(n(37772),"DataView");e.exports=r},89612:function(e,t,n){var r=n(52118),i=n(96909),o=n(98138),a=n(4174),s=n(7942);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},34893:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(d=l,f=!1,t=new r(t));t:for(;++c0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},15308:function(e,t,n){var r=n(55463)();e.exports=r},26548:function(e,t,n){var r=n(15308),i=n(90249);e.exports=function(e,t){return e&&r(e,t,i)}},13324:function(e,t,n){var r=n(17297),i=n(33812);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n=120&&g.length>=120)?new r(h&&g):void 0}g=e[0];var y=-1,x=p[0];t:for(;++yi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,p=new r}else p=t?[]:h;t:for(;++u=i?e:r(e,t,n)}},10768:function(e,t,n){var r=n(77832);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},51821:function(e,t,n){var r=n(77832);e.exports=function(e,t){for(var n=-1,i=e.length;++n-1;);return n}},79882:function(e,t,n){var r=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},92175:function(e,t,n){e=n.nmd(e);var r=n(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},34727:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var r=n(50857),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},27520:function(e,t,n){var r=n(4795);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++rc))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),o=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},79493:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var r=n(30733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},54248:function(e,t,n){var r=n(60241)(Object.keys,Object);e.exports=r},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},43114:function(e,t,n){var r=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},15243:function(e,t,n){var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var r=n(80235),i=n(10326),o=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},66024:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r=t||n<0||v&&r>=c}function b(){var e,n,r,o=i();if(x(o))return w(o);f=setTimeout(b,(e=o-h,n=o-p,r=t-e,v?s(r,c-n):r))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function E(){var e,n=i(),r=x(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(b,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(b,t),y(h)}return void 0===f&&(f=setTimeout(b,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),E.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},E.flush=function(){return void 0===f?d:w(i())},E}},97329:function(e,t,n){var r=n(61655),i=n(66188),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},17335:function(e,t,n){var r=n(85246),i=n(62034),o=n(36060),a=n(93746),s=o(function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]});e.exports=s},45861:function(e,t,n){e.exports=n(28460)},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,n){var r=n(62034);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},72579:function(e,t,n){var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},3440:function(e,t,n){var r=n(13940),i=n(36740),o=Object.prototype.hasOwnProperty,a=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},93352:function(e,t,n){var r=n(32726),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},95041:function(e,t,n){var r=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},23059:function(e){e.exports=function(e){return e}},30898:function(e,t,n){var r=n(50343),i=n(88390),o=n(36060),a=n(5642),s=o(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},79631:function(e,t,n){var r=n(15183),i=n(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},93746:function(e,t,n){var r=n(67878),i=n(15125);e.exports=function(e){return i(e)&&r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},18149:function(e,t,n){var r=n(88746);e.exports=function(e,t){return r(e,t)}},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:function(e,t,n){var r=n(74511),i=n(47826),o=n(4146),a=o&&o.isMap,s=a?i(a):r;e.exports=s},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},97030:function(e,t,n){var r=n(53366),i=n(47353),o=n(15125),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},43679:function(e,t,n){var r=n(8109),i=n(47826),o=n(4146),a=o&&o.isSet,s=a?i(a):r;e.exports=s},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},90249:function(e,t,n){var r=n(1634),i=n(86411),o=n(67878);e.exports=function(e){return o(e)?r(e):i(e)}},18582:function(e,t,n){var r=n(1634),i=n(18390),o=n(67878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},19950:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,t(e,i,o),e)}),n}},34519:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},30733:function(e,t,n){var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},98537:function(e,t,n){var r=n(84565),i=n(97263)(function(e,t,n){r(e,t,n)});e.exports=i},34291:function(e){e.exports=function(){}},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},17620:function(e,t,n){var r=n(50343),i=n(18874),o=n(29078),a=n(17297),s=n(752),l=n(48642),u=n(29097),c=n(76939),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n});e.exports=d},65798:function(e,t,n){var r=n(20256),i=n(82952),o=n(21401),a=n(33812);e.exports=function(e){return o(e)?r(a(e)):i(e)}},57370:function(e,t,n){var r=n(34311)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=r},829:function(e,t,n){var r=n(62034),i=n(23813),o=n(36060),a=n(82406),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,n){var r=n(54073),i=n(29259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},61258:function(e,t,n){var r=n(36473),i=n(89419),o=n(38101),a=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var n=4294967295,s=a(e,4294967295);t=i(t),e-=4294967295;for(var l=r(s,t);++n"+t.value+""+i[o].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},66655:function(e,t,n){"use strict";var r=n(72346);function i(e,t){for(var n=0;np.length-2?p.length-1:e.length-l;n>0;n--)if(void 0!==p[n])for(i=0;i0&&kn)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==n?this.lex(e,t).toPostfix().postfixEval(n):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=r},38617:function(e,t,n){"use strict";n.d(t,{F:function(){return u},f:function(){return c}});var r=n(2784);let i=["light","dark"],o="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=(0,r.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:a=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:g,children:y,nonce:x})=>{let[b,w]=(0,r.useState)(()=>p(l,c)),[E,j]=(0,r.useState)(()=>p(l)),k=g?Object.values(g):u,_=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=v());let o=g?g[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...k),o&&l.classList.add(o)):o?l.setAttribute(f,o):l.removeAttribute(f),a){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),S=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),O=(0,r.useCallback)(t=>{let r=v(t);j(r),"system"===b&&n&&!e&&_("system")},[b,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(O),O(e),()=>e.removeListener(O)},[O]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&S(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[S]),(0,r.useEffect)(()=>{_(null!=e?e:b)},[e,b]);let C=(0,r.useMemo)(()=>({theme:b,setTheme:S,forcedTheme:e,resolvedTheme:"system"===b?E:b,themes:n?[...u,"system"]:u,systemTheme:n?E:void 0}),[b,S,e,E,n,u]);return r.createElement(s.Provider,{value:C},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:a,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:y,attrs:k,nonce:x}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let o=u?u[e]:e,a=t?e+"|| ''":`'${o}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${a})`:"null":o&&(l+=`d[s](n,${a})`),l},v=e?`!function(){${h}${m(e)}}()`:a?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${o}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${f?"":"else{"+m(l,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),p=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},v=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(76176)}])},4941:function(e,t,n){"use strict";n.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(76848),o=n(82851),a=n(99182);function s(e){let{currentPage:t,parentPage:n,commandPage:s,className:l,...u}=e,c=(0,a.U8)(e=>e.search);if((null==n?void 0:n.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",l),value:"".concat(null==s?void 0:s.label," ").concat(u.children.toString()),...u})}function l(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function u(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||!t||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function c(e){let{heading:t,currentPage:n,commandPage:o,...s}=e,l=(0,a.U8)(e=>e.search);return(0,r.jsx)(a.mY.Group,{heading:l&&(null==n?void 0:n.namespace)!==o.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:o.label}),...s})}n(2784)},3639:function(e,t,n){"use strict";n.d(t,{F:function(){return y}});var r=n(52322),i=n(4941);let o={namespace:"contracts/filterStatus",label:"Contracts filter by status"},a=[{id:"filterStatusActive",value:"active",label:"Contract is active"},{id:"filterStatusSuccessful",value:"successful",label:"Contract was successful"},{id:"filterStatusPending",value:"pending",label:"Contract is pending"},{id:"filterStatusRejected",value:"rejected",label:"Contract was rejected"},{id:"filterStatusFailed",value:"failed",label:"Contract has failed"}];function s(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:o,children:a.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:o,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var l=n(22515),u=n(734);let c={namespace:"contracts/filterAddress",label:"Contracts filter by ID"};function d(e){let{select:t,currentPage:n}=e,{openDialog:o}=(0,l.Rh)(),a=(0,u.O)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:c,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:c,onSelect:()=>{t(),o("contractsFilterContractId")},children:a.label})})}function f(e){let{select:t,currentPage:n,parentPage:o,commandPage:a}=e,{openDialog:s}=(0,l.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:o,commandPage:a,onSelect:()=>{t(),s("contractsFilterContractId")},children:c.label})}function h(e){let{currentPage:t,select:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n})]})}let p={namespace:"contracts",label:"Contracts"};function m(e){let{currentPage:t,parentPage:n,pushPage:a,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:p,onSelect:()=>{a(o)},children:o.label}),(0,r.jsx)(f,{currentPage:t,parentPage:n,commandPage:p,select:s})]})}var v=n(92838),g=n(2784);function y(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,v.G)(),l=(0,g.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(h,{currentPage:t,select:l})]})}},71930:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return o}});var r=n(27444);let i={home:"/",volumes:{index:"/volumes"},contracts:{index:"/contracts"},config:{index:"/config",host:"/config#host",pricing:"/config#pricing",dns:"/config#dns",bandwidth:"/config#bandwidth",registry:"/config#registry",accounts:"/config#accounts"},wallet:{view:"/wallet"},node:{index:"/node",txPool:"/node/txpool",peers:"/node/peers"},login:"/login"},o=r.dk},99957:function(e,t,n){"use strict";n.d(t,{iV:function(){return w},ZR:function(){return b}});var r=n(52322),i=n(2784),o=n(76848),a=n(27444);let s=[{value:"",label:"Off"},{value:"route53",label:"Route 53"},{value:"noip",label:"No-IP"},{value:"duckdns",label:"Duck DNS"},{value:"cloudflare",label:"Cloudflare"}],l={acceptingContracts:!1,netAddress:"",maxContractDuration:void 0,contractPrice:void 0,baseRPCPrice:void 0,sectorAccessPrice:void 0,collateralMultiplier:void 0,maxCollateral:void 0,storagePrice:void 0,egressPrice:void 0,ingressPrice:void 0,priceTableValidity:void 0,maxRegistryEntries:void 0,accountExpiry:void 0,maxAccountBalance:void 0,ingressLimit:void 0,egressLimit:void 0,dnsProvider:"",dnsIpv4:!1,dnsIpv6:!1,dnsDuckDnsToken:"",dnsNoIpEmail:"",dnsNoIpPassword:"",dnsAwsId:"",dnsAwsSecret:"",dnsAwsZoneId:"",dnsCloudflareToken:"",dnsCloudflareZoneId:""};var u=n(6391),c=n.n(u),d=n(96206),f=n(94977);function h(e,t){return new(c())(12960).times(e).div((0,o.S5V)(1)).times(t)}function p(e,t){return t?new(c())(new(c())(e).div(t.sc.usd).div(10).toFixed(0)).times(10):void 0}var m=n(63955),v=n(92762),g=n(2850),y=n(47025);let x=(0,i.createContext)({}),b=()=>(0,i.useContext)(x);function w(e){let{children:t}=e,n=function(){let e=(0,a.rV)({standalone:"configSettingsForm",config:{swr:{refreshInterval:(0,o.sWj)(1)}}}),t=(0,a.Te)(),n=(0,a.uo)({disabled:!e.data||!e.data.ddns.provider,config:{swr:{revalidateOnFocus:!1,errorRetryCount:0}}}),[u,x]=(0,v.Z)("v0/config/showAdvanced",{defaultValue:!1}),b=(0,m.cI)({mode:"all",defaultValues:l}),w=b.watch("storagePrice"),E=b.watch("collateralMultiplier"),j=(0,i.useCallback)(e=>{let t;let n=(t=null,"duckdns"===e.ddns.provider&&(t={dnsDuckDnsToken:e.ddns.options.token}),"noip"===e.ddns.provider&&(t={dnsNoIpEmail:e.ddns.options.email,dnsNoIpPassword:e.ddns.options.password}),"route53"===e.ddns.provider&&(t={dnsAwsId:e.ddns.options.ID,dnsAwsSecret:e.ddns.options.secret,dnsAwsZoneId:e.ddns.options.zoneID}),"cloudflare"===e.ddns.provider&&(t={dnsCloudflareToken:e.ddns.options.token,dnsCloudflareZoneId:e.ddns.options.zoneID}),{acceptingContracts:e.acceptingContracts,netAddress:e.netAddress,maxContractDuration:new(c())(e.maxContractDuration).div((0,o.S5V)(1)),contractPrice:(0,d.ll)(e.contractPrice,6),baseRPCPrice:(0,d.ll)((0,f.sS)(e.baseRPCPrice),6),sectorAccessPrice:(0,d.ll)((0,f.nS)(e.sectorAccessPrice),6),collateralMultiplier:new(c())(e.collateralMultiplier),maxCollateral:(0,d.ll)(e.maxCollateral,6),storagePrice:(0,d.ll)((0,f.SY)(e.storagePrice),6),egressPrice:(0,d.ll)((0,f.B1)(e.egressPrice),6),ingressPrice:(0,d.ll)((0,f.dK)(e.ingressPrice),6),priceTableValidity:new(c())(e.priceTableValidity).div(1e9).div(60),maxRegistryEntries:new(c())(e.maxRegistryEntries),accountExpiry:new(c())(e.accountExpiry).div(1e9).div(86400),maxAccountBalance:(0,d.ll)(e.maxAccountBalance,6),ingressLimit:(0,o.BTR)(new(c())(e.ingressLimit)),egressLimit:(0,o.BTR)(new(c())(e.egressLimit)),dnsProvider:e.ddns.provider,dnsIpv4:e.ddns.ipv4,dnsIpv6:e.ddns.ipv6,...t});return b.reset(n),n},[b]),k=(0,i.useMemo)(()=>[e.data],[e.data]),_=(0,i.useCallback)(()=>e.data?j(e.data):null,[j,e.data]),[S,O]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(!S){let e=_();e&&O(!0)}},[S,_]);let C=(0,i.useCallback)(async()=>{let t=await e.mutate();t?(j(t),await n.mutate()):(0,o.OHV)("Error fetching settings.")},[e,j,n]),M=(0,i.useCallback)(async n=>{if(e.data)try{var r;let i;let a={};u||(a.maxCollateral=h(n.storagePrice,n.collateralMultiplier));let s={...n,...a},l=await t.patch({payload:(r=e.data,i=null,"duckdns"===s.dnsProvider&&(i={token:s.dnsDuckDnsToken}),"noip"===s.dnsProvider&&(i={email:s.dnsNoIpEmail,password:s.dnsNoIpPassword}),"route53"===s.dnsProvider&&(i={ID:s.dnsAwsId,secret:s.dnsAwsSecret,zoneID:s.dnsAwsZoneId}),"cloudflare"===s.dnsProvider&&(i={token:s.dnsCloudflareToken,zoneID:s.dnsCloudflareZoneId}),{...r,acceptingContracts:s.acceptingContracts,netAddress:s.netAddress,maxContractDuration:Number(s.maxContractDuration.times((0,o.S5V)(1)).toFixed(0)),contractPrice:(0,d.qN)(s.contractPrice).toString(),baseRPCPrice:s.baseRPCPrice.div((0,d.ll)((0,f.sS)(1))).toFixed(0),sectorAccessPrice:s.sectorAccessPrice.div((0,d.ll)((0,f.nS)(1))).toFixed(0),collateralMultiplier:s.collateralMultiplier.toNumber(),maxCollateral:(0,d.qN)(s.maxCollateral).toString(),storagePrice:s.storagePrice.div((0,d.ll)((0,f.SY)(1))).toFixed(0),egressPrice:s.egressPrice.div((0,d.ll)((0,f.B1)(1))).toFixed(0),ingressPrice:s.ingressPrice.div((0,d.ll)((0,f.dK)(1))).toFixed(0),priceTableValidity:Number(s.priceTableValidity.times(60).times(1e9).toFixed(0)),maxRegistryEntries:Number(s.maxRegistryEntries.toFixed(0)),accountExpiry:Number(s.accountExpiry.times(86400).times(1e9).toFixed(0)),maxAccountBalance:(0,d.qN)(s.maxAccountBalance).toString(),ingressLimit:Number((0,o.YaL)(s.ingressLimit).toFixed(0)),egressLimit:Number((0,o.YaL)(s.egressLimit).toFixed(0)),ddns:{...null==r?void 0:r.ddns,provider:s.dnsProvider,ipv4:s.dnsIpv4,ipv6:s.dnsIpv6,options:i}})});if(l.error)throw Error(l.error);b.formState.dirtyFields.netAddress?(0,o.OPV)("Settings have been saved. Address has changed, make sure to re-announce the host.",{duration:2e4}):(0,o.OPV)("Settings have been saved."),await C()}catch(e){(0,o.OHV)(e.message),console.log(e)}},[b,u,e,t,C]),A=(0,y.BW)(),P=(0,i.useMemo)(()=>{var e;return function(e){let{showAdvanced:t,storageTBMonth:n,collateralMultiplier:i,rates:a}=e;return{acceptingContracts:{type:"boolean",category:"host",title:"Accepting contracts",description:(0,r.jsx)(r.Fragment,{children:"Whether or not the host is accepting contracts."}),validation:{}},netAddress:{type:"text",category:"host",title:"Address",description:(0,r.jsx)(r.Fragment,{children:"The network address of the host."}),placeholder:"my.host.com:9882",validation:{required:"required"}},maxContractDuration:{type:"number",category:"host",title:"Maximum contract duration",units:"months",decimalsLimit:2,suggestion:new(c())(6),suggestionTip:"The default maximum duration is 6 months.",description:(0,r.jsx)(r.Fragment,{children:"The maximum contract duration that the host will accept."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(c())(e).gte((0,o.E6f)(4320))||"must be at least 1 month"}}},storagePrice:{title:"Storage price",type:"siacoin",category:"pricing",units:"SC/TB/month",decimalsLimitSc:6,suggestion:a?p(1,a):void 0,suggestionTip:"The suggested storage price in siacoins per TB per month.",description:(0,r.jsx)(r.Fragment,{children:"The host's storage price in siacoins per TB per month."}),validation:{required:"required"}},egressPrice:{title:"Egress price",type:"siacoin",category:"pricing",units:"SC/TB",decimalsLimitSc:6,suggestion:a?p(10,a):void 0,suggestionTip:"The suggested egress price in siacoins for egress per TB.",description:(0,r.jsx)(r.Fragment,{children:"The host's egress price in siacoins per TB."}),validation:{required:"required"}},ingressPrice:{title:"Ingress price",type:"siacoin",category:"pricing",units:"SC/TB",suggestion:a?p(.05,a):void 0,suggestionTip:"The suggested ingress price in siacoins per TB.",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's ingress price in siacoins per TB."}),validation:{required:"required"}},collateralMultiplier:{title:"Collateral multiplier",type:"number",category:"pricing",units:"* storage price",placeholder:"2",decimalsLimit:1,description:(0,r.jsx)(r.Fragment,{children:"The host's target collateral as a multiple of storage price."}),suggestion:new(c())(2),suggestionTip:"The default multiplier is 2x the storage price.",validation:{required:"required"}},maxCollateral:{title:"Maximum collateral",type:"siacoin",category:"pricing",decimalsLimitSc:6,suggestion:n&&i?h(n,i):void 0,suggestionTip:"The suggested maximum collateral.",description:(0,r.jsx)(r.Fragment,{children:"The host's maximum collateral in siacoins."}),hidden:!t,validation:{required:"required"}},contractPrice:{title:"Contract price",type:"siacoin",category:"pricing",decimalsLimitSc:6,suggestionTip:"The suggested contract price.",tipsDecimalsLimitSc:1,suggestion:new(c())(.2),description:(0,r.jsx)(r.Fragment,{children:"The host's contract price in siacoins."}),hidden:!t,validation:{required:"required"}},baseRPCPrice:{title:"Base RPC price",type:"siacoin",category:"pricing",units:"SC/million",suggestion:new(c())(1),suggestionTip:"The suggested base RPC price in siacoins per million calls.",decimalsLimitSc:6,description:(0,r.jsx)(r.Fragment,{children:"The host's base RPC price in siacoins per million calls."}),hidden:!t,validation:{required:"required"}},sectorAccessPrice:{title:"Sector access price",type:"siacoin",category:"pricing",units:"SC/million",decimalsLimitSc:6,suggestion:new(c())(1),suggestionTip:"The suggested sector access price in siacoins per million sectors.",description:(0,r.jsx)(r.Fragment,{children:"The host's sector access price in siacoins per million sectors."}),hidden:!t,validation:{required:"required"}},priceTableValidity:{title:"Price table validity",type:"number",category:"pricing",units:"minutes",suggestion:new(c())(30),suggestionTip:"The suggested price table validity.",description:(0,r.jsx)(r.Fragment,{children:"How long a renter's registered price table remains valid."}),hidden:!t,validation:{required:"required"}},maxRegistryEntries:{title:"Maximum registry size",type:"number",category:"registry",units:"entries",suggestion:new(c())(1e3),suggestionTip:"The suggested maximum registry size.",decimalsLimit:0,description:(0,r.jsx)(r.Fragment,{children:"The maximum number of registry entries that the host will store. Each registry entry is up to 113 bytes."}),hidden:!t,validation:{required:"required"}},accountExpiry:{title:"Expiry",type:"number",category:"RHP3",units:"days",suggestion:new(c())(30),suggestionTip:"The suggested account expiry.",description:(0,r.jsx)(r.Fragment,{children:"How long a renter's ephemeral accounts are inactive before the host prunes them and recovers the remaining funds."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(c())(e).gte(7)||"must be at least 1 week"}}},maxAccountBalance:{title:"Maximum balance",type:"siacoin",category:"RHP3",suggestion:new(c())(10),suggestionTip:"The suggested maximum account balance.",description:(0,r.jsx)(r.Fragment,{children:"Maximum balance a renter's ephemeral account can have. When the limit is reached, deposits are rejected until some of the funds have been spent."}),hidden:!t,validation:{required:"required",validate:{min:e=>new(c())(e).gte(1)||"must be at least 1 SC"}}},ingressLimit:{title:"Ingress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of ingress bandwidth traffic in MB per second."}),validation:{required:"required"}},egressLimit:{title:"Egress limit",type:"number",category:"bandwidth",units:"MB/second",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of egress bandwidth traffic in MB per second."}),validation:{required:"required"}},dnsProvider:{title:"Dynamic DNS Provider",type:"select",category:"DNS",options:s,description:(0,r.jsx)(r.Fragment,{children:"Enable dynamic DNS with one of the supported providers."}),validation:{validate:e=>!!s.find(t=>t.value===e)||"must be one of supported providers"}},dnsIpv4:{title:"IPv4",type:"boolean",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Whether IPv4 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv6)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv6"]},dnsIpv6:{type:"boolean",title:"IPv6",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Whether IPv6 is enabled."}),show:e=>!!e.dnsProvider,validation:{validate:(e,t)=>!t.dnsProvider||!!(e||t.dnsIpv4)||"at least one of IPv4 and IPv6 must be enabled"},trigger:["dnsIpv4"]},dnsDuckDnsToken:{type:"text",title:"Token",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"DuckDNS token."}),show:e=>"duckdns"===e.dnsProvider,validation:{validate:(e,t)=>"duckdns"!==t.dnsProvider||!!e||"required"}},dnsNoIpEmail:{type:"text",title:"Email",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"No-IP email."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsNoIpPassword:{type:"password",title:"Password",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"No-IP password."}),show:e=>"noip"===e.dnsProvider,validation:{validate:(e,t)=>"noip"!==t.dnsProvider||!!e||"required"}},dnsAwsId:{type:"text",title:"ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsSecret:{type:"password",title:"Secret",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 secret."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsAwsZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"AWS Route53 zone ID."}),show:e=>"route53"===e.dnsProvider,validation:{validate:(e,t)=>"route53"!==t.dnsProvider||!!e||"required"}},dnsCloudflareToken:{type:"text",title:"Token",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Cloudflare token."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}},dnsCloudflareZoneId:{type:"text",title:"Zone ID",category:"DNS",description:(0,r.jsx)(r.Fragment,{children:"Cloudflare zone ID."}),show:e=>"cloudflare"===e.dnsProvider,validation:{validate:(e,t)=>"cloudflare"!==t.dnsProvider||!!e||"required"}}}}({showAdvanced:u,storageTBMonth:w,collateralMultiplier:E,rates:null===(e=A.data)||void 0===e?void 0:e.rates})},[u,w,E,A.data]),T=(0,o.WsO)(P),N=(0,i.useMemo)(()=>b.handleSubmit(M,T),[b,M,T]),R=(0,i.useCallback)(()=>{let e=b.getValues(),t=_();if(t)for(let[n,r]of(b.reset(t),Object.entries(e)))b.setValue(n,r,{shouldDirty:!0})},[b,_]),{isUnlocked:D}=(0,g.Hv)();(0,i.useEffect)(()=>{D&&C()},[D]),(0,i.useEffect)(()=>{b.formState.isSubmitting||R()},[b,u,k]);let L=Object.entries(b.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length;return{fields:P,settings:e,dynDNSCheck:n,changeCount:L,revalidateAndResetFormData:C,form:b,onSubmit:N,showAdvanced:u,setShowAdvanced:x}}();return(0,r.jsx)(x.Provider,{value:n,children:t})}},92838:function(e,t,n){"use strict";n.d(t,{x:function(){return x},G:function(){return y}});var r=n(52322),i=n(76848),o=n(5632),a=n(27444),s=n(2784),l=n(56860),u=n(41775),c=n(96206),d=n(22515);function f(e){let{id:t,status:n,contentProps:o,buttonProps:l}=e,c=(0,a.kr)(),{openDialog:f}=(0,d.Rh)(),h=(0,s.useCallback)(async()=>{let e=await c.put({params:{id:t}});e.error?(0,i.OHV)(e.error):(0,i.OPV)((0,r.jsxs)(r.Fragment,{children:["Integrity check successfully started, depending on contract data size this operation can take a while. Check ",(0,r.jsx)(i.EKh,{children:"hostd"})," ",(0,r.jsx)(i.rUS,{onClick:()=>f("alerts"),children:"alerts"})," for status updates."]}),{duration:12e3})},[t,c,f]),p=["active","pending"].includes(n);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...l,children:(0,r.jsx)(u.iG7,{})}),contentProps:{align:"start",...o},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Contract ",t.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsx)(i.ua7,{content:p?"Trigger a data integrity check":"Data integrity check only available for active or pending contracts",children:(0,r.jsx)("div",{children:(0,r.jsxs)(i.Xiv,{disabled:!p,onSelect:()=>h(),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(u.dDl,{})}),"Integrity check"]})})})]})}let h=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{id:t,status:n}}=e;return(0,r.jsx)(f,{id:t,status:n})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:t}=e,{id:n,renewedFrom:o,isRenewedFrom:a,renewedTo:s,isRenewedTo:l}=t;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(n),label:"contract ID"}),a&&(0,r.jsx)(i.ua7,{content:"Renewed from",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(u.L6f,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",value:(0,i.I13)(o),label:"contract ID"})]})}),l&&(0,r.jsx)(i.ua7,{content:"Renewed to",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(u.IRm,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",value:(0,i.I13)(s),label:"contract ID"})]})})]})}},{id:"status",label:"status",category:"general",render:e=>{let{data:{status:t}}=e;return(0,r.jsx)(i.Cts,{variant:"active"===t?"amber":"failed"===t?"red":"pending"===t?"amber":"rejected"===t?"red":"successful"===t?"green":void 0,children:t})}},{id:"timeline",label:"timeline",category:"time",render:e=>{let{data:t,context:{currentHeight:n,contractsTimeRange:o}}=e,{contractHeightStart:a,contractHeightEnd:s,revision:l,status:u}=t;return(0,r.jsx)("div",{className:"w-[400px]",children:(0,r.jsx)(i.TaT,{currentHeight:n,contractHeightStart:a,contractHeightEnd:"rejected"===u?void 0:s,proofWindowHeightStart:"rejected"===u?void 0:l.windowStart,proofWindowHeightEnd:"rejected"===u?void 0:l.windowEnd,range:o})})}},{id:"contractHeightStart",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightStart:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,i.jrD)(n,t))})}},{id:"contractHeightEnd",label:"expiration date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{contractHeightEnd:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,i.jrD)(n,t))})}},{id:"payoutHeight",label:"payout date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{payoutHeight:t},context:{currentHeight:n}}=e;return(0,r.jsx)(i.xvT,{size:"12",children:(0,c.rN)((0,i.jrD)(n,t))})}},{id:"filesize",label:"data size",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{filesize:t}}}=e;return(0,r.jsx)(i.m2c,{size:"12",value:t,variant:"value",format:e=>(0,c.vW)(e.toNumber())})}},{id:"fileMerkleRoot",label:"merkle root",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:{fileMerkleRoot:t}}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(t)})}},{id:"payout",label:"payout",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.payout})}},{id:"remainingRenterFunds",label:"remaining renter funds",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{revision:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.remainingRenterFunds})}},{id:"lockedCollateral",label:"locked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{lockedCollateral:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t})}},{id:"usageRiskedCollateral",label:"risked collateral",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.riskedCollateral})}},{id:"usageTotal",label:"total usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.total})}},{id:"usageStorage",label:"storage usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.storage})}},{id:"usageIngress",label:"ingress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.ingress})}},{id:"usageEgress",label:"egress usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.egress})}},{id:"usageAccountFunding",label:"account funding usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.accountFunding})}},{id:"usageRpc",label:"RPC usage",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{usage:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.rpc})}}].map(e=>({...e,..."financial"===e.category?{icon:(0,r.jsx)(u.dZ8,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"financial: ".concat(e.label)}:{label:e.label,tip:e.label}}));var p=n(6391),m=n.n(p),v=n(25573);let g=(0,s.createContext)({}),y=()=>(0,s.useContext)(g);function x(e){let{children:t}=e,n=function(){var e,t;let n=(0,o.useRouter)(),r=Number(n.query.limit||50),u=Number(n.query.offset||0),{filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:g}=(0,i.Uu5)(),{configurableColumns:y,enabledColumns:x,sortableColumns:b,toggleColumnVisibility:w,setColumnsVisible:E,setColumnsHidden:j,toggleSort:k,setSortDirection:_,setSortField:S,sortField:O,sortDirection:C,resetDefaultColumnVisibility:M}=(0,i.oy6)("hostd/v0/contracts",{columns:h,columnsDefaultVisible:l.gd,sortOptions:l.Fo,defaultSortField:l.nw}),A=(0,a.GP)({payload:{limit:r,offset:u,sortField:null===(e=l.Fo.find(e=>e.id===O))||void 0===e?void 0:e.value,sortDesc:"desc"===C,contractIDs:c.filter(e=>"filterContractId"===e.id).map(e=>e.value),statuses:c.filter(e=>e.id.startsWith("filterStatus")).map(e=>e.value)},config:{swr:{refreshInterval:(0,i.XBW)(60)}}}),P=function(e){let{response:t}=e;return(0,s.useMemo)(()=>{var e;return t.data?(null===(e=t.data.contracts)||void 0===e?void 0:e.map(e=>(function(e){var t;let n=new(m())(e.usage.accountFunding||0),r=new(m())(e.usage.egress||0),i=new(m())(e.usage.ingress||0),o=new(m())(e.usage.riskedCollateral||0),a=new(m())(e.usage.rpc||0),s=new(m())(e.usage.storage||0),l=n.plus(r).plus(i).plus(a).plus(s),u=e.resolutionHeight>0?e.resolutionHeight+144:e.revision.windowEnd+144;return{id:e.revision.parentID,revision:{parentID:e.revision.parentID,unlockConditions:e.revision.unlockConditions,filesize:new(m())(e.revision.filesize||0),fileMerkleRoot:e.revision.fileMerkleRoot,windowStart:e.revision.windowStart,windowEnd:e.revision.windowEnd,payout:new(m())("active"==e.status||e.resolutionHeight>0?e.revision.validProofOutputs[1].value:e.revision.missedProofOutputs[1].value),remainingRenterFunds:new(m())((null===(t=e.revision.validProofOutputs)||void 0===t?void 0:t[0].value)||0),validProofOutputs:e.revision.validProofOutputs,missedProofOutputs:e.revision.missedProofOutputs,unlockHash:e.revision.unlockHash,revisionNumber:e.revision.revisionNumber},usage:{total:l,accountFunding:n,egress:r,ingress:i,riskedCollateral:o,rpc:a,storage:s},lockedCollateral:new(m())(e.lockedCollateral||0),hostSignature:e.hostSignature,renterSignature:e.renterSignature,status:e.status,negotiationHeight:e.negotiationHeight,formationConfirmed:e.formationConfirmed,revisionConfirmed:e.revisionConfirmed,resolutionHeight:e.resolutionHeight,payoutHeight:u,contractHeightStart:e.negotiationHeight,contractHeightEnd:e.revision.windowStart,renewedTo:e.renewedTo,renewedFrom:e.renewedFrom,isRenewedFrom:"fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,isRenewedTo:"fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedTo}})(e)))||[]:null},[t.data])}({response:A}),T=(0,s.useMemo)(()=>h.filter(e=>x.includes(e.id)),[x]),N=A.isValidating,R=A.error,D=(0,i.c2j)(P,N,R,c),{estimatedBlockHeight:L,isSynced:F,nodeBlockHeight:V}=(0,v.n)(),z=F?V:L,{range:I}=(0,s.useMemo)(()=>(0,i.EJC)(z,P||[]),[z,P]);return{dataState:D,offset:u,limit:r,cellContext:{contractsTimeRange:I,currentHeight:z},pageCount:(null==P?void 0:P.length)||0,totalCount:null===(t=A.data)||void 0===t?void 0:t.count,columns:T,dataset:P,configurableColumns:y,enabledColumns:x,sortableColumns:b,toggleColumnVisibility:w,setColumnsVisible:E,setColumnsHidden:j,toggleSort:k,setSortDirection:_,setSortField:S,sortField:O,sortDirection:C,resetDefaultColumnVisibility:M,filters:c,setFilter:d,removeFilter:f,removeLastFilter:p,resetFilters:g}}();return(0,r.jsx)(g.Provider,{value:n,children:t})}},56860:function(e,t,n){"use strict";n.d(t,{Fo:function(){return i},gd:function(){return r},nw:function(){return o}});let r=["contractId","status","usageTotal","lockedCollateral","timeline"],i=[{id:"status",value:"status",label:"status",category:"general"},{id:"timeline",value:"negotiationHeight",label:"timeline",category:"time"},{id:"contractHeightStart",value:"negotiationHeight",label:"start height",category:"time"},{id:"contractHeightEnd",value:"expirationHeight",label:"expiration height",category:"time"}],o="timeline"},22515:function(e,t,n){"use strict";n.d(t,{Tu:function(){return em},xQ:function(){return ev},Rh:function(){return ep}});var r=n(52322),i=n(2784),o=n(76848),a=n(27444),s=n(96206),l=n(63955);function u(e,t,n){var r=this,o=(0,i.useRef)(null),a=(0,i.useRef)(0),s=(0,i.useRef)(null),l=(0,i.useRef)([]),u=(0,i.useRef)(),c=(0,i.useRef)(),d=(0,i.useRef)(e),f=(0,i.useRef)(!0);(0,i.useEffect)(function(){d.current=e},[e]);var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,v="maxWait"in n,g=v?Math.max(+n.maxWait||0,t):null;return(0,i.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,i.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,a.current=e,c.current=d.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!f.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||v&&e-a.current>=g},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},x=function e(){var r=Date.now();if(i(r))return y(r);if(f.current){var s=t-(r-o.current);n(e,v?Math.min(s,g-(r-a.current)):s)}},b=function(){var d=Date.now(),h=i(d);if(l.current=[].slice.call(arguments),u.current=r,o.current=d,h){if(!s.current&&f.current)return a.current=o.current,n(x,t),p?e(o.current):c.current;if(v)return n(x,t),e(o.current)}return s.current||n(x,t),c.current};return b.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},b.isPending=function(){return!!s.current},b.flush=function(){return s.current?y(Date.now()):c.current},b},[p,v,t,g,m,h])}function c(e,t){return e===t}function d(e){return"function"==typeof e?function(){return e}:e}var f=n(99182),h=n(4941),p=n(41775);function m(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(p.Qbr,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No matching directory.":"Select a directory to get started."})]})}function v(){var e;let t=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(null===(e=t.data)||void 0===e?void 0:e.OS)==="windows"?"\\":"/"}var g=n(5648),y=n.n(g),x=n(1573),b=n.n(x);function w(e){let{currentPath:t,childPath:n,separator:r}=e;return"\\"===t&&n.endsWith(":")?n+r:E(t,n,r)}function E(e,t,n){e=e===n?e:b()(e,n),t=y()(t,n);let r="";return(r=e.length?t.length&&t!==n?e===n?n+t:e+n+t:e:t).endsWith(":")?r+n:r}function j(){return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(p.Qbr,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:"Error loading directory."})]})}function k(e){let{path:t,onCreate:n}=e,s=v(),l=(0,a.Kw)(),[u,c]=(0,i.useState)(""),d=(0,i.useCallback)(async()=>{let e=await l.put({payload:{path:w({currentPath:t,childPath:u,separator:s})}});e.error?(0,o.OHV)("Error creating directory: ".concat(e.error)):(n(u),c(""))},[l,u,n,t,s]);return(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden w-full",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(p.L37,{})}),(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)(o.nvn,{focus:"none",variant:"ghost",placeholder:"type new directory name",className:"!pl-0 font-normal h-5",value:u,onChange:e=>{c(e.currentTarget.value)},onKeyUp:e=>{e.stopPropagation(),"Enter"===e.key&&d()},size:"small"})})]})}function _(e){let{path:t,setPath:n,commandPage:i,currentPage:a,beforeSelect:s,afterSelect:l}=e,u=v();return(0,r.jsx)(h.WD,{commandPage:i,currentPage:a,onSelect:()=>{t&&(s&&s(),n(function(e,t){if(e.endsWith(":\\"))return t;let n="".concat(e.split(t).slice(0,-1).join(t));return""===n?t:n.endsWith(":")?n+t:n}(t,u)),l&&l())},value:"..",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(p.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:".."})]})},"..")}let S={namespace:"volumes/directorySelect",label:"Directory select"};function O(e){var t,n,i,a,s,l,u;let{path:c,dir:d,setPath:g,currentPage:y,beforeSelect:x,afterSelect:b}=e,E=v(),O=(null===(t=d.data)||void 0===t?void 0:t.path)===E,C=(null===(n=d.data)||void 0===n?void 0:n.path)==="\\";return(0,r.jsxs)(h.fu,{currentPage:y,commandPage:S,children:[d.isValidating||!d.data||d.error?null:O?null:(0,r.jsx)(_,{path:d.data.path,setPath:g,currentPage:y,commandPage:S,afterSelect:b,beforeSelect:x}),(0,r.jsxs)(f.mY.Empty,{children:[!d.isValidating&&d.error?(0,r.jsx)(j,{}):null,d.isValidating||d.error||(null===(a=d.data)||void 0===a?void 0:null===(i=a.directories)||void 0===i?void 0:i.length)?null:(0,r.jsx)(m,{search:c})]}),!d.isValidating&&!d.error&&(null===(l=d.data)||void 0===l?void 0:null===(s=l.directories)||void 0===s?void 0:s.length)?d.data.directories.map(e=>(0,r.jsx)(h.WD,{commandPage:S,currentPage:y,onSelect:()=>{x&&x();let t=w({currentPath:d.data.path,childPath:e,separator:E});g(t),b&&b()},value:e,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,r.jsx)(p.ROc,{size:16})}),(0,r.jsx)(o.xvT,{ellipsis:!0,children:e})]})},e)):null,!C&&!d.isValidating&&!d.error&&(0,r.jsx)(h.WD,{commandPage:S,currentPage:y,value:"create new directory",children:(0,r.jsx)(k,{path:null===(u=d.data)||void 0===u?void 0:u.path,onCreate:e=>{d.mutate(t=>{var n;return{...t,directories:(null==t?void 0:null===(n=t.directories)||void 0===n?void 0:n.concat(e))||[e]}})}})})]})}function C(e){let{path:t,dir:n,onChange:i}=e;return(0,r.jsx)(f.mY,{label:"Select volume",shouldFilter:!1,children:(0,r.jsx)(o.s_4,{className:"h-[200px] p-1 overflow-hidden",children:(0,r.jsx)(o.xrM,{keyToResetScrollbars:t,children:(0,r.jsx)(f.mY.List,{children:(0,r.jsx)(O,{path:t,dir:n,setPath:i,currentPage:S})})})})})}var M=n(82851);function A(e){let{label:t,newSizeGB:n,currentSizeGB:i=0,maxSizeGB:a=0}=e,l=in,c=n>a;return(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"relative w-full h-1 rounded-lg bg-gray-300 dark:bg-graydark-300 overflow-hidden",children:[(0,r.jsx)("div",{className:(0,M.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",void 0!==n&&u?"bg-red-500 dark:bg-red-500":"bg-gray-700 dark:bg-graydark-800",l?"z-10":"z-0"),style:{width:a?"".concat(i/a*100,"%"):"0%"}}),(0,r.jsx)("div",{className:(0,M.cx)("absolute h-1 rounded-tl-lg rounded-bl-lg",c?"bg-amber-500 dark:bg-amber-500":void 0!==n&&l?"bg-green-500 dark:bg-green-500":"bg-gray-700 dark:bg-graydark-800",u?"z-10":"z-0"),style:{width:a?"".concat(n/a*100,"%"):"0%"}})]}),(0,r.jsxs)("div",{className:"h-4 flex justify-between",children:[t||(0,r.jsx)("div",{}),void 0!==n&&a?(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"".concat((n/a*100).toFixed(0),"% of ").concat((0,s.vW)((0,o.Hzd)(a))," available")}):null]})]})}let P={size:void 0,name:"",path:"~",immediatePath:"~"};function T(e){var t;let{trigger:n,open:c,onOpenChange:d}=e,{closeDialog:f}=ep(),h=(0,a.HU)(),p=v(),m=(0,l.cI)({mode:"all",defaultValues:P}),g=m.watch("path"),y=m.watch("immediatePath"),x=m.watch("name"),b=m.watch("size"),w=u(()=>{g!==y&&m.setValue("path",y)},500);(0,i.useEffect)(()=>{w()},[y]),(0,i.useEffect)(()=>{g!==y&&m.setValue("immediatePath",g)},[g]);let j=(0,i.useCallback)(async e=>{let t=await h.post({payload:{localPath:E(g,x,p),maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("New volume created."),m.reset(P),f())},[m,h,f,x,g,p]),k=(0,a.cM)({disabled:!c,params:{path:""===g?p:g},config:{swr:{shouldRetryOnError:!1}}});(0,i.useEffect)(()=>{k.error&&m.setError("immediatePath",{message:"Directory does not exist"})},[k.error]),(0,i.useEffect)(()=>{k.data&&k.data.path!==g&&m.setValue("path",k.data.path)},[k.data]);let _=(null==b?void 0:b.toNumber())||0,S=k.data?(0,o.Uzc)(k.data.freeBytes).toNumber():0,O=(0,o.Uzc)((null===(t=k.data)||void 0===t?void 0:t.freeBytes)||0).toNumber(),M=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:"data.dat",validation:{required:"required"}},immediatePath:{type:"text",title:"Location",placeholder:"Enter a directory or select one below",validation:{required:"required",validate:{}}},path:{type:"text",title:"Location",validation:{required:"required",validate:{req:e=>"\\"!==e||"directory within a drive required"}}},size:{type:"number",title:"Size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:e=>{let t="Must be between ".concat((0,s.vW)((0,o.Hzd)(10))," and ").concat((0,s.vW)((0,o.Hzd)(O),{fixed:3}));return e<=O&&e>=10||t},nospace:()=>O>10||"not enough space in directory"}}}}),[O]),T=(0,o.WsO)(M);return m.register("path",M.path.validation),(0,r.jsx)(o.VqE,{title:"Create Volume",trigger:n,open:c,onOpenChange:e=>{e||m.reset(P),d(e)},contentVariants:{className:"w-[400px]"},onSubmit:m.handleSubmit(j,T),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.ZqQ,{form:m,children:"Create"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Create a new volume. Select a system directory and specific the size of the volume."}),(0,r.jsx)(o.yEL,{name:"name",form:m,fields:M}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.yEL,{name:"immediatePath",form:m,fields:M})}),(0,r.jsx)(C,{path:g,dir:k,onChange:e=>m.setValue("path",e,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})})]}),(0,r.jsx)(o.jIp,{name:"size",form:m,fields:M}),(0,r.jsx)(A,{newSizeGB:_,currentSizeGB:0,maxSizeGB:S})]})})}let N={size:void 0};function R(e){var t,n;let{trigger:u,open:c,onOpenChange:d}=e,{id:f,closeDialog:h}=ep(),p=v(),m=(0,a.ST)({disabled:!f,params:{id:f}}),g=(0,a.cM)({disabled:!c||!m.data,params:{path:null===(t=m.data)||void 0===t?void 0:t.localPath.split(p).slice(0,-1).join(p)}}),y=(0,a.G)(),x=(0,l.cI)({mode:"all",defaultValues:N}),b=x.watch("size"),w=(0,i.useCallback)(async e=>{let t=await y.put({params:{id:Number(f)},payload:{maxSectors:(0,o.WN2)(e.size).toNumber()}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Volume resizing initiated."),x.reset(N),h())},[x,f,y,h]);(0,i.useEffect)(()=>{m.data&&x.reset(N)},[m.data]);let E=null==b?void 0:b.toNumber(),j=m.data?(0,o.bjP)(m.data.totalSectors).toNumber():0,k=g.data?(0,o.Uzc)(g.data.totalBytes).toNumber():0,_=j=1,O=(0,i.useMemo)(()=>({size:{type:"number",title:"New size",decimalsLimit:0,units:"GB",placeholder:"1,000",validation:{required:"required",validate:{between:e=>{let t="Must be between ".concat((0,s.vW)((0,o.Hzd)(10))," and ").concat((0,s.vW)((0,o.Hzd)(k),{fixed:3}));return e<=k&&e>=10||t}}}}}),[k]),C=(0,o.WsO)(O);return(0,r.jsx)(o.VqE,{title:"Resize Volume",trigger:u,open:c,onOpenChange:e=>{e||x.reset(N),d(e)},contentVariants:{className:"max-w-[400px]"},onSubmit:x.handleSubmit(w,C),controls:(0,r.jsx)("div",{className:"flex flex-col gap-1",children:(0,r.jsx)(o.ZqQ,{form:x,children:"Resize"})}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)(o.nvN,{size:"14",children:["Grow or shrink the volume. When growing a volume, make sure to check that there is enough space on-disk. When shrinking a volume, any data that needs to be moved will be placed into other volumes, meaning that no data will be lost. If ",(0,r.jsx)(o.EKh,{children:"hostd"})," is unable to migrate the data, an error will be returned and the operation will be stopped."]}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(o.__J,{children:"Volume"}),(0,r.jsx)(o.xvT,{font:"mono",ellipsis:!0,children:null===(n=m.data)||void 0===n?void 0:n.localPath})]}),(0,r.jsx)(o.jIp,{name:"size",form:x,fields:O}),(0,r.jsx)(A,{currentSizeGB:j,newSizeGB:E,maxSizeGB:k,label:S?(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:_?"Increase by ".concat((0,s.vW)((0,o.Hzd)(E-j))):"Decrease by ".concat((0,s.vW)((0,o.Hzd)(j-E)))}):(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"Current size is ".concat((0,s.vW)((0,o.Hzd)(j)))})})]})})}let D={path:"",force:!1};function L(e){var t,n,u;let{trigger:c,open:d,onOpenChange:f}=e,{id:h,closeDialog:p}=ep(),m=(0,a.uq)(),v=(0,a.ST)({disabled:!h,params:{id:h}}),g=(0,o.x9T)(null===(t=v.data)||void 0===t?void 0:t.totalSectors),y=(0,o.x9T)(null===(n=v.data)||void 0===n?void 0:n.usedSectors),x=null===(u=v.data)||void 0===u?void 0:u.localPath,b=(0,l.cI)({mode:"all",defaultValues:D}),w=(0,i.useCallback)(async e=>{var t;let n=await m.delete({params:{id:null===(t=v.data)||void 0===t?void 0:t.ID,force:e.force}});n.error?(0,o.OHV)(n.error):((0,o.OPV)("Volume permanently deleted."),b.reset(),p())},[b,v.data,m,p]),E=(0,i.useMemo)(()=>({path:{type:"text",title:"Path",placeholder:x,validation:{required:"required",validate:{equals:e=>e===x||"directory path does not match"}}},force:{type:"boolean",title:"Force",validation:{}}}),[x]),j=(0,o.WsO)(E);return(0,r.jsx)(o.VqE,{title:"Delete Volume",trigger:c,open:d,onOpenChange:e=>{e||b.reset(D),f(e)},contentVariants:{className:"w-[400px]"},onSubmit:b.handleSubmit(w,j),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Are you sure you would like to delete the volume?"}),(0,r.jsxs)(o.nvN,{size:"14",children:[(0,r.jsx)(o.EKh,{children:"hostd"})," will move"," ",(0,r.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(y)})," of stored data and will lose ",(0,r.jsx)(o.xvT,{weight:"semibold",children:(0,s.vW)(g)})," ","of storage capacity. It is not recommended to remove or resize volumes when contracts are about to expire."]}),(0,r.jsx)(o.nvN,{size:"14",children:"Enter the volume path to confirm the removal."}),(0,r.jsx)(o.yEL,{name:"path",form:b,fields:E}),(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.QBj,{name:"force",size:"medium",form:b,fields:E}),(0,r.jsx)(o.Yqd,{children:(0,r.jsx)("div",{className:"flex gap-1 max-w-[200px]",children:(0,r.jsx)(o.nvN,{size:"14",children:"Force deleting a volume will remove the volume even if the data can NOT be relocated - this will result in severe data loss and contract failure. Be extremely careful when using this option."})})})]}),(0,r.jsx)(o.ZqQ,{variant:"red",form:b,children:"Delete"})]})})}var F=n(6391),V=n.n(F);function z(){let{dialog:e,openDialog:t,closeDialog:n}=ep(),s=(0,a.Os)(),l=(0,a.cj)(),u=(0,i.useCallback)(async e=>{let{sc:t,address:n}=e,r=await l.post({payload:{address:n,amount:t.toString()}});return r.error?{error:r.error}:{transactionId:r.data}},[l]);return(0,r.jsx)(o.weF,{balance:s.data?new(V())(s.data.spendable):void 0,send:u,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}function I(){let{id:e,dialog:t,openDialog:n,closeDialog:s}=ep(),l=(0,a.Qq)({params:{},config:{swr:{revalidateOnFocus:!1,refreshInterval:6e4}},disabled:"transactionDetails"!==t}),u=(0,i.useMemo)(()=>{var t;let n=null===(t=l.data)||void 0===t?void 0:t.find(t=>t.ID===e);return n?{txType:(0,o.leQ)(n.transaction,n.source),inflow:n.inflow,outflow:n.outflow,timestamp:n.timestamp,raw:n.transaction}:null},[l,e]);return(0,r.jsx)(o.mPE,{id:e,transaction:u,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):s()})}var Z=n(734),B=n(2850),H=n(71930),U=n(5632);let W={namespace:"wallet",label:"Wallet"};function q(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:s,closeDialog:l}=ep(),u=(0,U.useRouter)(),c=(0,a.On)({config:{swr:{revalidateOnFocus:!1,keepPreviousData:!0}}});return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:W,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:W,onSelect:()=>{i(W)},children:W.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{u.push(H._.wallet.view),l()},children:"View wallet transactions"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{s("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{s("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{s("addressDetails")},children:"View wallet address"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:W,onSelect:()=>{var e;(0,o.vQq)(null===(e=c.data)||void 0===e?void 0:e.walletAddress,"wallet address"),l()},children:"Copy wallet address to clipboard"})]})}var $=n(38617);let Y={namespace:"settings",label:"Settings"};function G(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:o}=ep(),{setTheme:a}=(0,$.F)(),{settings:s,setSettings:l,lock:u,currencyOptions:c,setCurrency:d}=(0,B.Hv)();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:Y,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:Y,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{l({siaCentral:!s.siaCentral}),o()},children:(s.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(h.o4,{currentPage:t,commandPage:Y,onSelect:()=>{u(),o()},children:"Lock hostd"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{a("system"),o()},children:"Set theme to system preference"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{a("dark"),o()},children:"Set theme to dark"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{a("light"),o()},children:"Set theme to light"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),c.map(e=>{let{id:n,label:i}=e;return(0,r.jsx)(h.WD,{currentPage:t,commandPage:Y,onSelect:()=>{d(n),o()},children:"Set currency to ".concat(i)},n)})]})}let K={namespace:"node",label:"Blockchain node"};function X(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:o,closeDialog:a}=ep(),s=(0,U.useRouter)();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:K,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:K,onSelect:()=>{i(K)},children:K.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:K,onSelect:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:K,onSelect:()=>{s.push(H._.node.index),a()},children:"View peers"})]})}var Q=n(99957);let J={namespace:"configuration",label:"Configuration"};function ee(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,U.useRouter)(),{showAdvanced:a}=(0,Q.ZR)(),{closeDialog:s}=ep();return(0,r.jsxs)(h.fu,{currentPage:t,commandPage:J,children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:J,onSelect:()=>{i(J)},children:J.label}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.index),s()},children:"Open configuration"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.host),s()},children:"Configure host"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.pricing),s()},children:"Configure pricing"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.dns),s()},children:"Configure DNS"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.bandwidth),s()},children:"Configure bandwidth"}),a&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.registry),s()},children:"Configure registry"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:J,onSelect:()=>{o.push(H._.config.accounts),s()},children:"Configure accounts"})]})]})}var et=n(92838);function en(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(p.owP,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}var er=n(3639);let ei={namespace:"contracts",label:"Contracts"};function eo(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,s=(0,U.useRouter)(),{closeDialog:l}=ep();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(ei)},children:ei.label}),(0,r.jsx)(h.fu,{currentPage:t,commandPage:ei,children:(0,r.jsx)(h.WD,{currentPage:t,commandPage:ei,onSelect:()=>{s.push(H._.contracts.index),l()},children:"View contracts"})}),(0,r.jsx)(er.F,{parentPage:ei,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}let ea={namespace:"volumes",label:"Volumes"};function es(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,U.useRouter)(),{openDialog:a,closeDialog:s}=ep();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(h.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(ea)},children:ea.label}),(0,r.jsxs)(h.fu,{currentPage:t,commandPage:ea,children:[(0,r.jsx)(h.WD,{currentPage:t,commandPage:ea,onSelect:()=>{o.push(H._.volumes.index),s()},children:"View volumes"}),(0,r.jsx)(h.WD,{currentPage:t,commandPage:ea,onSelect:()=>{a("volumeCreate")},children:"Create volume"})]})]})}function el(e){var t,n,a,s,l,h,p,m,v;let{panel:g}=e,y=(0,U.useRouter)(),{resetFilters:x}=(0,et.G)(),{closeDialog:b}=ep(),[w,E]=(0,i.useState)(""),[j]=(s=t&&t.equalityFn||c,h=(a=(n=(0,i.useState)(d(w)))[1],l=[n[0],(0,i.useCallback)(function(e){return a(d(e))},[])])[0],p=l[1],m=u((0,i.useCallback)(function(e){return p(e)},[p]),500,t),s((v=(0,i.useRef)(w)).current,w)||(m(w),v.current=w),[h,m]),[k,_]=(0,i.useState)([]),S=k[k.length-1],O=0===k.length,C=(0,i.useCallback)(e=>{_(t=>[...t,e])},[_]),A=(0,i.useCallback)(()=>{b()},[b]),P=(0,i.useCallback)(()=>{E("")},[E]),T=(null==S?void 0:S.empty)||en;return(0,r.jsxs)(f.mY,{label:"Command Menu",loop:!0,className:(0,M.cx)(g&&(0,o.z$)()),onKeyDown:e=>{(k.length>0&&"Escape"===e.key||"Backspace"===e.key&&!w)&&(e.preventDefault(),_(e=>e.slice(0,-1)))},children:[S&&(0,r.jsx)(o.__J,{className:"px-2",children:S.label}),(0,r.jsx)(f.mY.Input,{value:w,onValueChange:E,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==S?void 0:S.prompt)||(O?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsxs)(f.mY.List,{children:[(0,r.jsx)(f.mY.Empty,{children:(0,r.jsx)(T,{search:w,debouncedSearch:j})}),(0,r.jsx)(G,{currentPage:S,pushPage:C}),(0,r.jsx)(q,{currentPage:S,pushPage:C}),(0,r.jsx)(es,{currentPage:S,pushPage:C}),(0,r.jsx)(eo,{currentPage:S,pushPage:C,beforeSelect:()=>{A(),x()},afterSelect:()=>{y.pathname.startsWith(H._.contracts.index)||y.push(H._.contracts.index),P()}}),(0,r.jsx)(ee,{currentPage:S,pushPage:C}),(0,r.jsx)(X,{currentPage:S,pushPage:C})]})]})}function eu(e){let{open:t,onOpenChange:n,setOpen:a}=e,{isUnlocked:s}=(0,B.Hv)(),{isConnected:l}=(0,o.Y97)({route:H.h});return(0,i.useEffect)(()=>{if(!s||!l)return;let e=e=>{"k"===e.key&&e.metaKey&&a()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s,l,a]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.VqE,{open:t,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(el,{})})})}function ec(e){let{open:t,onOpenChange:n}=e,s=(0,a.Z7)(),l=(0,a.Uy)(),u=(0,i.useCallback)(async e=>{let t=await l.post({payload:[e]});t.error?(0,o.OHV)("Error dismissing alert."):(0,o.OPV)("Alert has been dismissed.")},[l]),c=(0,i.useCallback)(async(e,t)=>{if(!s.data)return;let n=await l.post({payload:e});n.error?(0,o.OHV)(t?"Error dismissing all ".concat(t," alerts."):"Error dismissing all alerts."):(0,o.OPV)(t?"All ".concat(t," alerts have been dismissed."):"All alerts have been dismissed.")},[l,s]);return(0,r.jsx)(o.hcY,{open:t,onOpenChange:e=>{n(e)},alerts:s,dataFieldOrder:ed,dataFields:ef,dismissMany:c,dismissOne:u})}let ed=["error","contractID","blockHeight","resolution","volume","volumeID","elapsed","error","checked","missing","corrupt","total","oldSectors","currentSectors","targetSectors","migratedSectors","migrated","target","force"],ef={error:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"error"}),(0,r.jsx)(o.xvT,{color:"contrast",children:t})]})}},contractId:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},blockHeight:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"block height"}),(0,r.jsx)(o.XxW,{value:String(t),type:"block"})]})}},resolution:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"resolution"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},volume:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},volumeID:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"volume ID"}),(0,r.jsx)(o.XxW,{value:String(t)})]})}},elapsed:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"elapsed"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:(0,s.bc)(Number(t))})]})}},checked:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"checked"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},missing:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"missing"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},corrupt:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"corrupt"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},total:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"total"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},oldSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"old sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},currentSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"current sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},targetSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migratedSectors:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated sectors"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},migrated:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"migrated"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},target:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"target"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t.toLocaleString()})]})}},force:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"force"}),(0,r.jsx)(o.xvT,{color:"contrast",ellipsis:!0,children:t?"true":"false"})]})}}},eh=(0,i.createContext)({}),ep=()=>(0,i.useContext)(eh);function em(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(),o=(0,i.useCallback)((e,n)=>{t(e),r(n)},[t,r]),[a,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),s(void 0)},[t,r,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:o,confirm:a,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(eh.Provider,{value:n,children:t})}function ev(){var e;let{dialog:t,openDialog:n,openConfirmDialog:i,onOpenChange:s,closeDialog:l,confirm:u}=ep(),c=(0,a.Wl)(),d=(0,a.Os)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(eu,{open:"cmdk"===t,onOpenChange:s,setOpen:()=>n("cmdk")}),(0,r.jsx)(o.DLL,{open:"settings"===t,onOpenChange:s}),(0,r.jsx)(ec,{open:"alerts"===t,onOpenChange:s}),(0,r.jsx)(z,{}),(0,r.jsx)(o.YNn,{open:"addressDetails"===t,address:null===(e=d.data)||void 0===e?void 0:e.address,isValidating:d.isValidating,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(I,{}),(0,r.jsx)(o.D_D,{connect:e=>c.put({payload:{address:e}}),open:"connectPeer"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(T,{open:"volumeCreate"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(R,{open:"volumeResize"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(L,{open:"volumeDelete"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(Z.Y,{open:"contractsFilterContractId"===t,onOpenChange:e=>e?n(t):l()}),(0,r.jsx)(o.QHy,{open:"confirm"===t,params:u,onOpenChange:e=>e?i(u):l()})]})}},5187:function(e,t,n){"use strict";n.d(t,{C:function(){return E},B:function(){return w}});var r=n(52322),i=n(2784),o=n(76848),a=n(96206);let s={successful:{color:o.O9T.green[600]},active:{color:o.O9T.amber[600]},pending:{color:o.O9T.amber[600],pattern:!0},rejected:{color:o.O9T.red[600]},failed:{color:o.O9T.red[600]},storage:{label:"storage",color:o.O9T.emerald[600]},storagePhysical:{color:o.O9T.indigo[600]},ingress:{label:"ingress",color:o.O9T.pink[600]},egress:{label:"egress",color:o.O9T.blue[600]},registry:{label:"registry",color:o.O9T.purple[600]},storageWrites:{label:"storage write",color:o.O9T.pink[600]},storageReads:{label:"storage read",color:o.O9T.blue[600]},registryReads:{label:"registry reads",color:o.O9T.green[600]},registryWrites:{label:"registry writes",color:o.O9T.yellow[600]},rpc:{label:"RPC",color:o.O9T.slate[500]},capacityStorage:{label:"capacity",color:o.O9T.neutral[500]},capacityRegistry:{label:"capacity",color:o.O9T.neutral[500]},contract:{color:o.O9T.red[800]},collateral:{color:o.O9T.amber[600]},sectorsTemp:{label:"temp sectors",color:o.O9T.amber[600]},sectorsContract:{label:"contract sectors",color:o.O9T.green[600]},sectorAccess:{label:"sector access",color:o.O9T.blue[600]},sc:{color:o.O9T.green[600]},sf:{color:o.O9T.amber[600]},locked:{color:o.O9T.purple[600]},risked:{color:o.O9T.amber[600]},burnt:{color:o.O9T.red[600]}};var l=n(27444);function u(e,t,n){return{...e,category:t,pattern:n}}function c(e,t,n){return{...e,category:t,label:n}}var d=n(6391),f=n.n(d),h=n(14817),p=n(66700);function m(e,t){for(var n=Math.abs(e).toString();n.length"7"===e.value),b=(0,i.createContext)({}),w=()=>(0,i.useContext)(b);function E(e){let{children:t}=e,n=function(){let[e,t]=(0,y.Z)("v0/metrics/dataTimeSpan",{defaultValue:x.value}),[n,r]=(0,y.Z)("v0/metrics/dataInterval",{defaultValue:x.interval}),d=function(e){let[t,n]=(0,i.useState)(new Date().getTime());return(0,i.useEffect)(()=>{n(new Date().getTime());let t=setInterval(()=>{n(new Date().getTime()),console.log("reset time range")},(0,h.uQ)(e));return()=>clearInterval(t)},[e]),t}(n),b=(0,i.useMemo)(()=>(0,o.OQF)(e,d),[e,d]),w=(0,i.useCallback)(e=>{let n=h.lv.find(t=>t.value===e);r(n.interval),t(n.value)},[t,r]),E=(0,i.useMemo)(()=>(0,o.kOJ)(n),[n]),j=(0,l.KU)({params:{interval:n,start:function(e,t){(0,v.Z)(1,arguments);var n=(0,p.Z)(e);if(isNaN(n.getTime()))throw RangeError("Invalid time value");var r=null!=t&&t.format?String(t.format):"extended",i=null!=t&&t.representation?String(t.representation):"complete";if("extended"!==r&&"basic"!==r)throw RangeError("format must be 'extended' or 'basic'");if("date"!==i&&"time"!==i&&"complete"!==i)throw RangeError("representation must be 'date', 'time', or 'complete'");var o="",a="",s="extended"===r?"-":"";if("time"!==i){var l=m(n.getDate(),2),u=m(n.getMonth()+1,2),c=m(n.getFullYear(),4);o="".concat(c).concat(s).concat(u).concat(s).concat(l)}if("date"!==i){var d=n.getTimezoneOffset();if(0!==d){var f=Math.abs(d),h=m(Math.floor(f/60),2),g=m(f%60,2);a="".concat(d<0?"+":"-").concat(h,":").concat(g)}else a="Z";var y=m(n.getHours(),2),x=m(n.getMinutes(),2),b=m(n.getSeconds(),2),w=""===o?"":"T",E=[y,x,b].join("extended"===r?":":"");o="".concat(o).concat(w).concat(E).concat(a)}return o}(new Date(b.start-(0,h.uQ)(n)))},config:{swr:{revalidateOnFocus:!1,refreshInterval:(0,o.sWj)(5)}}}),k=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=j.data)||void 0===e?void 0:e.map(e=>({storagePotential:Number(e.revenue.potential.storage),ingressPotential:Number(e.revenue.potential.ingress),egressPotential:Number(e.revenue.potential.egress),registryReadPotential:Number(e.revenue.potential.registryRead),registryWritePotential:Number(e.revenue.potential.registryWrite),rpcPotential:Number(e.revenue.potential.rpc),storage:Number(e.revenue.earned.storage),ingress:Number(e.revenue.earned.ingress),egress:Number(e.revenue.earned.egress),registryRead:Number(e.revenue.earned.registryRead),registryWrite:Number(e.revenue.earned.registryWrite),rpc:Number(e.revenue.earned.rpc),potential:new(f())(e.revenue.potential.storage).plus(e.revenue.potential.ingress).plus(e.revenue.potential.egress).plus(e.revenue.potential.registryRead).plus(e.revenue.potential.registryWrite).plus(e.revenue.potential.rpc).toNumber(),earned:new(f())(e.revenue.earned.storage).plus(e.revenue.earned.ingress).plus(e.revenue.earned.egress).plus(e.revenue.earned.registryRead).plus(e.revenue.earned.registryWrite).plus(e.revenue.earned.rpc).toNumber(),timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storage","storagePotential","ingress","ingressPotential","egress","egressPotential","registryRead","registryReadPotential","registryWrite","registryWritePotential","rpc","rpcPotential"],enabledTip:["potential","earned","storage","storagePotential","ingress","ingressPotential","egress","egressPotential","registryRead","registryReadPotential","registryWrite","registryWritePotential","rpc","rpcPotential"],categories:["earned","potential"],data:{storagePotential:u(s.storage,"potential",!0),ingressPotential:u(s.ingress,"potential",!0),egressPotential:u(s.egress,"potential",!0),registryReadPotential:u(s.registryReads,"potential",!0),registryWritePotential:u(s.registryWrites,"potential",!0),rpcPotential:u(s.rpc,"potential",!0),storage:u(s.storage,"earned"),ingress:u(s.ingress,"earned"),egress:u(s.egress,"earned"),registryRead:u(s.registryReads,"earned"),registryWrite:u(s.registryWrites,"earned"),rpc:u(s.rpc,"earned"),earned:c({},"earned","total"),potential:c({},"potential","total")},format:e=>(0,a.Vz)(e),formatTimestamp:E,disableAnimations:!0},chartType:"line",isLoading:j.isValidating}},[j,E]),_=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=j.data)||void 0===e?void 0:e.map(e=>({locked:Number(e.contracts.lockedCollateral),risked:Number(e.contracts.riskedCollateral),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["locked","risked"],enabledTip:["locked","risked"],data:{locked:s.locked,risked:s.risked},format:e=>(0,a.Vz)(e),formatTimestamp:E,disableAnimations:!0},chartType:"area",isLoading:j.isValidating}},[j,E]),S=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=j.data)||void 0===e?void 0:e.map(e=>({baseRPC:(0,g.sS)(e.pricing.baseRPCPrice).toNumber(),collateral:(0,g.c5)(new(f())(e.pricing.storagePrice).times(e.pricing.collateralMultiplier)).toNumber(),contract:Number(e.pricing.contractPrice),egress:(0,g.B1)(e.pricing.egressPrice).toNumber(),ingress:(0,g.dK)(e.pricing.ingressPrice).toNumber(),sectorAccess:(0,g.nS)(e.pricing.sectorAccessPrice).toNumber(),storage:(0,g.SY)(e.pricing.storagePrice).toNumber(),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],enabledTip:["storage","ingress","egress","collateral","contract","sectorAccess","baseRPC"],data:{baseRPC:s.rpc,sectorAccess:s.sectorAccess,contract:s.contract,collateral:s.collateral,egress:s.egress,ingress:s.ingress,storage:s.storage},format:e=>(0,a.Vz)(e),formatTimestamp:E,disableAnimations:!0},chartType:"line",isLoading:j.isValidating}},[j,E]),O=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=j.data)||void 0===e?void 0:e.map(e=>({active:e.contracts.active,failed:e.contracts.failed,pending:e.contracts.pending,rejected:e.contracts.rejected,successful:e.contracts.successful,timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["successful","active","pending","rejected","failed"],enabledTip:["successful","active","pending","rejected","failed"],data:{active:s.active,failed:s.failed,pending:s.pending,rejected:s.rejected,successful:s.successful},format:e=>"".concat(e," contracts"),formatTimestamp:E,disableAnimations:!0},chartType:"areastack",isLoading:j.isValidating}},[j,E]),C=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=j.data)||void 0===e?void 0:e.map(e=>({maxSectors:(0,o.B$N)(e.storage.totalSectors).times(4).toNumber(),registryEntries:113*e.registry.entries,maxRegistryEntries:113*e.registry.maxEntries,tempSectors:(0,o.B$N)(e.storage.tempSectors).times(4).toNumber(),physicalSectors:(0,o.B$N)(e.storage.physicalSectors).times(4).toNumber(),contractSectors:(0,o.B$N)(e.storage.contractSectors).times(4).toNumber(),timestamp:new Date(e.timestamp).getTime()})).slice(1),"none"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["contractSectors","physicalSectors","tempSectors","registryEntries","maxSectors","maxRegistryEntries"],enabledTip:["contractSectors","physicalSectors","tempSectors","registryEntries","maxSectors","maxRegistryEntries"],categories:["storage used","storage capacity"],data:{maxSectors:c(s.capacityStorage,"storage capacity","sectors"),maxRegistryEntries:c(s.capacityRegistry,"storage capacity","registry"),physicalSectors:c(s.storagePhysical,"storage used","sectors physical"),registryEntries:c(s.registry,"storage used","registry (max)"),tempSectors:c(s.sectorsTemp,"storage used","sectors temp"),contractSectors:c(s.storage,"storage used","sectors contract")},format:e=>(0,a.vW)(e),formatTimestamp:E,disableAnimations:!0},chartType:"line",isLoading:j.isValidating}},[j,E]),M=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=j.data)||void 0===e?void 0:e.map(e=>({storageReads:e.storage.reads,storageWrites:e.storage.writes,registryReads:e.registry.reads,registryWrites:e.registry.writes,timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["storageReads","storageWrites","registryReads","registryWrites"],enabledTip:["storageReads","storageWrites","registryReads","registryWrites"],data:{registryReads:s.registryReads,registryWrites:s.registryWrites,storageReads:s.storageReads,storageWrites:s.storageWrites},format:e=>(0,a.yF)(e),formatTimestamp:E,disableAnimations:!0},chartType:"line",isLoading:j.isValidating}},[j,E]),A=(0,i.useMemo)(()=>{var e;let t=(0,o.Y_Z)(null===(e=j.data)||void 0===e?void 0:e.map(e=>({egress:e.data.rhp3.egress+e.data.rhp2.egress,ingress:e.data.rhp3.ingress+e.data.rhp2.ingress,timestamp:new Date(e.timestamp).getTime()})),"delta"),n=(0,o.fVJ)(t);return{data:t,stats:n,config:{enabledGraph:["ingress","egress"],enabledTip:["ingress","egress"],data:{ingress:s.ingress,egress:s.egress},format:e=>(0,a.vW)(e),formatTimestamp:E,disableAnimations:!0},chartType:"line",isLoading:j.isValidating}},[j,E]);return{dataTimeSpan:e,setDataTimeSpan:w,timeRange:b,dataInterval:n,setDataInterval:r,operations:M,revenue:k,collateral:_,contracts:O,storage:C,pricing:S,bandwidth:A}}();return(0,r.jsx)(b.Provider,{value:n,children:t})}},14817:function(e,t,n){"use strict";n.d(t,{lv:function(){return i},uQ:function(){return o}});var r=n(76848);let i=[{label:"1D",interval:"5m",value:"1"},{label:"7D",interval:"15m",value:"7"},{label:"1M",interval:"hourly",value:"30"},{label:"3M",interval:"daily",value:"90"},{label:"1Y",interval:"daily",value:"365"},{label:"ALL",interval:"weekly",value:"all"}];function o(e){return"5m"===e?(0,r.sWj)(5):"15m"===e?(0,r.sWj)(15):"hourly"===e?(0,r.ytg)(1):"daily"===e?(0,r.NrH)(1):"weekly"===e?(0,r.NrH)(7):"monthly"===e?(0,r.NrH)(30):"yearly"===e?(0,r.NrH)(365):0}},78743:function(e,t,n){"use strict";n.d(t,{Y:function(){return y},F:function(){return g}});var r=n(52322),i=n(76848),o=n(27444),a=n(2784);let s=["actions","path","storage","available","readOnly","successfulReads","successfulWrites","failedReads","failedWrites"];var l=n(41775),u=n(96206),c=n(22515);function d(e){var t,n;let{id:a,contentProps:s,buttonProps:u}=e,{openDialog:d}=(0,c.Rh)(),h=(0,o.Rz)(),p=(0,o.ST)({params:{id:a}}),m=(0,o._3)(),v=p.data&&"ready"==p.data.status,g=p.data&&!["ready","unavailable"].includes(p.data.status);return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...u,children:(0,r.jsx)(l.iG7,{})}),contentProps:{align:"start",...s},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Volume ",p.data?(0,i.$Gg)(null===(t=p.data)||void 0===t?void 0:t.localPath,24):a]})}),(0,r.jsx)(i.Juw,{children:"Actions"}),g?(0,r.jsxs)(i.Xiv,{onSelect:async()=>{var e;let t=null===(e=p.data)||void 0===e?void 0:e.status,n=await m.delete({params:{id:Number(a)}});n.error?(0,i.OHV)("Error canceling volume ".concat(f(t),".")):(0,i.OPV)("Successfully canceled volume ".concat(f(t),"."))},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.PcV,{})}),"Cancel ".concat(f(null===(n=p.data)||void 0===n?void 0:n.status))]}):null,p.data?(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:async()=>{let e=!p.data.readOnly,t=await h.put({params:{id:Number(a)},payload:{readOnly:e}});t.error?(0,i.OHV)(e?"Error setting volume to read-only.":"Error setting volume to read/write."):(0,i.OPV)(e?"Volume set to read-only.":"Volume set to read/write.")},children:[(0,r.jsx)(i.KpP,{children:p.data.readOnly?(0,r.jsx)(l.dr6,{}):(0,r.jsx)(l.Lur,{})}),p.data.readOnly?"Set to read/write":"Set to read-only"]}):null,(0,r.jsxs)(i.Xiv,{disabled:!v,onSelect:()=>d("volumeResize",a),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.BB5,{})}),"Resize"]}),(0,r.jsxs)(i.Xiv,{disabled:g,onSelect:()=>d("volumeDelete",a),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(l.Jrl,{})}),"Delete"]})]})}function f(e){return"resizing"===e?"resize":"creating"===e?"creation":"removing"===e?"removal":"operation"}let h=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,r.jsx)(d,{id:t.id})}},{id:"path",label:"path",category:"general",render:e=>{let{data:t}=e;return(0,r.jsx)(i.xvT,{font:"mono",ellipsis:!0,children:t.localPath})}},{id:"available",label:"status",category:"general",render:e=>{var t;let{data:n}=e;return(0,r.jsx)(i.ua7,{side:"right",content:n.available?"available":(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.xvT,{children:"unavailable"}),(0,r.jsx)("div",{className:"flex flex-col",children:null===(t=n.errors)||void 0===t?void 0:t.map(e=>(0,r.jsx)(i.xvT,{size:"10",noWrap:!0,children:e},e))})]}),children:(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[n.available&&"ready"===n.status&&(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(l.DI$,{})}),n.available&&"ready"!==n.status&&(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(l.dsj,{})}),!n.available&&(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(l.SmH,{})}),(0,r.jsx)(i.xvT,{size:"12",className:"relative -top-px",children:n.status})]})})}},{id:"readOnly",label:"read/write",category:"general",render:e=>{let{data:t}=e;return t.readOnly?(0,r.jsx)(i.ua7,{content:"Read-only",children:(0,r.jsx)(i.xvT,{children:(0,r.jsx)(l.Lur,{})})}):(0,r.jsx)(i.ua7,{content:"Read and write enabled",children:(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(l.dr6,{})})})}},{id:"storage",label:"storage",category:"general",render:e=>{let{data:t}=e;return(0,r.jsx)("div",{className:"flex gap-1 w-full max-w-[200px] pt-[10px]",children:(0,r.jsx)(i.kod,{variant:"accent",value:t.usedBytes,max:t.totalBytes,label:"".concat((0,u.vW)(t.usedBytes)," / ").concat((0,u.vW)(t.totalBytes))})})}},{id:"successfulReads",label:"successful reads",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulReads,format:e=>e.toNumber().toLocaleString()})}},{id:"successfulWrites",label:"successful writes",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.successfulWrites,format:e=>e.toNumber().toLocaleString()})}},{id:"failedReads",label:"failed reads",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedReads,format:e=>e.toNumber().toLocaleString()})}},{id:"failedWrites",label:"failed writes",category:"operations",render:e=>{let{data:t}=e;return(0,r.jsx)(i.m2c,{variant:"value",size:"12",value:t.failedWrites,format:e=>e.toNumber().toLocaleString()})}}];var p=n(6391),m=n.n(p);let v=(0,a.createContext)({}),g=()=>(0,a.useContext)(v);function y(e){let{children:t}=e,n=function(){let{configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:u,setSortDirection:c,setSortField:d,sortField:f,sortDirection:p,resetDefaultColumnVisibility:v}=(0,i.oy6)("hostd/v0/volumes",{columns:h,columnsDefaultVisible:s}),g=(0,o.Fn)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.find(e=>!["ready","unavailable"].includes(e.status)))?(0,i.XBW)(5):(0,i.XBW)(60)}}}),y=function(e){let{response:t}=e;return(0,a.useMemo)(()=>{var e;return t.data?(null===(e=t.data)||void 0===e?void 0:e.map(e=>({id:String(e.ID),ID:e.ID,localPath:e.localPath,usedSectors:e.usedSectors,usedBytes:new(m())(e.usedSectors).times((0,i.B$N)(4)).toNumber(),totalBytes:new(m())(e.totalSectors).times((0,i.B$N)(4)).toNumber(),totalSectors:e.totalSectors,status:e.status,readOnly:e.readOnly,available:e.available,failedReads:new(m())(e.failedReads),failedWrites:new(m())(e.failedWrites),successfulReads:new(m())(e.successfulReads),successfulWrites:new(m())(e.successfulWrites),errors:e.errors})))||[]:null},[t.data])}({response:g}),x=(0,a.useMemo)(()=>h.filter(e=>t.includes(e.id)),[t]),b=g.isValidating,w=g.error,E=(0,i.c2j)(y,b,w,[]);return{dataState:E,totalCount:(null==y?void 0:y.length)||0,isLoading:g.isValidating,columns:x,dataset:y,configurableColumns:e,enabledColumns:t,toggleColumnVisibility:n,setColumnsVisible:r,setColumnsHidden:l,toggleSort:u,setSortDirection:c,setSortField:d,sortField:f,sortDirection:p,resetDefaultColumnVisibility:v}}();return(0,r.jsx)(v.Provider,{value:n,children:t})}},734:function(e,t,n){"use strict";n.d(t,{O:function(){return u},Y:function(){return f}});var r=n(52322),i=n(76848),o=n(92838),a=n(63397),s=n(24511),l=n(22515);function u(e){return{id:"filterContractId",value:e,label:"contract ID is ".concat(e)}}let c={contractId:""},d=s.Ry().shape({contractId:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.contractId)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by contract ID",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Contract ID",name:"contractId",placeholder:"Exact match for contract ID",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},25573:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(2850),i=n(27444);function o(){var e,t,n,o;let{isUnlocked:a}=(0,r.Hv)(),s=(0,i.d$)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?6e4:1e4}}}),l=(0,i.nH)(),u=s.data?null===(e=s.data)||void 0===e?void 0:e.chainIndex.height:0,c=(0,i.Os)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)>=u?6e4:1e4}}}),d=a&&u&&l?Number((100*Math.min(u/l,1)).toFixed(1)):0,f=a&&u&&c.data?Number((100*Math.min(c.data.scanHeight/l,1)).toFixed(1)):0;return{isSynced:null===(t=s.data)||void 0===t?void 0:t.synced,isWalletSynced:(null===(n=s.data)||void 0===n?void 0:n.synced)&&(null===(o=c.data)||void 0===o?void 0:o.scanHeight)>=u-1,nodeBlockHeight:u,estimatedBlockHeight:l,syncPercent:d,walletScanPercent:f,moreThan100BlocksToSync:!!u&&!!l&&l-u>100,firstTimeSyncing:!!u&&!!l&&l-u>5e4}}},94977:function(e,t,n){"use strict";n.d(t,{B1:function(){return m},K9:function(){return c},LP:function(){return v},SY:function(){return s},c5:function(){return h},co:function(){return l},dK:function(){return g},dz:function(){return a},nS:function(){return d},rZ:function(){return f},s2:function(){return p},sS:function(){return u}});var r=n(76848),i=n(6391),o=n.n(i);let a="/TB/month";function s(e){return new(o())(e).times((0,r.xf5)(1)).times((0,r.S5V)(1))}let l="/million";function u(e){return new(o())(e).times(1e7)}let c="/million";function d(e){return new(o())(e).times(1e7)}let f="/TB/month";function h(e){return new(o())(e).times((0,r.xf5)(1)).times((0,r.S5V)(1))}let p="/TB";function m(e){return new(o())(e).times((0,r.xf5)(1))}let v="/TB";function g(e){return new(o())(e).times((0,r.xf5)(1))}},76176:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var r=n(52322);n(37832);var i=n(76848),o=n(92838),a=n(5187),s=n(22515),l=n(78743),u=n(99957),c=n(41775),d=n(25573),f=n(71930),h=n(27444),p=n(6391),m=n.n(p),v=n(96206),g=n(2850),y=n(92762);function x(){var e,t;let{isUnlocked:n}=(0,g.Hv)(),{openDialog:o}=(0,s.Rh)(),{dataset:a}=(0,l.F)(),u=(0,h.rV)(),p=(0,h.Os)(),[x,w]=(0,y.Z)("v0/hostd/onboarding/maximized",{defaultValue:!0}),E=(0,d.n)();if(!n)return null;let j=new(m())((null===(e=p.data)||void 0===e?void 0:e.confirmed)||0),k=(0,v.qN)(5e3),_=p.data&&j.gte(k),S=(null==a?void 0:a.length)>0,O=null===(t=u.data)||void 0===t?void 0:t.acceptingContracts,C=E.isSynced,M=[_,S,O,C],A=M.length,P=M.filter(e=>e).length;return A===P?null:x?(0,r.jsx)("div",{className:"z-20 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.TRl,{}),(0,r.jsx)(i.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>w(!1),children:(0,r.jsx)(c.mli,{})})]}),(0,r.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,r.jsx)(i.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, your host is ready to store data."})}),(0,r.jsx)(b,{title:(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>o("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Fund your wallet"}),description:"Fund your wallet with at least ".concat((0,v.Vz)(k)," siacoin to cover required contract collateral.").concat(E.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:_?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!E.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(E.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[E.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:f._.wallet.view,onClick:()=>o("addressDetails"),children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(b,{title:(0,r.jsx)(i.rUS,{href:f._.volumes.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 2: Add a volume"}),description:"Add a system volume that will be used to store data.",action:S?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:f._.volumes.index,children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(b,{title:(0,r.jsx)(i.rUS,{href:f._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Configure pricing and settings"}),description:"Configure your host's pricing and settings and start accepting contracts.",action:O?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:f._.config.index,children:(0,r.jsx)(c.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.Fs9,{})})]})}),(0,r.jsx)(b,{title:(0,r.jsx)(i.rUS,{href:f._.node.index,underline:"hover",ellipsis:!0,size:"14",children:"Step 4: Wait for the blockchain to sync"}),description:"The blockchain will sync in the background, this takes some time. No user action required.",action:C?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(c.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[E.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(c.hzZ,{})})]})})]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.zxk,{onClick:()=>w(!0),size:"large",className:"flex gap-3 !px-3",children:(0,r.jsxs)(i.xvT,{className:"flex items-center gap-1",children:[(0,r.jsx)(i.TRl,{}),"Setup: ",P,"/",A," steps complete"]})})})}function b(e){let{title:t,action:n,description:o}=e;return(0,r.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("div",{className:"flex-1 flex items-center",children:t}),n]}),(0,r.jsx)("div",{className:"pr-5",children:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:o})})]})})}function w(e){let{children:t}=e;return(0,r.jsx)(s.Tu,{children:(0,r.jsx)(u.iV,{children:(0,r.jsx)(l.Y,{children:(0,r.jsx)(o.x,{children:(0,r.jsxs)(a.C,{children:[(0,r.jsx)(s.xQ,{}),(0,r.jsx)(x,{}),t]})})})})})}function E(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:f._,children:(0,r.jsx)(w,{children:(0,r.jsx)(t,{...n})})})}},76848:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{hcY:function(){return _V},tU3:function(){return _R},zXq:function(){return _J},juT:function(){return _a},Cts:function(){return lg},Z58:function(){return SA},WVB:function(){return cP},zxk:function(){return le},b0u:function(){return EF},EKh:function(){return lb},vRO:function(){return Ot},QHy:function(){return SJ},TaT:function(){return S$},eQh:function(){return lE},HfT:function(){return S2},ncR:function(){return k$},A06:function(){return SD},Vy9:function(){return SL},VqE:function(){return l9},h_2:function(){return cL},Xiv:function(){return cF},Juw:function(){return cV},KpP:function(){return cz},XOF:function(){return kq},jIp:function(){return On},QBj:function(){return Or},yEL:function(){return _G},cB7:function(){return kJ},ZqQ:function(){return kQ},IKw:function(){return k5},Hzd:function(){return Og},WN2:function(){return OE},X6q:function(){return cU},Yqd:function(){return f_},__J:function(){return cJ},rUS:function(){return c2},TRl:function(){return c3},YaL:function(){return Ox},kFS:function(){return cT},FzK:function(){return SK},Clw:function(){return cA},B$N:function(){return Op},PD$:function(){return Ol},Wxm:function(){return fM},uDJ:function(){return k7},s_4:function(){return tG},nvN:function(){return t$},u5Q:function(){return SP},j4H:function(){return fS},J2e:function(){return dg},kod:function(){return dP},xrM:function(){return l6},PhF:function(){return fC},Z0O:function(){return c_},DLL:function(){return Sb},KJW:function(){return _u},rsf:function(){return fW},D_D:function(){return Sf},xf5:function(){return Om},iA_:function(){return k6},t6k:function(){return S4},xvT:function(){return tq},nvn:function(){return d3},ua7:function(){return s7},mPE:function(){return Sh},XxW:function(){return kE},m2c:function(){return k_},YKL:function(){return kk},QUh:function(){return SE},weF:function(){return _9},YNn:function(){return Sv},DmW:function(){return Sg},jrD:function(){return SI},E6f:function(){return Sz},Uzc:function(){return Ov},BTR:function(){return Oy},O9T:function(){return m3},fVJ:function(){return SO},vQq:function(){return kh},NrH:function(){return ET},Y_Z:function(){return Sj},EJC:function(){return Oj},kOJ:function(){return SS},OQF:function(){return Sk},leQ:function(){return kg},ytg:function(){return EP},Vkc:function(){return cO},sWj:function(){return EA},S5V:function(){return SF},z$:function(){return tY},XBW:function(){return EN},x9T:function(){return Ob},bjP:function(){return Ow},I13:function(){return km},cEb:function(){return d4},OHV:function(){return kc},OPV:function(){return ku},$Gg:function(){return kp},Y97:function(){return _N},c2j:function(){return _D},WsO:function(){return _Y},Uu5:function(){return Oh},oy6:function(){return Of}});var s,l,u,c,d,f,h,p,m,v,g,y,x=n(52322),b=n(2784),w=n.t(b,2),E=n(7896),j=n(34540),k=n(26215),_=n(99575);function S(e){let t=e+"CollectionProvider",[n,r]=(0,j.b)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=b.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=(0,k.e)(t,i.collectionRef);return b.createElement(_.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=b.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=b.useRef(null),s=(0,k.e)(t,a),c=o(l,n);return b.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),b.createElement(_.g7,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=b.useRef(null),o=b.useRef(new Map).current;return b.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=b.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}var O=n(41816),C=n(73597),M=n(72130),A=n(64680),P=n(28245),T=n(26074);let N="Collapsible",[R,D]=(0,j.b)(N),[L,F]=R(N),V=((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=(0,C.T)({prop:r,defaultProp:i,onChange:a});return(0,b.createElement)(L,{scope:n,disabled:o,contentId:(0,T.M)(),open:l,onOpenToggle:(0,b.useCallback)(()=>u(e=>!e),[u])},(0,b.createElement)(M.WV.div,(0,E.Z)({"data-state":I(l),"data-disabled":o?"":void 0},s,{ref:t})))},"CollapsibleContent"),z=((e,t)=>{let{forceMount:n,...r}=e,i=F(V,e.__scopeCollapsible);return(0,b.createElement)(P.z,{present:n||i.open},({present:e})=>(0,b.createElement)(z,(0,E.Z)({},r,{ref:t,present:e})))},(0,b.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,a=F(V,n),[s,l]=(0,b.useState)(r),u=(0,b.useRef)(null),c=(0,k.e)(t,u),d=(0,b.useRef)(0),f=d.current,h=(0,b.useRef)(0),p=h.current,m=a.open||s,v=(0,b.useRef)(m),g=(0,b.useRef)();return(0,b.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,A.b)(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationDuration=g.current.animationDuration,e.style.animationFillMode=g.current.animationFillMode),l(r)}},[a.open,r]),(0,b.createElement)(M.WV.div,(0,E.Z)({"data-state":I(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m},o,{ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style}}),m&&i)}));function I(e){return e?"open":"closed"}let Z="Accordion",B=["Home","End","ArrowDown","ArrowUp"],[H,U,W]=S(Z),[q,$]=(0,j.b)(Z,[W,D]),Y=(D(),b.forwardRef((e,t)=>{let{type:n,...r}=e;return b.createElement(H.Provider,{scope:e.__scopeAccordion},"multiple"===n?b.createElement(ee,(0,E.Z)({},r,{ref:t})):b.createElement(J,(0,E.Z)({},r,{ref:t})))}));Y.propTypes={type(e){let t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[G,K]=q(Z),[X,Q]=q(Z,{collapsible:!1}),J=b.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=(0,C.T)({prop:n,defaultProp:r,onChange:i});return b.createElement(G,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:b.useCallback(()=>o&&l(""),[o,l])},b.createElement(X,{scope:e.__scopeAccordion,collapsible:o},b.createElement(er,(0,E.Z)({},a,{ref:t}))))}),ee=b.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[a=[],s]=(0,C.T)({prop:n,defaultProp:r,onChange:i}),l=b.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=b.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return b.createElement(G,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},b.createElement(X,{scope:e.__scopeAccordion,collapsible:!0},b.createElement(er,(0,E.Z)({},o,{ref:t}))))}),[et,en]=q(Z),er=b.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,o=b.useRef(null),a=(0,k.e)(o,t),s=U(n),l=(0,O.M)(e.onKeyDown,e=>{var t;if(!B.includes(e.key))return;let n=e.target,r=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=r.findIndex(e=>e.ref.current===n),o=r.length;if(-1===i)return;e.preventDefault();let a=i;switch(e.key){case"Home":a=0;break;case"End":a=o-1;break;case"ArrowDown":a=i+1;break;case"ArrowUp":(a=i-1)<0&&(a=o-1)}let l=a%o;null===(t=r[l].ref.current)||void 0===t||t.focus()});return b.createElement(et,{scope:n,disabled:r},b.createElement(H.Slot,{scope:n},b.createElement(M.WV.div,(0,E.Z)({},i,{ref:a,onKeyDown:r?void 0:l}))))}),[ei,eo]=q("AccordionItem");var ea=n(82851),es=n(83317);function el(e){return e.split("-")[0]}function eu(e){return e.split("-")[1]}function ec(e){return["top","bottom"].includes(el(e))?"x":"y"}function ed(e){return"y"===e?"height":"width"}function ef(e,t,n){let r,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=ec(t),u=ed(l),c=i[u]/2-o[u]/2,d="x"===l;switch(el(t)){case"top":r={x:a,y:i.y-o.height};break;case"bottom":r={x:a,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:s};break;case"left":r={x:i.x-o.width,y:s};break;default:r={x:i.x,y:i.y}}switch(eu(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let eh=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=ef(l,r,s),d=r,f={},h=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==n)return{};let u=ep(r),c={x:i,y:o},d=ec(a),f=eu(a),h=ed(d),p=await l.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),b=x?"y"===d?x.clientHeight||0:x.clientWidth||0:0;0===b&&(b=s.floating[h]);let w=u[m],E=b-p[h]-u[v],j=b/2-p[h]/2+(g/2-y/2),k=ey(w,eg(j,E)),_=("start"===f?u[m]:u[v])>0&&j!==k&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(_?jeb[e])}let eE={start:"end",end:"start"};function ej(e){return e.replace(/start|end/g,e=>eE[e])}let ek=["top","right","bottom","left"];ek.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let e_=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=e,y=el(a),x=p||(y!==u&&v?function(e){let t=ew(e);return[ej(e),t,ej(t)]}(u):[ew(u)]),b=[u,...x],w=await ev(t,g),E=[],j=(null==(n=s.flip)?void 0:n.overflows)||[];if(f&&E.push(w[y]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let r=eu(e),i=ec(e),o=ed(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ew(a)),{main:a,cross:ew(a)}}(a,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));E.push(w[e],w[t])}if(j=[...j,{placement:a,overflows:E}],!E.every(e=>e<=0)){let e=(null!=(r=null==(i=s.flip)?void 0:i.index)?r:0)+1,t=b[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let n="bottom";switch(m){case"bestFit":{let e=null==(o=j.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0].placement;e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}}};function eS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eO(e){return ek.some(t=>e[t]>=0)}let eC=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:r}=e;switch(t){case"referenceHidden":{let t=eS(await ev(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eO(t)}}}case"escaped":{let t=eS(await ev(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:eO(t)}}}default:return{}}}}},eM=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,i=await async function(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=el(n),s=eu(n),l="x"===ec(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function eA(e){return"x"===e?"y":"x"}let eP=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,u={x:n,y:r},c=await ev(t,l),d=ec(el(i)),f=eA(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=ey(h+c["y"===d?"top":"left"],eg(h,h-c[e]))}a&&(p=ey(p+c["y"===f?"top":"left"],eg(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},eT=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:n,y:r},d=ec(i),f=eA(d),h=c[d],p=c[f],m="function"==typeof s?s({...o,placement:i}):s,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+v.mainAxis,n=o.reference[d]+o.reference[e]-v.mainAxis;hn&&(h=n)}if(u){var g,y,x,b;let e="y"===d?"width":"height",t=["top","left"].includes(el(i)),n=o.reference[f]-o.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:null!=(x=null==(b=a.offset)?void 0:b[f])?x:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function eN(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function eR(e){if(null==e)return window;if(!eN(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function eD(e){return eR(e).getComputedStyle(e)}function eL(e){return eN(e)?"":e?(e.nodeName||"").toLowerCase():""}function eF(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function eV(e){return e instanceof eR(e).HTMLElement}function ez(e){return e instanceof eR(e).Element}function eI(e){return"undefined"!=typeof ShadowRoot&&(e instanceof eR(e).ShadowRoot||e instanceof ShadowRoot)}function eZ(e){let{overflow:t,overflowX:n,overflowY:r}=eD(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function eB(e){let t=/firefox/i.test(eF()),n=eD(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function eH(){return!/^((?!chrome|android).)*safari/i.test(eF())}let eU=Math.min,eW=Math.max,eq=Math.round;function e$(e,t,n){var r,i,o,a;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&eV(e)&&(l=e.offsetWidth>0&&eq(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&eq(s.height)/e.offsetHeight||1);let c=ez(e)?eR(e):window,d=!eH()&&n,f=(s.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(o=null==(a=c.visualViewport)?void 0:a.offsetTop)?o:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function eY(e){return((e instanceof eR(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function eG(e){return ez(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function eK(e){return e$(eY(e)).left+eG(e).scrollLeft}function eX(e){return"html"===eL(e)?e:e.assignedSlot||e.parentNode||(eI(e)?e.host:null)||eY(e)}function eQ(e){return eV(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function eJ(e){let t=eR(e),n=eQ(e);for(;n&&["table","td","th"].includes(eL(n))&&"static"===getComputedStyle(n).position;)n=eQ(n);return n&&("html"===eL(n)||"body"===eL(n)&&"static"===getComputedStyle(n).position&&!eB(n))?t:n||function(e){let t=eX(e);for(eI(t)&&(t=t.host);eV(t)&&!["html","body"].includes(eL(t));){if(eB(t))return t;t=t.parentNode}return null}(e)||t}function e0(e){if(eV(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=e$(e);return{width:t.width,height:t.height}}function e1(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=eX(t);return["html","body","#document"].includes(eL(n))?t.ownerDocument.body:eV(n)&&eZ(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=eR(r),a=i?[o].concat(o.visualViewport||[],eZ(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(e1(a))}function e2(e,t,n){return"viewport"===t?em(function(e,t){let n=eR(e),r=eY(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=eH();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):ez(t)?function(e,t){let n=e$(e,!1,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):em(function(e){var t;let n=eY(e),r=eG(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=eW(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=eW(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+eK(e),l=-r.scrollTop;return"rtl"===eD(i||n).direction&&(s+=eW(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(eY(e)))}let e4={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e){let t=e1(e),n=["absolute","fixed"].includes(eD(e).position)&&eV(e)?eJ(e):e;return ez(n)?t.filter(e=>ez(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&eI(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==eL(e)):[]}(t):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=e2(t,n,i);return e.top=eW(r.top,e.top),e.right=eU(r.right,e.right),e.bottom=eU(r.bottom,e.bottom),e.left=eW(r.left,e.left),e},e2(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=eV(n),o=eY(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==eL(n)||eZ(o))&&(a=eG(n)),eV(n))){let e=e$(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:ez,getDimensions:e0,getOffsetParent:eJ,getDocumentElement:eY,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=eV(t),i=eY(t),o=e$(e,r&&function(e){let t=e$(e);return eq(t.width)!==e.offsetWidth||eq(t.height)!==e.offsetHeight}(t),"fixed"===n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==eL(t)||eZ(i))&&(a=eG(t)),eV(t)){let e=e$(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=eK(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,eJ(n),r),floating:{...e0(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eD(e).direction};function e3(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=i&&!s,u=o&&!s,c=l||u?[...ez(e)?e1(e):[],...e1(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let d,f=null;if(a){let r=!0;f=new ResizeObserver(()=>{r||n(),r=!1}),ez(e)&&!s&&f.observe(e),f.observe(t)}let h=s?e$(e):null;return s&&function t(){let r=e$(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let e5=(e,t,n)=>eh(e,t,{platform:e4,...n});var e6=n(28316),e8="undefined"!=typeof document?b.useLayoutEffect:b.useEffect;function e7(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=b.useRef(null),a=b.useRef(null),s=function(e){let t=b.useRef(e);return e8(()=>{t.current=e}),t}(i),l=b.useRef(null),[u,c]=b.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=b.useState(t);!function e(t,n){let r,i,o;if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&t.toString()===n.toString())return!0;if(t&&n&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){let r=o[i];if(("_owner"!==r||!t.$$typeof)&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=b.useCallback(()=>{o.current&&a.current&&e5(o.current,a.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&e6.flushSync(()=>{c(e)})})},[d,n,r]);e8(()=>{p.current&&h()},[h]);let p=b.useRef(!1);e8(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=b.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current){if(s.current){let e=s.current(o.current,a.current,h);l.current=e}else h()}},[h,s]),v=b.useCallback(e=>{o.current=e,m()},[m]),g=b.useCallback(e=>{a.current=e,m()},[m]),y=b.useMemo(()=>({reference:o,floating:a}),[]);return b.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let e9=e=>{let{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return ex({element:t.current,padding:n}).fn(e)}else if(t)return ex({element:t,padding:n}).fn(e);return{}}}},te=(0,b.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,b.createElement)(M.WV.svg,(0,E.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,b.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tt(e){let[t,n]=(0,b.useState)(void 0);return(0,A.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}let tn="Popper",[tr,ti]=(0,j.b)(tn),[to,ta]=tr(tn),ts=(0,b.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=ta("PopperAnchor",n),a=(0,b.useRef)(null),s=(0,k.e)(t,a);return(0,b.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,b.createElement)(M.WV.div,(0,E.Z)({},i,{ref:s}))}),tl="PopperContent",[tu,tc]=tr(tl),[td,tf]=tr(tl,{hasParent:!1,positionUpdateFns:new Set}),th=(0,b.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:x=!1,avoidCollisions:w=!0,...E}=e,j=ta(tl,c),[_,S]=(0,b.useState)(null),O=(0,k.e)(t,e=>S(e)),[C,P]=(0,b.useState)(null),T=tt(C),N=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,R=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,D="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},L=Array.isArray(v)?v:[v],F=L.length>0,V={padding:D,boundary:L.filter(tg),altBoundary:F},{reference:z,floating:I,strategy:Z,x:B,y:H,placement:U,middlewareData:W,update:q}=e7({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:e3,middleware:[eM({mainAxis:f+R,alignmentAxis:p}),w?eP({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?eT():void 0,...V}):void 0,C?e9({element:C,padding:m}):void 0,w?e_({...V}):void 0,ty({arrowWidth:N,arrowHeight:R}),x?eC({strategy:"referenceHidden"}):void 0].filter(tv)});(0,A.b)(()=>{z(j.anchor)},[z,j.anchor]);let $=null!==B&&null!==H,[Y,G]=tx(U),K=null===(i=W.arrow)||void 0===i?void 0:i.x,X=null===(o=W.arrow)||void 0===o?void 0:o.y,Q=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[J,ee]=(0,b.useState)();(0,A.b)(()=>{_&&ee(window.getComputedStyle(_).zIndex)},[_]);let{hasParent:et,positionUpdateFns:en}=tf(tl,c),er=!et;(0,b.useLayoutEffect)(()=>{if(!er)return en.add(q),()=>{en.delete(q)}},[er,en,q]),(0,b.useLayoutEffect)(()=>{er&&$&&Array.from(en).reverse().forEach(e=>requestAnimationFrame(e))},[er,$,en]);let ei={"data-side":Y,"data-align":G,...E,ref:O,style:{...E.style,animation:$?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,b.createElement)("div",{ref:I,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:$?`translate3d(${Math.round(B)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,b.createElement)(tu,{scope:c,placedSide:Y,onArrowChange:P,arrowX:K,arrowY:X,shouldHideArrow:Q},er?(0,b.createElement)(td,{scope:c,hasParent:!0,positionUpdateFns:en},(0,b.createElement)(M.WV.div,ei)):(0,b.createElement)(M.WV.div,ei)))}),tp={top:"bottom",right:"left",bottom:"top",left:"right"},tm=(0,b.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tc("PopperArrow",n),o=tp[i.placedSide];return(0,b.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,b.createElement)(te,(0,E.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function tv(e){return void 0!==e}function tg(e){return null!==e}let ty=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=tx(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function tx(e){let[t,n="center"]=e.split("-");return[t,n]}let tb=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,b.useState)(null);return(0,b.createElement)(to,{scope:t,anchor:r,onAnchorChange:i},n)};var tw=n(6500);let tE=(0,b.forwardRef)((e,t)=>(0,b.createElement)(M.WV.span,(0,E.Z)({},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}}))),[tj,tk]=(0,j.b)("Tooltip",[ti]),t_=ti(),tS="tooltip.open",[tO,tC]=tj("TooltipProvider"),tM="Tooltip",[tA,tP]=tj(tM),tT="TooltipTrigger",tN=(0,b.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=tP(tT,n),o=tC(tT,n),a=t_(n),s=(0,b.useRef)(null),l=(0,k.e)(t,s,i.onTriggerChange),u=(0,b.useRef)(!1),c=(0,b.useRef)(!1),d=(0,b.useCallback)(()=>u.current=!1,[]);return(0,b.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,b.createElement)(ts,(0,E.Z)({asChild:!0},a),(0,b.createElement)(M.WV.button,(0,E.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,O.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,O.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,O.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,O.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,O.M)(e.onBlur,i.onClose),onClick:(0,O.M)(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),tR="TooltipPortal",[tD,tL]=tj(tR,{forceMount:void 0}),tF="TooltipContent",tV=(0,b.forwardRef)((e,t)=>{let n=tL(tF,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=tP(tF,e.__scopeTooltip);return(0,b.createElement)(P.z,{present:r||a.open},a.disableHoverableContent?(0,b.createElement)(tB,(0,E.Z)({side:i},o,{ref:t})):(0,b.createElement)(tz,(0,E.Z)({side:i},o,{ref:t})))}),tz=(0,b.forwardRef)((e,t)=>{let n=tP(tF,e.__scopeTooltip),r=tC(tF,e.__scopeTooltip),i=(0,b.useRef)(null),o=(0,k.e)(t,i),[a,s]=(0,b.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,b.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,b.useCallback)((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:return null}}(r,n.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect()),u=function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([a,...l]);s(u),d(!0)},[d]);return(0,b.useEffect)(()=>()=>f(),[f]),(0,b.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,b.useEffect)(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,a);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,b.createElement)(tB,(0,E.Z)({},e,{ref:o}))}),[tI,tZ]=tj(tM,{isInside:!1}),tB=(0,b.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=tP(tF,n),u=t_(n),{onClose:c}=l;return(0,b.useEffect)(()=>(document.addEventListener(tS,c),()=>document.removeEventListener(tS,c)),[c]),(0,b.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,b.createElement)(es.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,b.createElement)(th,(0,E.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,b.createElement)(_.A4,null,r),(0,b.createElement)(tI,{scope:n,isInside:!0},(0,b.createElement)(tE,{id:l.contentId,role:"tooltip"},i||r))))}),tH=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tC(tM,e.__scopeTooltip),u=t_(t),[c,d]=(0,b.useState)(null),f=(0,T.M)(),h=(0,b.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,b.useRef)(!1),[g=!1,y]=(0,C.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(tS))):l.onClose(),null==o||o(e)}}),x=(0,b.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),w=(0,b.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),E=(0,b.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),j=(0,b.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,b.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,b.createElement)(tb,u,(0,b.createElement)(tA,{scope:t,contentId:f,open:g,stateAttribute:x,trigger:c,onTriggerChange:d,onTriggerEnter:(0,b.useCallback)(()=>{l.isOpenDelayed?j():w()},[l.isOpenDelayed,j,w]),onTriggerLeave:(0,b.useCallback)(()=>{p?E():window.clearTimeout(h.current)},[E,p]),onOpen:w,onClose:E,disableHoverableContent:p},n))},tU=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=tP(tR,t);return(0,b.createElement)(tD,{scope:t,forceMount:n},(0,b.createElement)(P.z,{present:n||o.open},(0,b.createElement)(tw.h,{asChild:!0,container:i},r)))},tW=(0,ea.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),tq=b.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,x.jsx)(n,{ref:t,className:(0,ea.cx)(r,tW({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),t$=b.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,x.jsx)(tq,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,ea.cx)("leading-relaxed md:leading-relaxed",e.className)})}),tY=(0,ea.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),tG=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:tY({className:n}),...r})});var tK=n(34406);let tX=(void 0===tK||tK.env,"production"),tQ=1/60*1e3,tJ="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),t0="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(tJ()),tQ),t1=!0,t2=!1,t4=!1,t3={delta:0,timestamp:0},t5=["read","update","preRender","render","postRender"],t6=t5.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:n;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nt2=!0),e),{}),t8=t5.reduce((e,t)=>{let n=t6[t];return e[t]=(e,t=!1,r=!1)=>(t2||nn(),n.schedule(e,t,r)),e},{}),t7=t5.reduce((e,t)=>(e[t]=t6[t].cancel,e),{}),t9=t5.reduce((e,t)=>(e[t]=()=>t6[t].process(t3),e),{}),ne=e=>t6[e].process(t3),nt=e=>{t2=!1,t3.delta=t1?tQ:Math.max(Math.min(e-t3.timestamp,40),1),t3.timestamp=e,t4=!0,t5.forEach(ne),t4=!1,t2&&(t1=!1,t0(nt))},nn=()=>{t2=!0,t1=!0,t4||t0(nt)},nr=()=>t3,ni="undefined"!=typeof document,no=ni?b.useLayoutEffect:b.useEffect;function na(){let e=(0,b.useRef)(!1);return no(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let ns=(0,b.createContext)(null);function nl(e){let t=(0,b.useRef)(null);return null===t.current&&(t.current=e()),t.current}class nu extends b.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function nc({children:e,isPresent:t}){let n=(0,b.useId)(),r=(0,b.useRef)(null),i=(0,b.useRef)({width:0,height:0,top:0,left:0});return(0,b.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!r.current||!e||!o)return;r.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${e}px !important; @@ -22,16 +22,16 @@ top: ${a}px !important; left: ${s}px !important; } - `),()=>{document.head.removeChild(l)}},[t]),x.createElement(nu,{isPresent:t,childRef:r,sizeRef:i},x.cloneElement(e,{ref:r}))}let nd=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=nl(nf),l=(0,x.useId)(),u=(0,x.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[n]);return(0,x.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),x.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===a&&(e=x.createElement(nc,{isPresent:n},e)),x.createElement(ns.Provider,{value:u},e)};function nf(){return new Map}let nh=(0,x.createContext)({});function np(e){return(0,x.useEffect)(()=>()=>e(),[])}let nm=new Set;function nv(e,t,n){e||nm.has(t)||(console.warn(t),n&&console.warn(n),nm.add(t))}let ng=e=>e.key||"",ny=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",nv(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=na(),[t,n]=(0,x.useState)(0),r=(0,x.useCallback)(()=>{e.current&&n(t+1)},[t]),i=(0,x.useCallback)(()=>t8.postRender(r),[r]);return[i,t]}(),l=(0,x.useContext)(nh).forceRender;l&&(s=l);let u=na(),c=function(e){let t=[];return x.Children.forEach(e,e=>{(0,x.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,x.useRef)(d),p=(0,x.useRef)(new Map).current,m=(0,x.useRef)(!0);if(no(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=ng(e);t.set(n,e)})}(c,p),h.current=d}),np(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return x.createElement(x.Fragment,null,d.map(e=>x.createElement(nd,{key:ng(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(ng),g=c.map(ng),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let n=p.get(e);if(!n)return;let i=v.indexOf(e);d.splice(i,0,x.createElement(nd,{key:ng(n),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:o,mode:a},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:x.createElement(nd,{key:ng(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==tX&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),x.createElement(x.Fragment,null,f.size?d:d.map(e=>(0,x.cloneElement)(e)))},nb=(0,x.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nx=(0,x.createContext)({}),nw=(0,x.createContext)({strict:!1});function nE(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nk(e){return"string"==typeof e||Array.isArray(e)}function nj(e){return"object"==typeof e&&"function"==typeof e.start}let n_=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function nS(e){return nj(e.animate)||n_.some(t=>nk(e[t]))}function nO(e){return!!(nS(e)||e.variants)}function nC(e){return Array.isArray(e)?e.join(" "):e}let nM=e=>({isEnabled:t=>e.some(e=>!!t[e])}),nA={measureLayout:nM(["layout","layoutId","drag"]),animation:nM(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:nM(["exit"]),drag:nM(["drag","dragControls"]),focus:nM(["whileFocus"]),hover:nM(["whileHover","onHoverStart","onHoverEnd"]),tap:nM(["whileTap","onTap","onTapStart","onTapCancel"]),pan:nM(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:nM(["whileInView","onViewportEnter","onViewportLeave"])},nP={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nT=1;class nN extends x.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let nR=(0,x.createContext)({}),nD=Symbol.for("motionComponentSymbol"),nL=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function nF(e){if("string"!=typeof e||e.includes("-"));else if(nL.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let nV={},nI=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nz=new Set(nI);function nZ(e,{layout:t,layoutId:n}){return nz.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!nV[e]||"opacity"===e)}let nB=e=>!!(null==e?void 0:e.getVelocity),nH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nU=(e,t)=>nI.indexOf(e)-nI.indexOf(t);function nW(e){return e.startsWith("--")}let nq=(e,t)=>t&&"number"==typeof e?t.transform(e):e,n$=(e,t)=>n=>Math.max(Math.min(n,t),e),nY=e=>e%1?Number(e.toFixed(5)):e,nG=/(-)?([\d]*\.?[\d])+/g,nK=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,nX=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function nQ(e){return"string"==typeof e}let nJ=e=>({test:t=>nQ(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),n0=nJ("deg"),n1=nJ("%"),n2=nJ("px"),n4=nJ("vh"),n3=nJ("vw"),n5=Object.assign(Object.assign({},n1),{parse:e=>n1.parse(e)/100,transform:e=>n1.transform(100*e)}),n6={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},n8=Object.assign(Object.assign({},n6),{transform:n$(0,1)}),n7=Object.assign(Object.assign({},n6),{default:1}),n9={...n6,transform:Math.round},re={borderWidth:n2,borderTopWidth:n2,borderRightWidth:n2,borderBottomWidth:n2,borderLeftWidth:n2,borderRadius:n2,radius:n2,borderTopLeftRadius:n2,borderTopRightRadius:n2,borderBottomRightRadius:n2,borderBottomLeftRadius:n2,width:n2,maxWidth:n2,height:n2,maxHeight:n2,size:n2,top:n2,right:n2,bottom:n2,left:n2,padding:n2,paddingTop:n2,paddingRight:n2,paddingBottom:n2,paddingLeft:n2,margin:n2,marginTop:n2,marginRight:n2,marginBottom:n2,marginLeft:n2,rotate:n0,rotateX:n0,rotateY:n0,rotateZ:n0,scale:n7,scaleX:n7,scaleY:n7,scaleZ:n7,skew:n0,skewX:n0,skewY:n0,distance:n2,translateX:n2,translateY:n2,translateZ:n2,x:n2,y:n2,z:n2,perspective:n2,transformPerspective:n2,opacity:n8,originX:n5,originY:n5,originZ:n2,zIndex:n9,fillOpacity:n8,strokeOpacity:n8,numOctaves:n9};function rt(e,t,n,r){let{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(nW(e)){o[e]=n;continue}let r=re[e],f=nq(n,r);if(nz.has(e)){if(u=!0,a[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";for(let n of(t.sort(nU),t))a+=`${nH[n]||n}(${e[n]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}(e,n,d,r):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=l;i.transformOrigin=`${e} ${t} ${n}`}}let rn=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rr(e,t,n){for(let r in t)nB(t[r])||nZ(r,n)||(e[r]=t[r])}function ri(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rr(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,x.useMemo)(()=>{let r=rn();return rt(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),r.style=i,r}let ro=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function ra(e){return ro.has(e)}let rs=e=>!ra(e);try{(Ez=require("@emotion/is-prop-valid").default)&&(rs=e=>e.startsWith("on")?!ra(e):Ez(e))}catch(e){}function rl(e,t,n){return"string"==typeof e?e:n2.transform(t+n*e)}let ru={offset:"stroke-dashoffset",array:"stroke-dasharray"},rc={offset:"strokeDashoffset",array:"strokeDasharray"};function rd(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){rt(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){let r=rl(t,e.x,e.width),i=rl(n,e.y,e.height);return`${r} ${i}`}(h,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==o&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?ru:rc;e[o.offset]=n2.transform(-r);let a=n2.transform(t),s=n2.transform(n);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let rf=()=>({...rn(),attrs:{}});function rh(e,t){let n=(0,x.useMemo)(()=>{let n=rf();return rd(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rr(t,e.style,e),n.style={...t,...n.style}}return n}let rp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rm(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let rv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function rg(e,t,n,r){for(let n in rm(e,t,void 0,r),t.attrs)e.setAttribute(rv.has(n)?n:rp(n),t.attrs[n])}function ry(e){let{style:t}=e,n={};for(let r in t)(nB(t[r])||nZ(r,e))&&(n[r]=t[r]);return n}function rb(e){let t=ry(e);for(let n in e)if(nB(e[n])){let r="x"===n||"y"===n?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function rx(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}let rw=e=>Array.isArray(e),rE=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),rk=e=>rw(e)?e[e.length-1]||0:e;function rj(e){let t=nB(e)?e.get():e;return rE(t)?t.toValue():t}let r_=e=>(t,n)=>{let r=(0,x.useContext)(nx),i=(0,x.useContext)(ns),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let a={latestValues:function(e,t,n,r){let i={},o=r(e);for(let e in o)i[e]=rj(o[e]);let{initial:a,animate:s}=e,l=nS(e),u=nO(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!nj(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let n=rx(e,t);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]})}return i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():nl(o)},rS={useVisualState:r_({scrapeMotionValuesFromProps:rb,createRenderState:rf,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}rd(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),rg(t,n)}})},rO={useVisualState:r_({scrapeMotionValuesFromProps:ry,createRenderState:rn})};function rC(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rM(e,t,n,r){(0,x.useEffect)(()=>{let i=e.current;if(n&&i)return rC(i,t,n,r)},[e,t,n,r])}function rA(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function rP(e){let t=!!e.touches;return t}(EZ=Eq||(Eq={})).Animate="animate",EZ.Hover="whileHover",EZ.Tap="whileTap",EZ.Drag="whileDrag",EZ.Focus="whileFocus",EZ.InView="whileInView",EZ.Exit="exit";let rT={pageX:0,pageY:0};function rN(e,t="page"){return{point:rP(e)?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0],r=n||rT;return{x:r[t+"X"],y:r[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let rR=(e,t=!1)=>{let n=t=>e(t,rN(t));return t?e=>{let t=e instanceof MouseEvent,r=!t||t&&0===e.button;r&&n(e)}:n},rD=()=>ni&&null===window.onpointerdown,rL=()=>ni&&null===window.ontouchstart,rF=()=>ni&&null===window.onmousedown,rV={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},rI={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function rz(e){if(rD());else if(rL())return rI[e];else if(rF())return rV[e];return e}function rZ(e,t,n,r){return rC(e,rz(t),rR(n,"pointerdown"===t),r)}function rB(e,t,n,r){return rM(e,rz(t),n&&rR(n,"pointerdown"===t),r)}function rH(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let rU=rH("dragHorizontal"),rW=rH("dragVertical");function rq(e){let t=!1;if("y"===e)t=rW();else if("x"===e)t=rU();else{let e=rU(),n=rW();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function r$(){let e=rq(!0);return!e||(e(),!1)}function rY(e,t,n){return(r,i)=>{!(!rA(r)||r$())&&(e.animationState&&e.animationState.setActive(Eq.Hover,t),n&&n(r,i))}}let rG=(e,t)=>!!t&&(e===t||rG(e,t.parentElement)),rK=(e,t)=>n=>t(e(n)),rX=(...e)=>e.reduce(rK),rQ=new WeakMap,rJ=new WeakMap,r0=e=>{let t=rQ.get(e.target);t&&t(e)},r1=e=>{e.forEach(r0)},r2={some:0,all:1};function r4(e,t,n,{root:r,margin:i,amount:o="some",once:a}){(0,x.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof o?o:r2[o]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;rJ.has(n)||rJ.set(n,{});let r=rJ.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(r1,{root:e,...t})),r[i]}(t);return rQ.set(e,n),r.observe(e),()=>{rQ.delete(e),r.unobserve(e)}}(n.current,s,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,a&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Eq.InView,r);let i=n.getProps(),o=r?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,r,i,o])}function r3(e,t,n,{fallback:r=!0}){(0,x.useEffect)(()=>{e&&r&&("production"!==tX&&nv(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(Eq.InView,!0)}))},[e])}let r5=e=>t=>(e(t),null),r6={inView:r5(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let o=(0,x.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?r3:r4;s(a,o.current,e,i)}),tap:r5(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let o=e||t||n||r,a=(0,x.useRef)(!1),s=(0,x.useRef)(null),l={passive:!(t||e||n||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),a.current=!1,i.animationState&&i.animationState.setActive(Eq.Tap,!1),!r$()}function d(t,r){c()&&(rG(i.current,t.target)?e&&e(t,r):n&&n(t,r))}function f(e,t){c()&&n&&n(e,t)}function h(e,n){u(),!a.current&&(a.current=!0,s.current=rX(rZ(window,"pointerup",d,l),rZ(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(Eq.Tap,!0),t&&t(e,n))}rB(i,"pointerdown",o?h:void 0,l),np(u)}),focus:r5(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;rM(t,"focus",e?()=>{n&&n.setActive(Eq.Focus,!0)}:void 0),rM(t,"blur",e?()=>{n&&n.setActive(Eq.Focus,!1)}:void 0)}),hover:r5(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){rB(r,"pointerenter",e||n?rY(r,!0,e):void 0,{passive:!e}),rB(r,"pointerleave",t||n?rY(r,!1,t):void 0,{passive:!t})})};function r8(){let e=(0,x.useContext)(ns);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,x.useId)();return(0,x.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function r7(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var ie=function(){},it=function(){};let ir=(e,t,n)=>Math.min(Math.max(n,e),t);function ii(e,t){return e*Math.sqrt(1-t*t)}let io=["duration","bounce"],ia=["stiffness","damping","mass"];function is(e,t){return t.some(t=>void 0!==e[t])}function il(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=r9(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!is(e,ia)&&is(e,io)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;ie(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=ir(.05,1,a),e=ir(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e,o=ii(t,a),s=Math.exp(-i);return .001-(r-n)/o*s},o=t=>{let r=t*a,o=r*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=ii(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*n+n-s)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return -.001+r*i},o=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),h=iu,p=iu;function m(){let e=c?-(c/1e3):0,r=n-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){let t=ii(a,o);h=i=>{let s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},p=n=>{let i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)h=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{let t=a*Math.sqrt(o*o-1);h=i=>{let s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)a.done=e>=d;else{let o=1e3*p(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}il.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iu=e=>0,ic=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},id=(e,t,n)=>-n*e+n*t+e,ih=(e,t)=>n=>!!(nQ(n)&&nX.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ip=(e,t,n)=>r=>{if(!nQ(r))return r;let[i,o,a,s]=r.match(nG);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},im=n$(0,255),iv=Object.assign(Object.assign({},n6),{transform:e=>Math.round(im(e))}),ig={test:ih("rgb","red"),parse:ip("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iv.transform(e)+", "+iv.transform(t)+", "+iv.transform(n)+", "+nY(n8.transform(r))+")"},iy={test:ih("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:ig.transform},ib={test:ih("hsl","hue"),parse:ip("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+n1.transform(nY(t))+", "+n1.transform(nY(n))+", "+nY(n8.transform(r))+")"};function ix(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ix(s,r,e+1/3),o=ix(s,r,e),a=ix(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}let iE=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ik=[iy,ig,ib],ij=e=>ik.find(t=>t.test(e)),i_=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,iS=(e,t)=>{let n=ij(e),r=ij(t);it(!!n,i_(e)),it(!!r,i_(t));let i=n.parse(e),o=r.parse(t);n===ib&&(i=iw(i),n=ig),r===ib&&(o=iw(o),r=ig);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=iE(i[t],o[t],e));return a.alpha=id(i.alpha,o.alpha,e),n.transform(a)}},iO={test:e=>ig.test(e)||iy.test(e)||ib.test(e),parse:e=>ig.test(e)?ig.parse(e):ib.test(e)?ib.parse(e):iy.parse(e),transform:e=>nQ(e)?e:e.hasOwnProperty("red")?ig.transform(e):ib.transform(e)},iC="${c}",iM="${n}";function iA(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(nK);r&&(n=r.length,e=e.replace(nK,iC),t.push(...r.map(iO.parse)));let i=e.match(nG);return i&&(e=e.replace(nG,iM),t.push(...i.map(n6.parse))),{values:t,numColors:n,tokenised:e}}function iP(e){return iA(e).values}function iT(e){let{values:t,numColors:n,tokenised:r}=iA(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,iR={test:function(e){var t,n,r,i;return isNaN(e)&&nQ(e)&&(null!==(n=null===(t=e.match(nG))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(nK))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:iP,createTransformer:iT,getAnimatableNone:function(e){let t=iP(e),n=iT(e);return n(t.map(iN))}},iD=e=>"number"==typeof e;function iL(e,t){return iD(e)?n=>id(e,t,n):iO.test(e)?iS(e,t):iz(e,t)}let iF=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>iL(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=iL(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function iI(e){let t=iR.parse(e),n=t.length,r=0,i=0,o=0;for(let e=0;e{let n=iR.createTransformer(t),r=iI(e),i=iI(t),o=r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers;return o?rX(iF(r.parsed,i.parsed),n):(ie(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},iZ=(e,t)=>n=>id(e,t,n);function iB(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;it(o===t.length,"Both input and output ranges must be the same length"),it(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,n){var r;let i=[],o=n||("number"==typeof(r=e[0])?iZ:"string"==typeof r?iO.test(r)?iS:iz:Array.isArray(r)?iF:"object"==typeof r?iV:void 0),a=e.length-1;for(let n=0;nn(ic(e,t,r))}(e,a):function(e,t){let n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;ti)&&t!==r;t++);o=t-1}let s=ic(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(ir(e[0],e[o-1],t)):s}let iH=e=>t=>1-e(1-t),iU=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iW=e=>t=>t*t*((e+1)*t-e),iq=4/11,i$=8/11,iY=e=>e,iG=e=>Math.pow(e,2),iK=iH(iG),iX=iU(iG),iQ=e=>1-Math.sin(Math.acos(e)),iJ=iH(iQ),i0=iU(iJ),i1=iW(1.525),i2=iH(i1),i4=iU(i1),i3=(e=>{let t=iW(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),i5=4356/361,i6=35442/1805,i8=16061/1805,i7=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==n?n/(t-1):0)}(a)).map(e=>e*i);function l(){return iB(s,a,{ease:Array.isArray(n)?n:a.map(()=>n||iX).splice(0,a.length-1)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),u=l()}}}let ot={keyframes:oe,spring:il,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=n*e,l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};function on(e,t,n=0){return e-t-n}let or=e=>{let t=({delta:t})=>e(t);return{start:()=>t8.update(t,!0),stop:()=>t7.update(t)}};function oi(e){let t,n,r;var i,{from:o,autoplay:a=!0,driver:s=or,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=r9(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,b=0,x=g.duration,w=!1,E=!0,k=function(e){if(Array.isArray(e.to))return oe;if(ot[e.type])return ot[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return il;return oe}(g);(null===(i=k.needsInterpolation)||void 0===i?void 0:i.call(k,o,y))&&(r=iB([0,100],[o,y],{clamp:!1}),o=0,y=100);let j=k(Object.assign(Object.assign({},g),{from:o,to:y}));return a&&(null==f||f(),(t=s(function(e){if(E||(e=-e),l+=e,!w){let e=j.next(Math.max(0,l));n=e.value,r&&(n=r(n)),w=E?e.done:l<=0}if(null==v||v(n),w){if(0===b&&(null!=x||(x=l)),b=o+d:i<=-d)&&(b++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?on(t+-e,t,n):t-(e-t)+n}(l,x,d,E=b%2==0):(l=on(l,x,d),"mirror"===c&&j.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let oo=e=>1e3*e,oa=(e,t)=>1-3*t+3*e,os=(e,t)=>3*t-6*e,ol=e=>3*e,ou=(e,t,n)=>((oa(t,n)*e+os(t,n))*e+ol(t))*e,oc=(e,t,n)=>3*oa(t,n)*e*e+2*os(t,n)*e+ol(t),od={linear:iY,easeIn:iG,easeInOut:iX,easeOut:iK,circIn:iQ,circInOut:i0,circOut:iJ,backIn:i1,backInOut:i4,backOut:i2,anticipate:i3,bounceIn:i9,bounceInOut:e=>e<.5?.5*(1-i7(1-2*e)):.5*i7(2*e-1)+.5,bounceOut:i7},of=e=>{if(Array.isArray(e)){it(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return function(e,t,n,r){if(e===t&&n===r)return iY;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=ou(.1*t,e,n);return o=>0===o||1===o?o:ou(function(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=r+.1*a,l=oc(s,e,n);return l>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=oc(t,n,r);if(0===i)break;let o=ou(t,n,r)-e;t-=o/i}return t}(t,s,e,n):0===l?s:function(e,t,n,r,i){let o,a;let s=0;do(o=ou(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+.1,e,n)}(o),t,r)}(t,n,r,i)}return"string"==typeof e?(it(void 0!==od[e],`Invalid easing type '${e}'`),od[e]):e},oh=e=>Array.isArray(e)&&"number"!=typeof e[0],op=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&iR.test(t)&&!t.startsWith("url(")),om=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),ov=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),og=()=>({type:"keyframes",ease:"linear",duration:.3}),oy=e=>({type:"keyframes",duration:.8,values:e}),ob={x:om,y:om,z:om,rotate:om,rotateX:om,rotateY:om,rotateZ:om,scaleX:ov,scaleY:ov,scale:ov,opacity:og,backgroundColor:og,color:og,default:ov},ox=(e,t)=>({to:t,...(rw(t)?oy:ob[e]||ob.default)(t)}),ow=new Set(["brightness","contrast","saturate","opacity"]);function oE(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(nG)||[];if(!r)return e;let i=n.replace(r,""),o=ow.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let ok=/([a-z-]*)\(.*?\)/g,oj=Object.assign(Object.assign({},iR),{getAnimatableNone:e=>{let t=e.match(ok);return t?t.map(oE).join(" "):e}}),o_={...re,color:iO,backgroundColor:iO,outlineColor:iO,fill:iO,stroke:iO,borderColor:iO,borderTopColor:iO,borderRightColor:iO,borderBottomColor:iO,borderLeftColor:iO,filter:oj,WebkitFilter:oj},oS=e=>o_[e];function oO(e,t){var n;let r=oS(e);return r!==oj&&(r=iR),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let oC={current:!1};function oM(e,t){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(t7.read(r),e(o-t))};return t8.read(r,!0),()=>t7.read(r)}let oA=!1;function oP(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oT(e){return"number"==typeof e?0:oO("",e)}function oN(e,t){return e[t]||e.default||e}function oR(e,t,n,r={}){return oC.current&&(r={type:!1}),t.start(i=>{let o,a;let s=function(e,t,n,r,i){let o=oN(r,e)||{},a=void 0!==o.from?o.from:t.get(),s=op(e,n);"none"===a&&s&&"string"==typeof n?a=oO(e,n):oP(a)&&"string"==typeof n?a=oT(n):!Array.isArray(n)&&oP(n)&&"string"==typeof a&&(n=oT(a));let l=op(e,a);return ie(l===s,`You are trying to animate ${e} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),l&&s&&!1!==o.type?function(){var r;let s={from:a,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===o.type||"decay"===o.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function v(e){return void 0===n?r:void 0===r?n:Math.abs(n-e){var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:h}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r,a,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===n?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var n;r=a,a=e,t=(n=nr().delta)?(e-r)*(1e3/n):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):oi({...(r=o,Array.isArray(s.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...ox(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...o}){let a={...o};return t&&(a.offset=t),o.duration&&(a.duration=oo(o.duration)),o.repeatDelay&&(a.repeatDelay=oo(o.repeatDelay)),e&&(a.ease=oh(e)?e.map(of):of(e)),"tween"===o.type&&(a.type="keyframes"),(n||i||r)&&(ie(!oA,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oA=!0,n?a.repeatType="reverse":i?a.repeatType="loop":r&&(a.repeatType="mirror"),a.repeat=i||n||r||o.repeat),"spring"!==o.type&&(a.type="keyframes"),a}(r)}),onUpdate:e=>{s.onUpdate(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s.onComplete(),o.onComplete&&o.onComplete()}})}:function(){let e=rk(n);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),l=function(e,t){var n,r;let i=oN(e,t)||{};return null!==(r=null!==(n=i.delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=()=>o=s();return l?a=oM(u,oo(l)):u(),()=>{a&&a(),o&&o.stop()}})}let oD=e=>/^\-?\d*\.?\d+$/.test(e),oL=e=>/^0[^.\s]+$/.test(e);function oF(e,t){-1===e.indexOf(t)&&e.push(t)}function oV(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class oI{constructor(){this.subscriptions=[]}add(e){return oF(this.subscriptions,e),()=>oV(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i!isNaN(parseFloat(e));class oZ{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new oI,this.velocityUpdateSubscribers=new oI,this.renderSubscribers=new oI,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nr();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,t8.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>t8.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=oz(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?e*(1e3/t):0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function oB(e){return new oZ(e)}let oH=e=>t=>t.test(e),oU=[n6,n2,n1,n0,n3,n4,{test:e=>"auto"===e,parse:e=>e}],oW=e=>oU.find(oH(e)),oq=[...oU,iO,iR],o$=e=>oq.find(oH(e));function oY(e,t,n){let r=e.getProps();return rx(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}function oG(e){return!!(nB(e)&&e.add)}function oK(e,t,n={}){var r;let i=oY(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>oX(e,i,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(oQ).forEach((e,r)=>{a.push(oK(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function oX(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(a=r);let c=[],d=i&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[i]);for(let t in l){let r=e.getValue(t),i=l[t];if(!r||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let o={delay:n,...a};e.shouldReduceMotion&&nz.has(t)&&(o={...o,type:!1,delay:0});let s=oR(t,r,i,o);oG(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=oY(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=rk(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oB(n))}}(e,s)})}function oQ(e,t){return e.sortNodePosition(t)}let oJ=[Eq.Animate,Eq.InView,Eq.Focus,Eq.Hover,Eq.Tap,Eq.Drag,Eq.Exit],o0=[...oJ].reverse(),o1=oJ.length;function o2(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let o4={animation:r5(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){let i=t.map(t=>oK(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=oK(e,t,n);else{let i="function"==typeof t?oY(e,t,n.custom):t;r=oX(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[Eq.Animate]:o2(!0),[Eq.InView]:o2(),[Eq.Hover]:o2(),[Eq.Tap]:o2(),[Eq.Drag]:o2(),[Eq.Focus]:o2(),[Eq.Exit]:o2()},r=!0,i=(t,n)=>{let r=oY(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,a){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,k=Array.isArray(g)?g:[g],j=k.reduce(i,{});!1===b&&(j={});let{prevResolvedValues:_={}}=v,S={..._,...j},O=e=>{E=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in S){let t=j[e],n=_[e];h.hasOwnProperty(e)||(t!==n?rw(t)&&rw(n)?!r7(t,n)||w?O(e):v.protectedKeys[e]=!0:void 0!==t?O(e):f.add(e):void 0!==t&&f.has(e)?O(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=j,v.isActive&&(h={...h,...j}),r&&e.blockInitialAnimation&&(E=!1),E&&!x&&d.push(...k.map(e=>({animation:e,options:{type:m,...o}})))}if(f.size){let t={};f.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),d.push({animation:t})}let m=!!d.length;return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=o(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),nj(t)&&(0,x.useEffect)(()=>t.subscribe(e),[t])}),exit:r5(e=>{let{custom:t,visualElement:n}=e,[r,i]=r8(),o=(0,x.useContext)(ns);(0,x.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(Eq.Exit,!r,{custom:o&&o.custom||t});e&&!r&&e.then(i)},[r])})},o3=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),o5=e=>o3(e)&&e.hasOwnProperty("z"),o6=(e,t)=>Math.abs(e-t);function o8(e,t){if(iD(e)&&iD(t))return o6(e,t);if(o3(e)&&o3(t)){let n=o6(e.x,t.x),r=o6(e.y,t.y),i=o5(e)&&o5(t)?o6(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}class o7{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=at(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=o8(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nr();this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=o9(t,this.transformPagePoint),rA(e)&&0===e.buttons){this.handlePointerUp(e,t);return}t8.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=at(o9(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},rP(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=rN(e),i=o9(r,this.transformPagePoint),{point:o}=i,{timestamp:a}=nr();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,at(i,this.history)),this.removeListeners=rX(rZ(window,"pointermove",this.handlePointerMove),rZ(window,"pointerup",this.handlePointerUp),rZ(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),t7.update(this.updatePoint)}}function o9(e,t){return t?{point:t(e.point)}:e}function ae(e,t){return{x:e.x-t.x,y:e.y-t.y}}function at({point:e},t){return{point:e,delta:ae(e,an(t)),offset:ae(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=an(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>oo(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function an(e){return e[e.length-1]}function ar(e){return e.max-e.min}function ai(e,t=0,n=.01){return o8(e,t)({translate:0,scale:1,origin:0,originPoint:0}),am=()=>({x:ap(),y:ap()}),av=()=>({min:0,max:0}),ag=()=>({x:av(),y:av()});function ay(e){return[e("x"),e("y")]}function ab({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ax(e){return void 0===e||1===e}function aw({scale:e,scaleX:t,scaleY:n}){return!ax(e)||!ax(t)||!ax(n)}function aE(e){return aw(e)||ak(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ak(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function aj(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function a_(e,t=0,n=1,r,i){e.min=aj(e.min,t,n,r,i),e.max=aj(e.max,t,n,r,i)}function aS(e,{x:t,y:n}){a_(e.x,t.translate,t.scale,t.originPoint),a_(e.y,n.translate,n.scale,n.originPoint)}function aO(e,t){e.min=e.min+t,e.max=e.max+t}function aC(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=id(e.min,e.max,o);a_(e,t[n],t[r],a,t.scale)}let aM=["x","scaleX","originX"],aA=["y","scaleY","originY"];function aP(e,t){aC(e.x,t,aM),aC(e.y,t,aA)}function aT(e,t){return ab(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let aN=new WeakMap;class aR{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ag(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new o7(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(rN(e,"page").point)},onStart:(e,t)=>{var n;let{drag:r,dragPropagation:i,onDragStart:o}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=rq(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ay(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(n1.test(r)){let i=null===(n=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(i){let e=ar(i);r=e*(parseFloat(r)/100)}}this.originPoint[e]=r}),null==o||o(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(Eq.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==o||o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();null==i||i(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Eq.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!aD(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?id(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&nE(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:ac(e.x,n,i),y:ac(e.y,t,r)}}(n.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:af(e,"left","right"),y:af(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ay(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nE(t))return!1;let r=t.current;it(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=aT(e,n),{scroll:i}=t;return i&&(aO(r.x,i.x),aO(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:ad((e=i.layout.actual).x,o.x),y:ad(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=ab(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ay(a=>{var l;if(!aD(a,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[a])&&void 0!==l?l:{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,c)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oR(e,n,0,t)}stopAnimation(){ay(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)}snapToCursor(e){ay(t=>{let{drag:n}=this.getProps();if(!aD(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.actual[t];i.set(e[t]-id(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nE(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};ay(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=ar(e),i=ar(t);return i>r?n=ic(t.min,t.max-r,e.min):r>i&&(n=ic(e.min,e.max-i,t.min)),ir(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),ay(e=>{if(!aD(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(id(r,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;aN.set(this.visualElement,this);let t=this.visualElement.current,n=rZ(t,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();nE(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();let a=rC(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ay(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),null==s||s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function aD(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let aL={pan:r5(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=e||t||n||r,a=(0,x.useRef)(null),{transformPagePoint:s}=(0,x.useContext)(nb),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,x.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),rB(i,"pointerdown",o&&function(e){a.current=new o7(e,l,{transformPagePoint:s})}),np(()=>a.current&&a.current.end())}),drag:r5(function(e){let{dragControls:t,visualElement:n}=e,r=nl(()=>new aR(n));(0,x.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,x.useEffect)(()=>r.addListeners(),[r])})};function aF(e){return"string"==typeof e&&e.startsWith("var(--")}let aV=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function aI(e,t,n=1){it(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=aV.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():aF(i)?aI(i,t,n+1):i}let az=new Set(["width","height","top","left","right","bottom","x","y"]),aZ=e=>az.has(e),aB=e=>Object.keys(e).some(aZ),aH=(e,t)=>{e.set(t,!1),e.set(t)},aU=e=>e===n6||e===n2;(EB=E$||(E$={})).width="width",EB.height="height",EB.left="left",EB.right="right",EB.top="top",EB.bottom="bottom";let aW=(e,t)=>parseFloat(e.split(", ")[t]),aq=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return aW(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?aW(t[1],e):0}},a$=new Set(["x","y","z"]),aY=nI.filter(e=>!a$.has(e)),aG={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:aq(4,13),y:aq(5,14)},aK=(e,t,n)=>{let r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=aG[e](r,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);aH(r,s[n]),e[n]=aG[n](l,o)}),e},aX=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(aZ),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=oW(c),f=t[i];if(rw(f)){let e=f.length,t=null===f[0]?1:0;d=oW(c=f[t]);for(let n=t;n{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],aH(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=aK(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),ni&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},aQ=(e,t,n,r)=>{var i,o;let a=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!aF(t))return;let n=aI(t,r);n&&e.set(n)}),t){let e=t[i];if(!aF(e))continue;let o=aI(e,r);o&&(t[i]=o,n&&void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=a.target,r=a.transitionEnd,i=t,o=r,aB(i)?aX(e,i,n,o):{target:i,transitionEnd:o}},aJ={current:null},a0={current:!1},a1=Object.keys(nA),a2=a1.length,a4=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class a3{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>t8.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=nS(t),this.isVariantNode=nO(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==o[e]&&nB(t)&&(t.set(o[e],!1),oG(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==o[e]&&nB(n)&&n.set(o[e])}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),a0.current||function(){if(a0.current=!0,ni){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>aJ.current=e.matches;e.addListener(t),t()}else aJ.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||aJ.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;for(let r in null===(e=this.projection)||void 0===e||e.unmount(),t7.update(this.notifyUpdate),t7.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[r].clear();this.current=null}bindToMotionValue(e,t){let n=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&t8.update(this.notifyUpdate,!1,!0)}),r=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r,i,o){let a=[];"production"!==tX&&n&&t&&it(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ag()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;tn.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=oB(t),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=rx(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||nB(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new oI),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let a5=["initial",...oJ],a6=a5.length;class a8 extends a3{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){var r;let i={};for(let o in e){let e=function(e,t){if(!t)return;let n=t[e]||t.default||t;return n.from}(o,t);i[o]=void 0!==e?e:null===(r=n.getValue(o))||void 0===r?void 0:r.get()}return i}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;snF(e)?new a9(t,{enableHardwareAcceleration:!1}):new a7(t,{enableHardwareAcceleration:!0});function st(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sn={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!n2.test(e))return e;e=parseFloat(e)}let n=st(e,t.target.x),r=st(e,t.target.y);return`${n}% ${r}%`}},sr="_$css",si={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),o=[];i&&(e=e.replace(aV,e=>(o.push(e),sr)));let a=iR.parse(e);if(a.length>5)return r;let s=iR.createTransformer(e),l="number"!=typeof a[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=id(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(i){let e=0;f=f.replace(sr,()=>{let t=o[e];return e++,t})}return f}};class so extends x.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(nV,sa),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nP.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||t8.postRender(()=>{var e;(null===(e=o.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sa={borderRadius:{...sn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sn,borderTopRightRadius:sn,borderBottomLeftRadius:sn,borderBottomRightRadius:sn,boxShadow:si},ss=["TopLeft","TopRight","BottomLeft","BottomRight"],sl=ss.length,su=e=>"string"==typeof e?parseFloat(e):e,sc=e=>"number"==typeof e||n2.test(e);function sd(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sf=sp(0,.5,iJ),sh=sp(.5,.95,iY);function sp(e,t,n){return r=>rt?1:n(ic(e,t,r))}function sm(e,t){e.min=t.min,e.max=t.max}function sv(e,t){sm(e.x,t.x),sm(e.y,t.y)}function sg(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function sy(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(n1.test(t)){t=parseFloat(t);let e=id(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=id(o.min,o.max,r);e===o&&(s-=t),e.min=sg(e.min,t,n,s,i),e.max=sg(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let sb=["x","scaleX","originX"],sx=["y","scaleY","originY"];function sw(e,t,n,r){sy(e.x,t,sb,null==n?void 0:n.x,null==r?void 0:r.x),sy(e.y,t,sx,null==n?void 0:n.y,null==r?void 0:r.y)}function sE(e){return 0===e.translate&&1===e.scale}function sk(e){return sE(e.x)&&sE(e.y)}function sj(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function s_(e){return ar(e.x)/ar(e.y)}class sS{constructor(){this.members=[]}add(e){oF(this.members,e),e.scheduleRender()}remove(e){if(oV(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var n;let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sO(e,t,n){let r=e.x.translate/t.x,i=e.y.translate/t.y,o=`translate3d(${r}px, ${i}px, 0) `;if(o+=`scale(${1/t.x}, ${1/t.y}) `,n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),r&&(o+=`rotateY(${r}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(o+=`scale(${a}, ${s})`)?"none":o}let sC=(e,t)=>e.depth-t.depth;class sM{constructor(){this.children=[],this.isDirty=!1}add(e){oF(this.children,e),this.isDirty=!0}remove(e){oV(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sC),this.isDirty=!1,this.children.forEach(e)}}let sA=["","X","Y","Z"];function sP({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e,n={},r=null==t?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(sV),this.nodes.forEach(sI)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=oM(r,250),nP.hasAnimatedSinceResize&&(nP.hasAnimatedSinceResize=!1,this.nodes.forEach(sF))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var i,o,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(o=null!==(i=this.options.transition)&&void 0!==i?i:a.getDefaultTransition())&&void 0!==o?o:sW,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!sj(this.targetLayout,r)||n,p=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...oN(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sF(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,t7.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(sz))}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked()){null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));sY(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(sU));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;sB(a.x,e.x,f),sB(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(au(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,sH(r.x,d.x,s.x,f),sH(r.y,d.y,s.y,f)),l&&(this.animationValues=o,function(e,t,n,r,i,o){var a,s,l,u;i?(e.opacity=id(0,null!==(a=n.opacity)&&void 0!==a?a:1,sf(r)),e.opacityExit=id(null!==(s=t.opacity)&&void 0!==s?s:1,0,sh(r))):o&&(e.opacity=id(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{nP.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=nB(e)?e:oB(e);return oR("",r,1e3,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&sG(this.options.animationType,this.layout.actual,r.actual)){n=this.target||ag();let t=ar(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=ar(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sv(t,n),aP(t,i),aa(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new sS);let o=this.sharedNodes.get(e);o.add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,n={};for(let r=0;r{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(sD),this.root.sharedNodes.clear()}}}function sT(e){e.updateLayout()}function sN(e){var t,n,r;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{actual:t,measured:n}=e.layout,{animationType:r}=e.options;"size"===r?ay(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=ar(n);n.min=t[e].min,n.max=n.min+r}):sG(r,i.layout,t)&&ay(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=ar(t[e]);n.max=n.min+r});let o=am();aa(o,t,i.layout);let a=am();i.isShared?aa(a,e.applyTransform(n,!0),i.measured):aa(a,t,i.layout);let s=!sk(o),l=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=ag();au(n,i.layout,e.layout);let o=ag();au(o,t,r.actual),sj(n,o)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function sR(e){e.clearSnapshot()}function sD(e){e.clearMeasurements()}function sL(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sF(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function sV(e){e.resolveTargetDelta()}function sI(e){e.calcProjection()}function sz(e){e.resetRotation()}function sZ(e){e.removeLeadSnapshot()}function sB(e,t,n){e.translate=id(t.translate,0,n),e.scale=id(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sH(e,t,n,r){e.min=id(t.min,n.min,r),e.max=id(t.max,n.max,r)}function sU(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sW={duration:.45,ease:[.4,0,.1,1]};function sq(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){n=e.path[t];break}let r=n&&n!==e.root?n.instance:document,i=r.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function s$(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function sY(e){s$(e.x),s$(e.y)}function sG(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return o8(e,t)<=n}(s_(t),s_(n),.2)}let sK=sP({attachResizeListener:(e,t)=>rC(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sX={current:void 0},sQ=sP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sX.current){let e=new sK(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),sX.current=e}return sX.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),sJ={...o4,...r6,...aL,measureLayout:function(e){let[t,n]=r8(),r=(0,x.useContext)(nh);return x.createElement(so,{...e,layoutGroup:r,switchLayoutGroup:(0,x.useContext)(nR),isPresent:t,safeToRemove:n})}},s0=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?nA.projectionNodeConstructor=e[t]:nA[t].Component=e[t]}(e);let a=(0,x.forwardRef)(function(a,s){var l;let u={...(0,x.useContext)(nb),...a,layoutId:function({layoutId:e}){let t=(0,x.useContext)(nh).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:n}=function(e,t){if(nS(e)){let{initial:t,animate:n}=e;return{initial:!1===t||nk(t)?t:void 0,animate:nk(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,x.useContext)(nx));return(0,x.useMemo)(()=>({initial:t,animate:n}),[nC(t),nC(n)])}(a),h=c?void 0:nl(()=>{if(nP.hasEverUpdated)return nT++}),p=i(a,c);if(!c&&ni){f.visualElement=function(e,t,n,r){let i=(0,x.useContext)(nx).visualElement,o=(0,x.useContext)(nw),a=(0,x.useContext)(ns),s=(0,x.useContext)(nb).reducedMotion,l=(0,x.useRef)();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return no(()=>{u&&u.render()}),(0,x.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),no(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let r=(0,x.useContext)(nw).strict,i=(0,x.useContext)(nR);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||nA.projectionNodeConstructor,i))}return x.createElement(nN,{visualElement:f.visualElement,props:u},d,x.createElement(nx.Provider,{value:f},r(o,a,h,(l=f.visualElement,(0,x.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):nE(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[nD]=o,a}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r,i){let o=nF(e)?rS:rO;return{...o,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:o},a)=>{let s=nF(t)?rh:ri,l=s(n,o,a),u=function(e,t,n){let r={};for(let i in e)(rs(i)||!0===n&&ra(i)||!t&&!ra(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),c={...u,...l,ref:i};return r&&(c["data-projection-id"]=r),(0,x.createElement)(t,c)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,sJ,se,sQ));function s1(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,x.useState)(!1),o=(0,x.useMemo)(()=>n?t:r,[n,r,t]),a=(0,x.useCallback)(e=>{n?n(e):i(e)},[n]);return{open:o,onOpenChange:a}}var s2=n(35957),s4=n.n(s2),s3=n(276),s5=n.n(s3);let s6=(0,ea.cx)(s4().variable,s5().variable),s8={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}};function s7(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=s1({open:i,onOpenChange:o});return(0,b.jsxs)(tH,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,b.jsx)(tN,{asChild:!0,children:t}),(0,b.jsx)(ny,{children:n&&u?(0,b.jsx)(tU,{forceMount:!0,children:(0,b.jsx)(tV,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,b.jsx)(s0.div,{variants:s8,initial:"init",animate:"show",exit:"exit",className:(0,ea.cx)(s6,"relative","z-50","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"),children:(0,b.jsx)("div",{className:(0,ea.cx)("py-1 px-2","max-w-xs","overflow-hidden",tY()),children:(0,b.jsx)(t$,{size:"12",children:n})})})})}):null})]})}let s9=(0,ea.j)(["inline-flex","gap-1","appearance-none","shrink-0","items-center","justify-center","select-none","leading-normal","font-sans","cursor-pointer","overflow-hidden","focus:z-10","disabled:cursor-auto","disabled:pointer-events-none","outline-none","focus:ring ring-blue-500 dark:ring-blue-200","transition-colors duration-75"],{variants:{size:{small:["text-xs","px-2","h-7"],medium:["text-base","px-4","h-10"],large:["text-lg","px-4","h-12"],none:[]},state:{waiting:["pointer-events-none"]},disabled:{true:"cursor-auto pointer-events-none"},rounded:{true:"rounded",false:""},variant:{accent:["border","text-white dark:text-white","enabled:bg-green-700 enabled:dark:bg-green-700","enabled:border-green-800/30 enabled:dark:border-green-600/70","enabled:hover:bg-green-800/90 dark:enabled:hover:bg-green-700/90","enabled:hover:border-green-800/50 enabled:hover:dark:border-green-600","disabled:text-white/50 disabled:dark:text-white/50","disabled:bg-green-700/70 disabled:dark:bg-green-600/70","disabled:border-green-600/50 disabled:dark:border-green-500/30","[&[href]]:bg-green-700 [&[href]]:dark:bg-green-700","[&[href]]:border-green-800/30 [&[href]]:dark:border-green-600/70","[&[href]]:hover:bg-green-800/90 dark:[&[href]]:hover:bg-green-700/90","[&[href]]:hover:border-green-800/50 [href]]:hover:dark:border-green-600"],red:["border","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","enabled:hover:bg-red-800/90 dark:enabled:hover:bg-red-700/90","enabled:hover:border-red-800/50 enabled:hover:dark:border-red-600","disabled:bg-red-700/70 disabled:dark:bg-red-600/70","disabled:border-red-600/50 disabled:dark:border-red-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],amber:["border","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","enabled:hover:bg-amber-800/90 dark:enabled:hover:bg-amber-700/90","enabled:hover:border-amber-800/50 enabled:hover:dark:border-amber-600","disabled:bg-amber-700/70 disabled:dark:bg-amber-600/70","disabled:border-amber-600/50 disabled:dark:border-amber-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],gray:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-gray-300","disabled:text-gray-600 disabled:dark:text-graydark-700"],active:["border","bg-gray-200 dark:bg-graydark-400","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-500 dark:border-graydark-500","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],inactive:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400/70 dark:border-graydark-400/70","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","enabled:hover:text-gray-1100 enabled:hover:dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],ghost:["appearance-none border-none bg-transparent","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],state:["open:text-gray-1100 open:dark:text-white","hover:text-gray-1000 hover:dark:text-graydark-1000","text-gray-700 dark:text-graydark-800"]},icon:{contrast:"",hover:"[&>svg]:opacity-50 hover:[&>svg]:opacity-100 transition-opacity",subtle:"[&>svg]:opacity-50"},color:{verySubtle:"!text-gray-700 dark:!text-graydark-700",subtle:"!text-gray-1000 dark:!text-graydark-1000",contrast:"!text-gray-1100 dark:!text-white",lo:"!text-white dark:!text-graydark-50",accent:"!text-accent-1100 dark:!text-accentdark-1100",red:"!text-red-700 dark:!text-red-400",green:"!text-emerald-700 dark:!text-emerald-500",amber:"!text-amber-600 dark:!text-amber-500",none:""}},defaultVariants:{variant:"gray",size:"small",rounded:!0,icon:"subtle",color:"none"}}),le=x.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,b.jsx)(s7,{content:u,align:c,side:d,children:(0,b.jsx)("button",{ref:t,type:h,disabled:a,className:s9({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,b.jsx)("button",{ref:t,disabled:a,type:h,className:s9({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var lt=n(41775);(0,ea.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let ln=(0,ea.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lr=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,b.jsx)("div",{...r,className:ln({className:n}),ref:t})});var li=n(86029);let lo="Avatar",[la,ls]=(0,k.b)(lo),[ll,lu]=la(lo),lc=(0,x.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,o]=(0,x.useState)("idle");return(0,x.createElement)(ll,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,x.createElement)(M.WV.span,(0,E.Z)({},r,{ref:t})))}),ld=(0,x.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=lu("AvatarImage",n),s=function(e){let[t,n]=(0,x.useState)("idle");return(0,x.useEffect)(()=>{if(!e){n("error");return}let t=!0,r=new window.Image,i=e=>()=>{t&&n(e)};return n("loading"),r.onload=i("loaded"),r.onerror=i("error"),r.src=e,()=>{t=!1}},[e]),t}(r),l=(0,li.W)(e=>{i(e),a.onImageLoadingStatusChange(e)});return(0,A.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,x.createElement)(M.WV.img,(0,E.Z)({},o,{ref:t,src:r})):null}),lf=(0,x.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,o=lu("AvatarFallback",n),[a,s]=(0,x.useState)(void 0===r);return(0,x.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),a&&"loaded"!==o.imageLoadingStatus?(0,x.createElement)(M.WV.span,(0,E.Z)({},i,{ref:t})):null}),lh=(0,ea.j)(["items-center justify-center align-middle flex flex-shrink-0 relative","overflow-hidden select-none outline-none","font-sans font-medium text-sm","border"],{variants:{size:{1:"w-6 h-6",2:"w-12 h-12",3:"w-16 h-16",4:"w-28 h-28"},variant:{filter:"bg-transparent",hiContrast:["bg-gray-900 dark:bg-white text-white dark:text-gray-1100","border-gray-900 dark:border-white text-white dark:text-gray-1100"],gray:["bg-gray-500 dark:bg-gray-800 text-gray-1100 dark:text-white","border-gray-500 dark:border-gray-800 text-gray-1100 dark:text-white"]},shape:{square:"rounded",circle:"rounded-full"},inactive:{true:"opacity-30"},interactive:{true:"cursor-pointer"}},defaultVariants:{size:"2",variant:"gray",shape:"circle"}}),lp=(0,ea.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lm=x.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:o,variant:a,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,b.jsx)("div",{className:(0,ea.cx)("relative h-fit w-fit",c),children:(0,b.jsxs)(lc,{...d,ref:t,className:lh({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,b.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,b.jsx)(ld,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,b.jsx)(lf,{className:lp({size:o}),children:i})]})})}),lv=(0,ea.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular text-sm","justify-center align-middle outline-none p-0 decoration-none select-none","disabled:pointer-events-none","py-0.5 px-2"],{variants:{variant:{active:["border","bg-gray-800 text-gray-900 border-gray-900","dark:bg-transparent dark:text-white dark:border-white/10"],simple:"bg-gray-300 dark:bg-graydark-800 text-gray-900 dark:text-white",green:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],accent:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],red:["border","[&>svg]:opacity-50","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","hover:bg-red-800/90 dark:hover:bg-red-700/90","hover:border-red-800/50 hover:dark:border-red-600","text-white dark:text-white"],amber:["border","[&>svg]:opacity-50","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","hover:bg-amber-800/90 dark:hover:bg-amber-700/90","hover:border-amber-800/50 hover:dark:border-amber-600","text-white dark:text-white"],gray:["border","[&>svg]:opacity-50","bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","hover:bg-gray-50 dark:hover:bg-graydark-300","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100 dark:text-white"],inactive:["border","[&>svg]:opacity-50","bg-white dark:bg-transparent","border-gray-400 dark:border-graydark-400","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","hover:text-gray-1100/50 hover:dark:text-white/50"]},interactive:{true:"cursor-pointer"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",rounded:!0}}),lg=x.forwardRef((e,t)=>{let{variant:n,interactive:r,rounded:i,className:o,...a}=e;return(0,b.jsx)("div",{...a,className:lv({variant:n,interactive:r,rounded:i,className:o}),ref:t})}),ly=x.forwardRef((e,t)=>{let{className:n,size:r,color:i,...o}=e;return(0,b.jsx)("pre",{children:(0,b.jsx)("code",{className:(0,ea.cx)(tW({font:"mono",size:r,color:i}),"block","w-full","overflow-auto","p-3","bg-white dark:bg-graydark-200","border border-gray-400 dark:border-graydark-400","rounded",n),...o,ref:t})})}),lb=(0,ea.j)(["font-mono","whitespace-nowrap","rounded"],{variants:{color:{gray:["bg-gray-200 dark:bg-graydark-200","text-gray-1100 dark:text-graydark-1100"],accent:["bg-accent-200 dark:bg-accentdark-200","text-accent-1100 dark:text-accentdark-1100"]}},defaultVariants:{color:"accent"}}),lx=x.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,b.jsx)("code",{...i,className:lb({color:n,className:r}),ref:t})}),lw=(0,ea.j)(["flex","relative","[&>*]:rounded-none [&>*:last-child]:rounded-r [&>*:first-child]:rounded-l","[&>*]:border-r-0 [&>*]:border-l [&>*:first-child]:border-l [&>*:last-child]:border-r"]),lE=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,b.jsx)("div",{ref:t,className:lw({className:n}),...r})});(0,ea.j)(["select-none appearance-none outline-none overflow-hidden","inline-flex items-center justify-center","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-4 h-4 rounded",medium:"w-6 h-6 rounded"}},defaultVariants:{size:"small"}});let lk=(0,ea.j)(["flex-shrink-0 w-full mx-auto"],{variants:{pad:{true:"px-5 md:px-10",false:""},size:{1:"max-w-screen-sm",2:"max-w-screen-md",3:"max-w-[1145px]",4:"max-w-screen-2xl",full:"max-w-none"}},defaultVariants:{pad:!0,size:"3"}}),lj=x.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...o}=e;return(0,b.jsx)("div",{ref:t,...o,className:lk({size:i,pad:r,className:n})})});var l_=n(72331);let lS=(0,x.createContext)(void 0);function lO(e){let t=(0,x.useContext)(lS);return e||t||"ltr"}let lC="ScrollArea",[lM,lA]=(0,k.b)(lC),[lP,lT]=lM(lC),lN=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,x.useState)(null),[u,c]=(0,x.useState)(null),[d,f]=(0,x.useState)(null),[h,p]=(0,x.useState)(null),[m,v]=(0,x.useState)(null),[g,y]=(0,x.useState)(0),[b,w]=(0,x.useState)(0),[k,_]=(0,x.useState)(!1),[S,O]=(0,x.useState)(!1),C=(0,j.e)(t,e=>l(e)),A=lO(i);return(0,x.createElement)(lP,{scope:n,type:r,dir:A,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:k,onScrollbarXEnabledChange:_,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:S,onScrollbarYEnabledChange:O,onCornerWidthChange:y,onCornerHeightChange:w},(0,x.createElement)(M.WV.div,(0,E.Z)({dir:A},a,{ref:C,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),lR=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,o=lT("ScrollAreaViewport",n),a=(0,x.useRef)(null),s=(0,j.e)(t,a,o.onViewportChange);return(0,x.createElement)(x.Fragment,null,(0,x.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,x.createElement)(M.WV.div,(0,E.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,x.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),lD="ScrollAreaScrollbar",lL=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lT(lD,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,x.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,x.createElement)(lF,(0,E.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,x.createElement)(lV,(0,E.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,x.createElement)(lI,(0,E.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,x.createElement)(lz,(0,E.Z)({},r,{ref:t})):null}),lF=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lT(lD,e.__scopeScrollArea),[o,a]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),(0,x.createElement)(P.z,{present:n||o},(0,x.createElement)(lI,(0,E.Z)({"data-state":o?"visible":"hidden"},r,{ref:t})))}),lV=(0,x.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,o=lT(lD,e.__scopeScrollArea),a="horizontal"===e.orientation,s=l3(()=>u("SCROLL_END"),100),[l,u]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,x.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,x.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,x.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t],i=n!==r;i&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,u,s]),(0,x.createElement)(P.z,{present:r||"hidden"!==l},(0,x.createElement)(lz,(0,E.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,O.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,O.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),lI=(0,x.forwardRef)((e,t)=>{let n=lT(lD,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=(0,x.useState)(!1),s="horizontal"===e.orientation,l=l3(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=lT(lD,e.__scopeScrollArea),o=(0,x.useRef)(null),a=(0,x.useRef)(0),[s,l]=(0,x.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=lJ(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:!!(u>0&&u<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function d(e,t){return function(e,t,n,r="ltr"){let i=l0(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport,u=l2([a,s],"ltr"===r?[0,l]:[-1*l,0]);return u(e)}(e,a.current,s,t)}return"horizontal"===n?(0,x.createElement)(lZ,(0,E.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollLeft,t=l1(e,s,i.dir);o.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}})):"vertical"===n?(0,x.createElement)(lB,(0,E.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollTop,t=l1(e,s);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),lZ=(0,x.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lT(lD,e.__scopeScrollArea),[a,s]=(0,x.useState)(),l=(0,x.useRef)(null),u=(0,j.e)(t,l,o.onScrollbarXChange);return(0,x.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,x.createElement)(lW,(0,E.Z)({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":l0(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:lQ(a.paddingLeft),paddingEnd:lQ(a.paddingRight)}})}}))}),lB=(0,x.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lT(lD,e.__scopeScrollArea),[a,s]=(0,x.useState)(),l=(0,x.useRef)(null),u=(0,j.e)(t,l,o.onScrollbarYChange);return(0,x.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,x.createElement)(lW,(0,E.Z)({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":l0(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:lQ(a.paddingTop),paddingEnd:lQ(a.paddingBottom)}})}}))}),[lH,lU]=lM(lD),lW=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:o,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=lT(lD,n),[p,m]=(0,x.useState)(null),v=(0,j.e)(t,e=>m(e)),g=(0,x.useRef)(null),y=(0,x.useRef)(""),b=h.viewport,w=r.content-r.viewport,k=(0,li.W)(c),_=(0,li.W)(l),S=l3(d,10);function C(e){if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;u({x:t,y:n})}}return(0,x.useEffect)(()=>{let e=e=>{let t=e.target,n=null==p?void 0:p.contains(t);n&&k(e,w)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,w,k]),(0,x.useEffect)(_,[r,_]),l5(p,S),l5(h.content,S),(0,x.createElement)(lH,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,li.W)(o),onThumbPointerUp:(0,li.W)(a),onThumbPositionChange:_,onThumbPointerDown:(0,li.W)(s)},(0,x.createElement)(M.WV.div,(0,E.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,O.M)(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C(e)}}),onPointerMove:(0,O.M)(e.onPointerMove,C),onPointerUp:(0,O.M)(e.onPointerUp,e=>{let t=e.target;t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),lq="ScrollAreaThumb",l$=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lU(lq,e.__scopeScrollArea);return(0,x.createElement)(P.z,{present:n||i.hasThumb},(0,x.createElement)(lY,(0,E.Z)({ref:t},r)))}),lY=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,o=lT(lq,n),a=lU(lq,n),{onThumbPositionChange:s}=a,l=(0,j.e)(t,e=>a.onThumbChange(e)),u=(0,x.useRef)(),c=l3(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,x.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=l4(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,x.createElement)(M.WV.div,(0,E.Z)({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,O.M)(e.onPointerDownCapture,e=>{let t=e.target,n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;a.onThumbPointerDown({x:r,y:i})}),onPointerUp:(0,O.M)(e.onPointerUp,a.onThumbPointerUp)}))}),lG="ScrollAreaCorner",lK=(0,x.forwardRef)((e,t)=>{let n=lT(lG,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY),i="scroll"!==n.type&&r;return i?(0,x.createElement)(lX,(0,E.Z)({},e,{ref:t})):null}),lX=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=lT(lG,n),[o,a]=(0,x.useState)(0),[s,l]=(0,x.useState)(0);return l5(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),l5(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),o&&s?(0,x.createElement)(M.WV.div,(0,E.Z)({},r,{ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function lQ(e){return e?parseInt(e,10):0}function lJ(e,t){let n=e/t;return isNaN(n)?0:n}function l0(e){let t=lJ(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function l1(e,t,n="ltr"){let r=l0(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s="ltr"===n?[0,a]:[-1*a,0],l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,s),u=l2([0,a],[0,o-r]);return u(l)}function l2(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}let l4=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function l3(e,t){let n=(0,li.W)(e),r=(0,x.useRef)(0);return(0,x.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,x.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function l5(e,t){let n=(0,li.W)(t);(0,A.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}let l6=x.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:o,keyToResetScrollbars:a}=e;return(0,b.jsxs)(lN,{className:(0,ea.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,b.jsx)(lR,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,b.jsx)(lL,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,b.jsx)(l$,{className:(0,ea.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"v-".concat(a):void 0),(0,b.jsx)(lL,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1 m-px",children:(0,b.jsx)(l$,{className:(0,ea.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"h-".concat(a):void 0),(0,b.jsx)(lK,{className:"bg-black/70"})]})}),l8=(0,ea.j)([s6,"z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),l7={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},l9=x.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:o,onSubmit:a,title:s,description:l,containerVariants:u,contentVariants:c,controls:d,children:f,bodyClassName:h,closeClassName:p,dynamicHeight:m=!0}=e,{open:v,onOpenChange:g}=s1({open:i,onOpenChange:o});return(0,b.jsxs)(l_.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,b.jsx)(l_.xz,{asChild:!0,children:n}),(0,b.jsx)(ny,{children:v?(0,b.jsx)(l_.h_,{forceMount:!0,children:(0,b.jsx)(l_.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,b.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,b.jsx)(l_.aV,{onClick:()=>g(!1),className:"fixed z-10 top-0 right-0 bottom-0 left-0 inset-0 transition-opacity opacity-0 open:opacity-10 dark:open:opacity-20 bg-black"}),(0,b.jsx)(s0.div,{variants:l7,initial:"init",animate:"show",exit:"exit",className:l8(u),children:(0,b.jsx)(un,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function ue(e){let{className:t}=e;return(0,b.jsx)(l_.x8,{asChild:!0,type:"button",children:(0,b.jsx)("div",{className:(0,ea.cx)("appearance-none",t),children:(0,b.jsx)(le,{size:"small",variant:"ghost",type:"button",children:(0,b.jsx)(lt.QN4,{})})})})}let ut=(0,ea.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[tY()],none:""}},defaultVariants:{variant:"default"}}),un=x.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:o,controls:a,contentVariants:s,closeClassName:l,bodyClassName:u,dynamicHeight:c=!0}=e,{ref:d,height:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,x.useState)(0),r=(0,x.useRef)(null);return(0,x.useLayoutEffect)(()=>{if(!r.current)return;let e=r.current,t=()=>n(e.clientHeight);t(),r.current.addEventListener("resize",t);let i=new ResizeObserver(t);return i.observe(e),()=>{e.removeEventListener("resize",t),i.unobserve(e)}},e),{ref:r,height:t}}([n,o]),[h,p]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,b.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:ut(s),children:[i&&(0,b.jsx)(l_.Dx,{className:ur({showSeparator:h}),children:i}),(0,b.jsx)(l6,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,b.jsxs)("div",{ref:d,className:(0,ea.cx)("p-4",u),children:[o&&(0,b.jsx)(l_.dk,{className:ui(),children:o}),n]})}),a&&(0,b.jsx)(uo,{separator:h,children:a}),(0,b.jsx)(ue,{className:l||"absolute top-3.5 right-2"})]})}),ur=(0,ea.j)(["pt-4 pb-2 px-4 w-full",tW({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),ui=(0,ea.j)([tW({color:"subtle",size:"14"}),"py-2"]);function uo(e){let{children:t,separator:n=!0}=e;return(0,b.jsx)("div",{className:(0,ea.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var ua=n(55070),us=n(77334);let ul="rovingFocusGroup.onEntryFocus",uu={bubbles:!1,cancelable:!0},uc="RovingFocusGroup",[ud,uf,uh]=S(uc),[up,um]=(0,k.b)(uc,[uh]),[uv,ug]=up(uc),uy=(0,x.forwardRef)((e,t)=>(0,x.createElement)(ud.Provider,{scope:e.__scopeRovingFocusGroup},(0,x.createElement)(ud.Slot,{scope:e.__scopeRovingFocusGroup},(0,x.createElement)(ub,(0,E.Z)({},e,{ref:t}))))),ub=(0,x.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=(0,x.useRef)(null),f=(0,j.e)(t,d),h=lO(o),[p=null,m]=(0,C.T)({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,x.useState)(!1),y=(0,li.W)(u),b=uf(n),w=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(ul,y),()=>e.removeEventListener(ul,y)},[y]),(0,x.createElement)(uv,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,x.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,x.useCallback)(()=>g(!0),[])},(0,x.createElement)(M.WV.div,(0,E.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,O.M)(e.onMouseDown,()=>{w.current=!0}),onFocus:(0,O.M)(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(ul,uu);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===p),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);uE(i)}}w.current=!1}),onBlur:(0,O.M)(e.onBlur,()=>g(!1))})))}),ux=(0,x.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=e,a=(0,T.M)(),s=ug("RovingFocusGroupItem",n),l=s.currentTabStopId===a,u=uf(n);return(0,x.createElement)(ud.ItemSlot,{scope:n,id:a,focusable:r,active:i},(0,x.createElement)(M.WV.span,(0,E.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:(0,O.M)(e.onMouseDown,e=>{r?s.onItemFocus(a):e.preventDefault()}),onFocus:(0,O.M)(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:(0,O.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return uw[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable),o=i.map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>uE(o))}})})))}),uw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uE(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}var uk=n(49732),uj=n(88965);let u_=["Enter"," "],uS=["ArrowUp","PageDown","End"],uO=["ArrowDown","PageUp","Home",...uS],uC={ltr:[...u_,"ArrowRight"],rtl:[...u_,"ArrowLeft"]},uM={ltr:["ArrowLeft"],rtl:["ArrowRight"]},uA="Menu",[uP,uT,uN]=S(uA),[uR,uD]=(0,k.b)(uA,[uN,ti,um]),uL=ti(),uF=um(),[uV,uI]=uR(uA),[uz,uZ]=uR(uA),uB=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=uL(n);return(0,x.createElement)(ts,(0,E.Z)({},i,r,{ref:t}))}),uH="MenuPortal",[uU,uW]=uR(uH,{forceMount:void 0}),uq="MenuContent",[u$,uY]=uR(uq),uG=(0,x.forwardRef)((e,t)=>{let n=uW(uq,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uI(uq,e.__scopeMenu),a=uZ(uq,e.__scopeMenu);return(0,x.createElement)(uP.Provider,{scope:e.__scopeMenu},(0,x.createElement)(P.z,{present:r||o.open},(0,x.createElement)(uP.Slot,{scope:e.__scopeMenu},a.modal?(0,x.createElement)(uK,(0,E.Z)({},i,{ref:t})):(0,x.createElement)(uX,(0,E.Z)({},i,{ref:t})))))}),uK=(0,x.forwardRef)((e,t)=>{let n=uI(uq,e.__scopeMenu),r=(0,x.useRef)(null),i=(0,j.e)(t,r);return(0,x.useEffect)(()=>{let e=r.current;if(e)return(0,uk.R)(e)},[]),(0,x.createElement)(uQ,(0,E.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,O.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),uX=(0,x.forwardRef)((e,t)=>{let n=uI(uq,e.__scopeMenu);return(0,x.createElement)(uQ,(0,E.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),uQ=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=uI(uq,n),v=uZ(uq,n),g=uL(n),y=uF(n),b=uT(n),[w,k]=(0,x.useState)(null),S=(0,x.useRef)(null),C=(0,j.e)(t,S,m.onContentChange),M=(0,x.useRef)(0),A=(0,x.useRef)(""),P=(0,x.useRef)(0),T=(0,x.useRef)(null),N=(0,x.useRef)("right"),R=(0,x.useRef)(0),D=h?uj.Z:x.Fragment,L=h?{as:_.g7,allowPinchZoom:!0}:void 0,F=e=>{var t,n;let r=A.current+e,i=b().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=i.map(e=>e.textValue),l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,a=n?e.indexOf(n):-1,s=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length])),l=1===o.length;l&&(s=s.filter(e=>e!==n));let u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(s,r,a),u=null===(n=i.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){A.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};(0,x.useEffect)(()=>()=>window.clearTimeout(M.current),[]),(0,ua.EW)();let V=(0,x.useCallback)(e=>{var t,n;let r=N.current===(null===(t=T.current)||void 0===t?void 0:t.side);return r&&function(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,t)}(e,null===(n=T.current)||void 0===n?void 0:n.area)},[]);return(0,x.createElement)(u$,{scope:n,searchRef:A,onItemEnter:(0,x.useCallback)(e=>{V(e)&&e.preventDefault()},[V]),onItemLeave:(0,x.useCallback)(e=>{var t;V(e)||(null===(t=S.current)||void 0===t||t.focus(),k(null))},[V]),onTriggerLeave:(0,x.useCallback)(e=>{V(e)&&e.preventDefault()},[V]),pointerGraceTimerRef:P,onPointerGraceIntentChange:(0,x.useCallback)(e=>{T.current=e},[])},(0,x.createElement)(D,L,(0,x.createElement)(us.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,O.M)(o,e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,x.createElement)(es.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,x.createElement)(uy,(0,E.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:w,onCurrentTabStopIdChange:k,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,x.createElement)(th,(0,E.Z)({role:"menu","aria-orientation":"vertical","data-state":cr(m.open),dir:v.dir},g,p,{ref:C,style:{outline:"none",...p.style},onKeyDown:(0,O.M)(p.onKeyDown,e=>{let t=e.target,n=t.closest('[role="menu"]')===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&i&&F(e.key));let o=S.current;if(e.target!==o||!uO.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);uS.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,O.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),A.current="")}),onPointerMove:(0,O.M)(e.onPointerMove,co(e=>{let t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>R.current?"right":"left";N.current=t,R.current=e.clientX}}))})))))))}),uJ=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.createElement)(M.WV.div,(0,E.Z)({role:"group"},r,{ref:t}))}),u0=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.createElement)(M.WV.div,(0,E.Z)({},r,{ref:t}))}),u1="MenuItem",u2="menu.itemSelect",u4=(0,x.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,o=(0,x.useRef)(null),a=uZ(u1,e.__scopeMenu),s=uY(u1,e.__scopeMenu),l=(0,j.e)(t,o),u=(0,x.useRef)(!1);return(0,x.createElement)(u3,(0,E.Z)({},i,{ref:l,disabled:n,onClick:(0,O.M)(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(u2,{bubbles:!0,cancelable:!0});e.addEventListener(u2,e=>null==r?void 0:r(e),{once:!0}),(0,M.jH)(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:(0,O.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,O.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&u_.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),u3=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=uY(u1,n),s=uF(n),l=(0,x.useRef)(null),u=(0,j.e)(t,l),[c,d]=(0,x.useState)(!1),[f,h]=(0,x.useState)("");return(0,x.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,x.createElement)(uP.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,x.createElement)(ux,(0,E.Z)({asChild:!0},s,{focusable:!r}),(0,x.createElement)(M.WV.div,(0,E.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:(0,O.M)(e.onPointerMove,co(e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus()}})),onPointerLeave:(0,O.M)(e.onPointerLeave,co(e=>a.onItemLeave(e))),onFocus:(0,O.M)(e.onFocus,()=>d(!0)),onBlur:(0,O.M)(e.onBlur,()=>d(!1))}))))}),[u5,u6]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,x.createElement)(u7,{scope:e.__scopeMenu,checked:n},(0,x.createElement)(u4,(0,E.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":ci(n),onSelect:(0,O.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},uR("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),u8=((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,li.W)(r);return(0,x.createElement)(u5,{scope:e.__scopeMenu,value:n,onValueChange:o},(0,x.createElement)(uJ,(0,E.Z)({},i,{ref:t})))},"MenuItemIndicator"),[u7,u9]=uR(u8,{checked:!1}),[ce,ct]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=u9(u8,n);return(0,x.createElement)(P.z,{present:r||o.checked},(0,x.createElement)(M.WV.span,(0,E.Z)({},i,{ref:t,"data-state":ci(o.checked)})))},uR("MenuSub")),cn="MenuSubTrigger";function cr(e){return e?"open":"closed"}function ci(e){return e?"checked":"unchecked"}function co(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=uI(cn,e.__scopeMenu),r=uZ(cn,e.__scopeMenu),i=ct(cn,e.__scopeMenu),o=uY(cn,e.__scopeMenu),a=(0,x.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,x.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,x.useEffect)(()=>c,[c]),(0,x.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,x.createElement)(uB,(0,E.Z)({asChild:!0},u),(0,x.createElement)(u3,(0,E.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cr(n.open)},e,{ref:(0,j.F)(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,O.M)(e.onPointerMove,co(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(o.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:(0,O.M)(e.onPointerLeave,co(e=>{var t,r;c();let i=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,a="right"===t,l=i[a?"left":"right"],u=i[a?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:l,y:i.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:(0,O.M)(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&uC[r.dir].includes(t.key)){var a;n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault()}})})))},(e,t)=>{let n=uW(uq,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uI(uq,e.__scopeMenu),a=uZ(uq,e.__scopeMenu),s=ct("MenuSubContent",e.__scopeMenu),l=(0,x.useRef)(null),u=(0,j.e)(t,l);return(0,x.createElement)(uP.Provider,{scope:e.__scopeMenu},(0,x.createElement)(P.z,{present:r||o.open},(0,x.createElement)(uP.Slot,{scope:e.__scopeMenu},(0,x.createElement)(uQ,(0,E.Z)({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:u,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,O.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,O.M)(e.onEscapeKeyDown,a.onClose),onKeyDown:(0,O.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=uM[a.dir].includes(e.key);if(t&&n){var r;o.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))};let ca=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=uL(t),[l,u]=(0,x.useState)(null),c=(0,x.useRef)(!1),d=(0,li.W)(o),f=lO(i);return(0,x.useEffect)(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,x.createElement)(tx,s,(0,x.createElement)(uV,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,x.createElement)(uz,{scope:t,onClose:(0,x.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},r)))},cs=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=uI(uH,t);return(0,x.createElement)(uU,{scope:t,forceMount:n},(0,x.createElement)(P.z,{present:n||o.open},(0,x.createElement)(tw.h,{asChild:!0,container:i},r)))},cl="DropdownMenu",[cu,cc]=(0,k.b)(cl,[uD]),cd=uD(),[cf,ch]=cu(cl),cp=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=ch("DropdownMenuTrigger",n),a=cd(n);return(0,x.createElement)(uB,(0,E.Z)({asChild:!0},a),(0,x.createElement)(M.WV.button,(0,E.Z)({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":!!o.open||void 0,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:(0,j.F)(t,o.triggerRef),onPointerDown:(0,O.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,O.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cm=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ch("DropdownMenuContent",n),o=cd(n),a=(0,x.useRef)(!1);return(0,x.createElement)(uG,(0,E.Z)({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:(0,O.M)(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:(0,O.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),cv=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cd(n);return(0,x.createElement)(u0,(0,E.Z)({},i,r,{ref:t}))}),cg=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cd(n);return(0,x.createElement)(u4,(0,E.Z)({},i,r,{ref:t}))}),cy=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=cd(t),u=(0,x.useRef)(null),[c=!1,d]=(0,C.T)({prop:i,defaultProp:o,onChange:a});return(0,x.createElement)(cf,{scope:t,triggerId:(0,T.M)(),triggerRef:u,contentId:(0,T.M)(),open:c,onOpenChange:d,onOpenToggle:(0,x.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,x.createElement)(ca,(0,E.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},cb=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cd(t);return(0,x.createElement)(cs,(0,E.Z)({},r,n))},cx="horizontal",cw=["horizontal","vertical"],cE=(0,x.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cx,...i}=e,o=ck(r)?r:cx;return(0,x.createElement)(M.WV.div,(0,E.Z)({"data-orientation":o},n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function ck(e){return cw.includes(e)}cE.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!ck(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: + `),()=>{document.head.removeChild(l)}},[t]),b.createElement(nu,{isPresent:t,childRef:r,sizeRef:i},b.cloneElement(e,{ref:r}))}let nd=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=nl(nf),l=(0,b.useId)(),u=(0,b.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[n]);return(0,b.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),b.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===a&&(e=b.createElement(nc,{isPresent:n},e)),b.createElement(ns.Provider,{value:u},e)};function nf(){return new Map}let nh=(0,b.createContext)({});function np(e){return(0,b.useEffect)(()=>()=>e(),[])}let nm=new Set;function nv(e,t,n){e||nm.has(t)||(console.warn(t),n&&console.warn(n),nm.add(t))}let ng=e=>e.key||"",ny=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",nv(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=na(),[t,n]=(0,b.useState)(0),r=(0,b.useCallback)(()=>{e.current&&n(t+1)},[t]),i=(0,b.useCallback)(()=>t8.postRender(r),[r]);return[i,t]}(),l=(0,b.useContext)(nh).forceRender;l&&(s=l);let u=na(),c=function(e){let t=[];return b.Children.forEach(e,e=>{(0,b.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,b.useRef)(d),p=(0,b.useRef)(new Map).current,m=(0,b.useRef)(!0);if(no(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=ng(e);t.set(n,e)})}(c,p),h.current=d}),np(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return b.createElement(b.Fragment,null,d.map(e=>b.createElement(nd,{key:ng(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(ng),g=c.map(ng),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let n=p.get(e);if(!n)return;let i=v.indexOf(e);d.splice(i,0,b.createElement(nd,{key:ng(n),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:o,mode:a},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:b.createElement(nd,{key:ng(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==tX&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),b.createElement(b.Fragment,null,f.size?d:d.map(e=>(0,b.cloneElement)(e)))},nx=(0,b.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nb=(0,b.createContext)({}),nw=(0,b.createContext)({strict:!1});function nE(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nj(e){return"string"==typeof e||Array.isArray(e)}function nk(e){return"object"==typeof e&&"function"==typeof e.start}let n_=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function nS(e){return nk(e.animate)||n_.some(t=>nj(e[t]))}function nO(e){return!!(nS(e)||e.variants)}function nC(e){return Array.isArray(e)?e.join(" "):e}let nM=e=>({isEnabled:t=>e.some(e=>!!t[e])}),nA={measureLayout:nM(["layout","layoutId","drag"]),animation:nM(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:nM(["exit"]),drag:nM(["drag","dragControls"]),focus:nM(["whileFocus"]),hover:nM(["whileHover","onHoverStart","onHoverEnd"]),tap:nM(["whileTap","onTap","onTapStart","onTapCancel"]),pan:nM(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:nM(["whileInView","onViewportEnter","onViewportLeave"])},nP={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nT=1;class nN extends b.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let nR=(0,b.createContext)({}),nD=Symbol.for("motionComponentSymbol"),nL=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function nF(e){if("string"!=typeof e||e.includes("-"));else if(nL.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let nV={},nz=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nI=new Set(nz);function nZ(e,{layout:t,layoutId:n}){return nI.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!nV[e]||"opacity"===e)}let nB=e=>!!(null==e?void 0:e.getVelocity),nH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nU=(e,t)=>nz.indexOf(e)-nz.indexOf(t);function nW(e){return e.startsWith("--")}let nq=(e,t)=>t&&"number"==typeof e?t.transform(e):e,n$=(e,t)=>n=>Math.max(Math.min(n,t),e),nY=e=>e%1?Number(e.toFixed(5)):e,nG=/(-)?([\d]*\.?[\d])+/g,nK=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,nX=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function nQ(e){return"string"==typeof e}let nJ=e=>({test:t=>nQ(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),n0=nJ("deg"),n1=nJ("%"),n2=nJ("px"),n4=nJ("vh"),n3=nJ("vw"),n5=Object.assign(Object.assign({},n1),{parse:e=>n1.parse(e)/100,transform:e=>n1.transform(100*e)}),n6={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},n8=Object.assign(Object.assign({},n6),{transform:n$(0,1)}),n7=Object.assign(Object.assign({},n6),{default:1}),n9={...n6,transform:Math.round},re={borderWidth:n2,borderTopWidth:n2,borderRightWidth:n2,borderBottomWidth:n2,borderLeftWidth:n2,borderRadius:n2,radius:n2,borderTopLeftRadius:n2,borderTopRightRadius:n2,borderBottomRightRadius:n2,borderBottomLeftRadius:n2,width:n2,maxWidth:n2,height:n2,maxHeight:n2,size:n2,top:n2,right:n2,bottom:n2,left:n2,padding:n2,paddingTop:n2,paddingRight:n2,paddingBottom:n2,paddingLeft:n2,margin:n2,marginTop:n2,marginRight:n2,marginBottom:n2,marginLeft:n2,rotate:n0,rotateX:n0,rotateY:n0,rotateZ:n0,scale:n7,scaleX:n7,scaleY:n7,scaleZ:n7,skew:n0,skewX:n0,skewY:n0,distance:n2,translateX:n2,translateY:n2,translateZ:n2,x:n2,y:n2,z:n2,perspective:n2,transformPerspective:n2,opacity:n8,originX:n5,originY:n5,originZ:n2,zIndex:n9,fillOpacity:n8,strokeOpacity:n8,numOctaves:n9};function rt(e,t,n,r){let{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(nW(e)){o[e]=n;continue}let r=re[e],f=nq(n,r);if(nI.has(e)){if(u=!0,a[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";for(let n of(t.sort(nU),t))a+=`${nH[n]||n}(${e[n]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}(e,n,d,r):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=l;i.transformOrigin=`${e} ${t} ${n}`}}let rn=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rr(e,t,n){for(let r in t)nB(t[r])||nZ(r,n)||(e[r]=t[r])}function ri(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rr(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,b.useMemo)(()=>{let r=rn();return rt(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),r.style=i,r}let ro=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function ra(e){return ro.has(e)}let rs=e=>!ra(e);try{(EZ=require("@emotion/is-prop-valid").default)&&(rs=e=>e.startsWith("on")?!ra(e):EZ(e))}catch(e){}function rl(e,t,n){return"string"==typeof e?e:n2.transform(t+n*e)}let ru={offset:"stroke-dashoffset",array:"stroke-dasharray"},rc={offset:"strokeDashoffset",array:"strokeDasharray"};function rd(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){rt(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){let r=rl(t,e.x,e.width),i=rl(n,e.y,e.height);return`${r} ${i}`}(h,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==o&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?ru:rc;e[o.offset]=n2.transform(-r);let a=n2.transform(t),s=n2.transform(n);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let rf=()=>({...rn(),attrs:{}});function rh(e,t){let n=(0,b.useMemo)(()=>{let n=rf();return rd(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rr(t,e.style,e),n.style={...t,...n.style}}return n}let rp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rm(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let rv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function rg(e,t,n,r){for(let n in rm(e,t,void 0,r),t.attrs)e.setAttribute(rv.has(n)?n:rp(n),t.attrs[n])}function ry(e){let{style:t}=e,n={};for(let r in t)(nB(t[r])||nZ(r,e))&&(n[r]=t[r]);return n}function rx(e){let t=ry(e);for(let n in e)if(nB(e[n])){let r="x"===n||"y"===n?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function rb(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}let rw=e=>Array.isArray(e),rE=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),rj=e=>rw(e)?e[e.length-1]||0:e;function rk(e){let t=nB(e)?e.get():e;return rE(t)?t.toValue():t}let r_=e=>(t,n)=>{let r=(0,b.useContext)(nb),i=(0,b.useContext)(ns),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let a={latestValues:function(e,t,n,r){let i={},o=r(e);for(let e in o)i[e]=rk(o[e]);let{initial:a,animate:s}=e,l=nS(e),u=nO(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!nk(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let n=rb(e,t);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]})}return i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():nl(o)},rS={useVisualState:r_({scrapeMotionValuesFromProps:rx,createRenderState:rf,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}rd(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),rg(t,n)}})},rO={useVisualState:r_({scrapeMotionValuesFromProps:ry,createRenderState:rn})};function rC(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rM(e,t,n,r){(0,b.useEffect)(()=>{let i=e.current;if(n&&i)return rC(i,t,n,r)},[e,t,n,r])}function rA(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function rP(e){let t=!!e.touches;return t}(EB=E$||(E$={})).Animate="animate",EB.Hover="whileHover",EB.Tap="whileTap",EB.Drag="whileDrag",EB.Focus="whileFocus",EB.InView="whileInView",EB.Exit="exit";let rT={pageX:0,pageY:0};function rN(e,t="page"){return{point:rP(e)?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0],r=n||rT;return{x:r[t+"X"],y:r[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let rR=(e,t=!1)=>{let n=t=>e(t,rN(t));return t?e=>{let t=e instanceof MouseEvent,r=!t||t&&0===e.button;r&&n(e)}:n},rD=()=>ni&&null===window.onpointerdown,rL=()=>ni&&null===window.ontouchstart,rF=()=>ni&&null===window.onmousedown,rV={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},rz={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function rI(e){if(rD());else if(rL())return rz[e];else if(rF())return rV[e];return e}function rZ(e,t,n,r){return rC(e,rI(t),rR(n,"pointerdown"===t),r)}function rB(e,t,n,r){return rM(e,rI(t),n&&rR(n,"pointerdown"===t),r)}function rH(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let rU=rH("dragHorizontal"),rW=rH("dragVertical");function rq(e){let t=!1;if("y"===e)t=rW();else if("x"===e)t=rU();else{let e=rU(),n=rW();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function r$(){let e=rq(!0);return!e||(e(),!1)}function rY(e,t,n){return(r,i)=>{!(!rA(r)||r$())&&(e.animationState&&e.animationState.setActive(E$.Hover,t),n&&n(r,i))}}let rG=(e,t)=>!!t&&(e===t||rG(e,t.parentElement)),rK=(e,t)=>n=>t(e(n)),rX=(...e)=>e.reduce(rK),rQ=new WeakMap,rJ=new WeakMap,r0=e=>{let t=rQ.get(e.target);t&&t(e)},r1=e=>{e.forEach(r0)},r2={some:0,all:1};function r4(e,t,n,{root:r,margin:i,amount:o="some",once:a}){(0,b.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof o?o:r2[o]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;rJ.has(n)||rJ.set(n,{});let r=rJ.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(r1,{root:e,...t})),r[i]}(t);return rQ.set(e,n),r.observe(e),()=>{rQ.delete(e),r.unobserve(e)}}(n.current,s,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,a&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(E$.InView,r);let i=n.getProps(),o=r?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,r,i,o])}function r3(e,t,n,{fallback:r=!0}){(0,b.useEffect)(()=>{e&&r&&("production"!==tX&&nv(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(E$.InView,!0)}))},[e])}let r5=e=>t=>(e(t),null),r6={inView:r5(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let o=(0,b.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?r3:r4;s(a,o.current,e,i)}),tap:r5(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let o=e||t||n||r,a=(0,b.useRef)(!1),s=(0,b.useRef)(null),l={passive:!(t||e||n||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),a.current=!1,i.animationState&&i.animationState.setActive(E$.Tap,!1),!r$()}function d(t,r){c()&&(rG(i.current,t.target)?e&&e(t,r):n&&n(t,r))}function f(e,t){c()&&n&&n(e,t)}function h(e,n){u(),!a.current&&(a.current=!0,s.current=rX(rZ(window,"pointerup",d,l),rZ(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(E$.Tap,!0),t&&t(e,n))}rB(i,"pointerdown",o?h:void 0,l),np(u)}),focus:r5(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;rM(t,"focus",e?()=>{n&&n.setActive(E$.Focus,!0)}:void 0),rM(t,"blur",e?()=>{n&&n.setActive(E$.Focus,!1)}:void 0)}),hover:r5(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){rB(r,"pointerenter",e||n?rY(r,!0,e):void 0,{passive:!e}),rB(r,"pointerleave",t||n?rY(r,!1,t):void 0,{passive:!t})})};function r8(){let e=(0,b.useContext)(ns);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,b.useId)();return(0,b.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function r7(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var ie=function(){},it=function(){};let ir=(e,t,n)=>Math.min(Math.max(n,e),t);function ii(e,t){return e*Math.sqrt(1-t*t)}let io=["duration","bounce"],ia=["stiffness","damping","mass"];function is(e,t){return t.some(t=>void 0!==e[t])}function il(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=r9(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!is(e,ia)&&is(e,io)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;ie(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=ir(.05,1,a),e=ir(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e,o=ii(t,a),s=Math.exp(-i);return .001-(r-n)/o*s},o=t=>{let r=t*a,o=r*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=ii(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*n+n-s)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return -.001+r*i},o=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),h=iu,p=iu;function m(){let e=c?-(c/1e3):0,r=n-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){let t=ii(a,o);h=i=>{let s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},p=n=>{let i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)h=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{let t=a*Math.sqrt(o*o-1);h=i=>{let s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)a.done=e>=d;else{let o=1e3*p(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}il.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let iu=e=>0,ic=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},id=(e,t,n)=>-n*e+n*t+e,ih=(e,t)=>n=>!!(nQ(n)&&nX.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ip=(e,t,n)=>r=>{if(!nQ(r))return r;let[i,o,a,s]=r.match(nG);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},im=n$(0,255),iv=Object.assign(Object.assign({},n6),{transform:e=>Math.round(im(e))}),ig={test:ih("rgb","red"),parse:ip("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iv.transform(e)+", "+iv.transform(t)+", "+iv.transform(n)+", "+nY(n8.transform(r))+")"},iy={test:ih("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:ig.transform},ix={test:ih("hsl","hue"),parse:ip("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+n1.transform(nY(t))+", "+n1.transform(nY(n))+", "+nY(n8.transform(r))+")"};function ib(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iw({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ib(s,r,e+1/3),o=ib(s,r,e),a=ib(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}let iE=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ij=[iy,ig,ix],ik=e=>ij.find(t=>t.test(e)),i_=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,iS=(e,t)=>{let n=ik(e),r=ik(t);it(!!n,i_(e)),it(!!r,i_(t));let i=n.parse(e),o=r.parse(t);n===ix&&(i=iw(i),n=ig),r===ix&&(o=iw(o),r=ig);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=iE(i[t],o[t],e));return a.alpha=id(i.alpha,o.alpha,e),n.transform(a)}},iO={test:e=>ig.test(e)||iy.test(e)||ix.test(e),parse:e=>ig.test(e)?ig.parse(e):ix.test(e)?ix.parse(e):iy.parse(e),transform:e=>nQ(e)?e:e.hasOwnProperty("red")?ig.transform(e):ix.transform(e)},iC="${c}",iM="${n}";function iA(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(nK);r&&(n=r.length,e=e.replace(nK,iC),t.push(...r.map(iO.parse)));let i=e.match(nG);return i&&(e=e.replace(nG,iM),t.push(...i.map(n6.parse))),{values:t,numColors:n,tokenised:e}}function iP(e){return iA(e).values}function iT(e){let{values:t,numColors:n,tokenised:r}=iA(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,iR={test:function(e){var t,n,r,i;return isNaN(e)&&nQ(e)&&(null!==(n=null===(t=e.match(nG))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(nK))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:iP,createTransformer:iT,getAnimatableNone:function(e){let t=iP(e),n=iT(e);return n(t.map(iN))}},iD=e=>"number"==typeof e;function iL(e,t){return iD(e)?n=>id(e,t,n):iO.test(e)?iS(e,t):iI(e,t)}let iF=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>iL(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=iL(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function iz(e){let t=iR.parse(e),n=t.length,r=0,i=0,o=0;for(let e=0;e{let n=iR.createTransformer(t),r=iz(e),i=iz(t),o=r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers;return o?rX(iF(r.parsed,i.parsed),n):(ie(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},iZ=(e,t)=>n=>id(e,t,n);function iB(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;it(o===t.length,"Both input and output ranges must be the same length"),it(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,n){var r;let i=[],o=n||("number"==typeof(r=e[0])?iZ:"string"==typeof r?iO.test(r)?iS:iI:Array.isArray(r)?iF:"object"==typeof r?iV:void 0),a=e.length-1;for(let n=0;nn(ic(e,t,r))}(e,a):function(e,t){let n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;ti)&&t!==r;t++);o=t-1}let s=ic(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(ir(e[0],e[o-1],t)):s}let iH=e=>t=>1-e(1-t),iU=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,iW=e=>t=>t*t*((e+1)*t-e),iq=4/11,i$=8/11,iY=e=>e,iG=e=>Math.pow(e,2),iK=iH(iG),iX=iU(iG),iQ=e=>1-Math.sin(Math.acos(e)),iJ=iH(iQ),i0=iU(iJ),i1=iW(1.525),i2=iH(i1),i4=iU(i1),i3=(e=>{let t=iW(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),i5=4356/361,i6=35442/1805,i8=16061/1805,i7=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==n?n/(t-1):0)}(a)).map(e=>e*i);function l(){return iB(s,a,{ease:Array.isArray(n)?n:a.map(()=>n||iX).splice(0,a.length-1)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),u=l()}}}let ot={keyframes:oe,spring:il,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=n*e,l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};function on(e,t,n=0){return e-t-n}let or=e=>{let t=({delta:t})=>e(t);return{start:()=>t8.update(t,!0),stop:()=>t7.update(t)}};function oi(e){let t,n,r;var i,{from:o,autoplay:a=!0,driver:s=or,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=r9(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,x=0,b=g.duration,w=!1,E=!0,j=function(e){if(Array.isArray(e.to))return oe;if(ot[e.type])return ot[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return il;return oe}(g);(null===(i=j.needsInterpolation)||void 0===i?void 0:i.call(j,o,y))&&(r=iB([0,100],[o,y],{clamp:!1}),o=0,y=100);let k=j(Object.assign(Object.assign({},g),{from:o,to:y}));return a&&(null==f||f(),(t=s(function(e){if(E||(e=-e),l+=e,!w){let e=k.next(Math.max(0,l));n=e.value,r&&(n=r(n)),w=E?e.done:l<=0}if(null==v||v(n),w){if(0===x&&(null!=b||(b=l)),x=o+d:i<=-d)&&(x++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?on(t+-e,t,n):t-(e-t)+n}(l,b,d,E=x%2==0):(l=on(l,b,d),"mirror"===c&&k.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let oo=e=>1e3*e,oa=(e,t)=>1-3*t+3*e,os=(e,t)=>3*t-6*e,ol=e=>3*e,ou=(e,t,n)=>((oa(t,n)*e+os(t,n))*e+ol(t))*e,oc=(e,t,n)=>3*oa(t,n)*e*e+2*os(t,n)*e+ol(t),od={linear:iY,easeIn:iG,easeInOut:iX,easeOut:iK,circIn:iQ,circInOut:i0,circOut:iJ,backIn:i1,backInOut:i4,backOut:i2,anticipate:i3,bounceIn:i9,bounceInOut:e=>e<.5?.5*(1-i7(1-2*e)):.5*i7(2*e-1)+.5,bounceOut:i7},of=e=>{if(Array.isArray(e)){it(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return function(e,t,n,r){if(e===t&&n===r)return iY;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=ou(.1*t,e,n);return o=>0===o||1===o?o:ou(function(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=r+.1*a,l=oc(s,e,n);return l>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=oc(t,n,r);if(0===i)break;let o=ou(t,n,r)-e;t-=o/i}return t}(t,s,e,n):0===l?s:function(e,t,n,r,i){let o,a;let s=0;do(o=ou(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+.1,e,n)}(o),t,r)}(t,n,r,i)}return"string"==typeof e?(it(void 0!==od[e],`Invalid easing type '${e}'`),od[e]):e},oh=e=>Array.isArray(e)&&"number"!=typeof e[0],op=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&iR.test(t)&&!t.startsWith("url(")),om=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),ov=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),og=()=>({type:"keyframes",ease:"linear",duration:.3}),oy=e=>({type:"keyframes",duration:.8,values:e}),ox={x:om,y:om,z:om,rotate:om,rotateX:om,rotateY:om,rotateZ:om,scaleX:ov,scaleY:ov,scale:ov,opacity:og,backgroundColor:og,color:og,default:ov},ob=(e,t)=>({to:t,...(rw(t)?oy:ox[e]||ox.default)(t)}),ow=new Set(["brightness","contrast","saturate","opacity"]);function oE(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(nG)||[];if(!r)return e;let i=n.replace(r,""),o=ow.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let oj=/([a-z-]*)\(.*?\)/g,ok=Object.assign(Object.assign({},iR),{getAnimatableNone:e=>{let t=e.match(oj);return t?t.map(oE).join(" "):e}}),o_={...re,color:iO,backgroundColor:iO,outlineColor:iO,fill:iO,stroke:iO,borderColor:iO,borderTopColor:iO,borderRightColor:iO,borderBottomColor:iO,borderLeftColor:iO,filter:ok,WebkitFilter:ok},oS=e=>o_[e];function oO(e,t){var n;let r=oS(e);return r!==ok&&(r=iR),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let oC={current:!1};function oM(e,t){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(t7.read(r),e(o-t))};return t8.read(r,!0),()=>t7.read(r)}let oA=!1;function oP(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oT(e){return"number"==typeof e?0:oO("",e)}function oN(e,t){return e[t]||e.default||e}function oR(e,t,n,r={}){return oC.current&&(r={type:!1}),t.start(i=>{let o,a;let s=function(e,t,n,r,i){let o=oN(r,e)||{},a=void 0!==o.from?o.from:t.get(),s=op(e,n);"none"===a&&s&&"string"==typeof n?a=oO(e,n):oP(a)&&"string"==typeof n?a=oT(n):!Array.isArray(n)&&oP(n)&&"string"==typeof a&&(n=oT(a));let l=op(e,a);return ie(l===s,`You are trying to animate ${e} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),l&&s&&!1!==o.type?function(){var r;let s={from:a,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===o.type||"decay"===o.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function v(e){return void 0===n?r:void 0===r?n:Math.abs(n-e){var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:h}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r,a,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===n?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var n;r=a,a=e,t=(n=nr().delta)?(e-r)*(1e3/n):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):oi({...(r=o,Array.isArray(s.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...ob(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...o}){let a={...o};return t&&(a.offset=t),o.duration&&(a.duration=oo(o.duration)),o.repeatDelay&&(a.repeatDelay=oo(o.repeatDelay)),e&&(a.ease=oh(e)?e.map(of):of(e)),"tween"===o.type&&(a.type="keyframes"),(n||i||r)&&(ie(!oA,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oA=!0,n?a.repeatType="reverse":i?a.repeatType="loop":r&&(a.repeatType="mirror"),a.repeat=i||n||r||o.repeat),"spring"!==o.type&&(a.type="keyframes"),a}(r)}),onUpdate:e=>{s.onUpdate(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s.onComplete(),o.onComplete&&o.onComplete()}})}:function(){let e=rj(n);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),l=function(e,t){var n,r;let i=oN(e,t)||{};return null!==(r=null!==(n=i.delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=()=>o=s();return l?a=oM(u,oo(l)):u(),()=>{a&&a(),o&&o.stop()}})}let oD=e=>/^\-?\d*\.?\d+$/.test(e),oL=e=>/^0[^.\s]+$/.test(e);function oF(e,t){-1===e.indexOf(t)&&e.push(t)}function oV(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class oz{constructor(){this.subscriptions=[]}add(e){return oF(this.subscriptions,e),()=>oV(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i!isNaN(parseFloat(e));class oZ{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new oz,this.velocityUpdateSubscribers=new oz,this.renderSubscribers=new oz,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nr();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,t8.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>t8.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=oI(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?e*(1e3/t):0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function oB(e){return new oZ(e)}let oH=e=>t=>t.test(e),oU=[n6,n2,n1,n0,n3,n4,{test:e=>"auto"===e,parse:e=>e}],oW=e=>oU.find(oH(e)),oq=[...oU,iO,iR],o$=e=>oq.find(oH(e));function oY(e,t,n){let r=e.getProps();return rb(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}function oG(e){return!!(nB(e)&&e.add)}function oK(e,t,n={}){var r;let i=oY(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>oX(e,i,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(oQ).forEach((e,r)=>{a.push(oK(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function oX(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(a=r);let c=[],d=i&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[i]);for(let t in l){let r=e.getValue(t),i=l[t];if(!r||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let o={delay:n,...a};e.shouldReduceMotion&&nI.has(t)&&(o={...o,type:!1,delay:0});let s=oR(t,r,i,o);oG(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=oY(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=rj(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oB(n))}}(e,s)})}function oQ(e,t){return e.sortNodePosition(t)}let oJ=[E$.Animate,E$.InView,E$.Focus,E$.Hover,E$.Tap,E$.Drag,E$.Exit],o0=[...oJ].reverse(),o1=oJ.length;function o2(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let o4={animation:r5(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){let i=t.map(t=>oK(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=oK(e,t,n);else{let i="function"==typeof t?oY(e,t,n.custom):t;r=oX(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[E$.Animate]:o2(!0),[E$.InView]:o2(),[E$.Hover]:o2(),[E$.Tap]:o2(),[E$.Drag]:o2(),[E$.Focus]:o2(),[E$.Exit]:o2()},r=!0,i=(t,n)=>{let r=oY(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,a){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,j=Array.isArray(g)?g:[g],k=j.reduce(i,{});!1===x&&(k={});let{prevResolvedValues:_={}}=v,S={..._,...k},O=e=>{E=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in S){let t=k[e],n=_[e];h.hasOwnProperty(e)||(t!==n?rw(t)&&rw(n)?!r7(t,n)||w?O(e):v.protectedKeys[e]=!0:void 0!==t?O(e):f.add(e):void 0!==t&&f.has(e)?O(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=k,v.isActive&&(h={...h,...k}),r&&e.blockInitialAnimation&&(E=!1),E&&!b&&d.push(...j.map(e=>({animation:e,options:{type:m,...o}})))}if(f.size){let t={};f.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),d.push({animation:t})}let m=!!d.length;return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=o(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),nk(t)&&(0,b.useEffect)(()=>t.subscribe(e),[t])}),exit:r5(e=>{let{custom:t,visualElement:n}=e,[r,i]=r8(),o=(0,b.useContext)(ns);(0,b.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(E$.Exit,!r,{custom:o&&o.custom||t});e&&!r&&e.then(i)},[r])})},o3=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),o5=e=>o3(e)&&e.hasOwnProperty("z"),o6=(e,t)=>Math.abs(e-t);function o8(e,t){if(iD(e)&&iD(t))return o6(e,t);if(o3(e)&&o3(t)){let n=o6(e.x,t.x),r=o6(e.y,t.y),i=o5(e)&&o5(t)?o6(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}class o7{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=at(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=o8(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nr();this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=o9(t,this.transformPagePoint),rA(e)&&0===e.buttons){this.handlePointerUp(e,t);return}t8.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=at(o9(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},rP(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=rN(e),i=o9(r,this.transformPagePoint),{point:o}=i,{timestamp:a}=nr();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,at(i,this.history)),this.removeListeners=rX(rZ(window,"pointermove",this.handlePointerMove),rZ(window,"pointerup",this.handlePointerUp),rZ(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),t7.update(this.updatePoint)}}function o9(e,t){return t?{point:t(e.point)}:e}function ae(e,t){return{x:e.x-t.x,y:e.y-t.y}}function at({point:e},t){return{point:e,delta:ae(e,an(t)),offset:ae(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=an(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>oo(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function an(e){return e[e.length-1]}function ar(e){return e.max-e.min}function ai(e,t=0,n=.01){return o8(e,t)({translate:0,scale:1,origin:0,originPoint:0}),am=()=>({x:ap(),y:ap()}),av=()=>({min:0,max:0}),ag=()=>({x:av(),y:av()});function ay(e){return[e("x"),e("y")]}function ax({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ab(e){return void 0===e||1===e}function aw({scale:e,scaleX:t,scaleY:n}){return!ab(e)||!ab(t)||!ab(n)}function aE(e){return aw(e)||aj(e)||e.z||e.rotate||e.rotateX||e.rotateY}function aj(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function ak(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function a_(e,t=0,n=1,r,i){e.min=ak(e.min,t,n,r,i),e.max=ak(e.max,t,n,r,i)}function aS(e,{x:t,y:n}){a_(e.x,t.translate,t.scale,t.originPoint),a_(e.y,n.translate,n.scale,n.originPoint)}function aO(e,t){e.min=e.min+t,e.max=e.max+t}function aC(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=id(e.min,e.max,o);a_(e,t[n],t[r],a,t.scale)}let aM=["x","scaleX","originX"],aA=["y","scaleY","originY"];function aP(e,t){aC(e.x,t,aM),aC(e.y,t,aA)}function aT(e,t){return ax(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let aN=new WeakMap;class aR{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ag(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new o7(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(rN(e,"page").point)},onStart:(e,t)=>{var n;let{drag:r,dragPropagation:i,onDragStart:o}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=rq(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ay(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(n1.test(r)){let i=null===(n=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(i){let e=ar(i);r=e*(parseFloat(r)/100)}}this.originPoint[e]=r}),null==o||o(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(E$.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==o||o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();null==i||i(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(E$.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!aD(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?id(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&nE(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:ac(e.x,n,i),y:ac(e.y,t,r)}}(n.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:af(e,"left","right"),y:af(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ay(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nE(t))return!1;let r=t.current;it(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=aT(e,n),{scroll:i}=t;return i&&(aO(r.x,i.x),aO(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:ad((e=i.layout.actual).x,o.x),y:ad(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=ax(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ay(a=>{var l;if(!aD(a,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[a])&&void 0!==l?l:{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,c)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oR(e,n,0,t)}stopAnimation(){ay(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)}snapToCursor(e){ay(t=>{let{drag:n}=this.getProps();if(!aD(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.actual[t];i.set(e[t]-id(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nE(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};ay(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=ar(e),i=ar(t);return i>r?n=ic(t.min,t.max-r,e.min):r>i&&(n=ic(e.min,e.max-i,t.min)),ir(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),ay(e=>{if(!aD(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(id(r,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;aN.set(this.visualElement,this);let t=this.visualElement.current,n=rZ(t,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();nE(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();let a=rC(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ay(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),null==s||s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function aD(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let aL={pan:r5(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=e||t||n||r,a=(0,b.useRef)(null),{transformPagePoint:s}=(0,b.useContext)(nx),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,b.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),rB(i,"pointerdown",o&&function(e){a.current=new o7(e,l,{transformPagePoint:s})}),np(()=>a.current&&a.current.end())}),drag:r5(function(e){let{dragControls:t,visualElement:n}=e,r=nl(()=>new aR(n));(0,b.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,b.useEffect)(()=>r.addListeners(),[r])})};function aF(e){return"string"==typeof e&&e.startsWith("var(--")}let aV=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function az(e,t,n=1){it(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=aV.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():aF(i)?az(i,t,n+1):i}let aI=new Set(["width","height","top","left","right","bottom","x","y"]),aZ=e=>aI.has(e),aB=e=>Object.keys(e).some(aZ),aH=(e,t)=>{e.set(t,!1),e.set(t)},aU=e=>e===n6||e===n2;(EH=EY||(EY={})).width="width",EH.height="height",EH.left="left",EH.right="right",EH.top="top",EH.bottom="bottom";let aW=(e,t)=>parseFloat(e.split(", ")[t]),aq=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return aW(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?aW(t[1],e):0}},a$=new Set(["x","y","z"]),aY=nz.filter(e=>!a$.has(e)),aG={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:aq(4,13),y:aq(5,14)},aK=(e,t,n)=>{let r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=aG[e](r,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);aH(r,s[n]),e[n]=aG[n](l,o)}),e},aX=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(aZ),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=oW(c),f=t[i];if(rw(f)){let e=f.length,t=null===f[0]?1:0;d=oW(c=f[t]);for(let n=t;n{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],aH(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=aK(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),ni&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},aQ=(e,t,n,r)=>{var i,o;let a=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!aF(t))return;let n=az(t,r);n&&e.set(n)}),t){let e=t[i];if(!aF(e))continue;let o=az(e,r);o&&(t[i]=o,n&&void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=a.target,r=a.transitionEnd,i=t,o=r,aB(i)?aX(e,i,n,o):{target:i,transitionEnd:o}},aJ={current:null},a0={current:!1},a1=Object.keys(nA),a2=a1.length,a4=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class a3{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>t8.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=nS(t),this.isVariantNode=nO(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==o[e]&&nB(t)&&(t.set(o[e],!1),oG(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==o[e]&&nB(n)&&n.set(o[e])}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),a0.current||function(){if(a0.current=!0,ni){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>aJ.current=e.matches;e.addListener(t),t()}else aJ.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||aJ.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;for(let r in null===(e=this.projection)||void 0===e||e.unmount(),t7.update(this.notifyUpdate),t7.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[r].clear();this.current=null}bindToMotionValue(e,t){let n=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&t8.update(this.notifyUpdate,!1,!0)}),r=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r,i,o){let a=[];"production"!==tX&&n&&t&&it(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ag()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;tn.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=oB(t),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=rb(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||nB(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new oz),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let a5=["initial",...oJ],a6=a5.length;class a8 extends a3{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){var r;let i={};for(let o in e){let e=function(e,t){if(!t)return;let n=t[e]||t.default||t;return n.from}(o,t);i[o]=void 0!==e?e:null===(r=n.getValue(o))||void 0===r?void 0:r.get()}return i}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;snF(e)?new a9(t,{enableHardwareAcceleration:!1}):new a7(t,{enableHardwareAcceleration:!0});function st(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sn={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!n2.test(e))return e;e=parseFloat(e)}let n=st(e,t.target.x),r=st(e,t.target.y);return`${n}% ${r}%`}},sr="_$css",si={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),o=[];i&&(e=e.replace(aV,e=>(o.push(e),sr)));let a=iR.parse(e);if(a.length>5)return r;let s=iR.createTransformer(e),l="number"!=typeof a[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=id(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(i){let e=0;f=f.replace(sr,()=>{let t=o[e];return e++,t})}return f}};class so extends b.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(nV,sa),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nP.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||t8.postRender(()=>{var e;(null===(e=o.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sa={borderRadius:{...sn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sn,borderTopRightRadius:sn,borderBottomLeftRadius:sn,borderBottomRightRadius:sn,boxShadow:si},ss=["TopLeft","TopRight","BottomLeft","BottomRight"],sl=ss.length,su=e=>"string"==typeof e?parseFloat(e):e,sc=e=>"number"==typeof e||n2.test(e);function sd(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sf=sp(0,.5,iJ),sh=sp(.5,.95,iY);function sp(e,t,n){return r=>rt?1:n(ic(e,t,r))}function sm(e,t){e.min=t.min,e.max=t.max}function sv(e,t){sm(e.x,t.x),sm(e.y,t.y)}function sg(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function sy(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(n1.test(t)){t=parseFloat(t);let e=id(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=id(o.min,o.max,r);e===o&&(s-=t),e.min=sg(e.min,t,n,s,i),e.max=sg(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let sx=["x","scaleX","originX"],sb=["y","scaleY","originY"];function sw(e,t,n,r){sy(e.x,t,sx,null==n?void 0:n.x,null==r?void 0:r.x),sy(e.y,t,sb,null==n?void 0:n.y,null==r?void 0:r.y)}function sE(e){return 0===e.translate&&1===e.scale}function sj(e){return sE(e.x)&&sE(e.y)}function sk(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function s_(e){return ar(e.x)/ar(e.y)}class sS{constructor(){this.members=[]}add(e){oF(this.members,e),e.scheduleRender()}remove(e){if(oV(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var n;let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sO(e,t,n){let r=e.x.translate/t.x,i=e.y.translate/t.y,o=`translate3d(${r}px, ${i}px, 0) `;if(o+=`scale(${1/t.x}, ${1/t.y}) `,n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),r&&(o+=`rotateY(${r}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(o+=`scale(${a}, ${s})`)?"none":o}let sC=(e,t)=>e.depth-t.depth;class sM{constructor(){this.children=[],this.isDirty=!1}add(e){oF(this.children,e),this.isDirty=!0}remove(e){oV(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sC),this.isDirty=!1,this.children.forEach(e)}}let sA=["","X","Y","Z"];function sP({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e,n={},r=null==t?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(sV),this.nodes.forEach(sz)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=oM(r,250),nP.hasAnimatedSinceResize&&(nP.hasAnimatedSinceResize=!1,this.nodes.forEach(sF))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var i,o,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(o=null!==(i=this.options.transition)&&void 0!==i?i:a.getDefaultTransition())&&void 0!==o?o:sW,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!sk(this.targetLayout,r)||n,p=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...oN(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sF(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,t7.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(sI))}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked()){null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));sY(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(sU));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;sB(a.x,e.x,f),sB(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(au(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,sH(r.x,d.x,s.x,f),sH(r.y,d.y,s.y,f)),l&&(this.animationValues=o,function(e,t,n,r,i,o){var a,s,l,u;i?(e.opacity=id(0,null!==(a=n.opacity)&&void 0!==a?a:1,sf(r)),e.opacityExit=id(null!==(s=t.opacity)&&void 0!==s?s:1,0,sh(r))):o&&(e.opacity=id(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{nP.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=nB(e)?e:oB(e);return oR("",r,1e3,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&sG(this.options.animationType,this.layout.actual,r.actual)){n=this.target||ag();let t=ar(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=ar(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sv(t,n),aP(t,i),aa(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new sS);let o=this.sharedNodes.get(e);o.add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,n={};for(let r=0;r{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(sD),this.root.sharedNodes.clear()}}}function sT(e){e.updateLayout()}function sN(e){var t,n,r;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{actual:t,measured:n}=e.layout,{animationType:r}=e.options;"size"===r?ay(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=ar(n);n.min=t[e].min,n.max=n.min+r}):sG(r,i.layout,t)&&ay(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=ar(t[e]);n.max=n.min+r});let o=am();aa(o,t,i.layout);let a=am();i.isShared?aa(a,e.applyTransform(n,!0),i.measured):aa(a,t,i.layout);let s=!sj(o),l=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=ag();au(n,i.layout,e.layout);let o=ag();au(o,t,r.actual),sk(n,o)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function sR(e){e.clearSnapshot()}function sD(e){e.clearMeasurements()}function sL(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sF(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function sV(e){e.resolveTargetDelta()}function sz(e){e.calcProjection()}function sI(e){e.resetRotation()}function sZ(e){e.removeLeadSnapshot()}function sB(e,t,n){e.translate=id(t.translate,0,n),e.scale=id(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sH(e,t,n,r){e.min=id(t.min,n.min,r),e.max=id(t.max,n.max,r)}function sU(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let sW={duration:.45,ease:[.4,0,.1,1]};function sq(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){n=e.path[t];break}let r=n&&n!==e.root?n.instance:document,i=r.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function s$(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function sY(e){s$(e.x),s$(e.y)}function sG(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return o8(e,t)<=n}(s_(t),s_(n),.2)}let sK=sP({attachResizeListener:(e,t)=>rC(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sX={current:void 0},sQ=sP({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sX.current){let e=new sK(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),sX.current=e}return sX.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),sJ={...o4,...r6,...aL,measureLayout:function(e){let[t,n]=r8(),r=(0,b.useContext)(nh);return b.createElement(so,{...e,layoutGroup:r,switchLayoutGroup:(0,b.useContext)(nR),isPresent:t,safeToRemove:n})}},s0=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?nA.projectionNodeConstructor=e[t]:nA[t].Component=e[t]}(e);let a=(0,b.forwardRef)(function(a,s){var l;let u={...(0,b.useContext)(nx),...a,layoutId:function({layoutId:e}){let t=(0,b.useContext)(nh).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:n}=function(e,t){if(nS(e)){let{initial:t,animate:n}=e;return{initial:!1===t||nj(t)?t:void 0,animate:nj(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,b.useContext)(nb));return(0,b.useMemo)(()=>({initial:t,animate:n}),[nC(t),nC(n)])}(a),h=c?void 0:nl(()=>{if(nP.hasEverUpdated)return nT++}),p=i(a,c);if(!c&&ni){f.visualElement=function(e,t,n,r){let i=(0,b.useContext)(nb).visualElement,o=(0,b.useContext)(nw),a=(0,b.useContext)(ns),s=(0,b.useContext)(nx).reducedMotion,l=(0,b.useRef)();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return no(()=>{u&&u.render()}),(0,b.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),no(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let r=(0,b.useContext)(nw).strict,i=(0,b.useContext)(nR);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||nA.projectionNodeConstructor,i))}return b.createElement(nN,{visualElement:f.visualElement,props:u},d,b.createElement(nb.Provider,{value:f},r(o,a,h,(l=f.visualElement,(0,b.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):nE(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[nD]=o,a}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r,i){let o=nF(e)?rS:rO;return{...o,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:o},a)=>{let s=nF(t)?rh:ri,l=s(n,o,a),u=function(e,t,n){let r={};for(let i in e)(rs(i)||!0===n&&ra(i)||!t&&!ra(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),c={...u,...l,ref:i};return r&&(c["data-projection-id"]=r),(0,b.createElement)(t,c)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,sJ,se,sQ));function s1(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,b.useState)(!1),o=(0,b.useMemo)(()=>n?t:r,[n,r,t]),a=(0,b.useCallback)(e=>{n?n(e):i(e)},[n]);return{open:o,onOpenChange:a}}var s2=n(35957),s4=n.n(s2),s3=n(276),s5=n.n(s3);let s6=(0,ea.cx)(s4().variable,s5().variable),s8={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}};function s7(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=s1({open:i,onOpenChange:o});return(0,x.jsxs)(tH,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,x.jsx)(tN,{asChild:!0,children:t}),(0,x.jsx)(ny,{children:n&&u?(0,x.jsx)(tU,{forceMount:!0,children:(0,x.jsx)(tV,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,x.jsx)(s0.div,{variants:s8,initial:"init",animate:"show",exit:"exit",className:(0,ea.cx)(s6,"relative","z-50","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"),children:(0,x.jsx)("div",{className:(0,ea.cx)("py-1 px-2","max-w-xs","overflow-hidden",tY()),children:(0,x.jsx)(t$,{size:"12",children:n})})})})}):null})]})}let s9=(0,ea.j)(["inline-flex","gap-1","appearance-none","shrink-0","items-center","justify-center","select-none","leading-normal","font-sans","cursor-pointer","overflow-hidden","focus:z-10","disabled:cursor-auto","disabled:pointer-events-none","outline-none","focus:ring ring-blue-500 dark:ring-blue-200","transition-colors duration-75"],{variants:{size:{small:["text-xs","px-2","h-7"],medium:["text-base","px-4","h-10"],large:["text-lg","px-4","h-12"],none:[]},state:{waiting:["pointer-events-none"]},disabled:{true:"cursor-auto pointer-events-none"},rounded:{true:"rounded",false:""},variant:{accent:["border","text-white dark:text-white","enabled:bg-green-700 enabled:dark:bg-green-700","enabled:border-green-800/30 enabled:dark:border-green-600/70","enabled:hover:bg-green-800/90 dark:enabled:hover:bg-green-700/90","enabled:hover:border-green-800/50 enabled:hover:dark:border-green-600","disabled:text-white/50 disabled:dark:text-white/50","disabled:bg-green-700/70 disabled:dark:bg-green-600/70","disabled:border-green-600/50 disabled:dark:border-green-500/30","[&[href]]:bg-green-700 [&[href]]:dark:bg-green-700","[&[href]]:border-green-800/30 [&[href]]:dark:border-green-600/70","[&[href]]:hover:bg-green-800/90 dark:[&[href]]:hover:bg-green-700/90","[&[href]]:hover:border-green-800/50 [href]]:hover:dark:border-green-600"],red:["border","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","enabled:hover:bg-red-800/90 dark:enabled:hover:bg-red-700/90","enabled:hover:border-red-800/50 enabled:hover:dark:border-red-600","disabled:bg-red-700/70 disabled:dark:bg-red-600/70","disabled:border-red-600/50 disabled:dark:border-red-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],amber:["border","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","enabled:hover:bg-amber-800/90 dark:enabled:hover:bg-amber-700/90","enabled:hover:border-amber-800/50 enabled:hover:dark:border-amber-600","disabled:bg-amber-700/70 disabled:dark:bg-amber-600/70","disabled:border-amber-600/50 disabled:dark:border-amber-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],gray:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-gray-300","disabled:text-gray-600 disabled:dark:text-graydark-700"],active:["border","bg-gray-200 dark:bg-graydark-400","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-500 dark:border-graydark-500","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],inactive:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400/70 dark:border-graydark-400/70","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","enabled:hover:text-gray-1100 enabled:hover:dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],ghost:["appearance-none border-none bg-transparent","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],state:["open:text-gray-1100 open:dark:text-white","hover:text-gray-1000 hover:dark:text-graydark-1000","text-gray-700 dark:text-graydark-800"]},icon:{contrast:"",hover:"[&>svg]:opacity-50 hover:[&>svg]:opacity-100 transition-opacity",subtle:"[&>svg]:opacity-50"},color:{verySubtle:"!text-gray-700 dark:!text-graydark-700",subtle:"!text-gray-1000 dark:!text-graydark-1000",contrast:"!text-gray-1100 dark:!text-white",lo:"!text-white dark:!text-graydark-50",accent:"!text-accent-1100 dark:!text-accentdark-1100",red:"!text-red-700 dark:!text-red-400",green:"!text-emerald-700 dark:!text-emerald-500",amber:"!text-amber-600 dark:!text-amber-500",none:""}},defaultVariants:{variant:"gray",size:"small",rounded:!0,icon:"subtle",color:"none"}}),le=b.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,x.jsx)(s7,{content:u,align:c,side:d,children:(0,x.jsx)("button",{ref:t,type:h,disabled:a,className:s9({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,x.jsx)("button",{ref:t,disabled:a,type:h,className:s9({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var lt=n(41775);(0,ea.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}});let ln=(0,ea.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lr=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{...r,className:ln({className:n}),ref:t})});var li=n(86029);let lo="Avatar",[la,ls]=(0,j.b)(lo),[ll,lu]=la(lo),lc=(0,b.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,o]=(0,b.useState)("idle");return(0,b.createElement)(ll,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,b.createElement)(M.WV.span,(0,E.Z)({},r,{ref:t})))}),ld=(0,b.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=lu("AvatarImage",n),s=function(e){let[t,n]=(0,b.useState)("idle");return(0,b.useEffect)(()=>{if(!e){n("error");return}let t=!0,r=new window.Image,i=e=>()=>{t&&n(e)};return n("loading"),r.onload=i("loaded"),r.onerror=i("error"),r.src=e,()=>{t=!1}},[e]),t}(r),l=(0,li.W)(e=>{i(e),a.onImageLoadingStatusChange(e)});return(0,A.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,b.createElement)(M.WV.img,(0,E.Z)({},o,{ref:t,src:r})):null}),lf=(0,b.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,o=lu("AvatarFallback",n),[a,s]=(0,b.useState)(void 0===r);return(0,b.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),a&&"loaded"!==o.imageLoadingStatus?(0,b.createElement)(M.WV.span,(0,E.Z)({},i,{ref:t})):null}),lh=(0,ea.j)(["items-center justify-center align-middle flex flex-shrink-0 relative","overflow-hidden select-none outline-none","font-sans font-medium text-sm","border"],{variants:{size:{1:"w-6 h-6",2:"w-12 h-12",3:"w-16 h-16",4:"w-28 h-28"},variant:{filter:"bg-transparent",hiContrast:["bg-gray-900 dark:bg-white text-white dark:text-gray-1100","border-gray-900 dark:border-white text-white dark:text-gray-1100"],gray:["bg-gray-500 dark:bg-gray-800 text-gray-1100 dark:text-white","border-gray-500 dark:border-gray-800 text-gray-1100 dark:text-white"]},shape:{square:"rounded",circle:"rounded-full"},inactive:{true:"opacity-30"},interactive:{true:"cursor-pointer"}},defaultVariants:{size:"2",variant:"gray",shape:"circle"}}),lp=(0,ea.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lm=b.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:o,variant:a,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,x.jsx)("div",{className:(0,ea.cx)("relative h-fit w-fit",c),children:(0,x.jsxs)(lc,{...d,ref:t,className:lh({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,x.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,x.jsx)(ld,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,x.jsx)(lf,{className:lp({size:o}),children:i})]})})}),lv=(0,ea.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular text-sm","justify-center align-middle outline-none p-0 decoration-none select-none","disabled:pointer-events-none","py-0.5 px-2"],{variants:{variant:{active:["border","bg-gray-800 text-gray-900 border-gray-900","dark:bg-transparent dark:text-white dark:border-white/10"],simple:"bg-gray-300 dark:bg-graydark-800 text-gray-900 dark:text-white",green:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],accent:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],red:["border","[&>svg]:opacity-50","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","hover:bg-red-800/90 dark:hover:bg-red-700/90","hover:border-red-800/50 hover:dark:border-red-600","text-white dark:text-white"],amber:["border","[&>svg]:opacity-50","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","hover:bg-amber-800/90 dark:hover:bg-amber-700/90","hover:border-amber-800/50 hover:dark:border-amber-600","text-white dark:text-white"],gray:["border","[&>svg]:opacity-50","bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","hover:bg-gray-50 dark:hover:bg-graydark-300","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100 dark:text-white"],inactive:["border","[&>svg]:opacity-50","bg-white dark:bg-transparent","border-gray-400 dark:border-graydark-400","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","hover:text-gray-1100/50 hover:dark:text-white/50"]},interactive:{true:"cursor-pointer"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",rounded:!0}}),lg=b.forwardRef((e,t)=>{let{variant:n,interactive:r,rounded:i,className:o,...a}=e;return(0,x.jsx)("div",{...a,className:lv({variant:n,interactive:r,rounded:i,className:o}),ref:t})}),ly=b.forwardRef((e,t)=>{let{className:n,size:r,color:i,...o}=e;return(0,x.jsx)("pre",{children:(0,x.jsx)("code",{className:(0,ea.cx)(tW({font:"mono",size:r,color:i}),"block","w-full","overflow-auto","p-3","bg-white dark:bg-graydark-200","border border-gray-400 dark:border-graydark-400","rounded",n),...o,ref:t})})}),lx=(0,ea.j)(["font-mono","whitespace-nowrap","rounded"],{variants:{color:{gray:["bg-gray-200 dark:bg-graydark-200","text-gray-1100 dark:text-graydark-1100"],accent:["bg-accent-200 dark:bg-accentdark-200","text-accent-1100 dark:text-accentdark-1100"]}},defaultVariants:{color:"accent"}}),lb=b.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,x.jsx)("code",{...i,className:lx({color:n,className:r}),ref:t})}),lw=(0,ea.j)(["flex","relative","[&>*]:rounded-none [&>*:last-child]:rounded-r [&>*:first-child]:rounded-l","[&>*]:border-r-0 [&>*]:border-l [&>*:first-child]:border-l [&>*:last-child]:border-r"]),lE=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:lw({className:n}),...r})});(0,ea.j)(["select-none appearance-none outline-none overflow-hidden","inline-flex items-center justify-center","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-4 h-4 rounded",medium:"w-6 h-6 rounded"}},defaultVariants:{size:"small"}});let lj=(0,ea.j)(["flex-shrink-0 w-full mx-auto"],{variants:{pad:{true:"px-5 md:px-10",false:""},size:{1:"max-w-screen-sm",2:"max-w-screen-md",3:"max-w-[1145px]",4:"max-w-screen-2xl",full:"max-w-none"}},defaultVariants:{pad:!0,size:"3"}}),lk=b.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...o}=e;return(0,x.jsx)("div",{ref:t,...o,className:lj({size:i,pad:r,className:n})})});var l_=n(72331);let lS=(0,b.createContext)(void 0);function lO(e){let t=(0,b.useContext)(lS);return e||t||"ltr"}let lC="ScrollArea",[lM,lA]=(0,j.b)(lC),[lP,lT]=lM(lC),lN=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,b.useState)(null),[u,c]=(0,b.useState)(null),[d,f]=(0,b.useState)(null),[h,p]=(0,b.useState)(null),[m,v]=(0,b.useState)(null),[g,y]=(0,b.useState)(0),[x,w]=(0,b.useState)(0),[j,_]=(0,b.useState)(!1),[S,O]=(0,b.useState)(!1),C=(0,k.e)(t,e=>l(e)),A=lO(i);return(0,b.createElement)(lP,{scope:n,type:r,dir:A,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:j,onScrollbarXEnabledChange:_,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:S,onScrollbarYEnabledChange:O,onCornerWidthChange:y,onCornerHeightChange:w},(0,b.createElement)(M.WV.div,(0,E.Z)({dir:A},a,{ref:C,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})))}),lR=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,o=lT("ScrollAreaViewport",n),a=(0,b.useRef)(null),s=(0,k.e)(t,a,o.onViewportChange);return(0,b.createElement)(b.Fragment,null,(0,b.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,b.createElement)(M.WV.div,(0,E.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,b.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),lD="ScrollAreaScrollbar",lL=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lT(lD,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,b.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,b.createElement)(lF,(0,E.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,b.createElement)(lV,(0,E.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,b.createElement)(lz,(0,E.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,b.createElement)(lI,(0,E.Z)({},r,{ref:t})):null}),lF=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lT(lD,e.__scopeScrollArea),[o,a]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),(0,b.createElement)(P.z,{present:n||o},(0,b.createElement)(lz,(0,E.Z)({"data-state":o?"visible":"hidden"},r,{ref:t})))}),lV=(0,b.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,o=lT(lD,e.__scopeScrollArea),a="horizontal"===e.orientation,s=l3(()=>u("SCROLL_END"),100),[l,u]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,b.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,b.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,b.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t],i=n!==r;i&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,u,s]),(0,b.createElement)(P.z,{present:r||"hidden"!==l},(0,b.createElement)(lI,(0,E.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,O.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,O.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),lz=(0,b.forwardRef)((e,t)=>{let n=lT(lD,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=(0,b.useState)(!1),s="horizontal"===e.orientation,l=l3(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=lT(lD,e.__scopeScrollArea),o=(0,b.useRef)(null),a=(0,b.useRef)(0),[s,l]=(0,b.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=lJ(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:!!(u>0&&u<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function d(e,t){return function(e,t,n,r="ltr"){let i=l0(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport,u=l2([a,s],"ltr"===r?[0,l]:[-1*l,0]);return u(e)}(e,a.current,s,t)}return"horizontal"===n?(0,b.createElement)(lZ,(0,E.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollLeft,t=l1(e,s,i.dir);o.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}})):"vertical"===n?(0,b.createElement)(lB,(0,E.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollTop,t=l1(e,s);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),lZ=(0,b.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lT(lD,e.__scopeScrollArea),[a,s]=(0,b.useState)(),l=(0,b.useRef)(null),u=(0,k.e)(t,l,o.onScrollbarXChange);return(0,b.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,b.createElement)(lW,(0,E.Z)({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":l0(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:lQ(a.paddingLeft),paddingEnd:lQ(a.paddingRight)}})}}))}),lB=(0,b.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lT(lD,e.__scopeScrollArea),[a,s]=(0,b.useState)(),l=(0,b.useRef)(null),u=(0,k.e)(t,l,o.onScrollbarYChange);return(0,b.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,b.createElement)(lW,(0,E.Z)({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":l0(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:lQ(a.paddingTop),paddingEnd:lQ(a.paddingBottom)}})}}))}),[lH,lU]=lM(lD),lW=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:o,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=lT(lD,n),[p,m]=(0,b.useState)(null),v=(0,k.e)(t,e=>m(e)),g=(0,b.useRef)(null),y=(0,b.useRef)(""),x=h.viewport,w=r.content-r.viewport,j=(0,li.W)(c),_=(0,li.W)(l),S=l3(d,10);function C(e){if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;u({x:t,y:n})}}return(0,b.useEffect)(()=>{let e=e=>{let t=e.target,n=null==p?void 0:p.contains(t);n&&j(e,w)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[x,p,w,j]),(0,b.useEffect)(_,[r,_]),l5(p,S),l5(h.content,S),(0,b.createElement)(lH,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,li.W)(o),onThumbPointerUp:(0,li.W)(a),onThumbPositionChange:_,onThumbPointerDown:(0,li.W)(s)},(0,b.createElement)(M.WV.div,(0,E.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,O.M)(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C(e)}}),onPointerMove:(0,O.M)(e.onPointerMove,C),onPointerUp:(0,O.M)(e.onPointerUp,e=>{let t=e.target;t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),lq="ScrollAreaThumb",l$=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lU(lq,e.__scopeScrollArea);return(0,b.createElement)(P.z,{present:n||i.hasThumb},(0,b.createElement)(lY,(0,E.Z)({ref:t},r)))}),lY=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,o=lT(lq,n),a=lU(lq,n),{onThumbPositionChange:s}=a,l=(0,k.e)(t,e=>a.onThumbChange(e)),u=(0,b.useRef)(),c=l3(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,b.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=l4(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,b.createElement)(M.WV.div,(0,E.Z)({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,O.M)(e.onPointerDownCapture,e=>{let t=e.target,n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;a.onThumbPointerDown({x:r,y:i})}),onPointerUp:(0,O.M)(e.onPointerUp,a.onThumbPointerUp)}))}),lG="ScrollAreaCorner",lK=(0,b.forwardRef)((e,t)=>{let n=lT(lG,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY),i="scroll"!==n.type&&r;return i?(0,b.createElement)(lX,(0,E.Z)({},e,{ref:t})):null}),lX=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=lT(lG,n),[o,a]=(0,b.useState)(0),[s,l]=(0,b.useState)(0);return l5(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),l5(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),o&&s?(0,b.createElement)(M.WV.div,(0,E.Z)({},r,{ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function lQ(e){return e?parseInt(e,10):0}function lJ(e,t){let n=e/t;return isNaN(n)?0:n}function l0(e){let t=lJ(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function l1(e,t,n="ltr"){let r=l0(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s="ltr"===n?[0,a]:[-1*a,0],l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,s),u=l2([0,a],[0,o-r]);return u(l)}function l2(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}let l4=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function l3(e,t){let n=(0,li.W)(e),r=(0,b.useRef)(0);return(0,b.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,b.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function l5(e,t){let n=(0,li.W)(t);(0,A.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}let l6=b.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:o,keyToResetScrollbars:a}=e;return(0,x.jsxs)(lN,{className:(0,ea.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,x.jsx)(lR,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,x.jsx)(lL,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,x.jsx)(l$,{className:(0,ea.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"v-".concat(a):void 0),(0,x.jsx)(lL,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1 m-px",children:(0,x.jsx)(l$,{className:(0,ea.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"h-".concat(a):void 0),(0,x.jsx)(lK,{className:"bg-black/70"})]})}),l8=(0,ea.j)([s6,"z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),l7={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},l9=b.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:o,onSubmit:a,title:s,description:l,containerVariants:u,contentVariants:c,controls:d,children:f,bodyClassName:h,closeClassName:p,dynamicHeight:m=!0}=e,{open:v,onOpenChange:g}=s1({open:i,onOpenChange:o});return(0,x.jsxs)(l_.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,x.jsx)(l_.xz,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:v?(0,x.jsx)(l_.h_,{forceMount:!0,children:(0,x.jsx)(l_.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,x.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,x.jsx)(l_.aV,{onClick:()=>g(!1),className:"fixed z-10 top-0 right-0 bottom-0 left-0 inset-0 transition-opacity opacity-0 open:opacity-10 dark:open:opacity-20 bg-black"}),(0,x.jsx)(s0.div,{variants:l7,initial:"init",animate:"show",exit:"exit",className:l8(u),children:(0,x.jsx)(un,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function ue(e){let{className:t}=e;return(0,x.jsx)(l_.x8,{asChild:!0,type:"button",children:(0,x.jsx)("div",{className:(0,ea.cx)("appearance-none",t),children:(0,x.jsx)(le,{size:"small",variant:"ghost",type:"button",children:(0,x.jsx)(lt.QN4,{})})})})}let ut=(0,ea.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[tY()],none:""}},defaultVariants:{variant:"default"}}),un=b.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:o,controls:a,contentVariants:s,closeClassName:l,bodyClassName:u,dynamicHeight:c=!0}=e,{ref:d,height:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,b.useState)(0),r=(0,b.useRef)(null);return(0,b.useLayoutEffect)(()=>{if(!r.current)return;let e=r.current,t=()=>n(e.clientHeight);t(),r.current.addEventListener("resize",t);let i=new ResizeObserver(t);return i.observe(e),()=>{e.removeEventListener("resize",t),i.unobserve(e)}},e),{ref:r,height:t}}([n,o]),[h,p]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,x.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:ut(s),children:[i&&(0,x.jsx)(l_.Dx,{className:ur({showSeparator:h}),children:i}),(0,x.jsx)(l6,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,x.jsxs)("div",{ref:d,className:(0,ea.cx)("p-4",u),children:[o&&(0,x.jsx)(l_.dk,{className:ui(),children:o}),n]})}),a&&(0,x.jsx)(uo,{separator:h,children:a}),(0,x.jsx)(ue,{className:l||"absolute top-3.5 right-2"})]})}),ur=(0,ea.j)(["pt-4 pb-2 px-4 w-full",tW({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),ui=(0,ea.j)([tW({color:"subtle",size:"14"}),"py-2"]);function uo(e){let{children:t,separator:n=!0}=e;return(0,x.jsx)("div",{className:(0,ea.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var ua=n(55070),us=n(77334);let ul="rovingFocusGroup.onEntryFocus",uu={bubbles:!1,cancelable:!0},uc="RovingFocusGroup",[ud,uf,uh]=S(uc),[up,um]=(0,j.b)(uc,[uh]),[uv,ug]=up(uc),uy=(0,b.forwardRef)((e,t)=>(0,b.createElement)(ud.Provider,{scope:e.__scopeRovingFocusGroup},(0,b.createElement)(ud.Slot,{scope:e.__scopeRovingFocusGroup},(0,b.createElement)(ux,(0,E.Z)({},e,{ref:t}))))),ux=(0,b.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=(0,b.useRef)(null),f=(0,k.e)(t,d),h=lO(o),[p=null,m]=(0,C.T)({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,b.useState)(!1),y=(0,li.W)(u),x=uf(n),w=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(ul,y),()=>e.removeEventListener(ul,y)},[y]),(0,b.createElement)(uv,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,b.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,b.useCallback)(()=>g(!0),[])},(0,b.createElement)(M.WV.div,(0,E.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,O.M)(e.onMouseDown,()=>{w.current=!0}),onFocus:(0,O.M)(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(ul,uu);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===p),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);uE(i)}}w.current=!1}),onBlur:(0,O.M)(e.onBlur,()=>g(!1))})))}),ub=(0,b.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=e,a=(0,T.M)(),s=ug("RovingFocusGroupItem",n),l=s.currentTabStopId===a,u=uf(n);return(0,b.createElement)(ud.ItemSlot,{scope:n,id:a,focusable:r,active:i},(0,b.createElement)(M.WV.span,(0,E.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:(0,O.M)(e.onMouseDown,e=>{r?s.onItemFocus(a):e.preventDefault()}),onFocus:(0,O.M)(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:(0,O.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return uw[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable),o=i.map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>uE(o))}})})))}),uw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uE(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}var uj=n(49732),uk=n(88965);let u_=["Enter"," "],uS=["ArrowUp","PageDown","End"],uO=["ArrowDown","PageUp","Home",...uS],uC={ltr:[...u_,"ArrowRight"],rtl:[...u_,"ArrowLeft"]},uM={ltr:["ArrowLeft"],rtl:["ArrowRight"]},uA="Menu",[uP,uT,uN]=S(uA),[uR,uD]=(0,j.b)(uA,[uN,ti,um]),uL=ti(),uF=um(),[uV,uz]=uR(uA),[uI,uZ]=uR(uA),uB=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=uL(n);return(0,b.createElement)(ts,(0,E.Z)({},i,r,{ref:t}))}),uH="MenuPortal",[uU,uW]=uR(uH,{forceMount:void 0}),uq="MenuContent",[u$,uY]=uR(uq),uG=(0,b.forwardRef)((e,t)=>{let n=uW(uq,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uz(uq,e.__scopeMenu),a=uZ(uq,e.__scopeMenu);return(0,b.createElement)(uP.Provider,{scope:e.__scopeMenu},(0,b.createElement)(P.z,{present:r||o.open},(0,b.createElement)(uP.Slot,{scope:e.__scopeMenu},a.modal?(0,b.createElement)(uK,(0,E.Z)({},i,{ref:t})):(0,b.createElement)(uX,(0,E.Z)({},i,{ref:t})))))}),uK=(0,b.forwardRef)((e,t)=>{let n=uz(uq,e.__scopeMenu),r=(0,b.useRef)(null),i=(0,k.e)(t,r);return(0,b.useEffect)(()=>{let e=r.current;if(e)return(0,uj.R)(e)},[]),(0,b.createElement)(uQ,(0,E.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,O.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),uX=(0,b.forwardRef)((e,t)=>{let n=uz(uq,e.__scopeMenu);return(0,b.createElement)(uQ,(0,E.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),uQ=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=uz(uq,n),v=uZ(uq,n),g=uL(n),y=uF(n),x=uT(n),[w,j]=(0,b.useState)(null),S=(0,b.useRef)(null),C=(0,k.e)(t,S,m.onContentChange),M=(0,b.useRef)(0),A=(0,b.useRef)(""),P=(0,b.useRef)(0),T=(0,b.useRef)(null),N=(0,b.useRef)("right"),R=(0,b.useRef)(0),D=h?uk.Z:b.Fragment,L=h?{as:_.g7,allowPinchZoom:!0}:void 0,F=e=>{var t,n;let r=A.current+e,i=x().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=i.map(e=>e.textValue),l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,a=n?e.indexOf(n):-1,s=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length])),l=1===o.length;l&&(s=s.filter(e=>e!==n));let u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(s,r,a),u=null===(n=i.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){A.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};(0,b.useEffect)(()=>()=>window.clearTimeout(M.current),[]),(0,ua.EW)();let V=(0,b.useCallback)(e=>{var t,n;let r=N.current===(null===(t=T.current)||void 0===t?void 0:t.side);return r&&function(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,t)}(e,null===(n=T.current)||void 0===n?void 0:n.area)},[]);return(0,b.createElement)(u$,{scope:n,searchRef:A,onItemEnter:(0,b.useCallback)(e=>{V(e)&&e.preventDefault()},[V]),onItemLeave:(0,b.useCallback)(e=>{var t;V(e)||(null===(t=S.current)||void 0===t||t.focus(),j(null))},[V]),onTriggerLeave:(0,b.useCallback)(e=>{V(e)&&e.preventDefault()},[V]),pointerGraceTimerRef:P,onPointerGraceIntentChange:(0,b.useCallback)(e=>{T.current=e},[])},(0,b.createElement)(D,L,(0,b.createElement)(us.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,O.M)(o,e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,b.createElement)(es.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,b.createElement)(uy,(0,E.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:w,onCurrentTabStopIdChange:j,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,b.createElement)(th,(0,E.Z)({role:"menu","aria-orientation":"vertical","data-state":cr(m.open),dir:v.dir},g,p,{ref:C,style:{outline:"none",...p.style},onKeyDown:(0,O.M)(p.onKeyDown,e=>{let t=e.target,n=t.closest('[role="menu"]')===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&i&&F(e.key));let o=S.current;if(e.target!==o||!uO.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);uS.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,O.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),A.current="")}),onPointerMove:(0,O.M)(e.onPointerMove,co(e=>{let t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>R.current?"right":"left";N.current=t,R.current=e.clientX}}))})))))))}),uJ=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,b.createElement)(M.WV.div,(0,E.Z)({role:"group"},r,{ref:t}))}),u0=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,b.createElement)(M.WV.div,(0,E.Z)({},r,{ref:t}))}),u1="MenuItem",u2="menu.itemSelect",u4=(0,b.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,o=(0,b.useRef)(null),a=uZ(u1,e.__scopeMenu),s=uY(u1,e.__scopeMenu),l=(0,k.e)(t,o),u=(0,b.useRef)(!1);return(0,b.createElement)(u3,(0,E.Z)({},i,{ref:l,disabled:n,onClick:(0,O.M)(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(u2,{bubbles:!0,cancelable:!0});e.addEventListener(u2,e=>null==r?void 0:r(e),{once:!0}),(0,M.jH)(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:(0,O.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,O.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&u_.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),u3=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=uY(u1,n),s=uF(n),l=(0,b.useRef)(null),u=(0,k.e)(t,l),[c,d]=(0,b.useState)(!1),[f,h]=(0,b.useState)("");return(0,b.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,b.createElement)(uP.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,b.createElement)(ub,(0,E.Z)({asChild:!0},s,{focusable:!r}),(0,b.createElement)(M.WV.div,(0,E.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:(0,O.M)(e.onPointerMove,co(e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus()}})),onPointerLeave:(0,O.M)(e.onPointerLeave,co(e=>a.onItemLeave(e))),onFocus:(0,O.M)(e.onFocus,()=>d(!0)),onBlur:(0,O.M)(e.onBlur,()=>d(!1))}))))}),[u5,u6]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,b.createElement)(u7,{scope:e.__scopeMenu,checked:n},(0,b.createElement)(u4,(0,E.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":ci(n),onSelect:(0,O.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},uR("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),u8=((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,li.W)(r);return(0,b.createElement)(u5,{scope:e.__scopeMenu,value:n,onValueChange:o},(0,b.createElement)(uJ,(0,E.Z)({},i,{ref:t})))},"MenuItemIndicator"),[u7,u9]=uR(u8,{checked:!1}),[ce,ct]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=u9(u8,n);return(0,b.createElement)(P.z,{present:r||o.checked},(0,b.createElement)(M.WV.span,(0,E.Z)({},i,{ref:t,"data-state":ci(o.checked)})))},uR("MenuSub")),cn="MenuSubTrigger";function cr(e){return e?"open":"closed"}function ci(e){return e?"checked":"unchecked"}function co(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=uz(cn,e.__scopeMenu),r=uZ(cn,e.__scopeMenu),i=ct(cn,e.__scopeMenu),o=uY(cn,e.__scopeMenu),a=(0,b.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,b.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,b.useEffect)(()=>c,[c]),(0,b.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,b.createElement)(uB,(0,E.Z)({asChild:!0},u),(0,b.createElement)(u3,(0,E.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cr(n.open)},e,{ref:(0,k.F)(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,O.M)(e.onPointerMove,co(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(o.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:(0,O.M)(e.onPointerLeave,co(e=>{var t,r;c();let i=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,a="right"===t,l=i[a?"left":"right"],u=i[a?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:l,y:i.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:(0,O.M)(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&uC[r.dir].includes(t.key)){var a;n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault()}})})))},(e,t)=>{let n=uW(uq,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uz(uq,e.__scopeMenu),a=uZ(uq,e.__scopeMenu),s=ct("MenuSubContent",e.__scopeMenu),l=(0,b.useRef)(null),u=(0,k.e)(t,l);return(0,b.createElement)(uP.Provider,{scope:e.__scopeMenu},(0,b.createElement)(P.z,{present:r||o.open},(0,b.createElement)(uP.Slot,{scope:e.__scopeMenu},(0,b.createElement)(uQ,(0,E.Z)({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:u,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,O.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,O.M)(e.onEscapeKeyDown,a.onClose),onKeyDown:(0,O.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=uM[a.dir].includes(e.key);if(t&&n){var r;o.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))};let ca=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=uL(t),[l,u]=(0,b.useState)(null),c=(0,b.useRef)(!1),d=(0,li.W)(o),f=lO(i);return(0,b.useEffect)(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,b.createElement)(tb,s,(0,b.createElement)(uV,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,b.createElement)(uI,{scope:t,onClose:(0,b.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},r)))},cs=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=uz(uH,t);return(0,b.createElement)(uU,{scope:t,forceMount:n},(0,b.createElement)(P.z,{present:n||o.open},(0,b.createElement)(tw.h,{asChild:!0,container:i},r)))},cl="DropdownMenu",[cu,cc]=(0,j.b)(cl,[uD]),cd=uD(),[cf,ch]=cu(cl),cp=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=ch("DropdownMenuTrigger",n),a=cd(n);return(0,b.createElement)(uB,(0,E.Z)({asChild:!0},a),(0,b.createElement)(M.WV.button,(0,E.Z)({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":!!o.open||void 0,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:(0,k.F)(t,o.triggerRef),onPointerDown:(0,O.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,O.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cm=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=ch("DropdownMenuContent",n),o=cd(n),a=(0,b.useRef)(!1);return(0,b.createElement)(uG,(0,E.Z)({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:(0,O.M)(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:(0,O.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),cv=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cd(n);return(0,b.createElement)(u0,(0,E.Z)({},i,r,{ref:t}))}),cg=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cd(n);return(0,b.createElement)(u4,(0,E.Z)({},i,r,{ref:t}))}),cy=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=cd(t),u=(0,b.useRef)(null),[c=!1,d]=(0,C.T)({prop:i,defaultProp:o,onChange:a});return(0,b.createElement)(cf,{scope:t,triggerId:(0,T.M)(),triggerRef:u,contentId:(0,T.M)(),open:c,onOpenChange:d,onOpenToggle:(0,b.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,b.createElement)(ca,(0,E.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},cx=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cd(t);return(0,b.createElement)(cs,(0,E.Z)({},r,n))},cb="horizontal",cw=["horizontal","vertical"],cE=(0,b.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cb,...i}=e,o=cj(r)?r:cb;return(0,b.createElement)(M.WV.div,(0,E.Z)({"data-orientation":o},n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function cj(e){return cw.includes(e)}cE.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!cj(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: - horizontal - vertical -Defaulting to \`${cx}\`.`):null}};let cj=(0,ea.j)(["m-0 flex-shrink-0 cursor-default"],{variants:{variant:{vertical:"border-r",horizontal:"border-b"},color:{subtle:"border-gray-300 dark:border-graydark-300",verySubtle:"border-gray-100 dark:border-graydark-100",panel:"border-gray-100 dark:border-graydark-400/50"}},defaultVariants:{variant:"horizontal",color:"subtle"}}),c_=x.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...o}=e;return(0,b.jsx)(cE,{ref:t,className:cj({variant:n,color:r,className:i}),...o})}),cS=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ea.cx)(tW({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},cO=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ea.cx)(cS({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["group","cursor-pointer","rounded-sm","focus:outline-none","focus:text-gray-900","dark:focus:text-white","focus:bg-gray-300","dark:focus:bg-graydark-300","aria-selected:bg-gray-400","aria-selected:dark:bg-graydark-500","data-[disabled]:pointer-events-none","data-[disabled]:text-gray-700","dark:data-[disabled]:text-graydark-700"])},cC=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:o="14",scaleSize:a,noWrap:s,ellipsis:l}=e;return tW({font:n,color:r,weight:i,size:o,scaleSize:a,noWrap:s,ellipsis:l,className:t})},cM=e=>(0,ea.cx)(["h-px","my-2","mx-1.5",e]),cA=x.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,b.jsx)(c_,{ref:t,className:cM(n),...i})}),cP=x.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:o,size:a="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,b.jsx)("div",{ref:t,className:(0,ea.cx)(cS({className:n,font:r,color:i,weight:o,size:a,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),cT=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,b.jsx)("div",{ref:t,className:(0,ea.cx)(["ml-auto","pl-5",n]),...r})}),cN=(0,ea.j)([s6,"relative","max-w-sm","z-30","py-1","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-tip","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),cR=e=>(0,ea.cx)(tY(),(0,ea.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),cD={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},cL=x.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o,className:a,open:s,onOpenChange:l}=e,{open:u,onOpenChange:c}=s1({open:s,onOpenChange:l});return(0,b.jsxs)(cy,{open:u,onOpenChange:c,...i,children:[(0,b.jsx)(cp,{asChild:!0,children:n}),(0,b.jsx)(ny,{children:u?(0,b.jsx)(cb,{forceMount:!0,children:(0,b.jsx)(cm,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,b.jsx)(s0.div,{variants:cD,initial:"init",animate:"show",exit:"exit",className:cN(),children:(0,b.jsx)("div",{className:cR(a),children:r})})})}):null})]})}),cF=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,b.jsx)(cg,{ref:t,className:cO({className:n}),...r})}),cV=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,b.jsx)(cv,{ref:t,className:(0,ea.cx)("px-1.5",cC({className:n})),...r})}),cI=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,b.jsx)("div",{ref:t,className:(0,ea.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var cz=n(39097),cZ=n.n(cz);let cB={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},cH={20:"font-semibold text-base md:text-xl",24:"font-bold text-xl md:text-2xl",32:"font-semibold text-2xl md:text-3xl",40:"font-semibold text-3xl md:text-4xl",64:"font-semibold text-4xl md:text-6xl"},cU=x.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:o,anchorLink:a,showAnchor:s,...l}=e,u=cB[n];if(a){let e=i||("string"==typeof o?encodeURI(o.toLowerCase().replace(/ /g,"-")):"");return(0,b.jsxs)("div",{className:(0,ea.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,b.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,b.jsxs)(cZ(),{href:"#".concat(e),className:"relative group",children:[(0,b.jsx)(tq,{className:"hidden group-hover:block",children:(0,b.jsx)(lt.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,b.jsx)(tq,{as:u,...l,ref:t,weight:"none",className:(0,ea.cx)("proportional-nums inline-block",cH[n]),children:o})]})]})}return(0,b.jsx)("div",{className:(0,ea.cx)("flex flex-col gap-6 items-start",r),children:(0,b.jsx)(tq,{as:u,...l,ref:t,weight:"none",className:(0,ea.cx)("proportional-nums inline-block",cH[n],r),children:o})})});var cW=n(96577),cq=n.n(cW);let c$=(0,ea.j)(["rounded"]);function cY(e){let{className:t,...n}=e;return(0,b.jsx)(cq(),{className:c$({className:t}),...n})}let[cG,cK]=(0,k.k)("Label",{id:void 0,controlRef:{current:null}}),cX=(0,x.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,o=(0,x.useRef)(null),a=(0,x.useRef)(null),s=(0,j.e)(t,a),l=(0,T.M)(r);return(0,x.useEffect)(()=>{if(n){let e=document.getElementById(n),t=a.current;if(t&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),o.current=e,()=>{var n;let r=null===(n=t())||void 0===n?void 0:n.replace(l,"");""===r?e.removeAttribute("aria-labelledby"):r&&e.setAttribute("aria-labelledby",r)}}}},[l,n]),(0,x.createElement)(cG,{id:l,controlRef:o},(0,x.createElement)(M.WV.span,(0,E.Z)({role:"label",id:l},i,{ref:s,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onClick:t=>{var n;if(null===(n=e.onClick)||void 0===n||n.call(e,t),!o.current||t.defaultPrevented)return;let r=o.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(o.current.click(),o.current.focus())}})))}),cQ=e=>{let t=cK("LabelConsumer"),{controlRef:n}=t;return(0,x.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},cJ=x.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:o,color:a="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,b.jsx)(cX,{ref:t,...c,className:cC({font:n,size:r,scaleSize:i,color:a,weight:o,noWrap:s,ellipsis:l,className:u})})}),c0=(0,ea.j)(["cursor-pointer"],{variants:{disabled:{true:"opacity-50 pointer-events-none"},underline:{accent:"underline underline-offset-4 decoration-2 decoration-accentdark-900 dark:decoration-accentdark-900",default:"underline underline-offset-4",hover:"hover:underline underline-offset-4",none:""}},defaultVariants:{disabled:!1,underline:"default"}}),c1=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:o,noWrap:a,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,ea.cx)(tW({scaleSize:r,size:n,font:t,color:i,weight:o,noWrap:a,ellipsis:s,underline:l}),c0({disabled:u,underline:l}),c)},c2=x.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:o,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,x.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,b.jsx)(cZ(),{href:n||"#",ref:t,className:c1({font:r,scaleSize:o,size:i,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),c4={src:"/_next/static/media/logo.0e2362ab.png"};function c3(e){let{size:t=30,className:n}=e;return(0,b.jsx)(cY,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let c5="Popover",[c6,c8]=(0,k.b)(c5,[ti]),c7=ti(),[c9,de]=c6(c5),dt=(0,x.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=de("PopoverTrigger",n),o=c7(n),a=(0,j.e)(t,i.triggerRef),s=(0,x.createElement)(M.WV.button,(0,E.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dd(i.open)},r,{ref:a,onClick:(0,O.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,x.createElement)(ts,(0,E.Z)({asChild:!0},o),s)}),dn="PopoverPortal",[dr,di]=c6(dn,{forceMount:void 0}),da="PopoverContent",ds=(0,x.forwardRef)((e,t)=>{let n=di(da,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=de(da,e.__scopePopover);return(0,x.createElement)(P.z,{present:r||o.open},o.modal?(0,x.createElement)(dl,(0,E.Z)({},i,{ref:t})):(0,x.createElement)(du,(0,E.Z)({},i,{ref:t})))}),dl=(0,x.forwardRef)((e,t)=>{let n=de(da,e.__scopePopover),r=(0,x.useRef)(null),i=(0,j.e)(t,r),o=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=r.current;if(e)return(0,uk.R)(e)},[]),(0,x.createElement)(uj.Z,{as:_.g7,allowPinchZoom:!0},(0,x.createElement)(dc,(0,E.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,O.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,O.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,O.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),du=(0,x.forwardRef)((e,t)=>{let n=de(da,e.__scopePopover),r=(0,x.useRef)(!1);return(0,x.createElement)(dc,(0,E.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let a=t.target,s=null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),dc=(0,x.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=de(da,n),h=c7(n);return(0,ua.EW)(),(0,x.createElement)(us.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,x.createElement)(es.XB,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,x.createElement)(th,(0,E.Z)({"data-state":dd(f.open),role:"dialog",id:f.contentId},h,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function dd(e){return e?"open":"closed"}let df=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=c7(t),l=(0,x.useRef)(null),[u,c]=(0,x.useState)(!1),[d=!1,f]=(0,C.T)({prop:r,defaultProp:i,onChange:o});return(0,x.createElement)(tx,s,(0,x.createElement)(c9,{scope:t,contentId:(0,T.M)(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,x.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,x.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,x.useCallback)(()=>c(!1),[]),modal:a},n))},dh=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=de(dn,t);return(0,x.createElement)(dr,{scope:t,forceMount:n},(0,x.createElement)(P.z,{present:n||o.open},(0,x.createElement)(tw.h,{asChild:!0,container:i},r)))},dp=(0,ea.j)([s6,"relative","z-10","outline-none","max-w-sm","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),dm=(0,ea.cx)(tY(),(0,ea.j)(["py-1","px-1"])()),dv={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dg=x.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{open:a,onOpenChange:s}=s1({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,b.jsxs)(df,{open:a,onOpenChange:s,...i,children:[(0,b.jsx)(dt,{asChild:!0,children:n}),(0,b.jsx)(ny,{children:a?(0,b.jsx)(dh,{forceMount:!0,children:(0,b.jsx)(ds,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,b.jsx)(s0.div,{variants:dv,initial:"init",animate:"show",exit:"exit",className:dp(),children:(0,b.jsx)(l6,{className:dm,children:r})})})}):null})]})}),dy="Progress",[db,dx]=(0,k.b)(dy),[dw,dE]=db(dy),dk=(0,x.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:o=d_,...a}=e,s=dC(i)?i:100,l=dM(r,s)?r:null,u=dO(l)?o(l,s):void 0;return(0,x.createElement)(dw,{scope:n,value:l,max:s},(0,x.createElement)(M.WV.div,(0,E.Z)({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":dO(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":dS(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))});dk.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!dC(r)?Error(`Invalid prop \`max\` of value \`${i}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,n){let r=e[t],i=String(r),o=dC(e.max)?e.max:100;return null==r||dM(r,o)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${n}\`. The \`value\` prop must be: +Defaulting to \`${cb}\`.`):null}};let ck=(0,ea.j)(["m-0 flex-shrink-0 cursor-default"],{variants:{variant:{vertical:"border-r",horizontal:"border-b"},color:{subtle:"border-gray-300 dark:border-graydark-300",verySubtle:"border-gray-100 dark:border-graydark-100",panel:"border-gray-100 dark:border-graydark-400/50"}},defaultVariants:{variant:"horizontal",color:"subtle"}}),c_=b.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...o}=e;return(0,x.jsx)(cE,{ref:t,className:ck({variant:n,color:r,className:i}),...o})}),cS=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ea.cx)(tW({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},cO=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,ea.cx)(cS({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["group","cursor-pointer","rounded-sm","focus:outline-none","focus:text-gray-900","dark:focus:text-white","focus:bg-gray-300","dark:focus:bg-graydark-300","aria-selected:bg-gray-400","aria-selected:dark:bg-graydark-500","data-[disabled]:pointer-events-none","data-[disabled]:text-gray-700","dark:data-[disabled]:text-graydark-700"])},cC=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:o="14",scaleSize:a,noWrap:s,ellipsis:l}=e;return tW({font:n,color:r,weight:i,size:o,scaleSize:a,noWrap:s,ellipsis:l,className:t})},cM=e=>(0,ea.cx)(["h-px","my-2","mx-1.5",e]),cA=b.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,x.jsx)(c_,{ref:t,className:cM(n),...i})}),cP=b.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:o,size:a="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,x.jsx)("div",{ref:t,className:(0,ea.cx)(cS({className:n,font:r,color:i,weight:o,size:a,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),cT=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:(0,ea.cx)(["ml-auto","pl-5",n]),...r})}),cN=(0,ea.j)([s6,"relative","max-w-sm","z-30","py-1","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-tip","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),cR=e=>(0,ea.cx)(tY(),(0,ea.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),cD={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},cL=b.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o,className:a,open:s,onOpenChange:l}=e,{open:u,onOpenChange:c}=s1({open:s,onOpenChange:l});return(0,x.jsxs)(cy,{open:u,onOpenChange:c,...i,children:[(0,x.jsx)(cp,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:u?(0,x.jsx)(cx,{forceMount:!0,children:(0,x.jsx)(cm,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,x.jsx)(s0.div,{variants:cD,initial:"init",animate:"show",exit:"exit",className:cN(),children:(0,x.jsx)("div",{className:cR(a),children:r})})})}):null})]})}),cF=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(cg,{ref:t,className:cO({className:n}),...r})}),cV=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(cv,{ref:t,className:(0,ea.cx)("px-1.5",cC({className:n})),...r})}),cz=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("div",{ref:t,className:(0,ea.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var cI=n(39097),cZ=n.n(cI);let cB={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},cH={20:"font-semibold text-base md:text-xl",24:"font-bold text-xl md:text-2xl",32:"font-semibold text-2xl md:text-3xl",40:"font-semibold text-3xl md:text-4xl",64:"font-semibold text-4xl md:text-6xl"},cU=b.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:o,anchorLink:a,showAnchor:s,...l}=e,u=cB[n];if(a){let e=i||("string"==typeof o?encodeURI(o.toLowerCase().replace(/ /g,"-")):"");return(0,x.jsxs)("div",{className:(0,ea.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,x.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,x.jsxs)(cZ(),{href:"#".concat(e),className:"relative group",children:[(0,x.jsx)(tq,{className:"hidden group-hover:block",children:(0,x.jsx)(lt.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,x.jsx)(tq,{as:u,...l,ref:t,weight:"none",className:(0,ea.cx)("proportional-nums inline-block",cH[n]),children:o})]})]})}return(0,x.jsx)("div",{className:(0,ea.cx)("flex flex-col gap-6 items-start",r),children:(0,x.jsx)(tq,{as:u,...l,ref:t,weight:"none",className:(0,ea.cx)("proportional-nums inline-block",cH[n],r),children:o})})});var cW=n(96577),cq=n.n(cW);let c$=(0,ea.j)(["rounded"]);function cY(e){let{className:t,...n}=e;return(0,x.jsx)(cq(),{className:c$({className:t}),...n})}let[cG,cK]=(0,j.k)("Label",{id:void 0,controlRef:{current:null}}),cX=(0,b.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,o=(0,b.useRef)(null),a=(0,b.useRef)(null),s=(0,k.e)(t,a),l=(0,T.M)(r);return(0,b.useEffect)(()=>{if(n){let e=document.getElementById(n),t=a.current;if(t&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),o.current=e,()=>{var n;let r=null===(n=t())||void 0===n?void 0:n.replace(l,"");""===r?e.removeAttribute("aria-labelledby"):r&&e.setAttribute("aria-labelledby",r)}}}},[l,n]),(0,b.createElement)(cG,{id:l,controlRef:o},(0,b.createElement)(M.WV.span,(0,E.Z)({role:"label",id:l},i,{ref:s,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onClick:t=>{var n;if(null===(n=e.onClick)||void 0===n||n.call(e,t),!o.current||t.defaultPrevented)return;let r=o.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(o.current.click(),o.current.focus())}})))}),cQ=e=>{let t=cK("LabelConsumer"),{controlRef:n}=t;return(0,b.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},cJ=b.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:o,color:a="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,x.jsx)(cX,{ref:t,...c,className:cC({font:n,size:r,scaleSize:i,color:a,weight:o,noWrap:s,ellipsis:l,className:u})})}),c0=(0,ea.j)(["cursor-pointer"],{variants:{disabled:{true:"opacity-50 pointer-events-none"},underline:{accent:"underline underline-offset-4 decoration-2 decoration-accentdark-900 dark:decoration-accentdark-900",default:"underline underline-offset-4",hover:"hover:underline underline-offset-4",none:""}},defaultVariants:{disabled:!1,underline:"default"}}),c1=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:o,noWrap:a,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,ea.cx)(tW({scaleSize:r,size:n,font:t,color:i,weight:o,noWrap:a,ellipsis:s,underline:l}),c0({disabled:u,underline:l}),c)},c2=b.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:o,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,b.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,x.jsx)(cZ(),{href:n||"#",ref:t,className:c1({font:r,scaleSize:o,size:i,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),c4={src:"/_next/static/media/logo.0e2362ab.png"};function c3(e){let{size:t=30,className:n}=e;return(0,x.jsx)(cY,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let c5="Popover",[c6,c8]=(0,j.b)(c5,[ti]),c7=ti(),[c9,de]=c6(c5),dt=(0,b.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=de("PopoverTrigger",n),o=c7(n),a=(0,k.e)(t,i.triggerRef),s=(0,b.createElement)(M.WV.button,(0,E.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dd(i.open)},r,{ref:a,onClick:(0,O.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,b.createElement)(ts,(0,E.Z)({asChild:!0},o),s)}),dn="PopoverPortal",[dr,di]=c6(dn,{forceMount:void 0}),da="PopoverContent",ds=(0,b.forwardRef)((e,t)=>{let n=di(da,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=de(da,e.__scopePopover);return(0,b.createElement)(P.z,{present:r||o.open},o.modal?(0,b.createElement)(dl,(0,E.Z)({},i,{ref:t})):(0,b.createElement)(du,(0,E.Z)({},i,{ref:t})))}),dl=(0,b.forwardRef)((e,t)=>{let n=de(da,e.__scopePopover),r=(0,b.useRef)(null),i=(0,k.e)(t,r),o=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=r.current;if(e)return(0,uj.R)(e)},[]),(0,b.createElement)(uk.Z,{as:_.g7,allowPinchZoom:!0},(0,b.createElement)(dc,(0,E.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,O.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,O.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,O.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),du=(0,b.forwardRef)((e,t)=>{let n=de(da,e.__scopePopover),r=(0,b.useRef)(!1);return(0,b.createElement)(dc,(0,E.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let a=t.target,s=null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),dc=(0,b.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=de(da,n),h=c7(n);return(0,ua.EW)(),(0,b.createElement)(us.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,b.createElement)(es.XB,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,b.createElement)(th,(0,E.Z)({"data-state":dd(f.open),role:"dialog",id:f.contentId},h,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function dd(e){return e?"open":"closed"}let df=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=c7(t),l=(0,b.useRef)(null),[u,c]=(0,b.useState)(!1),[d=!1,f]=(0,C.T)({prop:r,defaultProp:i,onChange:o});return(0,b.createElement)(tb,s,(0,b.createElement)(c9,{scope:t,contentId:(0,T.M)(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,b.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,b.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,b.useCallback)(()=>c(!1),[]),modal:a},n))},dh=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=de(dn,t);return(0,b.createElement)(dr,{scope:t,forceMount:n},(0,b.createElement)(P.z,{present:n||o.open},(0,b.createElement)(tw.h,{asChild:!0,container:i},r)))},dp=(0,ea.j)([s6,"relative","z-10","outline-none","max-w-sm","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),dm=(0,ea.cx)(tY(),(0,ea.j)(["py-1","px-1"])()),dv={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dg=b.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{open:a,onOpenChange:s}=s1({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,x.jsxs)(df,{open:a,onOpenChange:s,...i,children:[(0,x.jsx)(dt,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:a?(0,x.jsx)(dh,{forceMount:!0,children:(0,x.jsx)(ds,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,x.jsx)(s0.div,{variants:dv,initial:"init",animate:"show",exit:"exit",className:dp(),children:(0,x.jsx)(l6,{className:dm,children:r})})})}):null})]})}),dy="Progress",[dx,db]=(0,j.b)(dy),[dw,dE]=dx(dy),dj=(0,b.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:o=d_,...a}=e,s=dC(i)?i:100,l=dM(r,s)?r:null,u=dO(l)?o(l,s):void 0;return(0,b.createElement)(dw,{scope:n,value:l,max:s},(0,b.createElement)(M.WV.div,(0,E.Z)({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":dO(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":dS(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))});dj.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!dC(r)?Error(`Invalid prop \`max\` of value \`${i}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,n){let r=e[t],i=String(r),o=dC(e.max)?e.max:100;return null==r||dM(r,o)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${n}\`. The \`value\` prop must be: - a positive number - less than the value passed to \`max\` (or 100 if no \`max\` prop is set) - \`null\` if the progress is indeterminate. -Defaulting to \`null\`.`)}};let dj=(0,x.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,o=dE("ProgressIndicator",r);return(0,x.createElement)(M.WV.div,(0,E.Z)({"data-state":dS(o.value,o.max),"data-value":null!==(n=o.value)&&void 0!==n?n:void 0,"data-max":o.max},i,{ref:t}))});function d_(e,t){return`${Math.round(e/t*100)}%`}function dS(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function dO(e){return"number"==typeof e}function dC(e){return dO(e)&&!isNaN(e)&&e>0}function dM(e,t){return dO(e)&&!isNaN(e)&&e<=t&&e>=0}let dA=(0,ea.j)(["relative h-1 w-full overflow-hidden rounded-lg"],{variants:{variant:{gray:"bg-gray-700 dark:bg-graydark-700",accent:"bg-green-600 dark:bg-green-500"}},defaultVariants:{variant:"gray"}}),dP=x.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:o,max:a=100,...s}=e,l=null!=o?Math.round(o/a*100):null;return(0,b.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,b.jsx)(dk,{...s,ref:t,value:o,max:a,className:dA({variant:r,className:i}),children:(0,b.jsx)(dj,{className:"absolute top-0 right-0 left-0 bottom-0 w-full bg-gray-300 dark:bg-graydark-300 transition-transform",style:{transform:"translateX(".concat(l,"%)")}})}),n&&(0,b.jsx)(tq,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function dT(e){let t=(0,x.useRef)({value:e,previous:e});return(0,x.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let dN="Radio",[dR,dD]=(0,k.b)(dN),[dL,dF]=dR(dN),dV=(0,x.forwardRef)((e,t)=>{let{__scopeRadio:n,"aria-labelledby":r,name:i,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,f]=(0,x.useState)(null),h=(0,j.e)(t,e=>f(e)),p=cQ(d),m=(0,x.useRef)(!1),v=!d||!!d.closest("form");return(0,x.createElement)(dL,{scope:n,checked:o,disabled:s},(0,x.createElement)(M.WV.button,(0,E.Z)({type:"button",role:"radio","aria-checked":o,"aria-labelledby":r||p,"data-state":dZ(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,O.M)(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,x.createElement)(dz,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),dI=(0,x.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=dF("RadioIndicator",n);return(0,x.createElement)(P.z,{present:r||o.checked},(0,x.createElement)(M.WV.span,(0,E.Z)({"data-state":dZ(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),dz=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,x.useRef)(null),a=dT(n),s=tt(t);return(0,x.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,x.createElement)("input",(0,E.Z)({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function dZ(e){return e?"checked":"unchecked"}let dB=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dH="RadioGroup",[dU,dW]=(0,k.b)(dH,[um,dD]),dq=um(),d$=dD(),[dY,dG]=dU(dH),dK=(0,x.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,name:r,"aria-labelledby":i,defaultValue:o,value:a,required:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=cQ(),p=dq(n),m=lO(u),[v,g]=(0,C.T)({prop:a,defaultProp:o,onChange:d});return(0,x.createElement)(dY,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,x.createElement)(uy,(0,E.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,x.createElement)(M.WV.div,(0,E.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),dX=(0,x.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=dG("RadioGroupItem",n),a=dq(n),s=d$(n),l=(0,x.useRef)(null),u=(0,j.e)(t,l),c=o.value===i.value,d=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=e=>{dB.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,x.createElement)(ux,(0,E.Z)({asChild:!0},a,{focusable:!r,active:c}),(0,x.createElement)(dV,(0,E.Z)({disabled:r,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:(0,O.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,O.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),dQ=(0,x.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=d$(n);return(0,x.createElement)(dI,(0,E.Z)({},i,r,{ref:t}))}),dJ=(0,ea.j)(["relative flex items-center h-full justify-center w-full",'after:content-[""] after:block after:rounded-full after:bg-green-600 after:dark:bg-green-500'],{variants:{size:{small:"after:w-2 after:h-2 ",medium:"after:w-4 after:h-4"}},defaultVariants:{size:"small"}}),d0=(0,ea.j)(["select-none","inline-flex items-center justify-center","m-0 p-0","outline-none","rounded-full","overflow-hidden","focus:ring ring-blue-500 dark:ring-blue-200","bg-white dark:bg-graydark-200","border border-gray-500 dark:border-graydark-400","enabled:hover:border-gray-700 enabled:hover:dark:border-graydark-600","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-400","disabled:bg-gray-200 disabled:dark:bg-graydark-200"],{variants:{size:{small:"w-4 h-4",medium:"w-6 h-6"}},defaultVariants:{size:"small"}}),d1=x.forwardRef((e,t)=>{let{size:n,className:r,children:i,...o}=e;return(0,b.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,b.jsx)(dX,{...o,className:d0({size:n,className:r}),ref:t,children:(0,b.jsx)(dQ,{className:dJ({size:n})})}),(0,b.jsx)(tq,{size:"14",className:"relative top-px flex items-center",color:o.disabled?"verySubtle":"subtle",children:i})]})}),d2=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,b.jsx)(dK,{...r,className:(0,ea.cx)("flex gap-2",n),ref:t})});(0,ea.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",tW(),"tabular-nums","resize-y","rounded","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","placeholder:text-gray-600 placeholder:dark:text-graydark-500","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},cursor:{default:"",text:"cursor-text"}},defaultVariants:{size:"small",variant:"default",cursor:"default",state:"default"}});let d4=(0,ea.j)(["font-sans [type=number]:font-mono","outline-none m-0 p-0 w-full","disabled:pointer-events-none","tabular-nums","rounded","text-gray-1100 dark:text-white","autofill:text-fill-gray-1100 autofill:dark:text-fill-white","autofill:placeholder:text-fill-gray-700 autofill:placeholder:dark:text-fill-graydark-700","placeholder:text-gray-700 placeholder:dark:text-graydark-700","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-white autofill:dark:bg-graydark-50","autofill:shadow-fill-white autofill:dark:shadow-fill-graydark-50"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},focus:{default:["focus:ring ring-blue-500 dark:ring-blue-200","focus:z-10"],none:""},cursor:{default:"",text:"cursor-text"},noSpin:{true:"[&::-webkit-outer-spin-button, &::-webkit-inner-spin-button]:appearance-none"}},defaultVariants:{size:"small",focus:"default",variant:"default",cursor:"default",state:"default"}}),d3=x.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,b.jsx)("input",{ref:t,className:d4({variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});/*! ***************************************************************************** +Defaulting to \`null\`.`)}};let dk=(0,b.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,o=dE("ProgressIndicator",r);return(0,b.createElement)(M.WV.div,(0,E.Z)({"data-state":dS(o.value,o.max),"data-value":null!==(n=o.value)&&void 0!==n?n:void 0,"data-max":o.max},i,{ref:t}))});function d_(e,t){return`${Math.round(e/t*100)}%`}function dS(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function dO(e){return"number"==typeof e}function dC(e){return dO(e)&&!isNaN(e)&&e>0}function dM(e,t){return dO(e)&&!isNaN(e)&&e<=t&&e>=0}let dA=(0,ea.j)(["relative h-1 w-full overflow-hidden rounded-lg"],{variants:{variant:{gray:"bg-gray-700 dark:bg-graydark-700",accent:"bg-green-600 dark:bg-green-500"}},defaultVariants:{variant:"gray"}}),dP=b.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:o,max:a=100,...s}=e,l=null!=o?Math.round(o/a*100):null;return(0,x.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,x.jsx)(dj,{...s,ref:t,value:o,max:a,className:dA({variant:r,className:i}),children:(0,x.jsx)(dk,{className:"absolute top-0 right-0 left-0 bottom-0 w-full bg-gray-300 dark:bg-graydark-300 transition-transform",style:{transform:"translateX(".concat(l,"%)")}})}),n&&(0,x.jsx)(tq,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function dT(e){let t=(0,b.useRef)({value:e,previous:e});return(0,b.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let dN="Radio",[dR,dD]=(0,j.b)(dN),[dL,dF]=dR(dN),dV=(0,b.forwardRef)((e,t)=>{let{__scopeRadio:n,"aria-labelledby":r,name:i,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,f]=(0,b.useState)(null),h=(0,k.e)(t,e=>f(e)),p=cQ(d),m=(0,b.useRef)(!1),v=!d||!!d.closest("form");return(0,b.createElement)(dL,{scope:n,checked:o,disabled:s},(0,b.createElement)(M.WV.button,(0,E.Z)({type:"button",role:"radio","aria-checked":o,"aria-labelledby":r||p,"data-state":dZ(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,O.M)(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,b.createElement)(dI,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),dz=(0,b.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=dF("RadioIndicator",n);return(0,b.createElement)(P.z,{present:r||o.checked},(0,b.createElement)(M.WV.span,(0,E.Z)({"data-state":dZ(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),dI=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,b.useRef)(null),a=dT(n),s=tt(t);return(0,b.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,b.createElement)("input",(0,E.Z)({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function dZ(e){return e?"checked":"unchecked"}let dB=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dH="RadioGroup",[dU,dW]=(0,j.b)(dH,[um,dD]),dq=um(),d$=dD(),[dY,dG]=dU(dH),dK=(0,b.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,name:r,"aria-labelledby":i,defaultValue:o,value:a,required:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=cQ(),p=dq(n),m=lO(u),[v,g]=(0,C.T)({prop:a,defaultProp:o,onChange:d});return(0,b.createElement)(dY,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,b.createElement)(uy,(0,E.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,b.createElement)(M.WV.div,(0,E.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),dX=(0,b.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=dG("RadioGroupItem",n),a=dq(n),s=d$(n),l=(0,b.useRef)(null),u=(0,k.e)(t,l),c=o.value===i.value,d=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=e=>{dB.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,b.createElement)(ub,(0,E.Z)({asChild:!0},a,{focusable:!r,active:c}),(0,b.createElement)(dV,(0,E.Z)({disabled:r,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:(0,O.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,O.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),dQ=(0,b.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=d$(n);return(0,b.createElement)(dz,(0,E.Z)({},i,r,{ref:t}))}),dJ=(0,ea.j)(["relative flex items-center h-full justify-center w-full",'after:content-[""] after:block after:rounded-full after:bg-green-600 after:dark:bg-green-500'],{variants:{size:{small:"after:w-2 after:h-2 ",medium:"after:w-4 after:h-4"}},defaultVariants:{size:"small"}}),d0=(0,ea.j)(["select-none","inline-flex items-center justify-center","m-0 p-0","outline-none","rounded-full","overflow-hidden","focus:ring ring-blue-500 dark:ring-blue-200","bg-white dark:bg-graydark-200","border border-gray-500 dark:border-graydark-400","enabled:hover:border-gray-700 enabled:hover:dark:border-graydark-600","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-400","disabled:bg-gray-200 disabled:dark:bg-graydark-200"],{variants:{size:{small:"w-4 h-4",medium:"w-6 h-6"}},defaultVariants:{size:"small"}}),d1=b.forwardRef((e,t)=>{let{size:n,className:r,children:i,...o}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(dX,{...o,className:d0({size:n,className:r}),ref:t,children:(0,x.jsx)(dQ,{className:dJ({size:n})})}),(0,x.jsx)(tq,{size:"14",className:"relative top-px flex items-center",color:o.disabled?"verySubtle":"subtle",children:i})]})}),d2=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(dK,{...r,className:(0,ea.cx)("flex gap-2",n),ref:t})});(0,ea.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",tW(),"tabular-nums","resize-y","rounded","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","placeholder:text-gray-600 placeholder:dark:text-graydark-500","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},cursor:{default:"",text:"cursor-text"}},defaultVariants:{size:"small",variant:"default",cursor:"default",state:"default"}});let d4=(0,ea.j)(["font-sans [type=number]:font-mono","outline-none m-0 p-0 w-full","disabled:pointer-events-none","tabular-nums","rounded","text-gray-1100 dark:text-white","autofill:text-fill-gray-1100 autofill:dark:text-fill-white","autofill:placeholder:text-fill-gray-700 autofill:placeholder:dark:text-fill-graydark-700","placeholder:text-gray-700 placeholder:dark:text-graydark-700","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-white autofill:dark:bg-graydark-50","autofill:shadow-fill-white autofill:dark:shadow-fill-graydark-50"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},focus:{default:["focus:ring ring-blue-500 dark:ring-blue-200","focus:z-10"],none:""},cursor:{default:"",text:"cursor-text"},noSpin:{true:"[&::-webkit-outer-spin-button, &::-webkit-inner-spin-button]:appearance-none"}},defaultVariants:{size:"small",focus:"default",variant:"default",cursor:"default",state:"default"}}),d3=b.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,x.jsx)("input",{ref:t,className:d4({variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -44,7 +44,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var d5=function(){return(d5=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1){if(e.includes(t)){var r=e.split(t),i=r[0],o=r[1];if(o.length>n)return""+i+t+o.slice(0,n)}var a=e.length>n?RegExp("(\\d+)(\\d{"+n+"})"):RegExp("(\\d)(\\d+)"),s=e.match(a);if(s){var i=s[1],o=s[2];return""+i+t+o}}return e},fi=function(e,t){var n=t.groupSeparator,r=t.decimalSeparator,i=RegExp("\\d([^"+d8(void 0===n?",":n)+d8(void 0===r?".":r)+"0-9]+)"),o=e.match(i);return o?o[1]:void 0},fo=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=RegExp("^\\d?-"+(a?d8(a)+"?":"")+"\\d").test(t),c="."!==n?fa(t,n,u):t,d=fs((r?new Intl.NumberFormat(r.locale,r.currency?{style:"currency",currency:r.currency,minimumFractionDigits:i||0,maximumFractionDigits:20}:void 0):new Intl.NumberFormat(void 0,{minimumFractionDigits:i||0,maximumFractionDigits:20})).formatToParts(Number(c)),e),f=fi(d,d5({},e)),h=t.slice(-1)===n?n:"",p=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return(void 0===i&&p&&n&&(d=d.includes(n)?d.replace(RegExp("(\\d+)("+d8(n)+")(\\d+)","g"),"$1$2"+p):f&&!l?d.replace(f,""+n+p+f):""+d+n+p),l&&h)?""+d+h+l:f&&h?d.replace(f,""+h+f):f&&l?d.replace(f,""+h+l):[d,h,l].join("")},fa=function(e,t,n){var r=e;return t&&"."!==t&&(r=r.replace(RegExp(d8(t),"g"),"."),n&&"-"===t&&(r="-"+r.slice(1))),r},fs=function(e,t){var n=t.prefix,r=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce(function(e,t,a){var l=t.type,u=t.value;return 0===a&&n?"minusSign"===l?[u,n]:"currency"===l?d6(d6([],e),[n]):[n,u]:"currency"===l?n?e:d6(d6([],e),[u]):"group"===l?s?e:d6(d6([],e),[void 0!==r?r:u]):"decimal"===l?void 0!==o&&0===o?e:d6(d6([],e),[void 0!==i?i:u]):"fraction"===l?d6(d6([],e),[void 0!==o?u.slice(0,o):u]):d6(d6([],e),[u])},[""]).join("")},fl={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},fu=function(e){var t=e||{},n=t.locale,r=t.currency;return(n?new Intl.NumberFormat(n,r?{currency:r,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce(function(e,t,n){return"currency"===t.type?0===n?d5(d5({},e),{currencySymbol:t.value,prefix:t.value}):d5(d5({},e),{currencySymbol:t.value,suffix:t.value}):"group"===t.type?d5(d5({},e),{groupSeparator:t.value}):"decimal"===t.type?d5(d5({},e),{decimalSeparator:t.value}):e},fl)},fc=function(e){return RegExp(/\d/,"gi").test(e)},fd=function(e,t,n){if(void 0===t&&(t="."),void 0===n||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var r=e.split(t),i=r[0],o=r[1];if(0===n)return i;var a=o||"";if(a.lengtht.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(O&&fc(O))throw Error("decimalSeparator cannot be a number");if(C&&fc(C))throw Error("groupSeparator cannot be a number");var L=(0,x.useMemo)(function(){return fu(b)},[b]),F=O||L.decimalSeparator||"",V=C||L.groupSeparator||"";if(F&&V&&F===V&&!1===_)throw Error("decimalSeparator cannot be the same as groupSeparator");var I={decimalSeparator:F,groupSeparator:V,disableGroupSeparators:_,intlConfig:b,prefix:g||L.prefix,suffix:y},z={decimalSeparator:F,groupSeparator:V,allowDecimals:void 0===n||n,decimalsLimit:l||p||2,allowNegativeValue:void 0===r||r,disableAbbreviations:void 0!==S&&S,prefix:g||L.prefix,transformRawValue:R},Z=null!=u?fo(d5(d5({},I),{decimalScale:v,value:String(u)})):null!=f?fo(d5(d5({},I),{decimalScale:v,value:String(f)})):"",B=(0,x.useState)(Z),H=B[0],U=B[1],W=(0,x.useState)(!1),q=W[0],$=W[1],Y=(0,x.useState)(0),G=Y[0],K=Y[1],X=(0,x.useState)(0),Q=X[0],J=X[1],ee=(0,x.useState)(null),et=ee[0],en=ee[1],er=t||(0,x.useRef)(null),ei=function(e,t){$(!0);var n=ff({selectionStart:t,value:e,lastKeyStroke:et,stateValue:H,groupSeparator:V}),r=n.modifiedValue,i=n.cursorPosition,a=fn(d5({value:r},z));if(!d||!(a.replace(/-/g,"").length>d)){if(""===a||"-"===a||a===F){h&&h(void 0,o,{float:null,formatted:"",value:""}),U(a);return}var s=parseFloat(a.replace(F,".")),l=fo(d5({value:a},I));if(null!=i){var u=i+(l.length-e.length);K(u=u<=0?g?g.length:0:u),J(Q+1)}U(l),h&&h(a,o,{float:s,formatted:l,value:a})}};(0,x.useEffect)(function(){q&&"-"!==H&&er&&"object"==typeof er&&er.current&&er.current.setSelectionRange(G,G)},[H,G,er,q,Q]);var eo=d5({type:"text",inputMode:"decimal",id:i,name:o,className:a,onChange:function(e){var t=e.target;ei(t.value,t.selectionStart),M&&M(e)},onBlur:function(e){var t=e.target.value,n=fn(d5({value:t},z));if("-"===n||!n){U(""),P&&P(e);return}var r=fd(fr(n,F,p),F,void 0!==v?v:p),i=parseFloat(r.replace(F,".")),a=fo(d5(d5({},I),{value:r}));h&&h(r,o,{float:i,formatted:a,value:r}),U(a),P&&P(e)},onFocus:function(e){return A&&A(e),H?H.length:0},onKeyDown:function(e){var t=e.key;if(en(t),w&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),K(H.length);var n=parseFloat(null!=f?String(f).replace(F,"."):fn(d5({value:H},z)))||0,r="ArrowUp"===t?n+w:n-w;if(void 0!==E&&rk)return;var i=String(w).includes(".")?Number(String(w).split(".")[1].length):void 0;ei(String(i?r.toFixed(i):r).replace(".",F))}T&&T(e)},onKeyUp:function(e){var t=e.key,n=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==H){var r=fi(H,{groupSeparator:V,decimalSeparator:F});if(r&&n&&n>H.length-r.length&&er&&"object"==typeof er&&er.current){var i=H.length-r.length;er.current.setSelectionRange(i,i)}}N&&N(e)},placeholder:m,disabled:void 0!==c&&c,value:null==f||"-"===H||F&&H===F?H:fo(d5(d5({},I),{decimalScale:q?void 0:v,value:String(f)})),ref:er},D);return s?x.createElement(s,d5({},eo)):x.createElement("input",d5({},eo))});function fp(e){let{units:t,variant:n,size:r="small",state:i,noSpin:o,focus:a,cursor:s,className:l,decimalsLimit:u,onValueChange:c,...d}=e,[f,h]=(0,x.useState)();return(0,x.useEffect)(()=>{h(navigator.language)},[]),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(fh,{...d,decimalsLimit:u,intlConfig:f?{locale:f}:void 0,allowDecimals:!!u,autoComplete:"off",spellCheck:!1,onValueChange:c,className:(0,ea.cx)(d4({variant:n,size:r,state:i,focus:a,noSpin:o,cursor:s,className:l}),t?"pr-9":"")}),t&&(0,b.jsx)("div",{className:(0,ea.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,b.jsx)(tq,{size:"12",weight:"medium",color:"subtle",children:t})})]})}fh.displayName="CurrencyInput";var fm=n(6391),fv=n.n(fm);function fg(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}let fy=(0,x.forwardRef)(function(e,t){let{value:n,placeholder:r=new(fv())(100),decimalsLimit:i=6,onChange:o,size:a="small",units:s,error:l,changed:u,onBlur:c,onFocus:d,...f}=e,h=(0,x.useMemo)(()=>new(fv())(n),[n]),[p,m]=(0,x.useState)(""),v=(0,x.useMemo)(()=>fb(p),[p]),g=(0,x.useCallback)(e=>{o&&o((e=fb(e))&&!isNaN(Number(e))?new(fv())(e):void 0)},[o]),y=(0,x.useCallback)(e=>{m(e),g(e)},[m,g]);return(0,x.useEffect)(()=>{if(!h.isEqualTo(v)){let e=fg(h,i);m(e)}},[h]),(0,b.jsx)(fp,{ref:t,...f,"data-testid":"numberfield",size:a,placeholder:r.isNaN()?"":r.toFixed(i),units:s,value:"NaN"!==p?p:"",decimalsLimit:i,onBlur:e=>{c&&c(e)},onFocus:e=>{d&&d(e)},onValueChange:e=>y(e||"")})});function fb(e){return(null==e?void 0:e.replace(/,/g,"."))||""}var fx=n(2850);n(98537);let fw=new(fv())(0),fE=(0,x.forwardRef)(function(e,t){let{sc:n,placeholder:r=new(fv())(100),decimalsLimitFiat:i=6,decimalsLimitSc:o=6,onChange:a,size:s="medium",units:l="SC",showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,...m}=e,v=(0,x.useMemo)(()=>new(fv())(void 0===n?NaN:n),[n]),{settings:g}=(0,fx.Hv)(),y=function(e){let{settings:t}=(0,fx.Hv)();return(0,fx.Nf)({api:"https://api.siacentral.com/v2",...e,route:"/market/exchange-rate?currencies=sc",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}({config:{swr:{revalidateOnFocus:!1}}}),w=(0,x.useMemo)(()=>{var e;return g.siaCentral&&y.data?new(fv())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||fw):fw},[y.data,g]),[E,k]=(0,x.useState)(),[j,_]=(0,x.useState)(""),[S,O]=(0,x.useState)(""),C=(0,x.useMemo)(()=>fk(j),[j]),M=(0,x.useMemo)(()=>fk(S),[S]),A=(0,x.useCallback)(e=>{a&&a((e=fk(e))&&!isNaN(Number(e))?new(fv())(e):void 0)},[a]),P=(0,x.useCallback)(e=>{let t=fg(e,i);O(t)},[O,i]),T=(0,x.useCallback)(e=>{let t=fg(e,o);return _(t),A(t),t},[_,o,A]),N=(0,x.useCallback)(e=>{_(e),A(e)},[_,A]),R=(0,x.useCallback)(e=>{let t=new(fv())(e).times(w);P(t)},[P,w]),D=(0,x.useCallback)(e=>{let t=new(fv())(e).dividedBy(w);T(t)},[T,w]),[L,F]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{if(!v.isEqualTo(C)){let e=fg(v,o);_(e),"fiat"!==E&&R(e)}L||F(!0)},[v]),(0,x.useEffect)(()=>{L&&R(C)},[w]),(0,x.useEffect)(()=>{"sc"===E&&R(C)},[C]),(0,x.useEffect)(()=>{"fiat"===E&&D(M)},[M]),(0,b.jsxs)("div",{ref:t,className:(0,ea.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,b.jsx)(fp,{...m,"data-testid":"scInput",size:s,variant:"ghost",focus:"none",placeholder:r.toFixed(o),units:l,value:"NaN"!==j?j:"",decimalsLimit:o,allowNegativeValue:!1,onBlur:e=>{k(void 0),h&&h(e)},onFocus:e=>{k("sc"),p&&p(e)},onValueChange:e=>{N(e||"")}}),u&&g.siaCentral&&(0,b.jsx)(fp,{...m,"data-testid":"fiatInput",size:s,variant:"ghost",focus:"none",value:"NaN"!==S?S:"",units:g.currency.label,decimalsLimit:i,allowNegativeValue:!1,placeholder:"".concat(g.currency.prefix).concat(w?w.times(r).toFixed(i):"0.42"),prefix:f||g.currency.prefix,onFocus:e=>{k("fiat"),p&&p(e)},onBlur:e=>{k(void 0),h&&h(e)},onValueChange:e=>{O(e||"")}})]})});function fk(e){return(null==e?void 0:e.replace(/,/g,"."))||""}function fj(e){let{children:t}=e;return(0,b.jsx)(s7,{content:t,children:(0,b.jsx)("div",{className:"relative flex items-center inline mx-1",children:(0,b.jsx)(tq,{color:"subtle",children:(0,b.jsx)(lt.RdX,{className:"scale-75"})})})})}function f_(e){let{values:t,options:n,onChange:r}=e;return(0,b.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,b.jsx)(le,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}let fS=(0,ea.j)(["font-sans","font-normal","tabular-nums","flex-shrink-0","rounded","flex items-center","bg-white dark:bg-graydark-200","hover:bg-gray-50 dark:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","autofill:bg-blue-100 autofill:dark:bg-blue-800","border","focus-within:z-10","focus-within:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","[&>select:disabled]:text-gray-600 [&>select:disabled]:dark:text-graydark-700"],{variants:{size:{small:"h-7 text-sm px-1",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{state:"default",size:"small"}}),fO=x.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:o,...a}=e;return(0,b.jsxs)("div",{className:fS({size:n,state:r,className:o}),children:[i,(0,b.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,b.jsx)(lt.Cp0,{className:"pointer-events-none scale-75"})]})}),fC=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,b.jsx)("option",{ref:t,...r,className:(0,ea.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),fM=(0,ea.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function fA(e){let{className:t}=e;return(0,b.jsx)("div",{className:fM({className:t})})}let fP=(0,ea.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),fT=x.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,b.jsx)("div",{ref:t,className:fP({size:n,className:r}),...i})}),fN="Switch",[fR,fD]=(0,k.b)(fN),[fL,fF]=fR(fN),fV=(0,x.forwardRef)((e,t)=>{let{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:o,defaultChecked:a,required:s,disabled:l,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,x.useState)(null),p=(0,j.e)(t,e=>h(e)),m=cQ(f),v=(0,x.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,b]=(0,C.T)({prop:o,defaultProp:a,onChange:c});return(0,x.createElement)(fL,{scope:n,checked:y,disabled:l},(0,x.createElement)(M.WV.button,(0,E.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":fZ(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,O.M)(e.onClick,e=>{b(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,x.createElement)(fz,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),fI=(0,x.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=fF("SwitchThumb",n);return(0,x.createElement)(M.WV.span,(0,E.Z)({"data-state":fZ(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),fz=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,x.useRef)(null),a=dT(n),s=tt(t);return(0,x.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,x.createElement)("input",(0,E.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function fZ(e){return e?"checked":"unchecked"}let fB=(0,ea.j)(["absolute left-0 rounded-full","transition-transform","bg-white dark:bg-graydark-500"],{variants:{size:{small:["w-3 h-3","translate-x-px","data-[state=checked]:translate-x-[9px]"],medium:["w-5 h-5","translate-x-0.5","data-[state=checked]:translate-x-[20px]"]}},defaultVariants:{size:"small"}}),fH=(0,ea.j)(["select-none outline-none","relative inline-flex items-center justify-center","m-0 rounded-full","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-6 h-4",medium:"w-11 h-6"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{size:"small",state:"default"}}),fU=(0,x.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:o,...a}=e;return(0,b.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,b.jsx)(fV,{className:fH({size:n,state:r,className:i}),...a,ref:t,children:(0,b.jsx)(fI,{className:fB({size:n})})}),o&&(0,b.jsx)(tq,{color:a.disabled?"subtle":"contrast",children:o})]})}),fW=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e,i=x.Children.toArray(n),o=i.find(fY);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:x.Children.count(e)>1?x.Children.only(null):(0,x.isValidElement)(e)?e.props.children:null);return(0,x.createElement)(fq,(0,E.Z)({},r,{ref:t}),(0,x.isValidElement)(e)?(0,x.cloneElement)(e,void 0,n):null)}return(0,x.createElement)(fq,(0,E.Z)({},r,{ref:t}),n)});fW.displayName="Slot";let fq=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,x.isValidElement)(n)?(0,x.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,j.F)(t,n.ref)}):x.Children.count(n)>1?x.Children.only(null):null});fq.displayName="SlotClone";let f$=({children:e})=>(0,x.createElement)(x.Fragment,null,e);function fY(e){return(0,x.isValidElement)(e)&&e.type===f$}let fG=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,x.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?fW:t;return(0,x.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,x.createElement)(o,(0,E.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),fK=(0,x.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,x.createElement)(fG.svg,(0,E.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,x.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),fX="Popper",[fQ,fJ]=(0,k.b)(fX),[f0,f1]=fQ(fX),f2=(0,x.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=f1("PopperAnchor",n),a=(0,x.useRef)(null),s=(0,j.e)(t,a);return(0,x.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,x.createElement)(fG.div,(0,E.Z)({},i,{ref:s}))}),f4="PopperContent",[f3,f5]=fQ(f4),[f6,f8]=fQ(f4,{hasParent:!1,positionUpdateFns:new Set}),f7=(0,x.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,avoidCollisions:E=!0,onPlaced:k,..._}=e,S=f1(f4,d),[O,C]=(0,x.useState)(null),M=(0,j.e)(t,e=>C(e)),[P,T]=(0,x.useState)(null),N=tt(P),R=null!==(n=null==N?void 0:N.width)&&void 0!==n?n:0,D=null!==(r=null==N?void 0:N.height)&&void 0!==r?r:0,L="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},F=Array.isArray(g)?g:[g],V=F.length>0,I={padding:L,boundary:F.filter(ht),altBoundary:V},{reference:z,floating:Z,strategy:B,x:H,y:U,placement:W,middlewareData:q,update:$}=e7({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:e3,middleware:[hn(),eM({mainAxis:h+D,alignmentAxis:m}),E?eP({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?eT():void 0,...I}):void 0,P?e9({element:P,padding:v}):void 0,E?e_({...I}):void 0,{name:"size",options:c={...I,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},async fn(e){let t,n;let{placement:r,rects:i,platform:o,elements:a}=e,{apply:s,...l}=c,u=await ev(e,l),d=el(r),f=eu(r);"top"===d||"bottom"===d?(t=d,n=f===(await (null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let h=ey(u.left,0),p=ey(u.right,0),m=ey(u.top,0),v=ey(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:ey(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:ey(u.left,u.right)):u[n])},y=await o.getDimensions(a.floating);null==s||s({...e,...g});let b=await o.getDimensions(a.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}},hr({arrowWidth:R,arrowHeight:D}),w?eC({strategy:"referenceHidden"}):void 0].filter(he)});(0,A.b)(()=>{z(S.anchor)},[z,S.anchor]);let Y=null!==H&&null!==U,[G,K]=hi(W),X=(0,li.W)(k);(0,A.b)(()=>{Y&&(null==X||X())},[Y,X]);let Q=null===(i=q.arrow)||void 0===i?void 0:i.x,J=null===(o=q.arrow)||void 0===o?void 0:o.y,ee=(null===(a=q.arrow)||void 0===a?void 0:a.centerOffset)!==0,[et,en]=(0,x.useState)();(0,A.b)(()=>{O&&en(window.getComputedStyle(O).zIndex)},[O]);let{hasParent:er,positionUpdateFns:ei}=f8(f4,d),eo=!er;(0,x.useLayoutEffect)(()=>{if(!eo)return ei.add($),()=>{ei.delete($)}},[eo,ei,$]),(0,A.b)(()=>{eo&&Y&&Array.from(ei).reverse().forEach(e=>requestAnimationFrame(e))},[eo,Y,ei]);let ea={"data-side":G,"data-align":K,..._,ref:M,style:{..._.style,animation:Y?void 0:"none",opacity:null!==(s=q.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,x.createElement)("div",{ref:Z,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:Y?`translate3d(${Math.round(H)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(l=q.transformOrigin)||void 0===l?void 0:l.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,x.createElement)(f3,{scope:d,placedSide:G,onArrowChange:T,arrowX:Q,arrowY:J,shouldHideArrow:ee},eo?(0,x.createElement)(f6,{scope:d,hasParent:!0,positionUpdateFns:ei},(0,x.createElement)(fG.div,ea)):(0,x.createElement)(fG.div,ea)))}),f9={top:"bottom",right:"left",bottom:"top",left:"right"};function he(e){return void 0!==e}function ht(e){return null!==e}let hn=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:n}=e,{width:r,height:i}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),hr=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=hi(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function hi(e){let[t,n="center"]=e.split("-");return[t,n]}let ho=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,x.useState)(null);return(0,x.createElement)(f0,{scope:t,anchor:r,onAnchorChange:i},n)},ha=(0,x.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return r?e6.createPortal((0,x.createElement)(fG.div,(0,E.Z)({},i,{ref:t})),r):null}),hs="dismissableLayer.update",hl=(0,x.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hu=(0,x.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,x.useContext)(hl),[f,h]=(0,x.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,x.useState)({}),v=(0,j.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),w=f?g.indexOf(f):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,_=w>=b,S=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,li.W)(e),r=(0,x.useRef)(!1),i=(0,x.useRef)(()=>{});return(0,x.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hd("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!_||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),C=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,li.W)(e),r=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hd("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,li.W)(e);(0,x.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=w===d.layers.size-1;t&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,x.useEffect)(()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),hc(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,x.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hc())},[f,d]),(0,x.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hs,e),()=>document.removeEventListener(hs,e)},[]),(0,x.createElement)(fG.div,(0,E.Z)({},c,{ref:v,style:{pointerEvents:k?_?"auto":"none":void 0,...e.style},onFocusCapture:(0,O.M)(e.onFocusCapture,C.onFocusCapture),onBlurCapture:(0,O.M)(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:(0,O.M)(e.onPointerDownCapture,S.onPointerDownCapture)}))});function hc(){let e=new CustomEvent(hs);document.dispatchEvent(e)}function hd(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&(0,e6.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let hf="HoverCard",[hh,hp]=(0,k.b)(hf,[fJ]),hm=fJ(),[hv,hg]=hh(hf),hy=(0,x.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=hg("HoverCardTrigger",n),o=hm(n);return(0,x.createElement)(f2,(0,E.Z)({asChild:!0},o),(0,x.createElement)(fG.a,(0,E.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,O.M)(e.onPointerEnter,h_(i.onOpen)),onPointerLeave:(0,O.M)(e.onPointerLeave,h_(i.onClose)),onFocus:(0,O.M)(e.onFocus,i.onOpen),onBlur:(0,O.M)(e.onBlur,i.onClose),onTouchStart:(0,O.M)(e.onTouchStart,e=>e.preventDefault())})))}),hb="HoverCardPortal",[hx,hw]=hh(hb,{forceMount:void 0}),hE="HoverCardContent",hk=(0,x.forwardRef)((e,t)=>{let n=hw(hE,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,o=hg(hE,e.__scopeHoverCard);return(0,x.createElement)(P.z,{present:r||o.open},(0,x.createElement)(hj,(0,E.Z)({"data-state":o.open?"open":"closed"},i,{onPointerEnter:(0,O.M)(e.onPointerEnter,h_(o.onOpen)),onPointerLeave:(0,O.M)(e.onPointerLeave,h_(o.onClose)),ref:t})))}),hj=(0,x.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...l}=e,u=hg(hE,n),c=hm(n),d=(0,x.useRef)(null),f=(0,j.e)(t,d),[h,p]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{if(h){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[h]),(0,x.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(u.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}},[u.isPointerDownOnContentRef,u.hasSelectionRef]),(0,x.useEffect)(()=>{if(d.current){let e=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}(d.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,x.createElement)(hu,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:(0,O.M)(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,x.createElement)(f7,(0,E.Z)({},c,l,{onPointerDown:(0,O.M)(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:f,style:{...l.style,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)",userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0}})))});function h_(e){return t=>"touch"===t.pointerType?void 0:e()}let hS=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=hm(t),u=(0,x.useRef)(0),c=(0,x.useRef)(0),d=(0,x.useRef)(!1),f=(0,x.useRef)(!1),[h=!1,p]=(0,C.T)({prop:r,defaultProp:i,onChange:o}),m=(0,x.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,x.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,x.useCallback)(()=>p(!1),[p]);return(0,x.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,x.createElement)(hv,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,x.createElement)(ho,l,n))},hO=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=hg(hb,t);return(0,x.createElement)(hx,{scope:t,forceMount:n},(0,x.createElement)(P.z,{present:n||o.open},(0,x.createElement)(ha,{asChild:!0,container:i},r)))},hC=(0,ea.j)([s6,"relative","z-10","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),hM=(0,ea.cx)(tY(),"max-w-sm","py-0.5","px-1"),hA={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},hP=x.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=s1({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,b.jsxs)(hS,{open:l,onOpenChange:u,...i,children:[n&&(0,b.jsx)(hy,{asChild:!0,children:n}),(0,b.jsx)(ny,{children:l?(0,b.jsx)(hO,{forceMount:!0,children:(0,b.jsx)(hk,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,b.jsx)(s0.div,{variants:hA,initial:"init",animate:"show",exit:"exit",className:hC(),children:(0,b.jsx)("div",{className:(0,ea.cx)(hM,a),children:r})})})}):null})]})});function hT(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,x.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,x.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,x.createContext)(r),o=n.length;function a(t){let{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][o])||i,l=(0,x.useMemo)(()=>a,Object.values(a));return(0,x.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){let s=(null==a?void 0:a[e][o])||i,l=(0,x.useContext)(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,x.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function hN(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function hR(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function hD(...e){return(0,x.useCallback)(hR(...e),e)}let hL=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e,i=x.Children.toArray(n),o=i.find(hI);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:x.Children.count(e)>1?x.Children.only(null):(0,x.isValidElement)(e)?e.props.children:null);return(0,x.createElement)(hF,(0,E.Z)({},r,{ref:t}),(0,x.isValidElement)(e)?(0,x.cloneElement)(e,void 0,n):null)}return(0,x.createElement)(hF,(0,E.Z)({},r,{ref:t}),n)});hL.displayName="Slot";let hF=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,x.isValidElement)(n)?(0,x.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?hR(t,n.ref):n.ref}):x.Children.count(n)>1?x.Children.only(null):null});hF.displayName="SlotClone";let hV=({children:e})=>(0,x.createElement)(x.Fragment,null,e);function hI(e){return(0,x.isValidElement)(e)&&e.type===hV}let hz=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,x.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?hL:t;return(0,x.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,x.createElement)(o,(0,E.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function hZ(e){let t=(0,x.useRef)(e);return(0,x.useEffect)(()=>{t.current=e}),(0,x.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let hB=(null==globalThis?void 0:globalThis.document)?x.useLayoutEffect:()=>{},hH=e=>{let{present:t,children:n}=e,r=function(e){var t;let[n,r]=(0,x.useState)(),i=(0,x.useRef)({}),o=(0,x.useRef)(e),a=(0,x.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,x.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},s));return(0,x.useEffect)(()=>{let e=hU(i.current);a.current="mounted"===l?e:"none"},[l]),hB(()=>{let t=i.current,n=o.current,r=n!==e;if(r){let r=a.current,i=hU(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),hB(()=>{if(n){let e=e=>{let t=hU(i.current),r=t.includes(e.animationName);e.target===n&&r&&(0,e6.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=hU(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,x.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),r(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):x.Children.only(n),o=hD(r.ref,i.ref),a="function"==typeof n;return a||r.isPresent?(0,x.cloneElement)(i,{ref:o}):null};function hU(e){return(null==e?void 0:e.animationName)||"none"}hH.displayName="Presence";let hW=w["useId".toString()]||(()=>void 0),hq=0;function h$(e){let t=e+"CollectionProvider",[n,r]=hT(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=x.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=hD(t,i.collectionRef);return x.createElement(hL,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=x.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=x.useRef(null),s=hD(t,a),c=o(l,n);return x.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),x.createElement(hL,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=x.useRef(null),o=x.useRef(new Map).current;return x.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=x.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}let hY="dismissableLayer.update",hG=(0,x.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hK=(0,x.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,x.useContext)(hG),[f,h]=(0,x.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,x.useState)({}),v=hD(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),w=f?g.indexOf(f):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,j=w>=b,_=function(e,t=null==globalThis?void 0:globalThis.document){let n=hZ(e),r=(0,x.useRef)(!1),i=(0,x.useRef)(()=>{});return(0,x.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hQ("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!j||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),S=function(e,t=null==globalThis?void 0:globalThis.document){let n=hZ(e),r=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hQ("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=hZ(e);(0,x.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=w===d.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,x.useEffect)(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(o=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),hX(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=o)}},[f,p,r,d]),(0,x.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hX())},[f,d]),(0,x.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hY,e),()=>document.removeEventListener(hY,e)},[]),(0,x.createElement)(hz.div,(0,E.Z)({},c,{ref:v,style:{pointerEvents:k?j?"auto":"none":void 0,...e.style},onFocusCapture:hN(e.onFocusCapture,S.onFocusCapture),onBlurCapture:hN(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:hN(e.onPointerDownCapture,_.onPointerDownCapture)}))});function hX(){let e=new CustomEvent(hY);document.dispatchEvent(e)}function hQ(e,t,n,{discrete:r}){var i,o;let a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?(i=a,o=s,i&&(0,e6.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,x.createElement)(hz.span,(0,E.Z)({},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}}));let hJ="NavigationMenu",[h0,h1,h2]=h$(hJ),[h4,h3,h5]=h$(hJ),[h6,h8]=hT(hJ,[h2,h5]),[h7,h9]=h6(hJ),[pe,pt]=h6(hJ),[pn,pr]=h6("NavigationMenuItem"),pi=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=h9("NavigationMenuIndicator",n),o=h1(n),[a,s]=(0,x.useState)(null),[l,u]=(0,x.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,x.useEffect)(()=>{var e;let t=o(),n=null===(e=t.find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;n&&s(n)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return pc(a,f),pc(i.indicatorTrack,f),l?(0,x.createElement)(hz.div,(0,E.Z)({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null},"NavigationMenuContent"),po=((e,t)=>{let n=h9(pi,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:i}=n;return hB(()=>{r(e.value,{ref:t,...e})},[e,t,r]),hB(()=>()=>i(e.value),[e.value,i]),null},"navigationMenu.rootContentDismiss"),pa=(0,x.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=h9(pi,n),d=(0,x.useRef)(null),f=hD(d,t),h=function(e,t){return`${e}-trigger-${t}`}(c.baseId,r),p=function(e,t){return`${e}-content-${t}`}(c.baseId,r),m=h1(n),v=(0,x.useRef)(null),{onItemDismiss:g}=c;(0,x.useEffect)(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{var t;g(),s(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(po,t),()=>e.removeEventListener(po,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,x.useMemo)(()=>{let e=m(),t=e.map(e=>e.value);"rtl"===c.dir&&t.reverse();let n=t.indexOf(c.value),i=t.indexOf(c.previousValue),o=r===c.value,a=i===t.indexOf(r);if(!o&&!a)return v.current;let s=(()=>{if(n!==i){if(o&&-1!==i)return n>i?"from-end":"from-start";if(a&&-1!==n)return n>i?"to-start":"to-end"}return null})();return v.current=s,s},[c.previousValue,c.value,c.dir,m,r]);return(0,x.createElement)(ps,{asChild:!0},(0,x.createElement)(hK,(0,E.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(po,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:hN(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:hN(e.onPointerDownOutside,e=>{var t;let n=e.target,r=m().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),i=c.isRootMenu&&(null===(t=c.viewport)||void 0===t?void 0:t.contains(n));(r||i||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:hN(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey,n="Tab"===e.key&&!t;if(n){let t=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(e.currentTarget),n=document.activeElement,i=t.findIndex(e=>e===n),a=e.shiftKey,s=a?t.slice(0,i).reverse():t.slice(i+1,t.length);if(pu(s))e.preventDefault();else{var r;null===(r=o.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:hN(e.onEscapeKeyDown,e=>{a.current=!0})})))}),ps=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,o=h9("NavigationMenuViewport",n),a=hD(t,o.onViewportChange),s=pt(pi,e.__scopeNavigationMenu),[l,u]=(0,x.useState)(null),[c,d]=(0,x.useState)(null),f=l?(null==l?void 0:l.width)+"px":void 0,h=l?(null==l?void 0:l.height)+"px":void 0,p=!!o.value,m=p?o.value:o.previousValue;return pc(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,x.createElement)(hz.div,(0,E.Z)({"data-state":function(e){return e?"open":"closed"}(p),"data-orientation":o.orientation},i,{ref:a,style:{pointerEvents:!p&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:hN(e.onPointerEnter,o.onContentEnter),onPointerLeave:hN(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(o.onContentLeave))}),Array.from(s.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,x.createElement)(hH,{key:e,present:n||i},(0,x.createElement)(pa,(0,E.Z)({},r,{ref:hR(t,e=>{i&&e&&d(e)})})))}))},(0,x.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=h9("FocusGroup",n);return(0,x.createElement)(h4.Provider,{scope:n},(0,x.createElement)(h4.Slot,{scope:n},(0,x.createElement)(hz.div,(0,E.Z)({dir:i.dir},r,{ref:t}))))})),pl=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=h3(n),o=h9("FocusGroupItem",n);return(0,x.createElement)(h4.ItemSlot,{scope:n},(0,x.createElement)(hz.button,(0,E.Z)({},r,{ref:t,onKeyDown:hN(e.onKeyDown,e=>{let t=["Home","End",...pl].includes(e.key);if(t){let t=i().map(e=>e.ref.current),n="rtl"===o.dir?"ArrowRight":"ArrowLeft";if([n,"ArrowUp","End"].includes(e.key)&&t.reverse(),pl.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>pu(t)),e.preventDefault()}})})))};function pu(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function pc(e,t){let n=hZ(t);hB(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var pd=n(38617);let pf=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,b.jsx)(dX,{...r,ref:t,className:(0,ea.cx)("select-none flex items-center rounded cursor-pointer","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-700 dark:text-graydark-700","data-[state=checked]:text-gray-1100 data-[state=checked]:dark:text-white",n)})});function ph(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:o}=(0,pd.F)();return(0,b.jsxs)(dK,{value:i,tabIndex:r,className:(0,ea.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,b.jsx)(pf,{value:"system",children:(0,b.jsx)(s7,{className:n,sideOffset:16,content:"System",children:(0,b.jsx)(lt.$Iz,{})})}),(0,b.jsx)(pf,{value:"light",children:(0,b.jsx)(s7,{className:n,sideOffset:16,content:"Light",children:(0,b.jsx)(lt.JaG,{})})}),(0,b.jsx)(pf,{value:"dark",children:(0,b.jsx)(s7,{className:n,sideOffset:16,content:"Dark",children:(0,b.jsx)(lt.osk,{})})})]})}var pp=n(14582),pm=n(63739),pv=n(13980),pg=n.n(pv),py=n(72779),pb=n.n(py),px=n(47440),pw=n(59309),pE=n(19067),pk=n(71220),pj=n(28142);function p_(e){return"bandwidth"in e?e.bandwidth():0}var pS=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function pO(){return(pO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pS),g=null!=m?m:(0,pk.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+p_(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,pj.Z)(r(e)))?n:0)+y;return{index:t,from:new pE.Z({x:0,y:o}),to:new pE.Z({x:i,y:o})}});return x.createElement(pw.Z,{className:pb()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return x.createElement(px.default,pO({key:"row-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}pC.propTypes={tickValues:pg().array,width:pg().number.isRequired};var pM=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function pA(){return(pA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pM),g=null!=p?p:(0,pk.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+p_(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,pj.Z)(r(e)))?n:0)+y;return{index:t,from:new pE.Z({x:o,y:0}),to:new pE.Z({x:o,y:i})}});return x.createElement(pw.Z,{className:pb()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return x.createElement(px.default,pA({key:"column-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}pP.propTypes={tickValues:pg().array,height:pg().number.isRequired};var pT=n(64183),pN=n(8597);function pR(e){var t=e.id,n=e.width,r=e.height,i=e.children;return x.createElement("defs",null,x.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}pR.propTypes={id:pg().string.isRequired,width:pg().number.isRequired,height:pg().number.isRequired,children:pg().node.isRequired};var pD={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function pL(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,o=e.strokeWidth,a=e.strokeDasharray,s=e.strokeLinecap,l=void 0===s?"square":s,u=e.shapeRendering,c=void 0===u?"auto":u,d=e.orientation,f=void 0===d?["vertical"]:d,h=e.background,p=e.className,m=Array.isArray(f)?f:[f];return x.createElement(pR,{id:t,width:n,height:r},!!h&&x.createElement("rect",{className:pb()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return x.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:pb()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case pD.horizontal:return"M 0,"+t/2+" l "+t+",0";case pD.diagonal:return"M 0,"+t+" l "+t+","+-t+" M "+-t/4+","+t/4+" l "+t/2+","+-t/2+"\n M "+3/4*t+","+5/4*t+" l "+t/2+","+-t/2;case pD.diagonalRightToLeft:return"M 0,0 l "+t+","+t+"\n M "+-t/4+","+3/4*t+" l "+t/2+","+t/2+"\n M "+3/4*t+","+-t/4+" l "+t/2+","+t/2;case pD.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}pL.propTypes={id:pg().string.isRequired,width:pg().number.isRequired,height:pg().number.isRequired,className:pg().string,background:pg().string,stroke:pg().string,strokeWidth:pg().oneOfType([pg().number,pg().string]),strokeDasharray:pg().oneOfType([pg().string,pg().number]),strokeLinecap:pg().oneOf(["square","butt","round","inherit"]),shapeRendering:pg().oneOfType([pg().string,pg().number]),orientation:pg().array};var pF=["tooltipOpen"];function pV(){return(pV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pI);return x.createElement("div",pz({ref:t,className:pb()("visx-tooltip",n),style:pz({top:null==r||null==l?r:r+l,left:null==i||null==a?i:i+a},m&&{position:"absolute"},!h&&c)},v),d)});function pH(){return(pH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pY),g=!1,y=!1;if(u&&l){var b=void 0===r?0:r,w=void 0===f?0:f;if(l.width){var E=b+o+u.width-l.width,k=u.width-b-o;g=E>0&&E>k}else{var j=b+o+u.width-window.innerWidth,_=u.width-b-o;g=j>0&&j>_}if(l.height){var S=w+s+u.height-l.height,O=u.height-w-s;y=S>0&&S>O}else y=w+s+u.height>window.innerHeight;b=g?b-u.width-o:b+o,w=y?w-u.height-s:w+s,t="translate("+(b=Math.round(b))+"px, "+(w=Math.round(w))+"px)"}return x.createElement(pB,pG({ref:m,style:pG({left:0,top:0,transform:t},!p&&d)},v),x.createElement(p$,{value:{isFlippedVertically:!y,isFlippedHorizontally:!g}},n))}pK.propTypes={nodeRef:pg().oneOfType([pg().string,pg().func,pg().object])};var pX=((EH=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=x.createRef(),n.getRects=n.getRects.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,pU(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:e6.findDOMNode(this),this.setState(function(){return t.getRects()})},n.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():pW,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():pW}},n.render=function(){return x.createElement(pK,pH({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(x.PureComponent)).displayName="withBoundingRects("+(pK.displayName||"")+")",EH),pQ=n(99985);function pJ(e,t){if("invert"in e&&void 0!==e.invert)return e.invert(t).valueOf();var n=e.range(),r=n[0],i=n[1],o=0,a=("step"in e&&void 0!==e.step?e.step():1)*(i-r)/Math.abs(i-r);if(a>0)for(;t>r+a*(o+1);)o+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-a):Math.max(e.dx,t.bounds.x0-r),u=e.dy>0?Math.min(e.dy,t.bounds.y1-s):Math.max(e.dy,t.bounds.y0-i);return p7({},t,{isBrushing:!0,extent:p7({},t.extent,{x0:r+l,x1:a+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=p7({},e,{isBrushing:!1,start:p7({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:p7({},e.end,{x:Math.max(e.extent.x0,e.extent.x1),y:Math.max(e.extent.y0,e.extent.y1)})});return r&&r(t),t}),i&&i()},t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,p9(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.stageWidth,i=e.stageHeight,o=e.brush,a=e.disableDraggingSelection,s=e.onMouseLeave,l=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return x.createElement(pQ.Z,{width:t,height:n,resetOnStart:!0,onDragStart:this.selectionDragStart,onDragMove:this.selectionDragMove,onDragEnd:this.selectionDragEnd,isDragging:f?h:void 0},function(e){var h=e.isDragging,p=e.dragStart,m=e.dragEnd,v=e.dragMove;return x.createElement("g",null,h&&x.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:me}),x.createElement("rect",p7({x:Math.min(o.extent.x0,o.extent.x1),y:Math.min(o.extent.y0,o.extent.y1),width:t,height:n,className:"visx-brush-selection",onPointerDown:a?void 0:p,onPointerLeave:function(e){s&&s(e)},onPointerMove:function(e){v(e),l&&l(e)},onPointerUp:function(e){f||m(e),u&&u(e)},onClick:function(e){c&&c(e)},style:{pointerEvents:o.isBrushing||o.activeHandle?"none":"all",cursor:a?void 0:"move"}},d)))})},t}(x.Component);function mn(){return(mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(l,e.bounds.x1-o):Math.max(l,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-a):Math.max(u,e.bounds.y0-r);return mn({},e,{isBrushing:!0,extent:mn({},e.extent,{x0:n+s,y0:r+c,x1:o+s,y1:a+c})})}),"select"===i&&n.updateBrush(function(e){var t=e.start,r=t.x,i=t.y,o={x:Math.min(Math.max(r+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},a=n.getExtent(s,o);return mn({},e,{end:o,extent:a})})}},n.getExtent=function(e,t){var r=n.props,i=r.brushDirection,o=r.width,a=r.height;return{x0:"vertical"===i?0:Math.min(e.x||0,t.x||0),x1:"vertical"===i?o:Math.max(e.x||0,t.x||0),y0:"horizontal"===i?0:Math.min(e.y||0,t.y||0),y1:"horizontal"===i?a:Math.max(e.y||0,t.y||0)}},n.handleDragStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin,s=t.useWindowMoveEvents,l=null!=a&&a.left?a.left:0,u=null!=a&&a.top?a.top:0,c={x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-o-u},d=mn({},c);r&&r(c),n.updateBrush(function(t){return mn({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?p1(e.event):void 0})})},n.handleBrushStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin;if(r){var s=null!=a&&a.left?a.left:0,l=null!=a&&a.top?a.top:0;r({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-o-l})}},n.handleDragMove=function(e){var t=n.props,r=t.left,i=t.top,o=t.inheritedMargin,a=t.useWindowMoveEvents;if(e.isDragging&&!a){var s=(null==o?void 0:o.left)||0,l=(null==o?void 0:o.top)||0,u={x:(e.x||0)+e.dx-r-s,y:(e.y||0)+e.dy-i-l};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return mn({},e,{end:u,extent:r})})}},n.handleDragEnd=function(){var e=n.props,t=e.onBrushEnd,r=e.resetOnEnd;e.useWindowMoveEvents||n.updateBrush(function(e){var i=e.extent,o=mn({},e,{start:{x:i.x0,y:i.y0},end:{x:i.x1,y:i.y1},isBrushing:!1,brushingType:void 0,activeHandle:null});return t&&t(o),r&&n.reset(),o})},n.getBrushWidth=function(){var e=n.state.extent,t=e.x0,r=e.x1;return Math.max(Math.max(t,r)-Math.min(t,r),0)},n.getBrushHeight=function(){var e=n.state.extent,t=e.y1,r=e.y0;return Math.max(Math.max(r,t)-Math.min(r,t),0)},n.handles=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2,l=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-s,y:o-s,height:e,width:l+e},bottom:{x:r-s,y:a-s,height:e,width:l+e},right:{x:i-s,y:o-s,height:u+e,width:e},left:{x:r-s,y:o-s,height:u+e,width:e}}},n.corners=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2;return{topLeft:{x:Math.min(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},topRight:{x:Math.max(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},bottomLeft:{x:Math.min(r,i)-s,y:Math.max(o,a)-s,width:e,height:e},bottomRight:{x:Math.max(r,i)-s,y:Math.max(o,a)-s,width:e,height:e}}},n.updateBrush=function(e){var t=n.props.onChange;n.setState(e,function(){t&&t(n.state)})},n.reset=function(){var e=n.props,t=e.width,r=e.height;n.updateBrush(function(){return{start:{x:0,y:0},end:{x:0,y:0},extent:{x0:-1,x1:-1,y0:-1,y1:-1},bounds:{x0:0,x1:t,y0:0,y1:r},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},n.handleBrushingTypeChange=function(e,t){n.updateBrush(function(n){var r=mn({},n,{brushingType:e,isBrushing:void 0!==e});return(t||void 0===e)&&(r.brushPageOffset=t),r})};var n,r=t.initialBrushPosition,i=r?n.getExtent(r.start,r.end):{x0:-1,x1:-1,y0:-1,y1:-1};return n.state={start:{x:Math.max(0,i.x0),y:Math.max(0,i.y0)},end:{x:Math.max(0,i.x1),y:Math.max(0,i.y1)},extent:i,bounds:{x0:0,x1:n.props.width,y0:0,y1:n.props.height},isBrushing:!1,brushingType:void 0,activeHandle:null},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mr(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){var t=this;(this.props.width!==e.width||this.props.height!==e.height)&&this.setState(function(n){var r=n.start,i=n.end,o=n.extent;if(!(-1===o.x0&&-1===o.x1&&-1===o.y0&&-1===o.y1)){var a=t.props.width/e.width,s=t.props.height/e.height;r={x:a*o.x0,y:s*o.y0},i={x:a*o.x1,y:s*o.y1},o=t.getExtent(r,i)}return{start:r,end:i,extent:o,bounds:{x0:0,x1:t.props.width,y0:0,y1:t.props.height}}})},n.componentDidMount=function(){this.props.useWindowMoveEvents&&(window.addEventListener("mouseup",this.handleWindowPointerUp),window.addEventListener("mousemove",this.handleWindowPointerMove))},n.componentWillUnmount=function(){this.props.useWindowMoveEvents&&(window.removeEventListener("mouseup",this.handleWindowPointerUp),window.removeEventListener("mousemove",this.handleWindowPointerMove))},n.render=function(){var e=this,t=this.state,n=t.start,r=t.end,i=this.props,o=i.top,a=i.left,s=i.width,l=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,v=i.disableDraggingSelection,g=i.clickSensitivity,y=i.useWindowMoveEvents,b=i.renderBrushHandle,w=this.state.brushingType,E=this.handles(),k=this.corners(),j=this.getBrushWidth(),_=this.getBrushHeight(),S=new Set(p);return x.createElement(pw.Z,{className:"visx-brush",top:o,left:a},x.createElement(pQ.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===w:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,o=t.dragEnd;return x.createElement(pp.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,mc),g=o,y=s,b=a,w=l;return void 0!==m&&!m||g||y||b||w||(g="0",y="0",b="0",w="1"),x.createElement("defs",null,x.createElement("linearGradient",md({id:n,x1:g,y1:b,x2:y,y2:w,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&x.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&x.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}function mh(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}function mp(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function mm(){return 0}function mv(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}mf.propTypes={id:pg().string.isRequired,from:pg().string,to:pg().string,x1:pg().oneOfType([pg().string,pg().number]),x2:pg().oneOfType([pg().string,pg().number]),y1:pg().oneOfType([pg().string,pg().number]),y2:pg().oneOfType([pg().string,pg().number]),fromOffset:pg().oneOfType([pg().string,pg().number]),fromOpacity:pg().oneOfType([pg().string,pg().number]),toOffset:pg().oneOfType([pg().string,pg().number]),toOpacity:pg().oneOfType([pg().string,pg().number]),rotate:pg().oneOfType([pg().string,pg().number]),transform:pg().string,children:pg().node,vertical:pg().bool};var my=n(12436),mb=n.n(my),mx=n(55746),mw=n(45742),mE=n(27266),mk=["id","markerWidth","markerHeight","markerUnits","children"];function mj(){return(mj=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mk);return x.createElement("defs",null,x.createElement("marker",mj({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}m_.propTypes={id:pg().string.isRequired,size:pg().number,markerWidth:pg().oneOfType([pg().string,pg().number]),markerHeight:pg().oneOfType([pg().string,pg().number]),markerUnits:pg().string,refX:pg().oneOfType([pg().string,pg().number]),refY:pg().oneOfType([pg().string,pg().number]),strokeWidth:pg().number,children:pg().node.isRequired};var mS=["id","size","strokeWidth"];function mO(){return(mO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mS),s=2*r+o,l=s/2;return x.createElement(m_,mO({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),x.createElement("circle",{r:r,cx:l,cy:l}))}var mM=n(64170),mA={top:"top",left:"left",bottom:"bottom"};function mP(){return(mP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mI),j=null!=g?g:"tickFormat"in v?v.tickFormat():mL.Z,_=h===mA.left,S=h===mA.top,O=S||h===mA.bottom,C=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var n=e.bandwidth();return"center"===t&&(n/=2),e.round()&&(n=Math.round(n)),function(t){var r=e(t);return"number"==typeof r?r+n:r}}return e}(v),M=_||S?-1:1,A=v.range(),P=(void 0===(t=m)&&(t=0),"number"==typeof t?{start:t,end:t}:mV({start:0,end:0},t)),T=mF({x:Number(A[0])+.5-P.start,y:0},O),N=mF({x:Number(A[A.length-1])+.5+P.end,y:0},O),R=(null!=w?w:(0,pk.Z)(v,d)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),D=R.map(function(e){var t=e.value,n=e.index,r=(0,pj.Z)(C(t));return{value:t,index:n,from:mF({x:r,y:0},O),to:mF({x:r,y:b*M},O),formattedValue:j(t,n,R)}});return x.createElement(pw.Z,{className:pb()("visx-axis",i),top:void 0===E?0:E,left:void 0===u?0:u},r(mz({},k,{axisFromPoint:T,axisToPoint:N,hideAxisLine:void 0!==o&&o,hideTicks:void 0!==a&&a,hideZero:l,horizontal:O,numTicks:d,orientation:h,rangePadding:m,scale:v,tickFormat:j,tickLength:b,tickPosition:C,tickSign:M,ticks:D})))}var mB=["axisClassName","labelOffset","tickLabelProps","tickLength"];function mH(){return(mH=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mB);return x.createElement(mZ,mH({axisClassName:pb()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:mA.bottom,tickLabelProps:void 0===r?mU:r,tickLength:void 0===i?8:i},o))}var mq=["axisClassName","labelOffset","tickLabelProps","tickLength"];function m$(){return(m$=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mq);return x.createElement(mZ,m$({axisClassName:pb()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:mA.left,tickLabelProps:void 0===r?mY:r,tickLength:void 0===i?8:i},o))}let mK=e=>new Date((null==e?void 0:e.timestamp)||0),mX=e=>(null==e?void 0:e.value)||0,mQ="var(--colors-hiContrast)",mJ={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:mQ},m0={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:mQ};function m1(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:o,xScale:a,yScale:s,hideBottomAxis:l=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,b.jsxs)(pw.Z,{left:d||o.left,top:c||o.top,children:[(0,b.jsx)(mC,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,b.jsx)(mf,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,b.jsx)(mx.Z,{data:t,x:e=>a(mK(e))||0,y:e=>s(mX(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?mw.ZP:mE.Z}),!l&&(0,b.jsx)(mW,{top:i,scale:a,numTicks:r>520?10:5,stroke:mQ,tickStroke:mQ,tickLabelProps:()=>mJ}),!u&&(0,b.jsx)(mG,{scale:s,numTicks:5,stroke:mQ,tickStroke:mQ,tickLabelProps:()=>m0}),h]})}var m2=n(6692);let m4={inherit:m2.inherit,current:m2.current,transparent:m2.transparent,black:m2.black,white:m2.white,slate:m2.slate,zinc:m2.zinc,neutral:m2.neutral,stone:m2.stone,red:m2.red,orange:m2.orange,amber:m2.amber,yellow:m2.yellow,lime:m2.lime,green:m2.green,emerald:m2.emerald,teal:m2.teal,cyan:m2.cyan,sky:m2.sky,blue:m2.blue,indigo:m2.indigo,violet:m2.violet,purple:m2.purple,fuchsia:m2.fuchsia,pink:m2.pink,rose:m2.rose,mask:"rgba(30, 169, 76, .3)",accent:{50:"#F6FFF9",100:"#E9FBEF",200:"#D5F2DE",300:"#C9EED4",400:"#BBE8C9",500:"#9BDAAE",600:"#71C48A",700:"#3EAA5F",800:"#05872D",900:"#056B24",1e3:"#04511B",1100:"#011F0A"},accentdark:{50:"#05150A",100:"#051C0C",200:"#062811",300:"#073515",400:"#064018",500:"#075820",600:"#056824",700:"#077A2A",800:"#05872D",900:"#069F35",1e3:"#2FA052",1100:"#D9F4E1"},gray:{50:"hsl(206, 30.0%, 98.8%)",100:"hsl(210, 16.7%, 97.6%)",200:"hsl(209, 13.3%, 95.3%)",300:"hsl(209, 12.2%, 93.2%)",400:"hsl(208, 11.7%, 91.1%)",500:"hsl(208, 11.3%, 88.9%)",600:"hsl(207, 11.1%, 85.9%)",700:"hsl(205, 10.7%, 78.0%)",800:"hsl(206, 6.0%, 56.1%)",900:"hsl(206, 5.8%, 52.3%)",1e3:"hsl(206, 6.0%, 43.5%)",1100:"hsl(206, 24.0%, 9.0%)"},graydark:{50:"hsl(200, 7.0%, 8.8%)",100:"hsl(195, 7.1%, 11.0%)",200:"hsl(197, 6.8%, 13.6%)",300:"hsl(198, 6.6%, 15.8%)",400:"hsl(199, 6.4%, 17.9%)",500:"hsl(201, 6.2%, 20.5%)",600:"hsl(203, 6.0%, 24.3%)",700:"hsl(207, 5.6%, 31.6%)",800:"hsl(206, 6.0%, 43.9%)",900:"hsl(206, 5.2%, 49.5%)",1e3:"hsl(206, 6.0%, 63.0%)",1100:"hsl(210, 6.0%, 93.0%)"}};var m3=n(96206);let m5={top:10,bottom:15,left:10,right:10},m6="brush_pattern",m8="brush_gradient",m7=mb()(e=>e(),15),m9=function(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i>>1;0>n(e[t],r)?i=t+1:o=t}while(imh(e(t),n),r=(t,n)=>e(t)-n):(t=e===mh||e===mp?e:mm,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){let a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:o=t}while(inew Date((null==e?void 0:e.timestamp)||0)).left;void 0===EU&&(EU={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===EW&&(EW=function(e,t){return x.createElement("div",t,e)});var ve=n(70390),vt=n(3440),vn=n.n(vt);function vr(e){let{id:t,width:n,height:r,accessors:i,animationTrajectory:o,curve:a,data:s,config:l,scales:u,enabledGraph:c,enabledTip:d,isStack:f,todayOffset:h,numTicks:p,renderAreaSeries:m,renderAreaStack:v,renderBarGroup:g,renderBarStack:y,enableTooltipGlyph:w,renderTooltipGlyph:E,renderLineSeries:k,sharedTooltip:j,showHorizontalCrosshair:_,showTooltip:S,showVerticalCrosshair:O,snapTooltipToDatum:C,stackOffset:M,margin:A,theme:P,xAxisOrientation:T,yAxisOrientation:N,AreaSeries:R,AreaStack:D,Axis:L,BarGroup:F,BarSeries:V,BarStack:I,Grid:z,LineSeries:Z,Tooltip:B,XYChart:H}=e;return(0,b.jsxs)(H,{theme:P.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:A,captureEvents:!0,children:[(0,b.jsx)("g",{children:(0,b.jsx)("rect",{className:"fill-gray-600 dark:fill-graydark-600 h-full w-px y-0",style:{left:"".concat(100*h,"%")}})},"today-line-".concat(n,"-").concat(r)),(0,b.jsx)(mf,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(l.data).map(e=>{let[n,r]=e,i=r.color;return(0,b.jsxs)(x.Fragment,{children:[(0,b.jsx)(pL,{id:"pattern-".concat(vi(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,b.jsx)(mf,{id:"gradient-".concat(vi(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,b.jsx)(z,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:o,numTicks:p},"grid-".concat(o)),y&&(0,b.jsx)(I,{offset:M,children:c.map(e=>(0,b.jsx)(V,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vo(t,e,l)},e))}),g&&(0,b.jsx)(F,{children:c.map(e=>(0,b.jsx)(V,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vo(t,e,l)},e))}),m&&(0,b.jsx)(b.Fragment,{children:c.map(e=>(0,b.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vo(t,e,l),fill:vo(t,e,l),curve:a},e))}),v&&(0,b.jsx)(D,{curve:a,offset:M,renderLine:"wiggle"!==M,children:c.map(e=>(0,b.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vo(t,e,l),fill:vo(t,e,l)},e))}),k&&(0,b.jsx)(b.Fragment,{children:c.map(e=>{var t,n;return(0,b.jsx)(Z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:a},e)})}),(0,b.jsx)(L,{orientation:T,numTicks:p,animationTrajectory:o,tickFormat:e=>(0,m3.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:P.labels.color,fontFamily:P.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(o)),(0,b.jsx)(L,{label:null==M?"SC":"expand"===M?"Fraction of total":"",orientation:N,numTicks:p,tickLength:0,rangePadding:0,animationTrajectory:o,tickFormat:()=>""},"temp-axis-".concat(o)),S&&(0,b.jsx)(B,{showHorizontalCrosshair:_,showVerticalCrosshair:O,snapTooltipToDatumX:C,snapTooltipToDatumY:C,showDatumGlyph:C&&!g,showSeriesGlyphs:j&&!g,renderGlyph:w?E:void 0,renderTooltip:e=>{var t,n;let{tooltipData:r}=e,o=null==r?void 0:null===(t=r.nearestDatum)||void 0===t?void 0:t.datum,a=null==r?void 0:null===(n=r.nearestDatum)||void 0===n?void 0:n.key,s=j?d:a?[a]:[],u=l.formatTimestamp||(e=>(0,m3.rN)(e,{timeStyle:"short",hour12:!1})),c=s.map(e=>{var t,n;return{key:e,category:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),h=vn()(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,b.jsxs)("div",{className:(0,ea.cx)(s6,"flex flex-col gap-2 py-1"),children:[(0,b.jsx)(tq,{font:"mono",size:"12",color:"contrast",className:"text-end",children:o?u(i.date(o)):"No date"}),(0,b.jsx)(c_,{color:"panel",className:"w-full"}),(0,b.jsx)("div",{className:(0,ea.cx)("grid gap-x-6 gap-y-4",p.length>1?"grid-cols-2":"grid-cols-1"),children:p.map(e=>{let[t,n]=e,r=o?n.reduce((e,t)=>{let{key:n}=t,r=i.y[n](o);return null==r||Number.isNaN(r)?e:e+r},0):0;return(0,b.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,b.jsx)(tq,{weight:"semibold",children:t}),(0,b.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,s;let{key:u}=e,c=o&&i.y[u](o);return(0,b.jsxs)(x.Fragment,{children:[(0,b.jsx)(tq,{color:"accent",style:{color:null===(n=l.data)||void 0===n?void 0:null===(t=n[u])||void 0===t?void 0:t.color},className:(0,ea.cx)(a===u?"underline":""),children:(null===(s=l.data)||void 0===s?void 0:null===(r=s[u])||void 0===r?void 0:r.label)||u}),(0,b.jsx)(tq,{size:"12",style:{textAlign:"end"},className:(0,ea.cx)(a===u?"underline":""),children:null==c||Number.isNaN(c)?"–":l.format(c)})]},u)}),n.length>1&&f&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(tq,{className:"pt-2",children:"total"}),(0,b.jsx)(tq,{size:"12",weight:"bold",className:"pt-2 text-end",children:l.format(r)})]})]})]},t)})})]})}})]})}function vi(e,t){return"".concat(e,"-").concat(t)}function vo(e,t,n){var r;let i=vi(e,t);return(null===(r=n.data)||void 0===r?void 0:r[t])?n.data[t].pattern?"url(#pattern-".concat(i,")"):"url(#gradient-".concat(i,")"):"url(#gradient-default)"}var va=n(24037),vs=n(86707);function vl(e){var t=e.top,n=e.left,r=e.className,i=e.children;return x.createElement(pw.Z,{className:pb()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}vl.propTypes={top:pg().number,left:pg().number,className:pg().string,children:pg().node};var vu=["children","className","top","left","size"];function vc(){return(vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vu),s=(0,va.Z)();return(s.type(vs.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?x.createElement(x.Fragment,null,t({path:s})):x.createElement(vl,{top:r,left:i},x.createElement("path",vc({className:pb()("visx-glyph-star",n),d:s()||""},a)))}vd.propTypes={children:pg().func,className:pg().string,top:pg().number,left:pg().number,size:pg().oneOfType([pg().number,pg().func])};var vf=["top","left","className"];function vh(){return(vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vf);return x.createElement(vl,{top:void 0===t?0:t,left:void 0===n?0:n},x.createElement("circle",vh({className:pb()("visx-glyph-dot",r)},i)))}vp.propTypes={className:pg().string,top:pg().number,left:pg().number,r:pg().number,cx:pg().number,cy:pg().number};var vm=n(9135),vv=["children","className","top","left","size"];function vg(){return(vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vv),s=(0,va.Z)();return(s.type(vm.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?x.createElement(x.Fragment,null,t({path:s})):x.createElement(vl,{top:r,left:i},x.createElement("path",vg({className:pb()("visx-glyph-cross",n),d:s()||""},a)))}vy.propTypes={children:pg().func,className:pg().string,top:pg().number,left:pg().number,size:pg().oneOfType([pg().number,pg().func])};var vb=n(46385),vx=n(20651),vw={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},vE=vw.gray,vk=vE[7],vj=[vw.cyan[9],vw.cyan[3],vw.yellow[5],vw.red[4],vw.grape[8],vw.grape[5],vw.pink[9]];function v_(){return(v_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)vA(e,n,{get:t[n],enumerable:!0})})(vP,{assign:()=>v9,colors:()=>v6,createStringInterpolator:()=>EY,skipAnimation:()=>v8,to:()=>EG,willAdvance:()=>v7});var vT=vY(),vN=e=>vU(e,vT),vR=vY();vN.write=e=>vU(e,vR);var vD=vY();vN.onStart=e=>vU(e,vD);var vL=vY();vN.onFrame=e=>vU(e,vL);var vF=vY();vN.onFinish=e=>vU(e,vF);var vV=[];vN.setTimeout=(e,t)=>{let n=vN.now()+t,r=()=>{let e=vV.findIndex(e=>e.cancel==r);~e&&vV.splice(e,1),vB-=~e?1:0},i={time:n,handler:e,cancel:r};return vV.splice(vI(n),0,i),vB+=1,vW(),i};var vI=e=>~(~vV.findIndex(t=>t.time>e)||~vV.length);vN.cancel=e=>{vD.delete(e),vL.delete(e),vF.delete(e),vT.delete(e),vR.delete(e)},vN.sync=e=>{vH=!0,vN.batchedUpdates(e),vH=!1},vN.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,vN.onStart(n)}return r.handler=e,r.cancel=()=>{vD.delete(n),t=null},r};var vz="undefined"!=typeof window?window.requestAnimationFrame:()=>{};vN.use=e=>vz=e,vN.now="undefined"!=typeof performance?()=>performance.now():Date.now,vN.batchedUpdates=e=>e(),vN.catch=console.error,vN.frameLoop="always",vN.advance=()=>{"demand"!==vN.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):v$()};var vZ=-1,vB=0,vH=!1;function vU(e,t){vH?(t.delete(e),e(0)):(t.add(e),vW())}function vW(){vZ<0&&(vZ=0,"demand"!==vN.frameLoop&&vz(vq))}function vq(){~vZ&&(vz(vq),vN.batchedUpdates(v$))}function v$(){let e=vZ;vZ=vN.now();let t=vI(vZ);if(t&&(vG(vV.splice(0,t),e=>e.handler()),vB-=t),!vB){vZ=-1;return}vD.flush(),vT.flush(e?Math.min(64,vZ-e):16.667),vL.flush(),vR.flush(),vF.flush()}function vY(){let e=new Set,t=e;return{add(n){vB+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(vB-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,vB-=t.size,vG(t,t=>t(n)&&e.add(t)),vB+=e.size,t=e)}}}function vG(e,t){e.forEach(e=>{try{t(e)}catch(e){vN.catch(e)}})}function vK(){}var vX=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),vQ={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function vJ(e,t){if(vQ.arr(e)){if(!vQ.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function v1(e,t,n){if(vQ.arr(e)){for(let r=0;rvQ.und(e)?[]:vQ.arr(e)?e:[e];function v4(e,t){if(e.size){let n=Array.from(e);e.clear(),v0(n,t)}}var v3=(e,...t)=>v4(e,e=>e(...t)),v5=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),v6=null,v8=!1,v7=vK,v9=e=>{e.to&&(EG=e.to),e.now&&(vN.now=e.now),void 0!==e.colors&&(v6=e.colors),null!=e.skipAnimation&&(v8=e.skipAnimation),e.createStringInterpolator&&(EY=e.createStringInterpolator),e.requestAnimationFrame&&vN.use(e.requestAnimationFrame),e.batchedUpdates&&(vN.batchedUpdates=e.batchedUpdates),e.willAdvance&&(v7=e.willAdvance),e.frameLoop&&(vN.frameLoop=e.frameLoop)},ge=new Set,gt=[],gn=[],gr=0,gi={get idle(){return!ge.size&&!gt.length},start(e){gr>e.priority?(ge.add(e),vN.onStart(go)):(ga(e),vN(gl))},advance:gl,sort(e){if(gr)vN.onFrame(()=>gi.sort(e));else{let t=gt.indexOf(e);~t&&(gt.splice(t,1),gs(e))}},clear(){gt=[],ge.clear()}};function go(){ge.forEach(ga),ge.clear(),vN(gl)}function ga(e){gt.includes(e)||gs(e)}function gs(e){gt.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(gt,t=>t.priority>e.priority),0,e)}function gl(e){let t=gn;for(let n=0;n0}var gu="[-+]?\\d*\\.?\\d+",gc=gu+"%";function gd(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var gf=RegExp("rgb"+gd(gu,gu,gu)),gh=RegExp("rgba"+gd(gu,gu,gu,gu)),gp=RegExp("hsl"+gd(gu,gc,gc)),gm=RegExp("hsla"+gd(gu,gc,gc,gu)),gv=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gg=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gy=/^#([0-9a-fA-F]{6})$/,gb=/^#([0-9a-fA-F]{8})$/;function gx(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gw(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=gx(i,r,e+1/3),a=gx(i,r,e),s=gx(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function gE(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function gk(e){let t=parseFloat(e);return(t%360+360)%360/360}function gj(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function g_(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function gS(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gy.exec(e))?parseInt(t[1]+"ff",16)>>>0:v6&&void 0!==v6[e]?v6[e]:(t=gf.exec(e))?(gE(t[1])<<24|gE(t[2])<<16|gE(t[3])<<8|255)>>>0:(t=gh.exec(e))?(gE(t[1])<<24|gE(t[2])<<16|gE(t[3])<<8|gj(t[4]))>>>0:(t=gv.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=gb.exec(e))?parseInt(t[1],16)>>>0:(t=gg.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=gp.exec(e))?(255|gw(gk(t[1]),g_(t[2]),g_(t[3])))>>>0:(t=gm.exec(e))?(gw(gk(t[1]),g_(t[2]),g_(t[3]))|gj(t[4]))>>>0:null;if(null===n)return e;n=n||0;let r=(4278190080&n)>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}var gO=(e,t,n)=>{if(vQ.fun(e))return e;if(vQ.arr(e))return gO({range:e,output:t,extrapolate:n});if(vQ.str(e.output[0]))return EY(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},gC=Symbol.for("FluidValue.get"),gM=Symbol.for("FluidValue.observers"),gA=e=>!!(e&&e[gC]),gP=e=>e&&e[gC]?e[gC]():e,gT=e=>e[gM]||null;function gN(e,t){let n=e[gM];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var gR=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");gD(this,e)}},gD=(e,t)=>gV(e,gC,t);function gL(e,t){if(e[gC]){let n=e[gM];n||gV(e,gM,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function gF(e,t){let n=e[gM];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[gM]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var gV=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),gI=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,gz=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,gZ=RegExp(`(${gI.source})(%|[a-z]+)`,"i"),gB=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,gH=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,gU=e=>{let[t,n]=gW(e);if(!t||v5())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&gH.test(n))return gU(n);else if(n)return n;return e},gW=e=>{let t=gH.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},gq=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,g$=e=>{EK||(EK=v6?RegExp(`(${Object.keys(v6).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>gP(e).replace(gH,gU).replace(gz,gS).replace(EK,gS)),n=t.map(e=>e.match(gI).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})),i=r.map(t=>gO({...e,output:t}));return e=>{let n=!gZ.test(t[0])&&t.find(e=>gZ.test(e))?.replace(gI,""),r=0;return t[0].replace(gI,()=>`${i[r++](e)}${n||""}`).replace(gB,gq)}},gY="react-spring: ",gG=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${gY}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},gK=gG(console.warn),gX=gG(console.warn);function gQ(e){return vQ.str(e)&&("#"==e[0]||/\d/.test(e)||!v5()&&gH.test(e)||e in(v6||{}))}var gJ=v5()?x.useEffect:x.useLayoutEffect,g0=()=>{let e=(0,x.useRef)(!1);return gJ(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function g1(){let e=(0,x.useState)()[1],t=g0();return()=>{t.current&&e(Math.random())}}var g2=e=>(0,x.useEffect)(e,g4),g4=[];function g3(e){let t=(0,x.useRef)();return(0,x.useEffect)(()=>{t.current=e}),t.current}var g5=Symbol.for("Animated:node"),g6=e=>!!e&&e[g5]===e,g8=e=>e&&e[g5],g7=(e,t)=>vX(e,g5,t),g9=e=>e&&e[g5]&&e[g5].getPayload(),ye=class{constructor(){g7(this,this)}getPayload(){return this.payload||[]}},yt=class extends ye{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,vQ.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new yt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return vQ.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,vQ.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},yn=class extends yt{constructor(e){super(0),this._string=null,this._toString=gO({output:[e,e]})}static create(e){return new yn(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(vQ.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=gO({output:[this.getValue(),e]})),this._value=0,super.reset()}},yr={dependencies:null},yi=class extends ye{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return v1(this.source,(n,r)=>{g6(n)?t[r]=n.getValue(e):gA(n)?t[r]=gP(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&v0(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return v1(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){yr.dependencies&&gA(e)&&yr.dependencies.add(e);let t=g9(e);t&&v0(t,e=>this.add(e))}},yo=class extends yi{constructor(e){super(e)}static create(e){return new yo(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(ya)),!0)}};function ya(e){let t=gQ(e)?yn:yt;return t.create(e)}function ys(e){let t=g8(e);return t?t.constructor:vQ.arr(e)?yo:gQ(e)?yn:yt}var yl=(e,t)=>{let n=!vQ.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,x.forwardRef)((r,i)=>{let o=(0,x.useRef)(null),a=n&&(0,x.useCallback)(e=>{o.current=(i&&(vQ.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return yr.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new yi(e),yr.dependencies=null,[e,n]}(r,t),u=g1(),c=()=>{let e=o.current;if(n&&!e)return;let r=!!e&&t.applyAnimatedValues(e,s.getValue(!0));!1===r&&u()},d=new yu(c,l),f=(0,x.useRef)();gJ(()=>(f.current=d,v0(l,e=>gL(e,d)),()=>{f.current&&(v0(f.current.deps,e=>gF(e,f.current)),vN.cancel(f.current.update))})),(0,x.useEffect)(c,[]),g2(()=>()=>{let e=f.current;v0(e.deps,t=>gF(t,e))});let h=t.getComponentProps(s.getValue());return x.createElement(e,{...h,ref:a})})},yu=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&vN.write(this.update)}},yc=Symbol.for("AnimatedComponent"),yd=e=>vQ.str(e)?e:e&&vQ.str(e.displayName)?e.displayName:vQ.fun(e)&&e.name||null;function yf(e,...t){return vQ.fun(e)?e(...t):e}var yh=(e,t)=>!0===e||!!(t&&e&&(vQ.fun(e)?e(t):v2(e).includes(t))),yp=(e,t)=>vQ.obj(e)?t&&e[t]:e,ym=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,yv=e=>e,yg=(e,t=yv)=>{let n=yy;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);vQ.und(n)||(r[i]=n)}return r},yy=["config","onProps","onStart","onChange","onPause","onResume","onRest"],yb={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function yx(e){let t=function(e){let t={},n=0;if(v1(e,(e,r)=>{!yb[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return v1(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function yw(e){return e=gP(e),vQ.arr(e)?e.map(yw):gQ(e)?vP.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yE(e){for(let t in e)return!0;return!1}function yk(e){return vQ.fun(e)||vQ.arr(e)&&vQ.obj(e[0])}function yj(e,t){e.ref?.delete(e),t?.delete(e)}function y_(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var yS={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},yO=class{constructor(){this.velocity=0,Object.assign(this,yS)}};function yC(e,t){if(vQ.und(t.decay)){let n=!vQ.und(t.tension)||!vQ.und(t.friction);!n&&vQ.und(t.frequency)&&vQ.und(t.damping)&&vQ.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var yM=[],yA=class{constructor(){this.changed=!1,this.values=yM,this.toValues=null,this.fromValues=yM,this.config=new yO,this.immediate=!1}};function yP(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u;let c=yh(n.cancel??r?.cancel,t);if(c)h();else{vQ.und(n.pause)||(i.paused=yh(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||yh(e,t)),l=yf(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-vN.now()}function f(){l>0&&!vP.skipAnimation?(i.delayed=!0,u=vN.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var yT=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?yD(e.get()):t.every(e=>e.noop)?yN(e.get()):yR(e.get(),t.every(e=>e.finished)),yN=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),yR=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),yD=e=>({value:e,cancelled:!0,finished:!1});function yL(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=yg(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>(u=e,c=t)),p=e=>{let t=i<=(n.cancelId||0)&&yD(r)||i!==n.asyncId&&yR(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let o=new yV,a=new yI;return(async()=>{if(vP.skipAnimation)throw yF(n),a.result=yR(r,!1),c(a),a;p(o);let s=vQ.obj(e)?{...e}:{...t,to:e};s.parentId=i,v1(f,(e,t)=>{vQ.und(s[t])&&(s[t]=e)});let l=await r.start(s);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(vP.skipAnimation)return yF(n),yR(r,!1);try{let t;t=vQ.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),h]),d=yR(r.get(),!0,!1)}catch(e){if(e instanceof yV)d=e.result;else if(e instanceof yI)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return vQ.fun(a)&&vN.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function yF(e,t){v4(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var yV=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},yI=class extends Error{constructor(){super("SkipAnimationSignal")}},yz=e=>e instanceof yB,yZ=1,yB=class extends gR{constructor(){super(...arguments),this.id=yZ++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=g8(this);return e&&e.getValue()}to(...e){return vP.to(this,e)}interpolate(...e){return gK(`${gY}The "interpolate" function is deprecated in v9 (use "to" instead)`),vP.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){gN(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||gi.sort(this),gN(this,{type:"priority",parent:this,priority:e})}},yH=Symbol.for("SpringPhase"),yU=e=>(1&e[yH])>0,yW=e=>(2&e[yH])>0,yq=e=>(4&e[yH])>0,y$=(e,t)=>t?e[yH]|=3:e[yH]&=-3,yY=(e,t)=>t?e[yH]|=4:e[yH]&=-5,yG=class extends yB{constructor(e,t){if(super(),this.animation=new yA,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!vQ.und(e)||!vQ.und(t)){let n=vQ.obj(e)?{...e}:{...t,from:e};vQ.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(yW(this)||this._state.asyncTo)||yq(this)}get goal(){return gP(this.animation.to)}get velocity(){let e=g8(this);return e instanceof yt?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return yU(this)}get isAnimating(){return yW(this)}get isPaused(){return yq(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=g9(r.to);!a&&gA(r.to)&&(i=v2(gP(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==yn?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,i=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=vQ.arr(o.velocity)?o.velocity[l]:o.velocity,f=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(vQ.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*n);d=i+a/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,t=a*r}else{t=null==s.lastVelocity?a:s.lastVelocity;let n=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!vQ.und(r),h=i==u?s.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=-(1e-6*o.tension)*(d-u),n=-(.001*o.friction)*t,i=(e+n)/o.mass;t+=1*i,d+=1*t}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(r=(o.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),t=((d=i+o.easing(r)*(u-i))-s.lastPosition)/e,c=1==r}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=g8(this),l=s.getValue();if(t){let e=gP(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return vN.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(yW(this)){let{to:e,config:t}=this.animation;vN.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){let t=this.queue||(this.queue=[]);return t.push(e),this}start(e,t){let n;return vQ.und(e)?(n=this.queue||[],this.queue=[]):n=[vQ.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>{let t=this._update(e);return t})).then(e=>yT(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),yF(this._state,e&&this._lastCallId),vN.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=vQ.obj(n)?n[t]:n)||yk(n))&&(n=void 0),null==(r=vQ.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return yU(this)||(e.reverse&&([n,r]=[r,n]),r=gP(r),vQ.und(r)?g8(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,yg(e,(e,t)=>/^on/.test(t)?yp(e,n):e)),y1(this,e,"onProps"),y2(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return yP(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{yq(this)||(yY(this,!0),v3(o.pauseQueue),y2(this,"onPause",yR(this,yK(this,this.animation.to)),this))},resume:()=>{yq(this)&&(yY(this,!1),yW(this)&&this._resume(),v3(o.resumeQueue),y2(this,"onResume",yR(this,yK(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=yX(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(yD(this));let r=!vQ.und(e.to),i=!vQ.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(yD(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||vQ.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!vJ(d,u);f&&(s.from=d),d=gP(d);let h=!vJ(c,l);h&&this._focus(c);let p=yk(t.to),{config:m}=s,{decay:v,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(yC(n={...n},t),t={...n,...t}),yC(e,t),Object.assign(e,t),yS)null==e[r]&&(e[r]=yS[r]);let{frequency:r,damping:i}=e,{mass:o}=e;vQ.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,yf(t.config,o),t.config!==a.config?yf(a.config,o):void 0);let y=g8(this);if(!y||vQ.und(c))return n(yR(this,!0));let b=vQ.und(t.reset)?i&&!t.default:!vQ.und(d)&&yh(t.reset,o),x=b?d:this.get(),w=yw(c),E=vQ.num(w)||vQ.arr(w)||gQ(w),k=!p&&(!E||yh(a.immediate||t.immediate,o));if(h){let e=ys(c);if(e!==y.constructor){if(k)y=this._set(w);else throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let j=y.constructor,_=gA(c),S=!1;if(!_){let e=b||!yU(this)&&f;(h||e)&&(_=!(S=vJ(yw(x),w))),(vJ(s.immediate,k)||k)&&vJ(m.decay,v)&&vJ(m.velocity,g)||(_=!0)}if(S&&yW(this)&&(s.changed&&!b?_=!0:_||this._stop(l)),!p&&((_||gA(l))&&(s.values=y.getPayload(),s.toValues=gA(c)?null:j==yn?[1]:v2(w)),s.immediate==k||(s.immediate=k,k||b||this._set(l)),_)){let{onRest:e}=s;v0(y0,e=>y1(this,t,e));let r=yR(this,yK(this,l));v3(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&vN.batchedUpdates(()=>{s.changed=!b,e?.(r,this),b?yf(a.onRest,r):s.onStart?.(r,this)})}b&&this._set(x),p?n(yL(t.to,t,this._state,this)):_?this._start():yW(this)&&!h?this._pendingCalls.add(n):n(yN(x))}_focus(e){let t=this.animation;e!==t.to&&(gT(this)&&this._detach(),t.to=e,gT(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;gA(t)&&(gL(t,this),yz(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;gA(e)&&gF(e,this)}_set(e,t=!0){let n=gP(e);if(!vQ.und(n)){let e=g8(this);if(!e||!vJ(n,e.getValue())){let r=ys(n);e&&e.constructor==r?e.setValue(n):g7(this,r.create(n)),e&&vN.batchedUpdates(()=>{this._onChange(n,t)})}}return g8(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,y2(this,"onStart",yR(this,yK(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yf(this.animation.onChange,e,this)),yf(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;g8(this).reset(gP(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),yW(this)||(y$(this,!0),yq(this)||this._resume())}_resume(){vP.skipAnimation?this.finish():gi.start(this)}_stop(e,t){if(yW(this)){y$(this,!1);let n=this.animation;v0(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),gN(this,{type:"idle",parent:this});let r=t?yD(this.get()):yR(this.get(),yK(this,e??n.to));v3(this._pendingCalls,r),n.changed&&(n.changed=!1,y2(this,"onRest",r,this))}}};function yK(e,t){let n=yw(t),r=yw(e.get());return vJ(r,n)}function yX(e,t=e.loop,n=e.to){let r=yf(t);if(r){let i=!0!==r&&yx(r),o=(i||e).reverse,a=!i||i.reset;return yQ({...e,loop:t,default:!1,pause:void 0,to:!o||yk(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function yQ(e){let{to:t,from:n}=e=yx(e),r=new Set;return vQ.obj(t)&&yJ(t,r),vQ.obj(n)&&yJ(n,r),e.keys=r.size?Array.from(r):null,e}function yJ(e,t){v1(e,(e,n)=>null!=e&&t.add(n))}var y0=["onStart","onRest","onChange","onPause","onResume"];function y1(e,t,n){e.animation[n]=t[n]!==ym(t,n)?yp(t[n],e.key):void 0}function y2(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var y4=["onStart","onChange","onRest"],y3=1,y5=class{constructor(e,t){this.id=y3++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];vQ.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(yQ(e)),this}start(e){let{queue:t}=this;return(e?t=v2(e).map(yQ):this.queue=[],this._flush)?this._flush(this,t):(bn(this,t),y6(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;v0(v2(t),t=>n[t].stop(!!e))}else yF(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(vQ.und(e))this.start({pause:!0});else{let t=this.springs;v0(v2(e),e=>t[e].pause())}return this}resume(e){if(vQ.und(e))this.start({pause:!1});else{let t=this.springs;v0(v2(e),e=>t[e].resume())}return this}each(e){v1(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,v4(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&v4(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,v4(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}vN.onFrame(this._onFrame)}};function y6(e,t){return Promise.all(t.map(t=>y8(e,t))).then(t=>yT(e,t))}async function y8(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=vQ.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=vQ.arr(i)||vQ.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):v0(y4,n=>{let r=t[n];if(vQ.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,v3(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===ym(t,"cancel");(c||h&&d.asyncId)&&f.push(yP(++e._lastAsyncId,{props:t,state:d,actions:{pause:vK,resume:vK,start(t,n){h?(yF(d,e._lastAsyncId),n(yD(e))):(t.onRest=s,n(yL(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=yT(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=yX(t,a,i);if(n)return bn(e,[n]),y8(e,n,!0)}return l&&vN.batchedUpdates(()=>l(p,e,e.item)),p}function y7(e,t){let n={...e.springs};return t&&v0(v2(t),e=>{vQ.und(e.keys)&&(e=yQ(e)),vQ.obj(e.to)||(e={...e,to:void 0}),bt(n,e,e=>be(e))}),y9(e,n),n}function y9(e,t){v1(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,gL(t,e))})}function be(e,t){let n=new yG;return n.key=e,t&&gL(n,t),n}function bt(e,t,n){t.keys&&v0(t.keys,r=>{let i=e[r]||(e[r]=n(r));i._prepareNode(t)})}function bn(e,t){v0(t,t=>{bt(e.springs,t,t=>be(t,e))})}var br=({children:e,...t})=>{let n=(0,x.useContext)(bi),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,x.useState)(()=>({inputs:t,result:e()})),r=(0,x.useRef)(),i=r.current,o=i;if(o){let n=!!(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=bi;return x.createElement(o,{value:t},e)},bi=(Object.assign(br,x.createContext({})),br.Provider._context=br,br.Consumer._context=br,br);br.Provider=bi.Provider,br.Consumer=bi.Consumer;var bo=()=>{let e=[],t=function(t){gX(`${gY}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let r=[];return v0(e,(e,i)=>{if(vQ.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return v0(e,e=>e.pause(...arguments)),this},t.resume=function(){return v0(e,e=>e.resume(...arguments)),this},t.set=function(t){v0(e,(e,n)=>{let r=vQ.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return v0(e,(e,r)=>{if(vQ.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return v0(e,e=>e.stop(...arguments)),this},t.update=function(t){return v0(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return vQ.fun(e)?e(n,t):e};return t._getProps=n,t};function ba(e,t){let n=vQ.fun(e),[[r],i]=function(e,t,n){let r=vQ.fun(t)&&t;r&&!n&&(n=[]);let i=(0,x.useMemo)(()=>r||3==arguments.length?bo():void 0,[]),o=(0,x.useRef)(0),a=g1(),s=(0,x.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=y7(e,t),r=o.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t]);return r?y6(e,t):new Promise(r=>{y9(e,n),s.queue.push(()=>{r(y6(e,t))}),a()})}}),[]),l=(0,x.useRef)([...s.ctrls]),u=[],c=g3(e)||0;function d(e,n){for(let i=e;i{v0(l.current.slice(e,c),e=>{yj(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,x.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>y7(e,u[t])),h=(0,x.useContext)(br),p=g3(h),m=h!==p&&yE(h);gJ(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],v0(e,e=>e())),v0(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(y_(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),g2(()=>()=>{v0(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function bs(e,t,n){let r=vQ.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,x.useMemo)(()=>r||3==arguments.length?bo():void 0,[]),h=v2(e),p=[],m=(0,x.useRef)(null),v=i?null:m.current;gJ(()=>{m.current=p}),g2(()=>(v0(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{v0(m.current,e=>{e.expired&&clearTimeout(e.expirationId),yj(e.ctrl,f),e.ctrl.stop(!0)})}));let g=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):bl++})}return vQ.und(n)?e:vQ.fun(n)?e.map(n):v2(n)}(h,r?r():t,v),y=i&&m.current||[];gJ(()=>v0(y,({ctrl:e,item:t,key:n})=>{yj(e,f),yf(u,t,n)}));let b=[];if(v&&v0(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=g.indexOf(e.key))&&(p[t]=e)}),v0(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new y5},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;v0(b,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}vQ.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let w=-a,E=g1(),k=yg(t),j=new Map,_=(0,x.useRef)(new Map),S=(0,x.useRef)(!1);v0(p,(e,n)=>{let i,o;let u=e.key,f=e.phase,h=r?r():t,p=yf(h.delay||0,u);if("mount"==f)i=h.enter,o="enter";else{let e=0>g.indexOf(u);if("leave"!=f){if(e)i=h.leave,o="leave";else{if(!(i=h.update))return;o="update"}}else{if(e)return;i=h.enter,o="enter"}}if(i=yf(i,e.item,n),!(i=vQ.obj(i)?yx(i):{to:i}).config){let t=d||k.config;i.config=yf(t,e.item,n,o)}w+=a;let y={...k,delay:p+w,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==o&&vQ.und(y.from)){let i=r?r():t,o=vQ.und(i.initial)||v?i.from:i.initial;y.from=yf(o,e.item,n)}let{onResolve:b}=y;y.onResolve=e=>{yf(b,e);let t=m.current,n=t.find(e=>e.key===u);if(n){if(e.cancelled&&"update"!=n.phase)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=yf(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(E,r));return}}}e&&t.some(e=>e.expired)&&(_.current.delete(n),l&&(S.current=!0),E())}}};let x=y7(e.ctrl,y);"leave"===o&&l?_.current.set(e,{phase:o,springs:x,payload:y}):j.set(e,{phase:o,springs:x,payload:y})});let O=(0,x.useContext)(br),C=g3(O),M=O!==C&&yE(O);gJ(()=>{M&&v0(p,e=>{e.ctrl.start({default:O})})},[O]),v0(j,(e,t)=>{if(_.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),gJ(()=>{v0(_.current.size?_.current:j,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),M&&"enter"==e&&r.start({default:O}),t&&(y_(r,t.ref),(r.ref||f)&&!S.current?r.update(t):(r.start(t),S.current&&(S.current=!1)))})},i?void 0:n);let A=e=>x.createElement(x.Fragment,null,p.map((t,n)=>{let{springs:r}=j.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?x.createElement(i.type,{...i.props,key:vQ.str(t.key)||vQ.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[A,f]:A}var bl=1,bu=class extends yB{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=gO(...t);let n=this._get(),r=ys(n);g7(this,r.create(n))}advance(e){let t=this._get(),n=this.get();vJ(t,n)||(g8(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&bd(this._active)&&bf(this)}_get(){let e=vQ.arr(this.source)?this.source.map(gP):v2(gP(this.source));return this.calc(...e)}_start(){this.idle&&!bd(this._active)&&(this.idle=!1,v0(g9(this),e=>{e.done=!1}),vP.skipAnimation?(vN.batchedUpdates(()=>this.advance()),bf(this)):gi.start(this))}_attach(){let e=1;v0(v2(this.source),t=>{gA(t)&&gL(t,this),yz(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){v0(v2(this.source),e=>{gA(e)&&gF(e,this)}),this._active.clear(),bf(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=v2(this.source).reduce((e,t)=>Math.max(e,(yz(t)?t.priority:0)+1),0))}};function bc(e){return!1!==e.idle}function bd(e){return!e.size||Array.from(e).every(bc)}function bf(e){e.idle||(e.idle=!0,v0(g9(e),e=>{e.done=!0}),gN(e,{type:"idle",parent:e}))}var bh=(e,...t)=>new bu(e,t);vP.assign({createStringInterpolator:g$,to:(e,t)=>new bu(e,t)}),gi.advance;var bp=/^--/,bm={},bv={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bg=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),by=["Webkit","Ms","Moz","O"];bv=Object.keys(bv).reduce((e,t)=>(by.forEach(n=>e[bg(n,t)]=e[t]),e),bv);var bb=/^(matrix|translate|scale|rotate|skew)/,bx=/^(translate)/,bw=/^(rotate|skew)/,bE=(e,t)=>vQ.num(e)&&0!==e?e+t:e,bk=(e,t)=>vQ.arr(e)?e.every(e=>bk(e,t)):vQ.num(e)?e===t:parseFloat(e)===t,bj=class extends yi{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>bE(e,"px")).join(",")})`,bk(e,0)])),v1(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(bb.test(t)){if(delete r[t],vQ.und(e))return;let n=bx.test(t)?"px":bw.test(t)?"deg":"";i.push(v2(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${bE(i,n)})`,bk(i,0)]:e=>[`${t}(${e.map(e=>bE(e,n)).join(",")})`,bk(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new b_(i,o)),super(r)}},b_=class extends gR{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return v0(this.inputs,(n,r)=>{let i=gP(n[0]),[o,a]=this.transforms[r](vQ.arr(i)?i:n.map(gP));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&v0(this.inputs,e=>v0(e,e=>gA(e)&&gL(e,this)))}observerRemoved(e){0==e&&v0(this.inputs,e=>v0(e,e=>gA(e)&&gF(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),gN(this,e)}};vP.assign({batchedUpdates:e6.unstable_batchedUpdates,createStringInterpolator:g$,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var bS=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new yi(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=yd(e)||"Anonymous";return(e=vQ.str(e)?o[e]||(o[e]=yl(e,i)):e[yc]||(e[yc]=yl(e,i))).displayName=`Animated(${t})`,e};return v1(e,(t,n)=>{vQ.arr(e)&&(n=yd(t)),o[n]=o(t)}),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:bm[t]||(bm[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||bp.test(t)||bv.hasOwnProperty(t)&&bv[t]?(""+d).trim():d+"px";bp.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new bj(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,bO=n(23442),bC=(0,x.createContext)({});function bM(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,o=e.children,a=(0,x.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return x.createElement(bC.Provider,{value:a},o)}function bA(){return(bA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,bL),p=(0,x.useContext)(bN)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,b=p.yScale,w=p.dataRegistry,E=(0,x.useMemo)(function(){return y?bR(y):0},[y]),k=(0,x.useMemo)(function(){return b?bR(b):0},[b]);if((!s||!l)&&!a)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var j=s&&l||null==a?null:null==w?void 0:w.get(a),_=s||(null==j?void 0:j.xAccessor),S=l||(null==j?void 0:j.yAccessor);if(!y||!b||!v||!m||!_||!S||!g)return null;var O=(null!=(t=(0,pj.Z)(y(_(o))))?t:NaN)+E/2,C=(null!=(n=(0,pj.Z)(b(S(o))))?n:NaN)+k/2,M=O+c+16>g.left+v?-c:c,A=C+f+16>g.top+m?-f:f;return bD(O)&&bD(C)?x.createElement(r,bF({width:v,height:m},h,{x:O,y:C,dx:M,dy:A}),i):null}bV.propTypes={dataKey:pg().string,xAccessor:pg().func,yAccessor:pg().func};var bI=["x","y","AnnotationComponent"],bz=["editable"];function bZ(){return(bZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function bH(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,o=e.AnnotationComponent,a=bB(e,bI),s=(0,x.useRef)({x:n,y:i}),l=ba({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,x.useEffect)(function(){s.current={x:n,y:i}},[n,i]),x.createElement(bS.g,{transform:bh([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},x.createElement(o,bZ({x:n,y:i},a)))}function bU(e){var t=e.editable,n=bB(e,bz),r=(0,x.useCallback)(function(e){return x.createElement(bH,bZ({AnnotationComponent:t?bT:bM},e))},[t]);return x.createElement(bV,bZ({AnnotationComponent:r},n))}bU.propTypes={editable:pg().bool};var bW=n(12766),bq=n(54073),b$=n.n(bq),bY=["d","stroke","fill"];function bG(){return(bG=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,bY),o=(0,x.useRef)(t),a=(0,x.useCallback)(b$()(function(e){o.current=e},50),[]),s=(0,bW.interpolatePath)(o.current,t);a(t);var l=ba({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=ba({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return x.createElement(bS.path,bG({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var bX=n(12935),bQ=n(12151);function bJ(){return(bJ=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function xe(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>b9(e(t),n)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}let xt=xe(b9);xt.right;let xn=xt.left;function xr(e){var t,n,r=e.scale,i=e.accessor,o=e.scaledValue,a=e.data;if("invert"in r&&"function"==typeof r.invert){var s=xe(i).left,l=Number(r.invert(o)),u=s(a,l),c=a[u-1],d=a[u];n=(t=!c||Math.abs(l-i(c))>Math.abs(l-i(d))?d:c)===c?u-1:u}else{if(!("step"in r)||void 0===r.step)return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;var f=r.domain(),h=r.range().map(Number),p=[].concat(h).sort(function(e,t){return e-t}),m=xn(function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=Array(i);++r=0||(i[n]=e[n]);return i}(e,xm),O=(0,x.useContext)(bN),C=O.colorScale,M=O.theme,A=O.horizontal,P=(0,x.useMemo)(function(){return w?b1(E,w):void 0},[E,w]),T=(0,x.useMemo)(function(){return b1(E,b)},[E,b]),N=(0,x.useMemo)(function(){return j?b1(_,j):void 0},[_,j]),R=(0,x.useMemo)(function(){return b1(_,k)},[_,k]),D=(0,x.useCallback)(function(e){return bD(E(b(e)))&&bD(_(k(e)))},[E,b,_,k]),L=null!=(t=null!=(n=null==C?void 0:C(l))?n:null==M?void 0:null==(r=M.colors)?void 0:r[0])?t:"#222",F="AREASERIES_EVENT_SOURCE-"+l,V=xc({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:F,allowedSources:[b4,F]}),I=(0,x.useMemo)(function(){var e=b2(A?E:_);return A?{x0:null!=P?P:e,x1:T,y:R}:{x:T,y0:null!=N?N:e,y1:R}},[E,_,A,T,R,P,N]),z=!!(d||c),Z=(0,x.useCallback)(function(e){var t=e.glyphs;return z?t.map(function(e){return x.createElement(x.Fragment,{key:e.key},xp(xv({},e,{color:"transparent",onFocus:V.onFocus,onBlur:V.onBlur})))}):null},[z,V.onFocus,V.onBlur]);return x.createElement(x.Fragment,null,x.createElement(bX.Z,xv({},I,S,{curve:a,defined:D}),function(e){var t=e.path;return x.createElement(o,xv({className:"visx-area",stroke:"transparent",fill:L,strokeLinecap:"round"},S,{d:t(s)||""},V))}),y&&x.createElement(bQ.Z,xv({x:T,y:R,defined:D,curve:a},u),function(e){var t=e.path;return x.createElement(o,xv({className:"visx-line",fill:"transparent",stroke:L,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),z&&x.createElement(xf,{dataKey:l,data:s,xAccessor:b,yAccessor:k,xScale:E,yScale:_,renderGlyphs:Z}))}xg.propTypes={renderLine:pg().bool};var xy=b0(xg);function xb(){return(xb=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n}function xS(e,t){return e[t]}function xO(e){let t=[];return t.key=e,t}Array.prototype.slice;var xC=n(74322),xM=n(58543);function xA(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=0?"positiveSum":"negativeSum"]+=i})}}),Object.values(e)},[o,l]),d=(0,x.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=xk([]),t=x_,n=xj,r=xS;function i(i){var o,a,s,l=Array.from(e.apply(this,arguments),xO),u=l.length,c=-1;for(let e of i)for(a=0,++c;a0&&0===r&&(o?i.xScale=function(e){return e.domain(xA(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(xA(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return s(u)}},[u,f,o,d,a,s,l]),{seriesChildren:l,dataKeys:u,stackedData:d}}function xL(e,t,n){var r,i,o,a,s=e.xScale,l=e.yScale,u=e.point,c=(n?xo:xi)(e),d=(null==c?void 0:c.index)==null?null:t[c.index];return c&&d&&u?{index:c.index,datum:d,distanceX:n&&u.x>=(null!=(r=s((0,xE.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,xE.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(o=l((0,xE.l8)(c.datum)))?o:-1/0)&&u.y>=(null!=(a=l((0,xE.xf)(c.datum)))?a:1/0)?0:c.distanceY}:null}var xF=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function xV(){return(xV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(a,xF)),u=xV({fill:null!=(n=null!=(r=null==g?void 0:g(e.key))?r:null==k?void 0:null==(i=k.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:C,data:e,areaProps:u,lineProps:s}})},[O,C,g,S,k]),A=(0,x.useCallback)(function(e){var t,n,r=null==(t=S.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?xL(e,r,b):null},[S,b]),P="AREASTACK_EVENT_SOURCE-"+_.join("-"),T=xc({dataKey:_,enableEvents:void 0===o||o,findNearestDatum:A,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:P,allowedSources:[b4,P]}),N=!!(l||s),R=(0,x.useCallback)(function(e){var t=e.glyphs;return N?t.map(function(e){return x.createElement(x.Fragment,{key:e.key},xp(xV({},e,{color:"transparent",onFocus:T.onFocus,onBlur:T.onBlur})))}):null},[N,T.onFocus,T.onBlur]);return!_.some(function(e){return null==y.get(e)})&&w&&E&&g?x.createElement("g",{className:"visx-area-stack"},M.map(function(e){return x.createElement(bX.Z,xV({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return x.createElement(n,xV({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,T))})}),m&&M.map(function(e){return x.createElement(xw.Z,xV({key:"line-"+e.key,x:e.accessors.x||e.accessors.x1,y:e.accessors.y||e.accessors.y1,defined:e.accessors.defined,curve:i},e.lineProps),function(t){var r=t.path;return x.createElement(n,xV({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),N&&M.map(function(e,t){var n=M[M.length-t-1];return x.createElement(xf,{key:"glyphs-"+n.key,dataKey:n.key,data:n.data,xAccessor:n.accessors.x||n.accessors.x1,yAccessor:n.accessors.y||n.accessors.y1,xScale:xI,yScale:xI,renderGlyphs:R})})):null}function xZ(){return(xZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,xU),c=(0,x.useContext)(bN),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,x.useMemo)(function(){var e,t,n,r;return"left"===g||"right"===g?null==d?void 0:null==(e=d.axisStyles)?void 0:null==(t=e.y)?void 0:t[g]:null==d?void 0:null==(n=d.axisStyles)?void 0:null==(r=n.x)?void 0:r[g]},[d,g]),b=u.tickLabelProps,w=(0,x.useMemo)(function(){return b||y?function(e,t,n){return xW({},null==y?void 0:y.tickLabel,{width:"left"===g||"right"===g?null==p?void 0:p[g]:void 0},null==b?void 0:b(e,t,n))}:void 0},[b,y,g,p]),E="bottom"===g?(null!=v?v:0)-(null!=(t=null==p?void 0:p.bottom)?t:0):"top"===g&&null!=(n=null==p?void 0:p.top)?n:0,k="left"===g?null!=(r=null==p?void 0:p.left)?r:0:"right"===g?(null!=m?m:0)-(null!=(i=null==p?void 0:p.right)?i:0):0,j="left"===g||"right"===g?h:f;return j?x.createElement(l,xW({top:E,left:k,labelProps:null==y?void 0:y.axisLabel,stroke:null==y?void 0:null==(o=y.axisLine)?void 0:o.stroke,strokeWidth:null==y?void 0:null==(a=y.axisLine)?void 0:a.strokeWidth,tickLength:null==y?void 0:y.tickLength,tickStroke:null==y?void 0:null==(s=y.tickLine)?void 0:s.stroke},u,{tickLabelProps:w,scale:j})):null}function x$(){return(x$=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return xK({},u,{distanceX:0,distanceY:m?0:Math.abs(l.y-(h+p)/2)})}var v=a(i(u.datum)),g=(null!=v?v:1/0)+(null!=c?c:1/0),y=g+d,b=l.x>=g&&l.x<=y;return xK({},u,{distanceY:0,distanceX:b?0:Math.abs(l.x-(g+y)/2)})}(e,j,v)},[j,v]),S="BARGROUP_EVENT_SOURCE-"+k.join("-")+"}",O=xc({dataKey:k,enableEvents:void 0===f||f,findNearestDatum:_,onBlur:a,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:S,allowedSources:[b4,S]}),C=(0,x.useMemo)(function(){return b?b2(b):0},[b]),M=(0,x.useMemo)(function(){return w?b2(w):0},[w]),A=k.map(function(e){return m.get(e)});if(A.some(function(e){return null==e})||!b||!w||!p)return null;var P=bR(j),T=A.map(function(e){var t,n=e.xAccessor,r=e.yAccessor,i=e.data,o=e.key,a=function(e){var t,i;return v?(null!=(t=b(n(e)))?t:NaN)-C:(null!=(i=w(r(e)))?i:NaN)-M},s=v?function(e){var t;return null!=(t=w(r(e)))?t:NaN}:function(e){var t;return null!=(t=b(n(e)))?t:NaN},l=null!=(t=j(o))?t:0,u=v?function(e){return C+Math.min(0,a(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return M+Math.min(0,a(e))},d=v?function(e){return Math.abs(a(e))}:function(){return P},f=v?function(){return P}:function(e){return Math.abs(a(e))},h=E.find(function(e){return e.props.dataKey===o}),m=(null==h?void 0:h.props)||{},g=m.colorAccessor;return{key:o,radius:m.radius,radiusAll:m.radiusAll,radiusBottom:m.radiusBottom,radiusLeft:m.radiusLeft,radiusRight:m.radiusRight,radiusTop:m.radiusTop,bars:i.map(function(e,t){var n,r=u(e);if(!bD(r))return null;var i=c(e);if(!bD(i))return null;var a=d(e);if(!bD(a))return null;var s=f(e);return bD(s)?{key:o+"-"+t,x:r,y:i,width:a,height:s,fill:null!=(n=null==g?void 0:g(e,t))?n:p(o)}:null}).filter(function(e){return e})}});return x.createElement("g",{className:"visx-bar-group"},T.map(function(e){return e&&x.createElement(o,xX({horizontal:v,xScale:b,yScale:w},e,O,{key:e.key}))}))}xQ.propTypes={children:pg().node.isRequired,padding:pg().number,sortBars:pg().func};var xJ=n(10897),x0=function(e){return!!(null==e?void 0:e.includes("url("))},x1=function(e){return x0(e)?"rgba(0,0,0,0.1)":e},x2=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],x4=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function x3(){return(x3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function x6(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:x1(e.fill),opacity:1}}function x8(e){var t=e.bars,n=(e.xScale,e.yScale,e.horizontal,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=x5(e,x2);return x.createElement(x.Fragment,null,t.map(function(e){var t=e.key,u=e.fill,c=e.x,d=e.y,f=e.width,h=e.height;return x.createElement(xJ.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:o,bottom:a,left:s},function(e){var t=e.path;return x.createElement(bK,x3({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function x7(e){var t,n,r,i=e.bars,o=e.xScale,a=e.yScale,s=e.horizontal,l=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,x5(e,x4)),u=bs(i,x3({},(n=(t={horizontal:s,scale:s?o:a}).scale,r=!!t.horizontal,(0,x.useMemo)(function(){var e=b2(n);function t(t){var n=t.x,i=t.y,o=t.width,a=t.height;return{x:r?null!=e?e:0:n,y:r?i:null!=e?e:0,width:r?0:o,height:r?a:0,fill:x1(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:x6,update:x6,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return x.createElement(x.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,o=e.width,a=e.height,s=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:x.createElement(bS.rect,x3({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:o,height:a,fill:x0(t.fill)?t.fill:s,opacity:u},l))}))}function x9(e){return null==e.radius?x.createElement(x7,e):x.createElement(x8,x3({},e,{radius:e.radius}))}function we(){return(we=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wn),E=(0,x.useContext)(bN),k=E.colorScale,j=E.horizontal,_=E.theme,S=E.innerWidth,O=E.innerHeight,C=(0,x.useMemo)(function(){return b1(g,v)},[g,v]),M=(0,x.useMemo)(function(){return b1(b,y)},[b,y]),A=bR(j?b:g)||(j?void 0===O?0:O:void 0===S?0:S)/s.length*(1-Math.min(1,Math.max(0,void 0===o?.1:o))),P=(0,x.useMemo)(function(){return g?b2(g):0},[g]),T=(0,x.useMemo)(function(){return b?b2(b):0},[b]),N=null!=(t=null!=(n=null==k?void 0:k(l))?n:null==_?void 0:null==(r=_.colors)?void 0:r[0])?t:"#222",R=(0,x.useMemo)(function(){var e=j?0:-A/2,t=j?-A/2:0;return s.map(function(n,r){var i,o=C(n)+e;if(!bD(o))return null;var s=M(n)+t;if(!bD(s))return null;var l=j?o-P:s-T;return bD(l)?{key:""+r,x:j?P+Math.min(0,l):o,y:j?s:T+Math.min(0,l),width:j?Math.abs(l):A,height:j?A:Math.abs(l),fill:null!=(i=null==a?void 0:a(n,r))?i:N}:null}).filter(function(e){return e})},[A,N,a,s,C,M,j,P,T]),D="BARSERIES_EVENT_SOURCE-"+l,L=xc({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:D,allowedSources:[b4,D]});return x.createElement("g",{className:"vx-bar-series"},x.createElement(i,wr({bars:R,horizontal:j,xScale:g,yScale:b},L,w)))}wi.propTypes={barPadding:pg().number,colorAccessor:pg().func};var wo=b0(wi),wa=["colorAccessor"];function ws(){return(ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wa);return x.createElement(wo,ws({},n,{colorAccessor:t,BarsComponent:x9}))}var wu=n(15590);function wc(){return(wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wv),i=(0,x.useCallback)(function(e){return x.createElement(wm,wg({},e,{renderGlyph:n}))},[n]);return x.createElement(xh,wg({},r,{renderGlyphs:i}))}var wb=n(93353),wx=n(63962),ww=["rows","columns","GridRowsComponent","GridColumnsComponent"];function wE(){return(wE=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ww),l=(0,x.useContext)(bN),u=l.theme,c=l.xScale,d=l.yScale,f=l.margin,h=l.innerWidth,p=l.innerHeight,m=null==u?void 0:u.gridStyles;return x.createElement(x.Fragment,null,n&&d&&null!=h&&x.createElement(o,wE({left:null==f?void 0:f.left,lineStyle:m,width:h,scale:d},s)),i&&c&&null!=p&&x.createElement(a,wE({top:null==f?void 0:f.top,lineStyle:m,height:p,scale:c},s)))}wk.propTypes={rows:pg().bool,columns:pg().bool};var wj=["animationTrajectory"];function w_(){return(w_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wj),r=(0,x.useMemo)(function(){return function(e){return x.createElement(wb.Z,w_({},e,{animationTrajectory:t}))}},[t]),i=(0,x.useMemo)(function(){return function(e){return x.createElement(wx.Z,w_({},e,{animationTrajectory:t}))}},[t]);return x.createElement(wk,w_({GridRowsComponent:r,GridColumnsComponent:i},n))}var wO=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function wC(){return(wC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wO),k=(0,x.useContext)(bN),j=k.colorScale,_=k.theme,S=(0,x.useMemo)(function(){return b1(v,m)},[v,m]),O=(0,x.useMemo)(function(){return b1(y,g)},[y,g]),C=(0,x.useCallback)(function(e){return bD(v(m(e)))&&bD(y(g(e)))},[v,m,y,g]),M=null!=(t=null!=(n=null==j?void 0:j(s))?n:null==_?void 0:null==(r=_.colors)?void 0:r[0])?t:"#222",A="LINESERIES_EVENT_SOURCE-"+s,P=xc({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:A,allowedSources:[b4,A]}),T=!!(u||l),N=(0,x.useCallback)(function(e){var t=e.glyphs;return T?t.map(function(e){return x.createElement(x.Fragment,{key:e.key},xp(wC({},e,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur})))}):null},[T,P.onFocus,P.onBlur]);return x.createElement(x.Fragment,null,x.createElement(bQ.Z,wC({x:S,y:O,defined:C,curve:o},E),function(e){var t,n=e.path;return x.createElement(w,wC({stroke:null!=(t=null==i?void 0:i(s))?t:M,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},E,{d:n(a)||""},P))}),T&&x.createElement(xf,{dataKey:s,data:a,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:N}))}wM.propTypes={colorAccessor:pg().func};var wA=b0(wM);function wP(){return(wP=Object.assign?Object.assign.bind():function(e){for(var t=1;twD.every(n=>e[n]===t[n]);function wF(e,t){return(wF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var wV=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,wF(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return(this.node||"undefined"==typeof document||(this.node=document.createElement("div"),null!=this.props.zIndex&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node)?e6.createPortal(this.props.children,this.node):null},t}(x.PureComponent);wV.propTypes={zIndex:pg().oneOfType([pg().number,pg().string])};var wI=["detectBounds","zIndex"],wz=["left","top","detectBounds","zIndex"];function wZ(){return(wZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var wH=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],wU=["x","y"];function wW(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function wq(){return(wq=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,x.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c};u.current.element instanceof HTMLElement&&o&&(d.height=u.current.element.offsetHeight,d.width=u.current.element.offsetWidth),Object.freeze(d),f.current&&!wL(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?wR()(e,d):e,c?wR()(e,c):e]},[l,o,c,d]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",m,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){u.current.element&&(u.current.resizeObserver=new a(m),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(e=>e.addEventListener("scroll",m,{capture:!0,passive:!0})))}return t=!!r,(0,x.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,x.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,x.useEffect)(()=>{v(),g()},[r,m,p]),(0,x.useEffect)(()=>v,[]),[e=>{e&&e!==u.current.element&&(v(),u.current.element=e,u.current.scrollContainers=function e(t){let n=[];if(!t||t===document.body)return n;let{overflow:r,overflowX:i,overflowY:o}=window.getComputedStyle(t);return[r,i,o].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),g())},s,h]}(wB(ei,wI)))[0],ec=el[1],ed=el[2],ef=(0,x.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,o=wB(e,wz),a=null==i?es:i,s=(null==r?ea:r)?pX:pB,l=(void 0===t?0:t)+(ec.left||0)+window.scrollX,u=(void 0===n?0:n)+(ec.top||0)+window.scrollY;return x.createElement(wV,{zIndex:a},x.createElement(s,wZ({left:l,top:u},o)))}},[ea,es,ec.left,ec.top]),{containerRef:eu,containerBounds:ec,forceRefreshBounds:ed,TooltipInPortal:ef}),L=D.containerRef,F=D.TooltipInPortal,V=D.forceRefreshBounds,I=(0,x.useCallback)(function(e){var t;L(null!=(t=null==e?void 0:e.parentElement)?t:null)},[L]),z=null!=R&&R.tooltipOpen?o(wq({},R,{colorScale:S})):null,Z=(null==R?void 0:R.tooltipOpen)&&null!=z,B=(0,x.useRef)(!1);(0,x.useEffect)(function(){Z&&!B.current&&V(),B.current=Z},[Z,V]);var H=null==R?void 0:R.tooltipLeft,U=null==R?void 0:R.tooltipTop,W=P?bR(P):0,q=T?bR(T):0,$=(0,x.useCallback)(function(e,t){var n,r,i=null==N?void 0:N.get(e),o=null==i?void 0:i.xAccessor,a=null==i?void 0:i.yAccessor;return{left:P&&o?null!=(n=Number(P(o(t)))+W/2)?n:0:void 0,top:T&&a?null!=(r=Number(T(a(t)))+q/2)?r:0:void 0}},[N,W,q,P,T]),Y=null==R?void 0:null==(eh=R.tooltipData)?void 0:eh.nearestDatum,G=null!=(ep=null==Y?void 0:Y.key)?ep:"";if(Z&&Y&&(y||w)){var K=$(G,Y.datum),X=K.left,Q=K.top;H=y&&bD(X)?X:H,U=w&&bD(Q)?Q:U}var J=[];if(Z&&(void 0!==c&&c||p)){var ee=Number(null!=(eS=null==i?void 0:i.radius)?eS:4);if(p)Object.values(null!=(eO=null==R?void 0:null==(eC=R.tooltipData)?void 0:eC.datumByKey)?eO:{}).forEach(function(e){var t,n,r,o=e.key,a=e.datum,s=e.index,l=null!=(t=null!=(n=null==S?void 0:S(o))?n:null==O?void 0:null==(r=O.htmlLabel)?void 0:r.color)?t:"#222",u=$(o,a),c=u.left,d=u.top;bD(c)&&bD(d)&&J.push({key:o,color:l,datum:a,index:s,size:ee,x:c,y:d,glyphStyle:i,isNearestDatum:!!Y&&Y.key===o})});else if(Y){var et=$(G,Y.datum),en=et.left,er=et.top;if(bD(en)&&bD(er)){var ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,eE,ek,ej,e_,eS,eO,eC,eM,eA,eP,eT,eN,eR,eD=null!=(eM=null!=(eA=null!=(eP=null!=(eT=G&&(null==S?void 0:S(G)))?eT:null)?eP:null==O?void 0:null==(eN=O.gridStyles)?void 0:eN.stroke)?eA:null==O?void 0:null==(eR=O.htmlLabel)?void 0:eR.color)?eM:"#222";J.push({key:G,color:eD,datum:Y.datum,index:Y.index,size:ee,x:en,y:er,glyphStyle:i,isNearestDatum:!0})}}}return x.createElement(x.Fragment,null,x.createElement("svg",{ref:I,style:wY}),Z&&x.createElement(x.Fragment,null,v&&x.createElement(F,{className:"visx-crosshair visx-crosshair-vertical",left:H,top:null==A?void 0:A.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:w$},x.createElement("svg",{width:"1",height:C,overflow:"visible"},x.createElement("line",wq({x1:0,x2:0,y1:0,y2:C,strokeWidth:1.5,stroke:null!=(em=null!=(ev=null==O?void 0:null==(eg=O.gridStyles)?void 0:eg.stroke)?ev:null==O?void 0:null==(ey=O.htmlLabel)?void 0:ey.color)?em:"#222"},E)))),f&&x.createElement(F,{className:"visx-crosshair visx-crosshair-horizontal",left:null==A?void 0:A.left,top:U,offsetLeft:0,offsetTop:0,detectBounds:!1,style:w$},x.createElement("svg",{width:M,height:"1",overflow:"visible"},x.createElement("line",wq({x1:0,x2:M,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(eb=null!=(ex=null==O?void 0:null==(ew=O.gridStyles)?void 0:ew.stroke)?ex:null==O?void 0:null==(eE=O.htmlLabel)?void 0:eE.color)?eb:"#222"},r)))),J.map(function(e,t){var n=e.x,r=e.y,i=wW(e,wU);return x.createElement(F,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:w$},x.createElement("svg",{overflow:"visible"},s(wq({x:0,y:0},i))))}),x.createElement(F,wq({left:H,top:U,style:wq({},pZ,{background:null!=(ek=null==O?void 0:O.backgroundColor)?ek:"white",boxShadow:"0 1px 2px "+(null!=O&&null!=(ej=O.htmlLabel)&&ej.color?(null==O?void 0:null==(e_=O.htmlLabel)?void 0:e_.color)+"55":"#22222255")},null==O?void 0:O.htmlLabel)},j),z)))}function wQ(e){var t=(0,x.useContext)(b3);return null!=t&&t.tooltipOpen?x.createElement(wX,e):null}function wJ(e){var t=e.children,n=(0,x.useMemo)(function(){var e;return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get("*")||[]).slice().map(function(e){e(t,n)})}}},[]);return x.createElement(b5.Provider,{value:n},t)}function w0(){return(w0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,pF);return pV({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),o=(0,x.useCallback)(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]),{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:o}),c=u.tooltipOpen,d=u.tooltipLeft,f=u.tooltipTop,h=u.tooltipData,p=u.updateTooltip,m=u.hideTooltip,v=(0,x.useRef)(null),g=(0,x.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,o=e.distanceX,a=e.distanceY;v.current&&(v.current.cancel(),v.current=null);var s=Math.sqrt(Math.pow(bD(o)?o:1/0,2)+Math.pow(bD(a)?a:1/0,2));p(function(e){var o,a,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&bD(u.nearestDatum.distance)?u.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:null==t?void 0:t.x,tooltipTop:null==t?void 0:t.y,tooltipData:{nearestDatum:(null!=(o=null==u?void 0:null==(a=u.nearestDatum)?void 0:a.key)?o:"")!==r&&c0&&o>0&&y({width:m,height:o,margin:l})},[y,m,o,l]);var E=b8({source:b4});return(xu({dataKey:"nearest"===(void 0===h?"nearest":h)?xl:xs,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,allowedSources:Ei}),y)?null==m||null==o?x.createElement(ve.Z,null,function(t){return x.createElement(Eo,En({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==b?x.createElement(w1,null,x.createElement(Eo,e)):null==w?x.createElement(wJ,null,x.createElement(Eo,e)):m>0&&o>0?x.createElement("svg",{width:m,height:o,"aria-label":void 0===t?"XYChart":t},i,r&&x.createElement("rect",En({x:l.left,y:l.top,width:m-l.left-l.right,height:o-l.top-l.bottom,fill:"transparent"},E))):null:v&&g?x.createElement(Et,{xScale:v,yScale:g,theme:p,initialDimensions:{width:m,height:o,margin:l},horizontal:a},x.createElement(Eo,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function Ea(e){return x.createElement(xy,e)}function Es(e){return x.createElement(xz,e)}function El(){return(El=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Ep(e){var t=e.bars,n=(e.horizontal,e.xScale,e.yScale,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=Eh(e,Ec),u=!!(l.onFocus||l.onBlur);return x.createElement(x.Fragment,null,t.map(function(e){var t=e.key,c=Eh(e,Ed);return null==n?x.createElement("rect",Ef({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):x.createElement(xJ.Z,Ef({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:o,bottom:a,left:s},c,l))}))}function Em(){return(Em=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Eg);return x.createElement(wo,Ey({},n,{colorAccessor:t,BarsComponent:Ep}))};function Ex(){return(Ex=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,b.jsx)(d1,{value:"line",children:"Line"}),(0,b.jsx)(d1,{disabled:f||h,value:"areastack",children:"Area Stack"}),(0,b.jsx)(d1,{disabled:f||h,value:"barstack",children:"Bar Stack"}),(0,b.jsx)(d1,{disabled:f,value:"area",children:"Area"}),(0,b.jsx)(d1,{disabled:f,value:"bargroup",children:"Bar Group"})]})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)(tq,{weight:"semibold",children:"Stack series offset"}),(0,b.jsxs)(d2,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,b.jsxs)(d1,{disabled:!s,value:"none",children:["Auto",(0,b.jsx)(fj,{children:"zero-baseline"})]}),(0,b.jsxs)(d1,{disabled:!s,value:"expand",children:["Expand",(0,b.jsx)(fj,{children:"values sum to 1"})]}),(0,b.jsxs)(d1,{disabled:!s,value:"wiggle",children:["Wiggle",(0,b.jsx)(fj,{children:"stream graph"})]})]})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)(tq,{weight:"semibold",children:"Curve shape"}),(0,b.jsxs)(d2,{value:i,onValueChange:e=>o(e),className:"flex flex-col gap-1",children:[(0,b.jsx)(d1,{disabled:!a,value:"linear",children:"Linear"}),(0,b.jsx)(d1,{disabled:!a,value:"cardinal",children:"Cardinal"}),(0,b.jsx)(d1,{disabled:!a,value:"step",children:"Step"})]})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)(tq,{weight:"semibold",children:"Axes"}),(0,b.jsx)("div",{className:"flex flex-col gap-6",children:(0,b.jsxs)(d2,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,b.jsx)(d1,{value:"bottom",children:"Bottom"}),(0,b.jsx)(d1,{value:"top",children:"Top"})]})})]})]})})}let ER=(0,x.forwardRef)((e,t)=>{let{className:n}=e;return(0,b.jsxs)("div",{ref:t,className:(0,ea.cx)("flex gap-1 items-center",n),children:[(0,b.jsx)(ED,{}),(0,b.jsx)(ED,{}),(0,b.jsx)(ED,{})]})});function ED(){return(0,b.jsx)("div",{className:"w-1 h-1 bg-slate-400 dark:bg-slate-200 rounded-full animate-pulselight [&:nth-child(2)]:animation-delay-500 [&:nth-child(3)]:animation-delay-1000"})}function EL(e){let{id:t,height:n,data:r,config:i,actionsLeft:o,isLoading:a,actionsRight:s,chartType:l="areastack",curveType:u="linear",stackOffset:c="none",variant:d="panel",allowConfiguration:f=!0}=e,h=function(e,t,n,r,i,o){let a=(0,x.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return[...t,{...e,timestamp:e.timestamp+EP(1)}]},[t]),s=(0,x.useMemo)(()=>{if(a.length<2)return 0;let e=[a[0].timestamp,a[a.length-1].timestamp],t=new Date().getTime();return t>e[0]&&t"dark"===c?vM:vC,[c]),[f,h]=(0,x.useState)("center"),[p,m]=(0,x.useState)([!1,!1]),[v,g]=p,[y,w]=(0,x.useState)("bottom"),[E,k]=(0,x.useState)("right"),[j,_]=(0,x.useState)(!0),[S,O]=(0,x.useState)(!0),[C,M]=(0,x.useState)(!1),[A,P]=(0,x.useState)(!0),[T,N]=(0,x.useState)(!0),[R,D]=(0,x.useState)(r),[L,F]=(0,x.useState)(i),[V,I]=(0,x.useState)(o),z=d.xyChartTheme.gridStyles.stroke,[Z,B]=(0,x.useState)(!1),[H,U]=(0,x.useState)("star"),W=(0,x.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:o,onPointerOut:a,onPointerUp:s,isNearestDatum:l}=e,u={onPointerMove:o,onPointerOut:a,onPointerUp:s};return"star"===H?(0,b.jsx)(vd,{left:t,top:n,stroke:z,fill:i,size:10*r,...u}):"circle"===H?(0,b.jsx)(vp,{left:t,top:n,stroke:z,fill:i,r:r,...u}):"cross"===H?(0,b.jsx)(vy,{left:t,top:n,stroke:z,fill:i,size:10*r,...u}):(0,b.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[H,z]),q=(0,x.useMemo)(()=>Object.keys(EC()(t[0],"timestamp")),[t]),$=(0,x.useMemo)(()=>n.enabledGraph||q,[q,n]),Y=(0,x.useMemo)(()=>n.enabledTip||q,[q,n]),G=(0,x.useMemo)(()=>({x:q.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:q.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[q]),K=["line","area","areastack"].includes(R),X=["barstack","areastack"].includes(R),Q=(0,x.useMemo)(()=>({x:{type:"band",paddingInner:K?1:.3},y:{type:"linear"}}),[K]),J=(0,x.useMemo)(()=>"cardinal"===L&&vb.ZP||"step"===L&&mw.ZP||vx.Z,[L]),ee=(0,x.useMemo)(()=>({top:30,bottom:"top"===y?0:20,left:0,right:0}),[y]);return{id:e,accessors:G,animationTrajectory:f,config:n,scales:Q,data:a,curve:J,chartData:t,numTicks:4,isLine:K,isStack:X,todayOffset:s,initialChartType:r,chartType:R,curveType:L,keys:q,enabledGraph:$,enabledTip:Y,renderBarGroup:"bargroup"===R,renderBarStack:"barstack"===R,enableTooltipGlyph:Z,renderTooltipGlyph:W,renderAreaSeries:"area"===R,renderAreaStack:"areastack"===R,renderLineSeries:"line"===R,sharedTooltip:T,showGridColumns:g,showGridRows:v,showHorizontalCrosshair:C,showTooltip:j,showVerticalCrosshair:S,snapTooltipToDatum:!X&&A,stackOffset:V,theme:d,margin:ee,xAxisOrientation:y,yAxisOrientation:E,setUseAnimatedComponents:u,setAnimationTrajectory:h,setGridProps:m,setXAxisOrientation:w,setYAxisOrientation:k,setShowTooltip:_,setShowVerticalCrosshair:O,setShowHorizontalCrosshair:M,setSnapTooltipToDatum:P,setSharedTooltip:N,setChartType:D,setCurveType:F,setStackOffset:I,setEnableTooltipGlyph:B,setTooltipGlyphComponent:U,...l?{Annotation:bU,AreaSeries:xx,AreaStack:xB,Axis:xY,BarGroup:wt,BarSeries:wl,BarStack:wh,GlyphSeries:wy,Grid:wS,LineSeries:wT,Tooltip:wQ,XYChart:Eo}:{AreaSeries:Ea,AreaStack:Es,Axis:Eu,BarGroup:Ev,BarSeries:Eb,BarStack:Ew,Grid:E_,LineSeries:ES,Tooltip:wQ,XYChart:Eo}}}(t,r,i,l,u,c),p=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===d&&f&&(0,b.jsx)(EN,{...h})]}),(0,b.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:o}),(0,b.jsx)(ve.Z,{children:e=>{let{width:t,height:n}=e;return a?(0,b.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,b.jsx)(ER,{className:"scale-150"})}):(0,b.jsx)(vr,{...h,width:t,height:n})}})]});return"panel"===d?(0,b.jsx)(tG,{className:"relative p-px",style:{height:n},children:p}):(0,b.jsx)("div",{className:"relative p-px",style:{height:n},children:p})}/*! ***************************************************************************** +***************************************************************************** */var d5=function(){return(d5=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1){if(e.includes(t)){var r=e.split(t),i=r[0],o=r[1];if(o.length>n)return""+i+t+o.slice(0,n)}var a=e.length>n?RegExp("(\\d+)(\\d{"+n+"})"):RegExp("(\\d)(\\d+)"),s=e.match(a);if(s){var i=s[1],o=s[2];return""+i+t+o}}return e},fi=function(e,t){var n=t.groupSeparator,r=t.decimalSeparator,i=RegExp("\\d([^"+d8(void 0===n?",":n)+d8(void 0===r?".":r)+"0-9]+)"),o=e.match(i);return o?o[1]:void 0},fo=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=RegExp("^\\d?-"+(a?d8(a)+"?":"")+"\\d").test(t),c="."!==n?fa(t,n,u):t,d=fs((r?new Intl.NumberFormat(r.locale,r.currency?{style:"currency",currency:r.currency,minimumFractionDigits:i||0,maximumFractionDigits:20}:void 0):new Intl.NumberFormat(void 0,{minimumFractionDigits:i||0,maximumFractionDigits:20})).formatToParts(Number(c)),e),f=fi(d,d5({},e)),h=t.slice(-1)===n?n:"",p=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return(void 0===i&&p&&n&&(d=d.includes(n)?d.replace(RegExp("(\\d+)("+d8(n)+")(\\d+)","g"),"$1$2"+p):f&&!l?d.replace(f,""+n+p+f):""+d+n+p),l&&h)?""+d+h+l:f&&h?d.replace(f,""+h+f):f&&l?d.replace(f,""+h+l):[d,h,l].join("")},fa=function(e,t,n){var r=e;return t&&"."!==t&&(r=r.replace(RegExp(d8(t),"g"),"."),n&&"-"===t&&(r="-"+r.slice(1))),r},fs=function(e,t){var n=t.prefix,r=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce(function(e,t,a){var l=t.type,u=t.value;return 0===a&&n?"minusSign"===l?[u,n]:"currency"===l?d6(d6([],e),[n]):[n,u]:"currency"===l?n?e:d6(d6([],e),[u]):"group"===l?s?e:d6(d6([],e),[void 0!==r?r:u]):"decimal"===l?void 0!==o&&0===o?e:d6(d6([],e),[void 0!==i?i:u]):"fraction"===l?d6(d6([],e),[void 0!==o?u.slice(0,o):u]):d6(d6([],e),[u])},[""]).join("")},fl={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},fu=function(e){var t=e||{},n=t.locale,r=t.currency;return(n?new Intl.NumberFormat(n,r?{currency:r,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce(function(e,t,n){return"currency"===t.type?0===n?d5(d5({},e),{currencySymbol:t.value,prefix:t.value}):d5(d5({},e),{currencySymbol:t.value,suffix:t.value}):"group"===t.type?d5(d5({},e),{groupSeparator:t.value}):"decimal"===t.type?d5(d5({},e),{decimalSeparator:t.value}):e},fl)},fc=function(e){return RegExp(/\d/,"gi").test(e)},fd=function(e,t,n){if(void 0===t&&(t="."),void 0===n||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var r=e.split(t),i=r[0],o=r[1];if(0===n)return i;var a=o||"";if(a.lengtht.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(O&&fc(O))throw Error("decimalSeparator cannot be a number");if(C&&fc(C))throw Error("groupSeparator cannot be a number");var L=(0,b.useMemo)(function(){return fu(x)},[x]),F=O||L.decimalSeparator||"",V=C||L.groupSeparator||"";if(F&&V&&F===V&&!1===_)throw Error("decimalSeparator cannot be the same as groupSeparator");var z={decimalSeparator:F,groupSeparator:V,disableGroupSeparators:_,intlConfig:x,prefix:g||L.prefix,suffix:y},I={decimalSeparator:F,groupSeparator:V,allowDecimals:void 0===n||n,decimalsLimit:l||p||2,allowNegativeValue:void 0===r||r,disableAbbreviations:void 0!==S&&S,prefix:g||L.prefix,transformRawValue:R},Z=null!=u?fo(d5(d5({},z),{decimalScale:v,value:String(u)})):null!=f?fo(d5(d5({},z),{decimalScale:v,value:String(f)})):"",B=(0,b.useState)(Z),H=B[0],U=B[1],W=(0,b.useState)(!1),q=W[0],$=W[1],Y=(0,b.useState)(0),G=Y[0],K=Y[1],X=(0,b.useState)(0),Q=X[0],J=X[1],ee=(0,b.useState)(null),et=ee[0],en=ee[1],er=t||(0,b.useRef)(null),ei=function(e,t){$(!0);var n=ff({selectionStart:t,value:e,lastKeyStroke:et,stateValue:H,groupSeparator:V}),r=n.modifiedValue,i=n.cursorPosition,a=fn(d5({value:r},I));if(!d||!(a.replace(/-/g,"").length>d)){if(""===a||"-"===a||a===F){h&&h(void 0,o,{float:null,formatted:"",value:""}),U(a);return}var s=parseFloat(a.replace(F,".")),l=fo(d5({value:a},z));if(null!=i){var u=i+(l.length-e.length);K(u=u<=0?g?g.length:0:u),J(Q+1)}U(l),h&&h(a,o,{float:s,formatted:l,value:a})}};(0,b.useEffect)(function(){q&&"-"!==H&&er&&"object"==typeof er&&er.current&&er.current.setSelectionRange(G,G)},[H,G,er,q,Q]);var eo=d5({type:"text",inputMode:"decimal",id:i,name:o,className:a,onChange:function(e){var t=e.target;ei(t.value,t.selectionStart),M&&M(e)},onBlur:function(e){var t=e.target.value,n=fn(d5({value:t},I));if("-"===n||!n){U(""),P&&P(e);return}var r=fd(fr(n,F,p),F,void 0!==v?v:p),i=parseFloat(r.replace(F,".")),a=fo(d5(d5({},z),{value:r}));h&&h(r,o,{float:i,formatted:a,value:r}),U(a),P&&P(e)},onFocus:function(e){return A&&A(e),H?H.length:0},onKeyDown:function(e){var t=e.key;if(en(t),w&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),K(H.length);var n=parseFloat(null!=f?String(f).replace(F,"."):fn(d5({value:H},I)))||0,r="ArrowUp"===t?n+w:n-w;if(void 0!==E&&rj)return;var i=String(w).includes(".")?Number(String(w).split(".")[1].length):void 0;ei(String(i?r.toFixed(i):r).replace(".",F))}T&&T(e)},onKeyUp:function(e){var t=e.key,n=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==H){var r=fi(H,{groupSeparator:V,decimalSeparator:F});if(r&&n&&n>H.length-r.length&&er&&"object"==typeof er&&er.current){var i=H.length-r.length;er.current.setSelectionRange(i,i)}}N&&N(e)},placeholder:m,disabled:void 0!==c&&c,value:null==f||"-"===H||F&&H===F?H:fo(d5(d5({},z),{decimalScale:q?void 0:v,value:String(f)})),ref:er},D);return s?b.createElement(s,d5({},eo)):b.createElement("input",d5({},eo))});function fp(e){let{units:t,variant:n,size:r="small",state:i,noSpin:o,focus:a,cursor:s,className:l,decimalsLimit:u,onValueChange:c,...d}=e,[f,h]=(0,b.useState)();return(0,b.useEffect)(()=>{h(navigator.language)},[]),(0,x.jsxs)("div",{className:"relative",children:[(0,x.jsx)(fh,{...d,decimalsLimit:u,intlConfig:f?{locale:f}:void 0,allowDecimals:!!u,autoComplete:"off",spellCheck:!1,onValueChange:c,className:(0,ea.cx)(d4({variant:n,size:r,state:i,focus:a,noSpin:o,cursor:s,className:l}),t?"pr-9":"")}),t&&(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,x.jsx)(tq,{size:"12",weight:"medium",color:"subtle",children:t})})]})}fh.displayName="CurrencyInput";var fm=n(6391),fv=n.n(fm);function fg(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}let fy=(0,b.forwardRef)(function(e,t){let{value:n,placeholder:r=new(fv())(100),decimalsLimit:i=6,onChange:o,size:a="small",units:s,error:l,changed:u,onBlur:c,onFocus:d,...f}=e,h=(0,b.useMemo)(()=>new(fv())(n),[n]),[p,m]=(0,b.useState)(""),v=(0,b.useMemo)(()=>fx(p),[p]),g=(0,b.useCallback)(e=>{o&&o((e=fx(e))&&!isNaN(Number(e))?new(fv())(e):void 0)},[o]),y=(0,b.useCallback)(e=>{m(e),g(e)},[m,g]);return(0,b.useEffect)(()=>{if(!h.isEqualTo(v)){let e=fg(h,i);m(e)}},[h]),(0,x.jsx)(fp,{ref:t,...f,"data-testid":"numberfield",size:a,placeholder:r.isNaN()?"":fg(r,i),units:s,value:"NaN"!==p?p:"",decimalsLimit:i,onBlur:e=>{c&&c(e)},onFocus:e=>{d&&d(e)},onValueChange:e=>y(e||"")})});function fx(e){return(null==e?void 0:e.replace(/,/g,"."))||""}var fb=n(2850),fw=n(47025);let fE=new(fv())(0),fj=(0,b.forwardRef)(function(e,t){let{sc:n,placeholder:r=new(fv())(100),decimalsLimitFiat:i=6,decimalsLimitSc:o=6,onChange:a,size:s="medium",units:l="SC",showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,...m}=e,v=(0,b.useMemo)(()=>new(fv())(void 0===n?NaN:n),[n]),{settings:g}=(0,fb.Hv)(),y=(0,fw.BW)({config:{swr:{revalidateOnFocus:!1}}}),w=(0,b.useMemo)(()=>{var e;return g.siaCentral&&y.data?new(fv())((null===(e=y.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||fE):fE},[y.data,g]),[E,j]=(0,b.useState)(),[k,_]=(0,b.useState)(""),[S,O]=(0,b.useState)(""),C=(0,b.useMemo)(()=>fk(k),[k]),M=(0,b.useMemo)(()=>fk(S),[S]),A=(0,b.useCallback)(e=>{a&&a((e=fk(e))&&!isNaN(Number(e))?new(fv())(e):void 0)},[a]),P=(0,b.useCallback)(e=>{let t=fg(e,i);O(t)},[O,i]),T=(0,b.useCallback)(e=>{let t=fg(e,o);return _(t),A(t),t},[_,o,A]),N=(0,b.useCallback)(e=>{_(e),A(e)},[_,A]),R=(0,b.useCallback)(e=>{let t=new(fv())(e).times(w);P(t)},[P,w]),D=(0,b.useCallback)(e=>{let t=new(fv())(e).dividedBy(w);T(t)},[T,w]),[L,F]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{if(!v.isEqualTo(C)){let e=fg(v,o);_(e),"fiat"!==E&&R(e)}L||F(!0)},[v]),(0,b.useEffect)(()=>{L&&R(C)},[w]),(0,b.useEffect)(()=>{"sc"===E&&R(C)},[C]),(0,b.useEffect)(()=>{"fiat"===E&&D(M)},[M]),(0,x.jsxs)("div",{ref:t,className:(0,ea.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,x.jsx)(fp,{...m,"data-testid":"scInput",size:s,variant:"ghost",focus:"none",placeholder:fg(r,o),units:l,value:"NaN"!==k?k:"",decimalsLimit:o,allowNegativeValue:!1,onBlur:e=>{j(void 0),h&&h(e)},onFocus:e=>{j("sc"),p&&p(e)},onValueChange:e=>{N(e||"")}}),u&&g.siaCentral&&(0,x.jsx)(fp,{...m,"data-testid":"fiatInput",size:s,variant:"ghost",focus:"none",value:"NaN"!==S?S:"",units:g.currency.label,decimalsLimit:i,allowNegativeValue:!1,placeholder:"".concat(g.currency.prefix).concat(w?w.times(r).toFixed(i):"0.42"),prefix:f||g.currency.prefix,onFocus:e=>{j("fiat"),p&&p(e)},onBlur:e=>{j(void 0),h&&h(e)},onValueChange:e=>{O(e||"")}})]})});function fk(e){return(null==e?void 0:e.replace(/,/g,"."))||""}function f_(e){let{children:t}=e;return(0,x.jsx)(s7,{content:t,children:(0,x.jsx)("div",{className:"relative flex items-center inline mx-1",children:(0,x.jsx)(tq,{color:"subtle",children:(0,x.jsx)(lt.RdX,{className:"scale-75"})})})})}function fS(e){let{values:t,options:n,onChange:r}=e;return(0,x.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,x.jsx)(le,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}let fO=(0,ea.j)(["font-sans","font-normal","tabular-nums","flex-shrink-0","rounded","flex items-center","bg-white dark:bg-graydark-200","hover:bg-gray-50 dark:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","autofill:bg-blue-100 autofill:dark:bg-blue-800","border","focus-within:z-10","focus-within:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","[&>select:disabled]:text-gray-600 [&>select:disabled]:dark:text-graydark-700"],{variants:{size:{small:"h-7 text-sm px-1",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{state:"default",size:"small"}}),fC=b.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:o,...a}=e;return(0,x.jsxs)("div",{className:fO({size:n,state:r,className:o}),children:[i,(0,x.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,x.jsx)(lt.Cp0,{className:"pointer-events-none scale-75"})]})}),fM=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)("option",{ref:t,...r,className:(0,ea.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),fA=(0,ea.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function fP(e){let{className:t}=e;return(0,x.jsx)("div",{className:fA({className:t})})}let fT=(0,ea.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),fN=b.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,x.jsx)("div",{ref:t,className:fT({size:n,className:r}),...i})}),fR="Switch",[fD,fL]=(0,j.b)(fR),[fF,fV]=fD(fR),fz=(0,b.forwardRef)((e,t)=>{let{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:o,defaultChecked:a,required:s,disabled:l,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,b.useState)(null),p=(0,k.e)(t,e=>h(e)),m=cQ(f),v=(0,b.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,x]=(0,C.T)({prop:o,defaultProp:a,onChange:c});return(0,b.createElement)(fF,{scope:n,checked:y,disabled:l},(0,b.createElement)(M.WV.button,(0,E.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":fB(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,O.M)(e.onClick,e=>{x(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,b.createElement)(fZ,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),fI=(0,b.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=fV("SwitchThumb",n);return(0,b.createElement)(M.WV.span,(0,E.Z)({"data-state":fB(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),fZ=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,b.useRef)(null),a=dT(n),s=tt(t);return(0,b.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,b.createElement)("input",(0,E.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function fB(e){return e?"checked":"unchecked"}let fH=(0,ea.j)(["absolute left-0 rounded-full","transition-transform","bg-white dark:bg-graydark-500"],{variants:{size:{small:["w-3 h-3","translate-x-px","data-[state=checked]:translate-x-[9px]"],medium:["w-5 h-5","translate-x-0.5","data-[state=checked]:translate-x-[20px]"]}},defaultVariants:{size:"small"}}),fU=(0,ea.j)(["select-none outline-none","relative inline-flex items-center justify-center","m-0 rounded-full","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-6 h-4",medium:"w-11 h-6"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{size:"small",state:"default"}}),fW=(0,b.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:o,...a}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(fz,{className:fU({size:n,state:r,className:i}),...a,ref:t,children:(0,x.jsx)(fI,{className:fH({size:n})})}),o&&(0,x.jsx)(tq,{color:a.disabled?"subtle":"contrast",children:o})]})}),fq=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(fG);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:b.Children.count(e)>1?b.Children.only(null):(0,b.isValidElement)(e)?e.props.children:null);return(0,b.createElement)(f$,(0,E.Z)({},r,{ref:t}),(0,b.isValidElement)(e)?(0,b.cloneElement)(e,void 0,n):null)}return(0,b.createElement)(f$,(0,E.Z)({},r,{ref:t}),n)});fq.displayName="Slot";let f$=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,b.isValidElement)(n)?(0,b.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,k.F)(t,n.ref)}):b.Children.count(n)>1?b.Children.only(null):null});f$.displayName="SlotClone";let fY=({children:e})=>(0,b.createElement)(b.Fragment,null,e);function fG(e){return(0,b.isValidElement)(e)&&e.type===fY}let fK=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,b.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?fq:t;return(0,b.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,b.createElement)(o,(0,E.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),fX=(0,b.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,b.createElement)(fK.svg,(0,E.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,b.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),fQ="Popper",[fJ,f0]=(0,j.b)(fQ),[f1,f2]=fJ(fQ),f4=(0,b.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=f2("PopperAnchor",n),a=(0,b.useRef)(null),s=(0,k.e)(t,a);return(0,b.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,b.createElement)(fK.div,(0,E.Z)({},i,{ref:s}))}),f3="PopperContent",[f5,f6]=fJ(f3),[f8,f7]=fJ(f3,{hasParent:!1,positionUpdateFns:new Set}),f9=(0,b.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:x="partial",hideWhenDetached:w=!1,avoidCollisions:E=!0,onPlaced:j,..._}=e,S=f2(f3,d),[O,C]=(0,b.useState)(null),M=(0,k.e)(t,e=>C(e)),[P,T]=(0,b.useState)(null),N=tt(P),R=null!==(n=null==N?void 0:N.width)&&void 0!==n?n:0,D=null!==(r=null==N?void 0:N.height)&&void 0!==r?r:0,L="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},F=Array.isArray(g)?g:[g],V=F.length>0,z={padding:L,boundary:F.filter(hn),altBoundary:V},{reference:I,floating:Z,strategy:B,x:H,y:U,placement:W,middlewareData:q,update:$}=e7({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:e3,middleware:[hr(),eM({mainAxis:h+D,alignmentAxis:m}),E?eP({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?eT():void 0,...z}):void 0,P?e9({element:P,padding:v}):void 0,E?e_({...z}):void 0,{name:"size",options:c={...z,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},async fn(e){let t,n;let{placement:r,rects:i,platform:o,elements:a}=e,{apply:s,...l}=c,u=await ev(e,l),d=el(r),f=eu(r);"top"===d||"bottom"===d?(t=d,n=f===(await (null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let h=ey(u.left,0),p=ey(u.right,0),m=ey(u.top,0),v=ey(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:ey(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:ey(u.left,u.right)):u[n])},y=await o.getDimensions(a.floating);null==s||s({...e,...g});let x=await o.getDimensions(a.floating);return y.width!==x.width||y.height!==x.height?{reset:{rects:!0}}:{}}},hi({arrowWidth:R,arrowHeight:D}),w?eC({strategy:"referenceHidden"}):void 0].filter(ht)});(0,A.b)(()=>{I(S.anchor)},[I,S.anchor]);let Y=null!==H&&null!==U,[G,K]=ho(W),X=(0,li.W)(j);(0,A.b)(()=>{Y&&(null==X||X())},[Y,X]);let Q=null===(i=q.arrow)||void 0===i?void 0:i.x,J=null===(o=q.arrow)||void 0===o?void 0:o.y,ee=(null===(a=q.arrow)||void 0===a?void 0:a.centerOffset)!==0,[et,en]=(0,b.useState)();(0,A.b)(()=>{O&&en(window.getComputedStyle(O).zIndex)},[O]);let{hasParent:er,positionUpdateFns:ei}=f7(f3,d),eo=!er;(0,b.useLayoutEffect)(()=>{if(!eo)return ei.add($),()=>{ei.delete($)}},[eo,ei,$]),(0,A.b)(()=>{eo&&Y&&Array.from(ei).reverse().forEach(e=>requestAnimationFrame(e))},[eo,Y,ei]);let ea={"data-side":G,"data-align":K,..._,ref:M,style:{..._.style,animation:Y?void 0:"none",opacity:null!==(s=q.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,b.createElement)("div",{ref:Z,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:Y?`translate3d(${Math.round(H)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(l=q.transformOrigin)||void 0===l?void 0:l.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,b.createElement)(f5,{scope:d,placedSide:G,onArrowChange:T,arrowX:Q,arrowY:J,shouldHideArrow:ee},eo?(0,b.createElement)(f8,{scope:d,hasParent:!0,positionUpdateFns:ei},(0,b.createElement)(fK.div,ea)):(0,b.createElement)(fK.div,ea)))}),he={top:"bottom",right:"left",bottom:"top",left:"right"};function ht(e){return void 0!==e}function hn(e){return null!==e}let hr=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:n}=e,{width:r,height:i}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),hi=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=ho(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function ho(e){let[t,n="center"]=e.split("-");return[t,n]}let ha=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,b.useState)(null);return(0,b.createElement)(f1,{scope:t,anchor:r,onAnchorChange:i},n)},hs=(0,b.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return r?e6.createPortal((0,b.createElement)(fK.div,(0,E.Z)({},i,{ref:t})),r):null}),hl="dismissableLayer.update",hu=(0,b.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hc=(0,b.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,b.useContext)(hu),[f,h]=(0,b.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,b.useState)({}),v=(0,k.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(y),w=f?g.indexOf(f):-1,j=d.layersWithOutsidePointerEventsDisabled.size>0,_=w>=x,S=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,li.W)(e),r=(0,b.useRef)(!1),i=(0,b.useRef)(()=>{});return(0,b.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hf("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!_||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),C=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,li.W)(e),r=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hf("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,li.W)(e);(0,b.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=w===d.layers.size-1;t&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,b.useEffect)(()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),hd(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,b.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hd())},[f,d]),(0,b.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hl,e),()=>document.removeEventListener(hl,e)},[]),(0,b.createElement)(fK.div,(0,E.Z)({},c,{ref:v,style:{pointerEvents:j?_?"auto":"none":void 0,...e.style},onFocusCapture:(0,O.M)(e.onFocusCapture,C.onFocusCapture),onBlurCapture:(0,O.M)(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:(0,O.M)(e.onPointerDownCapture,S.onPointerDownCapture)}))});function hd(){let e=new CustomEvent(hl);document.dispatchEvent(e)}function hf(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&(0,e6.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let hh="HoverCard",[hp,hm]=(0,j.b)(hh,[f0]),hv=f0(),[hg,hy]=hp(hh),hx=(0,b.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=hy("HoverCardTrigger",n),o=hv(n);return(0,b.createElement)(f4,(0,E.Z)({asChild:!0},o),(0,b.createElement)(fK.a,(0,E.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,O.M)(e.onPointerEnter,hS(i.onOpen)),onPointerLeave:(0,O.M)(e.onPointerLeave,hS(i.onClose)),onFocus:(0,O.M)(e.onFocus,i.onOpen),onBlur:(0,O.M)(e.onBlur,i.onClose),onTouchStart:(0,O.M)(e.onTouchStart,e=>e.preventDefault())})))}),hb="HoverCardPortal",[hw,hE]=hp(hb,{forceMount:void 0}),hj="HoverCardContent",hk=(0,b.forwardRef)((e,t)=>{let n=hE(hj,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,o=hy(hj,e.__scopeHoverCard);return(0,b.createElement)(P.z,{present:r||o.open},(0,b.createElement)(h_,(0,E.Z)({"data-state":o.open?"open":"closed"},i,{onPointerEnter:(0,O.M)(e.onPointerEnter,hS(o.onOpen)),onPointerLeave:(0,O.M)(e.onPointerLeave,hS(o.onClose)),ref:t})))}),h_=(0,b.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...l}=e,u=hy(hj,n),c=hv(n),d=(0,b.useRef)(null),f=(0,k.e)(t,d),[h,p]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{if(h){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[h]),(0,b.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(u.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}},[u.isPointerDownOnContentRef,u.hasSelectionRef]),(0,b.useEffect)(()=>{if(d.current){let e=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}(d.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,b.createElement)(hc,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:(0,O.M)(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,b.createElement)(f9,(0,E.Z)({},c,l,{onPointerDown:(0,O.M)(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:f,style:{...l.style,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)",userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0}})))});function hS(e){return t=>"touch"===t.pointerType?void 0:e()}let hO=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=hv(t),u=(0,b.useRef)(0),c=(0,b.useRef)(0),d=(0,b.useRef)(!1),f=(0,b.useRef)(!1),[h=!1,p]=(0,C.T)({prop:r,defaultProp:i,onChange:o}),m=(0,b.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,b.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,b.useCallback)(()=>p(!1),[p]);return(0,b.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,b.createElement)(hg,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,b.createElement)(ha,l,n))},hC=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=hy(hb,t);return(0,b.createElement)(hw,{scope:t,forceMount:n},(0,b.createElement)(P.z,{present:n||o.open},(0,b.createElement)(hs,{asChild:!0,container:i},r)))},hM=(0,ea.j)([s6,"relative","z-10","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),hA=(0,ea.cx)(tY(),"max-w-sm","py-0.5","px-1"),hP={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},hT=b.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=s1({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,x.jsxs)(hO,{open:l,onOpenChange:u,...i,children:[n&&(0,x.jsx)(hx,{asChild:!0,children:n}),(0,x.jsx)(ny,{children:l?(0,x.jsx)(hC,{forceMount:!0,children:(0,x.jsx)(hk,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,x.jsx)(s0.div,{variants:hP,initial:"init",animate:"show",exit:"exit",className:hM(),children:(0,x.jsx)("div",{className:(0,ea.cx)(hA,a),children:r})})})}):null})]})});function hN(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,b.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,b.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,b.createContext)(r),o=n.length;function a(t){let{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][o])||i,l=(0,b.useMemo)(()=>a,Object.values(a));return(0,b.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){let s=(null==a?void 0:a[e][o])||i,l=(0,b.useContext)(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,b.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function hR(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function hD(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function hL(...e){return(0,b.useCallback)(hD(...e),e)}let hF=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(hI);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:b.Children.count(e)>1?b.Children.only(null):(0,b.isValidElement)(e)?e.props.children:null);return(0,b.createElement)(hV,(0,E.Z)({},r,{ref:t}),(0,b.isValidElement)(e)?(0,b.cloneElement)(e,void 0,n):null)}return(0,b.createElement)(hV,(0,E.Z)({},r,{ref:t}),n)});hF.displayName="Slot";let hV=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,b.isValidElement)(n)?(0,b.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?hD(t,n.ref):n.ref}):b.Children.count(n)>1?b.Children.only(null):null});hV.displayName="SlotClone";let hz=({children:e})=>(0,b.createElement)(b.Fragment,null,e);function hI(e){return(0,b.isValidElement)(e)&&e.type===hz}let hZ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,b.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?hF:t;return(0,b.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,b.createElement)(o,(0,E.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function hB(e){let t=(0,b.useRef)(e);return(0,b.useEffect)(()=>{t.current=e}),(0,b.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let hH=(null==globalThis?void 0:globalThis.document)?b.useLayoutEffect:()=>{},hU=e=>{let{present:t,children:n}=e,r=function(e){var t;let[n,r]=(0,b.useState)(),i=(0,b.useRef)({}),o=(0,b.useRef)(e),a=(0,b.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,b.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},s));return(0,b.useEffect)(()=>{let e=hW(i.current);a.current="mounted"===l?e:"none"},[l]),hH(()=>{let t=i.current,n=o.current,r=n!==e;if(r){let r=a.current,i=hW(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),hH(()=>{if(n){let e=e=>{let t=hW(i.current),r=t.includes(e.animationName);e.target===n&&r&&(0,e6.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=hW(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,b.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),r(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):b.Children.only(n),o=hL(r.ref,i.ref),a="function"==typeof n;return a||r.isPresent?(0,b.cloneElement)(i,{ref:o}):null};function hW(e){return(null==e?void 0:e.animationName)||"none"}hU.displayName="Presence";let hq=w["useId".toString()]||(()=>void 0),h$=0;function hY(e){let t=e+"CollectionProvider",[n,r]=hN(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=b.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=hL(t,i.collectionRef);return b.createElement(hF,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=b.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=b.useRef(null),s=hL(t,a),c=o(l,n);return b.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),b.createElement(hF,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=b.useRef(null),o=b.useRef(new Map).current;return b.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=b.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}let hG="dismissableLayer.update",hK=(0,b.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hX=(0,b.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,b.useContext)(hK),[f,h]=(0,b.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,b.useState)({}),v=hL(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(y),w=f?g.indexOf(f):-1,j=d.layersWithOutsidePointerEventsDisabled.size>0,k=w>=x,_=function(e,t=null==globalThis?void 0:globalThis.document){let n=hB(e),r=(0,b.useRef)(!1),i=(0,b.useRef)(()=>{});return(0,b.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hJ("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!k||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),S=function(e,t=null==globalThis?void 0:globalThis.document){let n=hB(e),r=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hJ("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=hB(e);(0,b.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=w===d.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,b.useEffect)(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(o=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),hQ(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=o)}},[f,p,r,d]),(0,b.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hQ())},[f,d]),(0,b.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hG,e),()=>document.removeEventListener(hG,e)},[]),(0,b.createElement)(hZ.div,(0,E.Z)({},c,{ref:v,style:{pointerEvents:j?k?"auto":"none":void 0,...e.style},onFocusCapture:hR(e.onFocusCapture,S.onFocusCapture),onBlurCapture:hR(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:hR(e.onPointerDownCapture,_.onPointerDownCapture)}))});function hQ(){let e=new CustomEvent(hG);document.dispatchEvent(e)}function hJ(e,t,n,{discrete:r}){var i,o;let a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?(i=a,o=s,i&&(0,e6.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,b.createElement)(hZ.span,(0,E.Z)({},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}}));let h0="NavigationMenu",[h1,h2,h4]=hY(h0),[h3,h5,h6]=hY(h0),[h8,h7]=hN(h0,[h4,h6]),[h9,pe]=h8(h0),[pt,pn]=h8(h0),[pr,pi]=h8("NavigationMenuItem"),po=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pe("NavigationMenuIndicator",n),o=h2(n),[a,s]=(0,b.useState)(null),[l,u]=(0,b.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,b.useEffect)(()=>{var e;let t=o(),n=null===(e=t.find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;n&&s(n)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return pd(a,f),pd(i.indicatorTrack,f),l?(0,b.createElement)(hZ.div,(0,E.Z)({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null},"NavigationMenuContent"),pa=((e,t)=>{let n=pe(po,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:i}=n;return hH(()=>{r(e.value,{ref:t,...e})},[e,t,r]),hH(()=>()=>i(e.value),[e.value,i]),null},"navigationMenu.rootContentDismiss"),ps=(0,b.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=pe(po,n),d=(0,b.useRef)(null),f=hL(d,t),h=function(e,t){return`${e}-trigger-${t}`}(c.baseId,r),p=function(e,t){return`${e}-content-${t}`}(c.baseId,r),m=h2(n),v=(0,b.useRef)(null),{onItemDismiss:g}=c;(0,b.useEffect)(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{var t;g(),s(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(pa,t),()=>e.removeEventListener(pa,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,b.useMemo)(()=>{let e=m(),t=e.map(e=>e.value);"rtl"===c.dir&&t.reverse();let n=t.indexOf(c.value),i=t.indexOf(c.previousValue),o=r===c.value,a=i===t.indexOf(r);if(!o&&!a)return v.current;let s=(()=>{if(n!==i){if(o&&-1!==i)return n>i?"from-end":"from-start";if(a&&-1!==n)return n>i?"to-start":"to-end"}return null})();return v.current=s,s},[c.previousValue,c.value,c.dir,m,r]);return(0,b.createElement)(pl,{asChild:!0},(0,b.createElement)(hX,(0,E.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(pa,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:hR(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:hR(e.onPointerDownOutside,e=>{var t;let n=e.target,r=m().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),i=c.isRootMenu&&(null===(t=c.viewport)||void 0===t?void 0:t.contains(n));(r||i||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:hR(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey,n="Tab"===e.key&&!t;if(n){let t=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(e.currentTarget),n=document.activeElement,i=t.findIndex(e=>e===n),a=e.shiftKey,s=a?t.slice(0,i).reverse():t.slice(i+1,t.length);if(pc(s))e.preventDefault();else{var r;null===(r=o.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:hR(e.onEscapeKeyDown,e=>{a.current=!0})})))}),pl=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,o=pe("NavigationMenuViewport",n),a=hL(t,o.onViewportChange),s=pn(po,e.__scopeNavigationMenu),[l,u]=(0,b.useState)(null),[c,d]=(0,b.useState)(null),f=l?(null==l?void 0:l.width)+"px":void 0,h=l?(null==l?void 0:l.height)+"px":void 0,p=!!o.value,m=p?o.value:o.previousValue;return pd(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,b.createElement)(hZ.div,(0,E.Z)({"data-state":function(e){return e?"open":"closed"}(p),"data-orientation":o.orientation},i,{ref:a,style:{pointerEvents:!p&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:hR(e.onPointerEnter,o.onContentEnter),onPointerLeave:hR(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(o.onContentLeave))}),Array.from(s.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,b.createElement)(hU,{key:e,present:n||i},(0,b.createElement)(ps,(0,E.Z)({},r,{ref:hD(t,e=>{i&&e&&d(e)})})))}))},(0,b.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pe("FocusGroup",n);return(0,b.createElement)(h3.Provider,{scope:n},(0,b.createElement)(h3.Slot,{scope:n},(0,b.createElement)(hZ.div,(0,E.Z)({dir:i.dir},r,{ref:t}))))})),pu=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=h5(n),o=pe("FocusGroupItem",n);return(0,b.createElement)(h3.ItemSlot,{scope:n},(0,b.createElement)(hZ.button,(0,E.Z)({},r,{ref:t,onKeyDown:hR(e.onKeyDown,e=>{let t=["Home","End",...pu].includes(e.key);if(t){let t=i().map(e=>e.ref.current),n="rtl"===o.dir?"ArrowRight":"ArrowLeft";if([n,"ArrowUp","End"].includes(e.key)&&t.reverse(),pu.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>pc(t)),e.preventDefault()}})})))};function pc(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function pd(e,t){let n=hB(t);hH(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var pf=n(38617);let ph=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,x.jsx)(dX,{...r,ref:t,className:(0,ea.cx)("select-none flex items-center rounded cursor-pointer","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-700 dark:text-graydark-700","data-[state=checked]:text-gray-1100 data-[state=checked]:dark:text-white",n)})});function pp(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:o}=(0,pf.F)();return(0,x.jsxs)(dK,{value:i,tabIndex:r,className:(0,ea.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,x.jsx)(ph,{value:"system",children:(0,x.jsx)(s7,{className:n,sideOffset:16,content:"System",children:(0,x.jsx)(lt.$Iz,{})})}),(0,x.jsx)(ph,{value:"light",children:(0,x.jsx)(s7,{className:n,sideOffset:16,content:"Light",children:(0,x.jsx)(lt.JaG,{})})}),(0,x.jsx)(ph,{value:"dark",children:(0,x.jsx)(s7,{className:n,sideOffset:16,content:"Dark",children:(0,x.jsx)(lt.osk,{})})})]})}var pm=n(14582),pv=n(63739),pg=n(13980),py=n.n(pg),px=n(72779),pb=n.n(px),pw=n(47440),pE=n(59309),pj=n(19067),pk=n(71220),p_=n(28142);function pS(e){return"bandwidth"in e?e.bandwidth():0}var pO=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function pC(){return(pC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pO),g=null!=m?m:(0,pk.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+pS(r)/2,x=g.map(function(e,t){var n,o=(null!=(n=(0,p_.Z)(r(e)))?n:0)+y;return{index:t,from:new pj.Z({x:0,y:o}),to:new pj.Z({x:i,y:o})}});return b.createElement(pE.Z,{className:pb()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:x}):x.map(function(e){var t=e.from,n=e.to,r=e.index;return b.createElement(pw.default,pC({key:"row-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}pM.propTypes={tickValues:py().array,width:py().number.isRequired};var pA=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function pP(){return(pP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pA),g=null!=p?p:(0,pk.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+pS(r)/2,x=g.map(function(e,t){var n,o=(null!=(n=(0,p_.Z)(r(e)))?n:0)+y;return{index:t,from:new pj.Z({x:o,y:0}),to:new pj.Z({x:o,y:i})}});return b.createElement(pE.Z,{className:pb()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:x}):x.map(function(e){var t=e.from,n=e.to,r=e.index;return b.createElement(pw.default,pP({key:"column-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}pT.propTypes={tickValues:py().array,height:py().number.isRequired};var pN=n(64183),pR=n(8597);function pD(e){var t=e.id,n=e.width,r=e.height,i=e.children;return b.createElement("defs",null,b.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}pD.propTypes={id:py().string.isRequired,width:py().number.isRequired,height:py().number.isRequired,children:py().node.isRequired};var pL={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function pF(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,o=e.strokeWidth,a=e.strokeDasharray,s=e.strokeLinecap,l=void 0===s?"square":s,u=e.shapeRendering,c=void 0===u?"auto":u,d=e.orientation,f=void 0===d?["vertical"]:d,h=e.background,p=e.className,m=Array.isArray(f)?f:[f];return b.createElement(pD,{id:t,width:n,height:r},!!h&&b.createElement("rect",{className:pb()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return b.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:pb()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case pL.horizontal:return"M 0,"+t/2+" l "+t+",0";case pL.diagonal:return"M 0,"+t+" l "+t+","+-t+" M "+-t/4+","+t/4+" l "+t/2+","+-t/2+"\n M "+3/4*t+","+5/4*t+" l "+t/2+","+-t/2;case pL.diagonalRightToLeft:return"M 0,0 l "+t+","+t+"\n M "+-t/4+","+3/4*t+" l "+t/2+","+t/2+"\n M "+3/4*t+","+-t/4+" l "+t/2+","+t/2;case pL.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}pF.propTypes={id:py().string.isRequired,width:py().number.isRequired,height:py().number.isRequired,className:py().string,background:py().string,stroke:py().string,strokeWidth:py().oneOfType([py().number,py().string]),strokeDasharray:py().oneOfType([py().string,py().number]),strokeLinecap:py().oneOf(["square","butt","round","inherit"]),shapeRendering:py().oneOfType([py().string,py().number]),orientation:py().array};var pV=["tooltipOpen"];function pz(){return(pz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pI);return b.createElement("div",pZ({ref:t,className:pb()("visx-tooltip",n),style:pZ({top:null==r||null==l?r:r+l,left:null==i||null==a?i:i+a},m&&{position:"absolute"},!h&&c)},v),d)});function pU(){return(pU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,pG),g=!1,y=!1;if(u&&l){var x=void 0===r?0:r,w=void 0===f?0:f;if(l.width){var E=x+o+u.width-l.width,j=u.width-x-o;g=E>0&&E>j}else{var k=x+o+u.width-window.innerWidth,_=u.width-x-o;g=k>0&&k>_}if(l.height){var S=w+s+u.height-l.height,O=u.height-w-s;y=S>0&&S>O}else y=w+s+u.height>window.innerHeight;x=g?x-u.width-o:x+o,w=y?w-u.height-s:w+s,t="translate("+(x=Math.round(x))+"px, "+(w=Math.round(w))+"px)"}return b.createElement(pH,pK({ref:m,style:pK({left:0,top:0,transform:t},!p&&d)},v),b.createElement(pY,{value:{isFlippedVertically:!y,isFlippedHorizontally:!g}},n))}pX.propTypes={nodeRef:py().oneOfType([py().string,py().func,py().object])};var pQ=((EU=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=b.createRef(),n.getRects=n.getRects.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,pW(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:e6.findDOMNode(this),this.setState(function(){return t.getRects()})},n.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():pq,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():pq}},n.render=function(){return b.createElement(pX,pU({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(b.PureComponent)).displayName="withBoundingRects("+(pX.displayName||"")+")",EU),pJ=n(99985);function p0(e,t){if("invert"in e&&void 0!==e.invert)return e.invert(t).valueOf();var n=e.range(),r=n[0],i=n[1],o=0,a=("step"in e&&void 0!==e.step?e.step():1)*(i-r)/Math.abs(i-r);if(a>0)for(;t>r+a*(o+1);)o+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-a):Math.max(e.dx,t.bounds.x0-r),u=e.dy>0?Math.min(e.dy,t.bounds.y1-s):Math.max(e.dy,t.bounds.y0-i);return p9({},t,{isBrushing:!0,extent:p9({},t.extent,{x0:r+l,x1:a+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=p9({},e,{isBrushing:!1,start:p9({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:p9({},e.end,{x:Math.max(e.extent.x0,e.extent.x1),y:Math.max(e.extent.y0,e.extent.y1)})});return r&&r(t),t}),i&&i()},t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,me(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.stageWidth,i=e.stageHeight,o=e.brush,a=e.disableDraggingSelection,s=e.onMouseLeave,l=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return b.createElement(pJ.Z,{width:t,height:n,resetOnStart:!0,onDragStart:this.selectionDragStart,onDragMove:this.selectionDragMove,onDragEnd:this.selectionDragEnd,isDragging:f?h:void 0},function(e){var h=e.isDragging,p=e.dragStart,m=e.dragEnd,v=e.dragMove;return b.createElement("g",null,h&&b.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:mt}),b.createElement("rect",p9({x:Math.min(o.extent.x0,o.extent.x1),y:Math.min(o.extent.y0,o.extent.y1),width:t,height:n,className:"visx-brush-selection",onPointerDown:a?void 0:p,onPointerLeave:function(e){s&&s(e)},onPointerMove:function(e){v(e),l&&l(e)},onPointerUp:function(e){f||m(e),u&&u(e)},onClick:function(e){c&&c(e)},style:{pointerEvents:o.isBrushing||o.activeHandle?"none":"all",cursor:a?void 0:"move"}},d)))})},t}(b.Component);function mr(){return(mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(l,e.bounds.x1-o):Math.max(l,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-a):Math.max(u,e.bounds.y0-r);return mr({},e,{isBrushing:!0,extent:mr({},e.extent,{x0:n+s,y0:r+c,x1:o+s,y1:a+c})})}),"select"===i&&n.updateBrush(function(e){var t=e.start,r=t.x,i=t.y,o={x:Math.min(Math.max(r+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},a=n.getExtent(s,o);return mr({},e,{end:o,extent:a})})}},n.getExtent=function(e,t){var r=n.props,i=r.brushDirection,o=r.width,a=r.height;return{x0:"vertical"===i?0:Math.min(e.x||0,t.x||0),x1:"vertical"===i?o:Math.max(e.x||0,t.x||0),y0:"horizontal"===i?0:Math.min(e.y||0,t.y||0),y1:"horizontal"===i?a:Math.max(e.y||0,t.y||0)}},n.handleDragStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin,s=t.useWindowMoveEvents,l=null!=a&&a.left?a.left:0,u=null!=a&&a.top?a.top:0,c={x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-o-u},d=mr({},c);r&&r(c),n.updateBrush(function(t){return mr({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?p2(e.event):void 0})})},n.handleBrushStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin;if(r){var s=null!=a&&a.left?a.left:0,l=null!=a&&a.top?a.top:0;r({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-o-l})}},n.handleDragMove=function(e){var t=n.props,r=t.left,i=t.top,o=t.inheritedMargin,a=t.useWindowMoveEvents;if(e.isDragging&&!a){var s=(null==o?void 0:o.left)||0,l=(null==o?void 0:o.top)||0,u={x:(e.x||0)+e.dx-r-s,y:(e.y||0)+e.dy-i-l};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return mr({},e,{end:u,extent:r})})}},n.handleDragEnd=function(){var e=n.props,t=e.onBrushEnd,r=e.resetOnEnd;e.useWindowMoveEvents||n.updateBrush(function(e){var i=e.extent,o=mr({},e,{start:{x:i.x0,y:i.y0},end:{x:i.x1,y:i.y1},isBrushing:!1,brushingType:void 0,activeHandle:null});return t&&t(o),r&&n.reset(),o})},n.getBrushWidth=function(){var e=n.state.extent,t=e.x0,r=e.x1;return Math.max(Math.max(t,r)-Math.min(t,r),0)},n.getBrushHeight=function(){var e=n.state.extent,t=e.y1,r=e.y0;return Math.max(Math.max(r,t)-Math.min(r,t),0)},n.handles=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2,l=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-s,y:o-s,height:e,width:l+e},bottom:{x:r-s,y:a-s,height:e,width:l+e},right:{x:i-s,y:o-s,height:u+e,width:e},left:{x:r-s,y:o-s,height:u+e,width:e}}},n.corners=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2;return{topLeft:{x:Math.min(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},topRight:{x:Math.max(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},bottomLeft:{x:Math.min(r,i)-s,y:Math.max(o,a)-s,width:e,height:e},bottomRight:{x:Math.max(r,i)-s,y:Math.max(o,a)-s,width:e,height:e}}},n.updateBrush=function(e){var t=n.props.onChange;n.setState(e,function(){t&&t(n.state)})},n.reset=function(){var e=n.props,t=e.width,r=e.height;n.updateBrush(function(){return{start:{x:0,y:0},end:{x:0,y:0},extent:{x0:-1,x1:-1,y0:-1,y1:-1},bounds:{x0:0,x1:t,y0:0,y1:r},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},n.handleBrushingTypeChange=function(e,t){n.updateBrush(function(n){var r=mr({},n,{brushingType:e,isBrushing:void 0!==e});return(t||void 0===e)&&(r.brushPageOffset=t),r})};var n,r=t.initialBrushPosition,i=r?n.getExtent(r.start,r.end):{x0:-1,x1:-1,y0:-1,y1:-1};return n.state={start:{x:Math.max(0,i.x0),y:Math.max(0,i.y0)},end:{x:Math.max(0,i.x1),y:Math.max(0,i.y1)},extent:i,bounds:{x0:0,x1:n.props.width,y0:0,y1:n.props.height},isBrushing:!1,brushingType:void 0,activeHandle:null},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mi(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){var t=this;(this.props.width!==e.width||this.props.height!==e.height)&&this.setState(function(n){var r=n.start,i=n.end,o=n.extent;if(!(-1===o.x0&&-1===o.x1&&-1===o.y0&&-1===o.y1)){var a=t.props.width/e.width,s=t.props.height/e.height;r={x:a*o.x0,y:s*o.y0},i={x:a*o.x1,y:s*o.y1},o=t.getExtent(r,i)}return{start:r,end:i,extent:o,bounds:{x0:0,x1:t.props.width,y0:0,y1:t.props.height}}})},n.componentDidMount=function(){this.props.useWindowMoveEvents&&(window.addEventListener("mouseup",this.handleWindowPointerUp),window.addEventListener("mousemove",this.handleWindowPointerMove))},n.componentWillUnmount=function(){this.props.useWindowMoveEvents&&(window.removeEventListener("mouseup",this.handleWindowPointerUp),window.removeEventListener("mousemove",this.handleWindowPointerMove))},n.render=function(){var e=this,t=this.state,n=t.start,r=t.end,i=this.props,o=i.top,a=i.left,s=i.width,l=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,v=i.disableDraggingSelection,g=i.clickSensitivity,y=i.useWindowMoveEvents,x=i.renderBrushHandle,w=this.state.brushingType,E=this.handles(),j=this.corners(),k=this.getBrushWidth(),_=this.getBrushHeight(),S=new Set(p);return b.createElement(pE.Z,{className:"visx-brush",top:o,left:a},b.createElement(pJ.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===w:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,o=t.dragEnd;return b.createElement(pm.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,md),g=o,y=s,x=a,w=l;return void 0!==m&&!m||g||y||x||w||(g="0",y="0",x="0",w="1"),b.createElement("defs",null,b.createElement("linearGradient",mf({id:n,x1:g,y1:x,x2:y,y2:w,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&b.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&b.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}function mp(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}function mm(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function mv(){return 0}function mg(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}mh.propTypes={id:py().string.isRequired,from:py().string,to:py().string,x1:py().oneOfType([py().string,py().number]),x2:py().oneOfType([py().string,py().number]),y1:py().oneOfType([py().string,py().number]),y2:py().oneOfType([py().string,py().number]),fromOffset:py().oneOfType([py().string,py().number]),fromOpacity:py().oneOfType([py().string,py().number]),toOffset:py().oneOfType([py().string,py().number]),toOpacity:py().oneOfType([py().string,py().number]),rotate:py().oneOfType([py().string,py().number]),transform:py().string,children:py().node,vertical:py().bool};var mx=n(12436),mb=n.n(mx),mw=n(55746),mE=n(45742),mj=n(27266),mk=["id","markerWidth","markerHeight","markerUnits","children"];function m_(){return(m_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mk);return b.createElement("defs",null,b.createElement("marker",m_({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}mS.propTypes={id:py().string.isRequired,size:py().number,markerWidth:py().oneOfType([py().string,py().number]),markerHeight:py().oneOfType([py().string,py().number]),markerUnits:py().string,refX:py().oneOfType([py().string,py().number]),refY:py().oneOfType([py().string,py().number]),strokeWidth:py().number,children:py().node.isRequired};var mO=["id","size","strokeWidth"];function mC(){return(mC=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mO),s=2*r+o,l=s/2;return b.createElement(mS,mC({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),b.createElement("circle",{r:r,cx:l,cy:l}))}var mA=n(64170),mP={top:"top",left:"left",bottom:"bottom"};function mT(){return(mT=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mI),k=null!=g?g:"tickFormat"in v?v.tickFormat():mF.Z,_=h===mP.left,S=h===mP.top,O=S||h===mP.bottom,C=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var n=e.bandwidth();return"center"===t&&(n/=2),e.round()&&(n=Math.round(n)),function(t){var r=e(t);return"number"==typeof r?r+n:r}}return e}(v),M=_||S?-1:1,A=v.range(),P=(void 0===(t=m)&&(t=0),"number"==typeof t?{start:t,end:t}:mz({start:0,end:0},t)),T=mV({x:Number(A[0])+.5-P.start,y:0},O),N=mV({x:Number(A[A.length-1])+.5+P.end,y:0},O),R=(null!=w?w:(0,pk.Z)(v,d)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),D=R.map(function(e){var t=e.value,n=e.index,r=(0,p_.Z)(C(t));return{value:t,index:n,from:mV({x:r,y:0},O),to:mV({x:r,y:x*M},O),formattedValue:k(t,n,R)}});return b.createElement(pE.Z,{className:pb()("visx-axis",i),top:void 0===E?0:E,left:void 0===u?0:u},r(mZ({},j,{axisFromPoint:T,axisToPoint:N,hideAxisLine:void 0!==o&&o,hideTicks:void 0!==a&&a,hideZero:l,horizontal:O,numTicks:d,orientation:h,rangePadding:m,scale:v,tickFormat:k,tickLength:x,tickPosition:C,tickSign:M,ticks:D})))}var mH=["axisClassName","labelOffset","tickLabelProps","tickLength"];function mU(){return(mU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mH);return b.createElement(mB,mU({axisClassName:pb()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:mP.bottom,tickLabelProps:void 0===r?mW:r,tickLength:void 0===i?8:i},o))}var m$=["axisClassName","labelOffset","tickLabelProps","tickLength"];function mY(){return(mY=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,m$);return b.createElement(mB,mY({axisClassName:pb()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:mP.left,tickLabelProps:void 0===r?mG:r,tickLength:void 0===i?8:i},o))}let mX=e=>new Date((null==e?void 0:e.timestamp)||0),mQ=e=>(null==e?void 0:e.value)||0,mJ="var(--colors-hiContrast)",m0={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:mJ},m1={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:mJ};function m2(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:o,xScale:a,yScale:s,hideBottomAxis:l=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,x.jsxs)(pE.Z,{left:d||o.left,top:c||o.top,children:[(0,x.jsx)(mM,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,x.jsx)(mh,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,x.jsx)(mw.Z,{data:t,x:e=>a(mX(e))||0,y:e=>s(mQ(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?mE.ZP:mj.Z}),!l&&(0,x.jsx)(mq,{top:i,scale:a,numTicks:r>520?10:5,stroke:mJ,tickStroke:mJ,tickLabelProps:()=>m0}),!u&&(0,x.jsx)(mK,{scale:s,numTicks:5,stroke:mJ,tickStroke:mJ,tickLabelProps:()=>m1}),h]})}var m4=n(6692);let m3={inherit:m4.inherit,current:m4.current,transparent:m4.transparent,black:m4.black,white:m4.white,slate:m4.slate,zinc:m4.zinc,neutral:m4.neutral,stone:m4.stone,red:m4.red,orange:m4.orange,amber:m4.amber,yellow:m4.yellow,lime:m4.lime,green:m4.green,emerald:m4.emerald,teal:m4.teal,cyan:m4.cyan,sky:m4.sky,blue:m4.blue,indigo:m4.indigo,violet:m4.violet,purple:m4.purple,fuchsia:m4.fuchsia,pink:m4.pink,rose:m4.rose,mask:"rgba(30, 169, 76, .3)",accent:{50:"#F6FFF9",100:"#E9FBEF",200:"#D5F2DE",300:"#C9EED4",400:"#BBE8C9",500:"#9BDAAE",600:"#71C48A",700:"#3EAA5F",800:"#05872D",900:"#056B24",1e3:"#04511B",1100:"#011F0A"},accentdark:{50:"#05150A",100:"#051C0C",200:"#062811",300:"#073515",400:"#064018",500:"#075820",600:"#056824",700:"#077A2A",800:"#05872D",900:"#069F35",1e3:"#2FA052",1100:"#D9F4E1"},gray:{50:"hsl(206, 30.0%, 98.8%)",100:"hsl(210, 16.7%, 97.6%)",200:"hsl(209, 13.3%, 95.3%)",300:"hsl(209, 12.2%, 93.2%)",400:"hsl(208, 11.7%, 91.1%)",500:"hsl(208, 11.3%, 88.9%)",600:"hsl(207, 11.1%, 85.9%)",700:"hsl(205, 10.7%, 78.0%)",800:"hsl(206, 6.0%, 56.1%)",900:"hsl(206, 5.8%, 52.3%)",1e3:"hsl(206, 6.0%, 43.5%)",1100:"hsl(206, 24.0%, 9.0%)"},graydark:{50:"hsl(200, 7.0%, 8.8%)",100:"hsl(195, 7.1%, 11.0%)",200:"hsl(197, 6.8%, 13.6%)",300:"hsl(198, 6.6%, 15.8%)",400:"hsl(199, 6.4%, 17.9%)",500:"hsl(201, 6.2%, 20.5%)",600:"hsl(203, 6.0%, 24.3%)",700:"hsl(207, 5.6%, 31.6%)",800:"hsl(206, 6.0%, 43.9%)",900:"hsl(206, 5.2%, 49.5%)",1e3:"hsl(206, 6.0%, 63.0%)",1100:"hsl(210, 6.0%, 93.0%)"}};var m5=n(96206);let m6={top:10,bottom:15,left:10,right:10},m8="brush_pattern",m7="brush_gradient",m9=mb()(e=>e(),15),ve=function(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i>>1;0>n(e[t],r)?i=t+1:o=t}while(imp(e(t),n),r=(t,n)=>e(t)-n):(t=e===mp||e===mm?e:mv,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){let a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:o=t}while(inew Date((null==e?void 0:e.timestamp)||0)).left;void 0===EW&&(EW={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===Eq&&(Eq=function(e,t){return b.createElement("div",t,e)});var vt=n(70390),vn=n(3440),vr=n.n(vn);function vi(e){let{id:t,width:n,height:r,accessors:i,animationTrajectory:o,curve:a,data:s,config:l,scales:u,enabledGraph:c,enabledTip:d,isStack:f,todayOffset:h,numTicks:p,renderAreaSeries:m,renderAreaStack:v,renderBarGroup:g,renderBarStack:y,enableTooltipGlyph:w,renderTooltipGlyph:E,renderLineSeries:j,sharedTooltip:k,showHorizontalCrosshair:_,showTooltip:S,showVerticalCrosshair:O,snapTooltipToDatum:C,stackOffset:M,margin:A,theme:P,xAxisOrientation:T,yAxisOrientation:N,AreaSeries:R,AreaStack:D,Axis:L,BarGroup:F,BarSeries:V,BarStack:z,Grid:I,LineSeries:Z,Tooltip:B,XYChart:H}=e;return(0,x.jsxs)(H,{theme:P.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:A,captureEvents:!0,children:[(0,x.jsx)("g",{children:(0,x.jsx)("rect",{className:"fill-gray-600 dark:fill-graydark-600 h-full w-px y-0",style:{left:"".concat(100*h,"%")}})},"today-line-".concat(n,"-").concat(r)),(0,x.jsx)(mh,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(l.data).map(e=>{let[n,r]=e,i=r.color;return(0,x.jsxs)(b.Fragment,{children:[(0,x.jsx)(pF,{id:"pattern-".concat(vo(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,x.jsx)(mh,{id:"gradient-".concat(vo(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,x.jsx)(I,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:o,numTicks:p},"grid-".concat(o)),y&&(0,x.jsx)(z,{offset:M,children:c.map(e=>(0,x.jsx)(V,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>va(t,e,l)},e))}),g&&(0,x.jsx)(F,{children:c.map(e=>(0,x.jsx)(V,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>va(t,e,l)},e))}),m&&(0,x.jsx)(x.Fragment,{children:c.map(e=>(0,x.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:va(t,e,l),fill:va(t,e,l),curve:a},e))}),v&&(0,x.jsx)(D,{curve:a,offset:M,renderLine:"wiggle"!==M,children:c.map(e=>(0,x.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:va(t,e,l),fill:va(t,e,l)},e))}),j&&(0,x.jsx)(x.Fragment,{children:c.map(e=>{var t,n;return(0,x.jsx)(Z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:a},e)})}),(0,x.jsx)(L,{orientation:T,numTicks:p,animationTrajectory:o,tickFormat:e=>(0,m5.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:P.labels.color,fontFamily:P.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(o)),(0,x.jsx)(L,{label:null==M?"SC":"expand"===M?"Fraction of total":"",orientation:N,numTicks:p,tickLength:0,rangePadding:0,animationTrajectory:o,tickFormat:()=>""},"temp-axis-".concat(o)),S&&(0,x.jsx)(B,{showHorizontalCrosshair:_,showVerticalCrosshair:O,snapTooltipToDatumX:C,snapTooltipToDatumY:C,showDatumGlyph:C&&!g,showSeriesGlyphs:k&&!g,renderGlyph:w?E:void 0,renderTooltip:e=>{var t,n;let{tooltipData:r}=e,o=null==r?void 0:null===(t=r.nearestDatum)||void 0===t?void 0:t.datum,a=null==r?void 0:null===(n=r.nearestDatum)||void 0===n?void 0:n.key,s=k?d:a?[a]:[],u=l.formatTimestamp||(e=>(0,m5.rN)(e,{timeStyle:"short",hour12:!1})),c=s.map(e=>{var t,n;return{key:e,category:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),h=vr()(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,x.jsxs)("div",{className:(0,ea.cx)(s6,"flex flex-col gap-2 py-1"),children:[(0,x.jsx)(tq,{font:"mono",size:"12",color:"contrast",className:"text-end",children:o?u(i.date(o)):"No date"}),(0,x.jsx)(c_,{color:"panel",className:"w-full"}),(0,x.jsx)("div",{className:(0,ea.cx)("grid gap-x-6 gap-y-4",p.length>1?"grid-cols-2":"grid-cols-1"),children:p.map(e=>{let[t,n]=e,r=o?n.reduce((e,t)=>{let{key:n}=t,r=i.y[n](o);return null==r||Number.isNaN(r)?e:e+r},0):0;return(0,x.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,x.jsx)(tq,{weight:"semibold",children:t}),(0,x.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,s;let{key:u}=e,c=o&&i.y[u](o);return(0,x.jsxs)(b.Fragment,{children:[(0,x.jsx)(tq,{color:"accent",style:{color:null===(n=l.data)||void 0===n?void 0:null===(t=n[u])||void 0===t?void 0:t.color},className:(0,ea.cx)(a===u?"underline":""),children:(null===(s=l.data)||void 0===s?void 0:null===(r=s[u])||void 0===r?void 0:r.label)||u}),(0,x.jsx)(tq,{size:"12",style:{textAlign:"end"},className:(0,ea.cx)(a===u?"underline":""),children:null==c||Number.isNaN(c)?"–":l.format(c)})]},u)}),n.length>1&&f&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(tq,{className:"pt-2",children:"total"}),(0,x.jsx)(tq,{size:"12",weight:"bold",className:"pt-2 text-end",children:l.format(r)})]})]})]},t)})})]})}})]})}function vo(e,t){return"".concat(e,"-").concat(t)}function va(e,t,n){var r;let i=vo(e,t);return(null===(r=n.data)||void 0===r?void 0:r[t])?n.data[t].pattern?"url(#pattern-".concat(i,")"):"url(#gradient-".concat(i,")"):"url(#gradient-default)"}var vs=n(24037),vl=n(86707);function vu(e){var t=e.top,n=e.left,r=e.className,i=e.children;return b.createElement(pE.Z,{className:pb()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}vu.propTypes={top:py().number,left:py().number,className:py().string,children:py().node};var vc=["children","className","top","left","size"];function vd(){return(vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vc),s=(0,vs.Z)();return(s.type(vl.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?b.createElement(b.Fragment,null,t({path:s})):b.createElement(vu,{top:r,left:i},b.createElement("path",vd({className:pb()("visx-glyph-star",n),d:s()||""},a)))}vf.propTypes={children:py().func,className:py().string,top:py().number,left:py().number,size:py().oneOfType([py().number,py().func])};var vh=["top","left","className"];function vp(){return(vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vh);return b.createElement(vu,{top:void 0===t?0:t,left:void 0===n?0:n},b.createElement("circle",vp({className:pb()("visx-glyph-dot",r)},i)))}vm.propTypes={className:py().string,top:py().number,left:py().number,r:py().number,cx:py().number,cy:py().number};var vv=n(9135),vg=["children","className","top","left","size"];function vy(){return(vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vg),s=(0,vs.Z)();return(s.type(vv.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?b.createElement(b.Fragment,null,t({path:s})):b.createElement(vu,{top:r,left:i},b.createElement("path",vy({className:pb()("visx-glyph-cross",n),d:s()||""},a)))}vx.propTypes={children:py().func,className:py().string,top:py().number,left:py().number,size:py().oneOfType([py().number,py().func])};var vb=n(46385),vw=n(20651),vE={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},vj=vE.gray,vk=vj[7],v_=[vE.cyan[9],vE.cyan[3],vE.yellow[5],vE.red[4],vE.grape[8],vE.grape[5],vE.pink[9]];function vS(){return(vS=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)vP(e,n,{get:t[n],enumerable:!0})})(vT,{assign:()=>ge,colors:()=>v8,createStringInterpolator:()=>EG,skipAnimation:()=>v7,to:()=>EK,willAdvance:()=>v9});var vN=vG(),vR=e=>vW(e,vN),vD=vG();vR.write=e=>vW(e,vD);var vL=vG();vR.onStart=e=>vW(e,vL);var vF=vG();vR.onFrame=e=>vW(e,vF);var vV=vG();vR.onFinish=e=>vW(e,vV);var vz=[];vR.setTimeout=(e,t)=>{let n=vR.now()+t,r=()=>{let e=vz.findIndex(e=>e.cancel==r);~e&&vz.splice(e,1),vH-=~e?1:0},i={time:n,handler:e,cancel:r};return vz.splice(vI(n),0,i),vH+=1,vq(),i};var vI=e=>~(~vz.findIndex(t=>t.time>e)||~vz.length);vR.cancel=e=>{vL.delete(e),vF.delete(e),vV.delete(e),vN.delete(e),vD.delete(e)},vR.sync=e=>{vU=!0,vR.batchedUpdates(e),vU=!1},vR.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,vR.onStart(n)}return r.handler=e,r.cancel=()=>{vL.delete(n),t=null},r};var vZ="undefined"!=typeof window?window.requestAnimationFrame:()=>{};vR.use=e=>vZ=e,vR.now="undefined"!=typeof performance?()=>performance.now():Date.now,vR.batchedUpdates=e=>e(),vR.catch=console.error,vR.frameLoop="always",vR.advance=()=>{"demand"!==vR.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):vY()};var vB=-1,vH=0,vU=!1;function vW(e,t){vU?(t.delete(e),e(0)):(t.add(e),vq())}function vq(){vB<0&&(vB=0,"demand"!==vR.frameLoop&&vZ(v$))}function v$(){~vB&&(vZ(v$),vR.batchedUpdates(vY))}function vY(){let e=vB;vB=vR.now();let t=vI(vB);if(t&&(vK(vz.splice(0,t),e=>e.handler()),vH-=t),!vH){vB=-1;return}vL.flush(),vN.flush(e?Math.min(64,vB-e):16.667),vF.flush(),vD.flush(),vV.flush()}function vG(){let e=new Set,t=e;return{add(n){vH+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(vH-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,vH-=t.size,vK(t,t=>t(n)&&e.add(t)),vH+=e.size,t=e)}}}function vK(e,t){e.forEach(e=>{try{t(e)}catch(e){vR.catch(e)}})}function vX(){}var vQ=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),vJ={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function v0(e,t){if(vJ.arr(e)){if(!vJ.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function v2(e,t,n){if(vJ.arr(e)){for(let r=0;rvJ.und(e)?[]:vJ.arr(e)?e:[e];function v3(e,t){if(e.size){let n=Array.from(e);e.clear(),v1(n,t)}}var v5=(e,...t)=>v3(e,e=>e(...t)),v6=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),v8=null,v7=!1,v9=vX,ge=e=>{e.to&&(EK=e.to),e.now&&(vR.now=e.now),void 0!==e.colors&&(v8=e.colors),null!=e.skipAnimation&&(v7=e.skipAnimation),e.createStringInterpolator&&(EG=e.createStringInterpolator),e.requestAnimationFrame&&vR.use(e.requestAnimationFrame),e.batchedUpdates&&(vR.batchedUpdates=e.batchedUpdates),e.willAdvance&&(v9=e.willAdvance),e.frameLoop&&(vR.frameLoop=e.frameLoop)},gt=new Set,gn=[],gr=[],gi=0,go={get idle(){return!gt.size&&!gn.length},start(e){gi>e.priority?(gt.add(e),vR.onStart(ga)):(gs(e),vR(gu))},advance:gu,sort(e){if(gi)vR.onFrame(()=>go.sort(e));else{let t=gn.indexOf(e);~t&&(gn.splice(t,1),gl(e))}},clear(){gn=[],gt.clear()}};function ga(){gt.forEach(gs),gt.clear(),vR(gu)}function gs(e){gn.includes(e)||gl(e)}function gl(e){gn.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(gn,t=>t.priority>e.priority),0,e)}function gu(e){let t=gr;for(let n=0;n0}var gc="[-+]?\\d*\\.?\\d+",gd=gc+"%";function gf(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var gh=RegExp("rgb"+gf(gc,gc,gc)),gp=RegExp("rgba"+gf(gc,gc,gc,gc)),gm=RegExp("hsl"+gf(gc,gd,gd)),gv=RegExp("hsla"+gf(gc,gd,gd,gc)),gg=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gy=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gx=/^#([0-9a-fA-F]{6})$/,gb=/^#([0-9a-fA-F]{8})$/;function gw(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gE(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=gw(i,r,e+1/3),a=gw(i,r,e),s=gw(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function gj(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function gk(e){let t=parseFloat(e);return(t%360+360)%360/360}function g_(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function gS(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function gO(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gx.exec(e))?parseInt(t[1]+"ff",16)>>>0:v8&&void 0!==v8[e]?v8[e]:(t=gh.exec(e))?(gj(t[1])<<24|gj(t[2])<<16|gj(t[3])<<8|255)>>>0:(t=gp.exec(e))?(gj(t[1])<<24|gj(t[2])<<16|gj(t[3])<<8|g_(t[4]))>>>0:(t=gg.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=gb.exec(e))?parseInt(t[1],16)>>>0:(t=gy.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=gm.exec(e))?(255|gE(gk(t[1]),gS(t[2]),gS(t[3])))>>>0:(t=gv.exec(e))?(gE(gk(t[1]),gS(t[2]),gS(t[3]))|g_(t[4]))>>>0:null;if(null===n)return e;n=n||0;let r=(4278190080&n)>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}var gC=(e,t,n)=>{if(vJ.fun(e))return e;if(vJ.arr(e))return gC({range:e,output:t,extrapolate:n});if(vJ.str(e.output[0]))return EG(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},gM=Symbol.for("FluidValue.get"),gA=Symbol.for("FluidValue.observers"),gP=e=>!!(e&&e[gM]),gT=e=>e&&e[gM]?e[gM]():e,gN=e=>e[gA]||null;function gR(e,t){let n=e[gA];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var gD=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");gL(this,e)}},gL=(e,t)=>gz(e,gM,t);function gF(e,t){if(e[gM]){let n=e[gA];n||gz(e,gA,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function gV(e,t){let n=e[gA];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[gA]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var gz=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),gI=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,gZ=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,gB=RegExp(`(${gI.source})(%|[a-z]+)`,"i"),gH=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,gU=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,gW=e=>{let[t,n]=gq(e);if(!t||v6())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&gU.test(n))return gW(n);else if(n)return n;return e},gq=e=>{let t=gU.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},g$=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,gY=e=>{EX||(EX=v8?RegExp(`(${Object.keys(v8).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>gT(e).replace(gU,gW).replace(gZ,gO).replace(EX,gO)),n=t.map(e=>e.match(gI).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})),i=r.map(t=>gC({...e,output:t}));return e=>{let n=!gB.test(t[0])&&t.find(e=>gB.test(e))?.replace(gI,""),r=0;return t[0].replace(gI,()=>`${i[r++](e)}${n||""}`).replace(gH,g$)}},gG="react-spring: ",gK=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${gG}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},gX=gK(console.warn),gQ=gK(console.warn);function gJ(e){return vJ.str(e)&&("#"==e[0]||/\d/.test(e)||!v6()&&gU.test(e)||e in(v8||{}))}var g0=v6()?b.useEffect:b.useLayoutEffect,g1=()=>{let e=(0,b.useRef)(!1);return g0(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function g2(){let e=(0,b.useState)()[1],t=g1();return()=>{t.current&&e(Math.random())}}var g4=e=>(0,b.useEffect)(e,g3),g3=[];function g5(e){let t=(0,b.useRef)();return(0,b.useEffect)(()=>{t.current=e}),t.current}var g6=Symbol.for("Animated:node"),g8=e=>!!e&&e[g6]===e,g7=e=>e&&e[g6],g9=(e,t)=>vQ(e,g6,t),ye=e=>e&&e[g6]&&e[g6].getPayload(),yt=class{constructor(){g9(this,this)}getPayload(){return this.payload||[]}},yn=class extends yt{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,vJ.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new yn(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return vJ.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,vJ.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},yr=class extends yn{constructor(e){super(0),this._string=null,this._toString=gC({output:[e,e]})}static create(e){return new yr(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(vJ.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=gC({output:[this.getValue(),e]})),this._value=0,super.reset()}},yi={dependencies:null},yo=class extends yt{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return v2(this.source,(n,r)=>{g8(n)?t[r]=n.getValue(e):gP(n)?t[r]=gT(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&v1(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return v2(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){yi.dependencies&&gP(e)&&yi.dependencies.add(e);let t=ye(e);t&&v1(t,e=>this.add(e))}},ya=class extends yo{constructor(e){super(e)}static create(e){return new ya(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(ys)),!0)}};function ys(e){let t=gJ(e)?yr:yn;return t.create(e)}function yl(e){let t=g7(e);return t?t.constructor:vJ.arr(e)?ya:gJ(e)?yr:yn}var yu=(e,t)=>{let n=!vJ.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,b.forwardRef)((r,i)=>{let o=(0,b.useRef)(null),a=n&&(0,b.useCallback)(e=>{o.current=(i&&(vJ.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return yi.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new yo(e),yi.dependencies=null,[e,n]}(r,t),u=g2(),c=()=>{let e=o.current;if(n&&!e)return;let r=!!e&&t.applyAnimatedValues(e,s.getValue(!0));!1===r&&u()},d=new yc(c,l),f=(0,b.useRef)();g0(()=>(f.current=d,v1(l,e=>gF(e,d)),()=>{f.current&&(v1(f.current.deps,e=>gV(e,f.current)),vR.cancel(f.current.update))})),(0,b.useEffect)(c,[]),g4(()=>()=>{let e=f.current;v1(e.deps,t=>gV(t,e))});let h=t.getComponentProps(s.getValue());return b.createElement(e,{...h,ref:a})})},yc=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&vR.write(this.update)}},yd=Symbol.for("AnimatedComponent"),yf=e=>vJ.str(e)?e:e&&vJ.str(e.displayName)?e.displayName:vJ.fun(e)&&e.name||null;function yh(e,...t){return vJ.fun(e)?e(...t):e}var yp=(e,t)=>!0===e||!!(t&&e&&(vJ.fun(e)?e(t):v4(e).includes(t))),ym=(e,t)=>vJ.obj(e)?t&&e[t]:e,yv=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,yg=e=>e,yy=(e,t=yg)=>{let n=yx;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);vJ.und(n)||(r[i]=n)}return r},yx=["config","onProps","onStart","onChange","onPause","onResume","onRest"],yb={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function yw(e){let t=function(e){let t={},n=0;if(v2(e,(e,r)=>{!yb[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return v2(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function yE(e){return e=gT(e),vJ.arr(e)?e.map(yE):gJ(e)?vT.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yj(e){for(let t in e)return!0;return!1}function yk(e){return vJ.fun(e)||vJ.arr(e)&&vJ.obj(e[0])}function y_(e,t){e.ref?.delete(e),t?.delete(e)}function yS(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var yO={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},yC=class{constructor(){this.velocity=0,Object.assign(this,yO)}};function yM(e,t){if(vJ.und(t.decay)){let n=!vJ.und(t.tension)||!vJ.und(t.friction);!n&&vJ.und(t.frequency)&&vJ.und(t.damping)&&vJ.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var yA=[],yP=class{constructor(){this.changed=!1,this.values=yA,this.toValues=null,this.fromValues=yA,this.config=new yC,this.immediate=!1}};function yT(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u;let c=yp(n.cancel??r?.cancel,t);if(c)h();else{vJ.und(n.pause)||(i.paused=yp(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||yp(e,t)),l=yh(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-vR.now()}function f(){l>0&&!vT.skipAnimation?(i.delayed=!0,u=vR.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var yN=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?yL(e.get()):t.every(e=>e.noop)?yR(e.get()):yD(e.get(),t.every(e=>e.finished)),yR=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),yD=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),yL=e=>({value:e,cancelled:!0,finished:!1});function yF(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=yy(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>(u=e,c=t)),p=e=>{let t=i<=(n.cancelId||0)&&yL(r)||i!==n.asyncId&&yD(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let o=new yz,a=new yI;return(async()=>{if(vT.skipAnimation)throw yV(n),a.result=yD(r,!1),c(a),a;p(o);let s=vJ.obj(e)?{...e}:{...t,to:e};s.parentId=i,v2(f,(e,t)=>{vJ.und(s[t])&&(s[t]=e)});let l=await r.start(s);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(vT.skipAnimation)return yV(n),yD(r,!1);try{let t;t=vJ.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),h]),d=yD(r.get(),!0,!1)}catch(e){if(e instanceof yz)d=e.result;else if(e instanceof yI)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return vJ.fun(a)&&vR.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function yV(e,t){v3(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var yz=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},yI=class extends Error{constructor(){super("SkipAnimationSignal")}},yZ=e=>e instanceof yH,yB=1,yH=class extends gD{constructor(){super(...arguments),this.id=yB++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=g7(this);return e&&e.getValue()}to(...e){return vT.to(this,e)}interpolate(...e){return gX(`${gG}The "interpolate" function is deprecated in v9 (use "to" instead)`),vT.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){gR(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||go.sort(this),gR(this,{type:"priority",parent:this,priority:e})}},yU=Symbol.for("SpringPhase"),yW=e=>(1&e[yU])>0,yq=e=>(2&e[yU])>0,y$=e=>(4&e[yU])>0,yY=(e,t)=>t?e[yU]|=3:e[yU]&=-3,yG=(e,t)=>t?e[yU]|=4:e[yU]&=-5,yK=class extends yH{constructor(e,t){if(super(),this.animation=new yP,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!vJ.und(e)||!vJ.und(t)){let n=vJ.obj(e)?{...e}:{...t,from:e};vJ.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(yq(this)||this._state.asyncTo)||y$(this)}get goal(){return gT(this.animation.to)}get velocity(){let e=g7(this);return e instanceof yn?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return yW(this)}get isAnimating(){return yq(this)}get isPaused(){return y$(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=ye(r.to);!a&&gP(r.to)&&(i=v4(gT(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==yr?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,i=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=vJ.arr(o.velocity)?o.velocity[l]:o.velocity,f=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(vJ.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*n);d=i+a/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,t=a*r}else{t=null==s.lastVelocity?a:s.lastVelocity;let n=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!vJ.und(r),h=i==u?s.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=-(1e-6*o.tension)*(d-u),n=-(.001*o.friction)*t,i=(e+n)/o.mass;t+=1*i,d+=1*t}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(r=(o.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),t=((d=i+o.easing(r)*(u-i))-s.lastPosition)/e,c=1==r}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=g7(this),l=s.getValue();if(t){let e=gT(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return vR.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(yq(this)){let{to:e,config:t}=this.animation;vR.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){let t=this.queue||(this.queue=[]);return t.push(e),this}start(e,t){let n;return vJ.und(e)?(n=this.queue||[],this.queue=[]):n=[vJ.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>{let t=this._update(e);return t})).then(e=>yN(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),yV(this._state,e&&this._lastCallId),vR.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=vJ.obj(n)?n[t]:n)||yk(n))&&(n=void 0),null==(r=vJ.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return yW(this)||(e.reverse&&([n,r]=[r,n]),r=gT(r),vJ.und(r)?g7(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,yy(e,(e,t)=>/^on/.test(t)?ym(e,n):e)),y2(this,e,"onProps"),y4(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return yT(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{y$(this)||(yG(this,!0),v5(o.pauseQueue),y4(this,"onPause",yD(this,yX(this,this.animation.to)),this))},resume:()=>{y$(this)&&(yG(this,!1),yq(this)&&this._resume(),v5(o.resumeQueue),y4(this,"onResume",yD(this,yX(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=yQ(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(yL(this));let r=!vJ.und(e.to),i=!vJ.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(yL(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||vJ.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!v0(d,u);f&&(s.from=d),d=gT(d);let h=!v0(c,l);h&&this._focus(c);let p=yk(t.to),{config:m}=s,{decay:v,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(yM(n={...n},t),t={...n,...t}),yM(e,t),Object.assign(e,t),yO)null==e[r]&&(e[r]=yO[r]);let{frequency:r,damping:i}=e,{mass:o}=e;vJ.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,yh(t.config,o),t.config!==a.config?yh(a.config,o):void 0);let y=g7(this);if(!y||vJ.und(c))return n(yD(this,!0));let x=vJ.und(t.reset)?i&&!t.default:!vJ.und(d)&&yp(t.reset,o),b=x?d:this.get(),w=yE(c),E=vJ.num(w)||vJ.arr(w)||gJ(w),j=!p&&(!E||yp(a.immediate||t.immediate,o));if(h){let e=yl(c);if(e!==y.constructor){if(j)y=this._set(w);else throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let k=y.constructor,_=gP(c),S=!1;if(!_){let e=x||!yW(this)&&f;(h||e)&&(_=!(S=v0(yE(b),w))),(v0(s.immediate,j)||j)&&v0(m.decay,v)&&v0(m.velocity,g)||(_=!0)}if(S&&yq(this)&&(s.changed&&!x?_=!0:_||this._stop(l)),!p&&((_||gP(l))&&(s.values=y.getPayload(),s.toValues=gP(c)?null:k==yr?[1]:v4(w)),s.immediate==j||(s.immediate=j,j||x||this._set(l)),_)){let{onRest:e}=s;v1(y1,e=>y2(this,t,e));let r=yD(this,yX(this,l));v5(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&vR.batchedUpdates(()=>{s.changed=!x,e?.(r,this),x?yh(a.onRest,r):s.onStart?.(r,this)})}x&&this._set(b),p?n(yF(t.to,t,this._state,this)):_?this._start():yq(this)&&!h?this._pendingCalls.add(n):n(yR(b))}_focus(e){let t=this.animation;e!==t.to&&(gN(this)&&this._detach(),t.to=e,gN(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;gP(t)&&(gF(t,this),yZ(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;gP(e)&&gV(e,this)}_set(e,t=!0){let n=gT(e);if(!vJ.und(n)){let e=g7(this);if(!e||!v0(n,e.getValue())){let r=yl(n);e&&e.constructor==r?e.setValue(n):g9(this,r.create(n)),e&&vR.batchedUpdates(()=>{this._onChange(n,t)})}}return g7(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,y4(this,"onStart",yD(this,yX(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yh(this.animation.onChange,e,this)),yh(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;g7(this).reset(gT(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),yq(this)||(yY(this,!0),y$(this)||this._resume())}_resume(){vT.skipAnimation?this.finish():go.start(this)}_stop(e,t){if(yq(this)){yY(this,!1);let n=this.animation;v1(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),gR(this,{type:"idle",parent:this});let r=t?yL(this.get()):yD(this.get(),yX(this,e??n.to));v5(this._pendingCalls,r),n.changed&&(n.changed=!1,y4(this,"onRest",r,this))}}};function yX(e,t){let n=yE(t),r=yE(e.get());return v0(r,n)}function yQ(e,t=e.loop,n=e.to){let r=yh(t);if(r){let i=!0!==r&&yw(r),o=(i||e).reverse,a=!i||i.reset;return yJ({...e,loop:t,default:!1,pause:void 0,to:!o||yk(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function yJ(e){let{to:t,from:n}=e=yw(e),r=new Set;return vJ.obj(t)&&y0(t,r),vJ.obj(n)&&y0(n,r),e.keys=r.size?Array.from(r):null,e}function y0(e,t){v2(e,(e,n)=>null!=e&&t.add(n))}var y1=["onStart","onRest","onChange","onPause","onResume"];function y2(e,t,n){e.animation[n]=t[n]!==yv(t,n)?ym(t[n],e.key):void 0}function y4(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var y3=["onStart","onChange","onRest"],y5=1,y6=class{constructor(e,t){this.id=y5++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];vJ.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(yJ(e)),this}start(e){let{queue:t}=this;return(e?t=v4(e).map(yJ):this.queue=[],this._flush)?this._flush(this,t):(xr(this,t),y8(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;v1(v4(t),t=>n[t].stop(!!e))}else yV(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(vJ.und(e))this.start({pause:!0});else{let t=this.springs;v1(v4(e),e=>t[e].pause())}return this}resume(e){if(vJ.und(e))this.start({pause:!1});else{let t=this.springs;v1(v4(e),e=>t[e].resume())}return this}each(e){v2(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,v3(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&v3(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,v3(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}vR.onFrame(this._onFrame)}};function y8(e,t){return Promise.all(t.map(t=>y7(e,t))).then(t=>yN(e,t))}async function y7(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=vJ.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=vJ.arr(i)||vJ.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):v1(y3,n=>{let r=t[n];if(vJ.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,v5(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===yv(t,"cancel");(c||h&&d.asyncId)&&f.push(yT(++e._lastAsyncId,{props:t,state:d,actions:{pause:vX,resume:vX,start(t,n){h?(yV(d,e._lastAsyncId),n(yL(e))):(t.onRest=s,n(yF(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=yN(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=yQ(t,a,i);if(n)return xr(e,[n]),y7(e,n,!0)}return l&&vR.batchedUpdates(()=>l(p,e,e.item)),p}function y9(e,t){let n={...e.springs};return t&&v1(v4(t),e=>{vJ.und(e.keys)&&(e=yJ(e)),vJ.obj(e.to)||(e={...e,to:void 0}),xn(n,e,e=>xt(e))}),xe(e,n),n}function xe(e,t){v2(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,gF(t,e))})}function xt(e,t){let n=new yK;return n.key=e,t&&gF(n,t),n}function xn(e,t,n){t.keys&&v1(t.keys,r=>{let i=e[r]||(e[r]=n(r));i._prepareNode(t)})}function xr(e,t){v1(t,t=>{xn(e.springs,t,t=>xt(t,e))})}var xi=({children:e,...t})=>{let n=(0,b.useContext)(xo),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,b.useState)(()=>({inputs:t,result:e()})),r=(0,b.useRef)(),i=r.current,o=i;if(o){let n=!!(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=xo;return b.createElement(o,{value:t},e)},xo=(Object.assign(xi,b.createContext({})),xi.Provider._context=xi,xi.Consumer._context=xi,xi);xi.Provider=xo.Provider,xi.Consumer=xo.Consumer;var xa=()=>{let e=[],t=function(t){gQ(`${gG}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let r=[];return v1(e,(e,i)=>{if(vJ.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return v1(e,e=>e.pause(...arguments)),this},t.resume=function(){return v1(e,e=>e.resume(...arguments)),this},t.set=function(t){v1(e,(e,n)=>{let r=vJ.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return v1(e,(e,r)=>{if(vJ.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return v1(e,e=>e.stop(...arguments)),this},t.update=function(t){return v1(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return vJ.fun(e)?e(n,t):e};return t._getProps=n,t};function xs(e,t){let n=vJ.fun(e),[[r],i]=function(e,t,n){let r=vJ.fun(t)&&t;r&&!n&&(n=[]);let i=(0,b.useMemo)(()=>r||3==arguments.length?xa():void 0,[]),o=(0,b.useRef)(0),a=g2(),s=(0,b.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=y9(e,t),r=o.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t]);return r?y8(e,t):new Promise(r=>{xe(e,n),s.queue.push(()=>{r(y8(e,t))}),a()})}}),[]),l=(0,b.useRef)([...s.ctrls]),u=[],c=g5(e)||0;function d(e,n){for(let i=e;i{v1(l.current.slice(e,c),e=>{y_(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,b.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>y9(e,u[t])),h=(0,b.useContext)(xi),p=g5(h),m=h!==p&&yj(h);g0(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],v1(e,e=>e())),v1(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(yS(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),g4(()=>()=>{v1(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function xl(e,t,n){let r=vJ.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,b.useMemo)(()=>r||3==arguments.length?xa():void 0,[]),h=v4(e),p=[],m=(0,b.useRef)(null),v=i?null:m.current;g0(()=>{m.current=p}),g4(()=>(v1(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{v1(m.current,e=>{e.expired&&clearTimeout(e.expirationId),y_(e.ctrl,f),e.ctrl.stop(!0)})}));let g=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):xu++})}return vJ.und(n)?e:vJ.fun(n)?e.map(n):v4(n)}(h,r?r():t,v),y=i&&m.current||[];g0(()=>v1(y,({ctrl:e,item:t,key:n})=>{y_(e,f),yh(u,t,n)}));let x=[];if(v&&v1(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=x[t]=g.indexOf(e.key))&&(p[t]=e)}),v1(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new y6},p[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;v1(x,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}vJ.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let w=-a,E=g2(),j=yy(t),k=new Map,_=(0,b.useRef)(new Map),S=(0,b.useRef)(!1);v1(p,(e,n)=>{let i,o;let u=e.key,f=e.phase,h=r?r():t,p=yh(h.delay||0,u);if("mount"==f)i=h.enter,o="enter";else{let e=0>g.indexOf(u);if("leave"!=f){if(e)i=h.leave,o="leave";else{if(!(i=h.update))return;o="update"}}else{if(e)return;i=h.enter,o="enter"}}if(i=yh(i,e.item,n),!(i=vJ.obj(i)?yw(i):{to:i}).config){let t=d||j.config;i.config=yh(t,e.item,n,o)}w+=a;let y={...j,delay:p+w,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==o&&vJ.und(y.from)){let i=r?r():t,o=vJ.und(i.initial)||v?i.from:i.initial;y.from=yh(o,e.item,n)}let{onResolve:x}=y;y.onResolve=e=>{yh(x,e);let t=m.current,n=t.find(e=>e.key===u);if(n){if(e.cancelled&&"update"!=n.phase)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=yh(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(E,r));return}}}e&&t.some(e=>e.expired)&&(_.current.delete(n),l&&(S.current=!0),E())}}};let b=y9(e.ctrl,y);"leave"===o&&l?_.current.set(e,{phase:o,springs:b,payload:y}):k.set(e,{phase:o,springs:b,payload:y})});let O=(0,b.useContext)(xi),C=g5(O),M=O!==C&&yj(O);g0(()=>{M&&v1(p,e=>{e.ctrl.start({default:O})})},[O]),v1(k,(e,t)=>{if(_.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),g0(()=>{v1(_.current.size?_.current:k,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),M&&"enter"==e&&r.start({default:O}),t&&(yS(r,t.ref),(r.ref||f)&&!S.current?r.update(t):(r.start(t),S.current&&(S.current=!1)))})},i?void 0:n);let A=e=>b.createElement(b.Fragment,null,p.map((t,n)=>{let{springs:r}=k.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?b.createElement(i.type,{...i.props,key:vJ.str(t.key)||vJ.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[A,f]:A}var xu=1,xc=class extends yH{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=gC(...t);let n=this._get(),r=yl(n);g9(this,r.create(n))}advance(e){let t=this._get(),n=this.get();v0(t,n)||(g7(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&xf(this._active)&&xh(this)}_get(){let e=vJ.arr(this.source)?this.source.map(gT):v4(gT(this.source));return this.calc(...e)}_start(){this.idle&&!xf(this._active)&&(this.idle=!1,v1(ye(this),e=>{e.done=!1}),vT.skipAnimation?(vR.batchedUpdates(()=>this.advance()),xh(this)):go.start(this))}_attach(){let e=1;v1(v4(this.source),t=>{gP(t)&&gF(t,this),yZ(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){v1(v4(this.source),e=>{gP(e)&&gV(e,this)}),this._active.clear(),xh(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=v4(this.source).reduce((e,t)=>Math.max(e,(yZ(t)?t.priority:0)+1),0))}};function xd(e){return!1!==e.idle}function xf(e){return!e.size||Array.from(e).every(xd)}function xh(e){e.idle||(e.idle=!0,v1(ye(e),e=>{e.done=!0}),gR(e,{type:"idle",parent:e}))}var xp=(e,...t)=>new xc(e,t);vT.assign({createStringInterpolator:gY,to:(e,t)=>new xc(e,t)}),go.advance;var xm=/^--/,xv={},xg={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xy=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),xx=["Webkit","Ms","Moz","O"];xg=Object.keys(xg).reduce((e,t)=>(xx.forEach(n=>e[xy(n,t)]=e[t]),e),xg);var xb=/^(matrix|translate|scale|rotate|skew)/,xw=/^(translate)/,xE=/^(rotate|skew)/,xj=(e,t)=>vJ.num(e)&&0!==e?e+t:e,xk=(e,t)=>vJ.arr(e)?e.every(e=>xk(e,t)):vJ.num(e)?e===t:parseFloat(e)===t,x_=class extends yo{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>xj(e,"px")).join(",")})`,xk(e,0)])),v2(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(xb.test(t)){if(delete r[t],vJ.und(e))return;let n=xw.test(t)?"px":xE.test(t)?"deg":"";i.push(v4(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${xj(i,n)})`,xk(i,0)]:e=>[`${t}(${e.map(e=>xj(e,n)).join(",")})`,xk(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new xS(i,o)),super(r)}},xS=class extends gD{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return v1(this.inputs,(n,r)=>{let i=gT(n[0]),[o,a]=this.transforms[r](vJ.arr(i)?i:n.map(gT));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&v1(this.inputs,e=>v1(e,e=>gP(e)&&gF(e,this)))}observerRemoved(e){0==e&&v1(this.inputs,e=>v1(e,e=>gP(e)&&gV(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),gR(this,e)}};vT.assign({batchedUpdates:e6.unstable_batchedUpdates,createStringInterpolator:gY,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var xO=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new yo(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=yf(e)||"Anonymous";return(e=vJ.str(e)?o[e]||(o[e]=yu(e,i)):e[yd]||(e[yd]=yu(e,i))).displayName=`Animated(${t})`,e};return v2(e,(t,n)=>{vJ.arr(e)&&(n=yf(t)),o[n]=o(t)}),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:xv[t]||(xv[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||xm.test(t)||xg.hasOwnProperty(t)&&xg[t]?(""+d).trim():d+"px";xm.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new x_(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,xC=n(23442),xM=(0,b.createContext)({});function xA(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,o=e.children,a=(0,b.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return b.createElement(xM.Provider,{value:a},o)}function xP(){return(xP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,xF),p=(0,b.useContext)(xR)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,x=p.yScale,w=p.dataRegistry,E=(0,b.useMemo)(function(){return y?xD(y):0},[y]),j=(0,b.useMemo)(function(){return x?xD(x):0},[x]);if((!s||!l)&&!a)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var k=s&&l||null==a?null:null==w?void 0:w.get(a),_=s||(null==k?void 0:k.xAccessor),S=l||(null==k?void 0:k.yAccessor);if(!y||!x||!v||!m||!_||!S||!g)return null;var O=(null!=(t=(0,p_.Z)(y(_(o))))?t:NaN)+E/2,C=(null!=(n=(0,p_.Z)(x(S(o))))?n:NaN)+j/2,M=O+c+16>g.left+v?-c:c,A=C+f+16>g.top+m?-f:f;return xL(O)&&xL(C)?b.createElement(r,xV({width:v,height:m},h,{x:O,y:C,dx:M,dy:A}),i):null}xz.propTypes={dataKey:py().string,xAccessor:py().func,yAccessor:py().func};var xI=["x","y","AnnotationComponent"],xZ=["editable"];function xB(){return(xB=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function xU(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,o=e.AnnotationComponent,a=xH(e,xI),s=(0,b.useRef)({x:n,y:i}),l=xs({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,b.useEffect)(function(){s.current={x:n,y:i}},[n,i]),b.createElement(xO.g,{transform:xp([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},b.createElement(o,xB({x:n,y:i},a)))}function xW(e){var t=e.editable,n=xH(e,xZ),r=(0,b.useCallback)(function(e){return b.createElement(xU,xB({AnnotationComponent:t?xN:xA},e))},[t]);return b.createElement(xz,xB({AnnotationComponent:r},n))}xW.propTypes={editable:py().bool};var xq=n(12766),x$=n(54073),xY=n.n(x$),xG=["d","stroke","fill"];function xK(){return(xK=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,xG),o=(0,b.useRef)(t),a=(0,b.useCallback)(xY()(function(e){o.current=e},50),[]),s=(0,xq.interpolatePath)(o.current,t);a(t);var l=xs({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=xs({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return b.createElement(xO.path,xK({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var xQ=n(12935),xJ=n(12151);function x0(){return(x0=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function bt(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>be(e(t),n)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}let bn=bt(be);bn.right;let br=bn.left;function bi(e){var t,n,r=e.scale,i=e.accessor,o=e.scaledValue,a=e.data;if("invert"in r&&"function"==typeof r.invert){var s=bt(i).left,l=Number(r.invert(o)),u=s(a,l),c=a[u-1],d=a[u];n=(t=!c||Math.abs(l-i(c))>Math.abs(l-i(d))?d:c)===c?u-1:u}else{if(!("step"in r)||void 0===r.step)return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;var f=r.domain(),h=r.range().map(Number),p=[].concat(h).sort(function(e,t){return e-t}),m=br(function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=Array(i);++r=0||(i[n]=e[n]);return i}(e,bv),O=(0,b.useContext)(xR),C=O.colorScale,M=O.theme,A=O.horizontal,P=(0,b.useMemo)(function(){return w?x2(E,w):void 0},[E,w]),T=(0,b.useMemo)(function(){return x2(E,x)},[E,x]),N=(0,b.useMemo)(function(){return k?x2(_,k):void 0},[_,k]),R=(0,b.useMemo)(function(){return x2(_,j)},[_,j]),D=(0,b.useCallback)(function(e){return xL(E(x(e)))&&xL(_(j(e)))},[E,x,_,j]),L=null!=(t=null!=(n=null==C?void 0:C(l))?n:null==M?void 0:null==(r=M.colors)?void 0:r[0])?t:"#222",F="AREASERIES_EVENT_SOURCE-"+l,V=bd({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:F,allowedSources:[x3,F]}),z=(0,b.useMemo)(function(){var e=x4(A?E:_);return A?{x0:null!=P?P:e,x1:T,y:R}:{x:T,y0:null!=N?N:e,y1:R}},[E,_,A,T,R,P,N]),I=!!(d||c),Z=(0,b.useCallback)(function(e){var t=e.glyphs;return I?t.map(function(e){return b.createElement(b.Fragment,{key:e.key},bm(bg({},e,{color:"transparent",onFocus:V.onFocus,onBlur:V.onBlur})))}):null},[I,V.onFocus,V.onBlur]);return b.createElement(b.Fragment,null,b.createElement(xQ.Z,bg({},z,S,{curve:a,defined:D}),function(e){var t=e.path;return b.createElement(o,bg({className:"visx-area",stroke:"transparent",fill:L,strokeLinecap:"round"},S,{d:t(s)||""},V))}),y&&b.createElement(xJ.Z,bg({x:T,y:R,defined:D,curve:a},u),function(e){var t=e.path;return b.createElement(o,bg({className:"visx-line",fill:"transparent",stroke:L,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),I&&b.createElement(bh,{dataKey:l,data:s,xAccessor:x,yAccessor:j,xScale:E,yScale:_,renderGlyphs:Z}))}by.propTypes={renderLine:py().bool};var bx=x1(by);function bb(){return(bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n}function bO(e,t){return e[t]}function bC(e){let t=[];return t.key=e,t}Array.prototype.slice;var bM=n(74322),bA=n(58543);function bP(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=0?"positiveSum":"negativeSum"]+=i})}}),Object.values(e)},[o,l]),d=(0,b.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=bk([]),t=bS,n=b_,r=bO;function i(i){var o,a,s,l=Array.from(e.apply(this,arguments),bC),u=l.length,c=-1;for(let e of i)for(a=0,++c;a0&&0===r&&(o?i.xScale=function(e){return e.domain(bP(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(bP(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return s(u)}},[u,f,o,d,a,s,l]),{seriesChildren:l,dataKeys:u,stackedData:d}}function bF(e,t,n){var r,i,o,a,s=e.xScale,l=e.yScale,u=e.point,c=(n?ba:bo)(e),d=(null==c?void 0:c.index)==null?null:t[c.index];return c&&d&&u?{index:c.index,datum:d,distanceX:n&&u.x>=(null!=(r=s((0,bj.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,bj.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(o=l((0,bj.l8)(c.datum)))?o:-1/0)&&u.y>=(null!=(a=l((0,bj.xf)(c.datum)))?a:1/0)?0:c.distanceY}:null}var bV=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function bz(){return(bz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(a,bV)),u=bz({fill:null!=(n=null!=(r=null==g?void 0:g(e.key))?r:null==j?void 0:null==(i=j.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:C,data:e,areaProps:u,lineProps:s}})},[O,C,g,S,j]),A=(0,b.useCallback)(function(e){var t,n,r=null==(t=S.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?bF(e,r,x):null},[S,x]),P="AREASTACK_EVENT_SOURCE-"+_.join("-"),T=bd({dataKey:_,enableEvents:void 0===o||o,findNearestDatum:A,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:P,allowedSources:[x3,P]}),N=!!(l||s),R=(0,b.useCallback)(function(e){var t=e.glyphs;return N?t.map(function(e){return b.createElement(b.Fragment,{key:e.key},bm(bz({},e,{color:"transparent",onFocus:T.onFocus,onBlur:T.onBlur})))}):null},[N,T.onFocus,T.onBlur]);return!_.some(function(e){return null==y.get(e)})&&w&&E&&g?b.createElement("g",{className:"visx-area-stack"},M.map(function(e){return b.createElement(xQ.Z,bz({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return b.createElement(n,bz({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,T))})}),m&&M.map(function(e){return b.createElement(bE.Z,bz({key:"line-"+e.key,x:e.accessors.x||e.accessors.x1,y:e.accessors.y||e.accessors.y1,defined:e.accessors.defined,curve:i},e.lineProps),function(t){var r=t.path;return b.createElement(n,bz({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),N&&M.map(function(e,t){var n=M[M.length-t-1];return b.createElement(bh,{key:"glyphs-"+n.key,dataKey:n.key,data:n.data,xAccessor:n.accessors.x||n.accessors.x1,yAccessor:n.accessors.y||n.accessors.y1,xScale:bI,yScale:bI,renderGlyphs:R})})):null}function bB(){return(bB=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,bW),c=(0,b.useContext)(xR),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,b.useMemo)(function(){var e,t,n,r;return"left"===g||"right"===g?null==d?void 0:null==(e=d.axisStyles)?void 0:null==(t=e.y)?void 0:t[g]:null==d?void 0:null==(n=d.axisStyles)?void 0:null==(r=n.x)?void 0:r[g]},[d,g]),x=u.tickLabelProps,w=(0,b.useMemo)(function(){return x||y?function(e,t,n){return bq({},null==y?void 0:y.tickLabel,{width:"left"===g||"right"===g?null==p?void 0:p[g]:void 0},null==x?void 0:x(e,t,n))}:void 0},[x,y,g,p]),E="bottom"===g?(null!=v?v:0)-(null!=(t=null==p?void 0:p.bottom)?t:0):"top"===g&&null!=(n=null==p?void 0:p.top)?n:0,j="left"===g?null!=(r=null==p?void 0:p.left)?r:0:"right"===g?(null!=m?m:0)-(null!=(i=null==p?void 0:p.right)?i:0):0,k="left"===g||"right"===g?h:f;return k?b.createElement(l,bq({top:E,left:j,labelProps:null==y?void 0:y.axisLabel,stroke:null==y?void 0:null==(o=y.axisLine)?void 0:o.stroke,strokeWidth:null==y?void 0:null==(a=y.axisLine)?void 0:a.strokeWidth,tickLength:null==y?void 0:y.tickLength,tickStroke:null==y?void 0:null==(s=y.tickLine)?void 0:s.stroke},u,{tickLabelProps:w,scale:k})):null}function bY(){return(bY=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return bX({},u,{distanceX:0,distanceY:m?0:Math.abs(l.y-(h+p)/2)})}var v=a(i(u.datum)),g=(null!=v?v:1/0)+(null!=c?c:1/0),y=g+d,x=l.x>=g&&l.x<=y;return bX({},u,{distanceY:0,distanceX:x?0:Math.abs(l.x-(g+y)/2)})}(e,k,v)},[k,v]),S="BARGROUP_EVENT_SOURCE-"+j.join("-")+"}",O=bd({dataKey:j,enableEvents:void 0===f||f,findNearestDatum:_,onBlur:a,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:S,allowedSources:[x3,S]}),C=(0,b.useMemo)(function(){return x?x4(x):0},[x]),M=(0,b.useMemo)(function(){return w?x4(w):0},[w]),A=j.map(function(e){return m.get(e)});if(A.some(function(e){return null==e})||!x||!w||!p)return null;var P=xD(k),T=A.map(function(e){var t,n=e.xAccessor,r=e.yAccessor,i=e.data,o=e.key,a=function(e){var t,i;return v?(null!=(t=x(n(e)))?t:NaN)-C:(null!=(i=w(r(e)))?i:NaN)-M},s=v?function(e){var t;return null!=(t=w(r(e)))?t:NaN}:function(e){var t;return null!=(t=x(n(e)))?t:NaN},l=null!=(t=k(o))?t:0,u=v?function(e){return C+Math.min(0,a(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return M+Math.min(0,a(e))},d=v?function(e){return Math.abs(a(e))}:function(){return P},f=v?function(){return P}:function(e){return Math.abs(a(e))},h=E.find(function(e){return e.props.dataKey===o}),m=(null==h?void 0:h.props)||{},g=m.colorAccessor;return{key:o,radius:m.radius,radiusAll:m.radiusAll,radiusBottom:m.radiusBottom,radiusLeft:m.radiusLeft,radiusRight:m.radiusRight,radiusTop:m.radiusTop,bars:i.map(function(e,t){var n,r=u(e);if(!xL(r))return null;var i=c(e);if(!xL(i))return null;var a=d(e);if(!xL(a))return null;var s=f(e);return xL(s)?{key:o+"-"+t,x:r,y:i,width:a,height:s,fill:null!=(n=null==g?void 0:g(e,t))?n:p(o)}:null}).filter(function(e){return e})}});return b.createElement("g",{className:"visx-bar-group"},T.map(function(e){return e&&b.createElement(o,bQ({horizontal:v,xScale:x,yScale:w},e,O,{key:e.key}))}))}bJ.propTypes={children:py().node.isRequired,padding:py().number,sortBars:py().func};var b0=n(10897),b1=function(e){return!!(null==e?void 0:e.includes("url("))},b2=function(e){return b1(e)?"rgba(0,0,0,0.1)":e},b4=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],b3=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function b5(){return(b5=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function b8(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:b2(e.fill),opacity:1}}function b7(e){var t=e.bars,n=(e.xScale,e.yScale,e.horizontal,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=b6(e,b4);return b.createElement(b.Fragment,null,t.map(function(e){var t=e.key,u=e.fill,c=e.x,d=e.y,f=e.width,h=e.height;return b.createElement(b0.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:o,bottom:a,left:s},function(e){var t=e.path;return b.createElement(xX,b5({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function b9(e){var t,n,r,i=e.bars,o=e.xScale,a=e.yScale,s=e.horizontal,l=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,b6(e,b3)),u=xl(i,b5({},(n=(t={horizontal:s,scale:s?o:a}).scale,r=!!t.horizontal,(0,b.useMemo)(function(){var e=x4(n);function t(t){var n=t.x,i=t.y,o=t.width,a=t.height;return{x:r?null!=e?e:0:n,y:r?i:null!=e?e:0,width:r?0:o,height:r?a:0,fill:b2(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:b8,update:b8,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return b.createElement(b.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,o=e.width,a=e.height,s=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:b.createElement(xO.rect,b5({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:o,height:a,fill:b1(t.fill)?t.fill:s,opacity:u},l))}))}function we(e){return null==e.radius?b.createElement(b9,e):b.createElement(b7,b5({},e,{radius:e.radius}))}function wt(){return(wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wr),E=(0,b.useContext)(xR),j=E.colorScale,k=E.horizontal,_=E.theme,S=E.innerWidth,O=E.innerHeight,C=(0,b.useMemo)(function(){return x2(g,v)},[g,v]),M=(0,b.useMemo)(function(){return x2(x,y)},[x,y]),A=xD(k?x:g)||(k?void 0===O?0:O:void 0===S?0:S)/s.length*(1-Math.min(1,Math.max(0,void 0===o?.1:o))),P=(0,b.useMemo)(function(){return g?x4(g):0},[g]),T=(0,b.useMemo)(function(){return x?x4(x):0},[x]),N=null!=(t=null!=(n=null==j?void 0:j(l))?n:null==_?void 0:null==(r=_.colors)?void 0:r[0])?t:"#222",R=(0,b.useMemo)(function(){var e=k?0:-A/2,t=k?-A/2:0;return s.map(function(n,r){var i,o=C(n)+e;if(!xL(o))return null;var s=M(n)+t;if(!xL(s))return null;var l=k?o-P:s-T;return xL(l)?{key:""+r,x:k?P+Math.min(0,l):o,y:k?s:T+Math.min(0,l),width:k?Math.abs(l):A,height:k?A:Math.abs(l),fill:null!=(i=null==a?void 0:a(n,r))?i:N}:null}).filter(function(e){return e})},[A,N,a,s,C,M,k,P,T]),D="BARSERIES_EVENT_SOURCE-"+l,L=bd({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:D,allowedSources:[x3,D]});return b.createElement("g",{className:"vx-bar-series"},b.createElement(i,wi({bars:R,horizontal:k,xScale:g,yScale:x},L,w)))}wo.propTypes={barPadding:py().number,colorAccessor:py().func};var wa=x1(wo),ws=["colorAccessor"];function wl(){return(wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ws);return b.createElement(wa,wl({},n,{colorAccessor:t,BarsComponent:we}))}var wc=n(15590);function wd(){return(wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wg),i=(0,b.useCallback)(function(e){return b.createElement(wv,wy({},e,{renderGlyph:n}))},[n]);return b.createElement(bp,wy({},r,{renderGlyphs:i}))}var wb=n(93353),ww=n(63962),wE=["rows","columns","GridRowsComponent","GridColumnsComponent"];function wj(){return(wj=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wE),l=(0,b.useContext)(xR),u=l.theme,c=l.xScale,d=l.yScale,f=l.margin,h=l.innerWidth,p=l.innerHeight,m=null==u?void 0:u.gridStyles;return b.createElement(b.Fragment,null,n&&d&&null!=h&&b.createElement(o,wj({left:null==f?void 0:f.left,lineStyle:m,width:h,scale:d},s)),i&&c&&null!=p&&b.createElement(a,wj({top:null==f?void 0:f.top,lineStyle:m,height:p,scale:c},s)))}wk.propTypes={rows:py().bool,columns:py().bool};var w_=["animationTrajectory"];function wS(){return(wS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w_),r=(0,b.useMemo)(function(){return function(e){return b.createElement(wb.Z,wS({},e,{animationTrajectory:t}))}},[t]),i=(0,b.useMemo)(function(){return function(e){return b.createElement(ww.Z,wS({},e,{animationTrajectory:t}))}},[t]);return b.createElement(wk,wS({GridRowsComponent:r,GridColumnsComponent:i},n))}var wC=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function wM(){return(wM=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wC),j=(0,b.useContext)(xR),k=j.colorScale,_=j.theme,S=(0,b.useMemo)(function(){return x2(v,m)},[v,m]),O=(0,b.useMemo)(function(){return x2(y,g)},[y,g]),C=(0,b.useCallback)(function(e){return xL(v(m(e)))&&xL(y(g(e)))},[v,m,y,g]),M=null!=(t=null!=(n=null==k?void 0:k(s))?n:null==_?void 0:null==(r=_.colors)?void 0:r[0])?t:"#222",A="LINESERIES_EVENT_SOURCE-"+s,P=bd({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:A,allowedSources:[x3,A]}),T=!!(u||l),N=(0,b.useCallback)(function(e){var t=e.glyphs;return T?t.map(function(e){return b.createElement(b.Fragment,{key:e.key},bm(wM({},e,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur})))}):null},[T,P.onFocus,P.onBlur]);return b.createElement(b.Fragment,null,b.createElement(xJ.Z,wM({x:S,y:O,defined:C,curve:o},E),function(e){var t,n=e.path;return b.createElement(w,wM({stroke:null!=(t=null==i?void 0:i(s))?t:M,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},E,{d:n(a)||""},P))}),T&&b.createElement(bh,{dataKey:s,data:a,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:N}))}wA.propTypes={colorAccessor:py().func};var wP=x1(wA);function wT(){return(wT=Object.assign?Object.assign.bind():function(e){for(var t=1;twL.every(n=>e[n]===t[n]);function wV(e,t){return(wV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var wz=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,wV(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return(this.node||"undefined"==typeof document||(this.node=document.createElement("div"),null!=this.props.zIndex&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node)?e6.createPortal(this.props.children,this.node):null},t}(b.PureComponent);wz.propTypes={zIndex:py().oneOfType([py().number,py().string])};var wI=["detectBounds","zIndex"],wZ=["left","top","detectBounds","zIndex"];function wB(){return(wB=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var wU=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],wW=["x","y"];function wq(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function w$(){return(w$=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,b.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c};u.current.element instanceof HTMLElement&&o&&(d.height=u.current.element.offsetHeight,d.width=u.current.element.offsetWidth),Object.freeze(d),f.current&&!wF(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?wD()(e,d):e,c?wD()(e,c):e]},[l,o,c,d]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",m,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){u.current.element&&(u.current.resizeObserver=new a(m),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(e=>e.addEventListener("scroll",m,{capture:!0,passive:!0})))}return t=!!r,(0,b.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,b.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,b.useEffect)(()=>{v(),g()},[r,m,p]),(0,b.useEffect)(()=>v,[]),[e=>{e&&e!==u.current.element&&(v(),u.current.element=e,u.current.scrollContainers=function e(t){let n=[];if(!t||t===document.body)return n;let{overflow:r,overflowX:i,overflowY:o}=window.getComputedStyle(t);return[r,i,o].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),g())},s,h]}(wH(ei,wI)))[0],ec=el[1],ed=el[2],ef=(0,b.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,o=wH(e,wZ),a=null==i?es:i,s=(null==r?ea:r)?pQ:pH,l=(void 0===t?0:t)+(ec.left||0)+window.scrollX,u=(void 0===n?0:n)+(ec.top||0)+window.scrollY;return b.createElement(wz,{zIndex:a},b.createElement(s,wB({left:l,top:u},o)))}},[ea,es,ec.left,ec.top]),{containerRef:eu,containerBounds:ec,forceRefreshBounds:ed,TooltipInPortal:ef}),L=D.containerRef,F=D.TooltipInPortal,V=D.forceRefreshBounds,z=(0,b.useCallback)(function(e){var t;L(null!=(t=null==e?void 0:e.parentElement)?t:null)},[L]),I=null!=R&&R.tooltipOpen?o(w$({},R,{colorScale:S})):null,Z=(null==R?void 0:R.tooltipOpen)&&null!=I,B=(0,b.useRef)(!1);(0,b.useEffect)(function(){Z&&!B.current&&V(),B.current=Z},[Z,V]);var H=null==R?void 0:R.tooltipLeft,U=null==R?void 0:R.tooltipTop,W=P?xD(P):0,q=T?xD(T):0,$=(0,b.useCallback)(function(e,t){var n,r,i=null==N?void 0:N.get(e),o=null==i?void 0:i.xAccessor,a=null==i?void 0:i.yAccessor;return{left:P&&o?null!=(n=Number(P(o(t)))+W/2)?n:0:void 0,top:T&&a?null!=(r=Number(T(a(t)))+q/2)?r:0:void 0}},[N,W,q,P,T]),Y=null==R?void 0:null==(eh=R.tooltipData)?void 0:eh.nearestDatum,G=null!=(ep=null==Y?void 0:Y.key)?ep:"";if(Z&&Y&&(y||w)){var K=$(G,Y.datum),X=K.left,Q=K.top;H=y&&xL(X)?X:H,U=w&&xL(Q)?Q:U}var J=[];if(Z&&(void 0!==c&&c||p)){var ee=Number(null!=(eS=null==i?void 0:i.radius)?eS:4);if(p)Object.values(null!=(eO=null==R?void 0:null==(eC=R.tooltipData)?void 0:eC.datumByKey)?eO:{}).forEach(function(e){var t,n,r,o=e.key,a=e.datum,s=e.index,l=null!=(t=null!=(n=null==S?void 0:S(o))?n:null==O?void 0:null==(r=O.htmlLabel)?void 0:r.color)?t:"#222",u=$(o,a),c=u.left,d=u.top;xL(c)&&xL(d)&&J.push({key:o,color:l,datum:a,index:s,size:ee,x:c,y:d,glyphStyle:i,isNearestDatum:!!Y&&Y.key===o})});else if(Y){var et=$(G,Y.datum),en=et.left,er=et.top;if(xL(en)&&xL(er)){var ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,eE,ej,ek,e_,eS,eO,eC,eM,eA,eP,eT,eN,eR,eD=null!=(eM=null!=(eA=null!=(eP=null!=(eT=G&&(null==S?void 0:S(G)))?eT:null)?eP:null==O?void 0:null==(eN=O.gridStyles)?void 0:eN.stroke)?eA:null==O?void 0:null==(eR=O.htmlLabel)?void 0:eR.color)?eM:"#222";J.push({key:G,color:eD,datum:Y.datum,index:Y.index,size:ee,x:en,y:er,glyphStyle:i,isNearestDatum:!0})}}}return b.createElement(b.Fragment,null,b.createElement("svg",{ref:z,style:wG}),Z&&b.createElement(b.Fragment,null,v&&b.createElement(F,{className:"visx-crosshair visx-crosshair-vertical",left:H,top:null==A?void 0:A.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:wY},b.createElement("svg",{width:"1",height:C,overflow:"visible"},b.createElement("line",w$({x1:0,x2:0,y1:0,y2:C,strokeWidth:1.5,stroke:null!=(em=null!=(ev=null==O?void 0:null==(eg=O.gridStyles)?void 0:eg.stroke)?ev:null==O?void 0:null==(ey=O.htmlLabel)?void 0:ey.color)?em:"#222"},E)))),f&&b.createElement(F,{className:"visx-crosshair visx-crosshair-horizontal",left:null==A?void 0:A.left,top:U,offsetLeft:0,offsetTop:0,detectBounds:!1,style:wY},b.createElement("svg",{width:M,height:"1",overflow:"visible"},b.createElement("line",w$({x1:0,x2:M,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(ex=null!=(eb=null==O?void 0:null==(ew=O.gridStyles)?void 0:ew.stroke)?eb:null==O?void 0:null==(eE=O.htmlLabel)?void 0:eE.color)?ex:"#222"},r)))),J.map(function(e,t){var n=e.x,r=e.y,i=wq(e,wW);return b.createElement(F,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:wY},b.createElement("svg",{overflow:"visible"},s(w$({x:0,y:0},i))))}),b.createElement(F,w$({left:H,top:U,style:w$({},pB,{background:null!=(ej=null==O?void 0:O.backgroundColor)?ej:"white",boxShadow:"0 1px 2px "+(null!=O&&null!=(ek=O.htmlLabel)&&ek.color?(null==O?void 0:null==(e_=O.htmlLabel)?void 0:e_.color)+"55":"#22222255")},null==O?void 0:O.htmlLabel)},k),I)))}function wJ(e){var t=(0,b.useContext)(x5);return null!=t&&t.tooltipOpen?b.createElement(wQ,e):null}function w0(e){var t=e.children,n=(0,b.useMemo)(function(){var e;return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get("*")||[]).slice().map(function(e){e(t,n)})}}},[]);return b.createElement(x6.Provider,{value:n},t)}function w1(){return(w1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,pV);return pz({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),o=(0,b.useCallback)(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]),{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:o}),c=u.tooltipOpen,d=u.tooltipLeft,f=u.tooltipTop,h=u.tooltipData,p=u.updateTooltip,m=u.hideTooltip,v=(0,b.useRef)(null),g=(0,b.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,o=e.distanceX,a=e.distanceY;v.current&&(v.current.cancel(),v.current=null);var s=Math.sqrt(Math.pow(xL(o)?o:1/0,2)+Math.pow(xL(a)?a:1/0,2));p(function(e){var o,a,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&xL(u.nearestDatum.distance)?u.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:null==t?void 0:t.x,tooltipTop:null==t?void 0:t.y,tooltipData:{nearestDatum:(null!=(o=null==u?void 0:null==(a=u.nearestDatum)?void 0:a.key)?o:"")!==r&&c0&&o>0&&y({width:m,height:o,margin:l})},[y,m,o,l]);var E=x7({source:x3});return(bc({dataKey:"nearest"===(void 0===h?"nearest":h)?bu:bl,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,allowedSources:Eo}),y)?null==m||null==o?b.createElement(vt.Z,null,function(t){return b.createElement(Ea,Er({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==x?b.createElement(w2,null,b.createElement(Ea,e)):null==w?b.createElement(w0,null,b.createElement(Ea,e)):m>0&&o>0?b.createElement("svg",{width:m,height:o,"aria-label":void 0===t?"XYChart":t},i,r&&b.createElement("rect",Er({x:l.left,y:l.top,width:m-l.left-l.right,height:o-l.top-l.bottom,fill:"transparent"},E))):null:v&&g?b.createElement(En,{xScale:v,yScale:g,theme:p,initialDimensions:{width:m,height:o,margin:l},horizontal:a},b.createElement(Ea,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function Es(e){return b.createElement(bx,e)}function El(e){return b.createElement(bZ,e)}function Eu(){return(Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function Em(e){var t=e.bars,n=(e.horizontal,e.xScale,e.yScale,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=Ep(e,Ed),u=!!(l.onFocus||l.onBlur);return b.createElement(b.Fragment,null,t.map(function(e){var t=e.key,c=Ep(e,Ef);return null==n?b.createElement("rect",Eh({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):b.createElement(b0.Z,Eh({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:o,bottom:a,left:s},c,l))}))}function Ev(){return(Ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,Ey);return b.createElement(wa,Ex({},n,{colorAccessor:t,BarsComponent:Em}))};function Ew(){return(Ew=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,x.jsx)(d1,{value:"line",children:"Line"}),(0,x.jsx)(d1,{disabled:f||h,value:"areastack",children:"Area Stack"}),(0,x.jsx)(d1,{disabled:f||h,value:"barstack",children:"Bar Stack"}),(0,x.jsx)(d1,{disabled:f,value:"area",children:"Area"}),(0,x.jsx)(d1,{disabled:f,value:"bargroup",children:"Bar Group"})]})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{weight:"semibold",children:"Stack series offset"}),(0,x.jsxs)(d2,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,x.jsxs)(d1,{disabled:!s,value:"none",children:["Auto",(0,x.jsx)(f_,{children:"zero-baseline"})]}),(0,x.jsxs)(d1,{disabled:!s,value:"expand",children:["Expand",(0,x.jsx)(f_,{children:"values sum to 1"})]}),(0,x.jsxs)(d1,{disabled:!s,value:"wiggle",children:["Wiggle",(0,x.jsx)(f_,{children:"stream graph"})]})]})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{weight:"semibold",children:"Curve shape"}),(0,x.jsxs)(d2,{value:i,onValueChange:e=>o(e),className:"flex flex-col gap-1",children:[(0,x.jsx)(d1,{disabled:!a,value:"linear",children:"Linear"}),(0,x.jsx)(d1,{disabled:!a,value:"cardinal",children:"Cardinal"}),(0,x.jsx)(d1,{disabled:!a,value:"step",children:"Step"})]})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{weight:"semibold",children:"Axes"}),(0,x.jsx)("div",{className:"flex flex-col gap-6",children:(0,x.jsxs)(d2,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,x.jsx)(d1,{value:"bottom",children:"Bottom"}),(0,x.jsx)(d1,{value:"top",children:"Top"})]})})]})]})})}let ED=(0,b.forwardRef)((e,t)=>{let{className:n}=e;return(0,x.jsxs)("div",{ref:t,className:(0,ea.cx)("flex gap-1 items-center",n),children:[(0,x.jsx)(EL,{}),(0,x.jsx)(EL,{}),(0,x.jsx)(EL,{})]})});function EL(){return(0,x.jsx)("div",{className:"w-1 h-1 bg-slate-400 dark:bg-slate-200 rounded-full animate-pulselight [&:nth-child(2)]:animation-delay-500 [&:nth-child(3)]:animation-delay-1000"})}function EF(e){let{id:t,height:n,data:r,config:i,actionsLeft:o,isLoading:a,actionsRight:s,chartType:l="areastack",curveType:u="linear",stackOffset:c="none",variant:d="panel",allowConfiguration:f=!0}=e,h=function(e,t,n,r,i,o){let a=(0,b.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return[...t,{...e,timestamp:e.timestamp+ET(1)}]},[t]),s=(0,b.useMemo)(()=>{if(a.length<2)return 0;let e=[a[0].timestamp,a[a.length-1].timestamp],t=new Date().getTime();return t>e[0]&&t"dark"===c?vA:vM,[c]),[f,h]=(0,b.useState)("center"),[p,m]=(0,b.useState)([!1,!1]),[v,g]=p,[y,w]=(0,b.useState)("bottom"),[E,j]=(0,b.useState)("right"),[k,_]=(0,b.useState)(!0),[S,O]=(0,b.useState)(!0),[C,M]=(0,b.useState)(!1),[A,P]=(0,b.useState)(!0),[T,N]=(0,b.useState)(!0),[R,D]=(0,b.useState)(r),[L,F]=(0,b.useState)(i),[V,z]=(0,b.useState)(o),I=d.xyChartTheme.gridStyles.stroke,[Z,B]=(0,b.useState)(!1),[H,U]=(0,b.useState)("star"),W=(0,b.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:o,onPointerOut:a,onPointerUp:s,isNearestDatum:l}=e,u={onPointerMove:o,onPointerOut:a,onPointerUp:s};return"star"===H?(0,x.jsx)(vf,{left:t,top:n,stroke:I,fill:i,size:10*r,...u}):"circle"===H?(0,x.jsx)(vm,{left:t,top:n,stroke:I,fill:i,r:r,...u}):"cross"===H?(0,x.jsx)(vx,{left:t,top:n,stroke:I,fill:i,size:10*r,...u}):(0,x.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[H,I]),q=(0,b.useMemo)(()=>Object.keys(EM()(t[0],"timestamp")),[t]),$=(0,b.useMemo)(()=>n.enabledGraph||q,[q,n]),Y=(0,b.useMemo)(()=>n.enabledTip||q,[q,n]),G=(0,b.useMemo)(()=>({x:q.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:q.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[q]),K=["line","area","areastack"].includes(R),X=["barstack","areastack"].includes(R),Q=(0,b.useMemo)(()=>({x:{type:"band",paddingInner:K?1:.3},y:{type:"linear"}}),[K]),J=(0,b.useMemo)(()=>"cardinal"===L&&vb.ZP||"step"===L&&mE.ZP||vw.Z,[L]),ee=(0,b.useMemo)(()=>({top:30,bottom:"top"===y?0:20,left:0,right:0}),[y]);return{id:e,accessors:G,animationTrajectory:f,config:n,scales:Q,data:a,curve:J,chartData:t,numTicks:4,isLine:K,isStack:X,todayOffset:s,initialChartType:r,chartType:R,curveType:L,keys:q,enabledGraph:$,enabledTip:Y,renderBarGroup:"bargroup"===R,renderBarStack:"barstack"===R,enableTooltipGlyph:Z,renderTooltipGlyph:W,renderAreaSeries:"area"===R,renderAreaStack:"areastack"===R,renderLineSeries:"line"===R,sharedTooltip:T,showGridColumns:g,showGridRows:v,showHorizontalCrosshair:C,showTooltip:k,showVerticalCrosshair:S,snapTooltipToDatum:!X&&A,stackOffset:V,theme:d,margin:ee,xAxisOrientation:y,yAxisOrientation:E,setUseAnimatedComponents:u,setAnimationTrajectory:h,setGridProps:m,setXAxisOrientation:w,setYAxisOrientation:j,setShowTooltip:_,setShowVerticalCrosshair:O,setShowHorizontalCrosshair:M,setSnapTooltipToDatum:P,setSharedTooltip:N,setChartType:D,setCurveType:F,setStackOffset:z,setEnableTooltipGlyph:B,setTooltipGlyphComponent:U,...l?{Annotation:xW,AreaSeries:bw,AreaStack:bH,Axis:bG,BarGroup:wn,BarSeries:wu,BarStack:wp,GlyphSeries:wx,Grid:wO,LineSeries:wN,Tooltip:wJ,XYChart:Ea}:{AreaSeries:Es,AreaStack:El,Axis:Ec,BarGroup:Eg,BarSeries:Eb,BarStack:EE,Grid:ES,LineSeries:EO,Tooltip:wJ,XYChart:Ea}}}(t,r,i,l,u,c),p=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===d&&f&&(0,x.jsx)(ER,{...h})]}),(0,x.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:o}),(0,x.jsx)(vt.Z,{children:e=>{let{width:t,height:n}=e;return a?(0,x.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,x.jsx)(ED,{className:"scale-150"})}):(0,x.jsx)(vi,{...h,width:t,height:n})}})]});return"panel"===d?(0,x.jsx)(tG,{className:"relative p-px",style:{height:n},children:p}):(0,x.jsx)("div",{className:"relative p-px",style:{height:n},children:p})}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -57,7 +57,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function EF(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function EV(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||kn,ki=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,ko=/\/\*[^]*?\*\/|\s\s+|\n/g,ka=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?ka(a,o):o+"{"+ka(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=ka(a,t?t.replace(/([^,])+/g,e=>o.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=ka.p?ka.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},ks={},kl=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+kl(e[n]);return t}return e},ku=(e,t,n,r,i)=>{var o;let a=kl(e),s=ks[a]||(ks[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!ks[s]){let t=a!==e?e:(e=>{let t,n=[{}];for(;t=ki.exec(e.replace(ko,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);ks[s]=ka(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return o=ks[s],-1==t.data.indexOf(o)&&(t.data=r?o+t.data:t.data+o),s},kc=(e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":ka(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"");function kd(e){let t=this||{},n=e.call?e(t.p):e;return ku(n.unshift?n.raw?kc(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,kr(t.target),t.g,t.o,t.k)}kd.bind({g:1});let kf,kh,kp,km=kd.bind({k:1});function kv(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:kh&&kh()},s),n.o=/ *go\d+/.test(l),s.className=kd.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),kp&&u[0]&&kp(s),kf(u,s)}return t?t(i):i}}function kg(){return(kg=Object.assign||function(e){for(var t=1;t-1&&kS.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return kg({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||kM[t.type],style:kg({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return kg({},n,{toasts:i})},kP=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),kg({createdAt:Date.now(),visible:!0,type:r,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},n,{id:(null==n?void 0:n.id)||kx()}));return kC({type:y.UPSERT_TOAST,toast:i}),i.id}},kT=function(e,t){return kP("blank")(e,t)};kT.error=kP("error"),kT.success=kP("success"),kT.loading=kP("loading"),kT.custom=kP("custom"),kT.dismiss=function(e){kC({type:y.DISMISS_TOAST,toastId:e})},kT.remove=function(e){return kC({type:y.REMOVE_TOAST,toastId:e})},kT.promise=function(e,t,n){var r=kT.loading(t.loading,kg({},n,null==n?void 0:n.loading));return e.then(function(e){return kT.success(kb(t.success,e),kg({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){kT.error(kb(t.error,e),kg({id:r},n,null==n?void 0:n.error))}),e};var kN=function(e){var t=kA(e),n=t.toasts,r=t.pausedAt;(0,x.useEffect)(function(){if(!r){var e=Date.now(),t=n.map(function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&kT.dismiss(t.id);return}return setTimeout(function(){return kT.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,x.useMemo)(function(){return{startPause:function(){kC({type:y.START_PAUSE,time:Date.now()})},endPause:function(){r&&kC({type:y.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return kC({type:y.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=n.filter(function(t){return(t.position||u)===(e.position||u)&&t.height}),d=c.findIndex(function(t){return t.id===e.id}),f=c.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return jr=function(){return e},e}c=x.createElement,ka.p=void 0,kf=c,kh=void 0,kp=void 0;var ji=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return kg({left:0,right:0,display:"flex",position:"absolute",transition:kw()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},jo=kd(jr()),ja=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,o=e.gutter,a=e.children,s=e.containerStyle,l=e.containerClassName,u=kN(i),c=u.toasts,d=u.handlers;return(0,x.createElement)("div",{style:kg({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(function(e){var n,i=e.position||r,s=ji(i,d.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:r})),l=e.height?void 0:(n=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){n(e.getBoundingClientRect())})});return(0,x.createElement)("div",{ref:l,className:e.visible?jo:"",key:e.id,style:s},"custom"===e.type?kb(e.message,e):a?a(e):(0,x.createElement)(jn,{toast:e,position:i}))}))};let js=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kT((0,b.jsx)(tq,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200)):e}),jc(t))},jl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kT.success((0,b.jsx)(tq,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),jc(t))},ju=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kT.error((0,b.jsx)(tq,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),jc(t))};function jc(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,ea.cx)(s6,tY(),"font-sans font-normal","text-gray-1100 dark:text-white","max-w-[800px] overflow-hidden text-ellipsis","[&>div]:overflow-hidden","[&>div]:flex-1",e),success:{icon:(0,b.jsx)("div",{className:"!flex-none w-5",children:(0,b.jsx)(lt.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,b.jsx)("div",{className:"!flex-none w-5",children:(0,b.jsx)(lt.Jsc,{className:"w-5 text-red-600"})})},...t}}function jd(){return(0,b.jsx)(ja,{toastOptions:jc()})}let jf=(e,t)=>{let n=t?"Copied ".concat(t," to clipboard"):"Copied to clipboard";js(n),function(e){EF(this,void 0,void 0,function(){return EV(this,function(t){var n;if(E4)return EI("Using `navigator.clipboard.writeText()`."),[2,E4(e)];if(!function(e){return EF(this,void 0,void 0,function(){var t;return EV(this,function(n){var r,i,o,a,s,l,u,c;if(t="text/plain"in e,"undefined"==typeof ClipboardEvent&&void 0!==E5.clipboardData&&void 0!==E5.clipboardData.setData){if(!t)throw Error("No `text/plain` value was specified.");if(r=e["text/plain"],E5.clipboardData.setData("Text",r))return[2,!0];throw Error("Copying failed, possibly because the user rejected it.")}return E7(e)?(EI("regular execCopy worked"),[2,!0]):navigator.userAgent.indexOf("Edge")>-1?(EI('UA "Edge" => assuming success'),[2,!0]):E9(document.body,e)?(EI("copyUsingTempSelection worked"),[2,!0]):((i=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),i.textContent="temporary element",document.body.appendChild(i),o=E9(i,e),document.body.removeChild(i),o)?(EI("copyUsingTempElem worked"),[2,!0]):(a=e["text/plain"],EI("copyTextUsingDOM"),(s=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),l=s,s.attachShadow&&(EI("Using shadow DOM."),l=s.attachShadow({mode:"open"})),(u=document.createElement("span")).innerText=a,l.appendChild(u),document.body.appendChild(s),ke(u),c=document.execCommand("copy"),kt(),document.body.removeChild(s),c)?(EI("copyTextUsingDOM worked"),[2,!0]):[2,!1]})})}(((n={})["text/plain"]=e,n)))throw Error("writeText() failed");return[2]})})}(e)};function jh(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function jp(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^key:/,"")}function jm(e,t,n){return t?"".concat(e," ").concat(jh(t,n)):"".concat(e)}function jv(e,t){return"miner"===t?"minerPayout":"siafundClaim"===t?"siafundClaim":"contract"===t?"contractPayout":"foundation"===t?"foundationSubsidy":e.storageProofs&&e.storageProofs.length>0?"storageProof":e.fileContracts&&e.fileContracts.length>0&&e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRenewal":e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRevision":e.fileContracts&&e.fileContracts.length>0?"contractFormation":e.arbitraryData&&e.arbitraryData.length>0&&0===atob(e.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":void 0}let jg={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",ip:"IP"},jy={siacoin:"siacoin transfer",siafund:"siafund transfer",contractFormation:"contract formation",contractRenewal:"contract renewal",contractRevision:"contract revision",contractPayout:"contract payout",storageProof:"storage proof",minerPayout:"miner payout",siafundClaim:"siafund claim",foundationSubsidy:"foundation subsidy",hostAnnouncement:"host announcement"};function jb(e){return e?jg[e]:void 0}function jx(e){return e?jy[e]:void 0}function jw(e){let{value:t,displayValue:n,type:r,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,color:c="contrast",className:d}=e,f=i||jb(r),h=a||("ip"===r?20:12),p=jp(t),m=n||p,v="".concat(null==m?void 0:m.slice(0,h)).concat(((null==m?void 0:m.length)||0)>h?"...":"");return(0,b.jsxs)("div",{className:(0,ea.cx)("flex items-center",d),children:[o?(0,b.jsx)(c2,{href:o,underline:"hover",size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}):(0,b.jsx)(tq,{size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}),(0,b.jsx)("div",{className:"ml-1 flex items-center",children:(0,b.jsx)(le,{variant:"ghost",size:"none",onClick:e=>{e.stopPropagation(),jf(p,f)},children:(0,b.jsx)(tq,{color:c,children:(0,b.jsx)(lt.olJ,{className:"10"===s?"scale-75":"scale-90"})})})})]})}function jE(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change"}=e,a=(0,m3.yF)(String(t),{units:"SF"});return(0,b.jsx)(s7,{content:(i?"".concat(i," "):"")+a,children:(0,b.jsxs)(tq,{size:n,scaleSize:r,weight:"medium",font:"mono",color:"change"===o?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===o&&t>0?"+":"",a]})})}function jk(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",fixed:a=3,dynamicUnits:s=!0,extendedSuffix:l,showTooltip:u=!0}=e,c=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",d="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast",f=(0,b.jsxs)(tq,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:d,children:["change"===o?"".concat(c).concat((0,m3.Vz)(t.absoluteValue(),{fixed:a,dynamicUnits:s})):(0,m3.Vz)(t,{fixed:a,dynamicUnits:s}),(0,b.jsx)(tq,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:l?"".concat(l):""})]});return u?(0,b.jsx)(s7,{content:(i?"".concat(i," "):"")+(0,m3.Vz)(t,{fixed:16,dynamicUnits:!1}),children:f}):f}function jj(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",variant:o="change",color:a,format:s}=e,l=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",u="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,b.jsx)(s7,{content:(i?"".concat(i," "):"")+s(t),children:(0,b.jsx)(tq,{size:n,weight:r,font:"mono",ellipsis:!0,color:a||u,children:"change"===o?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var j_=n(61258),jS=n.n(j_);function jO(e){let{skeletonCount:t=10}=e;return(0,b.jsx)(b.Fragment,{children:jS()(t,e=>(0,b.jsxs)("div",{className:(0,ea.cx)("relative flex gap-4 p-3.5",(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,b.jsx)(fA,{className:"w-[60px] h-[50px]"}),(0,b.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,b.jsx)(fA,{className:"w-[90%] h-[20px]"}),(0,b.jsx)(fA,{className:"w-[140px] h-[14px]"})]})]},e))})}var jC=n(66700),jM=n(19785);function jA(e,t){(0,jM.Z)(2,arguments);var n=(0,jC.Z)(e),r=(0,jC.Z)(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var jP={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},jT={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function jN(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var jR={date:jN({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:jN({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:jN({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},jD={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function jL(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function jF(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:jR,formatRelative:function(e,t,n,r){return jD[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:jL({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:jL({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:jL({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:jL({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:jL({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(d={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(d.matchPattern);if(!n)return null;var r=n[0],i=e.match(d.parsePattern);if(!i)return null;var o=d.valueCallback?d.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:jF({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:jF({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:jF({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:jF({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:jF({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function jI(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var jz=n(23779),jZ=n.n(jz);function jB(e){let{type:t,label:n,initials:r,href:i,src:o,shape:a}=e,s=(0,b.jsx)(lm,{interactive:!!i,fallback:r||t&&(t||n||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:o,shape:a||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,b.jsx)(c2,{href:i,underline:"none",children:s}),u=l||s;return t?(0,b.jsx)(s7,{content:n||jb(t),children:(0,b.jsx)("div",{className:"",children:u})}):u}function jH(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,b.jsxs)("div",{className:(0,ea.cx)("flex gap-4 p-4",(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,b.jsx)(jB,{label:t,type:n,shape:i,src:r,initials:o||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function jU(e){let t=e.sc,n=e.sf,r=e.hash&&(0,b.jsx)(jw,{value:e.hash,type:e.type,label:e.label,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&jx(e.txType)||jb(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?jZ()(i):i;return(0,b.jsx)(jH,{...e,children:(0,b.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full",children:[(0,b.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,b.jsxs)("div",{className:"flex gap-2 items-center",children:[e.height&&e.blockHref&&(0,b.jsx)(tq,{color:"subtle",weight:"semibold",children:(0,b.jsx)(c2,{href:e.blockHref,underline:"none",children:(0,m3.yF)(e.height)})}),(0,b.jsx)(tq,{weight:"medium",children:o||r})]}),(0,b.jsx)("div",{className:"flex-1"}),!!t&&(0,b.jsx)(jk,{variant:e.scVariant,value:t}),!!n&&(0,b.jsx)(jE,{variant:e.sfVariant,value:n})]}),(0,b.jsxs)("div",{className:"flex justify-between w-full",children:[(0,b.jsx)("div",{className:"flex gap-1",children:!!o&&r}),(0,b.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(tq,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,b.jsx)(tq,{color:"verySubtle",children:(0,b.jsx)(lt.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,b.jsx)(tq,{color:"subtle",children:function(e,t){var n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,jM.Z)(2,arguments);var a=o.locale||jV;if(!a.formatDistance)throw RangeError("locale must contain formatDistance property");var s=jA(e,t);if(isNaN(s))throw RangeError("Invalid time value");var l=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}({},o);l.addSuffix=!!o.addSuffix,l.comparison=s,s>0?(n=(0,jC.Z)(t),r=(0,jC.Z)(e)):(n=(0,jC.Z)(e),r=(0,jC.Z)(t));var u=function(e,t,n){(0,jM.Z)(2,arguments);var r,i=function(e,t){return(0,jM.Z)(2,arguments),(0,jC.Z)(e).getTime()-(0,jC.Z)(t).getTime()}(e,t)/1e3;return((r=null==n?void 0:n.roundingMethod)?jP[r]:jP.trunc)(i)}(r,n),c=Math.round((u-(jI(r)-jI(n))/1e3)/60);if(c<2){if(o.includeSeconds){if(u<5)return a.formatDistance("lessThanXSeconds",5,l);if(u<10)return a.formatDistance("lessThanXSeconds",10,l);if(u<20)return a.formatDistance("lessThanXSeconds",20,l);if(u<40)return a.formatDistance("halfAMinute",null,l);else if(u<60)return a.formatDistance("lessThanXMinutes",1,l);else return a.formatDistance("xMinutes",1,l)}return 0===c?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",c,l)}if(c<45)return a.formatDistance("xMinutes",c,l);if(c<90)return a.formatDistance("aboutXHours",1,l);if(c<1440){var d=Math.round(c/60);return a.formatDistance("aboutXHours",d,l)}if(c<2520)return a.formatDistance("xDays",1,l);if(c<43200){var f=Math.round(c/1440);return a.formatDistance("xDays",f,l)}if(c<86400)return i=Math.round(c/43200),a.formatDistance("aboutXMonths",i,l);if((i=function(e,t){(0,jM.Z)(2,arguments);var n,r=(0,jC.Z)(e),i=(0,jC.Z)(t),o=jA(r,i),a=Math.abs(function(e,t){(0,jM.Z)(2,arguments);var n=(0,jC.Z)(e),r=(0,jC.Z)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,i));if(a<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);var s=jA(r,i)===-o;(function(e){(0,jM.Z)(1,arguments);var t=(0,jC.Z)(e);return(function(e){(0,jM.Z)(1,arguments);var t=(0,jC.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,jM.Z)(1,arguments);var t=(0,jC.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,jC.Z)(e))&&1===a&&1===jA(e,i)&&(s=!1),n=o*(a-Number(s))}return 0===n?0:n}(r,n))<12){var h=Math.round(c/43200);return a.formatDistance("xMonths",h,l)}var p=i%12,m=Math.floor(i/12);return p<3?a.formatDistance("aboutXYears",m,l):p<9?a.formatDistance("overXYears",m,l):a.formatDistance("almostXYears",m+1,l)}(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function jW(e){let{title:t,actions:n,entities:r,emptyMessage:i,skeletonCount:o=10,children:a}=e;return(0,b.jsx)(tG,{children:(0,b.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(t||n)&&(0,b.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,b.jsx)(cU,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,b.jsx)("div",{className:"flex-1"}),n]}),(0,b.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(null==r?void 0:r.length)===0&&(0,b.jsx)("div",{className:(0,ea.cx)("flex items-center justify-center h-[84px]",(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,b.jsx)(tq,{size:"18",color:"subtle",children:i||"No results"})}),a||(null==r?void 0:r.map((e,t)=>(0,b.jsx)(jU,{...e},e.hash||e.label||t)))||(0,b.jsx)(jO,{skeletonCount:o})]})]})})}function jq(e){let{label:t,entityType:n,entityValue:r,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,sf:c,comment:d,commentTip:f,scaleSize:h="40",isLoading:p,onClick:m}=e,v=(0,b.jsx)(tq,{color:"subtle",size:"12",className:"h-6",children:d});return(0,b.jsx)(tG,{children:(0,b.jsx)("div",{className:(0,ea.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",m?"cursor-pointer":""),onClick:m,children:(0,b.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,b.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,b.jsx)(tq,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?jZ()(t):t}),i]}),(0,b.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[p?(0,b.jsx)(fA,{className:"h-12 w-[150px]"}):(0,b.jsxs)(b.Fragment,{children:[void 0!==u&&(0,b.jsx)(jk,{extendedSuffix:s,scaleSize:h,variant:"value",value:u,fixed:0}),void 0!==c&&(0,b.jsx)(jE,{scaleSize:h,variant:"value",value:c}),n&&(r?(0,b.jsx)(jw,{scaleSize:h,label:jb(n),href:o,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,b.jsx)(tq,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),l&&(0,b.jsx)(jw,{scaleSize:h,label:"hash",value:l}),void 0!==a&&(0,b.jsx)(tq,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:a})]}),v?(0,b.jsx)("div",{className:"mt-1",children:p?(0,b.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,b.jsx)(fA,{className:"h-4 w-[100px]"})}):f?(0,b.jsx)(s7,{content:f,children:v}):v}):null]})]})})})}function j$(e){let{title:t,actions:n,name:r}=e;return(0,b.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,b.jsx)(cJ,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function jY(e){var t;let{form:n,name:r}=e,i=n.formState.errors[r],o=null===(t=n.formState.errors[r])||void 0===t?void 0:t.message;return i?(0,b.jsx)(tq,{size:"14",color:"red",children:o}):null}function jG(e){let{form:t,title:n,actions:r,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return n||s?(0,b.jsxs)("div",{className:(0,ea.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,b.jsx)(j$,{name:i,title:n,actions:r}),(0,b.jsx)(jY,{form:t,name:i})]}):null}function jK(e){let{children:t,...n}=e;return(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)(jG,{...n}),t]})}function jX(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(le,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,b.jsx)(ER,{}):i})})}function jQ(e){let{formik:t,title:n,name:r,placeholder:i,disabled:o,readOnly:a,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:v,type:g,variants:y}=e;return(0,b.jsx)(j4,{formik:t,title:n,name:r,children:"number"===g?(0,b.jsx)(j0,{formik:t,name:r,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===g?(0,b.jsx)(j1,{formik:t,name:r,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,b.jsx)(jJ,{formik:t,name:r,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function jJ(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:o,readOnly:a,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,b.jsx)(d3,{id:n,name:n,autoComplete:i,disabled:o,spellCheck:l,placeholder:r,tabIndex:s,readOnly:a||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function j0(e){let{formik:t,name:n,units:r,disabled:i,readOnly:o,tabIndex:a,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,b.jsx)(fy,{id:n,units:r,name:n,placeholder:new(fv())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:o||t.isSubmitting,tabIndex:a,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function j1(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:o,placeholder:a,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,b.jsx)(fE,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(n),sc:new(fv())(t.values[n]),placeholder:new(fv())(a),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function j2(e){var t,n;let{formik:r,title:i,name:o,withStatusError:a=!1,className:s}=e,l=r.errors[o]&&r.touched[o]||a&&(null===(t=r.status)||void 0===t?void 0:t.error),u=r.errors[o]||a&&(null===(n=r.status)||void 0===n?void 0:n.error);return(i||l)&&(0,b.jsxs)("div",{className:(0,ea.cx)("flex justify-between items-center gap-4",s),children:[i?(0,b.jsx)(cJ,{htmlFor:o,children:i}):(0,b.jsx)("div",{}),l&&(0,b.jsx)(tq,{size:"14",color:"red",children:u})]})}function j4(e){let{children:t,...n}=e;return(0,b.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,b.jsx)(j2,{...n}),t]})}function j3(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,b.jsxs)(b.Fragment,{children:[o&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,b.jsx)(tq,{color:"red",children:n.status.error}),(0,b.jsx)(le,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,b.jsx)(ER,{}):a})]})}function j5(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,summary:l,rowSize:u="default",pageSize:c,isLoading:d,emptyState:f,focusId:h,focusColor:p="default"}=e,m="emptyState";!d||(null==n?void 0:n.length)||(m="skeleton"),(null==n?void 0:n.length)&&(m="currentData");let v=(0,x.useCallback)((e,n,r)=>(0,ea.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",r?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",n),[t]),g=(0,x.useCallback)((e,t)=>(0,ea.cx)("flex items-center",t),[]);return(0,b.jsxs)(tG,{children:[(0,b.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,b.jsx)("thead",{className:(0,ea.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,b.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:r,label:l,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==a?void 0:a.includes(n))&&!!s,h=i===n;return(0,b.jsx)("th",{className:(0,ea.cx)(v(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,b.jsx)("div",{className:(0,ea.cx)("overflow-hidden","py-3"),children:(0,b.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,ea.cx)(g(t,d),f?"cursor-pointer":""),children:[(0,b.jsx)(s7,{content:u,children:(0,b.jsxs)(tq,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,b.jsx)("div",{children:r}):null,(0,b.jsx)(tq,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,b.jsx)(tq,{color:"contrast",children:"asc"===o?(0,b.jsx)(lt.kqg,{className:"scale-75"}):(0,b.jsx)(lt.EMN,{className:"scale-75"})}),f&&!h&&(0,b.jsx)(tq,{color:"verySubtle",children:(0,b.jsx)(lt.kqg,{className:"scale-75"})})]})})},n)})})}),(0,b.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:[l&&(0,b.jsx)("tr",{className:"bg-gray-50 dark:bg-graydark-50 border-l border-r border-b border-gray-200 dark:border-graydark-200",children:t.map((e,t)=>{let{id:n,summary:r,contentClassName:i,cellClassName:o}=e;return(0,b.jsx)("td",{className:v(t,o,!1),children:(0,b.jsx)("div",{className:g(t,i),children:r&&r()})},n)})}),"currentData"===m&&(null==n?void 0:n.map(e=>(0,b.jsx)("tr",{id:e.id,onClick:e.onClick,className:(0,ea.cx)("border-b border-gray-200/50 dark:border-graydark-100",e.onClick?"cursor-pointer":""),children:t.map((t,n)=>{let{id:i,render:o,contentClassName:a,cellClassName:s}=t;return(0,b.jsx)("td",{className:(0,ea.cx)(v(n,s,!1),h===e.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===p?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===p?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===p?"!shadow-red-500 dark:!shadow-red-400":"","amber"===p?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===p?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,b.jsx)("div",{className:(0,ea.cx)(g(n,a),"dense"===u?"h-[50px]":"h-[100px]"),children:(0,b.jsx)(o,{data:e,context:r})})},"".concat(i,"/").concat(e.id))})},e.id))),"skeleton"===m&&jS()(c).map(e=>(0,b.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:n,contentClassName:r,cellClassName:i}=e;return(0,b.jsx)("td",{className:v(t,i,!1),children:(0,b.jsx)("div",{className:(0,ea.cx)(g(t,r),"dense"===u?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===m&&f]})}var j6=n(5632);function j8(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,o=(0,j6.useRouter)();return(0,b.jsxs)(lE,{children:[(0,b.jsx)(le,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,b.jsx)("div",{className:"flex scale-[0.65]",children:(0,b.jsx)(lt.XJM,{})})}),(0,b.jsx)(le,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,b.jsx)(lt.bdU,{})}),(0,b.jsx)(le,{state:"waiting",className:"rounded-none px-3",children:r>0?"".concat(t+1," - ").concat(Math.min(t+n,r)," of ").concat(r?r.toLocaleString():""):i?(0,b.jsx)(ER,{className:"px-2"}):"No results"}),(0,b.jsx)(le,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.min(t+n,r)}}),children:(0,b.jsx)(lt.VUy,{})}),(0,b.jsx)(le,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>o.push({query:{...o.query,offset:Math.floor(r/n)*n}}),children:(0,b.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,b.jsx)(lt.RRj,{})})})]})}function j7(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[t?"string"==typeof t?(0,b.jsx)(tq,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,b.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,b.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 overflow-x-hidden",children:n}),(0,b.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,b.jsx)("div",{className:"flex items-center gap-2 px-6 py-3 h-10 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:r})]})}let j9=("string"==typeof(f={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAZEAADAAMAAAAAAAAAAAAAAAAAAQISIpH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8ArRbxWi6AAP/Z",blurWidth:3,blurHeight:8})?{src:f}:f).src;function _e(e){let{children:t}=e;return(0,b.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,b.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,b.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(j9,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,b.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}var _t=n(97729),_n=n.n(_t);function _r(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,b.jsxs)(_n(),{children:[(0,b.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,b.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,b.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,b.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,b.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,b.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,b.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,b.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,b.jsx)("title",{children:i})]})}function _i(e){let{appName:t,title:n,children:r}=e;return(0,b.jsxs)("div",{className:"h-screen",children:[(0,b.jsx)(_r,{appName:t,title:n}),r]})}function _o(e){let{appName:t,title:n,children:r,filters:i,actions:o}=e;return(0,b.jsxs)(_i,{appName:t,title:n,children:[(0,b.jsx)(_e,{}),(0,b.jsx)("div",{className:"flex h-full",children:(0,b.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,b.jsx)(j7,{nav:i,actions:o}),(0,b.jsx)("div",{className:"flex-1",children:(0,b.jsx)(lj,{className:"h-full",children:r})})]})})]})}function _a(e){let{size:t="12",wallet:{sc:n,sf:r}}=e;return(0,b.jsx)(tq,{size:t,weight:"medium",children:"".concat((0,m3.Vz)(n,{fixed:0})," ").concat(r&&r>0?" | ".concat((0,m3.ES)(r)):"")})}var _s=n(82876);function _l(e){let{title:t,children:n,route:r,onClick:i}=e,o=(0,_s.usePathname)(),a=r&&("/"===r?o===r:null==o?void 0:o.startsWith(r));return r?(0,b.jsx)(c2,{href:r,className:"no-underline",children:(0,b.jsx)(s7,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,b.jsx)(le,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}):(0,b.jsx)(s7,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,b.jsx)(le,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}function _u(e){let{walletBalance:t,isSynced:n,routes:r}=e;return(0,b.jsx)(_l,{title:"Wallet",route:r.wallet.view,children:(0,b.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,b.jsx)(lt.oaN,{}),n&&t&&(0,b.jsx)(_a,{wallet:{sc:t}})]})})}function _c(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalance:o,lock:a,openSettings:s,children:l}=e;return(0,b.jsx)(tG,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,b.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,b.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,b.jsx)(c3,{size:30})}),(0,b.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,b.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,b.jsx)("div",{className:"flex-1"}),(0,b.jsx)(c_,{className:"w-full"}),i&&(0,b.jsx)(_u,{routes:t,isSynced:r,walletBalance:o}),(0,b.jsx)(_l,{title:"Blockchain node",route:t.node.index,children:(0,b.jsx)(lt.kBK,{})}),(0,b.jsx)(_l,{title:"App preferences",onClick:()=>s(),children:(0,b.jsx)(lt.UG6,{})}),(0,b.jsx)(_l,{title:"Lock app",onClick:a,children:(0,b.jsx)(lt.mBM,{})})]})]})})}var _d=Object.create,_f=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,_p=Object.getOwnPropertyNames,_m=Object.getPrototypeOf,_v=Object.prototype.hasOwnProperty,_g=(v=null!=(m=(h=(e,t)=>{var r,i;r=e,i=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=2*536870912,i=new WeakMap,o=(t=function(e,t){return i.set(e,t),t},function(e){var o=i.get(e),a=void 0===o?e.size:on)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(a);)a=Math.floor(Math.random()*n);return t(e,a)});e.addUniqueNumber=function(e){var t=o(e);return e.add(t),t},e.generateUniqueNumber=o},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&n.amdO?define(["exports"],i):i((r="u">typeof globalThis?globalThis:r||self).fastUniqueNumbers={})},()=>(p||h((p={exports:{}}).exports,p),p.exports))())?_d(_m(m)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of _p(t))_v.call(e,n)||void 0===n||_f(e,n,{get:()=>t[n],enumerable:!(r=_h(t,n))||r.enumerable});return e})(m&&m.__esModule?v:_f(v,"default",{value:m,enumerable:!0}),m)),_y=e=>void 0!==e.method&&"call"===e.method,_b=e=>null===e.error&&"number"==typeof e.id;g=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(_y(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),n.delete(i);else throw Error("The timer is in an undefined state.")}}else if(_b(e)){let{id:i}=e,o=r.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;r.delete(i),"interval"===s?t.delete(a):n.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,_g.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),i.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,_g.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{let r=(0,_g.generateUniqueNumber)(t);return t.set(r,()=>{e(),"function"==typeof t.get(r)&&i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{let r=(0,_g.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},a=null,()=>{if(null!==a)return a;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return a=g(t),setTimeout(()=>URL.revokeObjectURL(t)),a};var _x=(typeof window>"u"?"undefined":typeof window)=="object",_w={setTimeout:_x?setTimeout.bind(window):setTimeout,clearTimeout:_x?clearTimeout.bind(window):clearTimeout,setInterval:_x?setInterval.bind(window):setInterval,clearInterval:_x?clearInterval.bind(window):clearInterval},_E={},_k=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,_E[e]=_E[e]||[],_E[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),_w.setTimeout(()=>{window.localStorage.removeItem(n)},500),_E[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=_E[this.name].indexOf(this);_E[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},_j=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:_k;function __(){return Math.random().toString(36).substring(2)}var _S=class{options;channel;token=__();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>_w.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(n=>{let r=()=>{if(e)return;e=!0;try{_w.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=_w.setInterval(()=>{this.apply().then(()=>{this.isLeader&&r()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&r()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>_w.clearInterval(e))}catch{}}}},_O=class{channel;options;elector;token=__();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new _j(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new _S(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},_C=_x?document:null,_M=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function _A(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function _T(e){let{route:t}=e,n=(0,fx.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function _N(e){let{appName:t,title:n,navTitle:r,profile:i,size:o="4",banner:a,nav:s,actions:l,stats:u,children:c,sidenav:d,connectivityRoute:f,isSynced:h,showWallet:p,walletBalance:m,routes:v,scroll:g=!0,openSettings:y}=e,{lock:w,settings:E}=(0,fx.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:o}=_T({route:n}),{settings:a}=(0,fx.Hv)(),s=(0,j6.useRouter)();(0,x.useEffect)(()=>{if(o)return;let e=!s.asPath.startsWith(r.login),n=!a.password||!i;if(e&&n){t();return}},[s,a.password,i,o])}({lock:w,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e,i=(0,x.useCallback)(()=>{n()},[n]);!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=_C,events:i=_M,timers:o,immediateEvents:a=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:v=!0,startManually:g=!1,stopOnIdle:y=!1,crossTab:b=!1,name:w="idle-timer",syncTimers:E=0,leaderElection:k=!1,disabled:j=!1}={}){let _=(0,x.useRef)(_P()),S=(0,x.useRef)(_P()),O=(0,x.useRef)(null),C=(0,x.useRef)(null),M=(0,x.useRef)(0),A=(0,x.useRef)(0),P=(0,x.useRef)(0),T=(0,x.useRef)(0),N=(0,x.useRef)(!1),R=(0,x.useRef)(!1),D=(0,x.useRef)(!1),L=(0,x.useRef)(!0),F=(0,x.useRef)(!1),V=(0,x.useRef)(null),I=(0,x.useRef)(null),z=(0,x.useRef)(e),Z=(0,x.useRef)(0);(0,x.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(n>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(n>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(z.current=e-n,Z.current=n):(z.current=e,Z.current=t),!L.current){if(g||j)return;N.current&&(K.current(null,eP),I.current&&I.current.active()),ed()}},[e,t,n,g,j]);let B=(0,x.useRef)(y);(0,x.useEffect)(()=>{B.current=y},[y]);let H=(0,x.useRef)(a),U=(0,x.useRef)(r),W=(0,x.useRef)([...new Set([...i,...a]).values()]),q=(0,x.useRef)(j);(0,x.useEffect)(()=>{q.current=j,!L.current&&(j?ep():g||ed())},[j]);let $=(0,x.useRef)(s);(0,x.useEffect)(()=>{$.current=s},[s]);let Y=(0,x.useRef)(l);(0,x.useEffect)(()=>{Y.current=l},[l]);let G=(0,x.useRef)(u);(0,x.useEffect)(()=>{G.current=u},[u]);let K=(0,x.useRef)(c);(0,x.useEffect)(()=>{K.current=c},[c]);let X=(0,x.useRef)(d);(0,x.useEffect)(()=>{X.current=d},[d]);let Q=(0,x.useRef)(f);(0,x.useEffect)(()=>{Q.current=f},[f]);let J=(0,x.useMemo)(()=>{let e=(e,t)=>X.current(e,t);return h>0?function(e,t){let n;function r(...i){n&&clearTimeout(n),n=setTimeout(()=>{e(...i),n=null},t)}return r.cancel=function(){clearTimeout(n)},r}(e,h):p>0?_A(e,p):e},[p,h]),ee=(0,x.useRef)();(0,x.useEffect)(()=>{b&&E&&(ee.current=_A(()=>{I.current.active()},E))},[b,E]);let et=()=>{null!==V.current&&(_w.clearTimeout(V.current),V.current=null)},en=(e,t=!0)=>{et(),V.current=_w.setTimeout(ea,e||z.current),t&&(C.current=_P())},er=e=>{R.current||N.current||(Y.current(e,eP),$.current({type:"active",prompted:!0},eP)),T.current=0,P.current=_P(),R.current=!0,en(Z.current,!1)},ei=()=>{et(),N.current||(G.current(null,eP),$.current({type:"idle"},eP)),N.current=!0,O.current=_P(),B.current?ec():R.current&&(P.current=0,R.current=!1)},eo=e=>{et(),(N.current||R.current)&&(K.current(e,eP),$.current({type:"active",prompted:!1},eP)),R.current=!1,P.current=0,N.current=!1,M.current+=_P()-O.current,A.current+=_P()-O.current,eu(),en()},ea=e=>{if(!N.current){J.cancel&&J.cancel();let t=_P()-C.current;if(!(z.current+Z.current0&&!R.current){I.current?I.current.prompt():er(e);return}I.current?I.current.idle():ei();return}I.current?I.current.active():eo(e)},es=e=>{if(v||C.current||(C.current=_P(),K.current(null,eP)),J(e,eP),R.current)return;if(et(),!N.current&&H.current.includes(e.type)){ea(e);return}let t=_P()-C.current;if(N.current&&!y||!N.current&&t>=z.current){ea(e);return}D.current=!1,T.current=0,P.current=0,en(),b&&E&&ee.current()},el=(0,x.useRef)(es);(0,x.useEffect)(()=>{let e=F.current;e&&ec(),m>0?el.current=_A(es,m):el.current=es,e&&eu()},[m,p,h,X,b,E]);let eu=()=>{_x&&U.current&&(F.current||(W.current.forEach(e=>{U.current.addEventListener(e,el.current,{capture:!0,passive:!0})}),F.current=!0))},ec=(e=!1)=>{_x&&U.current&&(F.current||e)&&(W.current.forEach(e=>{U.current.removeEventListener(e,el.current,{capture:!0})}),F.current=!1)},ed=(0,x.useCallback)(e=>!q.current&&(et(),eu(),N.current=!1,R.current=!1,D.current=!1,T.current=0,P.current=0,I.current&&!e&&I.current.start(),en(),!0),[V,N,q,z,I]),ef=(0,x.useCallback)(e=>!q.current&&(et(),eu(),S.current=_P(),M.current+=_P()-O.current,A.current+=_P()-O.current,M.current=0,N.current=!1,R.current=!1,D.current=!1,T.current=0,P.current=0,I.current&&!e&&I.current.reset(),g||en(),!0),[V,N,z,g,q,I]),eh=(0,x.useCallback)(e=>!q.current&&(et(),eu(),(N.current||R.current)&&eo(),N.current=!1,R.current=!1,D.current=!1,T.current=0,P.current=0,S.current=_P(),I.current&&!e&&I.current.activate(),en(),!0),[V,N,R,q,z,I]),ep=(0,x.useCallback)((e=!1)=>!q.current&&!D.current&&(T.current=eE(),D.current=!0,ec(),et(),I.current&&!e&&I.current.pause(),!0),[V,q,I]),em=(0,x.useCallback)((e=!1)=>!q.current&&!!D.current&&(D.current=!1,R.current||eu(),N.current||en(T.current),P.current&&(P.current=_P()),I.current&&!e&&I.current.resume(),!0),[V,z,q,T,I]),ev=(0,x.useCallback)((e,t)=>(I.current?(t&&Q.current(e,eP),I.current.message(e)):t&&Q.current(e,eP),!0),[f]),eg=(0,x.useCallback)(()=>N.current,[N]),ey=(0,x.useCallback)(()=>R.current,[R]),eb=(0,x.useCallback)(()=>I.current?I.current.isLeader:null,[I]),ex=(0,x.useCallback)(()=>I.current?I.current.isLastActive:null,[I]),ew=(0,x.useCallback)(()=>I.current?I.current.token:null,[I]),eE=(0,x.useCallback)(()=>{if(D.current)return T.current;let e=Math.floor((T.current?T.current:Z.current+z.current)-(C.current?_P()-C.current:0));return e<0?0:Math.abs(e)},[z,Z,R,T,C]),ek=(0,x.useCallback)(()=>Math.round(_P()-S.current),[S]),ej=(0,x.useCallback)(()=>Math.round(_P()-_.current),[_]),e_=(0,x.useCallback)(()=>O.current?new Date(O.current):null,[O]),eS=(0,x.useCallback)(()=>C.current?new Date(C.current):null,[C]),eO=(0,x.useCallback)(()=>N.current?Math.round(_P()-O.current+M.current):Math.round(M.current),[O,M]),eC=(0,x.useCallback)(()=>N.current?Math.round(_P()-O.current+A.current):Math.round(A.current),[O,A]),eM=(0,x.useCallback)(()=>{let e=Math.round(ek()-eO());return e>=0?e:0},[O,M]),eA=(0,x.useCallback)(()=>{let e=Math.round(ej()-eC());return e>=0?e:0},[O,M]);(0,x.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(_w.setTimeout=o.setTimeout,_w.clearTimeout=o.clearTimeout,_w.setInterval=o.setInterval,_w.clearInterval=o.clearInterval);let e=()=>{I.current&&I.current.close(),J.cancel&&J.cancel(),et(),ec(!0)};return _x&&window.addEventListener("beforeunload",e),()=>{_x&&window.removeEventListener("beforeunload",e),I.current&&I.current.close(),J.cancel&&J.cancel(),et(),ec(!0)}},[]),(0,x.useEffect)(()=>{I.current&&I.current.close(),b?I.current=new _O({channelName:w,leaderElection:k,onPrompt:()=>{er()},onIdle:()=>{ei()},onActive:()=>{eo()},onMessage:e=>{Q.current(e,eP)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):I.current=null},[b,w,k,Y,G,K,Q,ed,ef,ep,em]),(0,x.useEffect)(()=>{L.current||(et(),ec(!0)),g||j||(v?ed():eu())},[g,v,j,L]),(0,x.useEffect)(()=>{if(!L.current){let e=[...new Set([...i,...a]).values()];ec(),W.current=e,U.current=r,H.current=a,g||j||(v?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(a),L,j,g,v]),(0,x.useEffect)(()=>{L.current&&(L.current=!1)},[L]);let eP={message:ev,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:eb,isLastActiveTab:ex,getTabId:ew,getRemainingTime:eE,getElapsedTime:ek,getTotalElapsedTime:ej,getLastIdleTime:e_,getLastActiveTime:eS,getIdleTime:eO,getTotalIdleTime:eC,getActiveTime:eM,getTotalActiveTime:eA,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,Y.current=e},setOnIdle:e=>{u=e,G.current=e},setOnActive:e=>{c=e,K.current=e},setOnAction:e=>{d=e,X.current=e},setOnMessage:e=>{f=e,Q.current=e}}}({disabled:!t,onIdle:i,timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!E.autoLock,lockTimeout:E.autoLockTimeout,lock:w}),(0,b.jsxs)(_i,{appName:t,title:n,children:[(0,b.jsx)(_e,{}),(0,b.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,b.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,b.jsx)(_c,{routes:v,profile:i,openSettings:y,lock:w,showWallet:p,walletBalance:m,isSynced:h,children:d}),(0,b.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,b.jsx)(j7,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,b.jsx)(l6,{className:"z-0",children:(0,b.jsx)(lj,{size:o,pad:!1,children:(0,b.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,b.jsx)(lj,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function _R(e,t,n,r){let[i,o]=(0,x.useState)();return(0,x.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,x.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}function _D(e){let{filtered:t}=e;return(0,b.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,b.jsx)(tq,{children:(0,b.jsx)(lt.Hb6,{className:"scale-[200%]"})}),(0,b.jsx)(tq,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}(0,x.createContext)(null).Consumer;let _L=[];function _F(e){let{open:t,onOpenChange:n,dismissOne:r,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=_R(o.data,o.isValidating,o.error,_L),[u,c]=(0,x.useState)(),d=(0,x.useMemo)(()=>{var e;return(null===(e=o.data)||void 0===e?void 0:e.filter(e=>!u||e.severity===u))||[]},[o.data,u]),f=(0,x.useCallback)(e=>{let t=Object.keys(e).sort((e,t)=>{let n=a.indexOf(e),r=a.indexOf(t);return -1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r});return t},[a]);return(0,b.jsx)(l9,{open:t,onOpenChange:e=>{n(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsxs)(cU,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,b.jsxs)("div",{className:"flex gap-1",children:[(0,b.jsx)(le,{variant:"info"===u?"accent":"gray",onClick:()=>"info"===u?c(void 0):c("info"),children:"info"}),(0,b.jsx)(le,{variant:"warning"===u?"accent":"gray",onClick:()=>"warning"===u?c(void 0):c("warning"),children:"warning"}),(0,b.jsx)(le,{variant:"error"===u?"accent":"gray",onClick:()=>"error"===u?c(void 0):c("error"),children:"error"}),(0,b.jsx)(le,{variant:"critical"===u?"accent":"gray",onClick:()=>"critical"===u?c(void 0):c("critical"),children:"critical"}),(0,b.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,b.jsxs)(le,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,b.jsx)(lt.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,b.jsxs)("div",{className:(0,ea.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,b.jsx)(_D,{filtered:!1}),"error"===l&&(0,b.jsx)("div",{className:(0,ea.cx)("flex items-center justify-center h-[100px]",_z()),children:(0,b.jsx)(tq,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,b.jsx)(_I,{}),!l&&(0,b.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,b.jsxs)("div",{className:(0,ea.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,b.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,b.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,b.jsxs)(tq,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,b.jsx)(le,{tip:"Dismiss alert",onClick:()=>r(e.id),children:(0,b.jsx)(lt.NlZ,{})})]}),(0,b.jsxs)("div",{className:"flex justify-between w-full",children:[(0,b.jsx)(tq,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,b.jsx)(tq,{color:"contrast",ellipsis:!0,children:(0,m3.rN)(e.timestamp,{timeStyle:"medium"})})]}),f(e.data).map(t=>{var n;let r=e.data[t];if(null==r||"object"==typeof r&&!Object.keys(r).length)return null;let i=(null==s?void 0:null===(n=s[t])||void 0===n?void 0:n.render)||_V;return(0,b.jsx)(i,{label:t,value:r},t)})]},e.id)):(0,b.jsx)(_D,{filtered:!!u})})]})})}function _V(e){let{label:t,value:n}=e;return(0,b.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,b.jsx)(tq,{color:"subtle",children:t}),(0,b.jsx)(tq,{color:"contrast",ellipsis:!0,children:String(n)})]})}function _I(){return(0,b.jsx)(b.Fragment,{children:jS()(10,e=>(0,b.jsx)("div",{className:(0,ea.cx)("relative flex gap-4 p-3.5",_z()),children:(0,b.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,b.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,b.jsx)(fA,{className:"w-[160px] h-[20px]"}),(0,b.jsx)(fA,{className:"w-[160px] h-[20px]"})]}),(0,b.jsx)(fA,{className:"w-[100px] h-[20px]"}),(0,b.jsx)(fA,{className:"w-full h-[120px]"})]})},e))})}function _z(){return(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}var _Z=n(89644),_B=n.n(_Z),_H=n(63955),_U=n(45861),_W=n.n(_U);function _q(e){let{form:t,field:n,name:r}=e,i=t.watch(r),o=t.formState.touchedFields[r]&&!!t.formState.errors[r],{ref:a,onChange:s,onBlur:l}=t.register(r,n.validation),u=(0,x.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,x.useCallback)((e,i)=>{var o;t.setValue(r,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(o=n.trigger)||void 0===o||o.forEach(e=>t.trigger(e))},[r,t,n]);return{ref:a,name:r,value:i,error:o,onBlur:l,onChange:u,setValue:c}}function _$(e){return(0,x.useCallback)(t=>{ju(_W()(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", "))},[e])}function _Y(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:o,spellCheck:a,state:s=!0,group:l=!0}=e,u=r[t],{ref:c,onChange:d,onBlur:f,error:h}=_q({name:t,form:n,field:u}),p=(0,b.jsx)(d3,{ref:c,name:t,placeholder:u.placeholder,size:i,autoComplete:o,type:u.type,readOnly:u.readOnly,spellCheck:a,onClick:u.onClick,state:s?h?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:d,onBlur:f});return l?(0,b.jsx)(jK,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var _G=n(829),_K=n.n(_G);async function _X(e){let{api:t,route:n,password:r}=e;try{return await _B().get("".concat(t,"/api").concat(n),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(r))},timeout:1e4}),{}}catch(n){let e=n.code,t=n.response;if((null==t?void 0:t.status)===504)return{error:"Error, check that daemon is running"};if((null==t?void 0:t.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===e)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function _Q(e){let{appName:t,route:n,routes:r}=e,i=(0,j6.useRouter)(),{settings:o,setSettings:a}=(0,fx.Hv)(),{allowCustomApi:s}=o,l=(0,x.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,_H.cI)({mode:"onBlur",defaultValues:l});(0,x.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,x.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await _X({api:t,route:n,password:e.password});c?u.setError("password",{message:c}):(a({api:t,password:e.password,recentApis:{...o.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):r.home),u.reset(l))},[s,u,i,r,o,a,l,n]),d=function(e){let{allowCustomApi:t}=e;return{api:{type:"text",title:"API",placeholder:"http://127.0.0.1:9980",validation:{validate:{required:e=>!t||!!e||"API is required",url:e=>{try{let t=new URL(e);return!!t.protocol&&!!t.host||"invalid API URL"}catch(e){return"invalid API URL"}},https:e=>{let t="https:"===window.location.protocol;return!t||t&&e.startsWith("https")||"API must use HTTPS"}}}},password:{type:"password",title:"Password",placeholder:"Enter password",validation:{required:"password is required"}}}}({allowCustomApi:s}),f=_$(d),h=u.formState.errors.api||u.formState.errors.password,p=_K()(Object.entries(o.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,b.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,b.jsx)(tG,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,b.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,b.jsxs)("div",{className:"flex justify-between items-center",children:[(0,b.jsx)(tq,{font:"mono",weight:"bold",size:"20",children:t}),(0,b.jsx)(cL,{trigger:(0,b.jsx)(le,{icon:"hover",variant:"ghost",children:(0,b.jsx)(lt.shL,{})}),children:(0,b.jsx)(cF,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,b.jsx)(c_,{className:"w-full mt-2 mb-3"}),(0,b.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,b.jsxs)(lE,{children:[(0,b.jsx)(_Y,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,b.jsx)(cL,{trigger:(0,b.jsx)(le,{type:"button",children:(0,b.jsx)(lt.wGX,{})}),children:p.map(e=>(0,b.jsx)(cF,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,b.jsx)(_Y,{name:"password",form:u,fields:d,group:!1}),h&&(0,b.jsx)(tq,{size:"14",color:"red",children:h.message}),(0,b.jsx)(jX,{size:"small",form:u,children:"Unlock"})]})})]})})})}var _J=n(63397),_0=n(24511);let _1={address:"",siacoin:void 0,includeFee:!1},_2=_0.Ry().shape({address:_0.Z_().required("Required"),siacoin:_0.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(fv())(e||0).isZero())});function _4(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,o=n.plus(r);return(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,b.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,b.jsx)(jw,{value:t,type:"address"})]}),(0,b.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,b.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,b.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,b.jsx)(jk,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,b.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,b.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,b.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,b.jsx)(jk,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,b.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,b.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,b.jsx)(jk,{size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,b.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,b.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,b.jsx)(jw,{value:i,type:"transaction"})]})]})}function _3(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),o=n.length-1;return(0,b.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,b.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,b.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/o*100,"%")}}),n.map((e,n)=>{let{id:a,label:s}=e,l=t===a,u=i>=n,c=n===o,d=0===n,f=u&&i!==o;return(0,b.jsxs)("div",{className:(0,ea.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(n/o*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&r(a)},children:[(0,b.jsx)(tq,{color:l?"contrast":"verySubtle",className:(0,ea.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,b.jsx)("div",{className:(0,ea.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,b.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},a)})]})}function _5(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsx)(_4,{address:t,siacoin:n,fee:r,transactionId:i}),(0,b.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,b.jsx)(tq,{children:(0,b.jsx)(lt.Z$8,{})}),(0,b.jsx)(tq,{children:"Transaction successfully broadcasted."})]})]})}let _6=(0,m3.qN)(.00393),_8={address:"",siacoin:new(fv())(0),includeFee:!1};function _7(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:o}=e,[a,s]=(0,x.useState)("setup"),[l,u]=(0,x.useState)(),[c,d]=(0,x.useState)(_8),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,_J.TA)({initialValues:_1,validationSchema:_2,onSubmit:async e=>{if(!e.siacoin)return;let o=e.includeFee?(0,m3.qN)(e.siacoin).minus(n):(0,m3.qN)(e.siacoin);if(t){if(t.isLessThan((0,m3.qN)(e.siacoin).plus(n))){i.setStatus({error:"Not enough funds in wallet."});return}i.setStatus({}),r({includeFee:e.includeFee,address:e.address,siacoin:o})}}}),o=(0,m3.qN)(i.values.siacoin||0),a=(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsx)(jQ,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,b.jsx)(jQ,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,b.jsxs)("div",{className:"flex items-center",children:[(0,b.jsx)(fU,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,b.jsx)(fj,{children:"Include or exclude the network fee from the above transaction value."}),(0,b.jsx)("div",{className:"flex flex-1"})]}),(0,b.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,b.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,b.jsx)(tq,{color:"verySubtle",children:"Network fee"}),(0,b.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,b.jsx)(jk,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,b.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,b.jsx)(tq,{color:"verySubtle",children:"Total"}),(0,b.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,b.jsx)(jk,{size:"14",value:i.values.includeFee?o:o.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:a}}({balance:i,fee:_6,onComplete:e=>{d(e),s("confirm")}}),h=function(e){let{send:t,formData:n,fee:r,onConfirm:i}=e,{address:o,siacoin:a}=n||{},s=(0,_J.TA)({initialValues:{},onSubmit:async()=>{let{transactionId:e,error:n}=await t({address:o,sc:a});if(n){s.setStatus({error:n});return}i({transactionId:e})}}),l=(0,b.jsx)("div",{className:"flex flex-col gap-4",children:(0,b.jsx)(_4,{address:o,siacoin:a,fee:r})});return{form:l,formik:s}}({fee:_6,formData:c,send:o,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,x.useMemo)(()=>"setup"===a?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===a?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[a,f,h]);return(0,b.jsx)(l9,{trigger:t,open:n,onOpenChange:e=>{e||(f.formik.resetForm(),h.formik.resetForm(),s("setup")),r(e)},title:"Send siacoin",onSubmit:p?p.formik.handleSubmit:void 0,controls:p&&(0,b.jsx)("div",{className:"flex flex-col gap-1",children:(0,b.jsx)(j3,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsx)(_3,{onChange:e=>s(e),activeStep:a,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,b.jsx)(c_,{className:"w-full mt-4"}),"setup"===a&&f.form,"confirm"===a&&h.form,"done"===a&&(0,b.jsx)(_5,{data:c,fee:_6,transactionId:l})]})})}let _9="[a-fA-F\\d:]",Se=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(_9,")|(?<=").concat(_9,")(?=\\s|$))"):"",St="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",Sn="[a-fA-F\\d]{1,4}",Sr="\n(?:\n(?:".concat(Sn,":){7}(?:").concat(Sn,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(Sn,":){6}(?:").concat(St,"|:").concat(Sn,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(Sn,":){5}(?::").concat(St,"|(?::").concat(Sn,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(Sn,":){4}(?:(?::").concat(Sn,"){0,1}:").concat(St,"|(?::").concat(Sn,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(Sn,":){3}(?:(?::").concat(Sn,"){0,2}:").concat(St,"|(?::").concat(Sn,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(Sn,":){2}(?:(?::").concat(Sn,"){0,3}:").concat(St,"|(?::").concat(Sn,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(Sn,":){1}(?:(?::").concat(Sn,"){0,4}:").concat(St,"|(?::").concat(Sn,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(Sn,"){0,5}:").concat(St,"|(?::").concat(Sn,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),Si=new RegExp("(?:^".concat(St,"$)|(?:^").concat(Sr,"$)")),So=new RegExp("^".concat(St,"$")),Sa=new RegExp("^".concat(Sr,"$")),Ss=e=>e&&e.exact?Si:RegExp("(?:".concat(Se(e)).concat(St).concat(Se(e),")|(?:").concat(Se(e)).concat(Sr).concat(Se(e),")"),"g");Ss.v4=e=>e&&e.exact?So:RegExp("".concat(Se(e)).concat(St).concat(Se(e)),"g"),Ss.v6=e=>e&&e.exact?Sa:RegExp("".concat(Se(e)).concat(Sr).concat(Se(e)),"g");let Sl=()=>RegExp("^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|((([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]).)+([A-Za-z|[A-Za-z][A-Za-z0-9‌​-]*[A-Za-z0-9])))$","g"),Su={port:9981,ip:""},Sc=_0.Ry().shape({port:_0.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:_0.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>Sl().test(e||""))});function Sd(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,o=(0,_J.TA)({initialValues:Su,validationSchema:Sc,onSubmit:async(e,t)=>{let n="".concat(e.ip,":").concat(e.port),o=await r(n);if(o.error){let e=o.error.replace("invalid peer address: address ".concat(n,":"),"");t.setStatus({error:e})}else js("Connected to peer"),t.resetForm(),i(!1)}});return(0,b.jsx)(l9,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||o.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsx)(t$,{size:"14",children:"Connect to a peer by IP address."}),(0,b.jsx)("form",{onSubmit:o.handleSubmit,children:(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsx)(jQ,{formik:o,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,b.jsx)(jQ,{formik:o,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,b.jsx)(j3,{formik:o,size:"medium",children:"Connect"})]})})]})})}function Sf(e){var t;let{id:n,transaction:r,trigger:i,open:o,onOpenChange:a}=e;return(0,b.jsx)(l9,{title:jm((null==r?void 0:r.txType)?jZ()(jx(r.txType)):"Transaction",n,16),trigger:i,open:o,onOpenChange:a,contentVariants:{className:"w-[800px]"},children:r?(0,b.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,b.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,b.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,b.jsx)(tq,{children:"Inflow"}),(0,b.jsx)(jk,{value:new(fv())((null==r?void 0:r.inflow)||0)})]}),(0,b.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,b.jsx)(tq,{children:"Outflow"}),(0,b.jsx)(jk,{value:new(fv())((null==r?void 0:r.outflow)||0).negated()})]}),(0,b.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,b.jsx)(tq,{children:"Miner fee"}),(0,b.jsx)(jk,{value:new(fv())((null==r?void 0:null===(t=r.raw.minerFees)||void 0===t?void 0:t.reduce((e,t)=>e.plus(t),new(fv())(0)))||0)})]}),(0,b.jsx)("div",{className:"flex-1"}),(0,b.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,b.jsx)(tq,{children:"Timestamp"}),(0,b.jsx)(tq,{children:(0,m3.rN)((null==r?void 0:r.timestamp)||0,{timeStyle:"short"})})]})]}),(0,b.jsx)(ly,{children:JSON.stringify(null==r?void 0:r.raw,null,2)})]}):(0,b.jsx)(tq,{children:"Could not find transaction in wallet"})})}_0.Ry().shape({address:_0.Z_().required("Required"),description:_0.Z_().required("Required"),index:_0.Rx().integer().required("Required")});var Sh=n(38001);function Sp(e){let{title:t,description:n,address:r}=e;return(0,b.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,b.jsx)(cU,{size:"20",font:"mono",children:t}),n&&(0,b.jsx)(tq,{children:n}),(0,b.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,b.jsx)("div",{className:"absolute",children:(0,b.jsx)(Sh.Z,{size:200,value:r})})}),(0,b.jsx)(jw,{type:"address",value:r})]})}function Sm(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:o}=e;return(0,b.jsx)(l9,{title:jm("Address",jp(t)||"",16),trigger:r,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,b.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,b.jsx)(Sp,{address:t||""}):(0,b.jsx)(tq,{children:"Could not retreive wallet address"})})})}function Sv(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,b.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,b.jsx)(tq,{color:"amber",children:(0,b.jsx)(lt.qdM,{})}),(0,b.jsxs)(tq,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,b.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,b.jsx)(tq,{color:"amber",children:(0,b.jsx)(lt.qdM,{})}),(0,b.jsxs)(tq,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let Sg={docs:{index:"https://docs.sia.tech",sia101:"https://docs.sia.tech/get-started-with-sia/sia101",renting:"https://docs.sia.tech/renting/about-renting",wallet:"https://docs.sia.tech/your-sia-wallet/wallet-overview",hosting:"https://docs.sia.tech/hosting/about-hosting-on-sia",mining:"https://docs.sia.tech/mining/about-mining-on-sia",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://api.sia.tech",siaui:"https://docs.sia.tech/your-sia-wallet/sia-ui-faqs",brand:"https://docs.sia.tech/sia-integrations/sia-brand-guidelines"},website:{index:"https://sia.tech",tos:"https://sia.tech/terms-of-service",privacy:"https://sia.tech/privacy-policy"},github:{index:"https://github.com/SiaFoundation",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://github.com/SiaFoundation/siad",renterd:"https://github.com/SiaFoundation/renterd",walletd:"https://github.com/SiaFoundation/walletd",hostd:"https://github.com/SiaFoundation/hostd",siaui:"https://gitlab.com/NebulousLabs/Sia-UI"},discord:"https://sia.tech/discord"};function Sy(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,fx.Hv)();return(0,b.jsx)(fO,{disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:n.map(e=>{let{id:t,label:n}=e;return(0,b.jsx)(fC,{value:t,children:n},t)})})}function Sb(e){let{open:t,onOpenChange:n,securityEl:r}=e,{settings:i,setSettings:o,gpu:a}=(0,fx.Hv)();return(0,b.jsx)(l9,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,b.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,b.jsx)("div",{className:"flex flex-col gap-4",children:(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsx)(tq,{size:"16",weight:"bold",children:"Display"}),(0,b.jsx)(t$,{size:"14",children:"Configure visual and locale display preferences."}),(0,b.jsx)(lr,{children:(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,b.jsx)(tq,{children:(0,b.jsx)(lt.RdX,{})}),(0,b.jsx)(cU,{size:"20",className:"flex-1",children:"Currency"}),(0,b.jsx)(Sy,{})]}),(0,b.jsx)(t$,{size:"14",children:"Select a currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,b.jsx)(lr,{children:(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,b.jsx)(tq,{children:(0,b.jsx)(lt.RdX,{})}),(0,b.jsx)(cU,{size:"20",className:"flex-1",children:"Theme"}),(0,b.jsx)(ph,{})]}),(0,b.jsx)(t$,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),(0,b.jsx)(lr,{children:(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,b.jsx)(tq,{children:(0,b.jsx)(lt.RdX,{})}),(0,b.jsx)(cU,{size:"20",className:"flex-1",children:"GPU"}),(0,b.jsx)(fU,{disabled:!a.canGpuRender,checked:a.canGpuRender&&a.isGpuEnabled,onCheckedChange:a.setIsGpuEnabled,size:"medium"})]}),(0,b.jsxs)(t$,{size:"14",children:["Enable features that require a GPU."," ",a.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,b.jsx)(c_,{className:"w-full"}),(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)(tq,{size:"16",weight:"bold",children:"Security"}),(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsx)(t$,{size:"14",children:"Configure security preferences."}),(0,b.jsx)(lr,{children:(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,b.jsx)(tq,{children:(0,b.jsx)(lt.RdX,{})}),(0,b.jsx)(cU,{size:"20",className:"flex-1",children:"Lock app"}),(0,b.jsx)(fU,{size:"medium",checked:i.autoLock,onCheckedChange:e=>o({autoLock:e})}),(0,b.jsxs)(fO,{disabled:!i.autoLock,value:String(i.autoLockTimeout),onChange:e=>{o({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,b.jsx)(fC,{value:EM(5),children:"5 minutes"}),(0,b.jsx)(fC,{value:EM(10),children:"10 minutes"}),(0,b.jsx)(fC,{value:EM(20),children:"20 minutes"}),(0,b.jsx)(fC,{value:EM(30),children:"30 minutes"}),(0,b.jsx)(fC,{value:EM(60),children:"1 hour"})]})]}),(0,b.jsx)(t$,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,b.jsx)(c_,{className:"w-full"}),(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)(tq,{size:"16",weight:"bold",children:"Privacy"}),(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsx)(t$,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. All third-party APIs are optional and can be toggled on or off."}),(0,b.jsx)(lr,{children:(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,b.jsx)(tq,{children:(0,b.jsx)(lt.RdX,{})}),(0,b.jsx)(cU,{size:"20",className:"flex-1",children:"Sia Central"}),(0,b.jsx)(fU,{size:"medium",checked:i.siaCentral,onCheckedChange:e=>o({siaCentral:e})})]}),(0,b.jsx)(t$,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,b.jsx)(c_,{className:"w-full"}),(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,b.jsx)(tq,{size:"16",weight:"bold",children:"Help"}),(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsx)(t$,{size:"14",children:"Find information about the Sia software at our website, documentation site, and on Github. Join our active Discord community for discussion and help troubleshooting issues."}),(0,b.jsxs)("div",{className:"flex gap-4",children:[(0,b.jsxs)(c2,{href:Sg.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,b.jsx)(lt.lq1,{}),"Website"]}),(0,b.jsxs)(c2,{href:Sg.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,b.jsx)(lt.RdX,{}),"Docs"]}),(0,b.jsxs)(c2,{href:Sg.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,b.jsx)(lt.Sfn,{}),"About"]}),(0,b.jsxs)(c2,{href:Sg.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,b.jsx)(lt.b47,{}),"Discord"]})]})]})]})]})})}function Sx(e){let{sc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,b.jsx)(tG,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,b.jsx)(tq,{size:"12",weight:"semibold",children:(0,m3.Vz)(t)})}):(0,b.jsx)(s7,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,b.jsxs)(tG,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,b.jsx)(tq,{color:"amber",children:(0,b.jsx)(lt.qdM,{className:""})}),(0,b.jsx)(tq,{size:"12",weight:"semibold",children:(0,m3.Vz)(t)})]})}):null}function Sw(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,sc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(Sx,{isSynced:t&&n,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(r,"%), balance may be incorrect."),sc:o}),s&&(0,b.jsxs)(le,{size:"small",onClick:s,children:[(0,b.jsx)(lt.xHM,{}),"Receive"]}),(0,b.jsxs)(le,{size:"small",variant:"accent",onClick:a,children:[(0,b.jsx)(lt.rW0,{}),"Send"]})]})}function SE(e,t){if(!e||!e.length)return[];let n=Object.keys(EC()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let r=[];return"delta"===t?e.forEach((t,i)=>{let o={...t};0!==i&&(n.forEach(n=>{let r=t[n],a=e[i-1][n];o[n]=r-a}),r.push(o))}):r=e.slice(1),r}function Sk(e,t){return"all"===e?{start:new Date(2022,1,1).getTime(),end:t}:{start:t-EP(Number(e)),end:t}}let Sj={"5m":e=>{let t=e+EM(5);return"5m interval from ".concat((0,m3.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,m3.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+EM(15);return"15m interval from ".concat((0,m3.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,m3.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>{let t=e+EA(1);return"Hour interval from ".concat((0,m3.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,m3.rN)(t,{timeStyle:"short",hour12:!1}))},daily:e=>{let t=e+EA(24);return"Day interval from ".concat((0,m3.rN)(e)," to ").concat((0,m3.rN)(t))},weekly:e=>{let t=e+EP(7);return"Week interval from ".concat((0,m3.rN)(e)," to ").concat((0,m3.rN)(t))},monthly:e=>{let t=e+EP(30);return"Month interval from ".concat((0,m3.rN)(e)," to ").concat((0,m3.rN)(t))},yearly:e=>{let t=e+EP(365);return"Year interval from ".concat((0,m3.rN)(e)," to ").concat((0,m3.rN)(t))},default:e=>"".concat((0,m3.rN)(e))};function S_(e){return Sj[e]||Sj.default}function SS(e){if(!e||!e.length)return{};let t=Object.keys(EC()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let n=t.reduce((t,n)=>({...t,[n]:function(e,t){var n,r;let i=(null===(n=t[0])||void 0===n?void 0:n[e])||0,o=(null===(r=t[t.length-1])||void 0===r?void 0:r[e])||0,a=t.reduce((t,n)=>t+(n[e]||0),0);return SO({total:a,start:i,end:o,count:t.length})}(n,e)}),{});return{...n,total:function(e,t){let n=SC(e,t[0]),r=SC(e,t[t.length-1]),i=t.reduce((t,n)=>t+SC(e,n),0);return SO({total:i,start:n,end:r,count:t.length})}(t,e)}}function SO(e){let{total:t,start:n,end:r,count:i}=e,o=r-n;return{total:t,diff:o,change:0===n?void 0:o/n*100,latest:r,average:t/i}}function SC(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function SM(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,pd.F)(),o=(0,x.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:m4.accent[800]}}:{sc:{label:"siacoin",color:m4.accentdark[800]}},[i]),a=(0,x.useMemo)(()=>{let e=SE(t,"none"),i=SS(t);return{data:e,stats:i,config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,m3.Vz)(e),formatTimestamp:S_("default"),disableAnimations:!0},chartType:r,isLoading:n}},[t,n,o,r]);return(0,b.jsx)("div",{className:"relative",children:(0,b.jsx)(EL,{id:"balance",height:200,allowConfiguration:!1,data:a.data,config:a.config,chartType:a.chartType})})}function SA(e){let{peers:t,connectPeer:n}=e;return(0,b.jsx)(jW,{title:"Peers",actions:(0,b.jsx)(le,{onClick:n,children:"Connect"}),entities:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function SP(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:o}=e;return(0,b.jsxs)("div",{className:(0,ea.cx)("flex gap-1.5 items-center",r?"opacity-100":"opacity-50",i?"cursor-pointer":"cursor-auto",i&&(r?"hover:opacity-90":"hover:opacity-60")),onClick:()=>i&&i(!r),children:[o&&(0,b.jsx)("div",{className:"relative top-px",children:(0,b.jsx)(fT,{style:{backgroundColor:o}})}),(0,b.jsx)(tq,{size:t,children:n})]})}var ST=n(92762);let SN={total:"total",average:"average",latest:"latest"};function SR(e){let{category:t,label:n,color:r,sc:i,value:o,extendedSuffix:a,format:s=e=>e.toFixed(2),defaultMode:l,enabledModes:u=["total","average","latest"],isLoading:c,showChange:d=!0}=e,[f,h]=(0,ST.Z)("v0/datum/".concat(t,"/").concat(n),{defaultValue:l});return(0,b.jsx)(jq,{isLoading:c,label:(0,b.jsx)(SP,{label:n,color:r}),actions:(0,b.jsx)(fO,{onChange:e=>h(e.currentTarget.value),defaultValue:f,children:u.map(e=>(0,b.jsx)(fC,{value:e,children:SN[e]},e))}),sc:(null==i?void 0:i[f])!==void 0?new(fv())(i[f]):void 0,extendedSuffix:a,value:(null==o?void 0:o[f])!==void 0&&s?s(o[f]):void 0,comment:i?(0,b.jsxs)("div",{className:"flex items-center gap-4",children:[(0,b.jsx)(jk,{tooltip:"Net change over time range:",value:new(fv())(i.diff)}),d&&void 0!==i.change&&(0,b.jsx)(s7,{content:"Percent change over time range",children:(0,b.jsxs)(tq,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[i.change.toFixed(2),"%"]})})]}):o&&(0,b.jsxs)("div",{className:"flex items-center gap-4",children:[(0,b.jsx)(jj,{tooltip:"Net change over time range:",format:e=>s(e.toNumber()),value:new(fv())(o.diff)}),d&&void 0!==o.change&&(0,b.jsx)(s7,{content:"Percent change over time range",children:(0,b.jsxs)(tq,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[o.change.toFixed(2),"%"]})})]})})}function SD(e){let{children:t,bleed:n}=e;return(0,b.jsx)("div",{className:(0,ea.cx)(n?"-mx-5 overflow-hidden":""),children:(0,b.jsx)(l6,{children:(0,b.jsx)("div",{className:(0,ea.cx)("flex gap-4 py-4",n?"px-5 w-fit":""),children:t})})})}function SL(e){return 4320*e}function SF(e){return e/16666666666666669e-22}function SV(e){return e/4320}function SI(e,t){return new Date().getTime()+SF(t-e)}function Sz(e){let{children:t,variant:n,align:r}=e;return(0,b.jsx)("div",{className:"relative",style:{top:"primary"===n?"6px":void 0,left:"start"===r?"0px":void 0,right:"end"===r?"0px":void 0},children:(0,b.jsx)(tq,{size:"10",color:"primary"===n?"contrast":"verySubtle",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function SZ(e){let{date:t,align:n,variant:r}=e;return t?(0,b.jsx)(Sz,{variant:r,align:n,children:(0,m3.rN)(t)}):null}function SB(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,b.jsx)(Sz,{variant:r,align:n,children:t.toLocaleString()}):null}function SH(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:o,color:a,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!o)return null;let d=r.endHeight-r.startHeight,f=SF(d),h=SI(n,r.startHeight),p=SI(n,i),m=SI(n,o),v=(p-h)/f,g=(m-h)/f;return(0,b.jsxs)("div",{className:(0,ea.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:SU(v),width:SU(g-v)},children:[(0,b.jsx)("div",{className:(0,ea.cx)("z-0 absolute w-full h-full","rounded-md","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10"),style:{width:"calc(100% + 8px)",left:"-4px"}}),(0,b.jsx)("div",{className:(0,ea.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-blue-500/50 dark:border-blue-500/50"]:[],"green"===a?["bg-green-300 dark:bg-green-300","group-hover:bg-green-400 dark:group-hover:bg-green-400","border-green-500/50 dark:border-green-500/50"]:[],"amber"===a?["bg-amber-300 dark:bg-amber-300","group-hover:bg-amber-400 dark:group-hover:bg-amber-400","border-amber-500/50 dark:border-amber-500/50"]:[])}),(0,b.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:SU(1-g)}:{left:SU(v)},children:[(0,b.jsx)(SB,{blockHeight:i,align:"start",variant:"primary"}),(0,b.jsx)(Sz,{variant:"primary",children:t}),(0,b.jsx)(SB,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,b.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:SU(1-g)}:{left:SU(v)},children:[(0,b.jsx)(SZ,{date:p,align:"start",variant:"secondary"}),(0,b.jsx)(SZ,{date:m,align:"start",variant:"secondary"})]}),(0,b.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:SU(1-g)}:{left:SU(v)},children:[(0,b.jsx)(SZ,{date:p,align:"start",variant:"secondary"}),(0,b.jsx)(SZ,{date:m,align:"start",variant:"secondary"})]})]})}function SU(e){return"".concat(100*e,"%")}function SW(e){let{currentHeight:t,eventHeight:n,range:r,label:i,bottomLabel:o,color:a,className:s,unconfirmedPing:l=!0}=e,u=!!n&&n>t,c=n&&!u&&t-n<6,d=r.endHeight-r.startHeight,f=SF(d),h=SI(t,r.startHeight),p=n?SI(t,n):0;return n?(0,b.jsx)("div",{className:(0,ea.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",s),style:{left:"".concat(100*(p?(p-h)/f:0),"%")},children:(0,b.jsxs)("div",{className:(0,ea.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[l&&c&&(0,b.jsx)("div",{className:(0,ea.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,b.jsx)("div",{className:(0,ea.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,b.jsx)("div",{className:(0,ea.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===a?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===a?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===a?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,b.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,b.jsx)(SB,{blockHeight:n,align:"start",variant:"primary"}),(0,b.jsx)(Sz,{variant:"primary",children:i})]}),(0,b.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,b.jsx)(SZ,{date:p,align:"start",variant:"secondary"}),o&&(0,b.jsx)(Sz,{variant:"secondary",children:o})]})]})}):null}function Sq(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:o,revisionHeight:a,proofHeight:s,range:l}=e,u=t-n<6;return(0,b.jsx)("div",{className:"group/main relative w-full",children:(0,b.jsx)("div",{className:"relative py-6",children:(0,b.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,b.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,b.jsxs)("div",{className:"group/segments",children:[(0,b.jsx)(SH,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,b.jsx)(SH,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,b.jsx)(SW,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,b.jsx)(SW,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,b.jsx)(SW,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,b.jsx)(SW,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var S$=n(17335),SY=n.n(S$);function SG(e){let{label:t,columns:n,enabled:r,setColumnsVisible:i,setColumnsHidden:o}=e,a=0===SY()(n,r).length,s=SY()(n,r).length===n.length;return(0,b.jsxs)(cP,{children:[(0,b.jsx)(cJ,{children:t}),(0,b.jsxs)(cT,{children:[(0,b.jsx)(le,{tip:"".concat(t,": show all"),icon:a?"contrast":"hover",variant:"ghost",onClick:e=>{e.stopPropagation(),i(n)},children:(0,b.jsx)(lt.xVB,{})}),(0,b.jsx)(le,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(n)},children:(0,b.jsx)(lt.pHg,{})})]})]})}function SK(e){let{title:t,children:n}=e;return(0,b.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,b.jsx)(cU,{anchorLink:!0,size:"24",children:t}),(0,b.jsx)(tG,{className:"p-6",children:(0,b.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function SX(e){let{title:t,description:n,control:r}=e;return(0,b.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,b.jsx)(cU,{size:"20",children:t}),(0,b.jsx)(t$,{size:"14",children:n})]}),(0,b.jsx)("div",{className:"",children:r})]})}function SQ(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=n||{},c=(0,_H.cI)(),d=(0,x.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,b.jsx)(l9,{title:a,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,b.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,b.jsx)("div",{className:"flex gap-1 justify-end",children:(0,b.jsx)(jX,{variant:s,form:c,size:"small",children:l})})]})})})}function SJ(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:o}=e;return(0,b.jsxs)("div",{className:"flex justify-between items-center",children:[(0,b.jsx)(tq,{font:"mono",weight:"bold",size:"20",children:t}),(0,b.jsxs)("div",{className:"flex items-center",children:[n?(0,b.jsxs)(le,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(n," connected peers"),children:[(0,b.jsx)(tq,{color:"subtle",children:n.toLocaleString()}),(0,b.jsx)(lt.RK4,{})]}):null,i&&r?(0,b.jsx)(s7,{content:"Blockchain is synced",children:(0,b.jsx)("div",{className:"relative left-2",children:(0,b.jsxs)(le,{variant:"ghost",state:"waiting",children:[(0,b.jsx)(tq,{color:"subtle",children:i.toLocaleString()}),(0,b.jsx)(tq,{color:"green",children:(0,b.jsx)(lt.Y3p,{})})]})})}):null]})]})}function S0(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,b.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,b.jsx)(dP,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,b.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,b.jsx)(tq,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,b.jsx)(tq,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,b.jsx)(tq,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function S1(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:o,nodeBlockHeight:a,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,b.jsx)(hP,{rootProps:{openDelay:100},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,b.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,b.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,b.jsxs)(tq,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,b.jsx)(c3,{size:30})]}),children:(0,b.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[300px]",children:[(0,b.jsx)(SJ,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,b.jsx)(c_,{className:"w-full mb-0.5"}):(0,b.jsx)(S0,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(tq,{color:"contrast",size:"14",children:"Welcome to Sia! The blockchain is syncing to the current network height. Depending on your system this process may take a while."}),(0,b.jsx)(c_,{className:"w-full mb-1"})]}),c]})})}function S2(e){let{testnetName:t}=e;return(0,b.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,b.jsx)(tq,{color:"lo",children:(0,b.jsx)(lt.RdX,{})}),(0,b.jsxs)(tq,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function S4(e){let{type:t,label:n,link:r,tip:i,icon:o,value:a,onClick:s,decimalsLimit:l,units:u}=e;return(0,b.jsxs)("div",{className:"flex justify-between items-center",children:[(0,b.jsx)(s7,{align:"start",side:"bottom",content:i,children:(0,b.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,b.jsx)(tq,{className:"flex relative",children:o||(0,b.jsx)(lt.RdX,{})}),(0,b.jsx)(tq,{size:"12",ellipsis:!0,children:r?(0,b.jsx)(c2,{href:r,target:"_blank",children:n}):n})]})}),(0,b.jsx)("div",{className:(0,ea.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,b.jsx)(jk,{value:a,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,b.jsx)(jj,{value:a,variant:"value",size:"12",format:e=>"".concat(fg(e,l)," ").concat(u)})})]})}function S3(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,suggestion:a,units:s,suggestionTip:l,averageTip:u,after:c,decimalsLimitSc:d=6,decimalsLimitFiat:f=6,tipsDecimalsLimitSc:h=0}=i,{setValue:p,value:m,error:v}=_q({name:t,field:i,form:n}),g=c||(()=>null);return(0,b.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,b.jsx)(fE,{name:t,size:"small",sc:m,units:s,decimalsLimitSc:d,decimalsLimitFiat:f,error:v,changed:n.formState.dirtyFields[t],placeholder:a||o,onChange:e=>{p(e,!0)},onBlur:()=>{p(m,!0)}}),(0,b.jsx)(g,{name:t,form:n,fields:r}),o&&(0,b.jsx)(S4,{type:"siacoin",label:"Network average",tip:u||"Averages provided by Sia Central.",decimalsLimit:h,value:(0,m3.qN)(o),onClick:()=>{p(o,!0)}}),a&&l&&(0,b.jsx)(S4,{type:"siacoin",label:"Suggestion",tip:l,decimalsLimit:h,value:(0,m3.qN)(a),onClick:()=>{p(a,!0)}})]}),(0,b.jsx)("div",{className:"h-[20px]",children:(0,b.jsx)(jG,{form:n,name:t})})]})}function S5(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,averageTip:a,suggestion:s,suggestionTip:l,decimalsLimit:u=2,placeholder:c,units:d}=i,{setValue:f,value:h,error:p}=_q({form:n,field:i,name:t});return(0,b.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,b.jsx)(fy,{name:t,value:h,units:d,decimalsLimit:u,placeholder:c?new(fv())(c):void 0,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{let t=void 0!==e?new(fv())(e):void 0;f(t,!0)},onBlur:()=>{f(h,!0)}}),(0,b.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,b.jsx)(S4,{type:"number",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:u,value:o,units:d,onClick:()=>{f(o,!0)}}),s&&l&&(0,b.jsx)(S4,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,b.jsx)("div",{className:"h-[20px]",children:(0,b.jsx)(jG,{form:n,name:t})})]})}function S6(e){let{label:t,link:n,tip:r,value:i,onClick:o}=e;return(0,b.jsxs)("div",{className:"flex justify-between items-center",children:[(0,b.jsx)(s7,{align:"start",side:"bottom",content:r,children:(0,b.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,b.jsx)(tq,{className:"flex relative",children:(0,b.jsx)(lt.RdX,{})}),(0,b.jsx)(tq,{size:"12",children:n?(0,b.jsx)(c2,{href:n,target:"_blank",children:t}):t})]})}),(0,b.jsx)("div",{className:"flex cursor-pointer items-center",onClick:o,children:(0,b.jsx)(tq,{size:"12",children:(0,b.jsx)(lx,{children:i})})})]})}function S8(e){let{name:t,form:n,fields:r,type:i}=e,o=r[t],{placeholder:a,suggestion:s,suggestionTip:l}=o,{ref:u,onChange:c,setValue:d,onBlur:f,error:h}=_q({name:t,form:n,field:o});return(0,b.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,b.jsx)(d3,{ref:u,name:t,placeholder:a,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,b.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,b.jsx)(S6,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,b.jsx)("div",{className:"h-[20px]",children:(0,b.jsx)(jG,{form:n,name:t})})]})}function S7(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:o,suggestionTip:a}=i,{setValue:s,value:l,error:u}=_q({name:t,field:i,form:n});return(0,b.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,b.jsx)("div",{className:"flex justify-end w-full",children:(0,b.jsx)(fU,{name:t,size:"medium",checked:l,state:u?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{s(e,!0)},onBlur:()=>{s(l,!0)}})}),(0,b.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&a&&(0,b.jsx)(S6,{label:"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})})]}),(0,b.jsx)("div",{className:"h-[20px]",children:(0,b.jsx)(jG,{form:n,name:t})})]})}function S9(e){let{name:t,form:n,fields:r}=e,i=r[t],{options:o,suggestion:a,suggestionTip:s}=i,{ref:l,onChange:u,setValue:c,onBlur:d,value:f,error:h}=_q({name:t,form:n,field:i});return(0,b.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,b.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,b.jsx)("div",{className:"flex justify-end w-full",children:(0,b.jsx)(fO,{ref:l,name:t,size:"small",value:f,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:d,children:null==o?void 0:o.map(e=>(0,b.jsx)(fC,{value:e.value,children:e.label},e.value))})}),(0,b.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&s&&(0,b.jsx)(S6,{label:"Suggestion",tip:s,value:a?"on":"off",onClick:()=>{c(a,!0)}})})]}),(0,b.jsx)("div",{className:"h-[20px]",children:(0,b.jsx)(jG,{form:n,name:t})})]})}function Oe(e){let{title:t,category:n,form:r,fields:i}=e,o=Object.entries(i).filter(e=>{let[t,i]=e;return i.category===n&&!i.hidden&&(!i.show||i.show(r.getValues()))});return 0===o.length?null:(0,b.jsx)(SK,{title:t,children:o.map((e,t)=>{let[n,a]=e;return(0,b.jsxs)(x.Fragment,{children:[(0,b.jsx)(SX,{title:a.title,description:a.description,control:"number"===a.type?(0,b.jsx)(S5,{form:r,name:n,fields:i}):"siacoin"===a.type?(0,b.jsx)(S3,{form:r,name:n,fields:i}):"text"===a.type?(0,b.jsx)(S8,{form:r,name:n,fields:i}):"password"===a.type?(0,b.jsx)(S8,{form:r,type:"password",fields:i,name:n}):"boolean"===a.type?(0,b.jsx)(S7,{form:r,name:n,fields:i}):"select"===a.type?(0,b.jsx)(S9,{form:r,name:n,fields:i}):null}),t{let t=void 0!==e?new(fv())(e):void 0;l(t,!0)},onBlur:()=>{l(c,!0)}})})}function On(e){let{name:t,form:n,fields:r,size:i="medium",group:o=!0,children:a}=e,s=r[t],{setValue:l,value:u,error:c}=_q({name:t,field:s,form:n}),d=(0,b.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,b.jsx)(fU,{name:t,size:i,checked:u,state:c?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{l(e,!0)},onBlur:()=>{l(u,!0)}}),a]});return o?(0,b.jsx)(jK,{title:s.title,name:t,form:n,children:d}):d}var Or=n(75652),Oi=n.n(Or);lt.lg1,lt.eHR,lt.I$H,lt.KiD,lt.P5r,lt.CCF,lt.w9S,lt.EL$,lt.aPl,lt.wEY,lt.EOT,lt.kSc,lt.W$S,lt.lJ7,lt.ORH,lt.ka0,lt.BdP,lt.d19,lt.Mes,lt.VUg,lt.U_S,lt.T85;let Oo=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,x.useState)(!0),l=(0,x.useRef)(!1),u=(0,x.useRef)(0);return(0,x.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,x.createElement)(tO,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,x.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,x.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,x.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function Oa(e){let{children:t}=e,[n,r]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{r(!0)},[]),(0,b.jsx)("div",{children:n?t:null})}function Os(e){let{passwordProtectRequestHooks:t,fallback:n,children:r,lockRoutes:i}=e;return(0,b.jsx)(Oa,{children:(0,b.jsx)(fx.kl,{fallback:n,children:(0,b.jsx)(pd.f,{attribute:"class",children:(0,b.jsx)(Oo,{children:(0,b.jsx)(fx.bW,{lockRoutes:i,passwordProtectRequestHooks:t,children:(0,b.jsxs)("div",{id:"root",className:s6,children:[(0,b.jsx)(jd,{}),r]})})})})})})}n(331);var Ol=n(30898),Ou=n.n(Ol);let Oc=[];function Od(e,t){let{columns:n,columnsDefaultVisible:r,defaultSortField:i,sortOptions:o,disabledCategories:a}={disabledCategories:Oc,...t},[s,l]=(0,ST.Z)("".concat(e,"/enabledColumns"),{defaultValue:r}),[u,c]=(0,ST.Z)("".concat(e,"/sortField"),{defaultValue:i}),[d,f]=(0,ST.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"}),h=(0,x.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),p=(0,x.useCallback)(e=>{l(t=>Oi()([...t,...e]))},[l]),m=(0,x.useCallback)(e=>{l(t=>SY()(t,e))},[l]),v=(0,x.useCallback)(()=>{l(r)},[l,r]),g=(0,x.useCallback)(e=>{if(u!==e){c(e),f("asc");return}f(e=>"desc"===e?"asc":"desc")},[u,c,f]),y=(0,x.useMemo)(()=>n.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[n,a]),b=(0,x.useMemo)(()=>n.filter(e=>{let t=e.fixed||s.includes(e.id),n=null==a?void 0:a.includes(e.category||"");return t&&!n}).map(e=>e.id),[n,s,a]),w=(0,x.useMemo)(()=>{if(!o)return[];let e=o.map(e=>e.id);return Ou()(e,b)},[o,b]);return{configurableColumns:y,enabledColumns:b,toggleColumnVisibility:h,toggleSort:g,setSortDirection:f,setSortField:c,sortableColumns:w,sortField:u,setColumnsVisible:p,setColumnsHidden:m,sortDirection:d,resetDefaultColumnVisibility:v}}function Of(){let e=(0,j6.useRouter)(),[t,n]=(0,x.useState)([]),r=(0,x.useCallback)(t=>{n(e=>{let n=e.filter(e=>e.id!==t.id);return n.concat(t)}),e.replace({query:{}})},[e,n]),i=(0,x.useCallback)(()=>{n([]),e.replace({query:{}})},[e,n]),o=(0,x.useCallback)(t=>{n(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,n]),a=(0,x.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,n,t]);return{filters:t,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}function Oh(e){return new(fv())(e).times(1024).times(1024)}function Op(e){return new(fv())(e).times(1e3).times(1e3).times(1e3).times(1e3)}function Om(e){return new(fv())(e).div(1e3).div(1e3).div(1e3)}function Ov(e){return new(fv())(e).times(1e3).times(1e3).times(1e3)}function Og(e){return new(fv())(e).div(1e3).div(1e3)}function Oy(e){return new(fv())(e).times(1e3).times(1e3)}function Ob(e){return Oh(e).times(4)}function Ox(e){return Om(Ob(e))}function Ow(e){var t;return(t=Ov(e),new(fv())(t).div(1024).div(1024)).div(4).integerValue()}function OE(e,t){let n=t.reduce((e,t)=>{let n=e.startHeight,r=e.endHeight;return t.contractHeightStartr&&(r=t.contractHeightEnd),{startHeight:n,endHeight:r}},{startHeight:e,endHeight:0});n.endHeight=Math.max(n.endHeight,e)+720,n.startHeight=n.startHeight-720;let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=EP(1);let o=r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{});return{allDatesMap:o,range:n}}new(fv())(0)},2850:function(e,t,n){"use strict";n.d(t,{bW:function(){return F},kl:function(){return $},gw:function(){return o},Tc:function(){return W},du:function(){return q},Hv:function(){return L},iv:function(){return U},Nf:function(){return H},E:function(){return B},mw:function(){return I},q0:function(){return V},Tb:function(){return M},V1:function(){return Z},I7:function(){return z}});var r=n(79381);function i(e,t){return!e||t?null:e}function o(e){return new Promise(t=>setTimeout(t,e))}var a=n(89644),s=n.n(a),l=n(2784);function u(e){return{...e,config:{...null==e?void 0:e.config}}}function c(e){return{...e,config:{...null==e?void 0:e.config}}}function d(e){return{...e,config:{...null==e?void 0:e.config}}}function f(e,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function h(e,t,n){var r,i;let o=function(e,t,n){var r,i,o,a;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(r=i.axios)||void 0===r?void 0:r.headers,...null==n?void 0:null===(a=n.config)||void 0===a?void 0:null===(o=a.axios)||void 0===o?void 0:o.headers},l=f(e,t,n);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,n);return{responseType:"json",...null===(r=t.config)||void 0===r?void 0:r.axios,...null==n?void 0:null===(i=n.config)||void 0===i?void 0:i.axios,headers:o}}function p(e,t,n,r){if(!t)return null;let i=(null==n?void 0:n.params)||{};if(r&&r.params&&(i={...i,...r.params}),!(t=function(e,t){if(e&&t){let n=Object.keys(t);for(let r of n){let n=String(t[r]);e.includes(":".concat(r))?e=e.replace(":".concat(r),n):e.includes("?")?e+="&".concat(r,"=").concat(encodeURIComponent(n)):e+="?".concat(r,"=").concat(encodeURIComponent(n))}}return e}(t,i)))return null;let o=f(e,n,r);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function m(e,t,n,r){let i=f(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var v=n(52322),g=n(82876),y=n(92762);function b(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}let x=["geforce 320m","geforce 8600","geforce 8600m gt","geforce 8800 gs","geforce 8800 gt","geforce 9400","geforce 9400m g","geforce 9400m","geforce 9600m gt","geforce 9600m","geforce fx go5200","geforce gt 120","geforce gt 130","geforce gt 330m","geforce gtx 285","google swiftshader","intel g41","intel g45","intel gma 4500mhd","intel gma x3100","intel hd 3000","intel q45","legacy","mali-2","mali-3","mali-4","quadro fx 1500","quadro fx 4","quadro fx 5","radeon hd 2400","radeon hd 2600","radeon hd 4670","radeon hd 4850","radeon hd 4870","radeon hd 5670","radeon hd 5750","radeon hd 6290","radeon hd 6300","radeon hd 6310","radeon hd 6320","radeon hd 6490m","radeon hd 6630m","radeon hd 6750m","radeon hd 6770m","radeon hd 6970m","sgx 543","sgx543"];function w(e){return e=e.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i,"$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g,"").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/,"$1")}let E="undefined"==typeof window,k=(()=>{if(E)return;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,r=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&n>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||r||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class j extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let _=[],S=[];function O(e){return null!=e}let C=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:n={},glContext:r,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:o="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>b(void 0,void 0,void 0,function*(){let a={};if(E)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==k?void 0:k.isIpad),isMobile:l=!!(null==k?void 0:k.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>b(void 0,void 0,void 0,function*(){let t=yield fetch(`${o}/${e}`).then(e=>e.json());if(4>parseInt(t.shift().split(".")[0],10))throw new j("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=n,{renderer:d}=n,f=(e,t,n,r,i)=>({device:i,fps:r,gpu:n,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=w(d)];else{var m;let e=r||function(e,t=!1){let n={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete n.powerPreference;let r=window.document.createElement("canvas"),i=r.getContext("webgl",n)||r.getContext("experimental-webgl",n);return null!=i?i:void 0}(null==k?void 0:k.isSafari12,i);if(!e)return f(0,"WEBGL_UNSUPPORTED");let t=e.getExtension("WEBGL_debug_renderer_info");if(t&&(d=e.getParameter(t.UNMASKED_RENDERER_WEBGL)),!d)return f(1,"FALLBACK");p=d,h="apple gpu"===(m=d=w(d))?function(e,t,n){let r;if(!n)return[t];let i=function(e){let t=e.createShader(35633),n=e.createShader(35632),r=e.createProgram();if(!(n&&t&&r))return;e.shaderSource(t,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),e.shaderSource(n,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),e.compileShader(t),e.compileShader(n),e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),e.detachShader(r,t),e.detachShader(r,n),e.deleteShader(t),e.deleteShader(n),e.useProgram(r);let i=e.createBuffer();e.bindBuffer(34962,i),e.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let o=e.getAttribLocation(r,"aPosition");e.vertexAttribPointer(o,3,5126,!1,0,0),e.enableVertexAttribArray(o),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let a=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,a),e.deleteProgram(r),e.deleteBuffer(i),a.join("")}(e),o="801621810",a="8016218135",s="80162181161",l=(null==k?void 0:k.isIpad)?[["a7",s,12],["a8",a,15],["a8x",a,15],["a9",a,15],["a9x",a,15],["a10",a,15],["a10x",a,15],["a12",o,15],["a12x",o,15],["a12z",o,15],["a14",o,15],["m1",o,15]]:[["a7",s,12],["a8",a,12],["a9",a,15],["a10",a,15],["a11",o,15],["a12",o,15],["a13",o,15],["a14",o,15]];return"80162181255"===i?r=l.filter(([,,e])=>e>=14):(r=l.filter(([,e])=>e===i)).length||(r=l),r.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return b(this,void 0,void 0,function*(){let n;let r=(e=>{let t=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];for(let n of t)if(e.includes(n))return n})(e);if(!r)return;let i=`${l?"m":"d"}-${r}${s?"-ipad":""}.json`,o=a[i]=null!==(t=a[i])&&void 0!==t?t:c(i);try{n=yield o}catch(e){if(e instanceof j)throw e;return}let d=function(e){var t;let n=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==n?void 0:n.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=n.filter(([,e])=>e===d);f.length||(f=n.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,n)=>0===t||e!==n[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o,a=0;for(;au?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:b}=window,x=u.width*b*u.height*b;for(let e of g){let[t,n]=e,r=t*n,i=Math.abs(x-r);ie===n?t-r:e-n);if(!v.length){let e=x.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,y,C]=v[0];if(-1===g)return f(0,"BLOCKLISTED",y,g,C);let M=l?e:t,A=0;for(let e=0;e=M[e]&&(A=e);return f(A,"BENCHMARK",y,g,C)});function M(){var e,t;let n=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!n||!!n.matches}let A=(0,l.createContext)({}),P=()=>(0,l.useContext)(A);function T(e){let{children:t}=e,n=function(){let[e,t]=(0,l.useState)({}),n=(0,l.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]),r=(0,l.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),i=(0,l.useCallback)(()=>{t({})},[t]),o=(0,l.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e]);return{setWorkflow:n,removeWorkflow:r,resetWorkflows:i,workflows:o}}();return(0,v.jsx)(A.Provider,{value:n,children:t})}let N=[{id:"usd",label:"USD",prefix:"$",fixed:2},{id:"cad",label:"CAD",prefix:"$",fixed:2},{id:"eur",label:"EUR",prefix:"€",fixed:2},{id:"gbp",label:"GBP",prefix:"\xa3",fixed:2},{id:"jpy",label:"JPY",prefix:"\xa5",fixed:2},{id:"aud",label:"AUD",prefix:"$",fixed:2},{id:"rub",label:"RUB",prefix:"₽",fixed:2},{id:"cny",label:"CNY",prefix:"\xa5",fixed:2},{id:"btc",label:"BTC",prefix:"₿",fixed:6},{id:"eth",label:"ETH",prefix:"Ξ",fixed:6}],R={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:N[0],recentApis:{},autoLock:!1,autoLockTimeout:6e5},D=(0,l.createContext)({}),L=()=>(0,l.useContext)(D);function F(e){let{children:t,...n}=e,i=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:i}=e,o=(0,l.useMemo)(()=>({...R,...i}),[i]),[a,s]=(0,y.Z)("v0/settings",{defaultValue:o});(0,l.useEffect)(()=>{s(e=>({...o,...e}))},[]);let u=(0,l.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=P(),d=(0,l.useCallback)(e=>{s(t=>({...t,...e}))},[s]),f=(0,l.useCallback)(e=>{let t=N.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,g.useRouter)(),p=(0,g.usePathname)(),[m,v]=(0,l.useState)({}),b=(0,l.useCallback)((e,t)=>{v(n=>({...n,[e]:t}))},[v]),x=(0,l.useCallback)(()=>{for(let[e,t]of(n&&h.push("".concat(n.login,"?prev=").concat([n.login].includes(p)?n.home:p)),d({password:""}),c(),(0,r.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=(0,l.useMemo)(()=>!!u.password,[u]),E=function(){let e=M(),[t,n]=(0,l.useState)(!1),[r,i]=(0,l.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},s]=(0,y.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),u=(0,l.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];s(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[s]),c=(0,l.useCallback)(async()=>{let e=!1;{let t=await C();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&u(!1,!1)}i(e),n(!0)},[i,u,a]);return(0,l.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:o,shouldRender:r&&o,setCanGpuRender:i,setIsGpuEnabled:u}}();return{settings:u,setSettings:d,setCurrency:f,currencyOptions:N,gpu:E,lock:x,isUnlocked:w,passwordProtectRequestHooks:t,setOnLockCallback:b}}(n);return(0,v.jsx)(D.Provider,{value:i,children:t})}function V(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:a}=L(),u=p(o,n.route,n,void 0),d=(0,l.useMemo)(()=>i(u?"".concat(u).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!o.password),[u,e,n,a,o]);return(0,r.ZP)(d,async()=>{if(!n.route)throw Error("No route");let t=h(o,n,void 0);if(!u)throw Error("No route");try{let n=await s().post(u,e.payload,t);return n.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function I(e,t){let{setWorkflow:n,removeWorkflow:i}=P(),{mutate:o}=(0,r.kY)(),{settings:a}=L(),l=u(e);return{post:async e=>{let r=d(e);try{let u;let c=h(a,l,r),d=p(a,l.route,l,r);if(!d)throw Error("No route");"payload"in r&&(u=r.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(a,d,e,r);n(f,{path:v,payload:u});let g=await s().post(d,u,c);return t&&await t(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,i=arguments.length>2?arguments[2]:void 0;return o(n=>{if("string"!=typeof n)return!1;let i=m(a,n,e,r);return t(i)},n,i)},r,g),i(f),{status:g.status,data:g.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function z(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:a}=L(),u=p(o,n.route,n,void 0),d=(0,l.useMemo)(()=>i(u?"".concat(u).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!o.password),[u,e,n,a,o]);return(0,r.ZP)(d,async()=>{if(!n.route)throw Error("No route");let t=h(o,n,void 0);if(!u)throw Error("No route");try{let n=await s().put(u,e.payload,t);return n.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function Z(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=L(),{setWorkflow:o,removeWorkflow:a}=P(),l=u(e);return{put:async e=>{let r=d(e);try{let u;let c=h(i,l,r),d=p(i,l.route,l,r);if(!d)throw Error("No route");"payload"in r&&(u=r.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(i,d,e,r);o(f,{path:v,payload:u});let g=await s().put(d,u,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=m(i,n,e,r);return t(o)},o,a)},r,g),a(f),{status:g.status,data:g.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function B(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=L(),{setWorkflow:o,removeWorkflow:a}=P(),l=u(e);return{patch:async e=>{let r=d(e);try{let u;let c=h(i,l,r),d=p(i,l.route,l,r);if(!d)throw Error("No route");"payload"in r&&(u=r.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(i,d,e,r);o(f,{path:v,payload:u});let g=await s().patch(d,u,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=m(i,n,e,r);return t(o)},o,a)},r,g),a(f),{status:g.status,data:g.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function H(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:a}=L(),u=p(o,n.route,n,void 0);return(0,r.ZP)(i(e.standalone?"".concat(e.standalone,"/").concat(u):u,n.disabled||a&&!o.password),async()=>{if(!n.route)throw Error("No route");let e=h(o,n,void 0);if(!u)throw Error("No route");try{let t=await s().get(u,e);return t.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function U(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=L(),{setWorkflow:o,removeWorkflow:a}=P(),l=u(e);return{delete:async e=>{let r=d(e);try{let u=h(i,l,r),c=p(i,l.route,l,r);if(!c)throw Error("No route");let d=m(i,c,e,r);o(c,{path:d});let f=await s().delete(c,u);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=m(i,n,e,r);return t(o)},o,a)},r,f),a(c),{status:f.status,data:f.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function W(){return Math.round((new Date().getTime()-14336e8)/6e5)}function q(){return Math.round((new Date().getTime()-16736e8)/6e5)}function $(e){let{fallback:t,cacheProvider:n,children:i}=e;return(0,v.jsx)(T,{children:(0,v.jsx)(r.J$,{value:{fallback:t||{},provider:n},children:i})})}},27444:function(e,t,n){"use strict";n.d(t,{dk:function(){return o},Z7:function(){return F},Uy:function(){return V},GP:function(){return y},kr:function(){return b},nH:function(){return l},KU:function(){return x},rV:function(){return E},Az:function(){return j},uo:function(){return _},Te:function(){return k},d$:function(){return s},On:function(){return a},Wl:function(){return d},cQ:function(){return c},cM:function(){return R},Kw:function(){return D},hV:function(){return g},ST:function(){return O},_3:function(){return N},HU:function(){return M},uq:function(){return P},G:function(){return T},Rz:function(){return A},Fn:function(){return S},Os:function(){return f},a0:function(){return m},cj:function(){return v},Qq:function(){return h}});var r=n(2850),i=n(79381);let o="/state/host";function a(e){return(0,r.Nf)({...e,route:o})}function s(e){return(0,r.Nf)({...e,route:"/state/consensus"})}function l(){let e=a({config:{swr:{revalidateOnFocus:!1}}}),t=(0,i.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.network)==="Zen Testnet"?(0,r.du)():(0,r.Tc)()},{refreshInterval:6e4,keepPreviousData:!0});return t.data||0}let u="/syncer/peers";function c(e){return(0,r.Nf)({...e,route:u})}function d(e){return(0,r.V1)({...e,route:"/syncer/peers"},async e=>{e(e=>e===u)})}function f(e){return(0,r.Nf)({...e,route:"/wallet"})}function h(e){return(0,r.Nf)({...e,route:"/wallet/transactions"})}let p="/wallet/pending";function m(e){return(0,r.Nf)({...e,route:p})}function v(e){return(0,r.mw)({...e,route:"/wallet/send"},async e=>{await (0,r.gw)(2e3),e(e=>e.startsWith(p))})}function g(e){return(0,r.Nf)({...e,route:"/tpool/fee"})}function y(e){return(0,r.q0)({...e,route:"/contracts"})}function b(e){return(0,r.V1)({...e,route:"/contracts/:id/integrity"})}function x(e){return(0,r.Nf)({...e,route:"/metrics/:interval"})}let w="/settings";function E(e){return(0,r.Nf)({...e,route:w})}function k(e){return(0,r.E)({...e,route:"/settings"},async e=>{await e(e=>e.startsWith(w))})}function j(e){return(0,r.mw)({...e,route:"/settings/announce"})}function _(e){return(0,r.I7)({...e,payload:{},route:"/settings/ddns/update"})}function S(e){return(0,r.Nf)({...e,route:"/volumes"})}function O(e){return(0,r.Nf)({...e,route:"/volumes/:id"})}let C="/volumes";function M(e){return(0,r.mw)({...e,route:C},async e=>{e(e=>e.startsWith(C))})}function A(e){return(0,r.V1)({...e,route:"/volumes/:id"},async e=>{e(e=>e.startsWith(C))})}function P(e){return(0,r.iv)({...e,route:"/volumes/:id"},async e=>{e(e=>e.startsWith(C))})}function T(e){return(0,r.V1)({...e,route:"/volumes/:id/resize"},async e=>{await (0,r.gw)(1e4),e(e=>e.startsWith(C))})}function N(e){return(0,r.iv)({...e,route:"/volumes/:id/cancel"},async e=>{await (0,r.gw)(3e3),e(e=>e.startsWith(C))})}function R(e){return(0,r.Nf)({...e,route:"/system/dir"})}function D(e){return(0,r.V1)({...e,route:"/system/dir"})}let L="/alerts";function F(e){return(0,r.Nf)({...e,route:L})}function V(e){return(0,r.mw)({...e,route:"/alerts/dismiss"},async e=>{e(e=>e.startsWith(L))})}},41775:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{RVU:function(){return tR},eHR:function(){return tB},xHM:function(){return tH},IRm:function(){return tU},L6f:function(){return tW},rW0:function(){return tq},osk:function(){return t$},JaG:function(){return tY},wWN:function(){return ir},Dkj:function(){return ip},cfm:function(){return tK},YV2:function(){return t3},EMN:function(){return t5},bdU:function(){return t6},VUy:function(){return t8},Cp0:function(){return t7},kqg:function(){return t9},Mes:function(){return ne},DI$:function(){return nn},NlZ:function(){return nc},Y3p:function(){return nf},Z$8:function(){return nd},tEK:function(){return nh},PcV:function(){return nm},QN4:function(){return np},Jsc:function(){return nv},wEY:function(){return nb},olJ:function(){return nx},KiD:function(){return nk},dDl:function(){return nj},Jrl:function(){return nO},aPl:function(){return nC},kBK:function(){return iu},Bpb:function(){return nA},iG7:function(){return nD},dr6:function(){return nL},d19:function(){return nF},w9S:function(){return nV},VBo:function(){return ii},Hb6:function(){return nZ},CCF:function(){return nB},Qbr:function(){return nq},L37:function(){return n$},ROc:function(){return id},UG6:function(){return ic},lq1:function(){return nY},zvn:function(){return io},K2o:function(){return il},EL$:function(){return nK},BdP:function(){return n2},dsj:function(){return n4},P5r:function(){return n3},RdX:function(){return n5},U_S:function(){return n6},V8Q:function(){return re},POp:function(){return rt},kSc:function(){return rn},mBM:function(){return is},Lur:function(){return ra},b47:function(){return rs},Sfn:function(){return rl},W$S:function(){return rp},T85:function(){return rm},Ckx:function(){return rv},dZ8:function(){return ry},EOT:function(){return rg},RK4:function(){return rx},XJM:function(){return rj},RRj:function(){return r_},ka0:function(){return rS},hzZ:function(){return rC},VUg:function(){return rN},owP:function(){return rR},Fs9:function(){return rD},wGX:function(){return rL},Wet:function(){return rz},BB5:function(){return rZ},ZEk:function(){return rB},$Iz:function(){return rq},shL:function(){return r$},hiv:function(){return rY},mli:function(){return rK},lJ7:function(){return ih},ORH:function(){return rQ},xVB:function(){return r4},pHg:function(){return r3},I$H:function(){return r5},oaN:function(){return ia},qdM:function(){return r6},SmH:function(){return r9},lg1:function(){return ie}});var a,s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,E,k,j,_,S,O,C,M,A,P,T,N,R,D,L,F,V,I,z,Z,B,H,U,W,q,$,Y,G,K,X,Q,J,ee,et,en,er,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,eE,ek,ej,e_,eS,eO,eC,eM,eA,eP,eT,eN,eR,eD,eL,eF,eV,eI,ez,eZ,eB,eH,eU,eW,eq,e$,eY,eG,eK,eX,eQ,eJ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,to,ta,ts,tl,tu,tc,td,tf,th,tp,tm,tv,tg,ty,tb,tx=["width","height","viewBox"],tw=["tabindex"],tE={focusable:"false",preserveAspectRatio:"xMidYMid meet"},tk=n(13980),tj=n.n(tk),t_=n(2784);function tS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tO(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var tA=["className","children","tabIndex"],tP=["tabindex"],tT=t_.forwardRef(function(e,t){var n=e.className,r=e.children,a=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,a=void 0===r?"0 0 ".concat(t," ").concat(n):r,s=o(e,tx),l=s.tabindex,u=o(s,tw),c=i(i(i({},tE),u),{},{width:t,height:n,viewBox:a});return c["aria-label"]||c["aria-labelledby"]||c.title?(c.role="img",null!=l&&(c.focusable="true",c.tabindex=l)):c["aria-hidden"]=!0,c}(tO(tO({},tM(e,tA)),{},{tabindex:a})),l=s.tabindex,u=tM(s,tP);return n&&(u.className=n),null!=l&&(u.tabIndex=l),t&&(u.ref=t),t_.createElement("svg",u,r)});tT.displayName="Icon",tT.propTypes={"aria-hidden":tj().string,"aria-label":tj().string,"aria-labelledby":tj().string,children:tj().node,className:tj().string,height:tj().oneOfType([tj().number,tj().string]),preserveAspectRatio:tj().string,tabIndex:tj().string,viewBox:tj().string,width:tj().oneOfType([tj().number,tj().string]),xmlns:tj().string},tT.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var tN=["children"],tR=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,tN);return t_.createElement(tT,tC({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=t_.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),n)}),tD=["children"],tL=["children"],tF=["children"],tV=["children"],tI=["children"],tz=["children"],tZ=["children"],tB=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,tD);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=t_.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=t_.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),tH=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,tL);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=t_.createElement("path",{d:"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z"})),n)}),tU=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,tF);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=t_.createElement("path",{d:"M10 26L10 24 22.59 24 6 7.41 7.41 6 24 22.59 24 10 26 10 26 26 10 26z"})),n)}),tW=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,tV);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=t_.createElement("path",{d:"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z"})),n)}),tq=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,tI);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=t_.createElement("path",{d:"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z"})),n)}),t$=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,tz);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=t_.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),n)}),tY=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,tZ);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),p||(p=t_.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),m||(m=t_.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),v||(v=t_.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),g||(g=t_.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),y||(y=t_.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),b||(b=t_.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),x||(x=t_.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),w||(w=t_.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),E||(E=t_.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),n)}),tG=["children"],tK=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,tG);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=t_.createElement("path",{d:"M26,6V8.17L5.64,11.87a2,2,0,0,0-1.64,2v4.34a2,2,0,0,0,1.64,2L8,20.56V24a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V22.74l6,1.09V26h2V6ZM18,24H10V20.93l8,1.45ZM6,18.17V13.83L26,10.2V21.8Z"})),n)}),tX=["children"],tQ=["children"],tJ=["children"],t0=["children"],t1=["children"],t2=["children"],t4=["children"],t3=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,tX);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=t_.createElement("path",{d:"M26,4H22V2H20V4H12V2H10V4H6A2.0025,2.0025,0,0,0,4,6V26a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V6A2.0025,2.0025,0,0,0,26,4ZM6,6h4V8h2V6h8V8h2V6h4l0,4H6Zm0,6h5v6H6ZM19,26H13V20h6Zm0-8H13V12h6Zm2,8V20h5l.0012,6Z"})),n)}),t5=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,tQ);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=t_.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),t6=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,tJ);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=t_.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),t8=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,t0);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=t_.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),t7=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,t1);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=t_.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),t9=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,t2);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=t_.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),ne=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,t4);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=t_.createElement("path",{d:"M30,15H27.9492A12.0071,12.0071,0,0,0,17,4.0508V2H15V4.0508A12.0071,12.0071,0,0,0,4.0508,15H2v2H4.0508A12.0071,12.0071,0,0,0,15,27.9492V30h2V27.9492A12.0071,12.0071,0,0,0,27.9492,17H30ZM17,25.9492V22H15v3.9492A10.0166,10.0166,0,0,1,6.0508,17H10V15H6.0508A10.0166,10.0166,0,0,1,15,6.0508V10h2V6.0508A10.0166,10.0166,0,0,1,25.9492,15H22v2h3.9492A10.0166,10.0166,0,0,1,17,25.9492Z"})),n)}),nt=["children"],nn=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nt);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),P||(P=t_.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),T||(T=t_.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),n)}),nr=["children"],ni=["children"],no=["children"],na=["children"],ns=["children"],nl=["children"],nu=["children"],nc=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nr);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=t_.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),nd=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,ni);return t_.createElement(tT,tC({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),R||(R=t_.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),D||(D=t_.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),n)}),nf=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,no);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),L||(L=t_.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),F||(F=t_.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),n)}),nh=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,na);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),V||(V=t_.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),I||(I=t_.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),np=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,ns);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),z||(z=t_.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),nm=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nl);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=t_.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),nv=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nu);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),B||(B=t_.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),H||(H=t_.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),ng=["children"],ny=["children"],nb=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,ng);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),U||(U=t_.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),W||(W=t_.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),nx=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,ny);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),q||(q=t_.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),$||($=t_.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),nw=["children"],nE=["children"],nk=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nw);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=t_.createElement("path",{d:"M21,12V10H17V7H15v3H13a2.002,2.002,0,0,0-2,2v3a2.002,2.002,0,0,0,2,2h6v3H11v2h4v3h2V22h2a2.0023,2.0023,0,0,0,2-2V17a2.002,2.002,0,0,0-2-2H13V12Z"})),G||(G=t_.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12.0353,12.0353,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14.0412,14.0412,0,0,0,16,2Z"})),n)}),nj=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nE);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),K||(K=t_.createElement("path",{d:"M23 27.18L20.41 24.59 19 26 23 30 30 23 28.59 21.59 23 27.18z"})),X||(X=t_.createElement("circle",{cx:"11",cy:"8",r:"1"})),Q||(Q=t_.createElement("circle",{cx:"11",cy:"16",r:"1"})),J||(J=t_.createElement("circle",{cx:"11",cy:"24",r:"1"})),ee||(ee=t_.createElement("path",{d:"M24,3H8A2,2,0,0,0,6,5V27a2,2,0,0,0,2,2h8V27H8V21H26V5A2,2,0,0,0,24,3Zm0,16H8V13H24Zm0-8H8V5H24Z"})),n)}),n_=["children"],nS=["children"],nO=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,n_);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),et||(et=t_.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),en||(en=t_.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),nC=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nS);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),er||(er=t_.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ei||(ei=t_.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),nM=["children"],nA=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nM);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eo||(eo=t_.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),nP=["children"],nT=["children"],nN=["children"],nR=["children"],nD=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nP);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ea||(ea=t_.createElement("path",{d:"M10 6H14V10H10zM18 6H22V10H18zM10 14H14V18H10zM18 14H22V18H18zM10 22H14V26H10zM18 22H22V26H18z"})),n)}),nL=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nT);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=t_.createElement("path",{d:"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z"})),n)}),nF=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nN);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),el||(el=t_.createElement("path",{d:"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z"})),eu||(eu=t_.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ec||(ec=t_.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),nV=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nR);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=t_.createElement("path",{d:"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z"})),n)}),nI=["children"],nz=["children"],nZ=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nI);return t_.createElement(tT,tC({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ef||(ef=t_.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),nB=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nz);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=t_.createElement("path",{d:"M2 28H30V30H2zM27 11a1 1 0 001-1V7a1 1 0 00-.66-.94l-11-4a1 1 0 00-.68 0l-11 4A1 1 0 004 7v3a1 1 0 001 1H6V24H4v2H28V24H26V11zM6 7.7L16 4.06 26 7.7V9H6zM18 24H14V11h4zM8 11h4V24H8zM24 24H20V11h4z"})),n)}),nH=["children"],nU=["children"],nW=["children"],nq=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nH);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=t_.createElement("path",{d:"M11.17,6l3.42,3.41.58.59H28V26H4V6h7.17m0-2H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2H16L12.59,4.59A2,2,0,0,0,11.17,4Z"})),n)}),n$=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nU);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=t_.createElement("path",{d:"M26 20L24 20 24 24 20 24 20 26 24 26 24 30 26 30 26 26 30 26 30 24 26 24z"})),ev||(ev=t_.createElement("path",{d:"M28,8H16l-3.4-3.4C12.2,4.2,11.7,4,11.2,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h14v-2H4V6h7.2l3.4,3.4l0.6,0.6H28v8h2v-8 C30,8.9,29.1,8,28,8z"})),n)}),nY=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nW);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=t_.createElement("path",{d:"M14,4a7,7,0,1,1-7,7,7,7,0,0,1,7-7m0-2a9,9,0,1,0,9,9A9,9,0,0,0,14,2Z"})),ey||(ey=t_.createElement("path",{d:"M28,11a13.9563,13.9563,0,0,0-4.1051-9.8949L22.4813,2.5187A11.9944,11.9944,0,0,1,5.5568,19.5194l-.0381-.0381L4.1051,20.8949A13.9563,13.9563,0,0,0,14,25v3H10v2H20V28H16V24.84A14.0094,14.0094,0,0,0,28,11Z"})),n)}),nG=["children"],nK=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nG);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eb||(eb=t_.createElement("path",{d:"M16,.0005,4,5.9784V20.0443a12,12,0,0,0,24,0V5.9784Zm6.83,27.3138L16,23.9119V26.14l5.0361,2.5088A10.0025,10.0025,0,0,1,6,20.0443V7.21L16,2.2284,26,7.21v3.75L16,5.9783V8.2062l10,4.9816v3.75L16,11.9562v2.2279l10,4.9815v.8787a9.9045,9.9045,0,0,1-.37,2.6871L16,17.934v2.2279l8.8952,4.4313A10.0252,10.0252,0,0,1,22.83,27.3143Z"})),n)}),nX=["children"],nQ=["children"],nJ=["children"],n0=["children"],n1=["children"],n2=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nX);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ex||(ex=t_.createElement("path",{d:"M11 24H21V26H11zM13 28H19V30H13zM16 2A10 10 0 006 12a9.19 9.19 0 003.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 018 12a8 8 0 0116 0 7.2 7.2 0 01-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0026 12 10 10 0 0016 2z"})),n)}),n4=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nQ);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ew||(ew=t_.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm0,26A12,12,0,0,1,16,4V16l8.4812,8.4814A11.9625,11.9625,0,0,1,16,28Z"})),n)}),n3=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,nJ);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=t_.createElement("path",{d:"M29.53,6.15a1,1,0,0,0-1,0L20,10.38V7a1,1,0,0,0-1.45-.89L10,10.38V3A1,1,0,0,0,9,2H3A1,1,0,0,0,2,3V28H30V7A1,1,0,0,0,29.53,6.15ZM22,26H18V19h4Zm6,0H24V18a1,1,0,0,0-1-1H17a1,1,0,0,0-1,1v8H4V4H8v9.62l10-5v5l10-5Z"})),n)}),n5=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,n0);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ek||(ek=t_.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"})),ej||(ej=t_.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"})),n)}),n6=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,n1);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e_||(e_=t_.createElement("path",{d:"M29.88,15.52l-6-11A1,1,0,0,0,23,4H9a1,1,0,0,0-.88.52l-6,11a1,1,0,0,0,0,1l6,11A1,1,0,0,0,9,28H23a1,1,0,0,0,.88-.52l6-11A1,1,0,0,0,29.88,15.52ZM22.93,7l4.39,8h-9.5ZM16,14.14,10.82,6H21.18ZM9.07,7l5.11,8H4.68ZM4.68,17h9.5L9.07,25ZM16,17.86,21.18,26H10.82ZM22.93,25l-5.11-8h9.5Z"})),n)}),n8=["children"],n7=["children"],n9=["children"],re=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,n8);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eS||(eS=t_.createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),eO||(eO=t_.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n)}),rt=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,n7);return t_.createElement(tT,tC({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eC||(eC=t_.createElement("path",{d:"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"})),eM||(eM=t_.createElement("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"})),n)}),rn=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,n9);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eA||(eA=t_.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),rr=["children"],ri=["children"],ro=["children"],ra=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rr);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=t_.createElement("path",{d:"M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z"})),n)}),rs=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,ri);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=t_.createElement("path",{d:"M13.647,14.907a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,13.647,14.907Zm4.745,0a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,18.392,14.907Z"})),eN||(eN=t_.createElement("path",{d:"M24.71,4H7.29A2.6714,2.6714,0,0,0,4.625,6.678V24.254A2.6714,2.6714,0,0,0,7.29,26.932H22.032l-.689-2.405,1.664,1.547L24.58,27.53,27.375,30V6.678A2.6714,2.6714,0,0,0,24.71,4ZM19.692,20.978s-.468-.559-.858-1.053a4.1021,4.1021,0,0,0,2.353-1.547,7.4391,7.4391,0,0,1-1.495.767,8.5564,8.5564,0,0,1-1.885.559,9.1068,9.1068,0,0,1-3.367-.013,10.9127,10.9127,0,0,1-1.911-.559,7.6184,7.6184,0,0,1-.949-.442c-.039-.026-.078-.039-.117-.065a.18.18,0,0,1-.052-.039c-.234-.13-.364-.221-.364-.221a4.0432,4.0432,0,0,0,2.275,1.534c-.39.494-.871,1.079-.871,1.079a4.7134,4.7134,0,0,1-3.965-1.976,17.409,17.409,0,0,1,1.872-7.579,6.4285,6.4285,0,0,1,3.653-1.365l.13.156a8.77,8.77,0,0,0-3.419,1.703s.286-.156.767-.377a9.7625,9.7625,0,0,1,2.951-.819,1.2808,1.2808,0,0,1,.221-.026,11,11,0,0,1,2.626-.026A10.5971,10.5971,0,0,1,21.2,11.917a8.6518,8.6518,0,0,0-3.237-1.651l.182-.208a6.4285,6.4285,0,0,1,3.653,1.365,17.409,17.409,0,0,1,1.872,7.579A4.752,4.752,0,0,1,19.692,20.978Z"})),n)}),rl=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,ro);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eR||(eR=t_.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),n)}),ru=["children"],rc=["children"],rd=["children"],rf=["children"],rh=["children"],rp=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,ru);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=t_.createElement("path",{d:"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z"})),eL||(eL=t_.createElement("path",{d:"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z"})),n)}),rm=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rc);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eF||(eF=t_.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),n)}),rv=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rd);return t_.createElement(tT,tC({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eV||(eV=t_.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),eI||(eI=t_.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),rg=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rf);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ez||(ez=t_.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),eZ||(eZ=t_.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),ry=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rh);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=t_.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),eH||(eH=t_.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),rb=["children"],rx=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rb);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=t_.createElement("circle",{cx:"21",cy:"26",r:"2"})),eW||(eW=t_.createElement("circle",{cx:"21",cy:"6",r:"2"})),eq||(eq=t_.createElement("circle",{cx:"4",cy:"16",r:"2"})),e$||(e$=t_.createElement("path",{d:"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z"})),n)}),rw=["children"],rE=["children"],rk=["children"],rj=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rw);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=t_.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),r_=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rE);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eG||(eG=t_.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),rS=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rk);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eK||(eK=t_.createElement("path",{d:"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z"})),eX||(eX=t_.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),rO=["children"],rC=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rO);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eQ||(eQ=t_.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM8,18a2,2,0,1,1,2-2A2,2,0,0,1,8,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,16,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,24,18Z"})),eJ||(eJ=t_.createElement("path",{fill:"none",d:"M10,16a2,2,0,1,1-2-2A2,2,0,0,1,10,16Zm6-2a2,2,0,1,0,2,2A2,2,0,0,0,16,14Zm8,0a2,2,0,1,0,2,2A2,2,0,0,0,24,14Z","data-icon-path":"inner-path"})),n)}),rM=["children"],rA=["children"],rP=["children"],rT=["children"],rN=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rM);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e0||(e0=t_.createElement("path",{d:"M30 18A6 6 0 1020 22.46v7.54l4-1.8926 4 1.8926V22.46A5.98 5.98 0 0030 18zm-4 8.84l-2-.9467L22 26.84V23.65a5.8877 5.8877 0 004 0zM24 22a4 4 0 114-4A4.0045 4.0045 0 0124 22zM9 14H16V16H9zM9 8H19V10H9z"})),e1||(e1=t_.createElement("path",{d:"M6,30a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,6,2H22a2.0021,2.0021,0,0,1,2,2V8H22V4H6V28H16v2Z"})),n)}),rR=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rA);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e2||(e2=t_.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),e4||(e4=t_.createElement("path",{d:"M12,12H10V8h2a2,2,0,0,0,0-4H10A2.0023,2.0023,0,0,0,8,6v.5H6V6a4.0045,4.0045,0,0,1,4-4h2a4,4,0,0,1,0,8Z"})),e3||(e3=t_.createElement("path",{d:"M22.4479,21.0337A10.971,10.971,0,0,0,19.9211,4.7446l-.999,1.73A8.9967,8.9967,0,1,1,5,14H3a10.9916,10.9916,0,0,0,18.0338,8.4478L28.5859,30,30,28.5859Z"})),n)}),rD=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rP);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e5||(e5=t_.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),rL=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rT);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e6||(e6=t_.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),e8||(e8=t_.createElement("path",{d:"M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"})),n)}),rF=["children"],rV=["children"],rI=["children"],rz=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rF);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e7||(e7=t_.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),n)}),rZ=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rV);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=t_.createElement("path",{d:"M29,10H3a1,1,0,0,0-1,1V21a1,1,0,0,0,1,1H29a1,1,0,0,0,1-1V11A1,1,0,0,0,29,10ZM28,20H4V12H8v4h2V12h5v4h2V12h5v4h2V12h4Z"})),n)}),rB=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rI);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),te||(te=t_.createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),n)}),rH=["children"],rU=["children"],rW=["children"],rq=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rH);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tt||(tt=t_.createElement("path",{d:"M28,4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM18,28H14V24h4Zm10-6H4V6H28Z"})),n)}),r$=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rU);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=t_.createElement("path",{d:"M13.5,8.4c0-0.1,0-0.3,0-0.4c0-0.1,0-0.3,0-0.4l1-0.8c0.4-0.3,0.4-0.9,0.2-1.3l-1.2-2C13.3,3.2,13,3,12.6,3 c-0.1,0-0.2,0-0.3,0.1l-1.2,0.4c-0.2-0.1-0.4-0.3-0.7-0.4l-0.3-1.3C10.1,1.3,9.7,1,9.2,1H6.8c-0.5,0-0.9,0.3-1,0.8L5.6,3.1 C5.3,3.2,5.1,3.3,4.9,3.4L3.7,3C3.6,3,3.5,3,3.4,3C3,3,2.7,3.2,2.5,3.5l-1.2,2C1.1,5.9,1.2,6.4,1.6,6.8l0.9,0.9c0,0.1,0,0.3,0,0.4 c0,0.1,0,0.3,0,0.4L1.6,9.2c-0.4,0.3-0.5,0.9-0.2,1.3l1.2,2C2.7,12.8,3,13,3.4,13c0.1,0,0.2,0,0.3-0.1l1.2-0.4 c0.2,0.1,0.4,0.3,0.7,0.4l0.3,1.3c0.1,0.5,0.5,0.8,1,0.8h2.4c0.5,0,0.9-0.3,1-0.8l0.3-1.3c0.2-0.1,0.4-0.2,0.7-0.4l1.2,0.4 c0.1,0,0.2,0.1,0.3,0.1c0.4,0,0.7-0.2,0.9-0.5l1.1-2c0.2-0.4,0.2-0.9-0.2-1.3L13.5,8.4z M12.6,12l-1.7-0.6c-0.4,0.3-0.9,0.6-1.4,0.8 L9.2,14H6.8l-0.4-1.8c-0.5-0.2-0.9-0.5-1.4-0.8L3.4,12l-1.2-2l1.4-1.2c-0.1-0.5-0.1-1.1,0-1.6L2.2,6l1.2-2l1.7,0.6 C5.5,4.2,6,4,6.5,3.8L6.8,2h2.4l0.4,1.8c0.5,0.2,0.9,0.5,1.4,0.8L12.6,4l1.2,2l-1.4,1.2c0.1,0.5,0.1,1.1,0,1.6l1.4,1.2L12.6,12z"})),tr||(tr=t_.createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),n)}),rY=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rW);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=t_.createElement("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zM21 12c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3S22.7 12 21 12zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2V24zM11 20c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3S9.3 20 11 20z"})),n)}),rG=["children"],rK=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rG);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),to||(to=t_.createElement("path",{d:"M8 15H24V17H8z"})),n)}),rX=["children"],rQ=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rX);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ta||(ta=t_.createElement("path",{d:"M23,9h6a2,2,0,0,0,2-2V3a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2V4H11V3A2,2,0,0,0,9,1H3A2,2,0,0,0,1,3V7A2,2,0,0,0,3,9H9a2,2,0,0,0,2-2V6h4V26a2.0023,2.0023,0,0,0,2,2h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V25a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V17h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V6h4V7A2,2,0,0,0,23,9Zm0-6h6V7H23ZM9,7H3V3H9ZM23,25h6v4H23Zm0-11h6v4H23Z",transform:"translate(0 .005)"})),n)}),rJ=["children"],r0=["children"],r1=["children"],r2=["children"],r4=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,rJ);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=t_.createElement("path",{d:"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z"})),tl||(tl=t_.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),n)}),r3=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,r0);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tu||(tu=t_.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),tc||(tc=t_.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),n)}),r5=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,r1);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=t_.createElement("path",{d:"M22 17H24V19H22z"})),tf||(tf=t_.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),r6=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,r2);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=t_.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"})),tp||(tp=t_.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),n)}),r8=["children"],r7=["children"],r9=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,r8);return t_.createElement(tT,tC({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tm||(tm=t_.createElement("path",{d:"M26.0022,4H5.998A1.998,1.998,0,0,0,4,5.998V26.002A1.998,1.998,0,0,0,5.998,28H26.0022A1.9979,1.9979,0,0,0,28,26.002V5.998A1.9979,1.9979,0,0,0,26.0022,4ZM14.8752,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z"})),tv||(tv=t_.createElement("path",{fill:"none",d:"M14.8751,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z","data-icon-path":"inner-path"})),n)}),ie=t_.forwardRef(function(e,t){var n=e.children,r=tM(e,r7);return t_.createElement(tT,tC({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=t_.createElement("path",{d:"M29.3164,8.0513l-18-6A1,1,0,0,0,10.4,2.2L4,7V2H2V30H4V11l6.4,4.8a1,1,0,0,0,.9165.1489l18-6a1,1,0,0,0,0-1.8974ZM10,13,4.6665,9,10,5Zm4-.0542-2,.667V4.3872l2,.667Zm4-1.333-2,.6665V5.7207l2,.6665Zm2-.667V7.0542L25.8379,9Z"})),ty||(ty=t_.createElement("path",{d:"M20,22a4,4,0,0,0-8,0h2a2,2,0,1,1,2,2H8v2h8A4.0045,4.0045,0,0,0,20,22Z"})),tb||(tb=t_.createElement("path",{d:"M26,22a4.0045,4.0045,0,0,0-4,4h2a2,2,0,1,1,2,2H12v2H26a4,4,0,0,0,0-8Z"})),n)}),it=n(52322);function ir(e){let{size:t=24}=e;return(0,it.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,it.jsx)("path",{d:"M464 64C490.5 64 512 85.49 512 112V176C512 202.5 490.5 224 464 224H48C21.49 224 0 202.5 0 176V112C0 85.49 21.49 64 48 64H464zM448 128H320V160H448V128zM464 288C490.5 288 512 309.5 512 336V400C512 426.5 490.5 448 464 448H48C21.49 448 0 426.5 0 400V336C0 309.5 21.49 288 48 288H464zM192 352V384H448V352H192z"})})}function ii(e){let{size:t=24,className:n}=e;return(0,it.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,it.jsx)("path",{d:"M256 0v128h128L256 0zM224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM64 72C64 67.63 67.63 64 72 64h80C156.4 64 160 67.63 160 72v16C160 92.38 156.4 96 152 96h-80C67.63 96 64 92.38 64 88V72zM64 136C64 131.6 67.63 128 72 128h80C156.4 128 160 131.6 160 136v16C160 156.4 156.4 160 152 160h-80C67.63 160 64 156.4 64 152V136zM304 384c8.875 0 16 7.125 16 16S312.9 416 304 416h-47.25c-16.38 0-31.25-9.125-38.63-23.88c-2.875-5.875-8-6.5-10.12-6.5s-7.25 .625-10 6.125l-7.75 15.38C187.6 412.6 181.1 416 176 416H174.9c-6.5-.5-12-4.75-14-11L144 354.6L133.4 386.5C127.5 404.1 111 416 92.38 416H80C71.13 416 64 408.9 64 400S71.13 384 80 384h12.38c4.875 0 9.125-3.125 10.62-7.625l18.25-54.63C124.5 311.9 133.6 305.3 144 305.3s19.5 6.625 22.75 16.5l13.88 41.63c19.75-16.25 54.13-9.75 66 14.12c2 4 6 6.5 10.12 6.5H304z"})})}function io(e){let{size:t=24,className:n}=e;return(0,it.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,it.jsx)("path",{d:"M464 288h-416C21.5 288 0 309.5 0 336v96C0 458.5 21.5 480 48 480h416c26.5 0 48-21.5 48-48v-96C512 309.5 490.5 288 464 288zM320 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S337.6 416 320 416zM416 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S433.6 416 416 416zM464 32h-416C21.5 32 0 53.5 0 80v192.4C13.41 262.3 29.92 256 48 256h416c18.08 0 34.59 6.254 48 16.41V80C512 53.5 490.5 32 464 32z"})})}function ia(e){let{size:t=24,className:n}=e;return(0,it.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,it.jsx)("path",{d:"M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"})})}function is(e){let{size:t=24}=e;return(0,it.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,it.jsx)("path",{d:"M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"})})}function il(e){let{size:t=24}=e;return(0,it.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 576 512",children:(0,it.jsx)("path",{d:"M575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8L512.5 447.7C512.5 450.5 512.3 453.1 512 455.8V472C512 494.1 494.1 512 472 512H456C454.9 512 453.8 511.1 452.7 511.9C451.3 511.1 449.9 512 448.5 512H392C369.9 512 352 494.1 352 472V384C352 366.3 337.7 352 320 352H256C238.3 352 224 366.3 224 384V472C224 494.1 206.1 512 184 512H128.1C126.6 512 125.1 511.9 123.6 511.8C122.4 511.9 121.2 512 120 512H104C81.91 512 64 494.1 64 472V360C64 359.1 64.03 358.1 64.09 357.2V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5L575.8 255.5z"})})}function iu(e){let{size:t=24}=e;return(0,it.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,it.jsx)("path",{d:"M7.994 153.5c1.326 0 2.687 .3508 3.975 1.119L208 271.5v223.8c0 9.741-7.656 16.71-16.01 16.71c-2.688 0-5.449-.7212-8.05-2.303l-152.2-92.47C12.13 405.3 0 383.3 0 359.5v-197.7C0 156.1 3.817 153.5 7.994 153.5zM426.2 117.2c0 2.825-1.352 5.647-4.051 7.248L224 242.6L25.88 124.4C23.19 122.8 21.85 119.1 21.85 117.2c0-2.8 1.32-5.603 3.965-7.221l165.1-100.9C201.7 3.023 212.9 0 224 0s22.27 3.023 32.22 9.07l165.1 100.9C424.8 111.6 426.2 114.4 426.2 117.2zM440 153.5C444.2 153.5 448 156.1 448 161.8v197.7c0 23.75-12.12 45.75-31.78 57.69l-152.2 92.5C261.5 511.3 258.7 512 256 512C247.7 512 240 505 240 495.3V271.5l196-116.9C437.3 153.8 438.7 153.5 440 153.5z"})})}function ic(e){let{size:t=24}=e;return(0,it.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,it.jsx)("path",{d:"M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"})})}function id(e){let{size:t=24}=e;return(0,it.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,it.jsx)("path",{d:"M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"})})}function ih(e){let{size:t=24}=e;return(0,it.jsxs)("svg",{version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t,height:t,fill:"currentColor",viewBox:"0 0 32 32",children:[(0,it.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,it.jsx)("polygon",{points:"12,5.4 10.6,4 8,6.6 5.4,4 4,5.4 6.6,8 4,10.6 5.4,12 8,9.4 10.6,12 12,10.6 9.4,8 "}),(0,it.jsx)("polygon",{points:"12,21.4 10.6,20 8,22.6 5.4,20 4,21.4 6.6,24 4,26.6 5.4,28 8,25.4 10.6,28 12,26.6 9.4,24 "}),(0,it.jsx)("polygon",{points:"17,15 17,2 15,2 15,15 2,15 2,17 15,17 15,30 17,30 17,17 30,17 30,15 "}),(0,it.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function ip(e){let{size:t=24}=e;return(0,it.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,it.jsx)("path",{d:"M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"})})}},96206:function(e,t,n){"use strict";n.d(t,{vW:function(){return o},rN:function(){return l},yF:function(){return s},Vz:function(){return h},ES:function(){return p},bc:function(){return a},qN:function(){return d},ll:function(){return c}}),n(81395),n(18149);var r=n(6391),i=n.n(r);function o(e,t){let n="number"==typeof e?e:e instanceof i()?e.toNumber():Number(e),{fixed:r=2}=t||{};if(!n)return"0 B";if(n<1e3)return"".concat(n," B");let o=Math.floor(Math.log10(n)/Math.log10(1e3)),a=n/Math.pow(1e3,o);return a.toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function a(e){return 0===e?"0ms":(e/=1e6)<1e3?" ".concat(Math.floor(100*e)/100,"ms"):(e/=1e3)<60?"".concat(Math.floor(100*e)/100,"s"):"".concat(Math.floor(e/60*100)/100,"m")}function s(e,t){let{fixed:n=0,units:r="",abbreviated:o=!1}=t||{},a=new(i())(e||0);if(o){let e=a.toNumber();if(e<1e3)return a.toString();let t=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],i=Math.floor(Math.log10(e)/Math.log10(1e3)),o=e/Math.pow(1e3,i);return"".concat(o.toFixed(n)).concat(t[i]?" ".concat(t[i]):"").concat(r?" ".concat(r):"")}return"".concat(a.toFormat(n)).concat(r?" ".concat(r):"")}function l(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let u=new r.BigNumber("10").exponentiatedBy(24);function c(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(u).toFixed(t)):new r.BigNumber(e).dividedBy(u)}function d(e){return new r.BigNumber(new r.BigNumber(e).times(u).toFixed(0))}let f={fixed:3,dynamicUnits:!0,hastingUnits:!1};function h(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:o}={...f,...t},a=new r.BigNumber(1e12),s=new r.BigNumber(1e3),l=new r.BigNumber(e),u=new r.BigNumber(e).abs(),d=l.isNegative()?"-":"";if(!i)return"".concat(d).concat(c(u).toFormat(n)," SC");if(u.dividedBy(a).isLessThan(1))return o?"".concat(d).concat(u," H"):"".concat(d,"0 SC");let h=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(s),new r.BigNumber(1)),i=u.dividedBy(a.multipliedBy(t));if(i.isLessThan(s)||e===h.length-1)return"".concat(d).concat(i.toFormat(n)," ").concat(h[e])}return""}function p(e){return e.toLocaleString()+" SF"}},2271:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26252:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(43219),n(2784),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55046:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return p},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return g},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return b},redirect:function(){return u.redirect},permanentRedirect:function(){return u.permanentRedirect},RedirectType:function(){return u.RedirectType},notFound:function(){return c.notFound}});let r=n(2784),i=n(60587),o=n(58839),a=n(26252),s=n(4424),l=n(44673),u=n(75903),c=n(47067),d=Symbol("internal for urlsearchparams readonly");function f(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw f()}delete(){throw f()}set(){throw f()}sort(){throw f()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function p(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(o.SearchParamsContext),t=(0,r.useMemo)(()=>e?new h(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(o.PathnameContext)}function v(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function g(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(i.GlobalLayoutRouterContext),t=(0,r.useContext)(o.PathParamsContext);return e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],i=Array.isArray(r),o=i?r[1]:r;if(!o||o.startsWith("__PAGE__"))continue;let a=i&&("c"===r[2]||"oc"===r[2]);a?n[r[0]]=r[1].split("/"):i&&(n[r[0]]=r[1]),n=e(t,n)}return n}(e.tree):t}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(i.LayoutRouterContext);return function e(t,n,r,i){let o;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)o=t[1][n];else{var a;let e=t[1];o=null!=(a=e.children)?a:Object.values(e)[0]}if(!o)return i;let l=o[0],u=(0,s.getSegmentValue)(l);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(o,n,!1,i))}(t,e)}function b(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47067:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return i}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75903:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return s},redirect:function(){return l},permanentRedirect:function(){return u},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return f}});let o=n(7552),a="NEXT_REDIRECT";function s(e,t,n){void 0===n&&(n=!1);let r=Error(a);r.digest=a+";"+t+";"+e+";"+n;let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function u(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r&&("true"===i||"false"===i)}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(i=r||(r={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let r=n(2271),i=(0,r.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4424:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23116:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25146:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(67858),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(43219),i=n(16794),o=i._(n(2784)),a=r._(n(28316)),s=r._(n(37412)),l=n(31918),u=n(97686),c=n(45802);n(84759);let d=n(54365),f=r._(n(2088)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,n,r,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}})}function m(e){let[t,n]=o.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:h,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:x,setShowAltText:w,onLoad:E,onError:k,...j}=e;return o.default.createElement("img",{...j,...m(d),loading:h,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(k&&(e.src=e.src),e.complete&&p(e,f,y,b,x,v))},[n,f,y,b,x,k,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,f,y,b,x,v)},onError:e=>{w(!0),"empty"!==f&&x(!0),k&&k(e)}})});function g(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...m(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let y=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(d.RouterContext),r=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||r||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:a,onLoadingComplete:s}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,b]=(0,o.useState)(!1),[x,w]=(0,o.useState)(!1),{props:E,meta:k}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:x});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...E,unoptimized:k.unoptimized,placeholder:k.placeholder,fill:k.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:b,setShowAltText:w,ref:t}),k.priority?o.default.createElement(g,{isAppRouter:!n,imgAttributes:E}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=n(43219),i=r._(n(2784)),o=n(31068),a=n(33134),s=n(39585),l=n(51570),u=n(19868),c=n(54365),d=n(60587),f=n(93629),h=n(25146),p=n(10694),m=n(23116),v=new Set;function g(e,t,n,r,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let i=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,o=t+"%"+n+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,n,r);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let b=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:v,children:b,prefetch:x=null,passHref:w,replace:E,shallow:k,scroll:j,locale:_,onClick:S,onMouseEnter:O,onTouchStart:C,legacyBehavior:M=!1,...A}=e;n=b,M&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let P=i.default.useContext(c.RouterContext),T=i.default.useContext(d.AppRouterContext),N=null!=P?P:T,R=!P,D=!1!==x,L=null===x?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:F,as:V}=i.default.useMemo(()=>{if(!P){let e=y(s);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(P,s,!0);return{href:e,as:v?(0,o.resolveHref)(P,v):t||e}},[P,s,v]),I=i.default.useRef(F),z=i.default.useRef(V);M&&(r=i.default.Children.only(n));let Z=M?r&&"object"==typeof r&&r.ref:t,[B,H,U]=(0,f.useIntersection)({rootMargin:"200px"}),W=i.default.useCallback(e=>{(z.current!==V||I.current!==F)&&(U(),z.current=V,I.current=F),B(e),Z&&("function"==typeof Z?Z(e):"object"==typeof Z&&(Z.current=e))},[V,Z,F,U,B]);i.default.useEffect(()=>{N&&H&&D&&g(N,F,V,{locale:_},{kind:L},R)},[V,F,H,_,D,null==P?void 0:P.locale,N,R,L]);let q={ref:W,onClick(e){M||"function"!=typeof S||S(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,o,s,l,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(p):p()}(e,N,F,V,E,k,j,_,R,D)},onMouseEnter(e){M||"function"!=typeof O||O(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(D||!R)&&g(N,F,V,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){M||"function"!=typeof C||C(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(D||!R)&&g(N,F,V,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)}};if((0,l.isAbsoluteUrl)(V))q.href=V;else if(!M||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==_?_:null==P?void 0:P.locale,t=(null==P?void 0:P.isLocaleDomain)&&(0,h.getDomainLocale)(V,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(V,e,null==P?void 0:P.defaultLocale))}return M?i.default.cloneElement(r,q):i.default.createElement("a",{...A,...q},n)}),x=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),i=n(30857),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:o,elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]);let p=(0,r.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31256:function(e,t,n){"use strict";var r=n(48834).lW;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Head:function(){return y},NextScript:function(){return b},Html:function(){return x},Main:function(){return w},default:function(){return E}});let i=c(n(2784)),o=n(13150),a=n(95383),s=n(82809),l=c(n(10274)),u=n(15333);function c(e){return e&&e.__esModule?e:{default:e}}let d=new Set;function f(e,t,n){let r=(0,a.getPageFiles)(e,"/_app"),i=n?[]:(0,a.getPageFiles)(e,t);return{sharedFiles:r,pageFiles:i,allFiles:[...new Set([...r,...i])]}}function h(e,t){let{assetPrefix:n,buildManifest:r,assetQueryString:o,disableOptimizedLoading:a,crossOrigin:s}=e;return r.polyfillFiles.filter(e=>e.endsWith(".js")&&!e.endsWith(".module.js")).map(e=>i.default.createElement("script",{key:e,defer:!a,nonce:t.nonce,crossOrigin:t.crossOrigin||s,noModule:!0,src:"".concat(n,"/_next/").concat(e).concat(o)}))}function p(e){let{styles:t}=e;if(!t)return null;let n=Array.isArray(t)?t:[];if(t.props&&Array.isArray(t.props.children)){let e=e=>{var t,n;return null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html};t.props.children.forEach(t=>{Array.isArray(t)?t.forEach(t=>e(t)&&n.push(t)):e(t)&&n.push(t)})}return i.default.createElement("style",{"amp-custom":"",dangerouslySetInnerHTML:{__html:n.map(e=>e.props.dangerouslySetInnerHTML.__html).join("").replace(/\/\*# sourceMappingURL=.*\*\//g,"").replace(/\/\*@ sourceURL=.*?\*\//g,"")}})}function m(e,t,n){let{dynamicImports:r,assetPrefix:o,isDevelopment:a,assetQueryString:s,disableOptimizedLoading:l,crossOrigin:u}=e;return r.map(e=>!e.endsWith(".js")||n.allFiles.includes(e)?null:i.default.createElement("script",{async:!a&&l,defer:!l,key:e,src:"".concat(o,"/_next/").concat(encodeURI(e)).concat(s),nonce:t.nonce,crossOrigin:t.crossOrigin||u}))}function v(e,t,n){var r;let{assetPrefix:o,buildManifest:a,isDevelopment:s,assetQueryString:l,disableOptimizedLoading:u,crossOrigin:c}=e,d=n.allFiles.filter(e=>e.endsWith(".js")),f=null==(r=a.lowPriorityFiles)?void 0:r.filter(e=>e.endsWith(".js"));return[...d,...f].map(e=>i.default.createElement("script",{key:e,src:"".concat(o,"/_next/").concat(encodeURI(e)).concat(l),nonce:t.nonce,async:!s&&u,defer:!u,crossOrigin:t.crossOrigin||c}))}function g(e,t){let{scriptLoader:n,disableOptimizedLoading:r,crossOrigin:o}=e,a=function(e,t){let{assetPrefix:n,scriptLoader:r,crossOrigin:o,nextScriptWorkers:a}=e;if(!a)return null;try{let{partytownSnippet:e}=require("@builder.io/partytown/integration"),a=Array.isArray(t.children)?t.children:[t.children],s=a.find(e=>{var t,n;return!!e&&!!e.props&&(null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html.length)&&"data-partytown-config"in e.props});return i.default.createElement(i.default.Fragment,null,!s&&i.default.createElement("script",{"data-partytown-config":"",dangerouslySetInnerHTML:{__html:'\n partytown = {\n lib: "'.concat(n,'/_next/static/~partytown/"\n };\n ')}}),i.default.createElement("script",{"data-partytown":"",dangerouslySetInnerHTML:{__html:e()}}),(r.worker||[]).map((e,n)=>{let{strategy:r,src:a,children:s,dangerouslySetInnerHTML:l,...u}=e,c={};if(a)c.src=a;else if(l&&l.__html)c.dangerouslySetInnerHTML={__html:l.__html};else if(s)c.dangerouslySetInnerHTML={__html:"string"==typeof s?s:Array.isArray(s)?s.join(""):""};else throw Error("Invalid usage of next/script. Did you forget to include a src attribute or an inline script? https://nextjs.org/docs/messages/invalid-script");return i.default.createElement("script",{...c,...u,type:"text/partytown",key:a||n,nonce:t.nonce,"data-nscript":"worker",crossOrigin:t.crossOrigin||o})}))}catch(e){return(0,l.default)(e)&&"MODULE_NOT_FOUND"!==e.code&&console.warn("Warning: ".concat(e.message)),null}}(e,t),s=(n.beforeInteractive||[]).filter(e=>e.src).map((e,n)=>{var a;let{strategy:s,...l}=e;return i.default.createElement("script",{...l,key:l.src||n,defer:null!==(a=l.defer)&&void 0!==a?a:!r,nonce:t.nonce,"data-nscript":"beforeInteractive",crossOrigin:t.crossOrigin||o})});return i.default.createElement(i.default.Fragment,null,a,s)}class y extends i.default.Component{getCssLinks(e){let{assetPrefix:t,assetQueryString:n,dynamicImports:r,crossOrigin:o,optimizeCss:a,optimizeFonts:s}=this.context,l=e.allFiles.filter(e=>e.endsWith(".css")),u=new Set(e.sharedFiles),c=new Set([]),d=Array.from(new Set(r.filter(e=>e.endsWith(".css"))));if(d.length){let e=new Set(l);d=d.filter(t=>!(e.has(t)||u.has(t))),c=new Set(d),l.push(...d)}let f=[];return l.forEach(e=>{let r=u.has(e);a||f.push(i.default.createElement("link",{key:"".concat(e,"-preload"),nonce:this.props.nonce,rel:"preload",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"style",crossOrigin:this.props.crossOrigin||o}));let s=c.has(e);f.push(i.default.createElement("link",{key:e,nonce:this.props.nonce,rel:"stylesheet",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),crossOrigin:this.props.crossOrigin||o,"data-n-g":s?void 0:r?"":void 0,"data-n-p":s?void 0:r?void 0:""}))}),s&&(f=this.makeStylesheetInert(f)),0===f.length?null:f}getPreloadDynamicChunks(){let{dynamicImports:e,assetPrefix:t,assetQueryString:n,crossOrigin:r}=this.context;return e.map(e=>e.endsWith(".js")?i.default.createElement("link",{rel:"preload",key:e,href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"script",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||r}):null).filter(Boolean)}getPreloadMainLinks(e){let{assetPrefix:t,assetQueryString:n,scriptLoader:r,crossOrigin:o}=this.context,a=e.allFiles.filter(e=>e.endsWith(".js"));return[...(r.beforeInteractive||[]).map(e=>i.default.createElement("link",{key:e.src,nonce:this.props.nonce,rel:"preload",href:e.src,as:"script",crossOrigin:this.props.crossOrigin||o})),...a.map(e=>i.default.createElement("link",{key:e,nonce:this.props.nonce,rel:"preload",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"script",crossOrigin:this.props.crossOrigin||o}))]}getBeforeInteractiveInlineScripts(){let{scriptLoader:e}=this.context,{nonce:t,crossOrigin:n}=this.props;return(e.beforeInteractive||[]).filter(e=>!e.src&&(e.dangerouslySetInnerHTML||e.children)).map((e,r)=>{let{strategy:o,children:a,dangerouslySetInnerHTML:s,src:l,...u}=e,c="";return s&&s.__html?c=s.__html:a&&(c="string"==typeof a?a:Array.isArray(a)?a.join(""):""),i.default.createElement("script",{...u,dangerouslySetInnerHTML:{__html:c},key:u.id||r,nonce:t,"data-nscript":"beforeInteractive",crossOrigin:n||void 0})})}getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}makeStylesheetInert(e){return i.default.Children.map(e,e=>{var t,n;if((null==e?void 0:e.type)==="link"&&(null==e?void 0:null==(t=e.props)?void 0:t.href)&&o.OPTIMIZED_FONT_PROVIDERS.some(t=>{var n,r;let{url:i}=t;return null==e?void 0:null==(r=e.props)?void 0:null==(n=r.href)?void 0:n.startsWith(i)})){let t={...e.props||{},"data-href":e.props.href,href:void 0};return i.default.cloneElement(e,t)}if(null==e?void 0:null==(n=e.props)?void 0:n.children){let t={...e.props||{},children:this.makeStylesheetInert(e.props.children)};return i.default.cloneElement(e,t)}return e}).filter(Boolean)}render(){var e,t;let{styles:r,ampPath:o,inAmpMode:a,hybridAmp:s,canonicalBase:l,__NEXT_DATA__:u,dangerousAsPath:c,headTags:d,unstable_runtimeJS:h,unstable_JsPreload:m,disableOptimizedLoading:v,optimizeCss:g,optimizeFonts:y,assetPrefix:b,nextFontManifest:x}=this.context,w=!1===h,E=!1===m||!v;this.context.docComponentsRendered.Head=!0;let{head:k}=this.context,j=[],_=[];k&&(k.forEach(e=>{let t;this.context.strictNextHead&&(t=i.default.createElement("meta",{name:"next-head",content:"1"})),e&&"link"===e.type&&"preload"===e.props.rel&&"style"===e.props.as?(t&&j.push(t),j.push(e)):e&&(t&&("meta"!==e.type||!e.props.charSet)&&_.push(t),_.push(e))}),k=j.concat(_));let S=i.default.Children.toArray(this.props.children).filter(Boolean);y&&!a&&(S=this.makeStylesheetInert(S));let O=!1,C=!1;k=i.default.Children.map(k||[],e=>{if(!e)return e;let{type:t,props:n}=e;if(a){let r="";if("meta"===t&&"viewport"===n.name?r='name="viewport"':"link"===t&&"canonical"===n.rel?C=!0:"script"===t&&(n.src&&-1>n.src.indexOf("ampproject")||n.dangerouslySetInnerHTML&&(!n.type||"text/javascript"===n.type))&&(r="{r+=" ".concat(e,'="').concat(n[e],'"')}),r+="/>"),r)return console.warn('Found conflicting amp tag "'.concat(e.type,'" with conflicting prop ').concat(r," in ").concat(u.page,". https://nextjs.org/docs/messages/conflicting-amp-tag")),null}else"link"===t&&"amphtml"===n.rel&&(O=!0);return e});let M=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,a),A=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return{preconnect:null,preload:null};let r=e.pages["/_app"],o=e.pages[t],a=[...null!=r?r:[],...null!=o?o:[]],s=!!(0===a.length&&(r||o));return{preconnect:s?i.default.createElement("link",{"data-next-font":e.pagesUsingSizeAdjust?"size-adjust":"",rel:"preconnect",href:"/",crossOrigin:"anonymous"}):null,preload:a?a.map(e=>{let t=/\.(woff|woff2|eot|ttf|otf)$/.exec(e)[1];return i.default.createElement("link",{key:e,rel:"preload",href:"".concat(n,"/_next/").concat(encodeURI(e)),as:"font",type:"font/".concat(t),crossOrigin:"anonymous","data-next-font":e.includes("-s")?"size-adjust":""})}):null}}(x,c,b);return i.default.createElement("head",function(e){let{crossOrigin:t,nonce:n,...r}=e;return r}(this.props),this.context.isDevelopment&&i.default.createElement(i.default.Fragment,null,i.default.createElement("style",{"data-next-hide-fouc":!0,"data-ampdevmode":a?"true":void 0,dangerouslySetInnerHTML:{__html:"body{display:none}"}}),i.default.createElement("noscript",{"data-next-hide-fouc":!0,"data-ampdevmode":a?"true":void 0},i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body{display:block}"}}))),k,this.context.strictNextHead?null:i.default.createElement("meta",{name:"next-head-count",content:i.default.Children.count(k||[]).toString()}),S,y&&i.default.createElement("meta",{name:"next-font-preconnect"}),A.preconnect,A.preload,a&&i.default.createElement(i.default.Fragment,null,i.default.createElement("meta",{name:"viewport",content:"width=device-width,minimum-scale=1,initial-scale=1"}),!C&&i.default.createElement("link",{rel:"canonical",href:l+n(79505).cleanAmpPath(c)}),i.default.createElement("link",{rel:"preload",as:"script",href:"https://cdn.ampproject.org/v0.js"}),i.default.createElement(p,{styles:r}),i.default.createElement("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}"}}),i.default.createElement("noscript",null,i.default.createElement("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}"}})),i.default.createElement("script",{async:!0,src:"https://cdn.ampproject.org/v0.js"})),!a&&i.default.createElement(i.default.Fragment,null,!O&&s&&i.default.createElement("link",{rel:"amphtml",href:l+(o||"".concat(c).concat(c.includes("?")?"&":"?","amp=1"))}),this.getBeforeInteractiveInlineScripts(),!g&&this.getCssLinks(M),!g&&i.default.createElement("noscript",{"data-n-css":null!==(e=this.props.nonce)&&void 0!==e?e:""}),!w&&!E&&this.getPreloadDynamicChunks(),!w&&!E&&this.getPreloadMainLinks(M),!v&&!w&&this.getPolyfillScripts(),!v&&!w&&this.getPreNextScripts(),!v&&!w&&this.getDynamicChunks(M),!v&&!w&&this.getScripts(M),g&&this.getCssLinks(M),g&&i.default.createElement("noscript",{"data-n-css":null!==(t=this.props.nonce)&&void 0!==t?t:""}),this.context.isDevelopment&&i.default.createElement("noscript",{id:"__next_css__DO_NOT_USE__"}),r||null),i.default.createElement(i.default.Fragment,{},...d||[]))}}y.contextType=u.HtmlContext;class b extends i.default.Component{getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}static getInlineScriptSource(e){let{__NEXT_DATA__:t,largePageDataBytes:i}=e;try{let o=JSON.stringify(t);if(d.has(t.page))return(0,s.htmlEscapeJsonString)(o);let a=r.from(o).byteLength,l=n(16549).Z;return i&&a>i&&(d.add(t.page),console.warn('Warning: data for page "'.concat(t.page,'"').concat(t.page===e.dangerousAsPath?"":' (path "'.concat(e.dangerousAsPath,'")')," is ").concat(l(a)," which exceeds the threshold of ").concat(l(i),", this amount of data can reduce performance.\nSee more info here: https://nextjs.org/docs/messages/large-page-data"))),(0,s.htmlEscapeJsonString)(o)}catch(e){if((0,l.default)(e)&&-1!==e.message.indexOf("circular structure"))throw Error('Circular structure in "getInitialProps" result of page "'.concat(t.page,'". https://nextjs.org/docs/messages/circular-structure'));throw e}}render(){let{assetPrefix:e,inAmpMode:t,buildManifest:n,unstable_runtimeJS:r,docComponentsRendered:o,assetQueryString:a,disableOptimizedLoading:s,crossOrigin:l}=this.context,u=!1===r;if(o.NextScript=!0,t)return null;let c=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,t);return i.default.createElement(i.default.Fragment,null,!u&&n.devFiles?n.devFiles.map(t=>i.default.createElement("script",{key:t,src:"".concat(e,"/_next/").concat(encodeURI(t)).concat(a),nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l})):null,u?null:i.default.createElement("script",{id:"__NEXT_DATA__",type:"application/json",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l,dangerouslySetInnerHTML:{__html:b.getInlineScriptSource(this.context)}}),s&&!u&&this.getPolyfillScripts(),s&&!u&&this.getPreNextScripts(),s&&!u&&this.getDynamicChunks(c),s&&!u&&this.getScripts(c))}}function x(e){let{inAmpMode:t,docComponentsRendered:n,locale:r,scriptLoader:o,__NEXT_DATA__:a}=(0,u.useHtmlContext)();return n.Html=!0,!function(e,t,n){var r,o,a,s;if(!n.children)return;let l=[],u=Array.isArray(n.children)?n.children:[n.children],c=null==(o=u.find(e=>e.type===y))?void 0:null==(r=o.props)?void 0:r.children,d=null==(s=u.find(e=>"body"===e.type))?void 0:null==(a=s.props)?void 0:a.children,f=[...Array.isArray(c)?c:[c],...Array.isArray(d)?d:[d]];i.default.Children.forEach(f,t=>{var n;if(t&&(null==(n=t.type)?void 0:n.__nextScript)){if("beforeInteractive"===t.props.strategy){e.beforeInteractive=(e.beforeInteractive||[]).concat([{...t.props}]);return}if(["lazyOnload","afterInteractive","worker"].includes(t.props.strategy)){l.push(t.props);return}}}),t.scriptLoader=l}(o,a,e),i.default.createElement("html",{...e,lang:e.lang||r||void 0,amp:t?"":void 0,"data-ampdevmode":void 0})}function w(){let{docComponentsRendered:e}=(0,u.useHtmlContext)();return e.Main=!0,i.default.createElement("next-js-internal-body-render-target",null)}b.contextType=u.HtmlContext;class E extends i.default.Component{static getInitialProps(e){return e.defaultGetInitialProps(e)}render(){return i.default.createElement(x,null,i.default.createElement(y,null),i.default.createElement("body",null,i.default.createElement(w,null),i.default.createElement(b,null)))}}E[o.NEXT_BUILTIN_DOCUMENT]=function(){return i.default.createElement(x,null,i.default.createElement(y,null),i.default.createElement("body",null,i.default.createElement(w,null),i.default.createElement(b,null)))}},31918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(84759);let r=n(69933),i=n(97686);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:v,width:g,height:y,fill:b=!1,style:x,onLoad:w,onLoadingComplete:E,placeholder:k="empty",blurDataURL:j,fetchPriority:_,layout:S,objectFit:O,objectPosition:C,lazyBoundary:M,lazyRoot:A,...P}=e,{imgConf:T,showAltText:N,blurComplete:R,defaultLoader:D}=t,L=T||i.imageConfigDefault;if("allSizes"in L)s=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);s={...L,allSizes:e,deviceSizes:t}}let F=P.loader||D;delete P.loader,delete P.srcSet;let V="__next_img_default"in F;if(V){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=F;F=t=>{let{config:n,...r}=t;return e(r)}}if(S){"fill"===S&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[S];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[S];t&&!d&&(d=t)}let I="",z=a(g),Z=a(y);if("object"==typeof(n=c)&&(o(n)||void 0!==n.src)){let e=o(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,j=j||e.blurDataURL,I=e.src,!b){if(z||Z){if(z&&!Z){let t=z/e.width;Z=Math.round(e.height*t)}else if(!z&&Z){let t=Z/e.height;z=Math.round(e.width*t)}}else z=e.width,Z=e.height}}let B=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:I)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,B=!1),s.unoptimized&&(f=!0),V&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(_="high");let H=a(v),U=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:C}:{},N?{}:{color:"transparent"},x),W=R||"empty"===k?null:"blur"===k?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:z,heightInt:Z,blurWidth:l,blurHeight:u,blurDataURL:j||"",objectFit:U.objectFit})+'")':'url("'+k+'")',q=W?{backgroundSize:U.objectFit||"cover",backgroundPosition:U.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},$=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:z,quality:H,sizes:d,loader:F}),Y={...P,loading:B?"lazy":p,fetchPriority:_,width:z,height:Z,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},G={unoptimized:f,priority:h,placeholder:k,fill:b};return{props:Y,meta:G}}},15333:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{HtmlContext:function(){return i},useHtmlContext:function(){return o}});let r=n(2784),i=(0,r.createContext)(void 0);function o(){let e=(0,r.useContext)(i);if(!e)throw Error(" should not be imported outside of pages/_document.\nRead more: https://nextjs.org/docs/messages/no-document-import-in-page");return e}},69933:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},81963:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return u},unstable_getImgProps:function(){return l}});let r=n(43219),i=n(31918),o=n(84759),a=n(80920),s=r._(n(2088)),l=e=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},u=a.Image},2088:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},72190:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePagePath",{enumerable:!0,get:function(){return a}});let r=n(95523),i=n(17428),o=n(51570);function a(e){let t=/^\/index(\/|$)/.test(e)&&!(0,i.isDynamicRoute)(e)?"/index"+e:"/"===e?"/index":(0,r.ensureLeadingSlash)(e);{let{posix:e}=n(15153),r=e.normalize(t);if(r!==t)throw new o.NormalizeError("Requested and resolved page mismatch: "+t+" "+r)}return t}},44673:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let r=n(16794),i=r._(n(2784)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},37832:function(){},276:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_355ef5', '__IBM_Plex_Mono_Fallback_355ef5'"},className:"__className_355ef5",variable:"__variable_355ef5"}},35957:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Sans_829fdc', '__IBM_Plex_Sans_Fallback_829fdc'"},className:"__className_829fdc",variable:"__variable_829fdc"}},15153:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?r=arguments[a]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(i=r+"/"+i,o=47===r.charCodeAt(0));return(i=n(i,!o),o)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;iu){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;47===f&&(c=d)}var h="";for(d=i+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return -1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){i=r+1;break}}else -1===l&&(a=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else -1===o&&(a=!1,o=r+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!o){r=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var a=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=n;--c){if(47===(i=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(0===s&&o?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(s,l)):(0===s&&o?(r.name=e.slice(1,a),r.base=e.slice(1,l)):(r.name=e.slice(s,a),r.base=e.slice(s,l)),r.ext=e.slice(a,l)),s>0?r.dir=e.slice(0,s-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(114);e.exports=i}()},16549:function(e,t){"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return i}});let n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],r=(e,t)=>{let n=e;return"string"==typeof t?n=e.toLocaleString(t):!0===t&&(n=e.toLocaleString()),n};function i(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);if((t=Object.assign({},t)).signed&&0===e)return" 0 B";let i=e<0,o=i?"-":t.signed?"+":"";if(i&&(e=-e),e<1){let n=r(e,t.locale);return o+n+" B"}let a=Math.min(Math.floor(Math.log10(e)/3),n.length-1);e=Number((e/Math.pow(1e3,a)).toPrecision(3));let s=r(e,t.locale),l=n[a];return o+s+" "+l}},95383:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getPageFiles",{enumerable:!0,get:function(){return o}});let r=n(7005),i=n(72190);function o(e,t){let n=(0,r.denormalizePagePath)((0,i.normalizePagePath)(t));return e.pages[n]||(console.warn(`Could not find files for ${n} in .next/build-manifest.json`),[])}},82809:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ESCAPE_REGEX:function(){return r},htmlEscapeJsonString:function(){return i}});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},r=/[&><\u2028\u2029]/g;function i(e){return e.replace(r,e=>n[e])}},79505:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isBlockedPage:function(){return i},cleanAmpPath:function(){return o},debounce:function(){return a}});let r=n(13150);function i(e){return r.BLOCKED_PAGES.includes(e)}function o(e){return e.match(/\?amp=(y|yes|true|1)/)&&(e=e.replace(/\?amp=(y|yes|true|1)&?/,"?")),e.match(/&=(y|yes|true|1)/)&&(e=e.replace(/&=(y|yes|true|1)/,"")),e=e.replace(/\?$/,"")}function a(e,t,n=1/0){let r,i,o;let a=0,s=0;function l(){let u=Date.now(),c=s+t-u;c<=0||a+n>=u?(r=void 0,e.apply(o,i)):r=setTimeout(l,c)}return function(...e){i=e,o=this,s=Date.now(),void 0===r&&(a=s,r=setTimeout(l,t))}}},331:function(e,t,n){n(31256)},97729:function(e,t,n){e.exports=n(37412)},96577:function(e,t,n){e.exports=n(81963)},39097:function(e,t,n){e.exports=n(13814)},82876:function(e,t,n){e.exports=n(55046)},5632:function(e,t,n){e.exports=n(60222)},24470:function(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},34406:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(a,"$2")}))}function d(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,n){for(var r=0,i=t.length,o=e;r>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},81432:function(e){e.exports={L:1,M:0,Q:3,H:2}},84695:function(e,t,n){var r=n(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var u=!1;o>>i&1)==1),a.getMask(t,r,s-l)&&(u=!u),this.modules[r][s-l]=u,-1==--i&&(o++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new o,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,o=Array(t.length),l=Array(t.length),u=0;u=0?p.get(m):0}}for(var v=0,f=0;f=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a.PATTERN000:return(t+n)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return n%3==0;case a.PATTERN011:return(t+n)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case a.PATTERN101:return t*n%2+t*n%3==0;case a.PATTERN110:return(t*n%2+t*n%3)%2==0;case a.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),n=0;n5&&(n+=3+o-5)}for(var r=0;r=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","size","title","xmlns"]);return o.default.createElement("svg",r({},s,{height:n,width:n,xmlns:a}),i?o.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,o.default[a]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,r({},f,{size:s}),p.map(function(e,r){return e.map(function(e,i){var o=Math.round(i*m),a=Math.round(r*m),s=Math.round((i+1)*m)-o,c=Math.round((r+1)*m)-a;return l.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:o,transformY:a})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},88965:function(e,t,n){"use strict";n.d(t,{Z:function(){return U}});var r,i,o,a,s,l,u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}"function"==typeof SuppressedError&&SuppressedError;var d=n(2784),f="right-scroll-bar-position",h="width-before-scroll-bar",p=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],a=!1,s={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=u({async:!0,ssr:!1},r),s),m=function(){},v=d.forwardRef(function(e,t){var n,r,i,o=d.useRef(null),a=d.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),s=a[0],l=a[1],f=e.forwardProps,h=e.children,v=e.className,g=e.removeScrollBar,y=e.enabled,b=e.shards,x=e.sideCar,w=e.noIsolation,E=e.inert,k=e.allowPinchZoom,j=e.as,_=void 0===j?"div":j,S=c(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),O=(n=[o,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,i.facade),C=u(u({},S),s);return d.createElement(d.Fragment,null,y&&d.createElement(x,{sideCar:p,removeScrollBar:g,shards:b,noIsolation:w,inert:E,setCallbacks:l,allowPinchZoom:!!k,lockRef:o}),f?d.cloneElement(d.Children.only(h),u(u({},C),{ref:O})):d.createElement(_,u({},C,{className:v,ref:O}),h))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:h,zeroRight:f};var g=function(e){var t=e.sideCar,n=c(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,u({},n))};g.isSideCarExport=!0;var y=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b=function(){var e=y();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},x=function(){var e=b();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},E=function(e){return parseInt(e||"",10)||0},k=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[E(n),E(r),E(i)]},j=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=k(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},_=x(),S=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(f," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(h," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n right: 0 ").concat(r,";\n }\n \n .").concat(h," .").concat(h," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},O=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,o=d.useMemo(function(){return j(i)},[i]);return d.createElement(_,{styles:S(o,!t,i,n?"":"!important")})},C=!1;if("undefined"!=typeof window)try{var M=Object.defineProperty({},"passive",{get:function(){return C=!0,!0}});window.addEventListener("test",M,M),window.removeEventListener("test",M,M)}catch(e){C=!1}var A=!!C&&{passive:!1},P=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},T=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},N=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),R(e,n)){var r=D(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},R=function(e,t){return"v"===e?P(t):T(t)},D=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},L=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=D(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&R(e,l)&&(f+=v,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},F=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},V=function(e){return[e.deltaX,e.deltaY]},I=function(e){return e&&"current"in e?e.current:e},z=0,Z=[],B=(p.useMedium(function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),i=d.useState(z++)[0],o=d.useState(function(){return x()})[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;iMath.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=N(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=N(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return L(h,t,e,"h"===h?l:u,!0)},[]),l=d.useCallback(function(e){if(Z.length&&Z[Z.length-1]===o){var n="deltaY"in e?V(e):F(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(I).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),u=d.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=d.useCallback(function(e){n.current=F(e),r.current=void 0},[]),f=d.useCallback(function(t){u(t.type,V(t),t.target,s(t,e.lockRef.current))},[]),h=d.useCallback(function(t){u(t.type,F(t),t.target,s(t,e.lockRef.current))},[]);d.useEffect(function(){return Z.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,A),document.addEventListener("touchmove",l,A),document.addEventListener("touchstart",c,A),function(){Z=Z.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,A),document.removeEventListener("touchmove",l,A),document.removeEventListener("touchstart",c,A)}},[]);var p=e.removeScrollBar,m=e.inert;return d.createElement(d.Fragment,null,m?d.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?d.createElement(O,{gapMode:"margin"}):null)}),g),H=d.forwardRef(function(e,t){return d.createElement(v,u({},e,{ref:t,sideCar:B}))});H.classNames=v.classNames;var U=H},32718:function(e,t,n){var r,i=n(58085),o=n(41964),a=n(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return r=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(n,o,l){if(r++>100)throw r=0,Error("Call stack overflow for "+l);if(""===n)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,o="",a=t;r=s.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var l=i("(",")",a.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",n);o+=l.pre+u,a=l.post}return o+a}(n,l));if(c.length>1||n.indexOf("var(")>-1)return o+"("+n+")";var d=c[0]||"";"%"===d&&(n=n.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=n.replace(RegExp(d,"gi"),"");try{u=a.eval(f)}catch(e){return o+"("+n+")"}return"%"===d&&(u*=100),(o.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,l=r("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return n})(t,n).reduce(function(r,o){var a,s;return r.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,n,i),s,t)))},t)}},6692:function(e,t,n){let r=n(83128);e.exports=(r.__esModule?r:{default:r}).default},83128:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>a});let i=(r=n(37540))&&r.__esModule?r:{default:r};function o({version:e,from:t,to:n}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,n){"use strict";var r,i=n(34406);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{dim:()=>l,default:()=>u});let o=(r=n(24470))&&r.__esModule?r:{default:r},a=new Set;function s(e,t,n){(void 0===i||!i.env.JEST_WORKER_ID)&&(n&&a.has(n)||(n&&a.add(n),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return o.default.dim(e)}let u={info(e,t){s(o.default.bold(o.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var n=e.length,r=Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,n=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,r.useRef)({item:null,parsed:t}),d=(0,r.useSyncExternalStore)((0,r.useCallback)(t=>{let n=n=>{e===n&&t()};return o.add(n),()=>{o.delete(n)}},[e]),()=>{var n;let r=null!==(n=s(()=>localStorage.getItem(e)))&&void 0!==n?n:null;if(i.has(e))c.current={item:r,parsed:i.get(e)};else if(r!==c.current.item){let e;try{e=null===r?t:l(r)}catch(n){e=t}c.current={item:r,parsed:e}}return c.current.parsed},()=>t),f=(0,r.useCallback)(t=>{let n=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(n)),i.delete(e)}catch(t){i.set(e,n)}a(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&a(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,n]),(0,r.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),a(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},20452:function(e,t,n){"use strict";/** +***************************************************************************** */function EV(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function Ez(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||jr,jo=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,ja=/\/\*[^]*?\*\/|\s\s+|\n/g,js=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?js(a,o):o+"{"+js(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=js(a,t?t.replace(/([^,])+/g,e=>o.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=js.p?js.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},jl={},ju=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+ju(e[n]);return t}return e},jc=(e,t,n,r,i)=>{var o;let a=ju(e),s=jl[a]||(jl[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!jl[s]){let t=a!==e?e:(e=>{let t,n=[{}];for(;t=jo.exec(e.replace(ja,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);jl[s]=js(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return o=jl[s],-1==t.data.indexOf(o)&&(t.data=r?o+t.data:t.data+o),s},jd=(e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":js(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"");function jf(e){let t=this||{},n=e.call?e(t.p):e;return jc(n.unshift?n.raw?jd(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,ji(t.target),t.g,t.o,t.k)}jf.bind({g:1});let jh,jp,jm,jv=jf.bind({k:1});function jg(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:jp&&jp()},s),n.o=/ *go\d+/.test(l),s.className=jf.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),jm&&u[0]&&jm(s),jh(u,s)}return t?t(i):i}}function jy(){return(jy=Object.assign||function(e){for(var t=1;t-1&&jO.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return jy({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||jA[t.type],style:jy({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return jy({},n,{toasts:i})},jT=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),jy({createdAt:Date.now(),visible:!0,type:r,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},n,{id:(null==n?void 0:n.id)||jw()}));return jM({type:y.UPSERT_TOAST,toast:i}),i.id}},jN=function(e,t){return jT("blank")(e,t)};jN.error=jT("error"),jN.success=jT("success"),jN.loading=jT("loading"),jN.custom=jT("custom"),jN.dismiss=function(e){jM({type:y.DISMISS_TOAST,toastId:e})},jN.remove=function(e){return jM({type:y.REMOVE_TOAST,toastId:e})},jN.promise=function(e,t,n){var r=jN.loading(t.loading,jy({},n,null==n?void 0:n.loading));return e.then(function(e){return jN.success(jb(t.success,e),jy({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){jN.error(jb(t.error,e),jy({id:r},n,null==n?void 0:n.error))}),e};var jR=function(e){var t=jP(e),n=t.toasts,r=t.pausedAt;(0,b.useEffect)(function(){if(!r){var e=Date.now(),t=n.map(function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&jN.dismiss(t.id);return}return setTimeout(function(){return jN.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,b.useMemo)(function(){return{startPause:function(){jM({type:y.START_PAUSE,time:Date.now()})},endPause:function(){r&&jM({type:y.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return jM({type:y.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=n.filter(function(t){return(t.position||u)===(e.position||u)&&t.height}),d=c.findIndex(function(t){return t.id===e.id}),f=c.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return ki=function(){return e},e}c=b.createElement,js.p=void 0,jh=c,jp=void 0,jm=void 0;var ko=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return jy({left:0,right:0,display:"flex",position:"absolute",transition:jE()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},ka=jf(ki()),ks=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,o=e.gutter,a=e.children,s=e.containerStyle,l=e.containerClassName,u=jR(i),c=u.toasts,d=u.handlers;return(0,b.createElement)("div",{style:jy({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(function(e){var n,i=e.position||r,s=ko(i,d.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:r})),l=e.height?void 0:(n=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){n(e.getBoundingClientRect())})});return(0,b.createElement)("div",{ref:l,className:e.visible?ka:"",key:e.id,style:s},"custom"===e.type?jb(e.message,e):a?a(e):(0,b.createElement)(kr,{toast:e,position:i}))}))};let kl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jN((0,x.jsx)(tq,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200)):e}),kd(t))},ku=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jN.success((0,x.jsx)(tq,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),kd(t))},kc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jN.error((0,x.jsx)(tq,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),kd(t))};function kd(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,ea.cx)(s6,tY(),"font-sans font-normal","text-gray-1100 dark:text-white","max-w-[800px] overflow-hidden text-ellipsis","[&>div]:overflow-hidden","[&>div]:flex-1",e),success:{icon:(0,x.jsx)("div",{className:"!flex-none w-5",children:(0,x.jsx)(lt.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,x.jsx)("div",{className:"!flex-none w-5",children:(0,x.jsx)(lt.Jsc,{className:"w-5 text-red-600"})})},...t}}function kf(){return(0,x.jsx)(ks,{toastOptions:kd()})}let kh=(e,t)=>{let n=t?"Copied ".concat(t," to clipboard"):"Copied to clipboard";kl(n),function(e){EV(this,void 0,void 0,function(){return Ez(this,function(t){var n;if(E3)return EI("Using `navigator.clipboard.writeText()`."),[2,E3(e)];if(!function(e){return EV(this,void 0,void 0,function(){var t;return Ez(this,function(n){var r,i,o,a,s,l,u,c;if(t="text/plain"in e,"undefined"==typeof ClipboardEvent&&void 0!==E6.clipboardData&&void 0!==E6.clipboardData.setData){if(!t)throw Error("No `text/plain` value was specified.");if(r=e["text/plain"],E6.clipboardData.setData("Text",r))return[2,!0];throw Error("Copying failed, possibly because the user rejected it.")}return E9(e)?(EI("regular execCopy worked"),[2,!0]):navigator.userAgent.indexOf("Edge")>-1?(EI('UA "Edge" => assuming success'),[2,!0]):je(document.body,e)?(EI("copyUsingTempSelection worked"),[2,!0]):((i=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),i.textContent="temporary element",document.body.appendChild(i),o=je(i,e),document.body.removeChild(i),o)?(EI("copyUsingTempElem worked"),[2,!0]):(a=e["text/plain"],EI("copyTextUsingDOM"),(s=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),l=s,s.attachShadow&&(EI("Using shadow DOM."),l=s.attachShadow({mode:"open"})),(u=document.createElement("span")).innerText=a,l.appendChild(u),document.body.appendChild(s),jt(u),c=document.execCommand("copy"),jn(),document.body.removeChild(s),c)?(EI("copyTextUsingDOM worked"),[2,!0]):[2,!1]})})}(((n={})["text/plain"]=e,n)))throw Error("writeText() failed");return[2]})})}(e)};function kp(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function km(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^key:/,"")}function kv(e,t,n){return t?"".concat(e," ").concat(kp(t,n)):"".concat(e)}function kg(e,t){return"miner"===t?"minerPayout":"siafundClaim"===t?"siafundClaim":"contract"===t?"contractPayout":"foundation"===t?"foundationSubsidy":e.storageProofs&&e.storageProofs.length>0?"storageProof":e.fileContracts&&e.fileContracts.length>0&&e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRenewal":e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRevision":e.fileContracts&&e.fileContracts.length>0?"contractFormation":e.arbitraryData&&e.arbitraryData.length>0&&0===atob(e.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":void 0}let ky={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",ip:"IP"},kx={siacoin:"siacoin transfer",siafund:"siafund transfer",contractFormation:"contract formation",contractRenewal:"contract renewal",contractRevision:"contract revision",contractPayout:"contract payout",storageProof:"storage proof",minerPayout:"miner payout",siafundClaim:"siafund claim",foundationSubsidy:"foundation subsidy",hostAnnouncement:"host announcement"};function kb(e){return e?ky[e]:void 0}function kw(e){return e?kx[e]:void 0}function kE(e){let{value:t,displayValue:n,type:r,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,color:c="contrast",className:d}=e,f=i||kb(r),h=a||("ip"===r?20:12),p=km(t),m=n||p,v="".concat(null==m?void 0:m.slice(0,h)).concat(((null==m?void 0:m.length)||0)>h?"...":"");return(0,x.jsxs)("div",{className:(0,ea.cx)("flex items-center",d),children:[o?(0,x.jsx)(c2,{href:o,underline:"hover",size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}):(0,x.jsx)(tq,{size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}),(0,x.jsx)("div",{className:"ml-1 flex items-center",children:(0,x.jsx)(le,{variant:"ghost",size:"none",onClick:e=>{e.stopPropagation(),kh(p,f)},children:(0,x.jsx)(tq,{color:c,children:(0,x.jsx)(lt.olJ,{className:"10"===s?"scale-75":"scale-90"})})})})]})}function kj(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change"}=e,a=(0,m5.yF)(String(t),{units:"SF"});return(0,x.jsx)(s7,{content:(i?"".concat(i," "):"")+a,children:(0,x.jsxs)(tq,{size:n,scaleSize:r,weight:"medium",font:"mono",color:"change"===o?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===o&&t>0?"+":"",a]})})}function kk(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",fixed:a=3,dynamicUnits:s=!0,hastingUnits:l=!0,extendedSuffix:u,showTooltip:c=!0}=e,d=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",f="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast",h=(0,x.jsxs)(tq,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:f,children:["change"===o?"".concat(d).concat((0,m5.Vz)(t.absoluteValue(),{fixed:a,dynamicUnits:s})):(0,m5.Vz)(t,{fixed:a,dynamicUnits:s,hastingUnits:l}),(0,x.jsx)(tq,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:u?"".concat(u):""})]});return c?(0,x.jsx)(s7,{content:(i?"".concat(i," "):"")+(0,m5.Vz)(t,{fixed:16,dynamicUnits:!1}),children:h}):h}function k_(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",variant:o="change",color:a,format:s}=e,l=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",u="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,x.jsx)(s7,{content:(i?"".concat(i," "):"")+s(t),children:(0,x.jsx)(tq,{size:n,weight:r,font:"mono",ellipsis:!0,color:a||u,children:"change"===o?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var kS=n(61258),kO=n.n(kS);function kC(e){let{skeletonCount:t=10}=e;return(0,x.jsx)(x.Fragment,{children:kO()(t,e=>(0,x.jsxs)("div",{className:(0,ea.cx)("relative flex gap-4 p-3.5",(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,x.jsx)(fP,{className:"w-[60px] h-[50px]"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,x.jsx)(fP,{className:"w-[90%] h-[20px]"}),(0,x.jsx)(fP,{className:"w-[140px] h-[14px]"})]})]},e))})}var kM=n(66700),kA=n(19785);function kP(e,t){(0,kA.Z)(2,arguments);var n=(0,kM.Z)(e),r=(0,kM.Z)(t),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var kT={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},kN={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function kR(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var kD={date:kR({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:kR({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:kR({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},kL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function kF(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function kV(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:kD,formatRelative:function(e,t,n,r){return kL[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:kF({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:kF({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:kF({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:kF({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:kF({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(d={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(d.matchPattern);if(!n)return null;var r=n[0],i=e.match(d.parsePattern);if(!i)return null;var o=d.valueCallback?d.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:kV({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:kV({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:kV({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:kV({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:kV({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function kI(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var kZ=n(23779),kB=n.n(kZ);function kH(e){let{type:t,label:n,initials:r,href:i,src:o,shape:a}=e,s=(0,x.jsx)(lm,{interactive:!!i,fallback:r||t&&(t||n||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:o,shape:a||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,x.jsx)(c2,{href:i,underline:"none",children:s}),u=l||s;return t?(0,x.jsx)(s7,{content:n||kb(t),children:(0,x.jsx)("div",{className:"",children:u})}):u}function kU(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,x.jsxs)("div",{className:(0,ea.cx)("flex gap-4 p-4",(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,x.jsx)(kH,{label:t,type:n,shape:i,src:r,initials:o||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function kW(e){let t=e.sc,n=e.sf,r=e.hash&&(0,x.jsx)(kE,{value:e.hash,type:e.type,label:e.label,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&kw(e.txType)||kb(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?kB()(i):i;return(0,x.jsx)(kU,{...e,children:(0,x.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[e.height&&e.blockHref&&(0,x.jsx)(tq,{color:"subtle",weight:"semibold",children:(0,x.jsx)(c2,{href:e.blockHref,underline:"none",children:(0,m5.yF)(e.height)})}),(0,x.jsx)(tq,{weight:"medium",children:o||r})]}),(0,x.jsx)("div",{className:"flex-1"}),!!t&&(0,x.jsx)(kk,{variant:e.scVariant,value:t}),!!n&&(0,x.jsx)(kj,{variant:e.sfVariant,value:n})]}),(0,x.jsxs)("div",{className:"flex justify-between w-full",children:[(0,x.jsx)("div",{className:"flex gap-1",children:!!o&&r}),(0,x.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(tq,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,x.jsx)(tq,{color:"verySubtle",children:(0,x.jsx)(lt.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,x.jsx)(tq,{color:"subtle",children:function(e,t){var n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,kA.Z)(2,arguments);var a=o.locale||kz;if(!a.formatDistance)throw RangeError("locale must contain formatDistance property");var s=kP(e,t);if(isNaN(s))throw RangeError("Invalid time value");var l=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}({},o);l.addSuffix=!!o.addSuffix,l.comparison=s,s>0?(n=(0,kM.Z)(t),r=(0,kM.Z)(e)):(n=(0,kM.Z)(e),r=(0,kM.Z)(t));var u=function(e,t,n){(0,kA.Z)(2,arguments);var r,i=function(e,t){return(0,kA.Z)(2,arguments),(0,kM.Z)(e).getTime()-(0,kM.Z)(t).getTime()}(e,t)/1e3;return((r=null==n?void 0:n.roundingMethod)?kT[r]:kT.trunc)(i)}(r,n),c=Math.round((u-(kI(r)-kI(n))/1e3)/60);if(c<2){if(o.includeSeconds){if(u<5)return a.formatDistance("lessThanXSeconds",5,l);if(u<10)return a.formatDistance("lessThanXSeconds",10,l);if(u<20)return a.formatDistance("lessThanXSeconds",20,l);if(u<40)return a.formatDistance("halfAMinute",null,l);else if(u<60)return a.formatDistance("lessThanXMinutes",1,l);else return a.formatDistance("xMinutes",1,l)}return 0===c?a.formatDistance("lessThanXMinutes",1,l):a.formatDistance("xMinutes",c,l)}if(c<45)return a.formatDistance("xMinutes",c,l);if(c<90)return a.formatDistance("aboutXHours",1,l);if(c<1440){var d=Math.round(c/60);return a.formatDistance("aboutXHours",d,l)}if(c<2520)return a.formatDistance("xDays",1,l);if(c<43200){var f=Math.round(c/1440);return a.formatDistance("xDays",f,l)}if(c<86400)return i=Math.round(c/43200),a.formatDistance("aboutXMonths",i,l);if((i=function(e,t){(0,kA.Z)(2,arguments);var n,r=(0,kM.Z)(e),i=(0,kM.Z)(t),o=kP(r,i),a=Math.abs(function(e,t){(0,kA.Z)(2,arguments);var n=(0,kM.Z)(e),r=(0,kM.Z)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,i));if(a<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-o*a);var s=kP(r,i)===-o;(function(e){(0,kA.Z)(1,arguments);var t=(0,kM.Z)(e);return(function(e){(0,kA.Z)(1,arguments);var t=(0,kM.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,kA.Z)(1,arguments);var t=(0,kM.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,kM.Z)(e))&&1===a&&1===kP(e,i)&&(s=!1),n=o*(a-Number(s))}return 0===n?0:n}(r,n))<12){var h=Math.round(c/43200);return a.formatDistance("xMonths",h,l)}var p=i%12,m=Math.floor(i/12);return p<3?a.formatDistance("aboutXYears",m,l):p<9?a.formatDistance("overXYears",m,l):a.formatDistance("almostXYears",m+1,l)}(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function kq(e){let{title:t,actions:n,entities:r,emptyState:i,emptyMessage:o,skeletonCount:a=10,children:s}=e;return(0,x.jsx)(tG,{children:(0,x.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(t||n)&&(0,x.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,x.jsx)(cU,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,x.jsx)("div",{className:"flex-1"}),n]}),(0,x.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(null==r?void 0:r.length)===0&&(i||(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center justify-center h-[84px]",(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,x.jsx)(tq,{size:"18",color:"subtle",children:o||"No results"})})),s||(null==r?void 0:r.map((e,t)=>(0,x.jsx)(kW,{...e},e.hash||e.label||t)))||(0,x.jsx)(kC,{skeletonCount:a})]})]})})}function k$(e){let{label:t,entityType:n,entityValue:r,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,sf:c,comment:d,commentTip:f,scaleSize:h="40",isLoading:p,onClick:m}=e,v=(0,x.jsx)(tq,{color:"subtle",size:"12",className:"h-6",children:d});return(0,x.jsx)(tG,{children:(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",m?"cursor-pointer":""),onClick:m,children:(0,x.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,x.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,x.jsx)(tq,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?kB()(t):t}),i]}),(0,x.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[p?(0,x.jsx)(fP,{className:"h-12 w-[150px]"}):(0,x.jsxs)(x.Fragment,{children:[void 0!==u&&(0,x.jsx)(kk,{extendedSuffix:s,scaleSize:h,variant:"value",value:u,fixed:0}),void 0!==c&&(0,x.jsx)(kj,{scaleSize:h,variant:"value",value:c}),n&&(r?(0,x.jsx)(kE,{scaleSize:h,label:kb(n),href:o,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,x.jsx)(tq,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),l&&(0,x.jsx)(kE,{scaleSize:h,label:"hash",value:l}),void 0!==a&&(0,x.jsx)(tq,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:a})]}),v?(0,x.jsx)("div",{className:"mt-1",children:p?(0,x.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,x.jsx)(fP,{className:"h-4 w-[100px]"})}):f?(0,x.jsx)(s7,{content:f,children:v}):v}):null]})]})})})}function kY(e){let{title:t,actions:n,name:r}=e;return(0,x.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,x.jsx)(cJ,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function kG(e){var t;let{form:n,name:r}=e,i=n.formState.errors[r],o=null===(t=n.formState.errors[r])||void 0===t?void 0:t.message;return i?(0,x.jsx)(tq,{size:"14",color:"red",children:o}):null}function kK(e){let{form:t,title:n,actions:r,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return n||s?(0,x.jsxs)("div",{className:(0,ea.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,x.jsx)(kY,{name:i,title:n,actions:r}),(0,x.jsx)(kG,{form:t,name:i})]}):null}function kX(e){let{children:t,...n}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsx)(kK,{...n}),t]})}function kQ(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(le,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,x.jsx)(ED,{}):i})})}function kJ(e){let{formik:t,title:n,name:r,placeholder:i,disabled:o,readOnly:a,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:v,type:g,variants:y}=e;return(0,x.jsx)(k3,{formik:t,title:n,name:r,children:"number"===g?(0,x.jsx)(k1,{formik:t,name:r,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:y}):"siacoin"===g?(0,x.jsx)(k2,{formik:t,name:r,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:y}):(0,x.jsx)(k0,{formik:t,name:r,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:y})})}function k0(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:o,readOnly:a,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,x.jsx)(d3,{id:n,name:n,autoComplete:i,disabled:o,spellCheck:l,placeholder:r,tabIndex:s,readOnly:a||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function k1(e){let{formik:t,name:n,units:r,disabled:i,readOnly:o,tabIndex:a,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,x.jsx)(fy,{id:n,units:r,name:n,placeholder:new(fv())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:o||t.isSubmitting,tabIndex:a,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function k2(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:o,placeholder:a,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,x.jsx)(fj,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(n),sc:new(fv())(t.values[n]),placeholder:new(fv())(a),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function k4(e){var t,n;let{formik:r,title:i,name:o,withStatusError:a=!1,className:s}=e,l=r.errors[o]&&r.touched[o]||a&&(null===(t=r.status)||void 0===t?void 0:t.error),u=r.errors[o]||a&&(null===(n=r.status)||void 0===n?void 0:n.error);return(i||l)&&(0,x.jsxs)("div",{className:(0,ea.cx)("flex justify-between items-center gap-4",s),children:[i?(0,x.jsx)(cJ,{htmlFor:o,children:i}):(0,x.jsx)("div",{}),l&&(0,x.jsx)(tq,{size:"14",color:"red",children:u})]})}function k3(e){let{children:t,...n}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsx)(k4,{...n}),t]})}function k5(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,x.jsxs)(x.Fragment,{children:[o&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,x.jsx)(tq,{color:"red",children:n.status.error}),(0,x.jsx)(le,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,x.jsx)(ED,{}):a})]})}function k6(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,summary:l,rowSize:u="default",pageSize:c,isLoading:d,emptyState:f,focusId:h,focusColor:p="default"}=e,m="emptyState";!d||(null==n?void 0:n.length)||(m="skeleton"),(null==n?void 0:n.length)&&(m="currentData");let v=(0,b.useCallback)((e,n,r)=>(0,ea.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",r?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",n),[t]),g=(0,b.useCallback)((e,t)=>(0,ea.cx)("flex items-center",t),[]);return(0,x.jsxs)(tG,{children:[(0,x.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,x.jsx)("thead",{className:(0,ea.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,x.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:r,label:l,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==a?void 0:a.includes(n))&&!!s,h=i===n;return(0,x.jsx)("th",{className:(0,ea.cx)(v(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,x.jsx)("div",{className:(0,ea.cx)("overflow-hidden","py-3"),children:(0,x.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,ea.cx)(g(t,d),f?"cursor-pointer":""),children:[(0,x.jsx)(s7,{content:u,children:(0,x.jsxs)(tq,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,x.jsx)("div",{children:r}):null,(0,x.jsx)(tq,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,x.jsx)(tq,{color:"contrast",children:"asc"===o?(0,x.jsx)(lt.kqg,{className:"scale-75"}):(0,x.jsx)(lt.EMN,{className:"scale-75"})}),f&&!h&&(0,x.jsx)(tq,{color:"verySubtle",children:(0,x.jsx)(lt.kqg,{className:"scale-75"})})]})})},n)})})}),(0,x.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:[l&&(0,x.jsx)("tr",{className:"bg-gray-50 dark:bg-graydark-50 border-l border-r border-b border-gray-200 dark:border-graydark-200",children:t.map((e,t)=>{let{id:n,summary:r,contentClassName:i,cellClassName:o}=e;return(0,x.jsx)("td",{className:v(t,o,!1),children:(0,x.jsx)("div",{className:g(t,i),children:r&&r()})},n)})}),"currentData"===m&&(null==n?void 0:n.map(e=>(0,x.jsx)("tr",{id:e.id,onClick:e.onClick,className:(0,ea.cx)("border-b border-gray-200/50 dark:border-graydark-100",e.onClick?"cursor-pointer":""),children:t.map((t,n)=>{let{id:i,render:o,contentClassName:a,cellClassName:s}=t;return(0,x.jsx)("td",{className:(0,ea.cx)(v(n,s,!1),h===e.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===p?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===p?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===p?"!shadow-red-500 dark:!shadow-red-400":"","amber"===p?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===p?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,x.jsx)("div",{className:(0,ea.cx)(g(n,a),"dense"===u?"h-[50px]":"h-[100px]"),children:(0,x.jsx)(o,{data:e,context:r})})},"".concat(i,"/").concat(e.id))})},e.id))),"skeleton"===m&&kO()(c).map(e=>(0,x.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:n,contentClassName:r,cellClassName:i}=e;return(0,x.jsx)("td",{className:v(t,i,!1),children:(0,x.jsx)("div",{className:(0,ea.cx)(g(t,r),"dense"===u?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===m&&f]})}var k8=n(5632);function k7(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,o=(0,k8.useRouter)();return(0,x.jsxs)(lE,{children:[(0,x.jsx)(le,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,x.jsx)("div",{className:"flex scale-[0.65]",children:(0,x.jsx)(lt.XJM,{})})}),(0,x.jsx)(le,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,x.jsx)(lt.bdU,{})}),(0,x.jsx)(le,{state:"waiting",className:"rounded-none px-3",children:r>0?"".concat(t+1," - ").concat(Math.min(t+n,r)," of ").concat(r?r.toLocaleString():""):i?(0,x.jsx)(ED,{className:"px-2"}):"No results"}),(0,x.jsx)(le,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.min(t+n,r)}}),children:(0,x.jsx)(lt.VUy,{})}),(0,x.jsx)(le,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>o.push({query:{...o.query,offset:Math.floor(r/n)*n}}),children:(0,x.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,x.jsx)(lt.RRj,{})})})]})}function k9(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[t?"string"==typeof t?(0,x.jsx)(tq,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,x.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,x.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 overflow-x-hidden",children:n}),(0,x.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,x.jsx)("div",{className:"flex items-center gap-2 px-6 py-3 h-10 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:r})]})}let _e=("string"==typeof(f={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAZEAADAAMAAAAAAAAAAAAAAAAAAQISIpH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8ArRbxWi6AAP/Z",blurWidth:3,blurHeight:8})?{src:f}:f).src;function _t(e){let{children:t}=e;return(0,x.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(_e,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,x.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}var _n=n(97729),_r=n.n(_n);function _i(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,x.jsxs)(_r(),{children:[(0,x.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,x.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,x.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,x.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,x.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,x.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,x.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,x.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,x.jsx)("title",{children:i})]})}function _o(e){let{appName:t,title:n,children:r}=e;return(0,x.jsxs)("div",{className:"h-screen",children:[(0,x.jsx)(_i,{appName:t,title:n}),r]})}function _a(e){let{appName:t,title:n,children:r,filters:i,actions:o}=e;return(0,x.jsxs)(_o,{appName:t,title:n,children:[(0,x.jsx)(_t,{}),(0,x.jsx)("div",{className:"flex h-full",children:(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(k9,{nav:i,actions:o}),(0,x.jsx)("div",{className:"flex-1",children:(0,x.jsx)(lk,{className:"h-full",children:r})})]})})]})}function _s(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,x.jsx)(s7,{side:"right",content:(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsxs)("div",{className:"flex gap-2",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"spendable"}),(0,x.jsx)(tq,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kk,{variant:"value",value:t.spendable})})]}),(0,x.jsxs)("div",{className:"flex gap-2",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"confirmed"}),(0,x.jsx)(tq,{color:"subtle",children:"All confirmed outputs."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kk,{variant:"value",value:t.confirmed})})]}),(0,x.jsxs)("div",{className:"flex gap-2",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"unconfirmed"}),(0,x.jsx)(tq,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kk,{variant:"value",value:t.unconfirmed})})]})]}),children:(0,x.jsx)(tq,{size:"12",weight:"medium",children:(0,m5.Vz)(t.spendable.plus(t.unconfirmed),{fixed:0})})}):(0,x.jsx)(s7,{side:"right",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,x.jsx)(tq,{size:"12",weight:"medium",children:(0,m5.Vz)(t.spendable.plus(t.unconfirmed),{fixed:0})})}):null}var _l=n(82876);function _u(e){let{title:t,children:n,route:r,onClick:i}=e,o=(0,_l.usePathname)(),a=r&&("/"===r?o===r:null==o?void 0:o.startsWith(r));return r?(0,x.jsx)(c2,{href:r,className:"no-underline",children:(0,x.jsx)(s7,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,x.jsx)(le,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}):(0,x.jsx)(s7,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,x.jsx)(le,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}function _c(e){let{walletBalanceSc:t,isSynced:n,routes:r}=e;return(0,x.jsx)(_u,{title:"Wallet",route:r.wallet.view,children:(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,x.jsx)(lt.oaN,{}),n&&t&&(0,x.jsx)(_s,{isSynced:n,balanceSc:t})]})})}function _d(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalanceSc:o,lock:a,openSettings:s,children:l}=e;return(0,x.jsx)(tG,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,x.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,x.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,x.jsx)(c3,{size:30})}),(0,x.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,x.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,x.jsx)("div",{className:"flex-1"}),(0,x.jsx)(c_,{className:"w-full"}),i&&(0,x.jsx)(_c,{routes:t,isSynced:r,walletBalanceSc:o}),(0,x.jsx)(_u,{title:"Blockchain node",route:t.node.index,children:(0,x.jsx)(lt.kBK,{})}),(0,x.jsx)(_u,{title:"App preferences",onClick:()=>s(),children:(0,x.jsx)(lt.UG6,{})}),(0,x.jsx)(_u,{title:"Lock app",onClick:a,children:(0,x.jsx)(lt.mBM,{})})]})]})})}var _f=Object.create,_h=Object.defineProperty,_p=Object.getOwnPropertyDescriptor,_m=Object.getOwnPropertyNames,_v=Object.getPrototypeOf,_g=Object.prototype.hasOwnProperty,_y=(v=null!=(m=(h=(e,t)=>{var r,i;r=e,i=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=2*536870912,i=new WeakMap,o=(t=function(e,t){return i.set(e,t),t},function(e){var o=i.get(e),a=void 0===o?e.size:on)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(a);)a=Math.floor(Math.random()*n);return t(e,a)});e.addUniqueNumber=function(e){var t=o(e);return e.add(t),t},e.generateUniqueNumber=o},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&n.amdO?define(["exports"],i):i((r="u">typeof globalThis?globalThis:r||self).fastUniqueNumbers={})},()=>(p||h((p={exports:{}}).exports,p),p.exports))())?_f(_v(m)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of _m(t))_g.call(e,n)||void 0===n||_h(e,n,{get:()=>t[n],enumerable:!(r=_p(t,n))||r.enumerable});return e})(m&&m.__esModule?v:_h(v,"default",{value:m,enumerable:!0}),m)),_x=e=>void 0!==e.method&&"call"===e.method,_b=e=>null===e.error&&"number"==typeof e.id;g=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(_x(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),n.delete(i);else throw Error("The timer is in an undefined state.")}}else if(_b(e)){let{id:i}=e,o=r.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;r.delete(i),"interval"===s?t.delete(a):n.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,_y.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),i.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,_y.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{let r=(0,_y.generateUniqueNumber)(t);return t.set(r,()=>{e(),"function"==typeof t.get(r)&&i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{let r=(0,_y.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},a=null,()=>{if(null!==a)return a;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return a=g(t),setTimeout(()=>URL.revokeObjectURL(t)),a};var _w=(typeof window>"u"?"undefined":typeof window)=="object",_E={setTimeout:_w?setTimeout.bind(window):setTimeout,clearTimeout:_w?clearTimeout.bind(window):clearTimeout,setInterval:_w?setInterval.bind(window):setInterval,clearInterval:_w?clearInterval.bind(window):clearInterval},_j={},_k=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,_j[e]=_j[e]||[],_j[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),_E.setTimeout(()=>{window.localStorage.removeItem(n)},500),_j[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=_j[this.name].indexOf(this);_j[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},__=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:_k;function _S(){return Math.random().toString(36).substring(2)}var _O=class{options;channel;token=_S();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>_E.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(n=>{let r=()=>{if(e)return;e=!0;try{_E.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=_E.setInterval(()=>{this.apply().then(()=>{this.isLeader&&r()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&r()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>_E.clearInterval(e))}catch{}}}},_C=class{channel;options;elector;token=_S();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new __(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new _O(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},_M=_w?document:null,_A=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function _P(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function _N(e){let{route:t}=e,n=(0,fb.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function _R(e){let{appName:t,title:n,navTitle:r,profile:i,size:o="4",banner:a,nav:s,actions:l,stats:u,children:c,sidenav:d,connectivityRoute:f,isSynced:h,showWallet:p,walletBalanceSc:m,routes:v,scroll:g=!0,openSettings:y}=e,{lock:w,settings:E}=(0,fb.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:o}=_N({route:n}),{settings:a}=(0,fb.Hv)(),s=(0,k8.useRouter)();(0,b.useEffect)(()=>{if(o)return;let e=!s.asPath.startsWith(r.login),n=!a.password||!i;if(e&&n){t();return}},[s,a.password,i,o])}({lock:w,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e,i=(0,b.useCallback)(()=>{n()},[n]);!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=_M,events:i=_A,timers:o,immediateEvents:a=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:v=!0,startManually:g=!1,stopOnIdle:y=!1,crossTab:x=!1,name:w="idle-timer",syncTimers:E=0,leaderElection:j=!1,disabled:k=!1}={}){let _=(0,b.useRef)(_T()),S=(0,b.useRef)(_T()),O=(0,b.useRef)(null),C=(0,b.useRef)(null),M=(0,b.useRef)(0),A=(0,b.useRef)(0),P=(0,b.useRef)(0),T=(0,b.useRef)(0),N=(0,b.useRef)(!1),R=(0,b.useRef)(!1),D=(0,b.useRef)(!1),L=(0,b.useRef)(!0),F=(0,b.useRef)(!1),V=(0,b.useRef)(null),z=(0,b.useRef)(null),I=(0,b.useRef)(e),Z=(0,b.useRef)(0);(0,b.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(n>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(n>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(I.current=e-n,Z.current=n):(I.current=e,Z.current=t),!L.current){if(g||k)return;N.current&&(K.current(null,eP),z.current&&z.current.active()),ed()}},[e,t,n,g,k]);let B=(0,b.useRef)(y);(0,b.useEffect)(()=>{B.current=y},[y]);let H=(0,b.useRef)(a),U=(0,b.useRef)(r),W=(0,b.useRef)([...new Set([...i,...a]).values()]),q=(0,b.useRef)(k);(0,b.useEffect)(()=>{q.current=k,!L.current&&(k?ep():g||ed())},[k]);let $=(0,b.useRef)(s);(0,b.useEffect)(()=>{$.current=s},[s]);let Y=(0,b.useRef)(l);(0,b.useEffect)(()=>{Y.current=l},[l]);let G=(0,b.useRef)(u);(0,b.useEffect)(()=>{G.current=u},[u]);let K=(0,b.useRef)(c);(0,b.useEffect)(()=>{K.current=c},[c]);let X=(0,b.useRef)(d);(0,b.useEffect)(()=>{X.current=d},[d]);let Q=(0,b.useRef)(f);(0,b.useEffect)(()=>{Q.current=f},[f]);let J=(0,b.useMemo)(()=>{let e=(e,t)=>X.current(e,t);return h>0?function(e,t){let n;function r(...i){n&&clearTimeout(n),n=setTimeout(()=>{e(...i),n=null},t)}return r.cancel=function(){clearTimeout(n)},r}(e,h):p>0?_P(e,p):e},[p,h]),ee=(0,b.useRef)();(0,b.useEffect)(()=>{x&&E&&(ee.current=_P(()=>{z.current.active()},E))},[x,E]);let et=()=>{null!==V.current&&(_E.clearTimeout(V.current),V.current=null)},en=(e,t=!0)=>{et(),V.current=_E.setTimeout(ea,e||I.current),t&&(C.current=_T())},er=e=>{R.current||N.current||(Y.current(e,eP),$.current({type:"active",prompted:!0},eP)),T.current=0,P.current=_T(),R.current=!0,en(Z.current,!1)},ei=()=>{et(),N.current||(G.current(null,eP),$.current({type:"idle"},eP)),N.current=!0,O.current=_T(),B.current?ec():R.current&&(P.current=0,R.current=!1)},eo=e=>{et(),(N.current||R.current)&&(K.current(e,eP),$.current({type:"active",prompted:!1},eP)),R.current=!1,P.current=0,N.current=!1,M.current+=_T()-O.current,A.current+=_T()-O.current,eu(),en()},ea=e=>{if(!N.current){J.cancel&&J.cancel();let t=_T()-C.current;if(!(I.current+Z.current0&&!R.current){z.current?z.current.prompt():er(e);return}z.current?z.current.idle():ei();return}z.current?z.current.active():eo(e)},es=e=>{if(v||C.current||(C.current=_T(),K.current(null,eP)),J(e,eP),R.current)return;if(et(),!N.current&&H.current.includes(e.type)){ea(e);return}let t=_T()-C.current;if(N.current&&!y||!N.current&&t>=I.current){ea(e);return}D.current=!1,T.current=0,P.current=0,en(),x&&E&&ee.current()},el=(0,b.useRef)(es);(0,b.useEffect)(()=>{let e=F.current;e&&ec(),m>0?el.current=_P(es,m):el.current=es,e&&eu()},[m,p,h,X,x,E]);let eu=()=>{_w&&U.current&&(F.current||(W.current.forEach(e=>{U.current.addEventListener(e,el.current,{capture:!0,passive:!0})}),F.current=!0))},ec=(e=!1)=>{_w&&U.current&&(F.current||e)&&(W.current.forEach(e=>{U.current.removeEventListener(e,el.current,{capture:!0})}),F.current=!1)},ed=(0,b.useCallback)(e=>!q.current&&(et(),eu(),N.current=!1,R.current=!1,D.current=!1,T.current=0,P.current=0,z.current&&!e&&z.current.start(),en(),!0),[V,N,q,I,z]),ef=(0,b.useCallback)(e=>!q.current&&(et(),eu(),S.current=_T(),M.current+=_T()-O.current,A.current+=_T()-O.current,M.current=0,N.current=!1,R.current=!1,D.current=!1,T.current=0,P.current=0,z.current&&!e&&z.current.reset(),g||en(),!0),[V,N,I,g,q,z]),eh=(0,b.useCallback)(e=>!q.current&&(et(),eu(),(N.current||R.current)&&eo(),N.current=!1,R.current=!1,D.current=!1,T.current=0,P.current=0,S.current=_T(),z.current&&!e&&z.current.activate(),en(),!0),[V,N,R,q,I,z]),ep=(0,b.useCallback)((e=!1)=>!q.current&&!D.current&&(T.current=eE(),D.current=!0,ec(),et(),z.current&&!e&&z.current.pause(),!0),[V,q,z]),em=(0,b.useCallback)((e=!1)=>!q.current&&!!D.current&&(D.current=!1,R.current||eu(),N.current||en(T.current),P.current&&(P.current=_T()),z.current&&!e&&z.current.resume(),!0),[V,I,q,T,z]),ev=(0,b.useCallback)((e,t)=>(z.current?(t&&Q.current(e,eP),z.current.message(e)):t&&Q.current(e,eP),!0),[f]),eg=(0,b.useCallback)(()=>N.current,[N]),ey=(0,b.useCallback)(()=>R.current,[R]),ex=(0,b.useCallback)(()=>z.current?z.current.isLeader:null,[z]),eb=(0,b.useCallback)(()=>z.current?z.current.isLastActive:null,[z]),ew=(0,b.useCallback)(()=>z.current?z.current.token:null,[z]),eE=(0,b.useCallback)(()=>{if(D.current)return T.current;let e=Math.floor((T.current?T.current:Z.current+I.current)-(C.current?_T()-C.current:0));return e<0?0:Math.abs(e)},[I,Z,R,T,C]),ej=(0,b.useCallback)(()=>Math.round(_T()-S.current),[S]),ek=(0,b.useCallback)(()=>Math.round(_T()-_.current),[_]),e_=(0,b.useCallback)(()=>O.current?new Date(O.current):null,[O]),eS=(0,b.useCallback)(()=>C.current?new Date(C.current):null,[C]),eO=(0,b.useCallback)(()=>N.current?Math.round(_T()-O.current+M.current):Math.round(M.current),[O,M]),eC=(0,b.useCallback)(()=>N.current?Math.round(_T()-O.current+A.current):Math.round(A.current),[O,A]),eM=(0,b.useCallback)(()=>{let e=Math.round(ej()-eO());return e>=0?e:0},[O,M]),eA=(0,b.useCallback)(()=>{let e=Math.round(ek()-eC());return e>=0?e:0},[O,M]);(0,b.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(_E.setTimeout=o.setTimeout,_E.clearTimeout=o.clearTimeout,_E.setInterval=o.setInterval,_E.clearInterval=o.clearInterval);let e=()=>{z.current&&z.current.close(),J.cancel&&J.cancel(),et(),ec(!0)};return _w&&window.addEventListener("beforeunload",e),()=>{_w&&window.removeEventListener("beforeunload",e),z.current&&z.current.close(),J.cancel&&J.cancel(),et(),ec(!0)}},[]),(0,b.useEffect)(()=>{z.current&&z.current.close(),x?z.current=new _C({channelName:w,leaderElection:j,onPrompt:()=>{er()},onIdle:()=>{ei()},onActive:()=>{eo()},onMessage:e=>{Q.current(e,eP)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):z.current=null},[x,w,j,Y,G,K,Q,ed,ef,ep,em]),(0,b.useEffect)(()=>{L.current||(et(),ec(!0)),g||k||(v?ed():eu())},[g,v,k,L]),(0,b.useEffect)(()=>{if(!L.current){let e=[...new Set([...i,...a]).values()];ec(),W.current=e,U.current=r,H.current=a,g||k||(v?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(a),L,k,g,v]),(0,b.useEffect)(()=>{L.current&&(L.current=!1)},[L]);let eP={message:ev,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:ex,isLastActiveTab:eb,getTabId:ew,getRemainingTime:eE,getElapsedTime:ej,getTotalElapsedTime:ek,getLastIdleTime:e_,getLastActiveTime:eS,getIdleTime:eO,getTotalIdleTime:eC,getActiveTime:eM,getTotalActiveTime:eA,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,Y.current=e},setOnIdle:e=>{u=e,G.current=e},setOnActive:e=>{c=e,K.current=e},setOnAction:e=>{d=e,X.current=e},setOnMessage:e=>{f=e,Q.current=e}}}({disabled:!t,onIdle:i,timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!E.autoLock,lockTimeout:E.autoLockTimeout,lock:w}),(0,x.jsxs)(_o,{appName:t,title:n,children:[(0,x.jsx)(_t,{}),(0,x.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,x.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,x.jsx)(_d,{routes:v,profile:i,openSettings:y,lock:w,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,x.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,x.jsx)(k9,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,x.jsx)(l6,{className:"z-0",children:(0,x.jsx)(lk,{size:o,pad:!1,children:(0,x.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,x.jsx)(lk,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function _D(e,t,n,r){let[i,o]=(0,b.useState)();return(0,b.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,b.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}function _L(e){let{filtered:t}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(lt.Hb6,{className:"scale-[200%]"})}),(0,x.jsx)(tq,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}(0,b.createContext)(null).Consumer;let _F=[];function _V(e){let{open:t,onOpenChange:n,dismissOne:r,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=_D(o.data,o.isValidating,o.error,_F),[u,c]=(0,b.useState)(),d=(0,b.useMemo)(()=>{var e;return(null===(e=o.data)||void 0===e?void 0:e.filter(e=>!u||e.severity===u))||[]},[o.data,u]),f=(0,b.useCallback)(e=>{let t=Object.keys(e).sort((e,t)=>{let n=a.indexOf(e),r=a.indexOf(t);return -1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r});return t},[a]);return(0,x.jsx)(l9,{open:t,onOpenChange:e=>{n(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsxs)(cU,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,x.jsxs)("div",{className:"flex gap-1",children:[(0,x.jsx)(le,{variant:"info"===u?"accent":"gray",onClick:()=>"info"===u?c(void 0):c("info"),children:"info"}),(0,x.jsx)(le,{variant:"warning"===u?"accent":"gray",onClick:()=>"warning"===u?c(void 0):c("warning"),children:"warning"}),(0,x.jsx)(le,{variant:"error"===u?"accent":"gray",onClick:()=>"error"===u?c(void 0):c("error"),children:"error"}),(0,x.jsx)(le,{variant:"critical"===u?"accent":"gray",onClick:()=>"critical"===u?c(void 0):c("critical"),children:"critical"}),(0,x.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,x.jsxs)(le,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,x.jsx)(lt.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,x.jsxs)("div",{className:(0,ea.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,x.jsx)(_L,{filtered:!1}),"error"===l&&(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center justify-center h-[100px]",_Z()),children:(0,x.jsx)(tq,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,x.jsx)(_I,{}),!l&&(0,x.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,x.jsxs)("div",{className:(0,ea.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,x.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,x.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,x.jsxs)(tq,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,x.jsx)(le,{tip:"Dismiss alert",onClick:()=>r(e.id),children:(0,x.jsx)(lt.NlZ,{})})]}),(0,x.jsxs)("div",{className:"flex justify-between w-full",children:[(0,x.jsx)(tq,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,x.jsx)(tq,{color:"contrast",ellipsis:!0,children:(0,m5.rN)(e.timestamp,{timeStyle:"medium"})})]}),f(e.data).map(t=>{var n;let r=e.data[t];if(null==r||"object"==typeof r&&!Object.keys(r).length)return null;let i=(null==s?void 0:null===(n=s[t])||void 0===n?void 0:n.render)||_z;return(0,x.jsx)(i,{label:t,value:r},t)})]},e.id)):(0,x.jsx)(_L,{filtered:!!u})})]})})}function _z(e){let{label:t,value:n}=e;return(0,x.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,x.jsx)(tq,{color:"subtle",children:t}),(0,x.jsx)(tq,{color:"contrast",ellipsis:!0,children:String(n)})]})}function _I(){return(0,x.jsx)(x.Fragment,{children:kO()(10,e=>(0,x.jsx)("div",{className:(0,ea.cx)("relative flex gap-4 p-3.5",_Z()),children:(0,x.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,x.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,x.jsx)(fP,{className:"w-[160px] h-[20px]"}),(0,x.jsx)(fP,{className:"w-[160px] h-[20px]"})]}),(0,x.jsx)(fP,{className:"w-[100px] h-[20px]"}),(0,x.jsx)(fP,{className:"w-full h-[120px]"})]})},e))})}function _Z(){return(0,ea.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}var _B=n(89644),_H=n.n(_B),_U=n(63955),_W=n(45861),_q=n.n(_W);function _$(e){let{form:t,field:n,name:r}=e,i=t.watch(r),o=t.formState.touchedFields[r]&&!!t.formState.errors[r],{ref:a,onChange:s,onBlur:l}=t.register(r,n.validation),u=(0,b.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,b.useCallback)((e,i)=>{var o;t.setValue(r,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(o=n.trigger)||void 0===o||o.forEach(e=>t.trigger(e))},[r,t,n]);return{ref:a,name:r,value:i,error:o,onBlur:l,onChange:u,setValue:c}}function _Y(e){return(0,b.useCallback)(t=>{kc(_q()(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", "))},[e])}function _G(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:o,spellCheck:a,state:s=!0,group:l=!0}=e,u=r[t],{ref:c,onChange:d,onBlur:f,error:h}=_$({name:t,form:n,field:u}),p=(0,x.jsx)(d3,{ref:c,name:t,placeholder:u.placeholder,size:i,autoComplete:o,type:u.type,readOnly:u.readOnly,spellCheck:a,onClick:u.onClick,state:s?h?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:d,onBlur:f});return l?(0,x.jsx)(kX,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var _K=n(829),_X=n.n(_K);async function _Q(e){let{api:t,route:n,password:r}=e;try{return await _H().get("".concat(t,"/api").concat(n),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(r))},timeout:1e4}),{}}catch(n){let e=n.code,t=n.response;if((null==t?void 0:t.status)===504)return{error:"Error, check that daemon is running"};if((null==t?void 0:t.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===e)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function _J(e){let{appName:t,route:n,routes:r}=e,i=(0,k8.useRouter)(),{settings:o,setSettings:a}=(0,fb.Hv)(),{allowCustomApi:s}=o,l=(0,b.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,_U.cI)({mode:"onBlur",defaultValues:l});(0,b.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,b.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await _Q({api:t,route:n,password:e.password});c?u.setError("password",{message:c}):(a({api:t,password:e.password,recentApis:{...o.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):r.home),u.reset(l))},[s,u,i,r,o,a,l,n]),d=function(e){let{allowCustomApi:t}=e;return{api:{type:"text",title:"API",placeholder:"http://127.0.0.1:9980",validation:{validate:{required:e=>!t||!!e||"API is required",url:e=>{try{let t=new URL(e);return!!t.protocol&&!!t.host||"invalid API URL"}catch(e){return"invalid API URL"}},https:e=>{let t="https:"===window.location.protocol;return!t||t&&e.startsWith("https")||"API must use HTTPS"}}}},password:{type:"password",title:"Password",placeholder:"Enter password",validation:{required:"password is required"}}}}({allowCustomApi:s}),f=_Y(d),h=u.formState.errors.api||u.formState.errors.password,p=_X()(Object.entries(o.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,x.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,x.jsx)(tG,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,x.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(tq,{font:"mono",weight:"bold",size:"20",children:t}),(0,x.jsx)(cL,{trigger:(0,x.jsx)(le,{icon:"hover",variant:"ghost",children:(0,x.jsx)(lt.shL,{})}),children:(0,x.jsx)(cF,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,x.jsx)(c_,{className:"w-full mt-2 mb-3"}),(0,x.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,x.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,x.jsxs)(lE,{children:[(0,x.jsx)(_G,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,x.jsx)(cL,{trigger:(0,x.jsx)(le,{type:"button",children:(0,x.jsx)(lt.wGX,{})}),children:p.map(e=>(0,x.jsx)(cF,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,x.jsx)(_G,{name:"password",form:u,fields:d,group:!1}),h&&(0,x.jsx)(tq,{size:"14",color:"red",children:h.message}),(0,x.jsx)(kQ,{size:"small",form:u,children:"Unlock"})]})})]})})})}var _0=n(63397),_1=n(24511);let _2={address:"",siacoin:void 0,includeFee:!1},_4=_1.Ry().shape({address:_1.Z_().required("Required"),siacoin:_1.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(fv())(e||0).isZero())});function _3(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,o=n.plus(r);return(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,x.jsx)(kE,{value:t,type:"address"})]}),(0,x.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kk,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,x.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kk,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,x.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kk,{size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,x.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,x.jsx)(tq,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,x.jsx)(kE,{value:i,type:"transaction"})]})]})}function _5(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),o=n.length-1;return(0,x.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,x.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,x.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/o*100,"%")}}),n.map((e,n)=>{let{id:a,label:s}=e,l=t===a,u=i>=n,c=n===o,d=0===n,f=u&&i!==o;return(0,x.jsxs)("div",{className:(0,ea.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(n/o*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&r(a)},children:[(0,x.jsx)(tq,{color:l?"contrast":"verySubtle",className:(0,ea.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,x.jsx)("div",{className:(0,ea.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,x.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},a)})]})}function _6(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(_3,{address:t,siacoin:n,fee:r,transactionId:i}),(0,x.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(lt.Z$8,{})}),(0,x.jsx)(tq,{children:"Transaction successfully broadcasted."})]})]})}let _8=(0,m5.qN)(.00393),_7={address:"",siacoin:new(fv())(0),includeFee:!1};function _9(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:o}=e,[a,s]=(0,b.useState)("setup"),[l,u]=(0,b.useState)(),[c,d]=(0,b.useState)(_7),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,_0.TA)({initialValues:_2,validationSchema:_4,onSubmit:async e=>{if(!e.siacoin)return;let o=e.includeFee?(0,m5.qN)(e.siacoin).minus(n):(0,m5.qN)(e.siacoin);if(t){if(t.isLessThan((0,m5.qN)(e.siacoin).plus(n))){i.setStatus({error:"Not enough funds in wallet."});return}i.setStatus({}),r({includeFee:e.includeFee,address:e.address,siacoin:o})}}}),o=(0,m5.qN)(i.values.siacoin||0),a=(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(kJ,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,x.jsx)(kJ,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,x.jsxs)("div",{className:"flex items-center",children:[(0,x.jsx)(fW,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,x.jsx)(f_,{children:"Include or exclude the network fee from the above transaction value."}),(0,x.jsx)("div",{className:"flex flex-1"})]}),(0,x.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,x.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",children:"Network fee"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kk,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,x.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,x.jsx)(tq,{color:"verySubtle",children:"Total"}),(0,x.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,x.jsx)(kk,{size:"14",value:i.values.includeFee?o:o.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:a}}({balance:i,fee:_8,onComplete:e=>{d(e),s("confirm")}}),h=function(e){let{send:t,formData:n,fee:r,onConfirm:i}=e,{address:o,siacoin:a}=n||{},s=(0,_0.TA)({initialValues:{},onSubmit:async()=>{let{transactionId:e,error:n}=await t({address:o,sc:a});if(n){s.setStatus({error:n});return}i({transactionId:e})}}),l=(0,x.jsx)("div",{className:"flex flex-col gap-4",children:(0,x.jsx)(_3,{address:o,siacoin:a,fee:r})});return{form:l,formik:s}}({fee:_8,formData:c,send:o,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,b.useMemo)(()=>"setup"===a?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===a?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[a,f,h]);return(0,x.jsx)(l9,{trigger:t,open:n,onOpenChange:e=>{e||(f.formik.resetForm(),h.formik.resetForm(),s("setup")),r(e)},title:"Send siacoin",onSubmit:p?p.formik.handleSubmit:void 0,controls:p&&(0,x.jsx)("div",{className:"flex flex-col gap-1",children:(0,x.jsx)(k5,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(_5,{onChange:e=>s(e),activeStep:a,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,x.jsx)(c_,{className:"w-full mt-4"}),"setup"===a&&f.form,"confirm"===a&&h.form,"done"===a&&(0,x.jsx)(_6,{data:c,fee:_8,transactionId:l})]})})}let Se="[a-fA-F\\d:]",St=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(Se,")|(?<=").concat(Se,")(?=\\s|$))"):"",Sn="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",Sr="[a-fA-F\\d]{1,4}",Si="\n(?:\n(?:".concat(Sr,":){7}(?:").concat(Sr,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(Sr,":){6}(?:").concat(Sn,"|:").concat(Sr,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(Sr,":){5}(?::").concat(Sn,"|(?::").concat(Sr,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(Sr,":){4}(?:(?::").concat(Sr,"){0,1}:").concat(Sn,"|(?::").concat(Sr,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(Sr,":){3}(?:(?::").concat(Sr,"){0,2}:").concat(Sn,"|(?::").concat(Sr,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(Sr,":){2}(?:(?::").concat(Sr,"){0,3}:").concat(Sn,"|(?::").concat(Sr,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(Sr,":){1}(?:(?::").concat(Sr,"){0,4}:").concat(Sn,"|(?::").concat(Sr,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(Sr,"){0,5}:").concat(Sn,"|(?::").concat(Sr,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),So=new RegExp("(?:^".concat(Sn,"$)|(?:^").concat(Si,"$)")),Sa=new RegExp("^".concat(Sn,"$")),Ss=new RegExp("^".concat(Si,"$")),Sl=e=>e&&e.exact?So:RegExp("(?:".concat(St(e)).concat(Sn).concat(St(e),")|(?:").concat(St(e)).concat(Si).concat(St(e),")"),"g");Sl.v4=e=>e&&e.exact?Sa:RegExp("".concat(St(e)).concat(Sn).concat(St(e)),"g"),Sl.v6=e=>e&&e.exact?Ss:RegExp("".concat(St(e)).concat(Si).concat(St(e)),"g");let Su=()=>RegExp("^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|((([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]).)+([A-Za-z|[A-Za-z][A-Za-z0-9‌​-]*[A-Za-z0-9])))$","g"),Sc={port:9981,ip:""},Sd=_1.Ry().shape({port:_1.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:_1.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>Su().test(e||""))});function Sf(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,o=(0,_0.TA)({initialValues:Sc,validationSchema:Sd,onSubmit:async(e,t)=>{let n="".concat(e.ip,":").concat(e.port),o=await r(n);if(o.error){let e=o.error.replace("invalid peer address: address ".concat(n,":"),"");t.setStatus({error:e})}else kl("Connected to peer"),t.resetForm(),i(!1)}});return(0,x.jsx)(l9,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||o.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{size:"14",children:"Connect to a peer by IP address."}),(0,x.jsx)("form",{onSubmit:o.handleSubmit,children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(kJ,{formik:o,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,x.jsx)(kJ,{formik:o,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,x.jsx)(k5,{formik:o,size:"medium",children:"Connect"})]})})]})})}function Sh(e){var t;let{id:n,transaction:r,trigger:i,open:o,onOpenChange:a}=e;return(0,x.jsx)(l9,{title:kv((null==r?void 0:r.txType)?kB()(kw(r.txType)):"Transaction",n,16),trigger:i,open:o,onOpenChange:a,contentVariants:{className:"w-[800px]"},children:r?(0,x.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,x.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Inflow"}),(0,x.jsx)(kk,{value:new(fv())((null==r?void 0:r.inflow)||0)})]}),(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Outflow"}),(0,x.jsx)(kk,{value:new(fv())((null==r?void 0:r.outflow)||0).negated()})]}),(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Miner fee"}),(0,x.jsx)(kk,{value:new(fv())((null==r?void 0:null===(t=r.raw.minerFees)||void 0===t?void 0:t.reduce((e,t)=>e.plus(t),new(fv())(0)))||0)})]}),(0,x.jsx)("div",{className:"flex-1"}),(0,x.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,x.jsx)(tq,{children:"Timestamp"}),(0,x.jsx)(tq,{children:(0,m5.rN)((null==r?void 0:r.timestamp)||0,{timeStyle:"short"})})]})]}),(0,x.jsx)(ly,{children:JSON.stringify(null==r?void 0:r.raw,null,2)})]}):(0,x.jsx)(tq,{children:"Could not find transaction in wallet"})})}_1.Ry().shape({address:_1.Z_().required("Required"),description:_1.Z_().required("Required"),index:_1.Rx().integer().required("Required")});var Sp=n(38001);function Sm(e){let{title:t,description:n,address:r}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,x.jsx)(cU,{size:"20",font:"mono",children:t}),n&&(0,x.jsx)(tq,{children:n}),(0,x.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,x.jsx)("div",{className:"absolute",children:(0,x.jsx)(Sp.Z,{size:200,value:r})})}),(0,x.jsx)(kE,{type:"address",value:r})]})}function Sv(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:o}=e;return(0,x.jsx)(l9,{title:kv("Address",km(t)||"",16),trigger:r,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,x.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,x.jsx)(Sm,{address:t||""}):(0,x.jsx)(tq,{children:"Could not retreive wallet address"})})})}function Sg(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{color:"amber",children:(0,x.jsx)(lt.qdM,{})}),(0,x.jsxs)(tq,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{color:"amber",children:(0,x.jsx)(lt.qdM,{})}),(0,x.jsxs)(tq,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let Sy={docs:{index:"https://docs.sia.tech",sia101:"https://docs.sia.tech/get-started-with-sia/sia101",renterd:"https://docs.sia.tech/renting/about-renting",hostd:"https://docs.sia.tech/hosting/about-hosting-on-sia",walletd:"https://docs.sia.tech/wallet/wallet-overview",renting:"https://docs.sia.tech/renting/about-renting",wallet:"https://docs.sia.tech/wallet/wallet-overview",hosting:"https://docs.sia.tech/hosting/about-hosting-on-sia",mining:"https://docs.sia.tech/mining/about-mining-on-sia",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://api.sia.tech",siaui:"https://docs.sia.tech/your-sia-wallet/sia-ui-faqs",brand:"https://docs.sia.tech/sia-integrations/sia-brand-guidelines"},website:{index:"https://sia.tech",tos:"https://sia.tech/terms-of-service",privacy:"https://sia.tech/privacy-policy"},github:{index:"https://github.com/SiaFoundation",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://github.com/SiaFoundation/siad",renterd:"https://github.com/SiaFoundation/renterd",walletd:"https://github.com/SiaFoundation/walletd",hostd:"https://github.com/SiaFoundation/hostd",siaui:"https://gitlab.com/NebulousLabs/Sia-UI"},discord:"https://sia.tech/discord"};function Sx(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,fb.Hv)();return(0,x.jsx)(fC,{disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:n.map(e=>{let{id:t,label:n}=e;return(0,x.jsx)(fM,{value:t,children:n},t)})})}function Sb(e){let{open:t,onOpenChange:n,securityEl:r}=e,{settings:i,setSettings:o,gpu:a}=(0,fb.Hv)();return(0,x.jsx)(l9,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,x.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,x.jsx)("div",{className:"flex flex-col gap-4",children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Display"}),(0,x.jsx)(t$,{size:"14",children:"Configure visual and locale display preferences."}),(0,x.jsx)(lr,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(lt.RdX,{})}),(0,x.jsx)(cU,{size:"20",className:"flex-1",children:"Currency"}),(0,x.jsx)(Sx,{})]}),(0,x.jsx)(t$,{size:"14",children:"Select a currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,x.jsx)(lr,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(lt.RdX,{})}),(0,x.jsx)(cU,{size:"20",className:"flex-1",children:"Theme"}),(0,x.jsx)(pp,{})]}),(0,x.jsx)(t$,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),(0,x.jsx)(lr,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(lt.RdX,{})}),(0,x.jsx)(cU,{size:"20",className:"flex-1",children:"GPU"}),(0,x.jsx)(fW,{disabled:!a.canGpuRender,checked:a.canGpuRender&&a.isGpuEnabled,onCheckedChange:a.setIsGpuEnabled,size:"medium"})]}),(0,x.jsxs)(t$,{size:"14",children:["Enable features that require a GPU."," ",a.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,x.jsx)(c_,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Security"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{size:"14",children:"Configure security preferences."}),(0,x.jsx)(lr,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(lt.RdX,{})}),(0,x.jsx)(cU,{size:"20",className:"flex-1",children:"Lock app"}),(0,x.jsx)(fW,{size:"medium",checked:i.autoLock,onCheckedChange:e=>o({autoLock:e})}),(0,x.jsxs)(fC,{disabled:!i.autoLock,value:String(i.autoLockTimeout),onChange:e=>{o({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,x.jsx)(fM,{value:EA(5),children:"5 minutes"}),(0,x.jsx)(fM,{value:EA(10),children:"10 minutes"}),(0,x.jsx)(fM,{value:EA(20),children:"20 minutes"}),(0,x.jsx)(fM,{value:EA(30),children:"30 minutes"}),(0,x.jsx)(fM,{value:EA(60),children:"1 hour"})]})]}),(0,x.jsx)(t$,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,x.jsx)(c_,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Privacy"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. All third-party APIs are optional and can be toggled on or off."}),(0,x.jsx)(lr,{children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,x.jsx)(tq,{children:(0,x.jsx)(lt.RdX,{})}),(0,x.jsx)(cU,{size:"20",className:"flex-1",children:"Sia Central"}),(0,x.jsx)(fW,{size:"medium",checked:i.siaCentral,onCheckedChange:e=>o({siaCentral:e})})]}),(0,x.jsx)(t$,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,x.jsx)(c_,{className:"w-full"}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,x.jsx)(tq,{size:"16",weight:"bold",children:"Help"}),(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,x.jsx)(t$,{size:"14",children:"Find information about the Sia software at our website, documentation site, and on Github. Join our active Discord community for discussion and help troubleshooting issues."}),(0,x.jsxs)("div",{className:"flex gap-4",children:[(0,x.jsxs)(c2,{href:Sy.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(lt.lq1,{}),"Website"]}),(0,x.jsxs)(c2,{href:Sy.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(lt.RdX,{}),"Docs"]}),(0,x.jsxs)(c2,{href:Sy.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(lt.Sfn,{}),"About"]}),(0,x.jsxs)(c2,{href:Sy.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,x.jsx)(lt.b47,{}),"Discord"]})]})]})]})]})})}function Sw(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,x.jsx)(s7,{content:(0,x.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,x.jsxs)("div",{className:"flex gap-2",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"spendable"}),(0,x.jsx)(tq,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kk,{variant:"value",value:t.spendable})})]}),(0,x.jsxs)("div",{className:"flex gap-2",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"confirmed"}),(0,x.jsx)(tq,{color:"subtle",children:"All confirmed outputs."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kk,{variant:"value",value:t.confirmed})})]}),(0,x.jsxs)("div",{className:"flex gap-2",children:[(0,x.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,x.jsx)(tq,{children:"unconfirmed"}),(0,x.jsx)(tq,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,x.jsx)("div",{className:"flex justify-end",children:(0,x.jsx)(kk,{variant:"value",value:t.unconfirmed})})]})]}),children:(0,x.jsx)(tG,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,x.jsx)(tq,{size:"12",weight:"semibold",children:(0,m5.Vz)(t.spendable.plus(t.unconfirmed))})})}):(0,x.jsx)(s7,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,x.jsxs)(tG,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,x.jsx)(tq,{color:"amber",children:(0,x.jsx)(lt.qdM,{className:""})}),(0,x.jsx)(tq,{size:"12",weight:"semibold",children:(0,m5.Vz)(t.spendable.plus(t.unconfirmed))})]})}):null}function SE(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,x.jsxs)(x.Fragment,{children:[o&&(0,x.jsx)(Sw,{isSynced:t&&n,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(r,"%), balance may be incorrect."),balanceSc:o}),s&&(0,x.jsxs)(le,{size:"small",onClick:s,children:[(0,x.jsx)(lt.xHM,{}),"Receive"]}),(0,x.jsxs)(le,{size:"small",variant:"accent",onClick:a,children:[(0,x.jsx)(lt.rW0,{}),"Send"]})]})}function Sj(e,t){if(!e||!e.length)return[];let n=Object.keys(EM()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let r=[];return"delta"===t?e.forEach((t,i)=>{let o={...t};0!==i&&(n.forEach(n=>{let r=t[n],a=e[i-1][n];o[n]=r-a}),r.push(o))}):r=e,r}function Sk(e,t){return"all"===e?{start:new Date(2022,1,1).getTime(),end:t}:{start:t-ET(Number(e)),end:t}}let S_={"5m":e=>{let t=e+EA(5);return"5m interval from ".concat((0,m5.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,m5.rN)(t,{timeStyle:"short",hour12:!1}))},"15m":e=>{let t=e+EA(15);return"15m interval from ".concat((0,m5.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,m5.rN)(t,{timeStyle:"short",hour12:!1}))},hourly:e=>{let t=e+EP(1);return"Hour interval from ".concat((0,m5.rN)(e,{timeStyle:"short",hour12:!1})," to ").concat((0,m5.rN)(t,{timeStyle:"short",hour12:!1}))},daily:e=>{let t=e+EP(24);return"Day interval from ".concat((0,m5.rN)(e)," to ").concat((0,m5.rN)(t))},weekly:e=>{let t=e+ET(7);return"Week interval from ".concat((0,m5.rN)(e)," to ").concat((0,m5.rN)(t))},monthly:e=>{let t=e+ET(30);return"Month interval from ".concat((0,m5.rN)(e)," to ").concat((0,m5.rN)(t))},yearly:e=>{let t=e+ET(365);return"Year interval from ".concat((0,m5.rN)(e)," to ").concat((0,m5.rN)(t))},default:e=>"".concat((0,m5.rN)(e))};function SS(e){return S_[e]||S_.default}function SO(e){if(!e||!e.length)return{};let t=Object.keys(EM()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let n=t.reduce((t,n)=>({...t,[n]:function(e,t){var n,r;let i=(null===(n=t[0])||void 0===n?void 0:n[e])||0,o=(null===(r=t[t.length-1])||void 0===r?void 0:r[e])||0,a=t.reduce((t,n)=>t+(n[e]||0),0);return SC({total:a,start:i,end:o,count:t.length})}(n,e)}),{});return{...n,total:function(e,t){let n=SM(e,t[0]),r=SM(e,t[t.length-1]),i=t.reduce((t,n)=>t+SM(e,n),0);return SC({total:i,start:n,end:r,count:t.length})}(t,e)}}function SC(e){let{total:t,start:n,end:r,count:i}=e,o=r-n;return{total:t,diff:o,change:0===n?void 0:o/n*100,latest:r,average:t/i}}function SM(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function SA(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,pf.F)(),o=(0,b.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:m3.accent[800]}}:{sc:{label:"siacoin",color:m3.accentdark[800]}},[i]),a=(0,b.useMemo)(()=>{let e=Sj(t,"none"),i=SO(t);return{data:e,stats:i,config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,m5.Vz)(e),formatTimestamp:SS("default"),disableAnimations:!0},chartType:r,isLoading:n}},[t,n,o,r]);return(0,x.jsx)("div",{className:"relative",children:(0,x.jsx)(EF,{id:"balance",height:200,allowConfiguration:!1,data:a.data,config:a.config,chartType:a.chartType})})}function SP(e){let{peers:t,connectPeer:n}=e;return(0,x.jsx)(kq,{title:"Peers",actions:(0,x.jsx)(le,{onClick:n,children:"Connect"}),entities:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function ST(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:o}=e;return(0,x.jsxs)("div",{className:(0,ea.cx)("flex gap-1.5 items-center",r?"opacity-100":"opacity-50",i?"cursor-pointer":"cursor-auto",i&&(r?"hover:opacity-90":"hover:opacity-60")),onClick:()=>i&&i(!r),children:[o&&(0,x.jsx)("div",{className:"relative top-px",children:(0,x.jsx)(fN,{style:{backgroundColor:o}})}),(0,x.jsx)(tq,{size:t,children:n})]})}var SN=n(92762);let SR={total:"total",average:"average",latest:"latest"};function SD(e){let{category:t,label:n,color:r,sc:i,value:o,extendedSuffix:a,format:s=e=>e.toFixed(2),defaultMode:l,enabledModes:u=["total","average","latest"],isLoading:c,showChange:d=!0}=e,[f,h]=(0,SN.Z)("v0/datum/".concat(t,"/").concat(n),{defaultValue:l});return(0,x.jsx)(k$,{isLoading:c,label:(0,x.jsx)(ST,{label:n,color:r}),actions:(0,x.jsx)(fC,{onChange:e=>h(e.currentTarget.value),defaultValue:f,children:u.map(e=>(0,x.jsx)(fM,{value:e,children:SR[e]},e))}),sc:(null==i?void 0:i[f])!==void 0?new(fv())(i[f]):void 0,extendedSuffix:a,value:(null==o?void 0:o[f])!==void 0&&s?s(o[f]):void 0,comment:i?(0,x.jsxs)("div",{className:"flex items-center gap-4",children:[(0,x.jsx)(kk,{tooltip:"Net change over time range:",value:new(fv())(i.diff)}),d&&void 0!==i.change&&(0,x.jsx)(s7,{content:"Percent change over time range",children:(0,x.jsxs)(tq,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[i.change.toFixed(2),"%"]})})]}):o&&(0,x.jsxs)("div",{className:"flex items-center gap-4",children:[(0,x.jsx)(k_,{tooltip:"Net change over time range:",format:e=>s(e.toNumber()),value:new(fv())(o.diff)}),d&&void 0!==o.change&&(0,x.jsx)(s7,{content:"Percent change over time range",children:(0,x.jsxs)(tq,{size:"14",weight:"semibold",font:"mono",ellipsis:!0,color:"verySubtle",children:[o.change.toFixed(2),"%"]})})]})})}function SL(e){let{children:t,bleed:n}=e;return(0,x.jsx)("div",{className:(0,ea.cx)(n?"-mx-5 overflow-hidden":""),children:(0,x.jsx)(l6,{children:(0,x.jsx)("div",{className:(0,ea.cx)("flex gap-4 py-4",n?"px-5 w-fit":""),children:t})})})}function SF(e){return 4320*e}function SV(e){return e/16666666666666669e-22}function Sz(e){return e/4320}function SI(e,t){return new Date().getTime()+SV(t-e)}function SZ(e){let{children:t,variant:n,align:r}=e;return(0,x.jsx)("div",{className:"relative",style:{top:"primary"===n?"6px":void 0,left:"start"===r?"0px":void 0,right:"end"===r?"0px":void 0},children:(0,x.jsx)(tq,{size:"10",color:"primary"===n?"contrast":"verySubtle",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function SB(e){let{date:t,align:n,variant:r}=e;return t?(0,x.jsx)(SZ,{variant:r,align:n,children:(0,m5.rN)(t)}):null}function SH(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,x.jsx)(SZ,{variant:r,align:n,children:t.toLocaleString()}):null}function SU(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:o,color:a,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!o)return null;let d=r.endHeight-r.startHeight,f=SV(d),h=SI(n,r.startHeight),p=SI(n,i),m=SI(n,o),v=(p-h)/f,g=(m-h)/f;return(0,x.jsxs)("div",{className:(0,ea.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:SW(v),width:SW(g-v)},children:[(0,x.jsx)("div",{className:(0,ea.cx)("z-0 absolute w-full h-full","rounded-md","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10"),style:{width:"calc(100% + 8px)",left:"-4px"}}),(0,x.jsx)("div",{className:(0,ea.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-blue-500/50 dark:border-blue-500/50"]:[],"green"===a?["bg-green-300 dark:bg-green-300","group-hover:bg-green-400 dark:group-hover:bg-green-400","border-green-500/50 dark:border-green-500/50"]:[],"amber"===a?["bg-amber-300 dark:bg-amber-300","group-hover:bg-amber-400 dark:group-hover:bg-amber-400","border-amber-500/50 dark:border-amber-500/50"]:[])}),(0,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:SW(1-g)}:{left:SW(v)},children:[(0,x.jsx)(SH,{blockHeight:i,align:"start",variant:"primary"}),(0,x.jsx)(SZ,{variant:"primary",children:t}),(0,x.jsx)(SH,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,x.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:SW(1-g)}:{left:SW(v)},children:[(0,x.jsx)(SB,{date:p,align:"start",variant:"secondary"}),(0,x.jsx)(SB,{date:m,align:"start",variant:"secondary"})]}),(0,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:SW(1-g)}:{left:SW(v)},children:[(0,x.jsx)(SB,{date:p,align:"start",variant:"secondary"}),(0,x.jsx)(SB,{date:m,align:"start",variant:"secondary"})]})]})}function SW(e){return"".concat(100*e,"%")}function Sq(e){let{currentHeight:t,eventHeight:n,range:r,label:i,bottomLabel:o,color:a,className:s,unconfirmedPing:l=!0}=e,u=!!n&&n>t,c=n&&!u&&t-n<6,d=r.endHeight-r.startHeight,f=SV(d),h=SI(t,r.startHeight),p=n?SI(t,n):0;return n?(0,x.jsx)("div",{className:(0,ea.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",s),style:{left:"".concat(100*(p?(p-h)/f:0),"%")},children:(0,x.jsxs)("div",{className:(0,ea.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[l&&c&&(0,x.jsx)("div",{className:(0,ea.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,x.jsx)("div",{className:(0,ea.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,x.jsx)("div",{className:(0,ea.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===a?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===a?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===a?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,x.jsx)(SH,{blockHeight:n,align:"start",variant:"primary"}),(0,x.jsx)(SZ,{variant:"primary",children:i})]}),(0,x.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,x.jsx)(SB,{date:p,align:"start",variant:"secondary"}),o&&(0,x.jsx)(SZ,{variant:"secondary",children:o})]})]})}):null}function S$(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:o,revisionHeight:a,proofHeight:s,range:l}=e,u=t-n<6;return(0,x.jsx)("div",{className:"group/main relative w-full",children:(0,x.jsx)("div",{className:"relative py-6",children:(0,x.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,x.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,x.jsxs)("div",{className:"group/segments",children:[(0,x.jsx)(SU,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,x.jsx)(SU,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,x.jsx)(Sq,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,x.jsx)(Sq,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,x.jsx)(Sq,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,x.jsx)(Sq,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var SY=n(17335),SG=n.n(SY);function SK(e){let{label:t,columns:n,enabled:r,setColumnsVisible:i,setColumnsHidden:o}=e,a=0===SG()(n,r).length,s=SG()(n,r).length===n.length;return(0,x.jsxs)(cP,{children:[(0,x.jsx)(cJ,{children:t}),(0,x.jsxs)(cT,{children:[(0,x.jsx)(le,{tip:"".concat(t,": show all"),icon:a?"contrast":"hover",variant:"ghost",onClick:e=>{e.stopPropagation(),i(n)},children:(0,x.jsx)(lt.xVB,{})}),(0,x.jsx)(le,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(n)},children:(0,x.jsx)(lt.pHg,{})})]})]})}function SX(e){let{title:t,children:n}=e;return(0,x.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,x.jsx)(cU,{anchorLink:!0,size:"24",children:t}),(0,x.jsx)(tG,{className:"p-6",children:(0,x.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function SQ(e){let{title:t,description:n,control:r}=e;return(0,x.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,x.jsx)(cU,{size:"20",children:t}),(0,x.jsx)(t$,{size:"14",children:n})]}),(0,x.jsx)("div",{className:"",children:r})]})}function SJ(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=n||{},c=(0,_U.cI)(),d=(0,b.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,x.jsx)(l9,{title:a,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,x.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,x.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,x.jsx)("div",{className:"flex gap-1 justify-end",children:(0,x.jsx)(kQ,{variant:s,form:c,size:"small",children:l})})]})})})}function S0(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:o}=e;return(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(tq,{font:"mono",weight:"bold",size:"20",children:t}),(0,x.jsxs)("div",{className:"flex items-center",children:[n?(0,x.jsxs)(le,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(n," connected peers"),children:[(0,x.jsx)(tq,{color:"subtle",children:n.toLocaleString()}),(0,x.jsx)(lt.RK4,{})]}):null,i&&r?(0,x.jsx)(s7,{content:"Blockchain is synced",children:(0,x.jsx)("div",{className:"relative left-2",children:(0,x.jsxs)(le,{variant:"ghost",state:"waiting",children:[(0,x.jsx)(tq,{color:"subtle",children:i.toLocaleString()}),(0,x.jsx)(tq,{color:"green",children:(0,x.jsx)(lt.Y3p,{})})]})})}):null]})]})}function S1(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,x.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,x.jsx)(dP,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,x.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,x.jsx)(tq,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,x.jsx)(tq,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,x.jsx)(tq,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function S2(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:o,nodeBlockHeight:a,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,x.jsx)(hT,{rootProps:{openDelay:100},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,x.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,x.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,x.jsxs)(tq,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,x.jsx)(c3,{size:30})]}),children:(0,x.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[300px]",children:[(0,x.jsx)(S0,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,x.jsx)(c_,{className:"w-full mb-0.5"}):(0,x.jsx)(S1,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(tq,{color:"contrast",size:"14",children:"Welcome to Sia! The blockchain is syncing to the current network height. Depending on your system this process may take a while."}),(0,x.jsx)(c_,{className:"w-full mb-1"})]}),c]})})}function S4(e){let{testnetName:t}=e;return(0,x.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,x.jsx)(tq,{color:"lo",children:(0,x.jsx)(lt.RdX,{})}),(0,x.jsxs)(tq,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function S3(e){let{type:t,label:n,link:r,tip:i,icon:o,value:a,onClick:s,decimalsLimit:l,units:u}=e;return(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(s7,{align:"start",side:"bottom",content:i,children:(0,x.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,x.jsx)(tq,{className:"flex relative",children:o||(0,x.jsx)(lt.RdX,{})}),(0,x.jsx)(tq,{size:"12",ellipsis:!0,children:r?(0,x.jsx)(c2,{href:r,target:"_blank",children:n}):n})]})}),(0,x.jsx)("div",{className:(0,ea.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,x.jsx)(kk,{value:a,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,x.jsx)(k_,{value:a,variant:"value",size:"12",format:e=>"".concat(fg(e,l)," ").concat(u)})})]})}function S5(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,suggestion:a,placeholder:s,units:l,suggestionTip:u,averageTip:c,after:d,decimalsLimitSc:f=6,decimalsLimitFiat:h=6,tipsDecimalsLimitSc:p=0}=i,{setValue:m,value:v,error:g}=_$({name:t,field:i,form:n}),y=d||(()=>null),w=(0,b.useMemo)(()=>s?new(fv())(s):a&&"boolean"!=typeof a?new(fv())(a):void 0,[s,a]);return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)(fj,{name:t,size:"small",sc:v,units:l,decimalsLimitSc:f,decimalsLimitFiat:h,error:g,changed:n.formState.dirtyFields[t],placeholder:w,onChange:e=>{m(e,!0)},onBlur:()=>{m(v,!0)}}),(0,x.jsx)(y,{name:t,form:n,fields:r}),o&&(0,x.jsx)(S3,{type:"siacoin",label:"Network average",tip:c||"Averages provided by Sia Central.",decimalsLimit:p,value:(0,m5.qN)(o),onClick:()=>{m(o,!0)}}),a&&u&&(0,x.jsx)(S3,{type:"siacoin",label:"Suggestion",tip:u,decimalsLimit:p,value:(0,m5.qN)(a),onClick:()=>{m(a,!0)}})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kK,{form:n,name:t})})]})}function S6(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,averageTip:a,suggestion:s,suggestionTip:l,decimalsLimit:u=2,placeholder:c,units:d}=i,{setValue:f,value:h,error:p}=_$({form:n,field:i,name:t}),m=(0,b.useMemo)(()=>c?new(fv())(c):s&&"boolean"!=typeof s?new(fv())(s):void 0,[c,s]);return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)(fy,{name:t,value:h,units:d,decimalsLimit:u,placeholder:m,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{let t=void 0!==e?new(fv())(e):void 0;f(t,!0)},onBlur:()=>{f(h,!0)}}),(0,x.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,x.jsx)(S3,{type:"number",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:u,value:o,units:d,onClick:()=>{f(o,!0)}}),s&&l&&(0,x.jsx)(S3,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kK,{form:n,name:t})})]})}function S8(e){let{label:t,link:n,tip:r,value:i,onClick:o}=e;return(0,x.jsxs)("div",{className:"flex justify-between items-center",children:[(0,x.jsx)(s7,{align:"start",side:"bottom",content:r,children:(0,x.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,x.jsx)(tq,{className:"flex relative",children:(0,x.jsx)(lt.RdX,{})}),(0,x.jsx)(tq,{size:"12",children:n?(0,x.jsx)(c2,{href:n,target:"_blank",children:t}):t})]})}),(0,x.jsx)("div",{className:"flex cursor-pointer items-center",onClick:o,children:(0,x.jsx)(tq,{size:"12",children:(0,x.jsx)(lb,{children:i})})})]})}function S7(e){let{name:t,form:n,fields:r,type:i}=e,o=r[t],{placeholder:a,suggestion:s,suggestionTip:l}=o,{ref:u,onChange:c,setValue:d,onBlur:f,error:h}=_$({name:t,form:n,field:o});return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)(d3,{ref:u,name:t,placeholder:a,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,x.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,x.jsx)(S8,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kK,{form:n,name:t})})]})}function S9(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:o,suggestionTip:a}=i,{setValue:s,value:l,error:u}=_$({name:t,field:i,form:n});return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)("div",{className:"flex justify-end w-full",children:(0,x.jsx)(fW,{name:t,size:"medium",checked:l,state:u?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{s(e,!0)},onBlur:()=>{s(l,!0)}})}),(0,x.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&a&&(0,x.jsx)(S8,{label:"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kK,{form:n,name:t})})]})}function Oe(e){let{name:t,form:n,fields:r}=e,i=r[t],{options:o,suggestion:a,suggestionTip:s}=i,{ref:l,onChange:u,setValue:c,onBlur:d,value:f,error:h}=_$({name:t,form:n,field:i});return(0,x.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,x.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,x.jsx)("div",{className:"flex justify-end w-full",children:(0,x.jsx)(fC,{ref:l,name:t,size:"small",value:f,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:d,children:null==o?void 0:o.map(e=>(0,x.jsx)(fM,{value:e.value,children:e.label},e.value))})}),(0,x.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&s&&(0,x.jsx)(S8,{label:"Suggestion",tip:s,value:a?"on":"off",onClick:()=>{c(a,!0)}})})]}),(0,x.jsx)("div",{className:"h-[20px]",children:(0,x.jsx)(kK,{form:n,name:t})})]})}function Ot(e){let{title:t,category:n,form:r,fields:i}=e,o=Object.entries(i).filter(e=>{let[t,i]=e;return i.category===n&&!i.hidden&&(!i.show||i.show(r.getValues()))});return 0===o.length?null:(0,x.jsx)(SX,{title:t,children:o.map((e,t)=>{let[n,a]=e;return(0,x.jsxs)(b.Fragment,{children:[(0,x.jsx)(SQ,{title:a.title,description:a.description,control:"number"===a.type?(0,x.jsx)(S6,{form:r,name:n,fields:i}):"siacoin"===a.type?(0,x.jsx)(S5,{form:r,name:n,fields:i}):"text"===a.type?(0,x.jsx)(S7,{form:r,name:n,fields:i}):"password"===a.type?(0,x.jsx)(S7,{form:r,type:"password",fields:i,name:n}):"boolean"===a.type?(0,x.jsx)(S9,{form:r,name:n,fields:i}):"select"===a.type?(0,x.jsx)(Oe,{form:r,name:n,fields:i}):null}),t{let t=void 0!==e?new(fv())(e):void 0;l(t,!0)},onBlur:()=>{l(c,!0)}})})}function Or(e){let{name:t,form:n,fields:r,size:i="medium",group:o=!0,children:a}=e,s=r[t],{setValue:l,value:u,error:c}=_$({name:t,field:s,form:n}),d=(0,x.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,x.jsx)(fW,{name:t,size:i,checked:u,state:c?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{l(e,!0)},onBlur:()=>{l(u,!0)}}),a]});return o?(0,x.jsx)(kX,{title:s.title,name:t,form:n,children:d}):d}var Oi=n(75652),Oo=n.n(Oi);lt.lg1,lt.eHR,lt.I$H,lt.KiD,lt.P5r,lt.CCF,lt.w9S,lt.EL$,lt.aPl,lt.wEY,lt.EOT,lt.kSc,lt.W$S,lt.lJ7,lt.ORH,lt.ka0,lt.BdP,lt.d19,lt.Mes,lt.VUg,lt.U_S,lt.T85;let Oa=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,b.useState)(!0),l=(0,b.useRef)(!1),u=(0,b.useRef)(0);return(0,b.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,b.createElement)(tO,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,b.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,b.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,b.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function Os(e){let{children:t}=e,[n,r]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{r(!0)},[]),(0,x.jsx)("div",{children:n?t:null})}function Ol(e){let{passwordProtectRequestHooks:t,fallback:n,children:r,lockRoutes:i}=e;return(0,x.jsx)(Os,{children:(0,x.jsx)(fb.kl,{fallback:n,children:(0,x.jsx)(pf.f,{attribute:"class",children:(0,x.jsx)(Oa,{children:(0,x.jsx)(fb.bW,{lockRoutes:i,passwordProtectRequestHooks:t,children:(0,x.jsxs)("div",{id:"root",className:s6,children:[(0,x.jsx)(kf,{}),r]})})})})})})}n(331);var Ou=n(30898),Oc=n.n(Ou);let Od=[];function Of(e,t){let{columns:n,columnsDefaultVisible:r,defaultSortField:i,sortOptions:o,disabledCategories:a}={disabledCategories:Od,...t},[s,l]=(0,SN.Z)("".concat(e,"/enabledColumns"),{defaultValue:r}),[u,c]=(0,SN.Z)("".concat(e,"/sortField"),{defaultValue:i}),[d,f]=(0,SN.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"}),h=(0,b.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),p=(0,b.useCallback)(e=>{l(t=>Oo()([...t,...e]))},[l]),m=(0,b.useCallback)(e=>{l(t=>SG()(t,e))},[l]),v=(0,b.useCallback)(()=>{l(r)},[l,r]),g=(0,b.useCallback)(e=>{if(u!==e){c(e),f("asc");return}f(e=>"desc"===e?"asc":"desc")},[u,c,f]),y=(0,b.useMemo)(()=>n.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[n,a]),x=(0,b.useMemo)(()=>n.filter(e=>{let t=e.fixed||s.includes(e.id),n=null==a?void 0:a.includes(e.category||"");return t&&!n}).map(e=>e.id),[n,s,a]),w=(0,b.useMemo)(()=>{if(!o)return[];let e=o.map(e=>e.id);return Oc()(e,x)},[o,x]);return{configurableColumns:y,enabledColumns:x,toggleColumnVisibility:h,toggleSort:g,setSortDirection:f,setSortField:c,sortableColumns:w,sortField:u,setColumnsVisible:p,setColumnsHidden:m,sortDirection:d,resetDefaultColumnVisibility:v}}function Oh(){let e=(0,k8.useRouter)(),[t,n]=(0,b.useState)([]),r=(0,b.useCallback)(t=>{n(e=>{let n=e.filter(e=>e.id!==t.id);return n.concat(t)}),e.replace({query:{}})},[e,n]),i=(0,b.useCallback)(()=>{n([]),e.replace({query:{}})},[e,n]),o=(0,b.useCallback)(t=>{n(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,n]),a=(0,b.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,n,t]);return{filters:t,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}function Op(e){return new(fv())(e).times(1024).times(1024)}function Om(e){return new(fv())(e).times(1e3).times(1e3).times(1e3).times(1e3)}function Ov(e){return new(fv())(e).div(1e3).div(1e3).div(1e3)}function Og(e){return new(fv())(e).times(1e3).times(1e3).times(1e3)}function Oy(e){return new(fv())(e).div(1e3).div(1e3)}function Ox(e){return new(fv())(e).times(1e3).times(1e3)}function Ob(e){return Op(e).times(4)}function Ow(e){return Ov(Ob(e))}function OE(e){var t;return(t=Og(e),new(fv())(t).div(1024).div(1024)).div(4).integerValue()}function Oj(e,t){let n=t.reduce((e,t)=>{let n=e.startHeight,r=e.endHeight;return t.contractHeightStartr&&(r=t.contractHeightEnd),{startHeight:n,endHeight:r}},{startHeight:e,endHeight:0});n.endHeight=Math.max(n.endHeight,e)+720,n.startHeight=n.startHeight-720;let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=ET(1);let o=r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{});return{allDatesMap:o,range:n}}new(fv())(0)},2850:function(e,t,n){"use strict";n.d(t,{bW:function(){return F},kl:function(){return $},gw:function(){return o},Tc:function(){return W},du:function(){return q},Hv:function(){return L},iv:function(){return U},Nf:function(){return H},E:function(){return B},mw:function(){return z},q0:function(){return V},Tb:function(){return M},V1:function(){return Z},I7:function(){return I}});var r=n(79381);function i(e,t){return!e||t?null:e}function o(e){return new Promise(t=>setTimeout(t,e))}var a=n(89644),s=n.n(a),l=n(2784);function u(e){return{...e,config:{...null==e?void 0:e.config}}}function c(e){return{...e,config:{...null==e?void 0:e.config}}}function d(e){return{...e,config:{...null==e?void 0:e.config}}}function f(e,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function h(e,t,n){var r,i;let o=function(e,t,n){var r,i,o,a;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(r=i.axios)||void 0===r?void 0:r.headers,...null==n?void 0:null===(a=n.config)||void 0===a?void 0:null===(o=a.axios)||void 0===o?void 0:o.headers},l=f(e,t,n);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,n);return{responseType:"json",...null===(r=t.config)||void 0===r?void 0:r.axios,...null==n?void 0:null===(i=n.config)||void 0===i?void 0:i.axios,headers:o}}function p(e,t,n,r){if(!t)return null;let i=(null==n?void 0:n.params)||{};if(r&&r.params&&(i={...i,...r.params}),!(t=function(e,t){if(e&&t){let n=Object.keys(t);for(let r of n){let n=String(t[r]);e.includes(":".concat(r))?e=e.replace(":".concat(r),n):e.includes("?")?e+="&".concat(r,"=").concat(encodeURIComponent(n)):e+="?".concat(r,"=").concat(encodeURIComponent(n))}}return e}(t,i)))return null;let o=f(e,n,r);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function m(e,t,n,r){let i=f(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var v=n(52322),g=n(82876),y=n(92762);function x(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}let b=["geforce 320m","geforce 8600","geforce 8600m gt","geforce 8800 gs","geforce 8800 gt","geforce 9400","geforce 9400m g","geforce 9400m","geforce 9600m gt","geforce 9600m","geforce fx go5200","geforce gt 120","geforce gt 130","geforce gt 330m","geforce gtx 285","google swiftshader","intel g41","intel g45","intel gma 4500mhd","intel gma x3100","intel hd 3000","intel q45","legacy","mali-2","mali-3","mali-4","quadro fx 1500","quadro fx 4","quadro fx 5","radeon hd 2400","radeon hd 2600","radeon hd 4670","radeon hd 4850","radeon hd 4870","radeon hd 5670","radeon hd 5750","radeon hd 6290","radeon hd 6300","radeon hd 6310","radeon hd 6320","radeon hd 6490m","radeon hd 6630m","radeon hd 6750m","radeon hd 6770m","radeon hd 6970m","sgx 543","sgx543"];function w(e){return e=e.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i,"$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g,"").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/,"$1")}let E="undefined"==typeof window,j=(()=>{if(E)return;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,r=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&n>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||r||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class k extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let _=[],S=[];function O(e){return null!=e}let C=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:n={},glContext:r,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:o="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>x(void 0,void 0,void 0,function*(){let a={};if(E)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==j?void 0:j.isIpad),isMobile:l=!!(null==j?void 0:j.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>x(void 0,void 0,void 0,function*(){let t=yield fetch(`${o}/${e}`).then(e=>e.json());if(4>parseInt(t.shift().split(".")[0],10))throw new k("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=n,{renderer:d}=n,f=(e,t,n,r,i)=>({device:i,fps:r,gpu:n,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=w(d)];else{var m;let e=r||function(e,t=!1){let n={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete n.powerPreference;let r=window.document.createElement("canvas"),i=r.getContext("webgl",n)||r.getContext("experimental-webgl",n);return null!=i?i:void 0}(null==j?void 0:j.isSafari12,i);if(!e)return f(0,"WEBGL_UNSUPPORTED");let t=e.getExtension("WEBGL_debug_renderer_info");if(t&&(d=e.getParameter(t.UNMASKED_RENDERER_WEBGL)),!d)return f(1,"FALLBACK");p=d,h="apple gpu"===(m=d=w(d))?function(e,t,n){let r;if(!n)return[t];let i=function(e){let t=e.createShader(35633),n=e.createShader(35632),r=e.createProgram();if(!(n&&t&&r))return;e.shaderSource(t,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),e.shaderSource(n,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),e.compileShader(t),e.compileShader(n),e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),e.detachShader(r,t),e.detachShader(r,n),e.deleteShader(t),e.deleteShader(n),e.useProgram(r);let i=e.createBuffer();e.bindBuffer(34962,i),e.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let o=e.getAttribLocation(r,"aPosition");e.vertexAttribPointer(o,3,5126,!1,0,0),e.enableVertexAttribArray(o),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let a=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,a),e.deleteProgram(r),e.deleteBuffer(i),a.join("")}(e),o="801621810",a="8016218135",s="80162181161",l=(null==j?void 0:j.isIpad)?[["a7",s,12],["a8",a,15],["a8x",a,15],["a9",a,15],["a9x",a,15],["a10",a,15],["a10x",a,15],["a12",o,15],["a12x",o,15],["a12z",o,15],["a14",o,15],["m1",o,15]]:[["a7",s,12],["a8",a,12],["a9",a,15],["a10",a,15],["a11",o,15],["a12",o,15],["a13",o,15],["a14",o,15]];return"80162181255"===i?r=l.filter(([,,e])=>e>=14):(r=l.filter(([,e])=>e===i)).length||(r=l),r.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return x(this,void 0,void 0,function*(){let n;let r=(e=>{let t=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];for(let n of t)if(e.includes(n))return n})(e);if(!r)return;let i=`${l?"m":"d"}-${r}${s?"-ipad":""}.json`,o=a[i]=null!==(t=a[i])&&void 0!==t?t:c(i);try{n=yield o}catch(e){if(e instanceof k)throw e;return}let d=function(e){var t;let n=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==n?void 0:n.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=n.filter(([,e])=>e===d);f.length||(f=n.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,n)=>0===t||e!==n[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o,a=0;for(;au?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:x}=window,b=u.width*x*u.height*x;for(let e of g){let[t,n]=e,r=t*n,i=Math.abs(b-r);ie===n?t-r:e-n);if(!v.length){let e=b.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,y,C]=v[0];if(-1===g)return f(0,"BLOCKLISTED",y,g,C);let M=l?e:t,A=0;for(let e=0;e=M[e]&&(A=e);return f(A,"BENCHMARK",y,g,C)});function M(){var e,t;let n=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!n||!!n.matches}let A=(0,l.createContext)({}),P=()=>(0,l.useContext)(A);function T(e){let{children:t}=e,n=function(){let[e,t]=(0,l.useState)({}),n=(0,l.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]),r=(0,l.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),i=(0,l.useCallback)(()=>{t({})},[t]),o=(0,l.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e]);return{setWorkflow:n,removeWorkflow:r,resetWorkflows:i,workflows:o}}();return(0,v.jsx)(A.Provider,{value:n,children:t})}let N=[{id:"usd",label:"USD",prefix:"$",fixed:2},{id:"cad",label:"CAD",prefix:"$",fixed:2},{id:"eur",label:"EUR",prefix:"€",fixed:2},{id:"gbp",label:"GBP",prefix:"\xa3",fixed:2},{id:"jpy",label:"JPY",prefix:"\xa5",fixed:2},{id:"aud",label:"AUD",prefix:"$",fixed:2},{id:"rub",label:"RUB",prefix:"₽",fixed:2},{id:"cny",label:"CNY",prefix:"\xa5",fixed:2},{id:"btc",label:"BTC",prefix:"₿",fixed:6},{id:"eth",label:"ETH",prefix:"Ξ",fixed:6}],R={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:N[0],recentApis:{},autoLock:!1,autoLockTimeout:6e5},D=(0,l.createContext)({}),L=()=>(0,l.useContext)(D);function F(e){let{children:t,...n}=e,i=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:i}=e,o=(0,l.useMemo)(()=>({...R,...i}),[i]),[a,s]=(0,y.Z)("v0/settings",{defaultValue:o});(0,l.useEffect)(()=>{s(e=>({...o,...e}))},[]);let u=(0,l.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=P(),d=(0,l.useCallback)(e=>{s(t=>({...t,...e}))},[s]),f=(0,l.useCallback)(e=>{let t=N.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,g.useRouter)(),p=(0,g.usePathname)(),[m,v]=(0,l.useState)({}),x=(0,l.useCallback)((e,t)=>{v(n=>({...n,[e]:t}))},[v]),b=(0,l.useCallback)(()=>{for(let[e,t]of(n&&h.push("".concat(n.login,"?prev=").concat([n.login].includes(p)?n.home:p)),d({password:""}),c(),(0,r.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=(0,l.useMemo)(()=>!!u.password,[u]),E=function(){let e=M(),[t,n]=(0,l.useState)(!1),[r,i]=(0,l.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},s]=(0,y.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),u=(0,l.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];s(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[s]),c=(0,l.useCallback)(async()=>{let e=!1;{let t=await C();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&u(!1,!1)}i(e),n(!0)},[i,u,a]);return(0,l.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:o,shouldRender:r&&o,setCanGpuRender:i,setIsGpuEnabled:u}}();return{settings:u,setSettings:d,setCurrency:f,currencyOptions:N,gpu:E,lock:b,isUnlocked:w,passwordProtectRequestHooks:t,setOnLockCallback:x}}(n);return(0,v.jsx)(D.Provider,{value:i,children:t})}function V(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:a}=L(),u=p(o,n.route,n,void 0),d=(0,l.useMemo)(()=>i(u?"".concat(u).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!o.password),[u,e,n,a,o]);return(0,r.ZP)(d,async()=>{if(!n.route)throw Error("No route");let t=h(o,n,void 0);if(!u)throw Error("No route");try{let n=await s().post(u,e.payload,t);return n.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function z(e,t){let{setWorkflow:n,removeWorkflow:i}=P(),{mutate:o}=(0,r.kY)(),{settings:a}=L(),l=u(e);return{post:async e=>{let r=d(e);try{let u;let c=h(a,l,r),d=p(a,l.route,l,r);if(!d)throw Error("No route");"payload"in r&&(u=r.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(a,d,e,r);n(f,{path:v,payload:u});let g=await s().post(d,u,c);return t&&await t(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,i=arguments.length>2?arguments[2]:void 0;return o(n=>{if("string"!=typeof n)return!1;let i=m(a,n,e,r);return t(i)},n,i)},r,g),i(f),{status:g.status,data:g.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function I(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:a}=L(),u=p(o,n.route,n,void 0),d=(0,l.useMemo)(()=>i(u?"".concat(u).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,n.disabled||a&&!o.password),[u,e,n,a,o]);return(0,r.ZP)(d,async()=>{if(!n.route)throw Error("No route");let t=h(o,n,void 0);if(!u)throw Error("No route");try{let n=await s().put(u,e.payload,t);return n.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function Z(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=L(),{setWorkflow:o,removeWorkflow:a}=P(),l=u(e);return{put:async e=>{let r=d(e);try{let u;let c=h(i,l,r),d=p(i,l.route,l,r);if(!d)throw Error("No route");"payload"in r&&(u=r.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(i,d,e,r);o(f,{path:v,payload:u});let g=await s().put(d,u,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=m(i,n,e,r);return t(o)},o,a)},r,g),a(f),{status:g.status,data:g.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function B(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=L(),{setWorkflow:o,removeWorkflow:a}=P(),l=u(e);return{patch:async e=>{let r=d(e);try{let u;let c=h(i,l,r),d=p(i,l.route,l,r);if(!d)throw Error("No route");"payload"in r&&(u=r.payload);let f="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=m(i,d,e,r);o(f,{path:v,payload:u});let g=await s().patch(d,u,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=m(i,n,e,r);return t(o)},o,a)},r,g),a(f),{status:g.status,data:g.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function H(e){var t;let n=(0,l.useMemo)(()=>c(e),[e]),{settings:o,passwordProtectRequestHooks:a}=L(),u=p(o,n.route,n,void 0);return(0,r.ZP)(i(e.standalone?"".concat(e.standalone,"/").concat(u):u,n.disabled||a&&!o.password),async()=>{if(!n.route)throw Error("No route");let e=h(o,n,void 0);if(!u)throw Error("No route");try{let t=await s().get(u,e);return t.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function U(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=L(),{setWorkflow:o,removeWorkflow:a}=P(),l=u(e);return{delete:async e=>{let r=d(e);try{let u=h(i,l,r),c=p(i,l.route,l,r);if(!c)throw Error("No route");let d=m(i,c,e,r);o(c,{path:d});let f=await s().delete(c,u);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=m(i,n,e,r);return t(o)},o,a)},r,f),a(c),{status:f.status,data:f.data}}catch(e){var u,c;return{status:null===(u=e.response)||void 0===u?void 0:u.status,error:(null===(c=e.response)||void 0===c?void 0:c.data)||e.message}}}}}function W(){return Math.round((new Date().getTime()-14336e8)/6e5)}function q(){return Math.round((new Date().getTime()-16736e8)/6e5)}function $(e){let{fallback:t,cacheProvider:n,children:i}=e;return(0,v.jsx)(T,{children:(0,v.jsx)(r.J$,{value:{fallback:t||{},provider:n},children:i})})}},27444:function(e,t,n){"use strict";n.d(t,{dk:function(){return o},Z7:function(){return F},Uy:function(){return V},GP:function(){return y},kr:function(){return x},nH:function(){return l},KU:function(){return b},rV:function(){return E},Az:function(){return k},uo:function(){return _},Te:function(){return j},d$:function(){return s},On:function(){return a},Wl:function(){return d},cQ:function(){return c},cM:function(){return R},Kw:function(){return D},hV:function(){return g},ST:function(){return O},_3:function(){return N},HU:function(){return M},uq:function(){return P},G:function(){return T},Rz:function(){return A},Fn:function(){return S},Os:function(){return f},a0:function(){return m},cj:function(){return v},Qq:function(){return h}});var r=n(2850),i=n(79381);let o="/state/host";function a(e){return(0,r.Nf)({...e,route:o})}function s(e){return(0,r.Nf)({...e,route:"/state/consensus"})}function l(){let e=a({config:{swr:{revalidateOnFocus:!1}}}),t=(0,i.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.network)==="Zen Testnet"?(0,r.du)():(0,r.Tc)()},{refreshInterval:6e4,keepPreviousData:!0});return t.data||0}let u="/syncer/peers";function c(e){return(0,r.Nf)({...e,route:u})}function d(e){return(0,r.V1)({...e,route:"/syncer/peers"},async e=>{e(e=>e===u)})}function f(e){return(0,r.Nf)({...e,route:"/wallet"})}function h(e){return(0,r.Nf)({...e,route:"/wallet/transactions"})}let p="/wallet/pending";function m(e){return(0,r.Nf)({...e,route:p})}function v(e){return(0,r.mw)({...e,route:"/wallet/send"},async e=>{await (0,r.gw)(2e3),e(e=>e.startsWith(p))})}function g(e){return(0,r.Nf)({...e,route:"/tpool/fee"})}function y(e){return(0,r.q0)({...e,route:"/contracts"})}function x(e){return(0,r.V1)({...e,route:"/contracts/:id/integrity"})}function b(e){return(0,r.Nf)({...e,route:"/metrics/:interval"})}let w="/settings";function E(e){return(0,r.Nf)({...e,route:w})}function j(e){return(0,r.E)({...e,route:"/settings"},async e=>{await e(e=>e.startsWith(w))})}function k(e){return(0,r.mw)({...e,route:"/settings/announce"})}function _(e){return(0,r.I7)({...e,payload:{},route:"/settings/ddns/update"})}function S(e){return(0,r.Nf)({...e,route:"/volumes"})}function O(e){return(0,r.Nf)({...e,route:"/volumes/:id"})}let C="/volumes";function M(e){return(0,r.mw)({...e,route:C},async e=>{e(e=>e.startsWith(C))})}function A(e){return(0,r.V1)({...e,route:"/volumes/:id"},async e=>{e(e=>e.startsWith(C))})}function P(e){return(0,r.iv)({...e,route:"/volumes/:id"},async e=>{e(e=>e.startsWith(C))})}function T(e){return(0,r.V1)({...e,route:"/volumes/:id/resize"},async e=>{await (0,r.gw)(1e4),e(e=>e.startsWith(C))})}function N(e){return(0,r.iv)({...e,route:"/volumes/:id/cancel"},async e=>{await (0,r.gw)(3e3),e(e=>e.startsWith(C))})}function R(e){return(0,r.Nf)({...e,route:"/system/dir"})}function D(e){return(0,r.V1)({...e,route:"/system/dir"})}let L="/alerts";function F(e){return(0,r.Nf)({...e,route:L})}function V(e){return(0,r.mw)({...e,route:"/alerts/dismiss"},async e=>{e(e=>e.startsWith(L))})}},41775:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{RVU:function(){return tL},eHR:function(){return tU},xHM:function(){return tW},IRm:function(){return tq},L6f:function(){return t$},rW0:function(){return tY},osk:function(){return tG},JaG:function(){return tK},wWN:function(){return is},Dkj:function(){return iy},cfm:function(){return tQ},YV2:function(){return t6},EMN:function(){return t8},bdU:function(){return t7},VUy:function(){return t9},Cp0:function(){return ne},kqg:function(){return nt},Mes:function(){return nn},DI$:function(){return ni},NlZ:function(){return nf},Y3p:function(){return np},Z$8:function(){return nh},tEK:function(){return nm},PcV:function(){return ng},QN4:function(){return nv},Jsc:function(){return ny},wEY:function(){return nw},olJ:function(){return nE},KiD:function(){return n_},dDl:function(){return nS},Jrl:function(){return nM},aPl:function(){return nA},kBK:function(){return ip},Bpb:function(){return nT},iG7:function(){return nF},dr6:function(){return nV},d19:function(){return nz},w9S:function(){return nI},VBo:function(){return il},Hb6:function(){return nH},CCF:function(){return nU},Qbr:function(){return nY},L37:function(){return nG},ROc:function(){return iv},UG6:function(){return im},lq1:function(){return nK},zvn:function(){return iu},K2o:function(){return ih},EL$:function(){return nQ},BdP:function(){return n3},dsj:function(){return n5},P5r:function(){return n6},RdX:function(){return n8},U_S:function(){return n7},V8Q:function(){return rn},POp:function(){return rr},kSc:function(){return ri},mBM:function(){return id},Lur:function(){return rl},b47:function(){return ru},Sfn:function(){return rc},W$S:function(){return rv},T85:function(){return rg},Ckx:function(){return ry},dZ8:function(){return rb},EOT:function(){return rx},RK4:function(){return rE},XJM:function(){return rS},RRj:function(){return rO},ka0:function(){return rC},hzZ:function(){return rA},VUg:function(){return rD},owP:function(){return rL},Fs9:function(){return rF},wGX:function(){return rV},Wet:function(){return rB},BB5:function(){return rH},ZEk:function(){return rU},$Iz:function(){return rY},shL:function(){return rG},hiv:function(){return rK},mli:function(){return rQ},lJ7:function(){return ig},ORH:function(){return r0},xVB:function(){return r6},pHg:function(){return r8},I$H:function(){return r9},HCc:function(){return r7},oaN:function(){return ic},qdM:function(){return ie},SmH:function(){return ii},lg1:function(){return io}});var a,s,l,u,c,d,f,h,p,m,v,g,y,x,b,w,E,j,k,_,S,O,C,M,A,P,T,N,R,D,L,F,V,z,I,Z,B,H,U,W,q,$,Y,G,K,X,Q,J,ee,et,en,er,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,eE,ej,ek,e_,eS,eO,eC,eM,eA,eP,eT,eN,eR,eD,eL,eF,eV,ez,eI,eZ,eB,eH,eU,eW,eq,e$,eY,eG,eK,eX,eQ,eJ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,to,ta,ts,tl,tu,tc,td,tf,th,tp,tm,tv,tg,ty,tx,tb,tw,tE=["width","height","viewBox"],tj=["tabindex"],tk={focusable:"false",preserveAspectRatio:"xMidYMid meet"},t_=n(13980),tS=n.n(t_),tO=n(2784);function tC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tM(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var tT=["className","children","tabIndex"],tN=["tabindex"],tR=tO.forwardRef(function(e,t){var n=e.className,r=e.children,a=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,a=void 0===r?"0 0 ".concat(t," ").concat(n):r,s=o(e,tE),l=s.tabindex,u=o(s,tj),c=i(i(i({},tk),u),{},{width:t,height:n,viewBox:a});return c["aria-label"]||c["aria-labelledby"]||c.title?(c.role="img",null!=l&&(c.focusable="true",c.tabindex=l)):c["aria-hidden"]=!0,c}(tM(tM({},tP(e,tT)),{},{tabindex:a})),l=s.tabindex,u=tP(s,tN);return n&&(u.className=n),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tO.createElement("svg",u,r)});tR.displayName="Icon",tR.propTypes={"aria-hidden":tS().string,"aria-label":tS().string,"aria-labelledby":tS().string,children:tS().node,className:tS().string,height:tS().oneOfType([tS().number,tS().string]),preserveAspectRatio:tS().string,tabIndex:tS().string,viewBox:tS().string,width:tS().oneOfType([tS().number,tS().string]),xmlns:tS().string},tR.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var tD=["children"],tL=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tD);return tO.createElement(tR,tA({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=tO.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),n)}),tF=["children"],tV=["children"],tz=["children"],tI=["children"],tZ=["children"],tB=["children"],tH=["children"],tU=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tF);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=tO.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tO.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),tW=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tV);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=tO.createElement("path",{d:"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z"})),n)}),tq=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tz);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=tO.createElement("path",{d:"M10 26L10 24 22.59 24 6 7.41 7.41 6 24 22.59 24 10 26 10 26 26 10 26z"})),n)}),t$=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tI);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=tO.createElement("path",{d:"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z"})),n)}),tY=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tZ);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=tO.createElement("path",{d:"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z"})),n)}),tG=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tB);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=tO.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),n)}),tK=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tH);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),p||(p=tO.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),m||(m=tO.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),v||(v=tO.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),g||(g=tO.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),y||(y=tO.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),x||(x=tO.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),b||(b=tO.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),w||(w=tO.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),E||(E=tO.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),n)}),tX=["children"],tQ=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tX);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=tO.createElement("path",{d:"M26,6V8.17L5.64,11.87a2,2,0,0,0-1.64,2v4.34a2,2,0,0,0,1.64,2L8,20.56V24a2,2,0,0,0,2,2h8a2,2,0,0,0,2-2V22.74l6,1.09V26h2V6ZM18,24H10V20.93l8,1.45ZM6,18.17V13.83L26,10.2V21.8Z"})),n)}),tJ=["children"],t0=["children"],t1=["children"],t2=["children"],t4=["children"],t3=["children"],t5=["children"],t6=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,tJ);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=tO.createElement("path",{d:"M26,4H22V2H20V4H12V2H10V4H6A2.0025,2.0025,0,0,0,4,6V26a2.0025,2.0025,0,0,0,2,2H26a2.0025,2.0025,0,0,0,2-2V6A2.0025,2.0025,0,0,0,26,4ZM6,6h4V8h2V6h8V8h2V6h4l0,4H6Zm0,6h5v6H6ZM19,26H13V20h6Zm0-8H13V12h6Zm2,8V20h5l.0012,6Z"})),n)}),t8=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,t0);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=tO.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),t7=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,t1);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=tO.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),t9=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,t2);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=tO.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),ne=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,t4);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=tO.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),nt=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,t3);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),M||(M=tO.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),nn=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,t5);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=tO.createElement("path",{d:"M30,15H27.9492A12.0071,12.0071,0,0,0,17,4.0508V2H15V4.0508A12.0071,12.0071,0,0,0,4.0508,15H2v2H4.0508A12.0071,12.0071,0,0,0,15,27.9492V30h2V27.9492A12.0071,12.0071,0,0,0,27.9492,17H30ZM17,25.9492V22H15v3.9492A10.0166,10.0166,0,0,1,6.0508,17H10V15H6.0508A10.0166,10.0166,0,0,1,15,6.0508V10h2V6.0508A10.0166,10.0166,0,0,1,25.9492,15H22v2h3.9492A10.0166,10.0166,0,0,1,17,25.9492Z"})),n)}),nr=["children"],ni=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nr);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),P||(P=tO.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),T||(T=tO.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),n)}),no=["children"],na=["children"],ns=["children"],nl=["children"],nu=["children"],nc=["children"],nd=["children"],nf=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,no);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=tO.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),nh=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,na);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),R||(R=tO.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),D||(D=tO.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),n)}),np=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,ns);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),L||(L=tO.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),F||(F=tO.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),n)}),nm=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nl);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),V||(V=tO.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),z||(z=tO.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),nv=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nu);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),I||(I=tO.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),ng=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nc);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=tO.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),ny=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nd);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),B||(B=tO.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),H||(H=tO.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),nx=["children"],nb=["children"],nw=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nx);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),U||(U=tO.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),W||(W=tO.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),nE=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nb);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),q||(q=tO.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),$||($=tO.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),nj=["children"],nk=["children"],n_=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nj);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=tO.createElement("path",{d:"M21,12V10H17V7H15v3H13a2.002,2.002,0,0,0-2,2v3a2.002,2.002,0,0,0,2,2h6v3H11v2h4v3h2V22h2a2.0023,2.0023,0,0,0,2-2V17a2.002,2.002,0,0,0-2-2H13V12Z"})),G||(G=tO.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12.0353,12.0353,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14.0412,14.0412,0,0,0,16,2Z"})),n)}),nS=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nk);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),K||(K=tO.createElement("path",{d:"M23 27.18L20.41 24.59 19 26 23 30 30 23 28.59 21.59 23 27.18z"})),X||(X=tO.createElement("circle",{cx:"11",cy:"8",r:"1"})),Q||(Q=tO.createElement("circle",{cx:"11",cy:"16",r:"1"})),J||(J=tO.createElement("circle",{cx:"11",cy:"24",r:"1"})),ee||(ee=tO.createElement("path",{d:"M24,3H8A2,2,0,0,0,6,5V27a2,2,0,0,0,2,2h8V27H8V21H26V5A2,2,0,0,0,24,3Zm0,16H8V13H24Zm0-8H8V5H24Z"})),n)}),nO=["children"],nC=["children"],nM=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nO);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),et||(et=tO.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),en||(en=tO.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),nA=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nC);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),er||(er=tO.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ei||(ei=tO.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),nP=["children"],nT=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nP);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eo||(eo=tO.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),nN=["children"],nR=["children"],nD=["children"],nL=["children"],nF=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nN);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ea||(ea=tO.createElement("path",{d:"M10 6H14V10H10zM18 6H22V10H18zM10 14H14V18H10zM18 14H22V18H18zM10 22H14V26H10zM18 22H22V26H18z"})),n)}),nV=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nR);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=tO.createElement("path",{d:"M2 26H30V28H2zM25.4 9c.8-.8.8-2 0-2.8 0 0 0 0 0 0l-3.6-3.6c-.8-.8-2-.8-2.8 0 0 0 0 0 0 0l-15 15V24h6.4L25.4 9zM20.4 4L24 7.6l-3 3L17.4 7 20.4 4zM6 22v-3.6l10-10 3.6 3.6-10 10H6z"})),n)}),nz=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nD);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),el||(el=tO.createElement("path",{d:"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z"})),eu||(eu=tO.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ec||(ec=tO.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),nI=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nL);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=tO.createElement("path",{d:"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z"})),n)}),nZ=["children"],nB=["children"],nH=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nZ);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ef||(ef=tO.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),nU=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nB);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=tO.createElement("path",{d:"M2 28H30V30H2zM27 11a1 1 0 001-1V7a1 1 0 00-.66-.94l-11-4a1 1 0 00-.68 0l-11 4A1 1 0 004 7v3a1 1 0 001 1H6V24H4v2H28V24H26V11zM6 7.7L16 4.06 26 7.7V9H6zM18 24H14V11h4zM8 11h4V24H8zM24 24H20V11h4z"})),n)}),nW=["children"],nq=["children"],n$=["children"],nY=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nW);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=tO.createElement("path",{d:"M11.17,6l3.42,3.41.58.59H28V26H4V6h7.17m0-2H4A2,2,0,0,0,2,6V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2H16L12.59,4.59A2,2,0,0,0,11.17,4Z"})),n)}),nG=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nq);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=tO.createElement("path",{d:"M26 20L24 20 24 24 20 24 20 26 24 26 24 30 26 30 26 26 30 26 30 24 26 24z"})),ev||(ev=tO.createElement("path",{d:"M28,8H16l-3.4-3.4C12.2,4.2,11.7,4,11.2,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h14v-2H4V6h7.2l3.4,3.4l0.6,0.6H28v8h2v-8 C30,8.9,29.1,8,28,8z"})),n)}),nK=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,n$);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=tO.createElement("path",{d:"M14,4a7,7,0,1,1-7,7,7,7,0,0,1,7-7m0-2a9,9,0,1,0,9,9A9,9,0,0,0,14,2Z"})),ey||(ey=tO.createElement("path",{d:"M28,11a13.9563,13.9563,0,0,0-4.1051-9.8949L22.4813,2.5187A11.9944,11.9944,0,0,1,5.5568,19.5194l-.0381-.0381L4.1051,20.8949A13.9563,13.9563,0,0,0,14,25v3H10v2H20V28H16V24.84A14.0094,14.0094,0,0,0,28,11Z"})),n)}),nX=["children"],nQ=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nX);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ex||(ex=tO.createElement("path",{d:"M16,.0005,4,5.9784V20.0443a12,12,0,0,0,24,0V5.9784Zm6.83,27.3138L16,23.9119V26.14l5.0361,2.5088A10.0025,10.0025,0,0,1,6,20.0443V7.21L16,2.2284,26,7.21v3.75L16,5.9783V8.2062l10,4.9816v3.75L16,11.9562v2.2279l10,4.9815v.8787a9.9045,9.9045,0,0,1-.37,2.6871L16,17.934v2.2279l8.8952,4.4313A10.0252,10.0252,0,0,1,22.83,27.3143Z"})),n)}),nJ=["children"],n0=["children"],n1=["children"],n2=["children"],n4=["children"],n3=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,nJ);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eb||(eb=tO.createElement("path",{d:"M11 24H21V26H11zM13 28H19V30H13zM16 2A10 10 0 006 12a9.19 9.19 0 003.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 018 12a8 8 0 0116 0 7.2 7.2 0 01-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0026 12 10 10 0 0016 2z"})),n)}),n5=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,n0);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ew||(ew=tO.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm0,26A12,12,0,0,1,16,4V16l8.4812,8.4814A11.9625,11.9625,0,0,1,16,28Z"})),n)}),n6=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,n1);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=tO.createElement("path",{d:"M29.53,6.15a1,1,0,0,0-1,0L20,10.38V7a1,1,0,0,0-1.45-.89L10,10.38V3A1,1,0,0,0,9,2H3A1,1,0,0,0,2,3V28H30V7A1,1,0,0,0,29.53,6.15ZM22,26H18V19h4Zm6,0H24V18a1,1,0,0,0-1-1H17a1,1,0,0,0-1,1v8H4V4H8v9.62l10-5v5l10-5Z"})),n)}),n8=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,n2);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=tO.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"})),ek||(ek=tO.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"})),n)}),n7=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,n4);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e_||(e_=tO.createElement("path",{d:"M29.88,15.52l-6-11A1,1,0,0,0,23,4H9a1,1,0,0,0-.88.52l-6,11a1,1,0,0,0,0,1l6,11A1,1,0,0,0,9,28H23a1,1,0,0,0,.88-.52l6-11A1,1,0,0,0,29.88,15.52ZM22.93,7l4.39,8h-9.5ZM16,14.14,10.82,6H21.18ZM9.07,7l5.11,8H4.68ZM4.68,17h9.5L9.07,25ZM16,17.86,21.18,26H10.82ZM22.93,25l-5.11-8h9.5Z"})),n)}),n9=["children"],re=["children"],rt=["children"],rn=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,n9);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eS||(eS=tO.createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),eO||(eO=tO.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n)}),rr=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,re);return tO.createElement(tR,tA({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eC||(eC=tO.createElement("path",{d:"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"})),eM||(eM=tO.createElement("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"})),n)}),ri=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rt);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eA||(eA=tO.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),ro=["children"],ra=["children"],rs=["children"],rl=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,ro);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=tO.createElement("path",{d:"M24,14H22V8A6,6,0,0,0,10,8v6H8a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V16A2,2,0,0,0,24,14ZM12,8a4,4,0,0,1,8,0v6H12ZM24,28H8V16H24Z"})),n)}),ru=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,ra);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=tO.createElement("path",{d:"M13.647,14.907a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,13.647,14.907Zm4.745,0a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,18.392,14.907Z"})),eN||(eN=tO.createElement("path",{d:"M24.71,4H7.29A2.6714,2.6714,0,0,0,4.625,6.678V24.254A2.6714,2.6714,0,0,0,7.29,26.932H22.032l-.689-2.405,1.664,1.547L24.58,27.53,27.375,30V6.678A2.6714,2.6714,0,0,0,24.71,4ZM19.692,20.978s-.468-.559-.858-1.053a4.1021,4.1021,0,0,0,2.353-1.547,7.4391,7.4391,0,0,1-1.495.767,8.5564,8.5564,0,0,1-1.885.559,9.1068,9.1068,0,0,1-3.367-.013,10.9127,10.9127,0,0,1-1.911-.559,7.6184,7.6184,0,0,1-.949-.442c-.039-.026-.078-.039-.117-.065a.18.18,0,0,1-.052-.039c-.234-.13-.364-.221-.364-.221a4.0432,4.0432,0,0,0,2.275,1.534c-.39.494-.871,1.079-.871,1.079a4.7134,4.7134,0,0,1-3.965-1.976,17.409,17.409,0,0,1,1.872-7.579,6.4285,6.4285,0,0,1,3.653-1.365l.13.156a8.77,8.77,0,0,0-3.419,1.703s.286-.156.767-.377a9.7625,9.7625,0,0,1,2.951-.819,1.2808,1.2808,0,0,1,.221-.026,11,11,0,0,1,2.626-.026A10.5971,10.5971,0,0,1,21.2,11.917a8.6518,8.6518,0,0,0-3.237-1.651l.182-.208a6.4285,6.4285,0,0,1,3.653,1.365,17.409,17.409,0,0,1,1.872,7.579A4.752,4.752,0,0,1,19.692,20.978Z"})),n)}),rc=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rs);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eR||(eR=tO.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),n)}),rd=["children"],rf=["children"],rh=["children"],rp=["children"],rm=["children"],rv=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rd);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=tO.createElement("path",{d:"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z"})),eL||(eL=tO.createElement("path",{d:"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z"})),n)}),rg=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rf);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eF||(eF=tO.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),n)}),ry=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rh);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eV||(eV=tO.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),ez||(ez=tO.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),rx=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rp);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eI||(eI=tO.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),eZ||(eZ=tO.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),rb=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rm);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=tO.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),eH||(eH=tO.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),rw=["children"],rE=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rw);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eU||(eU=tO.createElement("circle",{cx:"21",cy:"26",r:"2"})),eW||(eW=tO.createElement("circle",{cx:"21",cy:"6",r:"2"})),eq||(eq=tO.createElement("circle",{cx:"4",cy:"16",r:"2"})),e$||(e$=tO.createElement("path",{d:"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z"})),n)}),rj=["children"],rk=["children"],r_=["children"],rS=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rj);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=tO.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),rO=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rk);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eG||(eG=tO.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),rC=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,r_);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eK||(eK=tO.createElement("path",{d:"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z"})),eX||(eX=tO.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),rM=["children"],rA=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rM);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eQ||(eQ=tO.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM8,18a2,2,0,1,1,2-2A2,2,0,0,1,8,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,16,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,24,18Z"})),eJ||(eJ=tO.createElement("path",{fill:"none",d:"M10,16a2,2,0,1,1-2-2A2,2,0,0,1,10,16Zm6-2a2,2,0,1,0,2,2A2,2,0,0,0,16,14Zm8,0a2,2,0,1,0,2,2A2,2,0,0,0,24,14Z","data-icon-path":"inner-path"})),n)}),rP=["children"],rT=["children"],rN=["children"],rR=["children"],rD=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rP);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e0||(e0=tO.createElement("path",{d:"M30 18A6 6 0 1020 22.46v7.54l4-1.8926 4 1.8926V22.46A5.98 5.98 0 0030 18zm-4 8.84l-2-.9467L22 26.84V23.65a5.8877 5.8877 0 004 0zM24 22a4 4 0 114-4A4.0045 4.0045 0 0124 22zM9 14H16V16H9zM9 8H19V10H9z"})),e1||(e1=tO.createElement("path",{d:"M6,30a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,6,2H22a2.0021,2.0021,0,0,1,2,2V8H22V4H6V28H16v2Z"})),n)}),rL=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rT);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e2||(e2=tO.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),e4||(e4=tO.createElement("path",{d:"M12,12H10V8h2a2,2,0,0,0,0-4H10A2.0023,2.0023,0,0,0,8,6v.5H6V6a4.0045,4.0045,0,0,1,4-4h2a4,4,0,0,1,0,8Z"})),e3||(e3=tO.createElement("path",{d:"M22.4479,21.0337A10.971,10.971,0,0,0,19.9211,4.7446l-.999,1.73A8.9967,8.9967,0,1,1,5,14H3a10.9916,10.9916,0,0,0,18.0338,8.4478L28.5859,30,30,28.5859Z"})),n)}),rF=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rN);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e5||(e5=tO.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),rV=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rR);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e6||(e6=tO.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),e8||(e8=tO.createElement("path",{d:"M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"})),n)}),rz=["children"],rI=["children"],rZ=["children"],rB=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rz);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e7||(e7=tO.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),n)}),rH=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rI);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=tO.createElement("path",{d:"M29,10H3a1,1,0,0,0-1,1V21a1,1,0,0,0,1,1H29a1,1,0,0,0,1-1V11A1,1,0,0,0,29,10ZM28,20H4V12H8v4h2V12h5v4h2V12h5v4h2V12h4Z"})),n)}),rU=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rZ);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),te||(te=tO.createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),n)}),rW=["children"],rq=["children"],r$=["children"],rY=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rW);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tt||(tt=tO.createElement("path",{d:"M28,4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM18,28H14V24h4Zm10-6H4V6H28Z"})),n)}),rG=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rq);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=tO.createElement("path",{d:"M13.5,8.4c0-0.1,0-0.3,0-0.4c0-0.1,0-0.3,0-0.4l1-0.8c0.4-0.3,0.4-0.9,0.2-1.3l-1.2-2C13.3,3.2,13,3,12.6,3 c-0.1,0-0.2,0-0.3,0.1l-1.2,0.4c-0.2-0.1-0.4-0.3-0.7-0.4l-0.3-1.3C10.1,1.3,9.7,1,9.2,1H6.8c-0.5,0-0.9,0.3-1,0.8L5.6,3.1 C5.3,3.2,5.1,3.3,4.9,3.4L3.7,3C3.6,3,3.5,3,3.4,3C3,3,2.7,3.2,2.5,3.5l-1.2,2C1.1,5.9,1.2,6.4,1.6,6.8l0.9,0.9c0,0.1,0,0.3,0,0.4 c0,0.1,0,0.3,0,0.4L1.6,9.2c-0.4,0.3-0.5,0.9-0.2,1.3l1.2,2C2.7,12.8,3,13,3.4,13c0.1,0,0.2,0,0.3-0.1l1.2-0.4 c0.2,0.1,0.4,0.3,0.7,0.4l0.3,1.3c0.1,0.5,0.5,0.8,1,0.8h2.4c0.5,0,0.9-0.3,1-0.8l0.3-1.3c0.2-0.1,0.4-0.2,0.7-0.4l1.2,0.4 c0.1,0,0.2,0.1,0.3,0.1c0.4,0,0.7-0.2,0.9-0.5l1.1-2c0.2-0.4,0.2-0.9-0.2-1.3L13.5,8.4z M12.6,12l-1.7-0.6c-0.4,0.3-0.9,0.6-1.4,0.8 L9.2,14H6.8l-0.4-1.8c-0.5-0.2-0.9-0.5-1.4-0.8L3.4,12l-1.2-2l1.4-1.2c-0.1-0.5-0.1-1.1,0-1.6L2.2,6l1.2-2l1.7,0.6 C5.5,4.2,6,4,6.5,3.8L6.8,2h2.4l0.4,1.8c0.5,0.2,0.9,0.5,1.4,0.8L12.6,4l1.2,2l-1.4,1.2c0.1,0.5,0.1,1.1,0,1.6l1.4,1.2L12.6,12z"})),tr||(tr=tO.createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),n)}),rK=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,r$);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=tO.createElement("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zM21 12c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3S22.7 12 21 12zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2V24zM11 20c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3S9.3 20 11 20z"})),n)}),rX=["children"],rQ=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rX);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),to||(to=tO.createElement("path",{d:"M8 15H24V17H8z"})),n)}),rJ=["children"],r0=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,rJ);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ta||(ta=tO.createElement("path",{d:"M23,9h6a2,2,0,0,0,2-2V3a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2V4H11V3A2,2,0,0,0,9,1H3A2,2,0,0,0,1,3V7A2,2,0,0,0,3,9H9a2,2,0,0,0,2-2V6h4V26a2.0023,2.0023,0,0,0,2,2h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V25a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V17h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V6h4V7A2,2,0,0,0,23,9Zm0-6h6V7H23ZM9,7H3V3H9ZM23,25h6v4H23Zm0-11h6v4H23Z",transform:"translate(0 .005)"})),n)}),r1=["children"],r2=["children"],r4=["children"],r3=["children"],r5=["children"],r6=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,r1);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=tO.createElement("path",{d:"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z"})),tl||(tl=tO.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),n)}),r8=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,r2);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tu||(tu=tO.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),tc||(tc=tO.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),n)}),r7=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,r4);return tO.createElement(tR,tA({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=tO.createElement("path",{d:"M22 17H24V19H22z"})),tf||(tf=tO.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),r9=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,r3);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=tO.createElement("path",{d:"M22 17H24V19H22z"})),tp||(tp=tO.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),ie=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,r5);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tm||(tm=tO.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"})),tv||(tv=tO.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),n)}),it=["children"],ir=["children"],ii=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,it);return tO.createElement(tR,tA({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=tO.createElement("path",{d:"M26.0022,4H5.998A1.998,1.998,0,0,0,4,5.998V26.002A1.998,1.998,0,0,0,5.998,28H26.0022A1.9979,1.9979,0,0,0,28,26.002V5.998A1.9979,1.9979,0,0,0,26.0022,4ZM14.8752,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z"})),ty||(ty=tO.createElement("path",{fill:"none",d:"M14.8751,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z","data-icon-path":"inner-path"})),n)}),io=tO.forwardRef(function(e,t){var n=e.children,r=tP(e,ir);return tO.createElement(tR,tA({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tx||(tx=tO.createElement("path",{d:"M29.3164,8.0513l-18-6A1,1,0,0,0,10.4,2.2L4,7V2H2V30H4V11l6.4,4.8a1,1,0,0,0,.9165.1489l18-6a1,1,0,0,0,0-1.8974ZM10,13,4.6665,9,10,5Zm4-.0542-2,.667V4.3872l2,.667Zm4-1.333-2,.6665V5.7207l2,.6665Zm2-.667V7.0542L25.8379,9Z"})),tb||(tb=tO.createElement("path",{d:"M20,22a4,4,0,0,0-8,0h2a2,2,0,1,1,2,2H8v2h8A4.0045,4.0045,0,0,0,20,22Z"})),tw||(tw=tO.createElement("path",{d:"M26,22a4.0045,4.0045,0,0,0-4,4h2a2,2,0,1,1,2,2H12v2H26a4,4,0,0,0,0-8Z"})),n)}),ia=n(52322);function is(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ia.jsx)("path",{d:"M464 64C490.5 64 512 85.49 512 112V176C512 202.5 490.5 224 464 224H48C21.49 224 0 202.5 0 176V112C0 85.49 21.49 64 48 64H464zM448 128H320V160H448V128zM464 288C490.5 288 512 309.5 512 336V400C512 426.5 490.5 448 464 448H48C21.49 448 0 426.5 0 400V336C0 309.5 21.49 288 48 288H464zM192 352V384H448V352H192z"})})}function il(e){let{size:t=24,className:n}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,ia.jsx)("path",{d:"M256 0v128h128L256 0zM224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM64 72C64 67.63 67.63 64 72 64h80C156.4 64 160 67.63 160 72v16C160 92.38 156.4 96 152 96h-80C67.63 96 64 92.38 64 88V72zM64 136C64 131.6 67.63 128 72 128h80C156.4 128 160 131.6 160 136v16C160 156.4 156.4 160 152 160h-80C67.63 160 64 156.4 64 152V136zM304 384c8.875 0 16 7.125 16 16S312.9 416 304 416h-47.25c-16.38 0-31.25-9.125-38.63-23.88c-2.875-5.875-8-6.5-10.12-6.5s-7.25 .625-10 6.125l-7.75 15.38C187.6 412.6 181.1 416 176 416H174.9c-6.5-.5-12-4.75-14-11L144 354.6L133.4 386.5C127.5 404.1 111 416 92.38 416H80C71.13 416 64 408.9 64 400S71.13 384 80 384h12.38c4.875 0 9.125-3.125 10.62-7.625l18.25-54.63C124.5 311.9 133.6 305.3 144 305.3s19.5 6.625 22.75 16.5l13.88 41.63c19.75-16.25 54.13-9.75 66 14.12c2 4 6 6.5 10.12 6.5H304z"})})}function iu(e){let{size:t=24,className:n}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,ia.jsx)("path",{d:"M464 288h-416C21.5 288 0 309.5 0 336v96C0 458.5 21.5 480 48 480h416c26.5 0 48-21.5 48-48v-96C512 309.5 490.5 288 464 288zM320 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S337.6 416 320 416zM416 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S433.6 416 416 416zM464 32h-416C21.5 32 0 53.5 0 80v192.4C13.41 262.3 29.92 256 48 256h416c18.08 0 34.59 6.254 48 16.41V80C512 53.5 490.5 32 464 32z"})})}function ic(e){let{size:t=24,className:n}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,ia.jsx)("path",{d:"M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"})})}function id(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ia.jsx)("path",{d:"M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"})})}function ih(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 576 512",children:(0,ia.jsx)("path",{d:"M575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8L512.5 447.7C512.5 450.5 512.3 453.1 512 455.8V472C512 494.1 494.1 512 472 512H456C454.9 512 453.8 511.1 452.7 511.9C451.3 511.1 449.9 512 448.5 512H392C369.9 512 352 494.1 352 472V384C352 366.3 337.7 352 320 352H256C238.3 352 224 366.3 224 384V472C224 494.1 206.1 512 184 512H128.1C126.6 512 125.1 511.9 123.6 511.8C122.4 511.9 121.2 512 120 512H104C81.91 512 64 494.1 64 472V360C64 359.1 64.03 358.1 64.09 357.2V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5L575.8 255.5z"})})}function ip(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ia.jsx)("path",{d:"M7.994 153.5c1.326 0 2.687 .3508 3.975 1.119L208 271.5v223.8c0 9.741-7.656 16.71-16.01 16.71c-2.688 0-5.449-.7212-8.05-2.303l-152.2-92.47C12.13 405.3 0 383.3 0 359.5v-197.7C0 156.1 3.817 153.5 7.994 153.5zM426.2 117.2c0 2.825-1.352 5.647-4.051 7.248L224 242.6L25.88 124.4C23.19 122.8 21.85 119.1 21.85 117.2c0-2.8 1.32-5.603 3.965-7.221l165.1-100.9C201.7 3.023 212.9 0 224 0s22.27 3.023 32.22 9.07l165.1 100.9C424.8 111.6 426.2 114.4 426.2 117.2zM440 153.5C444.2 153.5 448 156.1 448 161.8v197.7c0 23.75-12.12 45.75-31.78 57.69l-152.2 92.5C261.5 511.3 258.7 512 256 512C247.7 512 240 505 240 495.3V271.5l196-116.9C437.3 153.8 438.7 153.5 440 153.5z"})})}function im(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,ia.jsx)("path",{d:"M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"})})}function iv(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,ia.jsx)("path",{d:"M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"})})}function ig(e){let{size:t=24}=e;return(0,ia.jsxs)("svg",{version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t,height:t,fill:"currentColor",viewBox:"0 0 32 32",children:[(0,ia.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,ia.jsx)("polygon",{points:"12,5.4 10.6,4 8,6.6 5.4,4 4,5.4 6.6,8 4,10.6 5.4,12 8,9.4 10.6,12 12,10.6 9.4,8 "}),(0,ia.jsx)("polygon",{points:"12,21.4 10.6,20 8,22.6 5.4,20 4,21.4 6.6,24 4,26.6 5.4,28 8,25.4 10.6,28 12,26.6 9.4,24 "}),(0,ia.jsx)("polygon",{points:"17,15 17,2 15,2 15,15 2,15 2,17 15,17 15,30 17,30 17,17 30,17 30,15 "}),(0,ia.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function iy(e){let{size:t=24}=e;return(0,ia.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,ia.jsx)("path",{d:"M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"})})}},47025:function(e,t,n){"use strict";n.d(t,{BW:function(){return i}});var r=n(2850);function i(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:"https://api.siacentral.com/v2",...e,route:"/market/exchange-rate?currencies=sc",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}n(98537)},96206:function(e,t,n){"use strict";n.d(t,{vW:function(){return o},rN:function(){return l},yF:function(){return s},Vz:function(){return h},bc:function(){return a},qN:function(){return d},ll:function(){return c}}),n(81395),n(18149);var r=n(6391),i=n.n(r);function o(e,t){let n="number"==typeof e?e:e instanceof i()?e.toNumber():Number(e),{fixed:r=2}=t||{};if(!n)return"0 B";if(n<1e3)return"".concat(n," B");let o=Math.floor(Math.log10(n)/Math.log10(1e3)),a=n/Math.pow(1e3,o);return a.toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function a(e){return 0===e?"0ms":(e/=1e6)<1e3?" ".concat(Math.floor(100*e)/100,"ms"):(e/=1e3)<60?"".concat(Math.floor(100*e)/100,"s"):"".concat(Math.floor(e/60*100)/100,"m")}function s(e,t){let{fixed:n=0,units:r="",abbreviated:o=!1}=t||{},a=new(i())(e||0);if(o){let e=a.toNumber();if(e<1e3)return a.toString();let t=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],i=Math.floor(Math.log10(e)/Math.log10(1e3)),o=e/Math.pow(1e3,i);return"".concat(o.toFixed(n)).concat(t[i]?" ".concat(t[i]):"").concat(r?" ".concat(r):"")}return"".concat(a.toFormat(n)).concat(r?" ".concat(r):"")}function l(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let u=new r.BigNumber("10").exponentiatedBy(24);function c(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(u).toFixed(t)):new r.BigNumber(e).dividedBy(u)}function d(e){return new r.BigNumber(new r.BigNumber(e).times(u).toFixed(0))}let f={fixed:3,dynamicUnits:!0,hastingUnits:!1};function h(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:o}={...f,...t},a=new r.BigNumber(1e12),s=new r.BigNumber(1e3),l=new r.BigNumber(e),u=new r.BigNumber(e).abs(),d=l.isNegative()?"-":"";if(!i)return"".concat(d).concat(c(u).toFormat(n)," SC");if(u.dividedBy(a).isLessThan(1))return o?"".concat(d).concat(u," H"):"".concat(d,"0 SC");let h=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(s),new r.BigNumber(1)),i=u.dividedBy(a.multipliedBy(t));if(i.isLessThan(s)||e===h.length-1)return"".concat(d).concat(i.toFormat(n)," ").concat(h[e])}return""}},2271:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26252:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(43219),n(2784),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55046:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return p},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return g},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return x},redirect:function(){return u.redirect},permanentRedirect:function(){return u.permanentRedirect},RedirectType:function(){return u.RedirectType},notFound:function(){return c.notFound}});let r=n(2784),i=n(60587),o=n(58839),a=n(26252),s=n(4424),l=n(44673),u=n(75903),c=n(47067),d=Symbol("internal for urlsearchparams readonly");function f(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw f()}delete(){throw f()}set(){throw f()}sort(){throw f()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function p(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(o.SearchParamsContext),t=(0,r.useMemo)(()=>e?new h(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(o.PathnameContext)}function v(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function g(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(i.GlobalLayoutRouterContext),t=(0,r.useContext)(o.PathParamsContext);return e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],i=Array.isArray(r),o=i?r[1]:r;if(!o||o.startsWith("__PAGE__"))continue;let a=i&&("c"===r[2]||"oc"===r[2]);a?n[r[0]]=r[1].split("/"):i&&(n[r[0]]=r[1]),n=e(t,n)}return n}(e.tree):t}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(i.LayoutRouterContext);return function e(t,n,r,i){let o;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)o=t[1][n];else{var a;let e=t[1];o=null!=(a=e.children)?a:Object.values(e)[0]}if(!o)return i;let l=o[0],u=(0,s.getSegmentValue)(l);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(o,n,!1,i))}(t,e)}function x(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47067:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return i}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75903:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return s},redirect:function(){return l},permanentRedirect:function(){return u},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return f}});let o=n(7552),a="NEXT_REDIRECT";function s(e,t,n){void 0===n&&(n=!1);let r=Error(a);r.digest=a+";"+t+";"+e+";"+n;let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function u(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r&&("true"===i||"false"===i)}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(i=r||(r={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let r=n(2271),i=(0,r.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4424:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23116:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25146:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(67858),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(43219),i=n(16794),o=i._(n(2784)),a=r._(n(28316)),s=r._(n(37412)),l=n(31918),u=n(97686),c=n(45802);n(84759);let d=n(54365),f=r._(n(2088)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,n,r,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}})}function m(e){let[t,n]=o.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:h,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:w,onLoad:E,onError:j,...k}=e;return o.default.createElement("img",{...k,...m(d),loading:h,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(j&&(e.src=e.src),e.complete&&p(e,f,y,x,b,v))},[n,f,y,x,b,j,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,f,y,x,b,v)},onError:e=>{w(!0),"empty"!==f&&b(!0),j&&j(e)}})});function g(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...m(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let y=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(d.RouterContext),r=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||r||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:a,onLoadingComplete:s}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,x]=(0,o.useState)(!1),[b,w]=(0,o.useState)(!1),{props:E,meta:j}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:b});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...E,unoptimized:j.unoptimized,placeholder:j.placeholder,fill:j.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:x,setShowAltText:w,ref:t}),j.priority?o.default.createElement(g,{isAppRouter:!n,imgAttributes:E}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(43219),i=r._(n(2784)),o=n(31068),a=n(33134),s=n(39585),l=n(51570),u=n(19868),c=n(54365),d=n(60587),f=n(93629),h=n(25146),p=n(10694),m=n(23116),v=new Set;function g(e,t,n,r,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let i=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,o=t+"%"+n+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,n,r);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let x=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:v,children:x,prefetch:b=null,passHref:w,replace:E,shallow:j,scroll:k,locale:_,onClick:S,onMouseEnter:O,onTouchStart:C,legacyBehavior:M=!1,...A}=e;n=x,M&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let P=i.default.useContext(c.RouterContext),T=i.default.useContext(d.AppRouterContext),N=null!=P?P:T,R=!P,D=!1!==b,L=null===b?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:F,as:V}=i.default.useMemo(()=>{if(!P){let e=y(s);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(P,s,!0);return{href:e,as:v?(0,o.resolveHref)(P,v):t||e}},[P,s,v]),z=i.default.useRef(F),I=i.default.useRef(V);M&&(r=i.default.Children.only(n));let Z=M?r&&"object"==typeof r&&r.ref:t,[B,H,U]=(0,f.useIntersection)({rootMargin:"200px"}),W=i.default.useCallback(e=>{(I.current!==V||z.current!==F)&&(U(),I.current=V,z.current=F),B(e),Z&&("function"==typeof Z?Z(e):"object"==typeof Z&&(Z.current=e))},[V,Z,F,U,B]);i.default.useEffect(()=>{N&&H&&D&&g(N,F,V,{locale:_},{kind:L},R)},[V,F,H,_,D,null==P?void 0:P.locale,N,R,L]);let q={ref:W,onClick(e){M||"function"!=typeof S||S(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,o,s,l,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(p):p()}(e,N,F,V,E,j,k,_,R,D)},onMouseEnter(e){M||"function"!=typeof O||O(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(D||!R)&&g(N,F,V,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){M||"function"!=typeof C||C(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(D||!R)&&g(N,F,V,{locale:_,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)}};if((0,l.isAbsoluteUrl)(V))q.href=V;else if(!M||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==_?_:null==P?void 0:P.locale,t=(null==P?void 0:P.isLocaleDomain)&&(0,h.getDomainLocale)(V,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(V,e,null==P?void 0:P.defaultLocale))}return M?i.default.cloneElement(r,q):i.default.createElement("a",{...A,...q},n)}),b=x;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),i=n(30857),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:o,elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]);let p=(0,r.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31256:function(e,t,n){"use strict";var r=n(48834).lW;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Head:function(){return y},NextScript:function(){return x},Html:function(){return b},Main:function(){return w},default:function(){return E}});let i=c(n(2784)),o=n(13150),a=n(95383),s=n(82809),l=c(n(10274)),u=n(15333);function c(e){return e&&e.__esModule?e:{default:e}}let d=new Set;function f(e,t,n){let r=(0,a.getPageFiles)(e,"/_app"),i=n?[]:(0,a.getPageFiles)(e,t);return{sharedFiles:r,pageFiles:i,allFiles:[...new Set([...r,...i])]}}function h(e,t){let{assetPrefix:n,buildManifest:r,assetQueryString:o,disableOptimizedLoading:a,crossOrigin:s}=e;return r.polyfillFiles.filter(e=>e.endsWith(".js")&&!e.endsWith(".module.js")).map(e=>i.default.createElement("script",{key:e,defer:!a,nonce:t.nonce,crossOrigin:t.crossOrigin||s,noModule:!0,src:"".concat(n,"/_next/").concat(e).concat(o)}))}function p(e){let{styles:t}=e;if(!t)return null;let n=Array.isArray(t)?t:[];if(t.props&&Array.isArray(t.props.children)){let e=e=>{var t,n;return null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html};t.props.children.forEach(t=>{Array.isArray(t)?t.forEach(t=>e(t)&&n.push(t)):e(t)&&n.push(t)})}return i.default.createElement("style",{"amp-custom":"",dangerouslySetInnerHTML:{__html:n.map(e=>e.props.dangerouslySetInnerHTML.__html).join("").replace(/\/\*# sourceMappingURL=.*\*\//g,"").replace(/\/\*@ sourceURL=.*?\*\//g,"")}})}function m(e,t,n){let{dynamicImports:r,assetPrefix:o,isDevelopment:a,assetQueryString:s,disableOptimizedLoading:l,crossOrigin:u}=e;return r.map(e=>!e.endsWith(".js")||n.allFiles.includes(e)?null:i.default.createElement("script",{async:!a&&l,defer:!l,key:e,src:"".concat(o,"/_next/").concat(encodeURI(e)).concat(s),nonce:t.nonce,crossOrigin:t.crossOrigin||u}))}function v(e,t,n){var r;let{assetPrefix:o,buildManifest:a,isDevelopment:s,assetQueryString:l,disableOptimizedLoading:u,crossOrigin:c}=e,d=n.allFiles.filter(e=>e.endsWith(".js")),f=null==(r=a.lowPriorityFiles)?void 0:r.filter(e=>e.endsWith(".js"));return[...d,...f].map(e=>i.default.createElement("script",{key:e,src:"".concat(o,"/_next/").concat(encodeURI(e)).concat(l),nonce:t.nonce,async:!s&&u,defer:!u,crossOrigin:t.crossOrigin||c}))}function g(e,t){let{scriptLoader:n,disableOptimizedLoading:r,crossOrigin:o}=e,a=function(e,t){let{assetPrefix:n,scriptLoader:r,crossOrigin:o,nextScriptWorkers:a}=e;if(!a)return null;try{let{partytownSnippet:e}=require("@builder.io/partytown/integration"),a=Array.isArray(t.children)?t.children:[t.children],s=a.find(e=>{var t,n;return!!e&&!!e.props&&(null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html.length)&&"data-partytown-config"in e.props});return i.default.createElement(i.default.Fragment,null,!s&&i.default.createElement("script",{"data-partytown-config":"",dangerouslySetInnerHTML:{__html:'\n partytown = {\n lib: "'.concat(n,'/_next/static/~partytown/"\n };\n ')}}),i.default.createElement("script",{"data-partytown":"",dangerouslySetInnerHTML:{__html:e()}}),(r.worker||[]).map((e,n)=>{let{strategy:r,src:a,children:s,dangerouslySetInnerHTML:l,...u}=e,c={};if(a)c.src=a;else if(l&&l.__html)c.dangerouslySetInnerHTML={__html:l.__html};else if(s)c.dangerouslySetInnerHTML={__html:"string"==typeof s?s:Array.isArray(s)?s.join(""):""};else throw Error("Invalid usage of next/script. Did you forget to include a src attribute or an inline script? https://nextjs.org/docs/messages/invalid-script");return i.default.createElement("script",{...c,...u,type:"text/partytown",key:a||n,nonce:t.nonce,"data-nscript":"worker",crossOrigin:t.crossOrigin||o})}))}catch(e){return(0,l.default)(e)&&"MODULE_NOT_FOUND"!==e.code&&console.warn("Warning: ".concat(e.message)),null}}(e,t),s=(n.beforeInteractive||[]).filter(e=>e.src).map((e,n)=>{var a;let{strategy:s,...l}=e;return i.default.createElement("script",{...l,key:l.src||n,defer:null!==(a=l.defer)&&void 0!==a?a:!r,nonce:t.nonce,"data-nscript":"beforeInteractive",crossOrigin:t.crossOrigin||o})});return i.default.createElement(i.default.Fragment,null,a,s)}class y extends i.default.Component{getCssLinks(e){let{assetPrefix:t,assetQueryString:n,dynamicImports:r,crossOrigin:o,optimizeCss:a,optimizeFonts:s}=this.context,l=e.allFiles.filter(e=>e.endsWith(".css")),u=new Set(e.sharedFiles),c=new Set([]),d=Array.from(new Set(r.filter(e=>e.endsWith(".css"))));if(d.length){let e=new Set(l);d=d.filter(t=>!(e.has(t)||u.has(t))),c=new Set(d),l.push(...d)}let f=[];return l.forEach(e=>{let r=u.has(e);a||f.push(i.default.createElement("link",{key:"".concat(e,"-preload"),nonce:this.props.nonce,rel:"preload",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"style",crossOrigin:this.props.crossOrigin||o}));let s=c.has(e);f.push(i.default.createElement("link",{key:e,nonce:this.props.nonce,rel:"stylesheet",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),crossOrigin:this.props.crossOrigin||o,"data-n-g":s?void 0:r?"":void 0,"data-n-p":s?void 0:r?void 0:""}))}),s&&(f=this.makeStylesheetInert(f)),0===f.length?null:f}getPreloadDynamicChunks(){let{dynamicImports:e,assetPrefix:t,assetQueryString:n,crossOrigin:r}=this.context;return e.map(e=>e.endsWith(".js")?i.default.createElement("link",{rel:"preload",key:e,href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"script",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||r}):null).filter(Boolean)}getPreloadMainLinks(e){let{assetPrefix:t,assetQueryString:n,scriptLoader:r,crossOrigin:o}=this.context,a=e.allFiles.filter(e=>e.endsWith(".js"));return[...(r.beforeInteractive||[]).map(e=>i.default.createElement("link",{key:e.src,nonce:this.props.nonce,rel:"preload",href:e.src,as:"script",crossOrigin:this.props.crossOrigin||o})),...a.map(e=>i.default.createElement("link",{key:e,nonce:this.props.nonce,rel:"preload",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"script",crossOrigin:this.props.crossOrigin||o}))]}getBeforeInteractiveInlineScripts(){let{scriptLoader:e}=this.context,{nonce:t,crossOrigin:n}=this.props;return(e.beforeInteractive||[]).filter(e=>!e.src&&(e.dangerouslySetInnerHTML||e.children)).map((e,r)=>{let{strategy:o,children:a,dangerouslySetInnerHTML:s,src:l,...u}=e,c="";return s&&s.__html?c=s.__html:a&&(c="string"==typeof a?a:Array.isArray(a)?a.join(""):""),i.default.createElement("script",{...u,dangerouslySetInnerHTML:{__html:c},key:u.id||r,nonce:t,"data-nscript":"beforeInteractive",crossOrigin:n||void 0})})}getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}makeStylesheetInert(e){return i.default.Children.map(e,e=>{var t,n;if((null==e?void 0:e.type)==="link"&&(null==e?void 0:null==(t=e.props)?void 0:t.href)&&o.OPTIMIZED_FONT_PROVIDERS.some(t=>{var n,r;let{url:i}=t;return null==e?void 0:null==(r=e.props)?void 0:null==(n=r.href)?void 0:n.startsWith(i)})){let t={...e.props||{},"data-href":e.props.href,href:void 0};return i.default.cloneElement(e,t)}if(null==e?void 0:null==(n=e.props)?void 0:n.children){let t={...e.props||{},children:this.makeStylesheetInert(e.props.children)};return i.default.cloneElement(e,t)}return e}).filter(Boolean)}render(){var e,t;let{styles:r,ampPath:o,inAmpMode:a,hybridAmp:s,canonicalBase:l,__NEXT_DATA__:u,dangerousAsPath:c,headTags:d,unstable_runtimeJS:h,unstable_JsPreload:m,disableOptimizedLoading:v,optimizeCss:g,optimizeFonts:y,assetPrefix:x,nextFontManifest:b}=this.context,w=!1===h,E=!1===m||!v;this.context.docComponentsRendered.Head=!0;let{head:j}=this.context,k=[],_=[];j&&(j.forEach(e=>{let t;this.context.strictNextHead&&(t=i.default.createElement("meta",{name:"next-head",content:"1"})),e&&"link"===e.type&&"preload"===e.props.rel&&"style"===e.props.as?(t&&k.push(t),k.push(e)):e&&(t&&("meta"!==e.type||!e.props.charSet)&&_.push(t),_.push(e))}),j=k.concat(_));let S=i.default.Children.toArray(this.props.children).filter(Boolean);y&&!a&&(S=this.makeStylesheetInert(S));let O=!1,C=!1;j=i.default.Children.map(j||[],e=>{if(!e)return e;let{type:t,props:n}=e;if(a){let r="";if("meta"===t&&"viewport"===n.name?r='name="viewport"':"link"===t&&"canonical"===n.rel?C=!0:"script"===t&&(n.src&&-1>n.src.indexOf("ampproject")||n.dangerouslySetInnerHTML&&(!n.type||"text/javascript"===n.type))&&(r="{r+=" ".concat(e,'="').concat(n[e],'"')}),r+="/>"),r)return console.warn('Found conflicting amp tag "'.concat(e.type,'" with conflicting prop ').concat(r," in ").concat(u.page,". https://nextjs.org/docs/messages/conflicting-amp-tag")),null}else"link"===t&&"amphtml"===n.rel&&(O=!0);return e});let M=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,a),A=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return{preconnect:null,preload:null};let r=e.pages["/_app"],o=e.pages[t],a=[...null!=r?r:[],...null!=o?o:[]],s=!!(0===a.length&&(r||o));return{preconnect:s?i.default.createElement("link",{"data-next-font":e.pagesUsingSizeAdjust?"size-adjust":"",rel:"preconnect",href:"/",crossOrigin:"anonymous"}):null,preload:a?a.map(e=>{let t=/\.(woff|woff2|eot|ttf|otf)$/.exec(e)[1];return i.default.createElement("link",{key:e,rel:"preload",href:"".concat(n,"/_next/").concat(encodeURI(e)),as:"font",type:"font/".concat(t),crossOrigin:"anonymous","data-next-font":e.includes("-s")?"size-adjust":""})}):null}}(b,c,x);return i.default.createElement("head",function(e){let{crossOrigin:t,nonce:n,...r}=e;return r}(this.props),this.context.isDevelopment&&i.default.createElement(i.default.Fragment,null,i.default.createElement("style",{"data-next-hide-fouc":!0,"data-ampdevmode":a?"true":void 0,dangerouslySetInnerHTML:{__html:"body{display:none}"}}),i.default.createElement("noscript",{"data-next-hide-fouc":!0,"data-ampdevmode":a?"true":void 0},i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body{display:block}"}}))),j,this.context.strictNextHead?null:i.default.createElement("meta",{name:"next-head-count",content:i.default.Children.count(j||[]).toString()}),S,y&&i.default.createElement("meta",{name:"next-font-preconnect"}),A.preconnect,A.preload,a&&i.default.createElement(i.default.Fragment,null,i.default.createElement("meta",{name:"viewport",content:"width=device-width,minimum-scale=1,initial-scale=1"}),!C&&i.default.createElement("link",{rel:"canonical",href:l+n(79505).cleanAmpPath(c)}),i.default.createElement("link",{rel:"preload",as:"script",href:"https://cdn.ampproject.org/v0.js"}),i.default.createElement(p,{styles:r}),i.default.createElement("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}"}}),i.default.createElement("noscript",null,i.default.createElement("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}"}})),i.default.createElement("script",{async:!0,src:"https://cdn.ampproject.org/v0.js"})),!a&&i.default.createElement(i.default.Fragment,null,!O&&s&&i.default.createElement("link",{rel:"amphtml",href:l+(o||"".concat(c).concat(c.includes("?")?"&":"?","amp=1"))}),this.getBeforeInteractiveInlineScripts(),!g&&this.getCssLinks(M),!g&&i.default.createElement("noscript",{"data-n-css":null!==(e=this.props.nonce)&&void 0!==e?e:""}),!w&&!E&&this.getPreloadDynamicChunks(),!w&&!E&&this.getPreloadMainLinks(M),!v&&!w&&this.getPolyfillScripts(),!v&&!w&&this.getPreNextScripts(),!v&&!w&&this.getDynamicChunks(M),!v&&!w&&this.getScripts(M),g&&this.getCssLinks(M),g&&i.default.createElement("noscript",{"data-n-css":null!==(t=this.props.nonce)&&void 0!==t?t:""}),this.context.isDevelopment&&i.default.createElement("noscript",{id:"__next_css__DO_NOT_USE__"}),r||null),i.default.createElement(i.default.Fragment,{},...d||[]))}}y.contextType=u.HtmlContext;class x extends i.default.Component{getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}static getInlineScriptSource(e){let{__NEXT_DATA__:t,largePageDataBytes:i}=e;try{let o=JSON.stringify(t);if(d.has(t.page))return(0,s.htmlEscapeJsonString)(o);let a=r.from(o).byteLength,l=n(16549).Z;return i&&a>i&&(d.add(t.page),console.warn('Warning: data for page "'.concat(t.page,'"').concat(t.page===e.dangerousAsPath?"":' (path "'.concat(e.dangerousAsPath,'")')," is ").concat(l(a)," which exceeds the threshold of ").concat(l(i),", this amount of data can reduce performance.\nSee more info here: https://nextjs.org/docs/messages/large-page-data"))),(0,s.htmlEscapeJsonString)(o)}catch(e){if((0,l.default)(e)&&-1!==e.message.indexOf("circular structure"))throw Error('Circular structure in "getInitialProps" result of page "'.concat(t.page,'". https://nextjs.org/docs/messages/circular-structure'));throw e}}render(){let{assetPrefix:e,inAmpMode:t,buildManifest:n,unstable_runtimeJS:r,docComponentsRendered:o,assetQueryString:a,disableOptimizedLoading:s,crossOrigin:l}=this.context,u=!1===r;if(o.NextScript=!0,t)return null;let c=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,t);return i.default.createElement(i.default.Fragment,null,!u&&n.devFiles?n.devFiles.map(t=>i.default.createElement("script",{key:t,src:"".concat(e,"/_next/").concat(encodeURI(t)).concat(a),nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l})):null,u?null:i.default.createElement("script",{id:"__NEXT_DATA__",type:"application/json",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l,dangerouslySetInnerHTML:{__html:x.getInlineScriptSource(this.context)}}),s&&!u&&this.getPolyfillScripts(),s&&!u&&this.getPreNextScripts(),s&&!u&&this.getDynamicChunks(c),s&&!u&&this.getScripts(c))}}function b(e){let{inAmpMode:t,docComponentsRendered:n,locale:r,scriptLoader:o,__NEXT_DATA__:a}=(0,u.useHtmlContext)();return n.Html=!0,!function(e,t,n){var r,o,a,s;if(!n.children)return;let l=[],u=Array.isArray(n.children)?n.children:[n.children],c=null==(o=u.find(e=>e.type===y))?void 0:null==(r=o.props)?void 0:r.children,d=null==(s=u.find(e=>"body"===e.type))?void 0:null==(a=s.props)?void 0:a.children,f=[...Array.isArray(c)?c:[c],...Array.isArray(d)?d:[d]];i.default.Children.forEach(f,t=>{var n;if(t&&(null==(n=t.type)?void 0:n.__nextScript)){if("beforeInteractive"===t.props.strategy){e.beforeInteractive=(e.beforeInteractive||[]).concat([{...t.props}]);return}if(["lazyOnload","afterInteractive","worker"].includes(t.props.strategy)){l.push(t.props);return}}}),t.scriptLoader=l}(o,a,e),i.default.createElement("html",{...e,lang:e.lang||r||void 0,amp:t?"":void 0,"data-ampdevmode":void 0})}function w(){let{docComponentsRendered:e}=(0,u.useHtmlContext)();return e.Main=!0,i.default.createElement("next-js-internal-body-render-target",null)}x.contextType=u.HtmlContext;class E extends i.default.Component{static getInitialProps(e){return e.defaultGetInitialProps(e)}render(){return i.default.createElement(b,null,i.default.createElement(y,null),i.default.createElement("body",null,i.default.createElement(w,null),i.default.createElement(x,null)))}}E[o.NEXT_BUILTIN_DOCUMENT]=function(){return i.default.createElement(b,null,i.default.createElement(y,null),i.default.createElement("body",null,i.default.createElement(w,null),i.default.createElement(x,null)))}},31918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(84759);let r=n(69933),i=n(97686);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:v,width:g,height:y,fill:x=!1,style:b,onLoad:w,onLoadingComplete:E,placeholder:j="empty",blurDataURL:k,fetchPriority:_,layout:S,objectFit:O,objectPosition:C,lazyBoundary:M,lazyRoot:A,...P}=e,{imgConf:T,showAltText:N,blurComplete:R,defaultLoader:D}=t,L=T||i.imageConfigDefault;if("allSizes"in L)s=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);s={...L,allSizes:e,deviceSizes:t}}let F=P.loader||D;delete P.loader,delete P.srcSet;let V="__next_img_default"in F;if(V){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=F;F=t=>{let{config:n,...r}=t;return e(r)}}if(S){"fill"===S&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[S];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[S];t&&!d&&(d=t)}let z="",I=a(g),Z=a(y);if("object"==typeof(n=c)&&(o(n)||void 0!==n.src)){let e=o(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,k=k||e.blurDataURL,z=e.src,!x){if(I||Z){if(I&&!Z){let t=I/e.width;Z=Math.round(e.height*t)}else if(!I&&Z){let t=Z/e.height;I=Math.round(e.width*t)}}else I=e.width,Z=e.height}}let B=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:z)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,B=!1),s.unoptimized&&(f=!0),V&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(_="high");let H=a(v),U=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:C}:{},N?{}:{color:"transparent"},b),W=R||"empty"===j?null:"blur"===j?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:I,heightInt:Z,blurWidth:l,blurHeight:u,blurDataURL:k||"",objectFit:U.objectFit})+'")':'url("'+j+'")',q=W?{backgroundSize:U.objectFit||"cover",backgroundPosition:U.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},$=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:I,quality:H,sizes:d,loader:F}),Y={...P,loading:B?"lazy":p,fetchPriority:_,width:I,height:Z,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},G={unoptimized:f,priority:h,placeholder:j,fill:x};return{props:Y,meta:G}}},15333:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{HtmlContext:function(){return i},useHtmlContext:function(){return o}});let r=n(2784),i=(0,r.createContext)(void 0);function o(){let e=(0,r.useContext)(i);if(!e)throw Error(" should not be imported outside of pages/_document.\nRead more: https://nextjs.org/docs/messages/no-document-import-in-page");return e}},69933:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},81963:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return u},unstable_getImgProps:function(){return l}});let r=n(43219),i=n(31918),o=n(84759),a=n(80920),s=r._(n(2088)),l=e=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},u=a.Image},2088:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},72190:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePagePath",{enumerable:!0,get:function(){return a}});let r=n(95523),i=n(17428),o=n(51570);function a(e){let t=/^\/index(\/|$)/.test(e)&&!(0,i.isDynamicRoute)(e)?"/index"+e:"/"===e?"/index":(0,r.ensureLeadingSlash)(e);{let{posix:e}=n(15153),r=e.normalize(t);if(r!==t)throw new o.NormalizeError("Requested and resolved page mismatch: "+t+" "+r)}return t}},44673:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let r=n(16794),i=r._(n(2784)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},37832:function(){},276:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_355ef5', '__IBM_Plex_Mono_Fallback_355ef5'"},className:"__className_355ef5",variable:"__variable_355ef5"}},35957:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Sans_829fdc', '__IBM_Plex_Sans_Fallback_829fdc'"},className:"__className_829fdc",variable:"__variable_829fdc"}},15153:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?r=arguments[a]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(i=r+"/"+i,o=47===r.charCodeAt(0));return(i=n(i,!o),o)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;iu){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;47===f&&(c=d)}var h="";for(d=i+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return -1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){i=r+1;break}}else -1===l&&(a=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else -1===o&&(a=!1,o=r+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!o){r=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var a=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=n;--c){if(47===(i=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(0===s&&o?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(s,l)):(0===s&&o?(r.name=e.slice(1,a),r.base=e.slice(1,l)):(r.name=e.slice(s,a),r.base=e.slice(s,l)),r.ext=e.slice(a,l)),s>0?r.dir=e.slice(0,s-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(114);e.exports=i}()},16549:function(e,t){"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return i}});let n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],r=(e,t)=>{let n=e;return"string"==typeof t?n=e.toLocaleString(t):!0===t&&(n=e.toLocaleString()),n};function i(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);if((t=Object.assign({},t)).signed&&0===e)return" 0 B";let i=e<0,o=i?"-":t.signed?"+":"";if(i&&(e=-e),e<1){let n=r(e,t.locale);return o+n+" B"}let a=Math.min(Math.floor(Math.log10(e)/3),n.length-1);e=Number((e/Math.pow(1e3,a)).toPrecision(3));let s=r(e,t.locale),l=n[a];return o+s+" "+l}},95383:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getPageFiles",{enumerable:!0,get:function(){return o}});let r=n(7005),i=n(72190);function o(e,t){let n=(0,r.denormalizePagePath)((0,i.normalizePagePath)(t));return e.pages[n]||(console.warn(`Could not find files for ${n} in .next/build-manifest.json`),[])}},82809:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ESCAPE_REGEX:function(){return r},htmlEscapeJsonString:function(){return i}});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},r=/[&><\u2028\u2029]/g;function i(e){return e.replace(r,e=>n[e])}},79505:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isBlockedPage:function(){return i},cleanAmpPath:function(){return o},debounce:function(){return a}});let r=n(13150);function i(e){return r.BLOCKED_PAGES.includes(e)}function o(e){return e.match(/\?amp=(y|yes|true|1)/)&&(e=e.replace(/\?amp=(y|yes|true|1)&?/,"?")),e.match(/&=(y|yes|true|1)/)&&(e=e.replace(/&=(y|yes|true|1)/,"")),e=e.replace(/\?$/,"")}function a(e,t,n=1/0){let r,i,o;let a=0,s=0;function l(){let u=Date.now(),c=s+t-u;c<=0||a+n>=u?(r=void 0,e.apply(o,i)):r=setTimeout(l,c)}return function(...e){i=e,o=this,s=Date.now(),void 0===r&&(a=s,r=setTimeout(l,t))}}},331:function(e,t,n){n(31256)},97729:function(e,t,n){e.exports=n(37412)},96577:function(e,t,n){e.exports=n(81963)},39097:function(e,t,n){e.exports=n(13814)},82876:function(e,t,n){e.exports=n(55046)},5632:function(e,t,n){e.exports=n(60222)},24470:function(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},34406:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(a,"$2")}))}function d(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,n){for(var r=0,i=t.length,o=e;r>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},81432:function(e){e.exports={L:1,M:0,Q:3,H:2}},84695:function(e,t,n){var r=n(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var u=!1;o>>i&1)==1),a.getMask(t,r,s-l)&&(u=!u),this.modules[r][s-l]=u,-1==--i&&(o++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new o,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,o=Array(t.length),l=Array(t.length),u=0;u=0?p.get(m):0}}for(var v=0,f=0;f=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a.PATTERN000:return(t+n)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return n%3==0;case a.PATTERN011:return(t+n)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case a.PATTERN101:return t*n%2+t*n%3==0;case a.PATTERN110:return(t*n%2+t*n%3)%2==0;case a.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),n=0;n5&&(n+=3+o-5)}for(var r=0;r=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","size","title","xmlns"]);return o.default.createElement("svg",r({},s,{height:n,width:n,xmlns:a}),i?o.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,o.default[a]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,r({},f,{size:s}),p.map(function(e,r){return e.map(function(e,i){var o=Math.round(i*m),a=Math.round(r*m),s=Math.round((i+1)*m)-o,c=Math.round((r+1)*m)-a;return l.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:o,transformY:a})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},88965:function(e,t,n){"use strict";n.d(t,{Z:function(){return U}});var r,i,o,a,s,l,u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}"function"==typeof SuppressedError&&SuppressedError;var d=n(2784),f="right-scroll-bar-position",h="width-before-scroll-bar",p=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],a=!1,s={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=u({async:!0,ssr:!1},r),s),m=function(){},v=d.forwardRef(function(e,t){var n,r,i,o=d.useRef(null),a=d.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),s=a[0],l=a[1],f=e.forwardProps,h=e.children,v=e.className,g=e.removeScrollBar,y=e.enabled,x=e.shards,b=e.sideCar,w=e.noIsolation,E=e.inert,j=e.allowPinchZoom,k=e.as,_=void 0===k?"div":k,S=c(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),O=(n=[o,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,i.facade),C=u(u({},S),s);return d.createElement(d.Fragment,null,y&&d.createElement(b,{sideCar:p,removeScrollBar:g,shards:x,noIsolation:w,inert:E,setCallbacks:l,allowPinchZoom:!!j,lockRef:o}),f?d.cloneElement(d.Children.only(h),u(u({},C),{ref:O})):d.createElement(_,u({},C,{className:v,ref:O}),h))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:h,zeroRight:f};var g=function(e){var t=e.sideCar,n=c(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,u({},n))};g.isSideCarExport=!0;var y=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},x=function(){var e=y();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=x();return function(t){return e(t.styles,t.dynamic),null}},w={left:0,top:0,right:0,gap:0},E=function(e){return parseInt(e||"",10)||0},j=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[E(n),E(r),E(i)]},k=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=j(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},_=b(),S=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(f," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(h," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n right: 0 ").concat(r,";\n }\n \n .").concat(h," .").concat(h," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},O=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,o=d.useMemo(function(){return k(i)},[i]);return d.createElement(_,{styles:S(o,!t,i,n?"":"!important")})},C=!1;if("undefined"!=typeof window)try{var M=Object.defineProperty({},"passive",{get:function(){return C=!0,!0}});window.addEventListener("test",M,M),window.removeEventListener("test",M,M)}catch(e){C=!1}var A=!!C&&{passive:!1},P=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},T=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},N=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),R(e,n)){var r=D(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},R=function(e,t){return"v"===e?P(t):T(t)},D=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},L=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=D(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&R(e,l)&&(f+=v,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},F=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},V=function(e){return[e.deltaX,e.deltaY]},z=function(e){return e&&"current"in e?e.current:e},I=0,Z=[],B=(p.useMedium(function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),i=d.useState(I++)[0],o=d.useState(function(){return b()})[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;iMath.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=N(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=N(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return L(h,t,e,"h"===h?l:u,!0)},[]),l=d.useCallback(function(e){if(Z.length&&Z[Z.length-1]===o){var n="deltaY"in e?V(e):F(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(z).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),u=d.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=d.useCallback(function(e){n.current=F(e),r.current=void 0},[]),f=d.useCallback(function(t){u(t.type,V(t),t.target,s(t,e.lockRef.current))},[]),h=d.useCallback(function(t){u(t.type,F(t),t.target,s(t,e.lockRef.current))},[]);d.useEffect(function(){return Z.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,A),document.addEventListener("touchmove",l,A),document.addEventListener("touchstart",c,A),function(){Z=Z.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,A),document.removeEventListener("touchmove",l,A),document.removeEventListener("touchstart",c,A)}},[]);var p=e.removeScrollBar,m=e.inert;return d.createElement(d.Fragment,null,m?d.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?d.createElement(O,{gapMode:"margin"}):null)}),g),H=d.forwardRef(function(e,t){return d.createElement(v,u({},e,{ref:t,sideCar:B}))});H.classNames=v.classNames;var U=H},32718:function(e,t,n){var r,i=n(58085),o=n(41964),a=n(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return r=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(n,o,l){if(r++>100)throw r=0,Error("Call stack overflow for "+l);if(""===n)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,o="",a=t;r=s.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var l=i("(",")",a.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",n);o+=l.pre+u,a=l.post}return o+a}(n,l));if(c.length>1||n.indexOf("var(")>-1)return o+"("+n+")";var d=c[0]||"";"%"===d&&(n=n.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=n.replace(RegExp(d,"gi"),"");try{u=a.eval(f)}catch(e){return o+"("+n+")"}return"%"===d&&(u*=100),(o.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,l=r("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return n})(t,n).reduce(function(r,o){var a,s;return r.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,n,i),s,t)))},t)}},6692:function(e,t,n){let r=n(83128);e.exports=(r.__esModule?r:{default:r}).default},83128:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>a});let i=(r=n(37540))&&r.__esModule?r:{default:r};function o({version:e,from:t,to:n}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,n){"use strict";var r,i=n(34406);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{dim:()=>l,default:()=>u});let o=(r=n(24470))&&r.__esModule?r:{default:r},a=new Set;function s(e,t,n){(void 0===i||!i.env.JEST_WORKER_ID)&&(n&&a.has(n)||(n&&a.add(n),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return o.default.dim(e)}let u={info(e,t){s(o.default.bold(o.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var n=e.length,r=Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,n=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,r.useRef)({item:null,parsed:t}),d=(0,r.useSyncExternalStore)((0,r.useCallback)(t=>{let n=n=>{e===n&&t()};return o.add(n),()=>{o.delete(n)}},[e]),()=>{var n;let r=null!==(n=s(()=>localStorage.getItem(e)))&&void 0!==n?n:null;if(i.has(e))c.current={item:r,parsed:i.get(e)};else if(r!==c.current.item){let e;try{e=null===r?t:l(r)}catch(n){e=t}c.current={item:r,parsed:e}}return c.current.parsed},()=>t),f=(0,r.useCallback)(t=>{let n=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(n)),i.delete(e)}catch(t){i.set(e,n)}a(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&a(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,n]),(0,r.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),a(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},20452:function(e,t,n){"use strict";/** * @license React * use-sync-external-store-shim.production.min.js * @@ -65,7 +65,7 @@ PERFORMANCE OF THIS SOFTWARE. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n(2784),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},43100:function(e,t,n){"use strict";e.exports=n(20452)},24511:function(e,t,n){"use strict";n.d(t,{Rx:function(){return Y},Ry:function(){return em},Z_:function(){return W}});try{v=Map}catch(e){}try{g=Set}catch(e){}function r(e){return function e(t,n,i){if(!t||"object"!=typeof t||"function"==typeof t)return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(r);if(v&&t instanceof v)return new Map(Array.from(t.entries()));if(g&&t instanceof g)return new Set(Array.from(t.values()));if(t instanceof Object){n.push(t);var o=Object.create(t);for(var a in i.push(o),t){var s=n.findIndex(function(e){return e===t[a]});o[a]=s>-1?i[s]:e(t[a],n,i)}return o}return t}(e,[],[])}let i=Object.prototype.toString,o=Error.prototype.toString,a=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",l=/^Symbol\((.*)\)(.*)$/;function u(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let n=typeof e;if("number"===n)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return s.call(e).replace(l,"Symbol($1)");let r=i.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+o.call(e)+"]":"RegExp"===r?a.call(e):null}function c(e,t){let n=u(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=u(this[e],t);return null!==r?r:n},2)}let d={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{let i=null!=r&&r!==n,o=`${e} must be a \`${t}\` type, but the final value was: \`${c(n,!0)}\``+(i?` (cast from the value \`${c(r,!0)}\`).`:".");return null===n&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},f={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},h={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},p={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},m={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:d,string:f,number:h,date:p,object:m,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"}});var v,g,y=n(93352),b=n.n(y),x=e=>e&&e.__isYupSchema__,w=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!b()(t,"is"))throw TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,o="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),a=o(...e)?r:i;if(a)return"function"==typeof a?a(n):n.concat(a.resolve(t))}}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!x(r))throw TypeError("conditions must return a schema object");return r.resolve(t)}};function E(e){return null==e?[]:[].concat(e)}function k(){return(k=Object.assign||function(e){for(var t=1;tc(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],E(e).forEach(e=>{_.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,_)}}let S=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function O(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:l}=e,u=S(t),c=r.length,d=[];if(a=a||[],!c)return a.length?u(new _(a,o,l)):u(null,o);for(let e=0;e=0||(i[n]=e[n]);return i}(t,["value","path","label","options","originalValue","sync"]),{name:d,test:f,params:h,message:p}=e,{parent:m,context:v}=s;function g(e){return T.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=M()(N({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),n=new _(_.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let b=N({path:o,parent:m,type:d,createError:y,resolve:g,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(b,i,b)).then(e=>{_.isError(e)?n(e):e?n(null,e):n(y())}).catch(n)}catch(e){n(e)}return}try{var x;if(r=f.call(b,i,b),"function"==typeof(null==(x=r)?void 0:x.then))throw Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){n(e);return}_.isError(r)?n(r):r?n(null,r):n(y())}return t.OPTIONS=e,t}T.prototype.__isYupRef=!0;let D=e=>e.substr(0,e.length-1).substr(1);class L{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let e=[];for(let t of this.list)e.push(t);for(let[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,n)=>t.concat(T.isRef(n)?e(n):n),[])}add(e){T.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){T.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new L;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let n=this.clone();return e.list.forEach(e=>n.add(e)),e.refs.forEach(e=>n.add(e)),t.list.forEach(e=>n.delete(e)),t.refs.forEach(e=>n.delete(e)),n}}function F(){return(F=Object.assign||function(e){for(var t=1;t{this.typeError(d.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=F({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=F({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=r(F({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),n=F({},this.spec,t.spec);return t.spec=n,t._typeError||(t._typeError=this._typeError),t._whitelistError||(t._whitelistError=this._whitelistError),t._blacklistError||(t._blacklistError=this._blacklistError),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return!!this.spec.nullable&&null===e||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;(t=t.clone()).conditions=[],t=(t=n.reduce((t,n)=>n.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let n=this.resolve(F({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=c(e),o=c(r);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". + */var r=n(2784),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},43100:function(e,t,n){"use strict";e.exports=n(20452)},24511:function(e,t,n){"use strict";n.d(t,{Rx:function(){return Y},Ry:function(){return em},Z_:function(){return W}});try{v=Map}catch(e){}try{g=Set}catch(e){}function r(e){return function e(t,n,i){if(!t||"object"!=typeof t||"function"==typeof t)return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(r);if(v&&t instanceof v)return new Map(Array.from(t.entries()));if(g&&t instanceof g)return new Set(Array.from(t.values()));if(t instanceof Object){n.push(t);var o=Object.create(t);for(var a in i.push(o),t){var s=n.findIndex(function(e){return e===t[a]});o[a]=s>-1?i[s]:e(t[a],n,i)}return o}return t}(e,[],[])}let i=Object.prototype.toString,o=Error.prototype.toString,a=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",l=/^Symbol\((.*)\)(.*)$/;function u(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let n=typeof e;if("number"===n)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return s.call(e).replace(l,"Symbol($1)");let r=i.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+o.call(e)+"]":"RegExp"===r?a.call(e):null}function c(e,t){let n=u(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=u(this[e],t);return null!==r?r:n},2)}let d={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{let i=null!=r&&r!==n,o=`${e} must be a \`${t}\` type, but the final value was: \`${c(n,!0)}\``+(i?` (cast from the value \`${c(r,!0)}\`).`:".");return null===n&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},f={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},h={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},p={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},m={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:d,string:f,number:h,date:p,object:m,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"}});var v,g,y=n(93352),x=n.n(y),b=e=>e&&e.__isYupSchema__,w=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!x()(t,"is"))throw TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,o="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),a=o(...e)?r:i;if(a)return"function"==typeof a?a(n):n.concat(a.resolve(t))}}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!b(r))throw TypeError("conditions must return a schema object");return r.resolve(t)}};function E(e){return null==e?[]:[].concat(e)}function j(){return(j=Object.assign||function(e){for(var t=1;tc(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],E(e).forEach(e=>{_.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,_)}}let S=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function O(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:l}=e,u=S(t),c=r.length,d=[];if(a=a||[],!c)return a.length?u(new _(a,o,l)):u(null,o);for(let e=0;e=0||(i[n]=e[n]);return i}(t,["value","path","label","options","originalValue","sync"]),{name:d,test:f,params:h,message:p}=e,{parent:m,context:v}=s;function g(e){return T.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=M()(N({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),n=new _(_.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let x=N({path:o,parent:m,type:d,createError:y,resolve:g,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(x,i,x)).then(e=>{_.isError(e)?n(e):e?n(null,e):n(y())}).catch(n)}catch(e){n(e)}return}try{var b;if(r=f.call(x,i,x),"function"==typeof(null==(b=r)?void 0:b.then))throw Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){n(e);return}_.isError(r)?n(r):r?n(null,r):n(y())}return t.OPTIONS=e,t}T.prototype.__isYupRef=!0;let D=e=>e.substr(0,e.length-1).substr(1);class L{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let e=[];for(let t of this.list)e.push(t);for(let[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,n)=>t.concat(T.isRef(n)?e(n):n),[])}add(e){T.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){T.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new L;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let n=this.clone();return e.list.forEach(e=>n.add(e)),e.refs.forEach(e=>n.add(e)),t.list.forEach(e=>n.delete(e)),t.refs.forEach(e=>n.delete(e)),n}}function F(){return(F=Object.assign||function(e){for(var t=1;t{this.typeError(d.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=F({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=F({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=r(F({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),n=F({},this.spec,t.spec);return t.spec=n,t._typeError||(t._typeError=this._typeError),t._whitelistError||(t._whitelistError=this._whitelistError),t._blacklistError||(t._blacklistError=this._blacklistError),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return!!this.spec.nullable&&null===e||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;(t=t.clone()).conditions=[],t=(t=n.reduce((t,n)=>n.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let n=this.resolve(F({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=c(e),o=c(r);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". attempted value: ${i} -`+(o!==i?`result of cast: ${o}`:""))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((t,n)=>n.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,F({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),O({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);O({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(F({},t,{value:e}));return"function"==typeof n?r._validate(e,t,n):new Promise((n,i)=>r._validate(e,t,(e,t)=>{e?i(e):n(t)}))}validateSync(e,t){let n;return this.resolve(F({},t,{value:e}))._validate(e,F({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(_.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(_.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):r(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=d.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=d.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=d.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let n=this.clone(),r=R(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==r.OPTIONS.test),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=E(e).map(e=>new T(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new w(r,t)),n}typeError(e){let t=this.clone();return t._typeError=R({message:e,name:"typeError",test(e){return!!(void 0===e||this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=d.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=R({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e,t=d.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=R({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:n}=e.spec,r={meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,n)=>n.findIndex(t=>t.name===e.name)===t)};return r}}for(let e of(V.prototype.__isYupSchema__=!0,["validate","validateSync"]))V.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:o,schema:a}=function(e,t,n,r=n){let i,o,a;return t?((0,A.forEach)(t,(s,l,u)=>{let c=l?D(s):s;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=u?parseInt(c,10):0;if(n&&r>=n.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[r],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return a[e](i&&i[o],F({},r,{parent:i,path:t}))};for(let e of["equals","is"])V.prototype[e]=V.prototype.oneOf;for(let e of["not","nope"])V.prototype[e]=V.prototype.notOneOf;V.prototype.optional=V.prototype.notRequired,V.prototype;var I=e=>null==e;let z=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,Z=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,B=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,H=e=>I(e)||e===e.trim(),U=({}).toString();function W(){return new q}class q extends V{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;let t=null!=e&&e.toString?e.toString():e;return t===U?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=f.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return I(t)||t.length===this.resolve(e)}})}min(e,t=f.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return I(t)||t.length>=this.resolve(e)}})}max(e,t=f.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return I(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:n,name:r}=t:n=t),this.test({name:r||"matches",message:n||f.matches,params:{regex:e},test:t=>I(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(z,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(Z,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(B,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=f.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:H})}lowercase(e=f.lowercase){return this.transform(e=>I(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>I(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>I(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>I(e)||e===e.toUpperCase()})}}W.prototype=q.prototype;let $=e=>e!=+e;function Y(){return new G}class G extends V{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(e){let t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!$(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return I(t)||t>=this.resolve(e)}})}max(e,t=h.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return I(t)||t<=this.resolve(e)}})}lessThan(e,t=h.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return I(t)||tthis.resolve(e)}})}positive(e=h.positive){return this.moreThan(0,e)}negative(e=h.negative){return this.lessThan(0,e)}integer(e=h.integer){return this.test({name:"integer",message:e,test:e=>I(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>I(e)?e:0|e)}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(t=>I(t)?t:Math[e](t))}}Y.prototype=G.prototype;var K=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let X=new Date(""),Q=e=>"[object Date]"===Object.prototype.toString.call(e);function J(){return new ee}class ee extends V{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=K.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,(void 0===n[8]||""===n[8])&&(void 0===n[9]||""===n[9])?t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7]):("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?X:new Date(e)})})}_typeCheck(e){return Q(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(T.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=p.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return I(e)||e>=this.resolve(n)}})}max(e,t=p.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return I(e)||e<=this.resolve(n)}})}}ee.INVALID_DATE=X,J.prototype=ee.prototype,J.INVALID_DATE=X;var et=n(57370),en=n.n(et),er=n(96009),ei=n.n(er),eo=n(19950),ea=n.n(eo),es=n(95159),el=n.n(es);function eu(e,t){let n=1/0;return e.some((e,r)=>{var i;if((null==(i=t.path)?void 0:i.indexOf(e))!==-1)return n=r,!0}),n}function ec(e){return(t,n)=>eu(e,t)-eu(e,n)}function ed(){return(ed=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),eh=ec([]);class ep extends V{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eh,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return ef(e)||"function"==typeof e}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),s={},l=ed({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let n=i[e],a=b()(r,e);if(n){let i;let o=r[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(n=n.resolve({value:o,context:t.context,parent:s}))?n.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!_.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!ef(u)){n(r[0]||null,u);return}a=a||u,O({sync:i,tests:this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];if(s&&"validate"in s){s.validate(u[e],ed({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[e]}),r);return}r(null)}),value:u,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)})}clone(e){let t=super.clone(e);return t.fields=ed({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){let r=n[e];void 0===r?n[e]=t:r instanceof V&&t instanceof V&&(n[e]=t.concat(r))}return t.withMutation(()=>t.shape(n,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let n=this.fields[t];e[t]="default"in n?n.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=ec(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,A.split)(e)[0];r.add(o),i.has(`${t}-${o}`)||n.push([t,o])}for(let t in e)if(b()(e,t)){let n=e[t];r.add(t),T.isRef(n)&&n.isSibling?o(n.path,t):x(n)&&"deps"in n&&n.deps.forEach(e=>o(e,t))}return el().array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){let t={};for(let n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),n=t.fields;for(let r of(t.fields={},e))delete n[r];return t.withMutation(()=>t.shape(n))}from(e,t,n){let r=(0,A.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return b()(i,e)&&(o=ed({},i),n||delete o[e],o[t]=r(i)),o})}noUnknown(e=!0,t=m.noUnknown){"string"==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let n;if(null==t)return!0;let r=(n=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===n.indexOf(e)));return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=m.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&ea()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(ei())}snakeCase(){return this.transformKeys(en())}constantCase(){return this.transformKeys(e=>en()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=M()(this.fields,e=>e.describe()),e}}function em(e){return new ep(e)}em.prototype=ep.prototype},44868:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>b,AnimatedArray:()=>C,AnimatedObject:()=>O,AnimatedString:()=>k,AnimatedValue:()=>w,createHost:()=>I,getAnimated:()=>v,getAnimatedType:()=>P,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>g}),e.exports=d(a({},"__esModule",{value:!0}),f);var h=n(6901),p=Symbol.for("Animated:node"),m=e=>!!e&&e[p]===e,v=e=>e&&e[p],g=(e,t)=>(0,h.defineHidden)(e,p,t),y=e=>e&&e[p]&&e[p].getPayload(),b=class{constructor(){g(this,this)}getPayload(){return this.payload||[]}},x=n(6901),w=class extends b{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,x.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new w(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return x.is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,x.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},E=n(6901),k=class extends w{constructor(e){super(0),this._string=null,this._toString=(0,E.createInterpolator)({output:[e,e]})}static create(e){return new k(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(E.is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=(0,E.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},j=n(6901),_=n(6901),S={dependencies:null},O=class extends b{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,_.eachProp)(this.source,(n,r)=>{m(n)?t[r]=n.getValue(e):(0,_.hasFluidValue)(n)?t[r]=(0,_.getFluidValue)(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,_.each)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,_.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){S.dependencies&&(0,_.hasFluidValue)(e)&&S.dependencies.add(e);let t=y(e);t&&(0,_.each)(t,e=>this.add(e))}},C=class extends O{constructor(e){super(e)}static create(e){return new C(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(M)),!0)}};function M(e){return((0,j.isAnimatedString)(e)?k:w).create(e)}var A=n(6901);function P(e){let t=v(e);return t?t.constructor:A.is.arr(e)?C:(0,A.isAnimatedString)(e)?k:w}var T=n(6901),N=(i=null!=(r=n(2784))?o(u(r)):{},d(r&&r.__esModule?i:a(i,"default",{value:r,enumerable:!0}),r)),R=n(2784),D=n(6901),L=(e,t)=>{let n=!D.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,R.forwardRef)((r,i)=>{var o;let a;let s=(0,R.useRef)(null),l=n&&(0,R.useCallback)(e=>{s.current=(i&&(D.is.fun(i)?i(e):i.current=e),e)},[i]),[u,c]=(o=r,a=new Set,S.dependencies=a,o.style&&(o={...o,style:t.createAnimatedStyle(o.style)}),o=new O(o),S.dependencies=null,[o,a]),d=(0,D.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new F(f,c),p=(0,R.useRef)();(0,D.useIsomorphicLayoutEffect)(()=>(p.current=h,(0,D.each)(c,e=>(0,D.addFluidObserver)(e,h)),()=>{p.current&&((0,D.each)(p.current.deps,e=>(0,D.removeFluidObserver)(e,p.current)),D.raf.cancel(p.current.update))})),(0,R.useEffect)(f,[]),(0,D.useOnce)(()=>()=>{let e=p.current;(0,D.each)(e.deps,t=>(0,D.removeFluidObserver)(t,e))});let m=t.getComponentProps(u.getValue());return N.createElement(e,{...m,ref:l})})},F=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&D.raf.write(this.update)}},V=Symbol.for("AnimatedComponent"),I=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new O(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=z(e)||"Anonymous";return(e=T.is.str(e)?o[e]||(o[e]=L(e,i)):e[V]||(e[V]=L(e,i))).displayName=`Animated(${t})`,e};return(0,T.eachProp)(e,(t,n)=>{T.is.arr(e)&&(n=z(t)),o[n]=o(t)}),{animated:o}},z=e=>T.is.str(e)?e:e&&T.is.str(e.displayName)?e.displayName:T.is.fun(e)&&e.name||null},22360:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(h,{BailSignal:()=>Q,Controller:()=>eE,FrameValue:()=>ei,Globals:()=>tl.Globals,Interpolation:()=>tn,Spring:()=>e5,SpringContext:()=>eN,SpringRef:()=>eL,SpringValue:()=>ed,Trail:()=>e8,Transition:()=>e7,config:()=>F,createInterpolator:()=>tc.createInterpolator,easings:()=>tc.easings,inferTo:()=>j,interpolate:()=>ts,to:()=>ta,update:()=>tu,useChain:()=>A,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eQ,useSpring:()=>eV,useSpringRef:()=>eZ,useSpringValue:()=>eH,useSprings:()=>eF,useTrail:()=>eW,useTransition:()=>eG}),e.exports=d(a({},"__esModule",{value:!0}),h);var p=n(6901),m=n(6901);function v(e,...t){return m.is.fun(e)?e(...t):e}var g=(e,t)=>!0===e||!!(t&&e&&(m.is.fun(e)?e(t):(0,m.toArray)(e).includes(t))),y=(e,t)=>m.is.obj(e)?t&&e[t]:e,b=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,x=e=>e,w=(e,t=x)=>{let n=E;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);m.is.und(n)||(r[i]=n)}return r},E=["config","onProps","onStart","onChange","onPause","onResume","onRest"],k={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function j(e){let t=function(e){let t={},n=0;if((0,m.eachProp)(e,(e,r)=>{k[r]||(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return(0,m.eachProp)(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function _(e){return e=(0,m.getFluidValue)(e),m.is.arr(e)?e.map(_):(0,m.isAnimatedString)(e)?m.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function S(e){for(let t in e)return!0;return!1}function O(e){return m.is.fun(e)||m.is.arr(e)&&m.is.obj(e[0])}function C(e,t){e.ref?.delete(e),t?.delete(e)}function M(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function A(e,t,n=1e3){(0,p.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,p.each)(e,(e,i)=>{let o=e.current;if(o.length){let a=n*t[i];isNaN(a)?a=r:r=a,(0,p.each)(o,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>a+v(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();(0,p.each)(e,e=>{let n=e.current;if(n.length){let r=n.map(e=>{let t=e.queue;return e.queue=[],t});t=t.then(()=>((0,p.each)(n,(e,t)=>(0,p.each)(r[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var P=n(6901),T=n(2784),N=n(6901),R=n(6901),D=n(25447),L=n(6901),F={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},V={...F.default,mass:1,damping:1,easing:L.easings.linear,clamp:!1},I=class{constructor(){this.velocity=0,Object.assign(this,V)}};function z(e,t){if(L.is.und(t.decay)){let n=!L.is.und(t.tension)||!L.is.und(t.friction);!n&&L.is.und(t.frequency)&&L.is.und(t.damping)&&L.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Z=[],B=class{constructor(){this.changed=!1,this.values=Z,this.toValues=null,this.fromValues=Z,this.config=new I,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u,c=g(n.cancel??r?.cancel,t);if(c)h();else{H.is.und(n.pause)||(i.paused=g(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||g(e,t)),l=v(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-H.raf.now()}function f(){l>0&&!H.Globals.skipAnimation?(i.delayed=!0,u=H.raf.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var W=n(6901),q=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?G(e.get()):t.every(e=>e.noop)?$(e.get()):Y(e.get(),t.every(e=>e.finished)),$=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Y=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),G=e=>({value:e,cancelled:!0,finished:!1});function K(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let u=w(t,(e,t)=>"onRest"===t?void 0:e),c,d,f=new Promise((e,t)=>(c=e,d=t)),h=e=>{let t=i<=(n.cancelId||0)&&G(r)||i!==n.asyncId&&Y(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let o=new Q,a=new J;return(async()=>{if(W.Globals.skipAnimation)throw X(n),a.result=Y(r,!1),d(a),a;h(o);let s=W.is.obj(e)?{...e}:{...t,to:e};s.parentId=i,(0,W.eachProp)(u,(e,t)=>{W.is.und(s[t])&&(s[t]=e)});let l=await r.start(s);return h(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(W.Globals.skipAnimation)return X(n),Y(r,!1);try{let t;t=W.is.arr(e)?(async e=>{for(let t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(c),f]),m=Y(r.get(),!0,!1)}catch(e){if(e instanceof Q)m=e.result;else if(e instanceof J)m=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return W.is.fun(a)&&W.raf.batchedUpdates(()=>{a(m,r,r.item)}),m})():l}function X(e,t){(0,W.flush)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Q=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},J=class extends Error{constructor(){super("SkipAnimationSignal")}},ee=n(6901),et=n(25447),en=e=>e instanceof ei,er=1,ei=class extends ee.FluidValue{constructor(){super(...arguments),this.id=er++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,et.getAnimated)(this);return e&&e.getValue()}to(...e){return ee.Globals.to(this,e)}interpolate(...e){return(0,ee.deprecateInterpolate)(),ee.Globals.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){(0,ee.callFluidObservers)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ee.frameLoop.sort(this),(0,ee.callFluidObservers)(this,{type:"priority",parent:this,priority:e})}},eo=Symbol.for("SpringPhase"),ea=e=>(1&e[eo])>0,es=e=>(2&e[eo])>0,el=e=>(4&e[eo])>0,eu=(e,t)=>t?e[eo]|=3:e[eo]&=-3,ec=(e,t)=>t?e[eo]|=4:e[eo]&=-5,ed=class extends ei{constructor(e,t){if(super(),this.animation=new B,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!R.is.und(e)||!R.is.und(t)){let n=R.is.obj(e)?{...e}:{...t,from:e};R.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(es(this)||this._state.asyncTo)||el(this)}get goal(){return(0,R.getFluidValue)(this.animation.to)}get velocity(){let e=(0,D.getAnimated)(this);return e instanceof D.AnimatedValue?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return ea(this)}get isAnimating(){return es(this)}get isPaused(){return el(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=(0,D.getPayload)(r.to);!a&&(0,R.hasFluidValue)(r.to)&&(i=(0,R.toArray)((0,R.getFluidValue)(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==D.AnimatedString?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[l],i=null!=s.v0?s.v0:s.v0=R.is.arr(o.velocity)?o.velocity[l]:o.velocity,a,f=o.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;let t=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!R.is.und(r),h=n==u?s.v0>0:nt)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(a=-a*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*a)/o.mass;a+=1*e,d+=1*a}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(o.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),a=((d=n+o.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=(0,D.getAnimated)(this),l=s.getValue();if(t){let e=(0,R.getFluidValue)(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return R.raf.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(es(this)){let{to:e,config:t}=this.animation;R.raf.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return R.is.und(e)?(n=this.queue||[],this.queue=[]):n=[R.is.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>q(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),X(this._state,e&&this._lastCallId),R.raf.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=R.is.obj(n)?n[t]:n)||O(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return ea(this)||(e.reverse&&([n,r]=[r,n]),r=(0,R.getFluidValue)(r),R.is.und(r)?(0,D.getAnimated)(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,w(e,(e,t)=>/^on/.test(t)?y(e,n):e)),eg(this,e,"onProps"),ey(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{el(this)||(ec(this,!0),(0,R.flushCalls)(o.pauseQueue),ey(this,"onPause",Y(this,ef(this,this.animation.to)),this))},resume:()=>{el(this)&&(ec(this,!1),es(this)&&this._resume(),(0,R.flushCalls)(o.resumeQueue),ey(this,"onResume",Y(this,ef(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=eh(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(G(this));let r=!R.is.und(e.to),i=!R.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(G(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||R.is.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!(0,R.isEqual)(d,u);f&&(s.from=d),d=(0,R.getFluidValue)(d);let h=!(0,R.isEqual)(c,l);h&&this._focus(c);let p=O(t.to),{config:m}=s,{decay:y,velocity:b}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(z(n={...n},t),t={...n,...t}),z(e,t),Object.assign(e,t),V)null==e[r]&&(e[r]=V[r]);let{frequency:r,damping:i}=e,{mass:o}=e;L.is.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,v(t.config,o),t.config!==a.config?v(a.config,o):void 0);let x=(0,D.getAnimated)(this);if(!x||R.is.und(c))return n(Y(this,!0));let w=R.is.und(t.reset)?i&&!t.default:!R.is.und(d)&&g(t.reset,o),E=w?d:this.get(),k=_(c),j=R.is.num(k)||R.is.arr(k)||(0,R.isAnimatedString)(k),S=!p&&(!j||g(a.immediate||t.immediate,o));if(h){let e=(0,D.getAnimatedType)(c);if(e!==x.constructor){if(S)x=this._set(k);else throw Error(`Cannot animate between ${x.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let C=x.constructor,M=(0,R.hasFluidValue)(c),A=!1;if(!M){let e=w||!ea(this)&&f;(h||e)&&(M=!(A=(0,R.isEqual)(_(E),k))),((0,R.isEqual)(s.immediate,S)||S)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,b)||(M=!0)}if(A&&es(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,R.hasFluidValue)(l))&&(s.values=x.getPayload(),s.toValues=(0,R.hasFluidValue)(c)?null:C==D.AnimatedString?[1]:(0,R.toArray)(k)),s.immediate==S||(s.immediate=S,S||w||this._set(l)),M)){let{onRest:e}=s;(0,R.each)(ev,e=>eg(this,t,e));let r=Y(this,ef(this,l));(0,R.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&R.raf.batchedUpdates(()=>{s.changed=!w,e?.(r,this),w?v(a.onRest,r):s.onStart?.(r,this)})}w&&this._set(E),p?n(K(t.to,t,this._state,this)):M?this._start():es(this)&&!h?this._pendingCalls.add(n):n($(E))}_focus(e){let t=this.animation;e!==t.to&&((0,R.getFluidObservers)(this)&&this._detach(),t.to=e,(0,R.getFluidObservers)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,R.hasFluidValue)(t)&&((0,R.addFluidObserver)(t,this),en(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,R.hasFluidValue)(e)&&(0,R.removeFluidObserver)(e,this)}_set(e,t=!0){let n=(0,R.getFluidValue)(e);if(!R.is.und(n)){let e=(0,D.getAnimated)(this);if(!e||!(0,R.isEqual)(n,e.getValue())){let r=(0,D.getAnimatedType)(n);e&&e.constructor==r?e.setValue(n):(0,D.setAnimated)(this,r.create(n)),e&&R.raf.batchedUpdates(()=>{this._onChange(n,t)})}}return(0,D.getAnimated)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,ey(this,"onStart",Y(this,ef(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),v(this.animation.onChange,e,this)),v(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;(0,D.getAnimated)(this).reset((0,R.getFluidValue)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),es(this)||(eu(this,!0),el(this)||this._resume())}_resume(){R.Globals.skipAnimation?this.finish():R.frameLoop.start(this)}_stop(e,t){if(es(this)){eu(this,!1);let n=this.animation;(0,R.each)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,R.callFluidObservers)(this,{type:"idle",parent:this});let r=t?G(this.get()):Y(this.get(),ef(this,e??n.to));(0,R.flushCalls)(this._pendingCalls,r),n.changed&&(n.changed=!1,ey(this,"onRest",r,this))}}};function ef(e,t){let n=_(t),r=_(e.get());return(0,R.isEqual)(r,n)}function eh(e,t=e.loop,n=e.to){let r=v(t);if(r){let i=!0!==r&&j(r),o=(i||e).reverse,a=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!o||O(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function ep(e){let{to:t,from:n}=e=j(e),r=new Set;return R.is.obj(t)&&em(t,r),R.is.obj(n)&&em(n,r),e.keys=r.size?Array.from(r):null,e}function em(e,t){(0,R.eachProp)(e,(e,n)=>null!=e&&t.add(n))}var ev=["onStart","onRest","onChange","onPause","onResume"];function eg(e,t,n){e.animation[n]=t[n]!==b(t,n)?y(t[n],e.key):void 0}function ey(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var eb=n(6901),ex=["onStart","onChange","onRest"],ew=1,eE=class{constructor(e,t){this.id=ew++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];eb.is.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ep(e)),this}start(e){let{queue:t}=this;return e?t=(0,eb.toArray)(e).map(ep):this.queue=[],this._flush?this._flush(this,t):(eM(this,t),ek(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,eb.each)((0,eb.toArray)(t),t=>n[t].stop(!!e))}else X(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(eb.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,eb.each)((0,eb.toArray)(e),e=>t[e].pause())}return this}resume(e){if(eb.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,eb.each)((0,eb.toArray)(e),e=>t[e].resume())}return this}each(e){(0,eb.eachProp)(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,(0,eb.flush)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&(0,eb.flush)(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,(0,eb.flush)(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}eb.raf.onFrame(this._onFrame)}};function ek(e,t){return Promise.all(t.map(t=>ej(e,t))).then(t=>q(e,t))}async function ej(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=eb.is.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=eb.is.arr(i)||eb.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):(0,eb.each)(ex,n=>{let r=t[n];if(eb.is.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,(0,eb.flushCalls)(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===b(t,"cancel");(c||h&&d.asyncId)&&f.push(U(++e._lastAsyncId,{props:t,state:d,actions:{pause:eb.noop,resume:eb.noop,start(t,n){h?(X(d,e._lastAsyncId),n(G(e))):(t.onRest=s,n(K(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=eh(t,a,i);if(n)return eM(e,[n]),ej(e,n,!0)}return l&&eb.raf.batchedUpdates(()=>l(p,e,e.item)),p}function e_(e,t){let n={...e.springs};return t&&(0,eb.each)((0,eb.toArray)(t),e=>{eb.is.und(e.keys)&&(e=ep(e)),eb.is.obj(e.to)||(e={...e,to:void 0}),eC(n,e,e=>eO(e))}),eS(e,n),n}function eS(e,t){(0,eb.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,eb.addFluidObserver)(t,e))})}function eO(e,t){let n=new ed;return n.key=e,t&&(0,eb.addFluidObserver)(n,t),n}function eC(e,t,n){t.keys&&(0,eb.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eM(e,t){(0,eb.each)(t,t=>{eC(e.springs,t,t=>eO(t,e))})}var eA=f(n(2784)),eP=n(2784),eT=n(6901),eN=({children:e,...t})=>{let n=(0,eP.useContext)(eR),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eT.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=eR;return eA.createElement(o,{value:t},e)},eR=(Object.assign(eN,eA.createContext({})),eN.Provider._context=eN,eN.Consumer._context=eN,eN);eN.Provider=eR.Provider,eN.Consumer=eR.Consumer;var eD=n(6901),eL=()=>{let e=[],t=function(t){(0,eD.deprecateDirectCall)();let r=[];return(0,eD.each)(e,(e,i)=>{if(eD.is.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return(0,eD.each)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,eD.each)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,eD.each)(e,(e,n)=>{let r=eD.is.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return(0,eD.each)(e,(e,r)=>{if(eD.is.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return(0,eD.each)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,eD.each)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return eD.is.fun(e)?e(n,t):e};return t._getProps=n,t};function eF(e,t,n){let r=N.is.fun(t)&&t;r&&!n&&(n=[]);let i=(0,T.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),o=(0,T.useRef)(0),a=(0,N.useForceUpdate)(),s=(0,T.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=e_(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{eS(e,n),s.queue.push(()=>{r(ek(e,t))}),a()}):ek(e,t)}}),[]),l=(0,T.useRef)([...s.ctrls]),u=[],c=(0,N.usePrev)(e)||0;function d(e,n){for(let i=e;i{(0,N.each)(l.current.slice(e,c),e=>{C(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,T.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>e_(e,u[t])),h=(0,T.useContext)(eN),p=(0,N.usePrev)(h),m=h!==p&&S(h);(0,N.useIsomorphicLayoutEffect)(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],(0,N.each)(e,e=>e())),(0,N.each)(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(M(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,N.useOnce)(()=>()=>{(0,N.each)(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}function eV(e,t){let n=P.is.fun(e),[[r],i]=eF(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var eI=n(2784),ez=()=>eL(),eZ=()=>(0,eI.useState)(ez)[0],eB=n(6901),eH=(e,t)=>{let n=(0,eB.useConstant)(()=>new ed(e,t));return(0,eB.useOnce)(()=>()=>{n.stop()}),n},eU=n(6901);function eW(e,t,n){let r=eU.is.fun(t)&&t;r&&!n&&(n=[]);let i=!0,o,a=eF(e,(e,n)=>{let a=r?r(e,n):t;return o=a.ref,i=i&&a.reverse,a},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(a[1].current,(e,t)=>{let n=a[1].current[t+(i?1:-1)];if(M(e,o),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=o??a[1];return e._getProps=(t,n,r)=>{let i=eU.is.fun(t)?t(r,n):t;if(i){let t=e.current[r+(i.reverse?1:-1)];return t&&(i.to=t.springs),i}},a}return a[0]}var eq=f(n(2784)),e$=n(2784),eY=n(6901);function eG(e,t,n){let r=eY.is.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,e$.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),h=(0,eY.toArray)(e),p=[],m=(0,e$.useRef)(null),g=i?null:m.current;(0,eY.useIsomorphicLayoutEffect)(()=>{m.current=p}),(0,eY.useOnce)(()=>((0,eY.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eY.each)(m.current,e=>{e.expired&&clearTimeout(e.expirationId),C(e.ctrl,f),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):eK++})}return eY.is.und(n)?e:eY.is.fun(n)?e.map(n):(0,eY.toArray)(n)}(h,r?r():t,g),b=i&&m.current||[];(0,eY.useIsomorphicLayoutEffect)(()=>(0,eY.each)(b,({ctrl:e,item:t,key:n})=>{C(e,f),v(u,t,n)}));let x=[];if(g&&(0,eY.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=x[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eY.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new eE},p[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;(0,eY.each)(x,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eY.is.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let E=-a,k=(0,eY.useForceUpdate)(),_=w(t),O=new Map,A=(0,e$.useRef)(new Map),P=(0,e$.useRef)(!1);(0,eY.each)(p,(e,n)=>{let i=e.key,o=e.phase,u=r?r():t,f,h,p=v(u.delay||0,i);if("mount"==o)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=o){if(e)f=u.leave,h="leave";else{if(!(f=u.update))return;h="update"}}else{if(e)return;f=u.enter,h="enter"}}if(f=v(f,e.item,n),!(f=eY.is.obj(f)?j(f):{to:f}).config){let t=d||_.config;f.config=v(t,e.item,n,h)}E+=a;let b={..._,delay:p+E,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eY.is.und(b.from)){let i=r?r():t,o=eY.is.und(i.initial)||g?i.from:i.initial;b.from=v(o,e.item,n)}let{onResolve:x}=b;b.onResolve=e=>{v(x,e);let t=m.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&"update"!=n.phase)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=v(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(k,r));return}}}e&&t.some(e=>e.expired)&&(A.current.delete(n),l&&(P.current=!0),k())}};let w=e_(e.ctrl,b);"leave"===h&&l?A.current.set(e,{phase:h,springs:w,payload:b}):O.set(e,{phase:h,springs:w,payload:b})});let T=(0,e$.useContext)(eN),N=(0,eY.usePrev)(T),R=T!==N&&S(T);(0,eY.useIsomorphicLayoutEffect)(()=>{R&&(0,eY.each)(p,e=>{e.ctrl.start({default:T})})},[T]),(0,eY.each)(O,(e,t)=>{if(A.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eY.useIsomorphicLayoutEffect)(()=>{(0,eY.each)(A.current.size?A.current:O,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:T}),t&&(M(r,t.ref),(r.ref||f)&&!P.current?r.update(t):(r.start(t),P.current&&(P.current=!1)))})},i?void 0:n);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,n)=>{let{springs:r}=O.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eq.createElement(i.type,{...i.props,key:eY.is.str(t.key)||eY.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eK=1,eX=n(6901),eQ=({container:e,...t}={})=>{let[n,r]=eV(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eX.useIsomorphicLayoutEffect)(()=>{let t=(0,eX.onScroll)(({x:e,y:t})=>{r.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})},{container:e?.current||void 0});return()=>{(0,eX.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eJ=n(6901),e0=({container:e,...t})=>{let[n,r]=eV(()=>({width:0,height:0,...t}),[]);return(0,eJ.useIsomorphicLayoutEffect)(()=>{let t=(0,eJ.onResize)(({width:e,height:t})=>{r.start({width:e,height:t,immediate:0===n.width.get()||0===n.height.get()})},{container:e?.current||void 0});return()=>{(0,eJ.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e1=n(2784),e2=n(6901),e4={any:0,all:1};function e3(e,t){let[n,r]=(0,e1.useState)(!1),i=(0,e1.useRef)(),o=e2.is.fun(e)&&e,{to:a={},from:s={},...l}=o?o():{},u=o?t:e,[c,d]=eV(()=>({from:s,...l}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:o,amount:l="any",...c}=u??{};if(!e||o&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(a&&d.start(a),r(!0),o?void 0:()=>{s&&d.start(s),r(!1)}),p=new IntersectionObserver(e=>{e.forEach(e=>{let t=f.get(e.target);if(!!t!==e.isIntersecting){if(e.isIntersecting){let t=h();e2.is.fun(t)?f.set(e.target,t):p.unobserve(e.target)}else t&&(t(),f.delete(e.target))}})},{root:t&&t.current||void 0,threshold:"number"==typeof l||Array.isArray(l)?l:e4[l],...c});return p.observe(e),()=>p.unobserve(e)},[u]),o?[i,c]:[i,n]}function e5({children:e,...t}){return e(eV(t))}var e6=n(6901);function e8({items:e,children:t,...n}){let r=eW(e.length,n);return e.map((e,n)=>{let i=t(e,n);return e6.is.fun(i)?i(r[n]):i})}function e7({items:e,children:t,...n}){return eG(e,n)(t)}var e9=n(6901),te=n(6901),tt=n(25447),tn=class extends ei{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,te.createInterpolator)(...t);let n=this._get(),r=(0,tt.getAnimatedType)(n);(0,tt.setAnimated)(this,r.create(n))}advance(e){let t=this._get(),n=this.get();(0,te.isEqual)(t,n)||((0,tt.getAnimated)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ti(this._active)&&to(this)}_get(){let e=te.is.arr(this.source)?this.source.map(te.getFluidValue):(0,te.toArray)((0,te.getFluidValue)(this.source));return this.calc(...e)}_start(){this.idle&&!ti(this._active)&&(this.idle=!1,(0,te.each)((0,tt.getPayload)(this),e=>{e.done=!1}),te.Globals.skipAnimation?(te.raf.batchedUpdates(()=>this.advance()),to(this)):te.frameLoop.start(this))}_attach(){let e=1;(0,te.each)((0,te.toArray)(this.source),t=>{(0,te.hasFluidValue)(t)&&(0,te.addFluidObserver)(t,this),en(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){(0,te.each)((0,te.toArray)(this.source),e=>{(0,te.hasFluidValue)(e)&&(0,te.removeFluidObserver)(e,this)}),this._active.clear(),to(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=(0,te.toArray)(this.source).reduce((e,t)=>Math.max(e,(en(t)?t.priority:0)+1),0))}};function tr(e){return!1!==e.idle}function ti(e){return!e.size||Array.from(e).every(tr)}function to(e){e.idle||(e.idle=!0,(0,te.each)((0,tt.getPayload)(e),e=>{e.done=!0}),(0,te.callFluidObservers)(e,{type:"idle",parent:e}))}var ta=(e,...t)=>new tn(e,t),ts=(e,...t)=>((0,e9.deprecateInterpolate)(),new tn(e,t)),tl=n(6901);tl.Globals.assign({createStringInterpolator:tl.createStringInterpolator,to:(e,t)=>new tn(e,t)});var tu=tl.frameLoop.advance,tc=n(6901);r=n(8669),i=e.exports,d(h,r,"default"),i&&d(i,r,"default")},78476:function(e,t,n){"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l={};s(l,{FluidValue:()=>eP,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eM,callFluidObservers:()=>eA,clamp:()=>J,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>eb,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eX,deprecateInterpolate:()=>eG,each:()=>T,eachProp:()=>N,easings:()=>ek,flush:()=>D,flushCalls:()=>V,frameLoop:()=>Y,getFluidObservers:()=>eC,getFluidValue:()=>eO,hasFluidValue:()=>eS,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>ea,hsla:()=>es,is:()=>A,isAnimatedString:()=>eQ,isEqual:()=>P,isSSR:()=>I,noop:()=>C,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>eo,setFluidGetter:()=>eT,toArray:()=>R,useConstant:()=>ta,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tv,usePrev:()=>tb,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))a.call(e,n)||void 0===n||r(e,n,{get:()=>t[n],enumerable:!(s=i(t,n))||s.enumerable});return e})(r({},"__esModule",{value:!0}),l);var u={};s(u,{assign:()=>H,colors:()=>z,createStringInterpolator:()=>L,skipAnimation:()=>Z,to:()=>F,willAdvance:()=>B});var c=S(),d=e=>E(e,c),f=S();d.write=e=>E(e,f);var h=S();d.onStart=e=>E(e,h);var p=S();d.onFrame=e=>E(e,p);var m=S();d.onFinish=e=>E(e,m);var v=[];d.setTimeout=(e,t)=>{let n=d.now()+t,r=()=>{let e=v.findIndex(e=>e.cancel==r);~e&&v.splice(e,1),x-=~e?1:0},i={time:n,handler:e,cancel:r};return v.splice(g(n),0,i),x+=1,k(),i};var g=e=>~(~v.findIndex(t=>t.time>e)||~v.length);d.cancel=e=>{h.delete(e),p.delete(e),m.delete(e),c.delete(e),f.delete(e)},d.sync=e=>{w=!0,d.batchedUpdates(e),w=!1},d.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,d.onStart(n)}return r.handler=e,r.cancel=()=>{h.delete(n),t=null},r};var y="u">typeof window?window.requestAnimationFrame:()=>{};d.use=e=>y=e,d.now="u">typeof performance?()=>performance.now():Date.now,d.batchedUpdates=e=>e(),d.catch=console.error,d.frameLoop="always",d.advance=()=>{"demand"!==d.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):_()};var b=-1,x=0,w=!1;function E(e,t){w?(t.delete(e),e(0)):(t.add(e),k())}function k(){b<0&&(b=0,"demand"!==d.frameLoop&&y(j))}function j(){~b&&(y(j),d.batchedUpdates(_))}function _(){let e=b,t=g(b=d.now());if(t&&(O(v.splice(0,t),e=>e.handler()),x-=t),!x){b=-1;return}h.flush(),c.flush(e?Math.min(64,b-e):16.667),p.flush(),f.flush(),m.flush()}function S(){let e=new Set,t=e;return{add(n){x+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(x-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,x-=t.size,O(t,t=>t(n)&&e.add(t)),x+=e.size,t=e)}}}function O(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function C(){}var M=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),A={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function P(e,t){if(A.arr(e)){if(!A.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function N(e,t,n){if(A.arr(e)){for(let r=0;rA.und(e)?[]:A.arr(e)?e:[e];function D(e,t){if(e.size){let n=Array.from(e);e.clear(),T(n,t)}}var L,F,V=(e,...t)=>D(e,e=>e(...t)),I=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),z=null,Z=!1,B=C,H=e=>{e.to&&(F=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(z=e.colors),null!=e.skipAnimation&&(Z=e.skipAnimation),e.createStringInterpolator&&(L=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance),e.frameLoop&&(d.frameLoop=e.frameLoop)},U=new Set,W=[],q=[],$=0,Y={get idle(){return!U.size&&!W.length},start(e){$>e.priority?(U.add(e),d.onStart(G)):(K(e),d(Q))},advance:Q,sort(e){if($)d.onFrame(()=>Y.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),X(e))}},clear(){W=[],U.clear()}};function G(){U.forEach(K),U.clear(),d(Q)}function K(e){W.includes(e)||X(e)}function X(e){var t;let n;W.splice((n=(t=W).findIndex(t=>t.priority>e.priority))<0?t.length:n,0,e)}function Q(e){let t=q;for(let n=0;n0}var J=(e,t,n)=>Math.min(Math.max(n,e),t),ee={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},et="[-+]?\\d*\\.?\\d+",en=et+"%";function er(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ei=RegExp("rgb"+er(et,et,et)),eo=RegExp("rgba"+er(et,et,et,et)),ea=RegExp("hsl"+er(et,en,en)),es=RegExp("hsla"+er(et,en,en,et)),el=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ec=/^#([0-9a-fA-F]{6})$/,ed=/^#([0-9a-fA-F]{8})$/;function ef(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eh(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*ef(i,r,e+1/3))<<24|Math.round(255*ef(i,r,e))<<16|Math.round(255*ef(i,r,e-1/3))<<8}function ep(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function em(e){return(parseFloat(e)%360+360)%360/360}function ev(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function eg(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ey(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ec.exec(e))?parseInt(t[1]+"ff",16)>>>0:z&&void 0!==z[e]?z[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=eo.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|ev(t[4]))>>>0:(t=el.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ed.exec(e))?parseInt(t[1],16)>>>0:(t=eu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ea.exec(e))?(255|eh(em(t[1]),eg(t[2]),eg(t[3])))>>>0:(t=es.exec(e))?(eh(em(t[1]),eg(t[2]),eg(t[3]))|ev(t[4]))>>>0:null;return null===n?e:`rgba(${(4278190080&(n=n||0))>>>24}, ${(16711680&n)>>>16}, ${(65280&n)>>>8}, ${(255&n)/255})`}var eb=(e,t,n)=>{if(A.fun(e))return e;if(A.arr(e))return eb({range:e,output:t,extrapolate:n});if(A.str(e.output[0]))return L(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},ex=2*Math.PI/3,ew=2*Math.PI/4.5,eE=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,ek={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-1.70158*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(3.5949095*2*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ex),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ex)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ew))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ew)/2+1,easeInBounce:e=>1-eE(1-e),easeOutBounce:eE,easeInOutBounce:e=>e<.5?(1-eE(1-2*e))/2:(1+eE(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return J(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},ej=Symbol.for("FluidValue.get"),e_=Symbol.for("FluidValue.observers"),eS=e=>!!(e&&e[ej]),eO=e=>e&&e[ej]?e[ej]():e,eC=e=>e[e_]||null;function eM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eA(e,t){let n=e[e_];n&&n.forEach(e=>{eM(e,t)})}var eP=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eT(this,e)}},eT=(e,t)=>eL(e,ej,t);function eN(e,t){if(e[ej]){let n=e[e_];n||eL(e,e_,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function eR(e,t){let n=e[e_];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[e_]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eD,eL=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eF=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eV=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,eI=RegExp(`(${eF.source})(%|[a-z]+)`,"i"),ez=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eZ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eB=e=>{let[t,n]=eH(e);if(!t||I())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&eZ.test(n)?eB(n):n||e},eH=e=>{let t=eZ.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},eU=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,eW=e=>{eD||(eD=z?RegExp(`(${Object.keys(z).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eO(e).replace(eZ,eB).replace(eV,ey).replace(eD,ey)),n=t.map(e=>e.match(eF).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>eb({...e,output:t}));return e=>{let n=!eI.test(t[0])&&t.find(e=>eI.test(e))?.replace(eF,""),i=0;return t[0].replace(eF,()=>`${r[i++](e)}${n||""}`).replace(ez,eU)}},eq="react-spring: ",e$=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eq}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},eY=e$(console.warn);function eG(){eY(`${eq}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eK=e$(console.warn);function eX(){eK(`${eq}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function eQ(e){return A.str(e)&&("#"==e[0]||/\d/.test(e)||!I()&&eZ.test(e)||e in(z||{}))}var eJ,e0,e1=new WeakMap,e2=e=>e.forEach(({target:e,contentRect:t})=>e1.get(e)?.forEach(e=>e(t))),e4=new Set,e3=()=>{let e=()=>{e4.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},e5=e=>(e4.add(e),e0||(e0=e3()),()=>{e4.delete(e),!e4.size&&e0&&(e0(),e0=void 0)}),e6=(e,{container:t=document.documentElement}={})=>{let n;return t===document.documentElement?e5(e):(eJ||"u">typeof ResizeObserver&&(eJ=new ResizeObserver(e2)),(n=e1.get(t))||(n=new Set,e1.set(t,n)),n.add(e),eJ&&eJ.observe(t),()=>{let n=e1.get(t);n&&(n.delete(e),!n.size&&eJ&&eJ.unobserve(t))})},e8=(e,t,n)=>t-e==0?1:(n-e)/(t-e),e7={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},e9=class{constructor(e,t){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=e=>{let t=this.info[e],{length:n,position:r}=e7[e];t.current=this.container[`scroll${r}`],t.scrollLength=this.container["scroll"+n]-this.container["client"+n],t.progress=e8(0,t.scrollLength,t.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=e,this.container=t,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}},te=new WeakMap,tt=new WeakMap,tn=new WeakMap,tr=e=>e===document.documentElement?window:e,ti=(e,{container:t=document.documentElement}={})=>{let n=tn.get(t);n||(n=new Set,tn.set(t,n));let r=new e9(e,t);if(n.add(r),!te.has(t)){let e=()=>(n?.forEach(e=>e.advance()),!0);te.set(t,e);let r=tr(t);window.addEventListener("resize",e,{passive:!0}),t!==document.documentElement&&tt.set(t,e6(e,{container:t})),r.addEventListener("scroll",e,{passive:!0})}let i=te.get(t);return d(i),()=>{d.cancel(i);let e=tn.get(t);if(!e||(e.delete(r),e.size))return;let n=te.get(t);te.delete(t),n&&(tr(t).removeEventListener("scroll",n),window.removeEventListener("resize",n),tt.get(t)?.())}},to=n(2784);function ta(e){let t=(0,to.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ts=n(2784),tl=n(2784),tu=n(2784),tc=I()?tu.useEffect:tu.useLayoutEffect,td=()=>{let e=(0,tl.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tf(){let e=(0,ts.useState)()[1],t=td();return()=>{t.current&&e(Math.random())}}var th=n(2784);function tp(e,t){let[n]=(0,th.useState)(()=>({inputs:t,result:e()})),r=(0,th.useRef)(),i=r.current,o=i;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}var tm=n(2784),tv=e=>(0,tm.useEffect)(e,tg),tg=[],ty=n(2784);function tb(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tx=n(2784),tw=()=>{let[e,t]=(0,tx.useState)(null);return tc(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),H({skipAnimation:e.matches})};return n(e),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),e}},19455:function(e){"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{Any:()=>a}),e.exports=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of r(o))i.call(e,a)||void 0===a||t(e,a,{get:()=>o[a],enumerable:!(s=n(o,a))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a=class{}},96721:function(e,t,n){"use strict";var r,i,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))l.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>M,animated:()=>M}),e.exports=u(o({},"__esModule",{value:!0}),c);var d=n(99550),f=n(28316),h=n(6901),p=n(25447),m=/^--/,v={},g={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},y=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),b=["Webkit","Ms","Moz","O"];g=Object.keys(g).reduce((e,t)=>(b.forEach(n=>e[y(n,t)]=e[t]),e),g);var x=n(25447),w=n(6901),E=/^(matrix|translate|scale|rotate|skew)/,k=/^(translate)/,j=/^(rotate|skew)/,_=(e,t)=>w.is.num(e)&&0!==e?e+t:e,S=(e,t)=>w.is.arr(e)?e.every(e=>S(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,O=class extends x.AnimatedObject{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>_(e,"px")).join(",")})`,S(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(E.test(t)){if(delete r[t],w.is.und(e))return;let n=k.test(t)?"px":j.test(t)?"deg":"";i.push((0,w.toArray)(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${_(i,n)})`,S(i,0)]:e=>[`${t}(${e.map(e=>_(e,n)).join(",")})`,S(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new C(i,o)),super(r)}},C=class extends w.FluidValue{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return(0,w.each)(this.inputs,(n,r)=>{let i=(0,w.getFluidValue)(n[0]),[o,a]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.addFluidObserver)(e,this)))}observerRemoved(e){0==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.removeFluidObserver)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),(0,w.callFluidObservers)(this,e)}};r=n(99550),i=e.exports,u(c,r,"default"),i&&u(i,r,"default"),d.Globals.assign({batchedUpdates:f.unstable_batchedUpdates,createStringInterpolator:h.createStringInterpolator,colors:h.colors});var M=(0,p.createHost)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:v[t]||(v[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||m.test(t)||g.hasOwnProperty(t)&&g[t]?(""+d).trim():d+"px";m.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new O(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated},7896:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,n=0,r="";nn=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let o=r(t)||r(i);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),c=null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]);return i(e,l,c,null==n?void 0:n.class,null==n?void 0:n.className)}},99182:function(e,t,n){"use strict";n.d(t,{U8:function(){return A},mY:function(){return _}});var r=n(72331),i=n(2784),o=n(40844),a='[cmdk-group=""]',s='[cmdk-group-items=""]',l='[cmdk-item=""]',u=`${l}:not([aria-disabled="true"])`,c="cmdk-item-select",d="data-value",f=(e,t)=>o(e,t),h=i.createContext(void 0),p=()=>i.useContext(h),m=i.createContext(void 0),v=()=>i.useContext(m),g=i.createContext(void 0),y=i.forwardRef((e,t)=>{let n=i.useRef(null),r=C(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),o=C(()=>new Set),p=C(()=>new Map),v=C(()=>new Map),g=C(()=>new Set),y=S(e),{label:b,children:x,value:w,onValueChange:E,filter:k,shouldFilter:j,..._}=e,A=i.useId(),P=i.useId(),R=i.useId(),D=T();O(()=>{if(void 0!==w){let e=w.trim().toLowerCase();r.current.value=e,D(6,B),L.emit()}},[w]);let L=i.useMemo(()=>({subscribe:e=>(g.current.add(e),()=>g.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,o,a;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)Z(),I(),D(1,z);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(a=(o=y.current).onValueChange)||a.call(o,t);return}n||D(5,B)}L.emit()}},emit:()=>{g.current.forEach(e=>e())}}),[]),F=i.useMemo(()=>({value:(e,t)=>{t!==v.current.get(e)&&(v.current.set(e,t),r.current.filtered.items.set(e,V(t)),D(2,()=>{I(),L.emit()}))},item:(e,t)=>(o.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{Z(),I(),r.current.value||z(),L.emit()}),()=>{v.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{Z(),z(),L.emit()})}),group:e=>(p.current.has(e)||p.current.set(e,new Set),()=>{v.current.delete(e),p.current.delete(e)}),filter:()=>y.current.shouldFilter,label:b||e["aria-label"],listId:A,inputId:R,labelId:P}),[]);function V(e){var t;let n=(null==(t=y.current)?void 0:t.filter)??f;return e?n(e,r.current.search):0}function I(){if(!n.current||!r.current.search||!1===y.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(n=>{let r=p.current.get(n),i=0;r.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([n,i])});let i=n.current.querySelector('[cmdk-list-sizer=""]');U().sort((t,n)=>{let r=t.getAttribute(d),i=n.getAttribute(d);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(s);t?t.appendChild(e.parentElement===t?e:e.closest(`${s} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${s} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${a}[${d}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function z(){let e=U().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(d);L.setState("value",t||void 0)}function Z(){if(!r.current.search||!1===y.current.shouldFilter){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=V(v.current.get(t));r.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of p.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=e}function B(){var e,t,n;let r=H();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(a))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function H(){return n.current.querySelector(`${l}[aria-selected="true"]`)}function U(){return Array.from(n.current.querySelectorAll(u))}function W(e){let t=U()[e];t&&L.setState("value",t.getAttribute(d))}function q(e){var t;let n=H(),r=U(),i=r.findIndex(e=>e===n),o=r[i+e];null!=(t=y.current)&&t.loop&&(o=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),o&&L.setState("value",o.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(a),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,a):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,a))?void 0:n.querySelector(u);r?L.setState("value",r.getAttribute(d)):q(e)}let Y=()=>W(U().length-1),G=e=>{e.preventDefault(),e.metaKey?Y():e.altKey?$(1):q(1)},K=e=>{e.preventDefault(),e.metaKey?W(0):e.altKey?$(-1):q(-1)};return i.createElement("div",{ref:M([n,t]),..._,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=_.onKeyDown)||t.call(_,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&G(e);break;case"ArrowDown":G(e);break;case"p":case"k":e.ctrlKey&&K(e);break;case"ArrowUp":K(e);break;case"Home":e.preventDefault(),W(0);break;case"End":e.preventDefault(),Y();break;case"Enter":{e.preventDefault();let t=H();if(t){let e=new Event(c);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:F.inputId,id:F.labelId,style:N},b),i.createElement(m.Provider,{value:L},i.createElement(h.Provider,{value:F},x)))}),b=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),o=i.useContext(g),a=p(),s=S(e);O(()=>a.item(n,o),[]);let l=P(n,r,[e.value,e.children,r]),u=v(),d=A(e=>e.value&&e.value===l.current),f=A(e=>!1===a.filter()||!e.search||e.filtered.items.get(n)>0);function h(){var e,t;null==(t=(e=s.current).onSelect)||t.call(e,l.current)}if(i.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(c,h),()=>t.removeEventListener(c,h)},[f,e.onSelect,e.disabled]),!f)return null;let{disabled:m,value:y,onSelect:b,...x}=e;return i.createElement("div",{ref:M([r,t]),...x,"cmdk-item":"",role:"option","aria-disabled":m||void 0,"aria-selected":d||void 0,"data-selected":d||void 0,onPointerMove:m?void 0:function(){u.setState("value",l.current,!0)},onClick:m?void 0:h},e.children)}),x=i.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,a=i.useId(),s=i.useRef(null),l=i.useRef(null),u=i.useId(),c=p(),d=A(e=>!1===c.filter()||!e.search||e.filtered.groups.has(a));O(()=>c.group(a),[]),P(a,s,[e.value,e.heading,l]);let f=i.createElement(g.Provider,{value:a},r);return i.createElement("div",{ref:M([s,t]),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&i.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},f))}),w=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),a=A(e=>!e.search);return n||a?i.createElement("div",{ref:M([o,t]),...r,"cmdk-separator":"",role:"separator"}):null}),E=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=v(),s=A(e=>e.search),l=p();return i.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),i.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,id:l.inputId,type:"text",value:o?e.value:s,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),k=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.useRef(null),a=i.useRef(null),s=p();return i.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect().height;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),i.createElement("div",{ref:M([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},i.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),j=i.forwardRef((e,t)=>{let{open:n,onOpenChange:o,container:a,...s}=e;return i.createElement(r.fC,{open:n,onOpenChange:o},i.createElement(r.h_,{container:a},i.createElement(r.aV,{"cmdk-overlay":""}),i.createElement(r.VY,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(y,{ref:t,...s}))))}),_=Object.assign(y,{List:k,Item:b,Input:E,Group:x,Separator:w,Dialog:j,Empty:i.forwardRef((e,t)=>{let n=i.useRef(!0),r=A(e=>0===e.filtered.count);return i.useEffect(()=>{n.current=!1},[]),n.current||!r?null:i.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Loading:i.forwardRef((e,t)=>{let{progress:n,children:r,...o}=e;return i.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function S(e){let t=i.useRef(e);return O(()=>{t.current=e}),t}var O=typeof window>"u"?i.useEffect:i.useLayoutEffect;function C(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function M(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function A(e){let t=v(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function P(e,t,n){let r=i.useRef(),o=p();return O(()=>{var i;let a=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim().toLowerCase();if("object"==typeof t&&"current"in t&&t.current)return null==(e=t.current.textContent)?void 0:e.trim().toLowerCase()}})();o.value(e,a),null==(i=t.current)||i.setAttribute(d,a),r.current=a}),r}var T=()=>{let[e,t]=i.useState(),n=C(()=>new Map);return O(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}},N={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},63955:function(e,t,n){"use strict";n.d(t,{cI:function(){return em}});var r=n(2784),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||e instanceof FileList))&&(n||l(e))))return e;else if(t=n?[]:{},Array.isArray(e)||f(e))for(let n in e)t[n]=p(e[n]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,n)=>{if(!t||!l(e))return n;let r=m(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return v(r)||r===e?v(e[t])?n:e[t]:r};let y={BLUR:"blur",FOCUS_OUT:"focusout"},b={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},x={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};r.createContext(null);var w=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==b.all&&(t._proxyFormState[o]=!r||b.all),n&&(n[o]=!0),e[o])});return i},E=e=>l(e)&&!Object.keys(e).length,k=(e,t,n,r)=>{n(e);let{name:i,...o}=e;return E(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!r||b.all))},j=e=>Array.isArray(e)?e:[e],_=e=>"string"==typeof e,S=(e,t,n,r,i)=>_(e)?(r&&t.watch.add(e),g(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),g(n,e))):(r&&(t.watchAll=!0),n),O=e=>/^\w*$/.test(e),C=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function M(e,t,n){let r=-1,i=O(t)?[t]:C(t),o=i.length,a=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let P=(e,t,n)=>{for(let r of n||Object.keys(e)){let n=g(e,r);if(n){let{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(r)&&P(r,t)}}};var T=e=>({isOnSubmit:!e||e===b.onSubmit,isOnBlur:e===b.onBlur,isOnChange:e===b.onChange,isOnAll:e===b.all,isOnTouch:e===b.onTouched}),N=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),R=(e,t,n)=>{let r=m(g(e,n));return M(r,"root",t[n]),M(e,n,r),e},D=e=>"boolean"==typeof e,L=e=>"file"===e.type,F=e=>"function"==typeof e,V=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},I=e=>_(e),z=e=>"radio"===e.type,Z=e=>e instanceof RegExp;let B={value:!1,isValid:!1},H={value:!0,isValid:!0};var U=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||""===e[0].value?H:{value:e[0].value,isValid:!0}:H:B}return B};let W={isValid:!1,value:null};var q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,W):W;function $(e,t,n="validate"){if(I(e)||Array.isArray(e)&&e.every(I)||D(e)&&!e)return{type:n,message:I(e)?e:"",ref:t}}var Y=e=>l(e)&&!Z(e)?e:{value:e,message:""},G=async(e,t,n,r,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:b,valueAsNumber:w,mount:k,disabled:j}=e._f,S=g(t,b);if(!k||j)return{};let O=u?u[0]:s,C=e=>{r&&O.reportValidity&&(O.setCustomValidity(D(e)?"":e||""),O.reportValidity())},M={},P=z(s),T=i(s),N=(w||L(s))&&v(s.value)&&v(S)||V(s)&&""===s.value||""===S||Array.isArray(S)&&!S.length,R=A.bind(null,b,n,M),B=(e,t,n,r=x.maxLength,i=x.minLength)=>{let o=e?t:n;M[b]={type:e?r:i,message:o,ref:s,...R(e?r:i,o)}};if(o?!Array.isArray(S)||!S.length:c&&(!(P||T)&&(N||a(S))||D(S)&&!S||T&&!U(u).isValid||P&&!q(u).isValid)){let{value:e,message:t}=I(c)?{value:!!c,message:c}:Y(c);if(e&&(M[b]={type:x.required,message:t,ref:O,...R(x.required,t)},!n))return C(t),M}if(!N&&(!a(h)||!a(p))){let e,t;let r=Y(p),i=Y(h);if(a(S)||isNaN(S)){let n=s.valueAsDate||new Date(S),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;_(r.value)&&S&&(e=a?o(S)>o(r.value):l?S>r.value:n>new Date(r.value)),_(i.value)&&S&&(t=a?o(S)r.value),a(i.value)||(t=n+e.value,i=!a(t.value)&&S.length<+t.value;if((r||i)&&(B(r,e.message,t.message),!n))return C(M[b].message),M}if(m&&!N&&_(S)){let{value:e,message:t}=Y(m);if(Z(e)&&!S.match(e)&&(M[b]={type:x.pattern,message:t,ref:s,...R(x.pattern,t)},!n))return C(t),M}if(y){if(F(y)){let e=await y(S,t),r=$(e,O);if(r&&(M[b]={...r,...R(x.validate,r.message)},!n))return C(r.message),M}else if(l(y)){let e={};for(let r in y){if(!E(e)&&!n)break;let i=$(await y[r](S,t),O,r);i&&(e={...i,...R(r,i.message)},C(i.message),n&&(M[b]=e))}if(!E(e)&&(M[b]={ref:O,...e},!n))return M}}return C(!0),M};function K(e,t){let n=Array.isArray(t)?t:O(t)?[t]:C(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var Q=e=>a(e)||!s(e);function J(e,t){if(Q(e)||Q(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n){let n=e[i];if(!r.includes(i))return!1;if("ref"!==i){let e=t[i];if(o(n)&&o(e)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!J(n,e):n!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>z(e)||i(e),en=e=>V(e)&&e.isConnected,er=e=>{for(let t in e)if(F(e[t]))return!0;return!1};function ei(e,t={}){let n=Array.isArray(e);if(l(e)||n)for(let n in e)Array.isArray(e[n])||l(e[n])&&!er(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ei(e[n],t[n])):a(e[n])||(t[n]=!0);return t}var eo=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!er(t[i])?v(n)||Q(r[i])?r[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],a(n)?{}:n[i],r[i]):r[i]=!J(t[i],n[i]);return r})(e,t,ei(t)),ea=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>v(e)?e:t?""===e?NaN:e?+e:e:n&&_(e)?new Date(e):r?r(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:L(t)?t.files:z(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?U(e.refs).value:ea(v(t.value)?e.ref.value:t.value,e)}var el=(e,t,n,r)=>{let i={};for(let n of e){let e=g(t,n);e&&M(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},eu=e=>v(e)?e:Z(e)?e.source:l(e)?Z(e.value)?e.value.source:e.value:e,ec=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ed(e,t,n){let r=g(e,n);if(r||O(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=g(t,r),a=g(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(a&&a.type)return{name:r,error:a};i.pop()}return{name:n}}var ef=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?!r.isOnChange:!i.isOnChange)||e),eh=(e,t)=>!m(g(e,t)).length&&K(e,t);let ep={mode:b.onSubmit,reValidateMode:b.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),[n,s]=r.useState({isDirty:!1,isValidating:!1,isLoading:F(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:F(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let n,r={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:F(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},c={},f=(l(r.defaultValues)||l(r.values))&&p(r.defaultValues||r.values)||{},x=r.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},k={mount:new Set,unMount:new Set,array:new Set,watch:new Set},O=0,C={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},A={values:X(),array:X(),state:X()},I=e.resetOptions&&e.resetOptions.keepDirtyValues,z=T(r.mode),Z=T(r.reValidateMode),B=r.criteriaMode===b.all,H=e=>t=>{clearTimeout(O),O=setTimeout(e,t)},U=async e=>{if(C.isValid||e){let e=r.resolver?E((await ei()).errors):await ev(c,!0);e!==s.isValid&&A.state.next({isValid:e})}},W=e=>C.isValidating&&A.state.next({isValidating:e}),q=(e,t)=>{M(s.errors,e,t),A.state.next({errors:s.errors})},$=(e,t,n,r)=>{let i=g(c,e);if(i){let o=g(x,e,v(n)?g(f,e):n);v(o)||r&&r.defaultChecked||t?M(x,e,t?o:es(i._f)):eb(e,o),w.mount&&U()}},Y=(e,t,n,r,i)=>{let o=!1,a=!1,l={name:e};if(!n||r){C.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=eg(),o=a!==l.isDirty);let n=J(g(f,e),t);a=g(s.dirtyFields,e),n?K(s.dirtyFields,e):M(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||C.dirtyFields&&!n!==a}if(n){let t=g(s.touchedFields,e);t||(M(s.touchedFields,e,n),l.touchedFields=s.touchedFields,o=o||C.touchedFields&&t!==n)}return o&&i&&A.state.next(l),o?l:{}},er=(t,r,i,o)=>{let a=g(s.errors,t),l=C.isValid&&D(r)&&s.isValid!==r;if(e.delayError&&i?(n=H(()=>q(t,i)))(e.delayError):(clearTimeout(O),n=null,i?M(s.errors,t,i):K(s.errors,t)),(i?!J(a,i):a)||!E(o)||l){let e={...o,...l&&D(r)?{isValid:r}:{},errors:s.errors,name:t};s={...s,...e},A.state.next(e)}W(!1)},ei=async e=>r.resolver(x,r.context,el(e||k.mount,c,r.criteriaMode,r.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await ei();if(e)for(let n of e){let e=g(t,n);e?M(s.errors,n,e):K(s.errors,n)}else s.errors=t;return t},ev=async(e,t,n={valid:!0})=>{for(let i in e){let o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=k.array.has(e.name),a=await G(o,x,B,r.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(n.valid=!1,t))break;t||(g(a,e.name)?i?R(s.errors,a,e.name):M(s.errors,e.name,a[e.name]):K(s.errors,e.name))}i&&await ev(i,t,n)}}return n.valid},eg=(e,t)=>(e&&t&&M(x,e,t),!J(ej(),f)),ey=(e,t,n)=>S(e,k,{...w.mount?x:v(t)?f:_(e)?{[e]:t}:t},n,t),eb=(e,t,n={})=>{let r=g(c,e),o=t;if(r){let n=r._f;n&&(n.disabled||M(x,e,ea(t,n)),o=V(n.ref)&&a(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach(e=>e.checked=e.value===o):L(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||A.values.next({name:e,values:{...x}})))}(n.shouldDirty||n.shouldTouch)&&Y(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ek(e)},ex=(e,t,n)=>{for(let r in t){let i=t[r],a=`${e}.${r}`,s=g(c,a);!k.array.has(e)&&Q(i)&&(!s||s._f)||o(i)?eb(a,i,n):ex(a,i,n)}},ew=(e,n,r={})=>{let i=g(c,e),o=k.array.has(e),l=p(n);M(x,e,l),o?(A.array.next({name:e,values:{...x}}),(C.isDirty||C.dirtyFields)&&r.shouldDirty&&A.state.next({name:e,dirtyFields:eo(f,x),isDirty:eg(e,l)})):!i||i._f||a(l)?eb(e,l,r):ex(e,l,r),N(e,k)&&A.state.next({...s}),A.values.next({name:e,values:{...x}}),w.mount||t()},eE=async e=>{let t=e.target,i=t.name,o=!0,a=g(c,i);if(a){let l,d;let f=t.type?es(a._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(a._f)&&!r.resolver&&!g(s.errors,i)&&!a._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,Z,z),m=N(i,k,h);M(x,i,f),h?(a._f.onBlur&&a._f.onBlur(e),n&&n(0)):a._f.onChange&&a._f.onChange(e);let v=Y(i,f,h,!1),b=!E(v)||m;if(h||A.values.next({name:i,type:e.type,values:{...x}}),p)return C.isValid&&U(),b&&A.state.next({name:i,...m?{}:v});if(!h&&m&&A.state.next({...s}),W(!0),r.resolver){let{errors:e}=await ei([i]),t=ed(s.errors,c,i),n=ed(e,c,t.name||i);l=n.error,i=n.name,d=E(e)}else l=(await G(a,x,B,r.shouldUseNativeValidation))[i],(o=isNaN(f)||f===g(x,i,f))&&(l?d=!1:C.isValid&&(d=await ev(c,!0)));o&&(a._f.deps&&ek(a._f.deps),er(i,d,l,v))}},ek=async(e,t={})=>{let n,i;let o=j(e);if(W(!0),r.resolver){let t=await em(v(e)?e:o);n=E(t),i=e?!o.some(e=>g(t,e)):n}else e?((i=(await Promise.all(o.map(async e=>{let t=g(c,e);return await ev(t&&t._f?{[e]:t}:t)}))).every(Boolean))||s.isValid)&&U():i=n=await ev(c);return A.state.next({...!_(e)||C.isValid&&n!==s.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&P(c,e=>e&&g(s.errors,e),e?o:k.mount),i},ej=e=>{let t={...f,...w.mount?x:{}};return v(e)?t:_(e)?g(t,e):e.map(e=>g(t,e))},e_=(e,t)=>({invalid:!!g((t||s).errors,e),isDirty:!!g((t||s).dirtyFields,e),isTouched:!!g((t||s).touchedFields,e),error:g((t||s).errors,e)}),eS=(e,t={})=>{for(let n of e?j(e):k.mount)k.mount.delete(n),k.array.delete(n),t.keepValue||(K(c,n),K(x,n)),t.keepError||K(s.errors,n),t.keepDirty||K(s.dirtyFields,n),t.keepTouched||K(s.touchedFields,n),r.shouldUnregister||t.keepDefaultValue||K(f,n);A.values.next({values:{...x}}),A.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||U()},eO=(e,t={})=>{let n=g(c,e),i=D(t.disabled);return M(c,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),k.mount.add(e),n?i&&M(x,e,t.disabled?void 0:g(x,e,es(n._f))):$(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.shouldUseNativeValidation?{required:!!t.required,min:eu(t.min),max:eu(t.max),minLength:eu(t.minLength),maxLength:eu(t.maxLength),pattern:eu(t.pattern)}:{},name:e,onChange:eE,onBlur:eE,ref:i=>{if(i){eO(e,t),n=g(c,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(M(c,e,{_f:{...n._f,...o?{refs:[...a.filter(en),r,...Array.isArray(g(f,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),$(e,!1,void 0,r))}else(n=g(c,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(d(k.array,e)&&w.action)&&k.unMount.add(e)}}},eC=()=>r.shouldFocusError&&P(c,e=>e&&g(s.errors,e),k.mount),eM=(n,r={})=>{let i=n||f,o=p(i),a=n&&!E(n)?o:f;if(r.keepDefaultValues||(f=i),!r.keepValues){if(r.keepDirtyValues||I)for(let e of k.mount)g(s.dirtyFields,e)?M(a,e,g(x,e)):ew(e,g(a,e));else{if(h&&v(n))for(let e of k.mount){let t=g(c,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(V(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}x=e.shouldUnregister?r.keepDefaultValues?p(f):{}:o,A.array.next({values:{...a}}),A.values.next({values:{...a}})}k={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!C.isValid||!!r.keepIsValid,w.watch=!!e.shouldUnregister,A.state.next({submitCount:r.keepSubmitCount?s.submitCount:0,isDirty:r.keepDirty?s.isDirty:!!(r.keepDefaultValues&&!J(n,f)),isSubmitted:!!r.keepIsSubmitted&&s.isSubmitted,dirtyFields:r.keepDirtyValues?s.dirtyFields:r.keepDefaultValues&&n?eo(f,n):{},touchedFields:r.keepTouched?s.touchedFields:{},errors:r.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eA=(e,t)=>eM(F(e)?e(x):e,t);return{control:{register:eO,unregister:eS,getFieldState:e_,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:U,_removeUnmounted:()=>{for(let e of k.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&eS(e)}k.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,o=!0)=>{if(r&&n){if(w.action=!0,o&&Array.isArray(g(c,e))){let t=n(g(c,e),r.argA,r.argB);i&&M(c,e,t)}if(o&&Array.isArray(g(s.errors,e))){let t=n(g(s.errors,e),r.argA,r.argB);i&&M(s.errors,e,t),eh(s.errors,e)}if(C.touchedFields&&o&&Array.isArray(g(s.touchedFields,e))){let t=n(g(s.touchedFields,e),r.argA,r.argB);i&&M(s.touchedFields,e,t)}C.dirtyFields&&(s.dirtyFields=eo(f,x)),A.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else M(x,e,t)},_getFieldArray:t=>m(g(w.mount?x:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eM,_resetDefaultValues:()=>F(r.defaultValues)&&r.defaultValues().then(e=>{eA(e,r.resetOptions),A.state.next({isLoading:!1})}),_updateFormState:e=>{s={...s,...e}},_subjects:A,_proxyFormState:C,get _fields(){return c},get _formValues(){return x},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return k},set _names(value){k=value},get _formState(){return s},set _formState(value){s=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:ek,register:eO,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=p(x);if(A.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);K(s.errors,"root"),E(s.errors)?(A.state.next({errors:{}}),await e(i,n)):(t&&await t({...s.errors},n),eC(),setTimeout(eC)),A.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:E(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>F(e)?A.values.subscribe({next:n=>e(ey(void 0,t),n)}):ey(e,t,!0),setValue:ew,getValues:ej,reset:eA,resetField:(e,t={})=>{g(c,e)&&(v(t.defaultValue)?ew(e,g(f,e)):(ew(e,t.defaultValue),M(f,e,t.defaultValue)),t.keepTouched||K(s.touchedFields,e),t.keepDirty||(K(s.dirtyFields,e),s.isDirty=t.defaultValue?eg(e,g(f,e)):eg()),!t.keepError&&(K(s.errors,e),C.isValid&&U()),A.state.next({...s}))},clearErrors:e=>{e&&j(e).forEach(e=>K(s.errors,e)),A.state.next({errors:e?s.errors:{}})},unregister:eS,setError:(e,t,n)=>{let r=(g(c,e,{_f:{}})._f||{}).ref;M(s.errors,e,{...t,ref:r}),A.state.next({name:e,errors:s.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},setFocus:(e,t={})=>{let n=g(c,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:e_}}(e,()=>s(e=>({...e}))),formState:n});let c=t.current.control;return c._options=e,!function(e){let t=r.useRef(e);t.current=e,r.useEffect(()=>{let n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}({subject:c._subjects.state,next:e=>{k(e,c._proxyFormState,c._updateFormState,!0)&&s({...c._formState})}}),r.useEffect(()=>{e.values&&!J(e.values,c._defaultValues)?c._reset(e.values,c._options.resetOptions):c._resetDefaultValues()},[e.values,c]),r.useEffect(()=>{c._state.mount||(c._updateValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),t.current.formState=w(n,c),t.current}},79381:function(e,t,n){"use strict";n.d(t,{J$:function(){return Q},ZP:function(){return J},JG:function(){return Z},kY:function(){return Y}});var r,i=n(2784),o=n(43100);let a=new WeakMap,s={},l={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",v=typeof window!=m,g=typeof document!=m,y=()=>v&&typeof window.requestAnimationFrame!=m,b=(e,t)=>{let n=a.get(e);return[()=>e.get(t)||s,r=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),n[5](t,p(i,r),i||s)}},n[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},x=new WeakMap,w=0,E=e=>{let t,n;let r=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=x.get(e))return t;if(t=++w+"~",x.set(e,t),i==Array){for(n=0,t="@";n(g&&document.addEventListener("visibilitychange",e),j("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),_("focus",e)}),initReconnect:e=>{let t=()=>{k=!0,e()},n=()=>{k=!1};return j("online",t),j("offline",n),()=>{_("online",t),_("offline",n)}}},O=!i.useId,C=!v||"Deno"in window,M=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),A=C?i.useEffect:i.useLayoutEffect,P="undefined"!=typeof navigator&&navigator.connection,T=!C&&P&&(["slow-2g","2g"].includes(P.effectiveType)||P.saveData),N=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?E(e):"",t]},R=0,D=()=>++R;var L={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function F(...e){let[t,n,r,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.throwOnError;if(h(n)){let e=[],r=t.keys();for(let i=r.next();!i.done;i=r.next()){let r=i.value;!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r)}return Promise.all(e.map(g))}return g(n);async function g(n){let i;let[o]=N(n);if(!o)return;let[l,p]=b(t,o),[g,y,x]=a.get(t),w=g[o],E=()=>d&&(delete x[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return E();let k=r,j=D();y[o]=[j,0];let _=!f(u),S=l(),O=S.data,C=S._c,M=f(C)?O:C;if(_&&p({data:u=h(u)?u(M):u,_c:M}),h(k))try{k=k(M)}catch(e){i=e}if(k&&h(k.then)){if(k=await k.catch(e=>{i=e}),j!==y[o][0]){if(i)throw i;return k}i&&_&&m(i)&&(s=!0,p({data:k=M,_c:c}))}s&&!i&&(h(s)&&(k=s(k,M)),p({data:k,_c:c})),y[o][1]=D();let A=await E();if(p({_c:c}),i){if(v)throw i;return}return s?A:k}}let V=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},I=(e,t)=>{if(!a.has(e)){let n=p(S,t),r={},i=F.bind(c,e),o=u,s={},l=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},f=()=>{if(!a.has(e)&&(a.set(e,[r,{},{},{},i,d,l]),!C)){let t=n.initFocus(setTimeout.bind(c,V.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,V.bind(c,r,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[z,Z]=I(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(f(o)||!(a>o))&&setTimeout(r,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:(e,t)=>E(e)==E(t),isPaused:()=>!1,cache:z,mutate:Z,fallback:{}},{isOnline:()=>k,isVisible:()=>{let e=g&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let n=p(e,t);if(t){let{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=p(i,a))}return n},U=(0,i.createContext)({}),W=v&&window.__SWR_DEVTOOLS_USE__,q=W?window.__SWR_DEVTOOLS_USE__:[],$=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Y=()=>p(B,(0,i.useContext)(U)),G=q.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=a.get(z),o=i[r];return o?(delete i[r],o):n(...e)});return e(t,i,r)}),K=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let X={dedupe:!0},Q=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),o=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,i.useMemo)(()=>r?o:H(n,o),[r,n,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=I(s(a.cache||z),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),A(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:a}))},"defaultValue",{value:B});var J=(r=(e,t,n)=>{let{cache:r,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:x}=n,[w,E,k]=a.get(r),[j,_]=N(e),S=(0,i.useRef)(!1),P=(0,i.useRef)(!1),T=(0,i.useRef)(j),R=(0,i.useRef)(t),V=(0,i.useRef)(n),I=()=>V.current,z=()=>I().isVisible()&&I().isOnline(),[Z,B,H,U]=b(r,j),W=(0,i.useRef)({}).current,q=f(u)?n.fallback[j]:u,$=(e,t)=>{let n=!0;for(let r in W)"data"===r?s(t[r],e[r])||f(e[r])&&s(t[r],ei)||(n=!1):t[r]!==e[r]&&(n=!1);return n},Y=(0,i.useMemo)(()=>{let e=!!j&&!!t&&(f(d)?!I().isPaused()&&!l&&(!!f(m)||m):d),n=t=>{let n=p(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=Z(),i=U(),o=n(r),a=r===i?o:n(i),s=o;return[()=>{let e=n(Z());return $(e,s)?s:s=e},()=>a]},[r,j]),G=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(j,(t,n)=>{$(n,t)||e()}),[r,j]),Y[0],Y[1]),Q=!S.current,J=w[j]&&w[j].length>0,ee=G.data,et=f(ee)?q:ee,en=G.error,er=(0,i.useRef)(et),ei=x?f(ee)?er.current:ee:et,eo=(!J||!!f(en))&&(Q&&!f(d)?d:!I().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(j&&t&&Q&&eo),es=f(G.isValidating)?ea:G.isValidating,el=f(G.isLoading)?ea:G.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!j||!i||P.current||I().isPaused())return!1;let o=!0,a=e||{},l=!k[j]||!a.dedupe,u=()=>O?!P.current&&j===T.current&&S.current:j===T.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=k[j];e&&e[1]===r&&delete k[j]},v={isValidating:!0};f(Z().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(Z().data)&&setTimeout(()=>{o&&u()&&I().onLoadingSlow(j,n)},n.loadingTimeout),k[j]=[i(_),D()]),[t,r]=k[j],t=await t,l&&setTimeout(m,n.dedupingInterval),!k[j]||k[j][1]!==r)return l&&u()&&I().onDiscarded(j),!1;d.error=c;let e=E[j];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&I().onDiscarded(j),!1;let a=Z().data;d.data=s(a,t)?a:t,l&&u()&&I().onSuccess(t,j,n)}catch(n){m();let e=I(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,j,e),(!0===t||h(t)&&t(n))&&z()&&e.onErrorRetry(n,j,e,e=>{let t=w[j];t&&t[0]&&t[0](L.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[j,r]),ec=(0,i.useCallback)((...e)=>F(r,T.current,...e),[]);if(A(()=>{R.current=t,V.current=n,f(ee)||(er.current=ee)}),A(()=>{if(!j)return;let e=eu.bind(c,X),t=0,n=K(j,w,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();I().revalidateOnFocus&&n>t&&z()&&(t=n+I().focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)I().revalidateOnReconnect&&z()&&e();else if(n==L.MUTATE_EVENT)return eu();else if(n==L.ERROR_REVALIDATE_EVENT)return eu(r)});return P.current=!1,T.current=j,S.current=!0,B({_k:_}),eo&&(f(et)||C?e():M(e)),()=>{P.current=!0,n()}},[j]),A(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!Z().error&&(g||I().isVisible())&&(y||I().isOnline())?eu(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,j]),(0,i.useDebugValue)(ei),l&&f(et)&&j){if(!O&&C)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,V.current=n,P.current=!1,f(en)?eu(X):en}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,en},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=Y(),[n,i,o]=$(e),a=H(t,o),s=r,{use:l}=a,u=(l||[]).concat(G);for(let e=u.length;e--;)s=u[e](s);return s(n,i||a.fetcher||null,a)})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(86570),t(60222)}),_N_E=e.O()}]); \ No newline at end of file +`+(o!==i?`result of cast: ${o}`:""))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((t,n)=>n.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,F({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),O({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);O({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(F({},t,{value:e}));return"function"==typeof n?r._validate(e,t,n):new Promise((n,i)=>r._validate(e,t,(e,t)=>{e?i(e):n(t)}))}validateSync(e,t){let n;return this.resolve(F({},t,{value:e}))._validate(e,F({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(_.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(_.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):r(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=d.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=d.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=d.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let n=this.clone(),r=R(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==r.OPTIONS.test),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=E(e).map(e=>new T(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new w(r,t)),n}typeError(e){let t=this.clone();return t._typeError=R({message:e,name:"typeError",test(e){return!!(void 0===e||this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=d.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=R({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e,t=d.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=R({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:n}=e.spec,r={meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,n)=>n.findIndex(t=>t.name===e.name)===t)};return r}}for(let e of(V.prototype.__isYupSchema__=!0,["validate","validateSync"]))V.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:o,schema:a}=function(e,t,n,r=n){let i,o,a;return t?((0,A.forEach)(t,(s,l,u)=>{let c=l?D(s):s;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=u?parseInt(c,10):0;if(n&&r>=n.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[r],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return a[e](i&&i[o],F({},r,{parent:i,path:t}))};for(let e of["equals","is"])V.prototype[e]=V.prototype.oneOf;for(let e of["not","nope"])V.prototype[e]=V.prototype.notOneOf;V.prototype.optional=V.prototype.notRequired,V.prototype;var z=e=>null==e;let I=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,Z=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,B=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,H=e=>z(e)||e===e.trim(),U=({}).toString();function W(){return new q}class q extends V{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;let t=null!=e&&e.toString?e.toString():e;return t===U?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=f.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return z(t)||t.length===this.resolve(e)}})}min(e,t=f.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return z(t)||t.length>=this.resolve(e)}})}max(e,t=f.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return z(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:n,name:r}=t:n=t),this.test({name:r||"matches",message:n||f.matches,params:{regex:e},test:t=>z(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(I,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(Z,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(B,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=f.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:H})}lowercase(e=f.lowercase){return this.transform(e=>z(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>z(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>z(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>z(e)||e===e.toUpperCase()})}}W.prototype=q.prototype;let $=e=>e!=+e;function Y(){return new G}class G extends V{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(e){let t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!$(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return z(t)||t>=this.resolve(e)}})}max(e,t=h.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return z(t)||t<=this.resolve(e)}})}lessThan(e,t=h.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return z(t)||tthis.resolve(e)}})}positive(e=h.positive){return this.moreThan(0,e)}negative(e=h.negative){return this.lessThan(0,e)}integer(e=h.integer){return this.test({name:"integer",message:e,test:e=>z(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>z(e)?e:0|e)}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(t=>z(t)?t:Math[e](t))}}Y.prototype=G.prototype;var K=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let X=new Date(""),Q=e=>"[object Date]"===Object.prototype.toString.call(e);function J(){return new ee}class ee extends V{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=K.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,(void 0===n[8]||""===n[8])&&(void 0===n[9]||""===n[9])?t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7]):("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?X:new Date(e)})})}_typeCheck(e){return Q(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(T.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=p.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return z(e)||e>=this.resolve(n)}})}max(e,t=p.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return z(e)||e<=this.resolve(n)}})}}ee.INVALID_DATE=X,J.prototype=ee.prototype,J.INVALID_DATE=X;var et=n(57370),en=n.n(et),er=n(96009),ei=n.n(er),eo=n(19950),ea=n.n(eo),es=n(95159),el=n.n(es);function eu(e,t){let n=1/0;return e.some((e,r)=>{var i;if((null==(i=t.path)?void 0:i.indexOf(e))!==-1)return n=r,!0}),n}function ec(e){return(t,n)=>eu(e,t)-eu(e,n)}function ed(){return(ed=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),eh=ec([]);class ep extends V{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eh,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return ef(e)||"function"==typeof e}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),s={},l=ed({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let n=i[e],a=x()(r,e);if(n){let i;let o=r[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(n=n.resolve({value:o,context:t.context,parent:s}))?n.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!_.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!ef(u)){n(r[0]||null,u);return}a=a||u,O({sync:i,tests:this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];if(s&&"validate"in s){s.validate(u[e],ed({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[e]}),r);return}r(null)}),value:u,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)})}clone(e){let t=super.clone(e);return t.fields=ed({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){let r=n[e];void 0===r?n[e]=t:r instanceof V&&t instanceof V&&(n[e]=t.concat(r))}return t.withMutation(()=>t.shape(n,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let n=this.fields[t];e[t]="default"in n?n.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=ec(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,A.split)(e)[0];r.add(o),i.has(`${t}-${o}`)||n.push([t,o])}for(let t in e)if(x()(e,t)){let n=e[t];r.add(t),T.isRef(n)&&n.isSibling?o(n.path,t):b(n)&&"deps"in n&&n.deps.forEach(e=>o(e,t))}return el().array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){let t={};for(let n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),n=t.fields;for(let r of(t.fields={},e))delete n[r];return t.withMutation(()=>t.shape(n))}from(e,t,n){let r=(0,A.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return x()(i,e)&&(o=ed({},i),n||delete o[e],o[t]=r(i)),o})}noUnknown(e=!0,t=m.noUnknown){"string"==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let n;if(null==t)return!0;let r=(n=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===n.indexOf(e)));return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=m.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&ea()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(ei())}snakeCase(){return this.transformKeys(en())}constantCase(){return this.transformKeys(e=>en()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=M()(this.fields,e=>e.describe()),e}}function em(e){return new ep(e)}em.prototype=ep.prototype},44868:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>x,AnimatedArray:()=>C,AnimatedObject:()=>O,AnimatedString:()=>j,AnimatedValue:()=>w,createHost:()=>z,getAnimated:()=>v,getAnimatedType:()=>P,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>g}),e.exports=d(a({},"__esModule",{value:!0}),f);var h=n(6901),p=Symbol.for("Animated:node"),m=e=>!!e&&e[p]===e,v=e=>e&&e[p],g=(e,t)=>(0,h.defineHidden)(e,p,t),y=e=>e&&e[p]&&e[p].getPayload(),x=class{constructor(){g(this,this)}getPayload(){return this.payload||[]}},b=n(6901),w=class extends x{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,b.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new w(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return b.is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,b.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},E=n(6901),j=class extends w{constructor(e){super(0),this._string=null,this._toString=(0,E.createInterpolator)({output:[e,e]})}static create(e){return new j(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(E.is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=(0,E.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},k=n(6901),_=n(6901),S={dependencies:null},O=class extends x{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,_.eachProp)(this.source,(n,r)=>{m(n)?t[r]=n.getValue(e):(0,_.hasFluidValue)(n)?t[r]=(0,_.getFluidValue)(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,_.each)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,_.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){S.dependencies&&(0,_.hasFluidValue)(e)&&S.dependencies.add(e);let t=y(e);t&&(0,_.each)(t,e=>this.add(e))}},C=class extends O{constructor(e){super(e)}static create(e){return new C(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(M)),!0)}};function M(e){return((0,k.isAnimatedString)(e)?j:w).create(e)}var A=n(6901);function P(e){let t=v(e);return t?t.constructor:A.is.arr(e)?C:(0,A.isAnimatedString)(e)?j:w}var T=n(6901),N=(i=null!=(r=n(2784))?o(u(r)):{},d(r&&r.__esModule?i:a(i,"default",{value:r,enumerable:!0}),r)),R=n(2784),D=n(6901),L=(e,t)=>{let n=!D.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,R.forwardRef)((r,i)=>{var o;let a;let s=(0,R.useRef)(null),l=n&&(0,R.useCallback)(e=>{s.current=(i&&(D.is.fun(i)?i(e):i.current=e),e)},[i]),[u,c]=(o=r,a=new Set,S.dependencies=a,o.style&&(o={...o,style:t.createAnimatedStyle(o.style)}),o=new O(o),S.dependencies=null,[o,a]),d=(0,D.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new F(f,c),p=(0,R.useRef)();(0,D.useIsomorphicLayoutEffect)(()=>(p.current=h,(0,D.each)(c,e=>(0,D.addFluidObserver)(e,h)),()=>{p.current&&((0,D.each)(p.current.deps,e=>(0,D.removeFluidObserver)(e,p.current)),D.raf.cancel(p.current.update))})),(0,R.useEffect)(f,[]),(0,D.useOnce)(()=>()=>{let e=p.current;(0,D.each)(e.deps,t=>(0,D.removeFluidObserver)(t,e))});let m=t.getComponentProps(u.getValue());return N.createElement(e,{...m,ref:l})})},F=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&D.raf.write(this.update)}},V=Symbol.for("AnimatedComponent"),z=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new O(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=I(e)||"Anonymous";return(e=T.is.str(e)?o[e]||(o[e]=L(e,i)):e[V]||(e[V]=L(e,i))).displayName=`Animated(${t})`,e};return(0,T.eachProp)(e,(t,n)=>{T.is.arr(e)&&(n=I(t)),o[n]=o(t)}),{animated:o}},I=e=>T.is.str(e)?e:e&&T.is.str(e.displayName)?e.displayName:T.is.fun(e)&&e.name||null},22360:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(h,{BailSignal:()=>Q,Controller:()=>eE,FrameValue:()=>ei,Globals:()=>tl.Globals,Interpolation:()=>tn,Spring:()=>e5,SpringContext:()=>eN,SpringRef:()=>eL,SpringValue:()=>ed,Trail:()=>e8,Transition:()=>e7,config:()=>F,createInterpolator:()=>tc.createInterpolator,easings:()=>tc.easings,inferTo:()=>k,interpolate:()=>ts,to:()=>ta,update:()=>tu,useChain:()=>A,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eQ,useSpring:()=>eV,useSpringRef:()=>eZ,useSpringValue:()=>eH,useSprings:()=>eF,useTrail:()=>eW,useTransition:()=>eG}),e.exports=d(a({},"__esModule",{value:!0}),h);var p=n(6901),m=n(6901);function v(e,...t){return m.is.fun(e)?e(...t):e}var g=(e,t)=>!0===e||!!(t&&e&&(m.is.fun(e)?e(t):(0,m.toArray)(e).includes(t))),y=(e,t)=>m.is.obj(e)?t&&e[t]:e,x=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,b=e=>e,w=(e,t=b)=>{let n=E;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);m.is.und(n)||(r[i]=n)}return r},E=["config","onProps","onStart","onChange","onPause","onResume","onRest"],j={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function k(e){let t=function(e){let t={},n=0;if((0,m.eachProp)(e,(e,r)=>{j[r]||(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return(0,m.eachProp)(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function _(e){return e=(0,m.getFluidValue)(e),m.is.arr(e)?e.map(_):(0,m.isAnimatedString)(e)?m.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function S(e){for(let t in e)return!0;return!1}function O(e){return m.is.fun(e)||m.is.arr(e)&&m.is.obj(e[0])}function C(e,t){e.ref?.delete(e),t?.delete(e)}function M(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function A(e,t,n=1e3){(0,p.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,p.each)(e,(e,i)=>{let o=e.current;if(o.length){let a=n*t[i];isNaN(a)?a=r:r=a,(0,p.each)(o,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>a+v(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();(0,p.each)(e,e=>{let n=e.current;if(n.length){let r=n.map(e=>{let t=e.queue;return e.queue=[],t});t=t.then(()=>((0,p.each)(n,(e,t)=>(0,p.each)(r[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var P=n(6901),T=n(2784),N=n(6901),R=n(6901),D=n(25447),L=n(6901),F={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},V={...F.default,mass:1,damping:1,easing:L.easings.linear,clamp:!1},z=class{constructor(){this.velocity=0,Object.assign(this,V)}};function I(e,t){if(L.is.und(t.decay)){let n=!L.is.und(t.tension)||!L.is.und(t.friction);!n&&L.is.und(t.frequency)&&L.is.und(t.damping)&&L.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Z=[],B=class{constructor(){this.changed=!1,this.values=Z,this.toValues=null,this.fromValues=Z,this.config=new z,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u,c=g(n.cancel??r?.cancel,t);if(c)h();else{H.is.und(n.pause)||(i.paused=g(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||g(e,t)),l=v(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-H.raf.now()}function f(){l>0&&!H.Globals.skipAnimation?(i.delayed=!0,u=H.raf.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var W=n(6901),q=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?G(e.get()):t.every(e=>e.noop)?$(e.get()):Y(e.get(),t.every(e=>e.finished)),$=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Y=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),G=e=>({value:e,cancelled:!0,finished:!1});function K(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let u=w(t,(e,t)=>"onRest"===t?void 0:e),c,d,f=new Promise((e,t)=>(c=e,d=t)),h=e=>{let t=i<=(n.cancelId||0)&&G(r)||i!==n.asyncId&&Y(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let o=new Q,a=new J;return(async()=>{if(W.Globals.skipAnimation)throw X(n),a.result=Y(r,!1),d(a),a;h(o);let s=W.is.obj(e)?{...e}:{...t,to:e};s.parentId=i,(0,W.eachProp)(u,(e,t)=>{W.is.und(s[t])&&(s[t]=e)});let l=await r.start(s);return h(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(W.Globals.skipAnimation)return X(n),Y(r,!1);try{let t;t=W.is.arr(e)?(async e=>{for(let t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(c),f]),m=Y(r.get(),!0,!1)}catch(e){if(e instanceof Q)m=e.result;else if(e instanceof J)m=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return W.is.fun(a)&&W.raf.batchedUpdates(()=>{a(m,r,r.item)}),m})():l}function X(e,t){(0,W.flush)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Q=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},J=class extends Error{constructor(){super("SkipAnimationSignal")}},ee=n(6901),et=n(25447),en=e=>e instanceof ei,er=1,ei=class extends ee.FluidValue{constructor(){super(...arguments),this.id=er++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,et.getAnimated)(this);return e&&e.getValue()}to(...e){return ee.Globals.to(this,e)}interpolate(...e){return(0,ee.deprecateInterpolate)(),ee.Globals.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){(0,ee.callFluidObservers)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ee.frameLoop.sort(this),(0,ee.callFluidObservers)(this,{type:"priority",parent:this,priority:e})}},eo=Symbol.for("SpringPhase"),ea=e=>(1&e[eo])>0,es=e=>(2&e[eo])>0,el=e=>(4&e[eo])>0,eu=(e,t)=>t?e[eo]|=3:e[eo]&=-3,ec=(e,t)=>t?e[eo]|=4:e[eo]&=-5,ed=class extends ei{constructor(e,t){if(super(),this.animation=new B,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!R.is.und(e)||!R.is.und(t)){let n=R.is.obj(e)?{...e}:{...t,from:e};R.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(es(this)||this._state.asyncTo)||el(this)}get goal(){return(0,R.getFluidValue)(this.animation.to)}get velocity(){let e=(0,D.getAnimated)(this);return e instanceof D.AnimatedValue?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return ea(this)}get isAnimating(){return es(this)}get isPaused(){return el(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=(0,D.getPayload)(r.to);!a&&(0,R.hasFluidValue)(r.to)&&(i=(0,R.toArray)((0,R.getFluidValue)(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==D.AnimatedString?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[l],i=null!=s.v0?s.v0:s.v0=R.is.arr(o.velocity)?o.velocity[l]:o.velocity,a,f=o.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;let t=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!R.is.und(r),h=n==u?s.v0>0:nt)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(a=-a*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*a)/o.mass;a+=1*e,d+=1*a}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(o.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),a=((d=n+o.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=(0,D.getAnimated)(this),l=s.getValue();if(t){let e=(0,R.getFluidValue)(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return R.raf.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(es(this)){let{to:e,config:t}=this.animation;R.raf.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return R.is.und(e)?(n=this.queue||[],this.queue=[]):n=[R.is.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>q(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),X(this._state,e&&this._lastCallId),R.raf.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=R.is.obj(n)?n[t]:n)||O(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return ea(this)||(e.reverse&&([n,r]=[r,n]),r=(0,R.getFluidValue)(r),R.is.und(r)?(0,D.getAnimated)(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,w(e,(e,t)=>/^on/.test(t)?y(e,n):e)),eg(this,e,"onProps"),ey(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{el(this)||(ec(this,!0),(0,R.flushCalls)(o.pauseQueue),ey(this,"onPause",Y(this,ef(this,this.animation.to)),this))},resume:()=>{el(this)&&(ec(this,!1),es(this)&&this._resume(),(0,R.flushCalls)(o.resumeQueue),ey(this,"onResume",Y(this,ef(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=eh(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(G(this));let r=!R.is.und(e.to),i=!R.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(G(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||R.is.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!(0,R.isEqual)(d,u);f&&(s.from=d),d=(0,R.getFluidValue)(d);let h=!(0,R.isEqual)(c,l);h&&this._focus(c);let p=O(t.to),{config:m}=s,{decay:y,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(I(n={...n},t),t={...n,...t}),I(e,t),Object.assign(e,t),V)null==e[r]&&(e[r]=V[r]);let{frequency:r,damping:i}=e,{mass:o}=e;L.is.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,v(t.config,o),t.config!==a.config?v(a.config,o):void 0);let b=(0,D.getAnimated)(this);if(!b||R.is.und(c))return n(Y(this,!0));let w=R.is.und(t.reset)?i&&!t.default:!R.is.und(d)&&g(t.reset,o),E=w?d:this.get(),j=_(c),k=R.is.num(j)||R.is.arr(j)||(0,R.isAnimatedString)(j),S=!p&&(!k||g(a.immediate||t.immediate,o));if(h){let e=(0,D.getAnimatedType)(c);if(e!==b.constructor){if(S)b=this._set(j);else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let C=b.constructor,M=(0,R.hasFluidValue)(c),A=!1;if(!M){let e=w||!ea(this)&&f;(h||e)&&(M=!(A=(0,R.isEqual)(_(E),j))),((0,R.isEqual)(s.immediate,S)||S)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,x)||(M=!0)}if(A&&es(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,R.hasFluidValue)(l))&&(s.values=b.getPayload(),s.toValues=(0,R.hasFluidValue)(c)?null:C==D.AnimatedString?[1]:(0,R.toArray)(j)),s.immediate==S||(s.immediate=S,S||w||this._set(l)),M)){let{onRest:e}=s;(0,R.each)(ev,e=>eg(this,t,e));let r=Y(this,ef(this,l));(0,R.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&R.raf.batchedUpdates(()=>{s.changed=!w,e?.(r,this),w?v(a.onRest,r):s.onStart?.(r,this)})}w&&this._set(E),p?n(K(t.to,t,this._state,this)):M?this._start():es(this)&&!h?this._pendingCalls.add(n):n($(E))}_focus(e){let t=this.animation;e!==t.to&&((0,R.getFluidObservers)(this)&&this._detach(),t.to=e,(0,R.getFluidObservers)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,R.hasFluidValue)(t)&&((0,R.addFluidObserver)(t,this),en(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,R.hasFluidValue)(e)&&(0,R.removeFluidObserver)(e,this)}_set(e,t=!0){let n=(0,R.getFluidValue)(e);if(!R.is.und(n)){let e=(0,D.getAnimated)(this);if(!e||!(0,R.isEqual)(n,e.getValue())){let r=(0,D.getAnimatedType)(n);e&&e.constructor==r?e.setValue(n):(0,D.setAnimated)(this,r.create(n)),e&&R.raf.batchedUpdates(()=>{this._onChange(n,t)})}}return(0,D.getAnimated)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,ey(this,"onStart",Y(this,ef(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),v(this.animation.onChange,e,this)),v(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;(0,D.getAnimated)(this).reset((0,R.getFluidValue)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),es(this)||(eu(this,!0),el(this)||this._resume())}_resume(){R.Globals.skipAnimation?this.finish():R.frameLoop.start(this)}_stop(e,t){if(es(this)){eu(this,!1);let n=this.animation;(0,R.each)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,R.callFluidObservers)(this,{type:"idle",parent:this});let r=t?G(this.get()):Y(this.get(),ef(this,e??n.to));(0,R.flushCalls)(this._pendingCalls,r),n.changed&&(n.changed=!1,ey(this,"onRest",r,this))}}};function ef(e,t){let n=_(t),r=_(e.get());return(0,R.isEqual)(r,n)}function eh(e,t=e.loop,n=e.to){let r=v(t);if(r){let i=!0!==r&&k(r),o=(i||e).reverse,a=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!o||O(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function ep(e){let{to:t,from:n}=e=k(e),r=new Set;return R.is.obj(t)&&em(t,r),R.is.obj(n)&&em(n,r),e.keys=r.size?Array.from(r):null,e}function em(e,t){(0,R.eachProp)(e,(e,n)=>null!=e&&t.add(n))}var ev=["onStart","onRest","onChange","onPause","onResume"];function eg(e,t,n){e.animation[n]=t[n]!==x(t,n)?y(t[n],e.key):void 0}function ey(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ex=n(6901),eb=["onStart","onChange","onRest"],ew=1,eE=class{constructor(e,t){this.id=ew++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];ex.is.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ep(e)),this}start(e){let{queue:t}=this;return e?t=(0,ex.toArray)(e).map(ep):this.queue=[],this._flush?this._flush(this,t):(eM(this,t),ej(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,ex.each)((0,ex.toArray)(t),t=>n[t].stop(!!e))}else X(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(ex.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].pause())}return this}resume(e){if(ex.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].resume())}return this}each(e){(0,ex.eachProp)(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,(0,ex.flush)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&(0,ex.flush)(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,(0,ex.flush)(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}ex.raf.onFrame(this._onFrame)}};function ej(e,t){return Promise.all(t.map(t=>ek(e,t))).then(t=>q(e,t))}async function ek(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=ex.is.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=ex.is.arr(i)||ex.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):(0,ex.each)(eb,n=>{let r=t[n];if(ex.is.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,(0,ex.flushCalls)(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===x(t,"cancel");(c||h&&d.asyncId)&&f.push(U(++e._lastAsyncId,{props:t,state:d,actions:{pause:ex.noop,resume:ex.noop,start(t,n){h?(X(d,e._lastAsyncId),n(G(e))):(t.onRest=s,n(K(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=eh(t,a,i);if(n)return eM(e,[n]),ek(e,n,!0)}return l&&ex.raf.batchedUpdates(()=>l(p,e,e.item)),p}function e_(e,t){let n={...e.springs};return t&&(0,ex.each)((0,ex.toArray)(t),e=>{ex.is.und(e.keys)&&(e=ep(e)),ex.is.obj(e.to)||(e={...e,to:void 0}),eC(n,e,e=>eO(e))}),eS(e,n),n}function eS(e,t){(0,ex.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,ex.addFluidObserver)(t,e))})}function eO(e,t){let n=new ed;return n.key=e,t&&(0,ex.addFluidObserver)(n,t),n}function eC(e,t,n){t.keys&&(0,ex.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eM(e,t){(0,ex.each)(t,t=>{eC(e.springs,t,t=>eO(t,e))})}var eA=f(n(2784)),eP=n(2784),eT=n(6901),eN=({children:e,...t})=>{let n=(0,eP.useContext)(eR),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eT.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=eR;return eA.createElement(o,{value:t},e)},eR=(Object.assign(eN,eA.createContext({})),eN.Provider._context=eN,eN.Consumer._context=eN,eN);eN.Provider=eR.Provider,eN.Consumer=eR.Consumer;var eD=n(6901),eL=()=>{let e=[],t=function(t){(0,eD.deprecateDirectCall)();let r=[];return(0,eD.each)(e,(e,i)=>{if(eD.is.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return(0,eD.each)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,eD.each)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,eD.each)(e,(e,n)=>{let r=eD.is.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return(0,eD.each)(e,(e,r)=>{if(eD.is.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return(0,eD.each)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,eD.each)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return eD.is.fun(e)?e(n,t):e};return t._getProps=n,t};function eF(e,t,n){let r=N.is.fun(t)&&t;r&&!n&&(n=[]);let i=(0,T.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),o=(0,T.useRef)(0),a=(0,N.useForceUpdate)(),s=(0,T.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=e_(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{eS(e,n),s.queue.push(()=>{r(ej(e,t))}),a()}):ej(e,t)}}),[]),l=(0,T.useRef)([...s.ctrls]),u=[],c=(0,N.usePrev)(e)||0;function d(e,n){for(let i=e;i{(0,N.each)(l.current.slice(e,c),e=>{C(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,T.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>e_(e,u[t])),h=(0,T.useContext)(eN),p=(0,N.usePrev)(h),m=h!==p&&S(h);(0,N.useIsomorphicLayoutEffect)(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],(0,N.each)(e,e=>e())),(0,N.each)(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(M(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,N.useOnce)(()=>()=>{(0,N.each)(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}function eV(e,t){let n=P.is.fun(e),[[r],i]=eF(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var ez=n(2784),eI=()=>eL(),eZ=()=>(0,ez.useState)(eI)[0],eB=n(6901),eH=(e,t)=>{let n=(0,eB.useConstant)(()=>new ed(e,t));return(0,eB.useOnce)(()=>()=>{n.stop()}),n},eU=n(6901);function eW(e,t,n){let r=eU.is.fun(t)&&t;r&&!n&&(n=[]);let i=!0,o,a=eF(e,(e,n)=>{let a=r?r(e,n):t;return o=a.ref,i=i&&a.reverse,a},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(a[1].current,(e,t)=>{let n=a[1].current[t+(i?1:-1)];if(M(e,o),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=o??a[1];return e._getProps=(t,n,r)=>{let i=eU.is.fun(t)?t(r,n):t;if(i){let t=e.current[r+(i.reverse?1:-1)];return t&&(i.to=t.springs),i}},a}return a[0]}var eq=f(n(2784)),e$=n(2784),eY=n(6901);function eG(e,t,n){let r=eY.is.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,e$.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),h=(0,eY.toArray)(e),p=[],m=(0,e$.useRef)(null),g=i?null:m.current;(0,eY.useIsomorphicLayoutEffect)(()=>{m.current=p}),(0,eY.useOnce)(()=>((0,eY.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eY.each)(m.current,e=>{e.expired&&clearTimeout(e.expirationId),C(e.ctrl,f),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):eK++})}return eY.is.und(n)?e:eY.is.fun(n)?e.map(n):(0,eY.toArray)(n)}(h,r?r():t,g),x=i&&m.current||[];(0,eY.useIsomorphicLayoutEffect)(()=>(0,eY.each)(x,({ctrl:e,item:t,key:n})=>{C(e,f),v(u,t,n)}));let b=[];if(g&&(0,eY.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),x.push(e)):~(t=b[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eY.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new eE},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;(0,eY.each)(b,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eY.is.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let E=-a,j=(0,eY.useForceUpdate)(),_=w(t),O=new Map,A=(0,e$.useRef)(new Map),P=(0,e$.useRef)(!1);(0,eY.each)(p,(e,n)=>{let i=e.key,o=e.phase,u=r?r():t,f,h,p=v(u.delay||0,i);if("mount"==o)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=o){if(e)f=u.leave,h="leave";else{if(!(f=u.update))return;h="update"}}else{if(e)return;f=u.enter,h="enter"}}if(f=v(f,e.item,n),!(f=eY.is.obj(f)?k(f):{to:f}).config){let t=d||_.config;f.config=v(t,e.item,n,h)}E+=a;let x={..._,delay:p+E,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eY.is.und(x.from)){let i=r?r():t,o=eY.is.und(i.initial)||g?i.from:i.initial;x.from=v(o,e.item,n)}let{onResolve:b}=x;x.onResolve=e=>{v(b,e);let t=m.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&"update"!=n.phase)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=v(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(j,r));return}}}e&&t.some(e=>e.expired)&&(A.current.delete(n),l&&(P.current=!0),j())}};let w=e_(e.ctrl,x);"leave"===h&&l?A.current.set(e,{phase:h,springs:w,payload:x}):O.set(e,{phase:h,springs:w,payload:x})});let T=(0,e$.useContext)(eN),N=(0,eY.usePrev)(T),R=T!==N&&S(T);(0,eY.useIsomorphicLayoutEffect)(()=>{R&&(0,eY.each)(p,e=>{e.ctrl.start({default:T})})},[T]),(0,eY.each)(O,(e,t)=>{if(A.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eY.useIsomorphicLayoutEffect)(()=>{(0,eY.each)(A.current.size?A.current:O,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:T}),t&&(M(r,t.ref),(r.ref||f)&&!P.current?r.update(t):(r.start(t),P.current&&(P.current=!1)))})},i?void 0:n);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,n)=>{let{springs:r}=O.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eq.createElement(i.type,{...i.props,key:eY.is.str(t.key)||eY.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eK=1,eX=n(6901),eQ=({container:e,...t}={})=>{let[n,r]=eV(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eX.useIsomorphicLayoutEffect)(()=>{let t=(0,eX.onScroll)(({x:e,y:t})=>{r.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})},{container:e?.current||void 0});return()=>{(0,eX.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eJ=n(6901),e0=({container:e,...t})=>{let[n,r]=eV(()=>({width:0,height:0,...t}),[]);return(0,eJ.useIsomorphicLayoutEffect)(()=>{let t=(0,eJ.onResize)(({width:e,height:t})=>{r.start({width:e,height:t,immediate:0===n.width.get()||0===n.height.get()})},{container:e?.current||void 0});return()=>{(0,eJ.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e1=n(2784),e2=n(6901),e4={any:0,all:1};function e3(e,t){let[n,r]=(0,e1.useState)(!1),i=(0,e1.useRef)(),o=e2.is.fun(e)&&e,{to:a={},from:s={},...l}=o?o():{},u=o?t:e,[c,d]=eV(()=>({from:s,...l}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:o,amount:l="any",...c}=u??{};if(!e||o&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(a&&d.start(a),r(!0),o?void 0:()=>{s&&d.start(s),r(!1)}),p=new IntersectionObserver(e=>{e.forEach(e=>{let t=f.get(e.target);if(!!t!==e.isIntersecting){if(e.isIntersecting){let t=h();e2.is.fun(t)?f.set(e.target,t):p.unobserve(e.target)}else t&&(t(),f.delete(e.target))}})},{root:t&&t.current||void 0,threshold:"number"==typeof l||Array.isArray(l)?l:e4[l],...c});return p.observe(e),()=>p.unobserve(e)},[u]),o?[i,c]:[i,n]}function e5({children:e,...t}){return e(eV(t))}var e6=n(6901);function e8({items:e,children:t,...n}){let r=eW(e.length,n);return e.map((e,n)=>{let i=t(e,n);return e6.is.fun(i)?i(r[n]):i})}function e7({items:e,children:t,...n}){return eG(e,n)(t)}var e9=n(6901),te=n(6901),tt=n(25447),tn=class extends ei{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,te.createInterpolator)(...t);let n=this._get(),r=(0,tt.getAnimatedType)(n);(0,tt.setAnimated)(this,r.create(n))}advance(e){let t=this._get(),n=this.get();(0,te.isEqual)(t,n)||((0,tt.getAnimated)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ti(this._active)&&to(this)}_get(){let e=te.is.arr(this.source)?this.source.map(te.getFluidValue):(0,te.toArray)((0,te.getFluidValue)(this.source));return this.calc(...e)}_start(){this.idle&&!ti(this._active)&&(this.idle=!1,(0,te.each)((0,tt.getPayload)(this),e=>{e.done=!1}),te.Globals.skipAnimation?(te.raf.batchedUpdates(()=>this.advance()),to(this)):te.frameLoop.start(this))}_attach(){let e=1;(0,te.each)((0,te.toArray)(this.source),t=>{(0,te.hasFluidValue)(t)&&(0,te.addFluidObserver)(t,this),en(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){(0,te.each)((0,te.toArray)(this.source),e=>{(0,te.hasFluidValue)(e)&&(0,te.removeFluidObserver)(e,this)}),this._active.clear(),to(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=(0,te.toArray)(this.source).reduce((e,t)=>Math.max(e,(en(t)?t.priority:0)+1),0))}};function tr(e){return!1!==e.idle}function ti(e){return!e.size||Array.from(e).every(tr)}function to(e){e.idle||(e.idle=!0,(0,te.each)((0,tt.getPayload)(e),e=>{e.done=!0}),(0,te.callFluidObservers)(e,{type:"idle",parent:e}))}var ta=(e,...t)=>new tn(e,t),ts=(e,...t)=>((0,e9.deprecateInterpolate)(),new tn(e,t)),tl=n(6901);tl.Globals.assign({createStringInterpolator:tl.createStringInterpolator,to:(e,t)=>new tn(e,t)});var tu=tl.frameLoop.advance,tc=n(6901);r=n(8669),i=e.exports,d(h,r,"default"),i&&d(i,r,"default")},78476:function(e,t,n){"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l={};s(l,{FluidValue:()=>eP,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eM,callFluidObservers:()=>eA,clamp:()=>J,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>ex,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eX,deprecateInterpolate:()=>eG,each:()=>T,eachProp:()=>N,easings:()=>ej,flush:()=>D,flushCalls:()=>V,frameLoop:()=>Y,getFluidObservers:()=>eC,getFluidValue:()=>eO,hasFluidValue:()=>eS,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>ea,hsla:()=>es,is:()=>A,isAnimatedString:()=>eQ,isEqual:()=>P,isSSR:()=>z,noop:()=>C,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>eo,setFluidGetter:()=>eT,toArray:()=>R,useConstant:()=>ta,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tv,usePrev:()=>tx,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))a.call(e,n)||void 0===n||r(e,n,{get:()=>t[n],enumerable:!(s=i(t,n))||s.enumerable});return e})(r({},"__esModule",{value:!0}),l);var u={};s(u,{assign:()=>H,colors:()=>I,createStringInterpolator:()=>L,skipAnimation:()=>Z,to:()=>F,willAdvance:()=>B});var c=S(),d=e=>E(e,c),f=S();d.write=e=>E(e,f);var h=S();d.onStart=e=>E(e,h);var p=S();d.onFrame=e=>E(e,p);var m=S();d.onFinish=e=>E(e,m);var v=[];d.setTimeout=(e,t)=>{let n=d.now()+t,r=()=>{let e=v.findIndex(e=>e.cancel==r);~e&&v.splice(e,1),b-=~e?1:0},i={time:n,handler:e,cancel:r};return v.splice(g(n),0,i),b+=1,j(),i};var g=e=>~(~v.findIndex(t=>t.time>e)||~v.length);d.cancel=e=>{h.delete(e),p.delete(e),m.delete(e),c.delete(e),f.delete(e)},d.sync=e=>{w=!0,d.batchedUpdates(e),w=!1},d.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,d.onStart(n)}return r.handler=e,r.cancel=()=>{h.delete(n),t=null},r};var y="u">typeof window?window.requestAnimationFrame:()=>{};d.use=e=>y=e,d.now="u">typeof performance?()=>performance.now():Date.now,d.batchedUpdates=e=>e(),d.catch=console.error,d.frameLoop="always",d.advance=()=>{"demand"!==d.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):_()};var x=-1,b=0,w=!1;function E(e,t){w?(t.delete(e),e(0)):(t.add(e),j())}function j(){x<0&&(x=0,"demand"!==d.frameLoop&&y(k))}function k(){~x&&(y(k),d.batchedUpdates(_))}function _(){let e=x,t=g(x=d.now());if(t&&(O(v.splice(0,t),e=>e.handler()),b-=t),!b){x=-1;return}h.flush(),c.flush(e?Math.min(64,x-e):16.667),p.flush(),f.flush(),m.flush()}function S(){let e=new Set,t=e;return{add(n){b+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(b-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,b-=t.size,O(t,t=>t(n)&&e.add(t)),b+=e.size,t=e)}}}function O(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function C(){}var M=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),A={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function P(e,t){if(A.arr(e)){if(!A.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function N(e,t,n){if(A.arr(e)){for(let r=0;rA.und(e)?[]:A.arr(e)?e:[e];function D(e,t){if(e.size){let n=Array.from(e);e.clear(),T(n,t)}}var L,F,V=(e,...t)=>D(e,e=>e(...t)),z=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),I=null,Z=!1,B=C,H=e=>{e.to&&(F=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(I=e.colors),null!=e.skipAnimation&&(Z=e.skipAnimation),e.createStringInterpolator&&(L=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance),e.frameLoop&&(d.frameLoop=e.frameLoop)},U=new Set,W=[],q=[],$=0,Y={get idle(){return!U.size&&!W.length},start(e){$>e.priority?(U.add(e),d.onStart(G)):(K(e),d(Q))},advance:Q,sort(e){if($)d.onFrame(()=>Y.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),X(e))}},clear(){W=[],U.clear()}};function G(){U.forEach(K),U.clear(),d(Q)}function K(e){W.includes(e)||X(e)}function X(e){var t;let n;W.splice((n=(t=W).findIndex(t=>t.priority>e.priority))<0?t.length:n,0,e)}function Q(e){let t=q;for(let n=0;n0}var J=(e,t,n)=>Math.min(Math.max(n,e),t),ee={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},et="[-+]?\\d*\\.?\\d+",en=et+"%";function er(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ei=RegExp("rgb"+er(et,et,et)),eo=RegExp("rgba"+er(et,et,et,et)),ea=RegExp("hsl"+er(et,en,en)),es=RegExp("hsla"+er(et,en,en,et)),el=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ec=/^#([0-9a-fA-F]{6})$/,ed=/^#([0-9a-fA-F]{8})$/;function ef(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eh(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*ef(i,r,e+1/3))<<24|Math.round(255*ef(i,r,e))<<16|Math.round(255*ef(i,r,e-1/3))<<8}function ep(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function em(e){return(parseFloat(e)%360+360)%360/360}function ev(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function eg(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ey(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ec.exec(e))?parseInt(t[1]+"ff",16)>>>0:I&&void 0!==I[e]?I[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=eo.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|ev(t[4]))>>>0:(t=el.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ed.exec(e))?parseInt(t[1],16)>>>0:(t=eu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ea.exec(e))?(255|eh(em(t[1]),eg(t[2]),eg(t[3])))>>>0:(t=es.exec(e))?(eh(em(t[1]),eg(t[2]),eg(t[3]))|ev(t[4]))>>>0:null;return null===n?e:`rgba(${(4278190080&(n=n||0))>>>24}, ${(16711680&n)>>>16}, ${(65280&n)>>>8}, ${(255&n)/255})`}var ex=(e,t,n)=>{if(A.fun(e))return e;if(A.arr(e))return ex({range:e,output:t,extrapolate:n});if(A.str(e.output[0]))return L(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},eb=2*Math.PI/3,ew=2*Math.PI/4.5,eE=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,ej={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-1.70158*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(3.5949095*2*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*eb),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*eb)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ew))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ew)/2+1,easeInBounce:e=>1-eE(1-e),easeOutBounce:eE,easeInOutBounce:e=>e<.5?(1-eE(1-2*e))/2:(1+eE(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return J(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},ek=Symbol.for("FluidValue.get"),e_=Symbol.for("FluidValue.observers"),eS=e=>!!(e&&e[ek]),eO=e=>e&&e[ek]?e[ek]():e,eC=e=>e[e_]||null;function eM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eA(e,t){let n=e[e_];n&&n.forEach(e=>{eM(e,t)})}var eP=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eT(this,e)}},eT=(e,t)=>eL(e,ek,t);function eN(e,t){if(e[ek]){let n=e[e_];n||eL(e,e_,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function eR(e,t){let n=e[e_];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[e_]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eD,eL=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eF=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eV=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ez=RegExp(`(${eF.source})(%|[a-z]+)`,"i"),eI=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eZ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eB=e=>{let[t,n]=eH(e);if(!t||z())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&eZ.test(n)?eB(n):n||e},eH=e=>{let t=eZ.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},eU=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,eW=e=>{eD||(eD=I?RegExp(`(${Object.keys(I).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eO(e).replace(eZ,eB).replace(eV,ey).replace(eD,ey)),n=t.map(e=>e.match(eF).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>ex({...e,output:t}));return e=>{let n=!ez.test(t[0])&&t.find(e=>ez.test(e))?.replace(eF,""),i=0;return t[0].replace(eF,()=>`${r[i++](e)}${n||""}`).replace(eI,eU)}},eq="react-spring: ",e$=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eq}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},eY=e$(console.warn);function eG(){eY(`${eq}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eK=e$(console.warn);function eX(){eK(`${eq}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function eQ(e){return A.str(e)&&("#"==e[0]||/\d/.test(e)||!z()&&eZ.test(e)||e in(I||{}))}var eJ,e0,e1=new WeakMap,e2=e=>e.forEach(({target:e,contentRect:t})=>e1.get(e)?.forEach(e=>e(t))),e4=new Set,e3=()=>{let e=()=>{e4.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},e5=e=>(e4.add(e),e0||(e0=e3()),()=>{e4.delete(e),!e4.size&&e0&&(e0(),e0=void 0)}),e6=(e,{container:t=document.documentElement}={})=>{let n;return t===document.documentElement?e5(e):(eJ||"u">typeof ResizeObserver&&(eJ=new ResizeObserver(e2)),(n=e1.get(t))||(n=new Set,e1.set(t,n)),n.add(e),eJ&&eJ.observe(t),()=>{let n=e1.get(t);n&&(n.delete(e),!n.size&&eJ&&eJ.unobserve(t))})},e8=(e,t,n)=>t-e==0?1:(n-e)/(t-e),e7={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},e9=class{constructor(e,t){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=e=>{let t=this.info[e],{length:n,position:r}=e7[e];t.current=this.container[`scroll${r}`],t.scrollLength=this.container["scroll"+n]-this.container["client"+n],t.progress=e8(0,t.scrollLength,t.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=e,this.container=t,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}},te=new WeakMap,tt=new WeakMap,tn=new WeakMap,tr=e=>e===document.documentElement?window:e,ti=(e,{container:t=document.documentElement}={})=>{let n=tn.get(t);n||(n=new Set,tn.set(t,n));let r=new e9(e,t);if(n.add(r),!te.has(t)){let e=()=>(n?.forEach(e=>e.advance()),!0);te.set(t,e);let r=tr(t);window.addEventListener("resize",e,{passive:!0}),t!==document.documentElement&&tt.set(t,e6(e,{container:t})),r.addEventListener("scroll",e,{passive:!0})}let i=te.get(t);return d(i),()=>{d.cancel(i);let e=tn.get(t);if(!e||(e.delete(r),e.size))return;let n=te.get(t);te.delete(t),n&&(tr(t).removeEventListener("scroll",n),window.removeEventListener("resize",n),tt.get(t)?.())}},to=n(2784);function ta(e){let t=(0,to.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ts=n(2784),tl=n(2784),tu=n(2784),tc=z()?tu.useEffect:tu.useLayoutEffect,td=()=>{let e=(0,tl.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tf(){let e=(0,ts.useState)()[1],t=td();return()=>{t.current&&e(Math.random())}}var th=n(2784);function tp(e,t){let[n]=(0,th.useState)(()=>({inputs:t,result:e()})),r=(0,th.useRef)(),i=r.current,o=i;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}var tm=n(2784),tv=e=>(0,tm.useEffect)(e,tg),tg=[],ty=n(2784);function tx(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tb=n(2784),tw=()=>{let[e,t]=(0,tb.useState)(null);return tc(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),H({skipAnimation:e.matches})};return n(e),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),e}},19455:function(e){"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{Any:()=>a}),e.exports=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of r(o))i.call(e,a)||void 0===a||t(e,a,{get:()=>o[a],enumerable:!(s=n(o,a))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a=class{}},96721:function(e,t,n){"use strict";var r,i,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))l.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>M,animated:()=>M}),e.exports=u(o({},"__esModule",{value:!0}),c);var d=n(99550),f=n(28316),h=n(6901),p=n(25447),m=/^--/,v={},g={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},y=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),x=["Webkit","Ms","Moz","O"];g=Object.keys(g).reduce((e,t)=>(x.forEach(n=>e[y(n,t)]=e[t]),e),g);var b=n(25447),w=n(6901),E=/^(matrix|translate|scale|rotate|skew)/,j=/^(translate)/,k=/^(rotate|skew)/,_=(e,t)=>w.is.num(e)&&0!==e?e+t:e,S=(e,t)=>w.is.arr(e)?e.every(e=>S(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,O=class extends b.AnimatedObject{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>_(e,"px")).join(",")})`,S(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(E.test(t)){if(delete r[t],w.is.und(e))return;let n=j.test(t)?"px":k.test(t)?"deg":"";i.push((0,w.toArray)(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${_(i,n)})`,S(i,0)]:e=>[`${t}(${e.map(e=>_(e,n)).join(",")})`,S(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new C(i,o)),super(r)}},C=class extends w.FluidValue{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return(0,w.each)(this.inputs,(n,r)=>{let i=(0,w.getFluidValue)(n[0]),[o,a]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.addFluidObserver)(e,this)))}observerRemoved(e){0==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.removeFluidObserver)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),(0,w.callFluidObservers)(this,e)}};r=n(99550),i=e.exports,u(c,r,"default"),i&&u(i,r,"default"),d.Globals.assign({batchedUpdates:f.unstable_batchedUpdates,createStringInterpolator:h.createStringInterpolator,colors:h.colors});var M=(0,p.createHost)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:v[t]||(v[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||m.test(t)||g.hasOwnProperty(t)&&g[t]?(""+d).trim():d+"px";m.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new O(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated},7896:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,n=0,r="";nn=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let o=r(t)||r(i);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),c=null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]);return i(e,l,c,null==n?void 0:n.class,null==n?void 0:n.className)}},99182:function(e,t,n){"use strict";n.d(t,{U8:function(){return A},mY:function(){return _}});var r=n(72331),i=n(2784),o=n(40844),a='[cmdk-group=""]',s='[cmdk-group-items=""]',l='[cmdk-item=""]',u=`${l}:not([aria-disabled="true"])`,c="cmdk-item-select",d="data-value",f=(e,t)=>o(e,t),h=i.createContext(void 0),p=()=>i.useContext(h),m=i.createContext(void 0),v=()=>i.useContext(m),g=i.createContext(void 0),y=i.forwardRef((e,t)=>{let n=i.useRef(null),r=C(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),o=C(()=>new Set),p=C(()=>new Map),v=C(()=>new Map),g=C(()=>new Set),y=S(e),{label:x,children:b,value:w,onValueChange:E,filter:j,shouldFilter:k,..._}=e,A=i.useId(),P=i.useId(),R=i.useId(),D=T();O(()=>{if(void 0!==w){let e=w.trim().toLowerCase();r.current.value=e,D(6,B),L.emit()}},[w]);let L=i.useMemo(()=>({subscribe:e=>(g.current.add(e),()=>g.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,o,a;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)Z(),z(),D(1,I);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(a=(o=y.current).onValueChange)||a.call(o,t);return}n||D(5,B)}L.emit()}},emit:()=>{g.current.forEach(e=>e())}}),[]),F=i.useMemo(()=>({value:(e,t)=>{t!==v.current.get(e)&&(v.current.set(e,t),r.current.filtered.items.set(e,V(t)),D(2,()=>{z(),L.emit()}))},item:(e,t)=>(o.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{Z(),z(),r.current.value||I(),L.emit()}),()=>{v.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{Z(),I(),L.emit()})}),group:e=>(p.current.has(e)||p.current.set(e,new Set),()=>{v.current.delete(e),p.current.delete(e)}),filter:()=>y.current.shouldFilter,label:x||e["aria-label"],listId:A,inputId:R,labelId:P}),[]);function V(e){var t;let n=(null==(t=y.current)?void 0:t.filter)??f;return e?n(e,r.current.search):0}function z(){if(!n.current||!r.current.search||!1===y.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(n=>{let r=p.current.get(n),i=0;r.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([n,i])});let i=n.current.querySelector('[cmdk-list-sizer=""]');U().sort((t,n)=>{let r=t.getAttribute(d),i=n.getAttribute(d);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(s);t?t.appendChild(e.parentElement===t?e:e.closest(`${s} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${s} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${a}[${d}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function I(){let e=U().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(d);L.setState("value",t||void 0)}function Z(){if(!r.current.search||!1===y.current.shouldFilter){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=V(v.current.get(t));r.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of p.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=e}function B(){var e,t,n;let r=H();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(a))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function H(){return n.current.querySelector(`${l}[aria-selected="true"]`)}function U(){return Array.from(n.current.querySelectorAll(u))}function W(e){let t=U()[e];t&&L.setState("value",t.getAttribute(d))}function q(e){var t;let n=H(),r=U(),i=r.findIndex(e=>e===n),o=r[i+e];null!=(t=y.current)&&t.loop&&(o=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),o&&L.setState("value",o.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(a),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,a):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,a))?void 0:n.querySelector(u);r?L.setState("value",r.getAttribute(d)):q(e)}let Y=()=>W(U().length-1),G=e=>{e.preventDefault(),e.metaKey?Y():e.altKey?$(1):q(1)},K=e=>{e.preventDefault(),e.metaKey?W(0):e.altKey?$(-1):q(-1)};return i.createElement("div",{ref:M([n,t]),..._,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=_.onKeyDown)||t.call(_,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&G(e);break;case"ArrowDown":G(e);break;case"p":case"k":e.ctrlKey&&K(e);break;case"ArrowUp":K(e);break;case"Home":e.preventDefault(),W(0);break;case"End":e.preventDefault(),Y();break;case"Enter":{e.preventDefault();let t=H();if(t){let e=new Event(c);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:F.inputId,id:F.labelId,style:N},x),i.createElement(m.Provider,{value:L},i.createElement(h.Provider,{value:F},b)))}),x=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),o=i.useContext(g),a=p(),s=S(e);O(()=>a.item(n,o),[]);let l=P(n,r,[e.value,e.children,r]),u=v(),d=A(e=>e.value&&e.value===l.current),f=A(e=>!1===a.filter()||!e.search||e.filtered.items.get(n)>0);function h(){var e,t;null==(t=(e=s.current).onSelect)||t.call(e,l.current)}if(i.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(c,h),()=>t.removeEventListener(c,h)},[f,e.onSelect,e.disabled]),!f)return null;let{disabled:m,value:y,onSelect:x,...b}=e;return i.createElement("div",{ref:M([r,t]),...b,"cmdk-item":"",role:"option","aria-disabled":m||void 0,"aria-selected":d||void 0,"data-selected":d||void 0,onPointerMove:m?void 0:function(){u.setState("value",l.current,!0)},onClick:m?void 0:h},e.children)}),b=i.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,a=i.useId(),s=i.useRef(null),l=i.useRef(null),u=i.useId(),c=p(),d=A(e=>!1===c.filter()||!e.search||e.filtered.groups.has(a));O(()=>c.group(a),[]),P(a,s,[e.value,e.heading,l]);let f=i.createElement(g.Provider,{value:a},r);return i.createElement("div",{ref:M([s,t]),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&i.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},f))}),w=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),a=A(e=>!e.search);return n||a?i.createElement("div",{ref:M([o,t]),...r,"cmdk-separator":"",role:"separator"}):null}),E=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=v(),s=A(e=>e.search),l=p();return i.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),i.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,id:l.inputId,type:"text",value:o?e.value:s,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),j=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.useRef(null),a=i.useRef(null),s=p();return i.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect().height;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),i.createElement("div",{ref:M([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},i.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),k=i.forwardRef((e,t)=>{let{open:n,onOpenChange:o,container:a,...s}=e;return i.createElement(r.fC,{open:n,onOpenChange:o},i.createElement(r.h_,{container:a},i.createElement(r.aV,{"cmdk-overlay":""}),i.createElement(r.VY,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(y,{ref:t,...s}))))}),_=Object.assign(y,{List:j,Item:x,Input:E,Group:b,Separator:w,Dialog:k,Empty:i.forwardRef((e,t)=>{let n=i.useRef(!0),r=A(e=>0===e.filtered.count);return i.useEffect(()=>{n.current=!1},[]),n.current||!r?null:i.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Loading:i.forwardRef((e,t)=>{let{progress:n,children:r,...o}=e;return i.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function S(e){let t=i.useRef(e);return O(()=>{t.current=e}),t}var O=typeof window>"u"?i.useEffect:i.useLayoutEffect;function C(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function M(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function A(e){let t=v(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function P(e,t,n){let r=i.useRef(),o=p();return O(()=>{var i;let a=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim().toLowerCase();if("object"==typeof t&&"current"in t&&t.current)return null==(e=t.current.textContent)?void 0:e.trim().toLowerCase()}})();o.value(e,a),null==(i=t.current)||i.setAttribute(d,a),r.current=a}),r}var T=()=>{let[e,t]=i.useState(),n=C(()=>new Map);return O(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}},N={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},63955:function(e,t,n){"use strict";n.d(t,{cI:function(){return em}});var r=n(2784),i=e=>"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||e instanceof FileList))&&(n||l(e))))return e;else if(t=n?[]:{},Array.isArray(e)||f(e))for(let n in e)t[n]=p(e[n]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,n)=>{if(!t||!l(e))return n;let r=m(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return v(r)||r===e?v(e[t])?n:e[t]:r};let y={BLUR:"blur",FOCUS_OUT:"focusout"},x={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},b={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};r.createContext(null);var w=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==x.all&&(t._proxyFormState[o]=!r||x.all),n&&(n[o]=!0),e[o])});return i},E=e=>l(e)&&!Object.keys(e).length,j=(e,t,n,r)=>{n(e);let{name:i,...o}=e;return E(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!r||x.all))},k=e=>Array.isArray(e)?e:[e],_=e=>"string"==typeof e,S=(e,t,n,r,i)=>_(e)?(r&&t.watch.add(e),g(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),g(n,e))):(r&&(t.watchAll=!0),n),O=e=>/^\w*$/.test(e),C=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function M(e,t,n){let r=-1,i=O(t)?[t]:C(t),o=i.length,a=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let P=(e,t,n)=>{for(let r of n||Object.keys(e)){let n=g(e,r);if(n){let{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(r)&&P(r,t)}}};var T=e=>({isOnSubmit:!e||e===x.onSubmit,isOnBlur:e===x.onBlur,isOnChange:e===x.onChange,isOnAll:e===x.all,isOnTouch:e===x.onTouched}),N=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),R=(e,t,n)=>{let r=m(g(e,n));return M(r,"root",t[n]),M(e,n,r),e},D=e=>"boolean"==typeof e,L=e=>"file"===e.type,F=e=>"function"==typeof e,V=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},z=e=>_(e),I=e=>"radio"===e.type,Z=e=>e instanceof RegExp;let B={value:!1,isValid:!1},H={value:!0,isValid:!0};var U=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||""===e[0].value?H:{value:e[0].value,isValid:!0}:H:B}return B};let W={isValid:!1,value:null};var q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,W):W;function $(e,t,n="validate"){if(z(e)||Array.isArray(e)&&e.every(z)||D(e)&&!e)return{type:n,message:z(e)?e:"",ref:t}}var Y=e=>l(e)&&!Z(e)?e:{value:e,message:""},G=async(e,t,n,r,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:x,valueAsNumber:w,mount:j,disabled:k}=e._f,S=g(t,x);if(!j||k)return{};let O=u?u[0]:s,C=e=>{r&&O.reportValidity&&(O.setCustomValidity(D(e)?"":e||""),O.reportValidity())},M={},P=I(s),T=i(s),N=(w||L(s))&&v(s.value)&&v(S)||V(s)&&""===s.value||""===S||Array.isArray(S)&&!S.length,R=A.bind(null,x,n,M),B=(e,t,n,r=b.maxLength,i=b.minLength)=>{let o=e?t:n;M[x]={type:e?r:i,message:o,ref:s,...R(e?r:i,o)}};if(o?!Array.isArray(S)||!S.length:c&&(!(P||T)&&(N||a(S))||D(S)&&!S||T&&!U(u).isValid||P&&!q(u).isValid)){let{value:e,message:t}=z(c)?{value:!!c,message:c}:Y(c);if(e&&(M[x]={type:b.required,message:t,ref:O,...R(b.required,t)},!n))return C(t),M}if(!N&&(!a(h)||!a(p))){let e,t;let r=Y(p),i=Y(h);if(a(S)||isNaN(S)){let n=s.valueAsDate||new Date(S),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;_(r.value)&&S&&(e=a?o(S)>o(r.value):l?S>r.value:n>new Date(r.value)),_(i.value)&&S&&(t=a?o(S)r.value),a(i.value)||(t=n+e.value,i=!a(t.value)&&S.length<+t.value;if((r||i)&&(B(r,e.message,t.message),!n))return C(M[x].message),M}if(m&&!N&&_(S)){let{value:e,message:t}=Y(m);if(Z(e)&&!S.match(e)&&(M[x]={type:b.pattern,message:t,ref:s,...R(b.pattern,t)},!n))return C(t),M}if(y){if(F(y)){let e=await y(S,t),r=$(e,O);if(r&&(M[x]={...r,...R(b.validate,r.message)},!n))return C(r.message),M}else if(l(y)){let e={};for(let r in y){if(!E(e)&&!n)break;let i=$(await y[r](S,t),O,r);i&&(e={...i,...R(r,i.message)},C(i.message),n&&(M[x]=e))}if(!E(e)&&(M[x]={ref:O,...e},!n))return M}}return C(!0),M};function K(e,t){let n=Array.isArray(t)?t:O(t)?[t]:C(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var Q=e=>a(e)||!s(e);function J(e,t){if(Q(e)||Q(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n){let n=e[i];if(!r.includes(i))return!1;if("ref"!==i){let e=t[i];if(o(n)&&o(e)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!J(n,e):n!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>I(e)||i(e),en=e=>V(e)&&e.isConnected,er=e=>{for(let t in e)if(F(e[t]))return!0;return!1};function ei(e,t={}){let n=Array.isArray(e);if(l(e)||n)for(let n in e)Array.isArray(e[n])||l(e[n])&&!er(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ei(e[n],t[n])):a(e[n])||(t[n]=!0);return t}var eo=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!er(t[i])?v(n)||Q(r[i])?r[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],a(n)?{}:n[i],r[i]):r[i]=!J(t[i],n[i]);return r})(e,t,ei(t)),ea=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>v(e)?e:t?""===e?NaN:e?+e:e:n&&_(e)?new Date(e):r?r(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:L(t)?t.files:I(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?U(e.refs).value:ea(v(t.value)?e.ref.value:t.value,e)}var el=(e,t,n,r)=>{let i={};for(let n of e){let e=g(t,n);e&&M(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},eu=e=>v(e)?e:Z(e)?e.source:l(e)?Z(e.value)?e.value.source:e.value:e,ec=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ed(e,t,n){let r=g(e,n);if(r||O(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=g(t,r),a=g(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(a&&a.type)return{name:r,error:a};i.pop()}return{name:n}}var ef=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?!r.isOnChange:!i.isOnChange)||e),eh=(e,t)=>!m(g(e,t)).length&&K(e,t);let ep={mode:x.onSubmit,reValidateMode:x.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),[n,s]=r.useState({isDirty:!1,isValidating:!1,isLoading:F(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:F(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let n,r={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:F(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},c={},f=(l(r.defaultValues)||l(r.values))&&p(r.defaultValues||r.values)||{},b=r.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},j={mount:new Set,unMount:new Set,array:new Set,watch:new Set},O=0,C={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},A={values:X(),array:X(),state:X()},z=e.resetOptions&&e.resetOptions.keepDirtyValues,I=T(r.mode),Z=T(r.reValidateMode),B=r.criteriaMode===x.all,H=e=>t=>{clearTimeout(O),O=setTimeout(e,t)},U=async e=>{if(C.isValid||e){let e=r.resolver?E((await ei()).errors):await ev(c,!0);e!==s.isValid&&A.state.next({isValid:e})}},W=e=>C.isValidating&&A.state.next({isValidating:e}),q=(e,t)=>{M(s.errors,e,t),A.state.next({errors:s.errors})},$=(e,t,n,r)=>{let i=g(c,e);if(i){let o=g(b,e,v(n)?g(f,e):n);v(o)||r&&r.defaultChecked||t?M(b,e,t?o:es(i._f)):ex(e,o),w.mount&&U()}},Y=(e,t,n,r,i)=>{let o=!1,a=!1,l={name:e};if(!n||r){C.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=eg(),o=a!==l.isDirty);let n=J(g(f,e),t);a=g(s.dirtyFields,e),n?K(s.dirtyFields,e):M(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||C.dirtyFields&&!n!==a}if(n){let t=g(s.touchedFields,e);t||(M(s.touchedFields,e,n),l.touchedFields=s.touchedFields,o=o||C.touchedFields&&t!==n)}return o&&i&&A.state.next(l),o?l:{}},er=(t,r,i,o)=>{let a=g(s.errors,t),l=C.isValid&&D(r)&&s.isValid!==r;if(e.delayError&&i?(n=H(()=>q(t,i)))(e.delayError):(clearTimeout(O),n=null,i?M(s.errors,t,i):K(s.errors,t)),(i?!J(a,i):a)||!E(o)||l){let e={...o,...l&&D(r)?{isValid:r}:{},errors:s.errors,name:t};s={...s,...e},A.state.next(e)}W(!1)},ei=async e=>r.resolver(b,r.context,el(e||j.mount,c,r.criteriaMode,r.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await ei();if(e)for(let n of e){let e=g(t,n);e?M(s.errors,n,e):K(s.errors,n)}else s.errors=t;return t},ev=async(e,t,n={valid:!0})=>{for(let i in e){let o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=j.array.has(e.name),a=await G(o,b,B,r.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(n.valid=!1,t))break;t||(g(a,e.name)?i?R(s.errors,a,e.name):M(s.errors,e.name,a[e.name]):K(s.errors,e.name))}i&&await ev(i,t,n)}}return n.valid},eg=(e,t)=>(e&&t&&M(b,e,t),!J(ek(),f)),ey=(e,t,n)=>S(e,j,{...w.mount?b:v(t)?f:_(e)?{[e]:t}:t},n,t),ex=(e,t,n={})=>{let r=g(c,e),o=t;if(r){let n=r._f;n&&(n.disabled||M(b,e,ea(t,n)),o=V(n.ref)&&a(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach(e=>e.checked=e.value===o):L(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||A.values.next({name:e,values:{...b}})))}(n.shouldDirty||n.shouldTouch)&&Y(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ej(e)},eb=(e,t,n)=>{for(let r in t){let i=t[r],a=`${e}.${r}`,s=g(c,a);!j.array.has(e)&&Q(i)&&(!s||s._f)||o(i)?ex(a,i,n):eb(a,i,n)}},ew=(e,n,r={})=>{let i=g(c,e),o=j.array.has(e),l=p(n);M(b,e,l),o?(A.array.next({name:e,values:{...b}}),(C.isDirty||C.dirtyFields)&&r.shouldDirty&&A.state.next({name:e,dirtyFields:eo(f,b),isDirty:eg(e,l)})):!i||i._f||a(l)?ex(e,l,r):eb(e,l,r),N(e,j)&&A.state.next({...s}),A.values.next({name:e,values:{...b}}),w.mount||t()},eE=async e=>{let t=e.target,i=t.name,o=!0,a=g(c,i);if(a){let l,d;let f=t.type?es(a._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(a._f)&&!r.resolver&&!g(s.errors,i)&&!a._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,Z,I),m=N(i,j,h);M(b,i,f),h?(a._f.onBlur&&a._f.onBlur(e),n&&n(0)):a._f.onChange&&a._f.onChange(e);let v=Y(i,f,h,!1),x=!E(v)||m;if(h||A.values.next({name:i,type:e.type,values:{...b}}),p)return C.isValid&&U(),x&&A.state.next({name:i,...m?{}:v});if(!h&&m&&A.state.next({...s}),W(!0),r.resolver){let{errors:e}=await ei([i]),t=ed(s.errors,c,i),n=ed(e,c,t.name||i);l=n.error,i=n.name,d=E(e)}else l=(await G(a,b,B,r.shouldUseNativeValidation))[i],(o=isNaN(f)||f===g(b,i,f))&&(l?d=!1:C.isValid&&(d=await ev(c,!0)));o&&(a._f.deps&&ej(a._f.deps),er(i,d,l,v))}},ej=async(e,t={})=>{let n,i;let o=k(e);if(W(!0),r.resolver){let t=await em(v(e)?e:o);n=E(t),i=e?!o.some(e=>g(t,e)):n}else e?((i=(await Promise.all(o.map(async e=>{let t=g(c,e);return await ev(t&&t._f?{[e]:t}:t)}))).every(Boolean))||s.isValid)&&U():i=n=await ev(c);return A.state.next({...!_(e)||C.isValid&&n!==s.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&P(c,e=>e&&g(s.errors,e),e?o:j.mount),i},ek=e=>{let t={...f,...w.mount?b:{}};return v(e)?t:_(e)?g(t,e):e.map(e=>g(t,e))},e_=(e,t)=>({invalid:!!g((t||s).errors,e),isDirty:!!g((t||s).dirtyFields,e),isTouched:!!g((t||s).touchedFields,e),error:g((t||s).errors,e)}),eS=(e,t={})=>{for(let n of e?k(e):j.mount)j.mount.delete(n),j.array.delete(n),t.keepValue||(K(c,n),K(b,n)),t.keepError||K(s.errors,n),t.keepDirty||K(s.dirtyFields,n),t.keepTouched||K(s.touchedFields,n),r.shouldUnregister||t.keepDefaultValue||K(f,n);A.values.next({values:{...b}}),A.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||U()},eO=(e,t={})=>{let n=g(c,e),i=D(t.disabled);return M(c,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),j.mount.add(e),n?i&&M(b,e,t.disabled?void 0:g(b,e,es(n._f))):$(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.shouldUseNativeValidation?{required:!!t.required,min:eu(t.min),max:eu(t.max),minLength:eu(t.minLength),maxLength:eu(t.maxLength),pattern:eu(t.pattern)}:{},name:e,onChange:eE,onBlur:eE,ref:i=>{if(i){eO(e,t),n=g(c,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(M(c,e,{_f:{...n._f,...o?{refs:[...a.filter(en),r,...Array.isArray(g(f,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),$(e,!1,void 0,r))}else(n=g(c,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(d(j.array,e)&&w.action)&&j.unMount.add(e)}}},eC=()=>r.shouldFocusError&&P(c,e=>e&&g(s.errors,e),j.mount),eM=(n,r={})=>{let i=n||f,o=p(i),a=n&&!E(n)?o:f;if(r.keepDefaultValues||(f=i),!r.keepValues){if(r.keepDirtyValues||z)for(let e of j.mount)g(s.dirtyFields,e)?M(a,e,g(b,e)):ew(e,g(a,e));else{if(h&&v(n))for(let e of j.mount){let t=g(c,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(V(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}b=e.shouldUnregister?r.keepDefaultValues?p(f):{}:o,A.array.next({values:{...a}}),A.values.next({values:{...a}})}j={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!C.isValid||!!r.keepIsValid,w.watch=!!e.shouldUnregister,A.state.next({submitCount:r.keepSubmitCount?s.submitCount:0,isDirty:r.keepDirty?s.isDirty:!!(r.keepDefaultValues&&!J(n,f)),isSubmitted:!!r.keepIsSubmitted&&s.isSubmitted,dirtyFields:r.keepDirtyValues?s.dirtyFields:r.keepDefaultValues&&n?eo(f,n):{},touchedFields:r.keepTouched?s.touchedFields:{},errors:r.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eA=(e,t)=>eM(F(e)?e(b):e,t);return{control:{register:eO,unregister:eS,getFieldState:e_,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:U,_removeUnmounted:()=>{for(let e of j.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&eS(e)}j.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,o=!0)=>{if(r&&n){if(w.action=!0,o&&Array.isArray(g(c,e))){let t=n(g(c,e),r.argA,r.argB);i&&M(c,e,t)}if(o&&Array.isArray(g(s.errors,e))){let t=n(g(s.errors,e),r.argA,r.argB);i&&M(s.errors,e,t),eh(s.errors,e)}if(C.touchedFields&&o&&Array.isArray(g(s.touchedFields,e))){let t=n(g(s.touchedFields,e),r.argA,r.argB);i&&M(s.touchedFields,e,t)}C.dirtyFields&&(s.dirtyFields=eo(f,b)),A.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else M(b,e,t)},_getFieldArray:t=>m(g(w.mount?b:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eM,_resetDefaultValues:()=>F(r.defaultValues)&&r.defaultValues().then(e=>{eA(e,r.resetOptions),A.state.next({isLoading:!1})}),_updateFormState:e=>{s={...s,...e}},_subjects:A,_proxyFormState:C,get _fields(){return c},get _formValues(){return b},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return j},set _names(value){j=value},get _formState(){return s},set _formState(value){s=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:ej,register:eO,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=p(b);if(A.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);K(s.errors,"root"),E(s.errors)?(A.state.next({errors:{}}),await e(i,n)):(t&&await t({...s.errors},n),eC(),setTimeout(eC)),A.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:E(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>F(e)?A.values.subscribe({next:n=>e(ey(void 0,t),n)}):ey(e,t,!0),setValue:ew,getValues:ek,reset:eA,resetField:(e,t={})=>{g(c,e)&&(v(t.defaultValue)?ew(e,g(f,e)):(ew(e,t.defaultValue),M(f,e,t.defaultValue)),t.keepTouched||K(s.touchedFields,e),t.keepDirty||(K(s.dirtyFields,e),s.isDirty=t.defaultValue?eg(e,g(f,e)):eg()),!t.keepError&&(K(s.errors,e),C.isValid&&U()),A.state.next({...s}))},clearErrors:e=>{e&&k(e).forEach(e=>K(s.errors,e)),A.state.next({errors:e?s.errors:{}})},unregister:eS,setError:(e,t,n)=>{let r=(g(c,e,{_f:{}})._f||{}).ref;M(s.errors,e,{...t,ref:r}),A.state.next({name:e,errors:s.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},setFocus:(e,t={})=>{let n=g(c,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:e_}}(e,()=>s(e=>({...e}))),formState:n});let c=t.current.control;return c._options=e,!function(e){let t=r.useRef(e);t.current=e,r.useEffect(()=>{let n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}({subject:c._subjects.state,next:e=>{j(e,c._proxyFormState,c._updateFormState,!0)&&s({...c._formState})}}),r.useEffect(()=>{e.values&&!J(e.values,c._defaultValues)?c._reset(e.values,c._options.resetOptions):c._resetDefaultValues()},[e.values,c]),r.useEffect(()=>{c._state.mount||(c._updateValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),t.current.formState=w(n,c),t.current}},79381:function(e,t,n){"use strict";n.d(t,{J$:function(){return Q},ZP:function(){return J},JG:function(){return Z},kY:function(){return Y}});var r,i=n(2784),o=n(43100);let a=new WeakMap,s={},l={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",v=typeof window!=m,g=typeof document!=m,y=()=>v&&typeof window.requestAnimationFrame!=m,x=(e,t)=>{let n=a.get(e);return[()=>e.get(t)||s,r=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),n[5](t,p(i,r),i||s)}},n[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},b=new WeakMap,w=0,E=e=>{let t,n;let r=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=b.get(e))return t;if(t=++w+"~",b.set(e,t),i==Array){for(n=0,t="@";n(g&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),_("focus",e)}),initReconnect:e=>{let t=()=>{j=!0,e()},n=()=>{j=!1};return k("online",t),k("offline",n),()=>{_("online",t),_("offline",n)}}},O=!i.useId,C=!v||"Deno"in window,M=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),A=C?i.useEffect:i.useLayoutEffect,P="undefined"!=typeof navigator&&navigator.connection,T=!C&&P&&(["slow-2g","2g"].includes(P.effectiveType)||P.saveData),N=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?E(e):"",t]},R=0,D=()=>++R;var L={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function F(...e){let[t,n,r,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.throwOnError;if(h(n)){let e=[],r=t.keys();for(let i=r.next();!i.done;i=r.next()){let r=i.value;!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r)}return Promise.all(e.map(g))}return g(n);async function g(n){let i;let[o]=N(n);if(!o)return;let[l,p]=x(t,o),[g,y,b]=a.get(t),w=g[o],E=()=>d&&(delete b[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return E();let j=r,k=D();y[o]=[k,0];let _=!f(u),S=l(),O=S.data,C=S._c,M=f(C)?O:C;if(_&&p({data:u=h(u)?u(M):u,_c:M}),h(j))try{j=j(M)}catch(e){i=e}if(j&&h(j.then)){if(j=await j.catch(e=>{i=e}),k!==y[o][0]){if(i)throw i;return j}i&&_&&m(i)&&(s=!0,p({data:j=M,_c:c}))}s&&!i&&(h(s)&&(j=s(j,M)),p({data:j,_c:c})),y[o][1]=D();let A=await E();if(p({_c:c}),i){if(v)throw i;return}return s?A:j}}let V=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},z=(e,t)=>{if(!a.has(e)){let n=p(S,t),r={},i=F.bind(c,e),o=u,s={},l=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},f=()=>{if(!a.has(e)&&(a.set(e,[r,{},{},{},i,d,l]),!C)){let t=n.initFocus(setTimeout.bind(c,V.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,V.bind(c,r,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[I,Z]=z(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(f(o)||!(a>o))&&setTimeout(r,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:(e,t)=>E(e)==E(t),isPaused:()=>!1,cache:I,mutate:Z,fallback:{}},{isOnline:()=>j,isVisible:()=>{let e=g&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let n=p(e,t);if(t){let{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=p(i,a))}return n},U=(0,i.createContext)({}),W=v&&window.__SWR_DEVTOOLS_USE__,q=W?window.__SWR_DEVTOOLS_USE__:[],$=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Y=()=>p(B,(0,i.useContext)(U)),G=q.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=a.get(I),o=i[r];return o?(delete i[r],o):n(...e)});return e(t,i,r)}),K=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let X={dedupe:!0},Q=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),o=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,i.useMemo)(()=>r?o:H(n,o),[r,n,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=z(s(a.cache||I),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),A(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:a}))},"defaultValue",{value:B});var J=(r=(e,t,n)=>{let{cache:r,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:b}=n,[w,E,j]=a.get(r),[k,_]=N(e),S=(0,i.useRef)(!1),P=(0,i.useRef)(!1),T=(0,i.useRef)(k),R=(0,i.useRef)(t),V=(0,i.useRef)(n),z=()=>V.current,I=()=>z().isVisible()&&z().isOnline(),[Z,B,H,U]=x(r,k),W=(0,i.useRef)({}).current,q=f(u)?n.fallback[k]:u,$=(e,t)=>{let n=!0;for(let r in W)"data"===r?s(t[r],e[r])||f(e[r])&&s(t[r],ei)||(n=!1):t[r]!==e[r]&&(n=!1);return n},Y=(0,i.useMemo)(()=>{let e=!!k&&!!t&&(f(d)?!z().isPaused()&&!l&&(!!f(m)||m):d),n=t=>{let n=p(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=Z(),i=U(),o=n(r),a=r===i?o:n(i),s=o;return[()=>{let e=n(Z());return $(e,s)?s:s=e},()=>a]},[r,k]),G=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(k,(t,n)=>{$(n,t)||e()}),[r,k]),Y[0],Y[1]),Q=!S.current,J=w[k]&&w[k].length>0,ee=G.data,et=f(ee)?q:ee,en=G.error,er=(0,i.useRef)(et),ei=b?f(ee)?er.current:ee:et,eo=(!J||!!f(en))&&(Q&&!f(d)?d:!z().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(k&&t&&Q&&eo),es=f(G.isValidating)?ea:G.isValidating,el=f(G.isLoading)?ea:G.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!k||!i||P.current||z().isPaused())return!1;let o=!0,a=e||{},l=!j[k]||!a.dedupe,u=()=>O?!P.current&&k===T.current&&S.current:k===T.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=j[k];e&&e[1]===r&&delete j[k]},v={isValidating:!0};f(Z().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(Z().data)&&setTimeout(()=>{o&&u()&&z().onLoadingSlow(k,n)},n.loadingTimeout),j[k]=[i(_),D()]),[t,r]=j[k],t=await t,l&&setTimeout(m,n.dedupingInterval),!j[k]||j[k][1]!==r)return l&&u()&&z().onDiscarded(k),!1;d.error=c;let e=E[k];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&z().onDiscarded(k),!1;let a=Z().data;d.data=s(a,t)?a:t,l&&u()&&z().onSuccess(t,k,n)}catch(n){m();let e=z(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,k,e),(!0===t||h(t)&&t(n))&&I()&&e.onErrorRetry(n,k,e,e=>{let t=w[k];t&&t[0]&&t[0](L.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[k,r]),ec=(0,i.useCallback)((...e)=>F(r,T.current,...e),[]);if(A(()=>{R.current=t,V.current=n,f(ee)||(er.current=ee)}),A(()=>{if(!k)return;let e=eu.bind(c,X),t=0,n=K(k,w,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();z().revalidateOnFocus&&n>t&&I()&&(t=n+z().focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)z().revalidateOnReconnect&&I()&&e();else if(n==L.MUTATE_EVENT)return eu();else if(n==L.ERROR_REVALIDATE_EVENT)return eu(r)});return P.current=!1,T.current=k,S.current=!0,B({_k:_}),eo&&(f(et)||C?e():M(e)),()=>{P.current=!0,n()}},[k]),A(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!Z().error&&(g||z().isVisible())&&(y||z().isOnline())?eu(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,k]),(0,i.useDebugValue)(ei),l&&f(et)&&k){if(!O&&C)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,V.current=n,P.current=!1,f(en)?eu(X):en}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,en},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=Y(),[n,i,o]=$(e),a=H(t,o),s=r,{use:l}=a,u=(l||[]).concat(G);for(let e=u.length;e--;)s=u[e](s);return s(n,i||a.fetcher||null,a)})}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(86570),t(60222)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/config-93e4ec30b2b315c2.js b/hostd/assets/_next/static/chunks/pages/config-93e4ec30b2b315c2.js deleted file mode 100644 index b20a4b1b7..000000000 --- a/hostd/assets/_next/static/chunks/pages/config-93e4ec30b2b315c2.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{57344:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return s(29575)}])},14134:function(e,n,s){"use strict";s.d(n,{q:function(){return h}});var t=s(52322),i=s(52735),a=s(27444),l=s(6391),r=s.n(l),c=s(71930),o=s(25573);function d(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}var x=s(22515);function u(){var e,n,s,l,r,c,d;let{openDialog:u}=(0,x.Rh)(),h=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,o.n)(),j=(0,a.cQ)(),m=null===(e=h.data)||void 0===e?void 0:e.version,g=(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(m):"https://github.com/SiaFoundation/hostd/tree/".concat(m);return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=j.data)||void 0===n?void 0:n.length,connectPeer:()=>u("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(s=v.data)||void 0===s?void 0:s.netAddress,maxLength:50,label:"network address"})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(l=h.data)||void 0===l?void 0:l.publicKey,maxLength:50,label:"public key"})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(r=h.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(c=h.data)||void 0===c?void 0:c.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:g,underline:"hover",target:"_blank",ellipsis:!0,children:null===(d=h.data)||void 0===d?void 0:d.version})]})]})}function h(e){let n=(0,a.Os)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,t.jsx)(d,{}),profile:(0,t.jsx)(u,{}),isSynced:s,walletBalance:n.data?new(r())(n.data.spendable).plus(n.data.unconfirmed):void 0,...e})}},66724:function(e,n,s){"use strict";s.d(n,{N:function(){return d}});var t=s(52322),i=s(52735),a=s(41775),l=s(27444),r=s(82851),c=s(71930),o=s(22515);function d(){var e,n;let{openDialog:s}=(0,o.Rh)(),d=(0,l.Z7)(),x=!(null===(e=d.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(n=d.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:c._.home,children:(0,t.jsx)(a.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,t.jsx)(a.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:c._.config.index,children:(0,t.jsx)(a.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(i.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},29575:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return p}});var t=s(52322),i=s(52735),a=s(41775),l=s(66724),r=s(71930),c=s(22515),o=s(14134),d=s(27444),x=s(96206),u=s(2784),h=s(6391),v=s.n(h);function f(){let{openConfirmDialog:e}=(0,c.Rh)(),n=(0,d.hV)(),s=(0,d.Az)(),l=(0,u.useCallback)(()=>e({title:"Announce",action:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.cfm,{}),"Announce"]}),variant:"accent",body:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(i.nvN,{size:"14",children:"Confirm to broadcast host announcement."}),n.data&&(0,t.jsxs)(i.nvN,{size:"14",children:["Announcing will cost"," ",(0,x.Vz)(new(v())(n.data).times(1e3)),"."]})]}),onConfirm:async()=>{let e=await s.post({});e.error&&(0,i.OHV)("Error announcing host."),(0,i.OPV)("Successfully broadcast host announcement.")}}),[e,s,n]);return(0,t.jsxs)(i.zxk,{variant:"accent",tip:"Announce host address",onClick:l,children:[(0,t.jsx)(a.cfm,{}),"Announce"]})}var j=s(99957);function m(){let{showAdvanced:e,setShowAdvanced:n}=(0,j.ZR)();return(0,t.jsx)("div",{className:"pl-1",children:(0,t.jsx)(i.ua7,{content:e?"Hide advanced":"Show advanced",children:(0,t.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,t.jsx)(i.rsf,{checked:e,onCheckedChange:e=>n(e)}),(0,t.jsx)(i.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function g(){var e;let{openDialog:n}=(0,c.Rh)(),{fields:s,settings:d,dynDNSCheck:x,changeCount:u,revalidateAndResetFormData:h,form:v,onSubmit:g}=(0,j.ZR)();return(0,t.jsx)(o.q,{title:"Configuration",routes:r._,nav:(0,t.jsx)(m,{}),sidenav:(0,t.jsx)(l.N,{}),stats:(null===(e=d.data)||void 0===e?void 0:e.ddns.provider)&&!x.isValidating?x.error?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.xvT,{color:"amber",children:(0,t.jsx)(a.qdM,{})}),(0,t.jsxs)(i.xvT,{size:"14",children:["Error with dynamic DNS configuration:"," ",x.error.message]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.xvT,{color:"green",children:(0,t.jsx)(a.Y3p,{})}),(0,t.jsx)(i.xvT,{children:"Dynamic DNS enabled"})]}):null,actions:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[!!u&&(0,t.jsx)(i.xvT,{size:"12",color:"subtle",children:1===u?"1 change":"".concat(u," changes")}),(0,t.jsx)(i.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!u,onClick:h,children:(0,t.jsx)(a.Wet,{})}),(0,t.jsxs)(i.zxk,{tip:"Save all changes",variant:"accent",disabled:!v.formState.isDirty||v.formState.isSubmitting,onClick:g,children:[(0,t.jsx)(a.ZEk,{}),"Save changes"]}),(0,t.jsx)(f,{})]}),openSettings:()=>n("settings"),children:(0,t.jsxs)("div",{className:"p-6 flex flex-col gap-16 max-w-screen-xl",children:[(0,t.jsx)(i.vRO,{title:"Host",category:"host",fields:s,form:v}),(0,t.jsx)(i.vRO,{title:"Pricing",category:"pricing",fields:s,form:v}),(0,t.jsx)(i.vRO,{title:"DNS",category:"DNS",fields:s,form:v}),(0,t.jsx)(i.vRO,{title:"Bandwidth",category:"bandwidth",fields:s,form:v}),(0,t.jsx)(i.vRO,{title:"Registry",category:"registry",fields:s,form:v}),(0,t.jsx)(i.vRO,{title:"Accounts",category:"RHP3",fields:s,form:v})]})})}function p(){return(0,t.jsx)(g,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=57344)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/config-b347e9e06b4beab4.js b/hostd/assets/_next/static/chunks/pages/config-b347e9e06b4beab4.js new file mode 100644 index 000000000..38c34dd30 --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/config-b347e9e06b4beab4.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{57344:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return s(29575)}])},14134:function(e,n,s){"use strict";s.d(n,{q:function(){return h}});var t=s(52322),i=s(76848),a=s(27444),l=s(6391),r=s.n(l),c=s(71930),o=s(25573);function d(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}var x=s(22515);function u(){var e,n,s,l,r,c,d;let{openDialog:u}=(0,x.Rh)(),h=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,o.n)(),j=(0,a.cQ)(),m=null===(e=h.data)||void 0===e?void 0:e.version,g=(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(m):"https://github.com/SiaFoundation/hostd/tree/".concat(m);return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=j.data)||void 0===n?void 0:n.length,connectPeer:()=>u("connectPeer"),isSynced:v.isSynced,syncPercent:v.syncPercent,nodeBlockHeight:v.nodeBlockHeight,estimatedBlockHeight:v.estimatedBlockHeight,firstTimeSyncing:v.firstTimeSyncing,moreThan100BlocksToSync:v.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(s=f.data)||void 0===s?void 0:s.netAddress,maxLength:50,label:"network address"})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(l=h.data)||void 0===l?void 0:l.publicKey,maxLength:50,label:"public key"})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(r=h.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(c=h.data)||void 0===c?void 0:c.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:g,underline:"hover",target:"_blank",ellipsis:!0,children:null===(d=h.data)||void 0===d?void 0:d.version})]})]})}function h(e){let n=(0,a.Os)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,t.jsx)(d,{}),profile:(0,t.jsx)(u,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},66724:function(e,n,s){"use strict";s.d(n,{N:function(){return d}});var t=s(52322),i=s(76848),a=s(41775),l=s(27444),r=s(82851),c=s(71930),o=s(22515);function d(){var e,n;let{openDialog:s}=(0,o.Rh)(),d=(0,l.Z7)(),x=!(null===(e=d.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(n=d.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:c._.home,children:(0,t.jsx)(a.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,t.jsx)(a.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:c._.config.index,children:(0,t.jsx)(a.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(i.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},29575:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return p}});var t=s(52322),i=s(76848),a=s(41775),l=s(66724),r=s(71930),c=s(22515),o=s(14134),d=s(27444),x=s(96206),u=s(2784),h=s(6391),f=s.n(h);function v(){let{openConfirmDialog:e}=(0,c.Rh)(),n=(0,d.hV)(),s=(0,d.Az)(),l=(0,u.useCallback)(()=>e({title:"Announce",action:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.cfm,{}),"Announce"]}),variant:"accent",body:(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(i.nvN,{size:"14",children:"Confirm to broadcast host announcement."}),n.data&&(0,t.jsxs)(i.nvN,{size:"14",children:["Announcing will cost"," ",(0,x.Vz)(new(f())(n.data).times(1e3)),"."]})]}),onConfirm:async()=>{let e=await s.post({});e.error&&(0,i.OHV)("Error announcing host."),(0,i.OPV)("Successfully broadcast host announcement.")}}),[e,s,n]);return(0,t.jsxs)(i.zxk,{variant:"accent",tip:"Announce host address",onClick:l,children:[(0,t.jsx)(a.cfm,{}),"Announce"]})}var j=s(99957);function m(){let{showAdvanced:e,setShowAdvanced:n}=(0,j.ZR)();return(0,t.jsx)("div",{className:"pl-1",children:(0,t.jsx)(i.ua7,{content:e?"Hide advanced":"Show advanced",children:(0,t.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,t.jsx)(i.rsf,{checked:e,onCheckedChange:e=>n(e)}),(0,t.jsx)(i.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function g(){var e;let{openDialog:n}=(0,c.Rh)(),{fields:s,settings:d,dynDNSCheck:x,changeCount:u,revalidateAndResetFormData:h,form:f,onSubmit:g}=(0,j.ZR)();return(0,t.jsx)(o.q,{title:"Configuration",routes:r._,nav:(0,t.jsx)(m,{}),sidenav:(0,t.jsx)(l.N,{}),stats:(null===(e=d.data)||void 0===e?void 0:e.ddns.provider)&&!x.isValidating?x.error?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.xvT,{color:"amber",children:(0,t.jsx)(a.qdM,{})}),(0,t.jsxs)(i.xvT,{size:"14",children:["Error with dynamic DNS configuration:"," ",x.error.message]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.xvT,{color:"green",children:(0,t.jsx)(a.Y3p,{})}),(0,t.jsx)(i.xvT,{children:"Dynamic DNS enabled"})]}):null,actions:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[!!u&&(0,t.jsx)(i.xvT,{size:"12",color:"subtle",children:1===u?"1 change":"".concat(u," changes")}),(0,t.jsx)(i.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!u,onClick:h,children:(0,t.jsx)(a.Wet,{})}),(0,t.jsxs)(i.zxk,{tip:"Save all changes",variant:"accent",disabled:!f.formState.isDirty||f.formState.isSubmitting,onClick:g,children:[(0,t.jsx)(a.ZEk,{}),"Save changes"]}),(0,t.jsx)(v,{})]}),openSettings:()=>n("settings"),children:(0,t.jsxs)("div",{className:"p-6 flex flex-col gap-16 max-w-screen-xl",children:[(0,t.jsx)(i.vRO,{title:"Host",category:"host",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Pricing",category:"pricing",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"DNS",category:"DNS",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Bandwidth",category:"bandwidth",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Registry",category:"registry",fields:s,form:f}),(0,t.jsx)(i.vRO,{title:"Accounts",category:"RHP3",fields:s,form:f})]})})}function p(){return(0,t.jsx)(g,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=57344)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/contracts-8745a389d33b43c3.js b/hostd/assets/_next/static/chunks/pages/contracts-8745a389d33b43c3.js new file mode 100644 index 000000000..dfbe2a6f6 --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/contracts-8745a389d33b43c3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return n(1974)}])},14134:function(e,s,n){"use strict";n.d(s,{q:function(){return h}});var l=n(52322),t=n(76848),a=n(27444),i=n(6391),r=n.n(i),c=n(71930),o=n(25573);function d(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,l.jsx)(t.t6k,{testnetName:e.data.network}):null}var x=n(22515);function u(){var e,s,n,i,r,c,d;let{openDialog:u}=(0,x.Rh)(),h=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,o.n)(),m=(0,a.cQ)(),v=null===(e=h.data)||void 0===e?void 0:e.version,p=(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(v):"https://github.com/SiaFoundation/hostd/tree/".concat(v);return(0,l.jsxs)(t.HfT,{name:"hostd",peerCount:null===(s=m.data)||void 0===s?void 0:s.length,connectPeer:()=>u("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,l.jsx)(t.XxW,{className:"overflow-hidden",size:"14",value:null===(n=j.data)||void 0===n?void 0:n.netAddress,maxLength:50,label:"network address"})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,l.jsx)(t.XxW,{className:"overflow-hidden",size:"14",value:null===(i=h.data)||void 0===i?void 0:i.publicKey,maxLength:50,label:"public key"})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,l.jsx)(t.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(r=h.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,l.jsx)(t.xvT,{size:"14",children:null===(c=h.data)||void 0===c?void 0:c.network})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,l.jsx)(t.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(d=h.data)||void 0===d?void 0:d.version})]})]})}function h(e){let s=(0,a.Os)(),{isSynced:n}=(0,o.n)();return(0,l.jsx)(t.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,l.jsx)(d,{}),profile:(0,l.jsx)(u,{}),isSynced:n,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},66724:function(e,s,n){"use strict";n.d(s,{N:function(){return d}});var l=n(52322),t=n(76848),a=n(41775),i=n(27444),r=n(82851),c=n(71930),o=n(22515);function d(){var e,s;let{openDialog:n}=(0,o.Rh)(),d=(0,i.Z7)(),x=!(null===(e=d.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(s=d.data)||void 0===s?void 0:s.length)||0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t.KJW,{title:"Dashboard",route:c._.home,children:(0,l.jsx)(a.K2o,{})}),(0,l.jsx)(t.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,l.jsx)(a.zvn,{})}),(0,l.jsx)(t.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,l.jsx)(a.VBo,{})}),(0,l.jsx)(t.KJW,{title:"Configuration",route:c._.config.index,children:(0,l.jsx)(a.wWN,{})}),(0,l.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,l.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,l.jsx)(t.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,l.jsx)(t.KJW,{title:"Alerts",onClick:()=>n("alerts"),children:(0,l.jsx)(a.Dkj,{})})]})]})}},1974:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return _}});var l=n(52322),t=n(66724),a=n(71930),i=n(76848),r=n(22515),c=n(92838),o=n(14134),d=n(41775);function x(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(i.xvT,{children:(0,l.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,l.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function u(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(i.xvT,{children:(0,l.jsx)(d.VBo,{className:"scale-[200%]"})}),(0,l.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure and announce host to start forming contracts."})]})}function h(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(i.xvT,{children:(0,l.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,l.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var j=n(56860),f=n(3440),m=n.n(f);function v(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:n,setColumnsVisible:t,setColumnsHidden:a,sortField:r,setSortField:o,sortDirection:x,setSortDirection:u,enabledColumns:h}=(0,c.G)(),f=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),v=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),p=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,l.jsxs)(i.J2e,{trigger:(0,l.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,l.jsx)(d.hiv,{}),"View",(0,l.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,l.jsxs)(i.WVB,{children:[(0,l.jsx)(i.__J,{children:"Order by"}),(0,l.jsx)(i.kFS,{children:(0,l.jsx)(i.PhF,{value:r,onChange:e=>{o(e.currentTarget.value)},children:Object.entries(m()(j.Fo,"category")).map(e=>{let[s,n]=e;return(0,l.jsx)("optgroup",{label:s,children:n.map(e=>(0,l.jsx)(i.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,l.jsxs)(i.WVB,{children:[(0,l.jsx)(i.__J,{children:"Direction"}),(0,l.jsx)(i.kFS,{children:(0,l.jsxs)(i.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,l.jsx)(i.Wxm,{value:"desc",children:"descending"},"desc"),(0,l.jsx)(i.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,l.jsx)(i.Clw,{}),(0,l.jsxs)(i.WVB,{children:[(0,l.jsx)(i.__J,{children:"Display properties"}),(0,l.jsx)(i.kFS,{children:(0,l.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),n()},children:(0,l.jsx)(d.Wet,{})})})]}),(0,l.jsx)(i.FzK,{label:"General",columns:f.map(e=>e.value),enabled:h,setColumnsVisible:t,setColumnsHidden:a}),(0,l.jsx)(i.WVB,{children:(0,l.jsx)(i.j4H,{options:f,values:h,onChange:e=>s(e)})}),(0,l.jsx)(i.FzK,{label:"Time",columns:v.map(e=>e.value),enabled:h,setColumnsVisible:t,setColumnsHidden:a}),(0,l.jsx)(i.WVB,{children:(0,l.jsx)(i.j4H,{options:v,values:h,onChange:e=>s(e)})}),(0,l.jsx)(i.FzK,{label:"Usage",columns:p.map(e=>e.value),enabled:h,setColumnsVisible:t,setColumnsHidden:a}),(0,l.jsx)(i.WVB,{children:(0,l.jsx)(i.j4H,{options:p,values:h,onChange:e=>s(e)})})]})}function p(){return(0,l.jsx)("div",{className:"flex gap-2",children:(0,l.jsx)(v,{})})}var g=n(99182),b=n(2784),w=n(3639);function N(){let{filters:e,removeFilter:s,removeLastFilter:n}=(0,c.G)(),[t,a]=(0,b.useState)(!1),[r,o]=(0,b.useState)(""),[x,u]=(0,b.useState)([]),h=x[x.length-1],j=(x.length,(0,b.useRef)(null)),f=(0,b.useRef)(null),m=(0,b.useCallback)(e=>{u(s=>[...s,e])},[u]),v=(0,b.useCallback)(()=>{u([])},[u]);(0,b.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let p=(0,b.useCallback)(()=>{var e;null===(e=f.current)||void 0===e||e.focus()},[f]),N=(0,b.useCallback)(()=>{o(""),v()},[v]);return(0,l.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,l.jsxs)(i.eQh,{children:[(0,l.jsx)(i.zxk,{variant:"active",state:"waiting",children:(0,i.$Gg)(e.label,30)}),(0,l.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>s(e.id),children:(0,l.jsx)(d.PcV,{})})]},e.id)),(0,l.jsxs)(g.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(x.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),u(e=>e.slice(0,-1)));else if(0===x.length&&("Backspace"!==e.key||r||n(),"Escape"===e.key&&!r)){var s;a(!1),null===(s=f.current)||void 0===s||s.blur()}},children:[(0,l.jsx)(g.mY.Input,{ref:f,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),t&&(0,l.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,l.jsxs)(i.xrM,{children:[h&&(0,l.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,l.jsx)(g.mY.List,{children:(0,l.jsx)(w.F,{currentPage:h,beforeSelect:p,afterSelect:N,pushPage:m})})]})})]})]})}function k(){let{offset:e,limit:s,totalCount:n,pageCount:t,dataState:a}=(0,c.G)();return(0,l.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,l.jsx)(N,{}),(0,l.jsx)(i.uDJ,{offset:e,limit:s,isLoading:"loading"===a,datasetTotal:n,pageTotal:t})]})}function y(){let{openDialog:e}=(0,r.Rh)(),{columns:s,dataset:n,sortField:d,sortDirection:j,sortableColumns:f,toggleSort:m,limit:v,dataState:g,cellContext:b}=(0,c.G)();return(0,l.jsx)(o.q,{title:"Contracts",routes:a._,sidenav:(0,l.jsx)(t.N,{}),openSettings:()=>e("settings"),actions:(0,l.jsx)(p,{}),stats:(0,l.jsx)(k,{}),size:"full",children:(0,l.jsx)("div",{className:"p-6 min-w-fit",children:(0,l.jsx)(i.iA_,{context:b,isLoading:"loading"===g,emptyState:"noneMatchingFilters"===g?(0,l.jsx)(x,{}):"noneYet"===g?(0,l.jsx)(u,{}):"error"===g?(0,l.jsx)(h,{}):null,pageSize:v,data:n,columns:s,sortableColumns:f,sortDirection:j,sortField:d,toggleSort:m})})})}function _(){return(0,l.jsx)(y,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/contracts-a4baf12268fdc074.js b/hostd/assets/_next/static/chunks/pages/contracts-a4baf12268fdc074.js deleted file mode 100644 index 6bd04a4b0..000000000 --- a/hostd/assets/_next/static/chunks/pages/contracts-a4baf12268fdc074.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return n(1974)}])},14134:function(e,s,n){"use strict";n.d(s,{q:function(){return h}});var l=n(52322),t=n(52735),a=n(27444),i=n(6391),r=n.n(i),c=n(71930),o=n(25573);function d(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,l.jsx)(t.t6k,{testnetName:e.data.network}):null}var x=n(22515);function u(){var e,s,n,i,r,c,d;let{openDialog:u}=(0,x.Rh)(),h=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,o.n)(),f=(0,a.cQ)(),m=null===(e=h.data)||void 0===e?void 0:e.version,p=(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(m):"https://github.com/SiaFoundation/hostd/tree/".concat(m);return(0,l.jsxs)(t.HfT,{name:"hostd",peerCount:null===(s=f.data)||void 0===s?void 0:s.length,connectPeer:()=>u("connectPeer"),isSynced:v.isSynced,syncPercent:v.syncPercent,nodeBlockHeight:v.nodeBlockHeight,estimatedBlockHeight:v.estimatedBlockHeight,firstTimeSyncing:v.firstTimeSyncing,moreThan100BlocksToSync:v.moreThan100BlocksToSync,children:[(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,l.jsx)(t.XxW,{className:"overflow-hidden",size:"14",value:null===(n=j.data)||void 0===n?void 0:n.netAddress,maxLength:50,label:"network address"})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,l.jsx)(t.XxW,{className:"overflow-hidden",size:"14",value:null===(i=h.data)||void 0===i?void 0:i.publicKey,maxLength:50,label:"public key"})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,l.jsx)(t.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(r=h.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,l.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,l.jsx)(t.xvT,{size:"14",children:null===(c=h.data)||void 0===c?void 0:c.network})})]}),(0,l.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,l.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,l.jsx)(t.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(d=h.data)||void 0===d?void 0:d.version})]})]})}function h(e){let s=(0,a.Os)(),{isSynced:n}=(0,o.n)();return(0,l.jsx)(t.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,l.jsx)(d,{}),profile:(0,l.jsx)(u,{}),isSynced:n,walletBalance:s.data?new(r())(s.data.spendable).plus(s.data.unconfirmed):void 0,...e})}},66724:function(e,s,n){"use strict";n.d(s,{N:function(){return d}});var l=n(52322),t=n(52735),a=n(41775),i=n(27444),r=n(82851),c=n(71930),o=n(22515);function d(){var e,s;let{openDialog:n}=(0,o.Rh)(),d=(0,i.Z7)(),x=!(null===(e=d.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(s=d.data)||void 0===s?void 0:s.length)||0;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t.KJW,{title:"Dashboard",route:c._.home,children:(0,l.jsx)(a.K2o,{})}),(0,l.jsx)(t.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,l.jsx)(a.zvn,{})}),(0,l.jsx)(t.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,l.jsx)(a.VBo,{})}),(0,l.jsx)(t.KJW,{title:"Configuration",route:c._.config.index,children:(0,l.jsx)(a.wWN,{})}),(0,l.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,l.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,l.jsx)(t.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,l.jsx)(t.KJW,{title:"Alerts",onClick:()=>n("alerts"),children:(0,l.jsx)(a.Dkj,{})})]})]})}},1974:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return _}});var l=n(52322),t=n(66724),a=n(71930),i=n(52735),r=n(22515),c=n(92838),o=n(14134),d=n(41775);function x(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(i.xvT,{children:(0,l.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,l.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function u(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(i.xvT,{children:(0,l.jsx)(d.VBo,{className:"scale-[200%]"})}),(0,l.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure and announce host to start forming contracts."})]})}function h(){return(0,l.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,l.jsx)(i.xvT,{children:(0,l.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,l.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var j=n(56860),v=n(3440),f=n.n(v);function m(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:n,setColumnsVisible:t,setColumnsHidden:a,sortField:r,setSortField:o,sortDirection:x,setSortDirection:u,enabledColumns:h}=(0,c.G)(),v=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),m=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),p=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,l.jsxs)(i.J2e,{trigger:(0,l.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,l.jsx)(d.hiv,{}),"View",(0,l.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,l.jsxs)(i.WVB,{children:[(0,l.jsx)(i.__J,{children:"Order by"}),(0,l.jsx)(i.kFS,{children:(0,l.jsx)(i.PhF,{value:r,onChange:e=>{o(e.currentTarget.value)},children:Object.entries(f()(j.Fo,"category")).map(e=>{let[s,n]=e;return(0,l.jsx)("optgroup",{label:s,children:n.map(e=>(0,l.jsx)(i.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,l.jsxs)(i.WVB,{children:[(0,l.jsx)(i.__J,{children:"Direction"}),(0,l.jsx)(i.kFS,{children:(0,l.jsxs)(i.PhF,{value:x,onClick:e=>{e.stopPropagation()},onChange:e=>{u(e.currentTarget.value)},children:[(0,l.jsx)(i.Wxm,{value:"desc",children:"descending"},"desc"),(0,l.jsx)(i.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,l.jsx)(i.Clw,{}),(0,l.jsxs)(i.WVB,{children:[(0,l.jsx)(i.__J,{children:"Display properties"}),(0,l.jsx)(i.kFS,{children:(0,l.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),n()},children:(0,l.jsx)(d.Wet,{})})})]}),(0,l.jsx)(i.FzK,{label:"General",columns:v.map(e=>e.value),enabled:h,setColumnsVisible:t,setColumnsHidden:a}),(0,l.jsx)(i.WVB,{children:(0,l.jsx)(i.j4H,{options:v,values:h,onChange:e=>s(e)})}),(0,l.jsx)(i.FzK,{label:"Time",columns:m.map(e=>e.value),enabled:h,setColumnsVisible:t,setColumnsHidden:a}),(0,l.jsx)(i.WVB,{children:(0,l.jsx)(i.j4H,{options:m,values:h,onChange:e=>s(e)})}),(0,l.jsx)(i.FzK,{label:"Usage",columns:p.map(e=>e.value),enabled:h,setColumnsVisible:t,setColumnsHidden:a}),(0,l.jsx)(i.WVB,{children:(0,l.jsx)(i.j4H,{options:p,values:h,onChange:e=>s(e)})})]})}function p(){return(0,l.jsx)("div",{className:"flex gap-2",children:(0,l.jsx)(m,{})})}var g=n(99182),b=n(2784),w=n(3639);function N(){let{filters:e,removeFilter:s,removeLastFilter:n}=(0,c.G)(),[t,a]=(0,b.useState)(!1),[r,o]=(0,b.useState)(""),[x,u]=(0,b.useState)([]),h=x[x.length-1],j=(x.length,(0,b.useRef)(null)),v=(0,b.useRef)(null),f=(0,b.useCallback)(e=>{u(s=>[...s,e])},[u]),m=(0,b.useCallback)(()=>{u([])},[u]);(0,b.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let p=(0,b.useCallback)(()=>{var e;null===(e=v.current)||void 0===e||e.focus()},[v]),N=(0,b.useCallback)(()=>{o(""),m()},[m]);return(0,l.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,l.jsxs)(i.eQh,{children:[(0,l.jsx)(i.zxk,{variant:"active",state:"waiting",children:(0,i.$Gg)(e.label,30)}),(0,l.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>s(e.id),children:(0,l.jsx)(d.PcV,{})})]},e.id)),(0,l.jsxs)(g.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(x.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),u(e=>e.slice(0,-1)));else if(0===x.length&&("Backspace"!==e.key||r||n(),"Escape"===e.key&&!r)){var s;a(!1),null===(s=v.current)||void 0===s||s.blur()}},children:[(0,l.jsx)(g.mY.Input,{ref:v,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),t&&(0,l.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,l.jsxs)(i.xrM,{children:[h&&(0,l.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,l.jsx)(g.mY.List,{children:(0,l.jsx)(w.F,{currentPage:h,beforeSelect:p,afterSelect:N,pushPage:f})})]})})]})]})}function k(){let{offset:e,limit:s,totalCount:n,pageCount:t,dataState:a}=(0,c.G)();return(0,l.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,l.jsx)(N,{}),(0,l.jsx)(i.uDJ,{offset:e,limit:s,isLoading:"loading"===a,datasetTotal:n,pageTotal:t})]})}function y(){let{openDialog:e}=(0,r.Rh)(),{columns:s,dataset:n,sortField:d,sortDirection:j,sortableColumns:v,toggleSort:f,limit:m,dataState:g,cellContext:b}=(0,c.G)();return(0,l.jsx)(o.q,{title:"Contracts",routes:a._,sidenav:(0,l.jsx)(t.N,{}),openSettings:()=>e("settings"),actions:(0,l.jsx)(p,{}),stats:(0,l.jsx)(k,{}),size:"full",children:(0,l.jsx)("div",{className:"p-6 min-w-fit",children:(0,l.jsx)(i.iA_,{context:b,isLoading:"loading"===g,emptyState:"noneMatchingFilters"===g?(0,l.jsx)(x,{}):"noneYet"===g?(0,l.jsx)(u,{}):"error"===g?(0,l.jsx)(h,{}):null,pageSize:m,data:n,columns:s,sortableColumns:v,sortDirection:j,sortField:d,toggleSort:f})})})}function _(){return(0,l.jsx)(y,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/index-81516b1a8c4cdcfd.js b/hostd/assets/_next/static/chunks/pages/index-81516b1a8c4cdcfd.js deleted file mode 100644 index dfccc400f..000000000 --- a/hostd/assets/_next/static/chunks/pages/index-81516b1a8c4cdcfd.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(23659)}])},14134:function(e,a,t){"use strict";t.d(a,{q:function(){return f}});var s=t(52322),o=t(52735),i=t(27444),l=t(6391),n=t.n(l),r=t(71930),d=t(25573);function c(){let e=(0,i.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(o.t6k,{testnetName:e.data.network}):null}var g=t(22515);function x(){var e,a,t,l,n,r,c;let{openDialog:x}=(0,g.Rh)(),f=(0,i.On)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,i.rV)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,d.n)(),v=(0,i.cQ)(),j=null===(e=f.data)||void 0===e?void 0:e.version,b=(null==j?void 0:j.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(j):"https://github.com/SiaFoundation/hostd/tree/".concat(j);return(0,s.jsxs)(o.HfT,{name:"hostd",peerCount:null===(a=v.data)||void 0===a?void 0:a.length,connectPeer:()=>x("connectPeer"),isSynced:h.isSynced,syncPercent:h.syncPercent,nodeBlockHeight:h.nodeBlockHeight,estimatedBlockHeight:h.estimatedBlockHeight,firstTimeSyncing:h.firstTimeSyncing,moreThan100BlocksToSync:h.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(o.XxW,{className:"overflow-hidden",size:"14",value:null===(t=u.data)||void 0===t?void 0:t.netAddress,maxLength:50,label:"network address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(o.XxW,{className:"overflow-hidden",size:"14",value:null===(l=f.data)||void 0===l?void 0:l.publicKey,maxLength:50,label:"public key"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(o.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(n=f.data)||void 0===n?void 0:n.walletAddress,type:"address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(o.xvT,{size:"14",children:null===(r=f.data)||void 0===r?void 0:r.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(o.rUS,{size:"14",href:b,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=f.data)||void 0===c?void 0:c.version})]})]})}function f(e){let a=(0,i.Os)(),{isSynced:t}=(0,d.n)();return(0,s.jsx)(o.tU3,{appName:"hostd",connectivityRoute:r.h,banner:(0,s.jsx)(c,{}),profile:(0,s.jsx)(x,{}),isSynced:t,walletBalance:a.data?new(n())(a.data.spendable).plus(a.data.unconfirmed):void 0,...e})}},66724:function(e,a,t){"use strict";t.d(a,{N:function(){return c}});var s=t(52322),o=t(52735),i=t(41775),l=t(27444),n=t(82851),r=t(71930),d=t(22515);function c(){var e,a;let{openDialog:t}=(0,d.Rh)(),c=(0,l.Z7)(),g=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(a=c.data)||void 0===a?void 0:a.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.KJW,{title:"Dashboard",route:r._.home,children:(0,s.jsx)(i.K2o,{})}),(0,s.jsx)(o.KJW,{title:"Volumes",route:r._.volumes.index,children:(0,s.jsx)(i.zvn,{})}),(0,s.jsx)(o.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,s.jsx)(i.VBo,{})}),(0,s.jsx)(o.KJW,{title:"Configuration",route:r._.config.index,children:(0,s.jsx)(i.wWN,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!x&&g&&(0,s.jsx)("div",{className:(0,n.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!g&&(0,s.jsx)(o.xvT,{size:"10",className:(0,n.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,s.jsx)(o.KJW,{title:"Alerts",onClick:()=>t("alerts"),children:(0,s.jsx)(i.Dkj,{})})]})]})}},23659:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return L}});var s=t(52322),o=t(52735),i=t(41775),l=t(5187);function n(){let{revenue:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Revenue"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"revenue",label:"earned revenue",color:e.config.data.earned.color,sc:e.stats.earned,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"potential revenue",color:e.config.data.potential.color,sc:e.stats.potential,defaultMode:"total",isLoading:e.isLoading,showChange:!1}),(0,s.jsx)(o.A06,{category:"revenue",label:"storage",color:e.config.data.storage.color,sc:e.stats.storage,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"registry read",color:e.config.data.registryRead.color,sc:e.stats.registryRead,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"registry write",color:e.config.data.registryWrite.color,sc:e.stats.registryWrite,defaultMode:"total",isLoading:e.isLoading})]}),(0,s.jsx)(o.b0u,{id:"revenue",height:300,data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Revenue"})})})]})}var r=t(96206);function d(){let{storage:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,s.jsx)(o.X6q,{children:"Storage"}),(0,s.jsxs)(o.Vy9,{children:[(0,s.jsx)(o.A06,{category:"storage",label:"storage (physical)",color:e.config.data.physicalSectors.color,value:e.stats.physicalSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],format:r.vW}),(0,s.jsx)(o.A06,{category:"storage",label:"registry",color:e.config.data.registryEntries.color,value:e.stats.registryEntries,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],format:r.vW})]}),(0,s.jsx)(o.b0u,{id:"storage",height:300,data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Storage"})})})]})}function c(){let{contracts:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Contracts"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"contracts",label:"Active contracts",color:e.config.data.active.color,value:e.stats.active,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"contracts",label:"Successful contracts",color:e.config.data.successful.color,value:e.stats.successful,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"contracts",label:"Failed contracts",color:e.config.data.failed.color,value:e.stats.failed,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,s.jsx)(o.b0u,{id:"contracts",actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Contracts"})}),data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,height:300})]})}var g=t(94977);function x(){let{pricing:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Pricing"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"pricing",label:"storage",color:e.config.data.storage.color,sc:e.stats.storage,extendedSuffix:g.dz,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"latest",extendedSuffix:g.LP,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"latest",extendedSuffix:g.s2,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"collateral",color:e.config.data.collateral.color,sc:e.stats.collateral,defaultMode:"latest",extendedSuffix:g.rZ,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"contract",color:e.config.data.contract.color,sc:e.stats.contract,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"sector access",color:e.config.data.sectorAccess.color,sc:e.stats.sectorAccess,extendedSuffix:g.K9,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"base RPC",color:e.config.data.baseRPC.color,sc:e.stats.baseRPC,extendedSuffix:g.co,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,s.jsx)(o.b0u,{id:"pricing",height:300,data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Pricing"})})})]})}var f=t(14134),u=t(71930),h=t(66724),v=t(22515),j=t(14817);function b(){let{operations:e}=(0,l.B)();return(0,s.jsx)("div",{className:"flex gap-3",children:(0,s.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,s.jsx)(o.X6q,{children:"Operations"}),(0,s.jsxs)(o.Vy9,{children:[(0,s.jsx)(o.A06,{category:"operations",label:"storage reads",color:e.config.data.storageReads.color,value:e.stats.storageReads,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:r.yF}),(0,s.jsx)(o.A06,{category:"operations",label:"storage writes",color:e.config.data.storageWrites.color,value:e.stats.storageWrites,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:r.yF}),(0,s.jsx)(o.A06,{category:"operations",label:"registry reads",color:e.config.data.registryReads.color,value:e.stats.registryReads,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:r.yF}),(0,s.jsx)(o.A06,{category:"operations",label:"registry writes",color:e.config.data.registryWrites.color,value:e.stats.registryWrites,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:r.yF})]}),(0,s.jsx)(o.b0u,{id:"operations",height:300,data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Operations"})})})]})})}function y(){let{bandwidth:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,s.jsx)(o.X6q,{children:"Bandwidth"}),(0,s.jsxs)(o.Vy9,{children:[(0,s.jsx)(o.A06,{category:"bandwidth",label:"ingress",color:e.config.data.ingress.color,value:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading,format:r.vW}),(0,s.jsx)(o.A06,{category:"bandwidth",label:"egress",color:e.config.data.egress.color,value:e.stats.egress,defaultMode:"total",isLoading:e.isLoading,format:r.vW})]}),(0,s.jsx)(o.b0u,{id:"bandwidth",height:300,data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Bandwidth"})})})]})}function m(){let{collateral:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Collateral"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"collateral",label:"Locked collateral",color:e.config.data.locked.color,sc:e.stats.locked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"collateral",label:"Risked collateral",color:e.config.data.risked.color,sc:e.stats.risked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,s.jsx)(o.b0u,{id:"collateral",actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Collateral"})}),data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,height:300})]})}function p(){let{openDialog:e}=(0,v.Rh)(),{timeRange:a,dataTimeSpan:t,setDataTimeSpan:g,dataInterval:p}=(0,l.B)();return(0,s.jsx)(f.q,{title:"Overview",routes:u._,sidenav:(0,s.jsx)(h.N,{}),openSettings:()=>e("settings"),nav:(0,s.jsx)("div",{className:"flex gap-2 flex-1",children:(0,s.jsxs)(o.eQh,{children:[(0,s.jsx)(o.zxk,{state:"waiting",children:(0,s.jsx)(o.xvT,{size:"12",children:(0,r.rN)(a.start,{dateStyle:"long"})})}),(0,s.jsx)(o.zxk,{state:"waiting",children:(0,s.jsx)(o.xvT,{size:"12",color:"subtle",children:"to"})}),(0,s.jsx)(o.zxk,{state:"waiting",children:(0,s.jsx)(o.xvT,{size:"12",children:(0,r.rN)(a.end,{dateStyle:"long"})})})]})}),size:"full",actions:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.ua7,{side:"bottom",content:"Data interval: ".concat(p),children:(0,s.jsx)("div",{children:(0,s.jsxs)(o.zxk,{variant:"ghost",state:"waiting",children:[(0,s.jsx)(i.BB5,{}),p]})})}),(0,s.jsx)(o.ua7,{content:"Data time range",side:"bottom",children:(0,s.jsx)("div",{children:(0,s.jsx)(o.PhF,{value:String(t),onChange:e=>{let a=e.currentTarget.value;g(a)},icon:(0,s.jsx)(o.xvT,{className:"pl-1 pr-2",children:(0,s.jsx)(i.YV2,{})}),children:j.lv.map(e=>(0,s.jsx)(o.Wxm,{value:e.value,children:e.label},e.value))})})})]}),children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-14",children:[(0,s.jsx)(n,{}),(0,s.jsx)(m,{}),(0,s.jsx)(d,{}),(0,s.jsx)(y,{}),(0,s.jsx)(b,{}),(0,s.jsx)(c,{}),(0,s.jsx)(x,{})]})})}function L(){return(0,s.jsx)(p,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=87314)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/index-e7b77d077e51306b.js b/hostd/assets/_next/static/chunks/pages/index-e7b77d077e51306b.js new file mode 100644 index 000000000..93fea7a43 --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/index-e7b77d077e51306b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(23659)}])},14134:function(e,a,t){"use strict";t.d(a,{q:function(){return f}});var s=t(52322),o=t(76848),i=t(27444),l=t(6391),n=t.n(l),r=t(71930),d=t(25573);function c(){let e=(0,i.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(o.t6k,{testnetName:e.data.network}):null}var g=t(22515);function x(){var e,a,t,l,n,r,c;let{openDialog:x}=(0,g.Rh)(),f=(0,i.On)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,i.rV)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,d.n)(),v=(0,i.cQ)(),j=null===(e=f.data)||void 0===e?void 0:e.version,b=(null==j?void 0:j.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(j):"https://github.com/SiaFoundation/hostd/tree/".concat(j);return(0,s.jsxs)(o.HfT,{name:"hostd",peerCount:null===(a=v.data)||void 0===a?void 0:a.length,connectPeer:()=>x("connectPeer"),isSynced:h.isSynced,syncPercent:h.syncPercent,nodeBlockHeight:h.nodeBlockHeight,estimatedBlockHeight:h.estimatedBlockHeight,firstTimeSyncing:h.firstTimeSyncing,moreThan100BlocksToSync:h.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(o.XxW,{className:"overflow-hidden",size:"14",value:null===(t=u.data)||void 0===t?void 0:t.netAddress,maxLength:50,label:"network address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(o.XxW,{className:"overflow-hidden",size:"14",value:null===(l=f.data)||void 0===l?void 0:l.publicKey,maxLength:50,label:"public key"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(o.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(n=f.data)||void 0===n?void 0:n.walletAddress,type:"address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(o.xvT,{size:"14",children:null===(r=f.data)||void 0===r?void 0:r.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(o.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(o.rUS,{size:"14",href:b,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=f.data)||void 0===c?void 0:c.version})]})]})}function f(e){let a=(0,i.Os)(),{isSynced:t}=(0,d.n)();return(0,s.jsx)(o.tU3,{appName:"hostd",connectivityRoute:r.h,banner:(0,s.jsx)(c,{}),profile:(0,s.jsx)(x,{}),isSynced:t,walletBalanceSc:a.data&&{spendable:new(n())(a.data.spendable),confirmed:new(n())(a.data.confirmed),unconfirmed:new(n())(a.data.unconfirmed)},...e})}},66724:function(e,a,t){"use strict";t.d(a,{N:function(){return c}});var s=t(52322),o=t(76848),i=t(41775),l=t(27444),n=t(82851),r=t(71930),d=t(22515);function c(){var e,a;let{openDialog:t}=(0,d.Rh)(),c=(0,l.Z7)(),g=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(a=c.data)||void 0===a?void 0:a.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.KJW,{title:"Dashboard",route:r._.home,children:(0,s.jsx)(i.K2o,{})}),(0,s.jsx)(o.KJW,{title:"Volumes",route:r._.volumes.index,children:(0,s.jsx)(i.zvn,{})}),(0,s.jsx)(o.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,s.jsx)(i.VBo,{})}),(0,s.jsx)(o.KJW,{title:"Configuration",route:r._.config.index,children:(0,s.jsx)(i.wWN,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!x&&g&&(0,s.jsx)("div",{className:(0,n.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!g&&(0,s.jsx)(o.xvT,{size:"10",className:(0,n.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,s.jsx)(o.KJW,{title:"Alerts",onClick:()=>t("alerts"),children:(0,s.jsx)(i.Dkj,{})})]})]})}},23659:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return L}});var s=t(52322),o=t(76848),i=t(41775),l=t(5187);function n(){let{revenue:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Revenue"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"revenue",label:"earned revenue",color:e.config.data.earned.color,sc:e.stats.earned,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"potential revenue",color:e.config.data.potential.color,sc:e.stats.potential,defaultMode:"total",isLoading:e.isLoading,showChange:!1}),(0,s.jsx)(o.A06,{category:"revenue",label:"storage",color:e.config.data.storage.color,sc:e.stats.storage,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"registry read",color:e.config.data.registryRead.color,sc:e.stats.registryRead,defaultMode:"total",isLoading:e.isLoading}),(0,s.jsx)(o.A06,{category:"revenue",label:"registry write",color:e.config.data.registryWrite.color,sc:e.stats.registryWrite,defaultMode:"total",isLoading:e.isLoading})]}),(0,s.jsx)(o.b0u,{id:"revenue",height:300,data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Revenue"})})})]})}var r=t(96206);function d(){let{storage:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,s.jsx)(o.X6q,{children:"Storage"}),(0,s.jsxs)(o.Vy9,{children:[(0,s.jsx)(o.A06,{category:"storage",label:"storage (physical)",color:e.config.data.physicalSectors.color,value:e.stats.physicalSectors,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],format:r.vW}),(0,s.jsx)(o.A06,{category:"storage",label:"registry",color:e.config.data.registryEntries.color,value:e.stats.registryEntries,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"],format:r.vW})]}),(0,s.jsx)(o.b0u,{id:"storage",height:300,data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Storage"})})})]})}function c(){let{contracts:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Contracts"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"contracts",label:"Active contracts",color:e.config.data.active.color,value:e.stats.active,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"contracts",label:"Successful contracts",color:e.config.data.successful.color,value:e.stats.successful,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"contracts",label:"Failed contracts",color:e.config.data.failed.color,value:e.stats.failed,format:e=>e.toFixed(0),defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,s.jsx)(o.b0u,{id:"contracts",actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Contracts"})}),data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,height:300})]})}var g=t(94977);function x(){let{pricing:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Pricing"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"pricing",label:"storage",color:e.config.data.storage.color,sc:e.stats.storage,extendedSuffix:g.dz,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"ingress",color:e.config.data.ingress.color,sc:e.stats.ingress,defaultMode:"latest",extendedSuffix:g.LP,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"egress",color:e.config.data.egress.color,sc:e.stats.egress,defaultMode:"latest",extendedSuffix:g.s2,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"collateral",color:e.config.data.collateral.color,sc:e.stats.collateral,defaultMode:"latest",extendedSuffix:g.rZ,isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"contract",color:e.config.data.contract.color,sc:e.stats.contract,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"sector access",color:e.config.data.sectorAccess.color,sc:e.stats.sectorAccess,extendedSuffix:g.K9,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"pricing",label:"base RPC",color:e.config.data.baseRPC.color,sc:e.stats.baseRPC,extendedSuffix:g.co,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,s.jsx)(o.b0u,{id:"pricing",height:300,data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Pricing"})})})]})}var f=t(14134),u=t(71930),h=t(66724),v=t(22515),j=t(14817);function b(){let{operations:e}=(0,l.B)();return(0,s.jsx)("div",{className:"flex gap-3",children:(0,s.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,s.jsx)(o.X6q,{children:"Operations"}),(0,s.jsxs)(o.Vy9,{children:[(0,s.jsx)(o.A06,{category:"operations",label:"storage reads",color:e.config.data.storageReads.color,value:e.stats.storageReads,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:r.yF}),(0,s.jsx)(o.A06,{category:"operations",label:"storage writes",color:e.config.data.storageWrites.color,value:e.stats.storageWrites,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:r.yF}),(0,s.jsx)(o.A06,{category:"operations",label:"registry reads",color:e.config.data.registryReads.color,value:e.stats.registryReads,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:r.yF}),(0,s.jsx)(o.A06,{category:"operations",label:"registry writes",color:e.config.data.registryWrites.color,value:e.stats.registryWrites,defaultMode:"total",isLoading:e.isLoading,enabledModes:["total","average","latest"],format:r.yF})]}),(0,s.jsx)(o.b0u,{id:"operations",height:300,data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Operations"})})})]})})}function y(){let{bandwidth:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3 flex-1 overflow-hidden",children:[(0,s.jsx)(o.X6q,{children:"Bandwidth"}),(0,s.jsxs)(o.Vy9,{children:[(0,s.jsx)(o.A06,{category:"bandwidth",label:"ingress",color:e.config.data.ingress.color,value:e.stats.ingress,defaultMode:"total",isLoading:e.isLoading,format:r.vW}),(0,s.jsx)(o.A06,{category:"bandwidth",label:"egress",color:e.config.data.egress.color,value:e.stats.egress,defaultMode:"total",isLoading:e.isLoading,format:r.vW})]}),(0,s.jsx)(o.b0u,{id:"bandwidth",height:300,data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Bandwidth"})})})]})}function m(){let{collateral:e}=(0,l.B)();return(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)(o.X6q,{children:"Collateral"}),(0,s.jsxs)(o.Vy9,{bleed:!0,children:[(0,s.jsx)(o.A06,{category:"collateral",label:"Locked collateral",color:e.config.data.locked.color,sc:e.stats.locked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]}),(0,s.jsx)(o.A06,{category:"collateral",label:"Risked collateral",color:e.config.data.risked.color,sc:e.stats.risked,defaultMode:"latest",isLoading:e.isLoading,enabledModes:["latest","average"]})]}),(0,s.jsx)(o.b0u,{id:"collateral",actionsLeft:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(o.xvT,{font:"mono",weight:"semibold",children:"Collateral"})}),data:e.data,config:e.config,isLoading:e.isLoading,chartType:e.chartType,height:300})]})}function p(){let{openDialog:e}=(0,v.Rh)(),{timeRange:a,dataTimeSpan:t,setDataTimeSpan:g,dataInterval:p}=(0,l.B)();return(0,s.jsx)(f.q,{title:"Overview",routes:u._,sidenav:(0,s.jsx)(h.N,{}),openSettings:()=>e("settings"),nav:(0,s.jsx)("div",{className:"flex gap-2 flex-1",children:(0,s.jsxs)(o.eQh,{children:[(0,s.jsx)(o.zxk,{state:"waiting",children:(0,s.jsx)(o.xvT,{size:"12",children:(0,r.rN)(a.start,{dateStyle:"long"})})}),(0,s.jsx)(o.zxk,{state:"waiting",children:(0,s.jsx)(o.xvT,{size:"12",color:"subtle",children:"to"})}),(0,s.jsx)(o.zxk,{state:"waiting",children:(0,s.jsx)(o.xvT,{size:"12",children:(0,r.rN)(a.end,{dateStyle:"long"})})})]})}),size:"full",actions:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.ua7,{side:"bottom",content:"Data interval: ".concat(p),children:(0,s.jsx)("div",{children:(0,s.jsxs)(o.zxk,{variant:"ghost",state:"waiting",children:[(0,s.jsx)(i.BB5,{}),p]})})}),(0,s.jsx)(o.ua7,{content:"Data time range",side:"bottom",children:(0,s.jsx)("div",{children:(0,s.jsx)(o.PhF,{value:String(t),onChange:e=>{let a=e.currentTarget.value;g(a)},icon:(0,s.jsx)(o.xvT,{className:"pl-1 pr-2",children:(0,s.jsx)(i.YV2,{})}),children:j.lv.map(e=>(0,s.jsx)(o.Wxm,{value:e.value,children:e.label},e.value))})})})]}),children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-14",children:[(0,s.jsx)(n,{}),(0,s.jsx)(m,{}),(0,s.jsx)(d,{}),(0,s.jsx)(y,{}),(0,s.jsx)(b,{}),(0,s.jsx)(c,{}),(0,s.jsx)(x,{})]})})}function L(){return(0,s.jsx)(p,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=87314)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/login-6ad73397c117a0b1.js b/hostd/assets/_next/static/chunks/pages/login-7b3bb221a6795fa1.js similarity index 79% rename from hostd/assets/_next/static/chunks/pages/login-6ad73397c117a0b1.js rename to hostd/assets/_next/static/chunks/pages/login-7b3bb221a6795fa1.js index 9673b0007..9eebf66c2 100644 --- a/hostd/assets/_next/static/chunks/pages/login-6ad73397c117a0b1.js +++ b/hostd/assets/_next/static/chunks/pages/login-7b3bb221a6795fa1.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(76309)}])},76309:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return c}});var r=t(52322),e=t(52735),o=t(71930);function i(n){return(0,r.jsx)(e.juT,{appName:"hostd",...n})}function s(){return(0,r.jsx)(i,{children:(0,r.jsx)(e.zXq,{appName:"hostd",route:o.h,routes:o._})})}function c(){return(0,r.jsx)(s,{})}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(76309)}])},76309:function(n,u,t){"use strict";t.r(u),t.d(u,{default:function(){return c}});var r=t(52322),e=t(76848),o=t(71930);function i(n){return(0,r.jsx)(e.juT,{appName:"hostd",...n})}function s(){return(0,r.jsx)(i,{children:(0,r.jsx)(e.zXq,{appName:"hostd",route:o.h,routes:o._})})}function c(){return(0,r.jsx)(s,{})}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/node-259c8781ea9f7a5b.js b/hostd/assets/_next/static/chunks/pages/node-a334faf802742481.js similarity index 57% rename from hostd/assets/_next/static/chunks/pages/node-259c8781ea9f7a5b.js rename to hostd/assets/_next/static/chunks/pages/node-a334faf802742481.js index ce204657b..21b1b4ca1 100644 --- a/hostd/assets/_next/static/chunks/pages/node-259c8781ea9f7a5b.js +++ b/hostd/assets/_next/static/chunks/pages/node-a334faf802742481.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{34498:function(e,n,t){var s=t(23813),i=t(86152);e.exports=function(e,n,t,l){return null==e?[]:(i(n)||(n=null==n?[]:[n]),i(t=l?void 0:t)||(t=null==t?[]:[t]),s(e,n,t))}},27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(61936)}])},14134:function(e,n,t){"use strict";t.d(n,{q:function(){return h}});var s=t(52322),i=t(52735),l=t(27444),a=t(6391),o=t.n(a),d=t(71930),r=t(25573);function c(){let e=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}var u=t(22515);function x(){var e,n,t,a,o,d,c;let{openDialog:x}=(0,u.Rh)(),h=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,r.n)(),j=(0,l.cQ)(),m=null===(e=h.data)||void 0===e?void 0:e.version,p=(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(m):"https://github.com/SiaFoundation/hostd/tree/".concat(m);return(0,s.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=j.data)||void 0===n?void 0:n.length,connectPeer:()=>x("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(t=v.data)||void 0===t?void 0:t.netAddress,maxLength:50,label:"network address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(a=h.data)||void 0===a?void 0:a.publicKey,maxLength:50,label:"public key"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(o=h.data)||void 0===o?void 0:o.walletAddress,type:"address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(d=h.data)||void 0===d?void 0:d.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(e){let n=(0,l.Os)(),{isSynced:t}=(0,r.n)();return(0,s.jsx)(i.tU3,{appName:"hostd",connectivityRoute:d.h,banner:(0,s.jsx)(c,{}),profile:(0,s.jsx)(x,{}),isSynced:t,walletBalance:n.data?new(o())(n.data.spendable).plus(n.data.unconfirmed):void 0,...e})}},66724:function(e,n,t){"use strict";t.d(n,{N:function(){return c}});var s=t(52322),i=t(52735),l=t(41775),a=t(27444),o=t(82851),d=t(71930),r=t(22515);function c(){var e,n;let{openDialog:t}=(0,r.Rh)(),c=(0,a.Z7)(),u=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=c.data)||void 0===n?void 0:n.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Dashboard",route:d._.home,children:(0,s.jsx)(l.K2o,{})}),(0,s.jsx)(i.KJW,{title:"Volumes",route:d._.volumes.index,children:(0,s.jsx)(l.zvn,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,s.jsx)(l.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:d._.config.index,children:(0,s.jsx)(l.wWN,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,s.jsx)("div",{className:(0,o.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,s.jsx)(i.xvT,{size:"10",className:(0,o.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>t("alerts"),children:(0,s.jsx)(l.Dkj,{})})]})]})}},61936:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return f}});var s=t(52322),i=t(52735),l=t(27444),a=t(71930),o=t(22515),d=t(66724),r=t(14134),c=t(2784),u=t(34498),x=t.n(u),h=t(25573);function v(){var e;let n=(0,l.cQ)(),t=(0,h.n)(),{openDialog:u}=(0,o.Rh)(),v=(0,c.useMemo)(()=>n.data?x()(n.data,["address"]).map(e=>e.address):null,[n.data]);return(0,s.jsx)(r.q,{routes:a._,sidenav:(0,s.jsx)(d.N,{}),openSettings:()=>u("settings"),title:"Node",children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(0,s.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,s.jsx)(i.ncR,{label:"Height",value:t.nodeBlockHeight?t.nodeBlockHeight.toLocaleString():void 0,comment:t.isSynced?void 0:"Syncing to ".concat(t.estimatedBlockHeight.toLocaleString())}),(0,s.jsx)(i.ncR,{label:"Connected peers",value:null===(e=n.data)||void 0===e?void 0:e.length})]}),(0,s.jsx)(i.u5Q,{peers:v,connectPeer:()=>u("connectPeer")})]})})}function f(){return(0,s.jsx)(v,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{34498:function(e,n,t){var s=t(23813),i=t(86152);e.exports=function(e,n,t,l){return null==e?[]:(i(n)||(n=null==n?[]:[n]),i(t=l?void 0:t)||(t=null==t?[]:[t]),s(e,n,t))}},27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(61936)}])},14134:function(e,n,t){"use strict";t.d(n,{q:function(){return h}});var s=t(52322),i=t(76848),l=t(27444),a=t(6391),o=t.n(a),d=t(71930),r=t(25573);function c(){let e=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}var u=t(22515);function x(){var e,n,t,a,o,d,c;let{openDialog:x}=(0,u.Rh)(),h=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,r.n)(),j=(0,l.cQ)(),m=null===(e=h.data)||void 0===e?void 0:e.version,p=(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(m):"https://github.com/SiaFoundation/hostd/tree/".concat(m);return(0,s.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=j.data)||void 0===n?void 0:n.length,connectPeer:()=>x("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(t=v.data)||void 0===t?void 0:t.netAddress,maxLength:50,label:"network address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(a=h.data)||void 0===a?void 0:a.publicKey,maxLength:50,label:"public key"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(o=h.data)||void 0===o?void 0:o.walletAddress,type:"address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(d=h.data)||void 0===d?void 0:d.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(e){let n=(0,l.Os)(),{isSynced:t}=(0,r.n)();return(0,s.jsx)(i.tU3,{appName:"hostd",connectivityRoute:d.h,banner:(0,s.jsx)(c,{}),profile:(0,s.jsx)(x,{}),isSynced:t,walletBalanceSc:n.data&&{spendable:new(o())(n.data.spendable),confirmed:new(o())(n.data.confirmed),unconfirmed:new(o())(n.data.unconfirmed)},...e})}},66724:function(e,n,t){"use strict";t.d(n,{N:function(){return c}});var s=t(52322),i=t(76848),l=t(41775),a=t(27444),o=t(82851),d=t(71930),r=t(22515);function c(){var e,n;let{openDialog:t}=(0,r.Rh)(),c=(0,a.Z7)(),u=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=c.data)||void 0===n?void 0:n.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Dashboard",route:d._.home,children:(0,s.jsx)(l.K2o,{})}),(0,s.jsx)(i.KJW,{title:"Volumes",route:d._.volumes.index,children:(0,s.jsx)(l.zvn,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,s.jsx)(l.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:d._.config.index,children:(0,s.jsx)(l.wWN,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,s.jsx)("div",{className:(0,o.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,s.jsx)(i.xvT,{size:"10",className:(0,o.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>t("alerts"),children:(0,s.jsx)(l.Dkj,{})})]})]})}},61936:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return f}});var s=t(52322),i=t(76848),l=t(27444),a=t(71930),o=t(22515),d=t(66724),r=t(14134),c=t(2784),u=t(34498),x=t.n(u),h=t(25573);function v(){var e;let n=(0,l.cQ)(),t=(0,h.n)(),{openDialog:u}=(0,o.Rh)(),v=(0,c.useMemo)(()=>n.data?x()(n.data,["address"]).map(e=>e.address):null,[n.data]);return(0,s.jsx)(r.q,{routes:a._,sidenav:(0,s.jsx)(d.N,{}),openSettings:()=>u("settings"),title:"Node",children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(0,s.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,s.jsx)(i.ncR,{label:"Height",value:t.nodeBlockHeight?t.nodeBlockHeight.toLocaleString():void 0,comment:t.isSynced?void 0:"Syncing to ".concat(t.estimatedBlockHeight.toLocaleString())}),(0,s.jsx)(i.ncR,{label:"Connected peers",value:null===(e=n.data)||void 0===e?void 0:e.length})]}),(0,s.jsx)(i.u5Q,{peers:v,connectPeer:()=>u("connectPeer")})]})})}function f(){return(0,s.jsx)(v,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/volumes-b3be04e94991e699.js b/hostd/assets/_next/static/chunks/pages/volumes-b3be04e94991e699.js new file mode 100644 index 000000000..ad345b78a --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/volumes-b3be04e94991e699.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[144],{13252:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/volumes",function(){return s(89516)}])},14134:function(e,n,s){"use strict";s.d(n,{q:function(){return h}});var t=s(52322),i=s(76848),l=s(27444),a=s(6391),o=s.n(a),r=s(71930),d=s(25573);function c(){let e=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}var x=s(22515);function u(){var e,n,s,a,o,r,c;let{openDialog:u}=(0,x.Rh)(),h=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,d.n)(),m=(0,l.cQ)(),f=null===(e=h.data)||void 0===e?void 0:e.version,p=(null==f?void 0:f.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(f):"https://github.com/SiaFoundation/hostd/tree/".concat(f);return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=m.data)||void 0===n?void 0:n.length,connectPeer:()=>u("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(s=v.data)||void 0===s?void 0:s.netAddress,maxLength:50,label:"network address"})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(a=h.data)||void 0===a?void 0:a.publicKey,maxLength:50,label:"public key"})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(o=h.data)||void 0===o?void 0:o.walletAddress,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(r=h.data)||void 0===r?void 0:r.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(e){let n=(0,l.Os)(),{isSynced:s}=(0,d.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:r.h,banner:(0,t.jsx)(c,{}),profile:(0,t.jsx)(u,{}),isSynced:s,walletBalanceSc:n.data&&{spendable:new(o())(n.data.spendable),confirmed:new(o())(n.data.confirmed),unconfirmed:new(o())(n.data.unconfirmed)},...e})}},66724:function(e,n,s){"use strict";s.d(n,{N:function(){return c}});var t=s(52322),i=s(76848),l=s(41775),a=s(27444),o=s(82851),r=s(71930),d=s(22515);function c(){var e,n;let{openDialog:s}=(0,d.Rh)(),c=(0,a.Z7)(),x=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(n=c.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:r._.home,children:(0,t.jsx)(l.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:r._.volumes.index,children:(0,t.jsx)(l.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,t.jsx)(l.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:r._.config.index,children:(0,t.jsx)(l.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,o.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(i.xvT,{size:"10",className:(0,o.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(i.KJW,{title:"Alerts",onClick:()=>s("alerts"),children:(0,t.jsx)(l.Dkj,{})})]})]})}},89516:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return j}});var t=s(52322),i=s(76848),l=s(41775),a=s(96206),o=s(14134),r=s(22515),d=s(66724),c=s(71930),x=s(78743);function u(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:s,setColumnsVisible:a,setColumnsHidden:o,enabledColumns:r}=(0,x.F)(),d=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),c=e.filter(e=>"operations"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(i.J2e,{trigger:(0,t.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(l.hiv,{}),"View",(0,t.jsx)(l.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Display properties"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,t.jsx)(l.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:d.map(e=>e.value),enabled:r,setColumnsVisible:a,setColumnsHidden:o}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:d,values:r,onChange:e=>n(e)})}),(0,t.jsx)(i.FzK,{label:"Operations",columns:c.map(e=>e.value),enabled:r,setColumnsVisible:a,setColumnsHidden:o}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:c,values:r,onChange:e=>n(e)})})]})}function h(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(l.zvn,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no volumes. Create one to get started."})]})}function v(){let{openDialog:e}=(0,r.Rh)(),{dataset:n,isLoading:s,columns:v}=(0,x.F)(),j=null==n?void 0:n.reduce((e,n)=>e+n.totalBytes,0),m=null==n?void 0:n.reduce((e,n)=>e+n.usedBytes,0),f=j-m;return(0,t.jsx)(o.q,{title:"Volumes",routes:c._,sidenav:(0,t.jsx)(d.N,{}),openSettings:()=>e("settings"),actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.zxk,{onClick:()=>e("volumeCreate"),children:[(0,t.jsx)(l.RVU,{}),"Create volume"]}),(0,t.jsx)(u,{})]}),stats:(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(m)," used")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(f)," free")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(j)," total")})]}),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(i.iA_,{isLoading:s,pageSize:20,data:n,columns:v,emptyState:(0,t.jsx)(h,{})})})})}function j(){return(0,t.jsx)(v,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=13252)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/volumes-e202fb21048dec79.js b/hostd/assets/_next/static/chunks/pages/volumes-e202fb21048dec79.js deleted file mode 100644 index 7b337c37b..000000000 --- a/hostd/assets/_next/static/chunks/pages/volumes-e202fb21048dec79.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[144],{13252:function(e,s,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/volumes",function(){return n(89516)}])},14134:function(e,s,n){"use strict";n.d(s,{q:function(){return h}});var t=n(52322),i=n(52735),l=n(27444),a=n(6391),o=n.n(a),r=n(71930),d=n(25573);function c(){let e=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(i.t6k,{testnetName:e.data.network}):null}var x=n(22515);function u(){var e,s,n,a,o,r,c;let{openDialog:u}=(0,x.Rh)(),h=(0,l.On)({config:{swr:{revalidateOnFocus:!1}}}),v=(0,l.rV)({config:{swr:{revalidateOnFocus:!1}}}),j=(0,d.n)(),m=(0,l.cQ)(),f=null===(e=h.data)||void 0===e?void 0:e.version,p=(null==f?void 0:f.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(f):"https://github.com/SiaFoundation/hostd/tree/".concat(f);return(0,t.jsxs)(i.HfT,{name:"hostd",peerCount:null===(s=m.data)||void 0===s?void 0:s.length,connectPeer:()=>u("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(n=v.data)||void 0===n?void 0:n.netAddress,maxLength:50,label:"network address"})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(a=h.data)||void 0===a?void 0:a.publicKey,maxLength:50,label:"public key"})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(o=h.data)||void 0===o?void 0:o.walletAddress,type:"address"})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(i.xvT,{size:"14",children:null===(r=h.data)||void 0===r?void 0:r.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(i.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=h.data)||void 0===c?void 0:c.version})]})]})}function h(e){let s=(0,l.Os)(),{isSynced:n}=(0,d.n)();return(0,t.jsx)(i.tU3,{appName:"hostd",connectivityRoute:r.h,banner:(0,t.jsx)(c,{}),profile:(0,t.jsx)(u,{}),isSynced:n,walletBalance:s.data?new(o())(s.data.spendable).plus(s.data.unconfirmed):void 0,...e})}},66724:function(e,s,n){"use strict";n.d(s,{N:function(){return c}});var t=n(52322),i=n(52735),l=n(41775),a=n(27444),o=n(82851),r=n(71930),d=n(22515);function c(){var e,s;let{openDialog:n}=(0,d.Rh)(),c=(0,a.Z7)(),x=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(s=c.data)||void 0===s?void 0:s.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.KJW,{title:"Dashboard",route:r._.home,children:(0,t.jsx)(l.K2o,{})}),(0,t.jsx)(i.KJW,{title:"Volumes",route:r._.volumes.index,children:(0,t.jsx)(l.zvn,{})}),(0,t.jsx)(i.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,t.jsx)(l.VBo,{})}),(0,t.jsx)(i.KJW,{title:"Configuration",route:r._.config.index,children:(0,t.jsx)(l.wWN,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,t.jsx)("div",{className:(0,o.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,t.jsx)(i.xvT,{size:"10",className:(0,o.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,t.jsx)(i.KJW,{title:"Alerts",onClick:()=>n("alerts"),children:(0,t.jsx)(l.Dkj,{})})]})]})}},89516:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return j}});var t=n(52322),i=n(52735),l=n(41775),a=n(96206),o=n(14134),r=n(22515),d=n(66724),c=n(71930),x=n(78743);function u(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:n,setColumnsVisible:a,setColumnsHidden:o,enabledColumns:r}=(0,x.F)(),d=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),c=e.filter(e=>"operations"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(i.J2e,{trigger:(0,t.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(l.hiv,{}),"View",(0,t.jsx)(l.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Display properties"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),n()},children:(0,t.jsx)(l.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:d.map(e=>e.value),enabled:r,setColumnsVisible:a,setColumnsHidden:o}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:d,values:r,onChange:e=>s(e)})}),(0,t.jsx)(i.FzK,{label:"Operations",columns:c.map(e=>e.value),enabled:r,setColumnsVisible:a,setColumnsHidden:o}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:c,values:r,onChange:e=>s(e)})})]})}function h(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(l.zvn,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no volumes. Create one to get started."})]})}function v(){let{openDialog:e}=(0,r.Rh)(),{dataset:s,isLoading:n,columns:v}=(0,x.F)(),j=null==s?void 0:s.reduce((e,s)=>e+s.totalBytes,0),m=null==s?void 0:s.reduce((e,s)=>e+s.usedBytes,0),f=j-m;return(0,t.jsx)(o.q,{title:"Volumes",routes:c._,sidenav:(0,t.jsx)(d.N,{}),openSettings:()=>e("settings"),actions:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.zxk,{onClick:()=>e("volumeCreate"),children:[(0,t.jsx)(l.RVU,{}),"Create volume"]}),(0,t.jsx)(u,{})]}),stats:(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(m)," used")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(f)," free")}),(0,t.jsx)(i.Z0O,{variant:"vertical"}),(0,t.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"".concat((0,a.vW)(j)," total")})]}),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(i.iA_,{isLoading:n,pageSize:20,data:s,columns:v,emptyState:(0,t.jsx)(h,{})})})})}function j(){return(0,t.jsx)(v,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=13252)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/wallet-0b2c8c4cd8b89e12.js b/hostd/assets/_next/static/chunks/pages/wallet-0b2c8c4cd8b89e12.js deleted file mode 100644 index cac9250c1..000000000 --- a/hostd/assets/_next/static/chunks/pages/wallet-0b2c8c4cd8b89e12.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return n(60495)}])},14134:function(e,t,n){"use strict";n.d(t,{q:function(){return m}});var s=n(52322),i=n(52735),a=n(27444),l=n(6391),o=n.n(l),r=n(71930),d=n(25573);function c(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}var u=n(22515);function x(){var e,t,n,l,o,r,c;let{openDialog:x}=(0,u.Rh)(),m=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,d.n)(),v=(0,a.cQ)(),p=null===(e=m.data)||void 0===e?void 0:e.version,j=(null==p?void 0:p.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(p):"https://github.com/SiaFoundation/hostd/tree/".concat(p);return(0,s.jsxs)(i.HfT,{name:"hostd",peerCount:null===(t=v.data)||void 0===t?void 0:t.length,connectPeer:()=>x("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(n=h.data)||void 0===n?void 0:n.netAddress,maxLength:50,label:"network address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(l=m.data)||void 0===l?void 0:l.publicKey,maxLength:50,label:"public key"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(o=m.data)||void 0===o?void 0:o.walletAddress,type:"address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(r=m.data)||void 0===r?void 0:r.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=m.data)||void 0===c?void 0:c.version})]})]})}function m(e){let t=(0,a.Os)(),{isSynced:n}=(0,d.n)();return(0,s.jsx)(i.tU3,{appName:"hostd",connectivityRoute:r.h,banner:(0,s.jsx)(c,{}),profile:(0,s.jsx)(x,{}),isSynced:n,walletBalance:t.data?new(o())(t.data.spendable).plus(t.data.unconfirmed):void 0,...e})}},66724:function(e,t,n){"use strict";n.d(t,{N:function(){return c}});var s=n(52322),i=n(52735),a=n(41775),l=n(27444),o=n(82851),r=n(71930),d=n(22515);function c(){var e,t;let{openDialog:n}=(0,d.Rh)(),c=(0,l.Z7)(),u=!(null===(e=c.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(t=c.data)||void 0===t?void 0:t.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Dashboard",route:r._.home,children:(0,s.jsx)(a.K2o,{})}),(0,s.jsx)(i.KJW,{title:"Volumes",route:r._.volumes.index,children:(0,s.jsx)(a.zvn,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:r._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:r._.config.index,children:(0,s.jsx)(a.wWN,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,s.jsx)("div",{className:(0,o.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,s.jsx)(i.xvT,{size:"10",className:(0,o.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>n("alerts"),children:(0,s.jsx)(a.Dkj,{})})]})]})}},60495:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var s=n(52322),i=n(52735),a=n(27444),l=n(2784),o=n(22515),r=n(71930),d=n(6391),c=n.n(d),u=n(66724),x=n(14134),m=n(25573);function h(){let e=(0,a.Qq)({params:{limit:50,offset:0}}),t=(0,a.a0)(),{openDialog:n}=(0,o.Rh)(),d=(0,a.Os)(),h=(0,l.useMemo)(()=>[...(t.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e.transaction,e.source),hash:e.ID,timestamp:new Date(e.timestamp).getTime(),sc:new(c())(e.inflow).minus(e.outflow),unconfirmed:!0})),...(e.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e.transaction,e.source),hash:e.ID,timestamp:new Date(e.timestamp).getTime(),onClick:()=>n("transactionDetails",e.ID),sc:new(c())(e.inflow).minus(e.outflow)})).sort((e,t)=>e.timestamp{let e=new Date().getTime(),t=(0,i.NrH)(30);return new Date(e-t).toISOString()},[]),v=(0,a.KU)({params:{interval:"daily",start:f}}),p=(0,l.useMemo)(()=>(v.data||[]).map(e=>({sc:Number(e.balance),timestamp:new Date(e.timestamp).getTime()})).sort((e,t)=>e.timestamp>=t.timestamp?1:-1),[v.data]),{isSynced:j,isWalletSynced:w,syncPercent:g,walletScanPercent:y}=(0,m.n)();return(0,s.jsx)(x.q,{routes:r._,sidenav:(0,s.jsx)(u.N,{}),openSettings:()=>n("settings"),title:"Wallet",actions:(0,s.jsx)(i.QUh,{isSynced:j,isWalletSynced:w,syncPercent:g,walletScanPercent:y,sc:d.data?new(c())(d.data.spendable).plus(d.data.unconfirmed):void 0,receiveSiacoin:()=>n("addressDetails"),sendSiacoin:()=>n("sendSiacoin")}),stats:(0,s.jsx)(i.DmW,{isSynced:j,isWalletSynced:w,syncPercent:g,walletScanPercent:y}),children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(0,s.jsx)(i.Z58,{balances:p,isLoading:v.isValidating}),(0,s.jsx)(i.XOF,{title:"Transactions",entities:h.slice(0,100)})]})})}function f(){return(0,s.jsx)(h,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/chunks/pages/wallet-1f360997513d57eb.js b/hostd/assets/_next/static/chunks/pages/wallet-1f360997513d57eb.js new file mode 100644 index 000000000..70da36e76 --- /dev/null +++ b/hostd/assets/_next/static/chunks/pages/wallet-1f360997513d57eb.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return t(21990)}])},14134:function(e,n,t){"use strict";t.d(n,{q:function(){return m}});var s=t(52322),i=t(76848),a=t(27444),l=t(6391),r=t.n(l),c=t(71930),d=t(25573);function o(){let e=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}var u=t(22515);function x(){var e,n,t,l,r,c,o;let{openDialog:x}=(0,u.Rh)(),m=(0,a.On)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,a.rV)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,d.n)(),v=(0,a.cQ)(),p=null===(e=m.data)||void 0===e?void 0:e.version,j=(null==p?void 0:p.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/hostd/releases/".concat(p):"https://github.com/SiaFoundation/hostd/tree/".concat(p);return(0,s.jsxs)(i.HfT,{name:"hostd",peerCount:null===(n=v.data)||void 0===n?void 0:n.length,connectPeer:()=>x("connectPeer"),isSynced:h.isSynced,syncPercent:h.syncPercent,nodeBlockHeight:h.nodeBlockHeight,estimatedBlockHeight:h.estimatedBlockHeight,firstTimeSyncing:h.firstTimeSyncing,moreThan100BlocksToSync:h.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Net address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(t=f.data)||void 0===t?void 0:t.netAddress,maxLength:50,label:"network address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Public key"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",value:null===(l=m.data)||void 0===l?void 0:l.publicKey,maxLength:50,label:"public key"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(r=m.data)||void 0===r?void 0:r.walletAddress,type:"address"})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(c=m.data)||void 0===c?void 0:c.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(o=m.data)||void 0===o?void 0:o.version})]})]})}function m(e){let n=(0,a.Os)(),{isSynced:t}=(0,d.n)();return(0,s.jsx)(i.tU3,{appName:"hostd",connectivityRoute:c.h,banner:(0,s.jsx)(o,{}),profile:(0,s.jsx)(x,{}),isSynced:t,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},66724:function(e,n,t){"use strict";t.d(n,{N:function(){return o}});var s=t(52322),i=t(76848),a=t(41775),l=t(27444),r=t(82851),c=t(71930),d=t(22515);function o(){var e,n;let{openDialog:t}=(0,d.Rh)(),o=(0,l.Z7)(),u=!(null===(e=o.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=o.data)||void 0===n?void 0:n.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Dashboard",route:c._.home,children:(0,s.jsx)(a.K2o,{})}),(0,s.jsx)(i.KJW,{title:"Volumes",route:c._.volumes.index,children:(0,s.jsx)(a.zvn,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:c._.config.index,children:(0,s.jsx)(a.wWN,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,s.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,s.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>t("alerts"),children:(0,s.jsx)(a.Dkj,{})})]})]})}},21990:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var s=t(52322),i=t(76848),a=t(27444),l=t(2784),r=t(22515),c=t(71930),d=t(6391),o=t.n(d),u=t(66724),x=t(14134),m=t(25573),f=t(41775);function h(){let{openDialog:e}=(0,r.Rh)();return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,s.jsx)(i.xvT,{children:(0,s.jsx)(f.HCc,{className:"scale-[200%]"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,s.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Send funds to your ",(0,s.jsx)(i.EKh,{children:"hostd"})," wallet address to get started."]}),(0,s.jsx)(i.zxk,{variant:"accent",onClick:()=>e("addressDetails"),children:"View address"})]})]})}function v(){let e=(0,a.Qq)({params:{limit:50,offset:0}}),n=(0,a.a0)(),{openDialog:t}=(0,r.Rh)(),d=(0,a.Os)(),f=(0,l.useMemo)(()=>[...(n.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e.transaction,e.source),hash:e.ID,timestamp:new Date(e.timestamp).getTime(),sc:new(o())(e.inflow).minus(e.outflow),unconfirmed:!0})),...(e.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e.transaction,e.source),hash:e.ID,timestamp:new Date(e.timestamp).getTime(),onClick:()=>t("transactionDetails",e.ID),sc:new(o())(e.inflow).minus(e.outflow)})).sort((e,n)=>e.timestamp{let e=new Date().getTime(),n=(0,i.NrH)(30);return new Date(e-n).toISOString()},[]),p=(0,a.KU)({params:{interval:"daily",start:v}}),j=(0,l.useMemo)(()=>(p.data||[]).map(e=>({sc:Number(e.balance),timestamp:new Date(e.timestamp).getTime()})).sort((e,n)=>e.timestamp>=n.timestamp?1:-1),[p.data]),{isSynced:w,isWalletSynced:g,syncPercent:y,walletScanPercent:N}=(0,m.n)();return(0,s.jsx)(x.q,{routes:c._,sidenav:(0,s.jsx)(u.N,{}),openSettings:()=>t("settings"),title:"Wallet",actions:(0,s.jsx)(i.QUh,{isSynced:w,isWalletSynced:g,syncPercent:y,walletScanPercent:N,balanceSc:d.data?{spendable:new(o())(d.data.spendable),unconfirmed:new(o())(d.data.unconfirmed),confirmed:new(o())(d.data.confirmed)}:void 0,receiveSiacoin:()=>t("addressDetails"),sendSiacoin:()=>t("sendSiacoin")}),stats:(0,s.jsx)(i.DmW,{isSynced:w,isWalletSynced:g,syncPercent:y,walletScanPercent:N}),children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(null==j?void 0:j.length)&&j.find(e=>e.sc)?(0,s.jsx)(i.Z58,{balances:j,isLoading:p.isValidating}):null,(0,s.jsx)(i.XOF,{title:"Transactions",entities:f.slice(0,100),emptyState:(0,s.jsx)(h,{})})]})})}function p(){return(0,s.jsx)(v,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/hostd/assets/_next/static/css/5f3fb477e0943add.css b/hostd/assets/_next/static/css/5f3fb477e0943add.css new file mode 100644 index 000000000..d73aa3520 --- /dev/null +++ b/hostd/assets/_next/static/css/5f3fb477e0943add.css @@ -0,0 +1,3 @@ +/* +! tailwindcss v3.2.7 | MIT License | https://tailwindcss.com +*/*,:after,:before{box-sizing:border-box;border:0 solid #f1f3f5}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--font-mono),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#e6e8eb}input::placeholder,textarea::placeholder{opacity:1;color:#e6e8eb}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*{scrollbar-color:auto;scrollbar-width:auto}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.fixed{position:fixed}.\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-2{bottom:-.5rem}.-bottom-2\.5{bottom:-.625rem}.-left-7{left:-1.75rem}.-right-\[2px\]{right:-2px}.-right-\[9px\]{right:-9px}.-top-0{top:0}.-top-0\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-\[100px\]{top:-100px}.-top-\[5px\]{top:-5px}.-top-px{top:-1px}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.bottom-\[100\%\]{bottom:100%}.left-0{left:0}.left-1{left:.25rem}.left-1\.5{left:.375rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-5{right:1.25rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-1{top:.25rem}.top-3{top:.75rem}.top-3\.5{top:.875rem}.top-\[-0\.5px\]{top:-.5px}.top-\[-30px\]{top:-30px}.top-\[-50px\]{top:-50px}.top-\[100\%\]{top:100%}.top-\[200px\]{top:200px}.top-px{top:1px}.-z-10{z-index:-10}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-4{margin:-1rem}.m-0{margin:0}.m-px{margin:1px}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-0{margin-bottom:0}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-28{height:7rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-\[100px\]{height:100px}.h-\[120px\]{height:120px}.h-\[14px\]{height:14px}.h-\[200px\]{height:200px}.h-\[200vh\]{height:200vh}.h-\[20px\]{height:20px}.h-\[210px\]{height:210px}.h-\[300px\]{height:300px}.h-\[30px\]{height:30px}.h-\[400px\]{height:400px}.h-\[50px\]{height:50px}.h-\[80vh\]{height:80vh}.h-\[84px\]{height:84px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[400px\]{max-height:400px}.max-h-\[600px\]{max-height:600px}.max-h-\[70vh\]{max-height:70vh}.min-h-\[80px\]{min-height:80px}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[100px\]{width:100px}.w-\[120px\]{width:120px}.w-\[140px\]{width:140px}.w-\[150px\]{width:150px}.w-\[160px\]{width:160px}.w-\[200px\]{width:200px}.w-\[200vw\]{width:200vw}.w-\[210px\]{width:210px}.w-\[220px\]{width:220px}.w-\[250px\]{width:250px}.w-\[300px\]{width:300px}.w-\[400px\]{width:400px}.w-\[450px\]{width:450px}.w-\[500px\]{width:500px}.w-\[50px\]{width:50px}.w-\[60px\]{width:60px}.w-\[75px\]{width:75px}.w-\[800px\]{width:800px}.w-\[90\%\]{width:90%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-\[200px\]{min-width:200px}.min-w-\[250px\]{min-width:250px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.\!max-w-none{max-width:none!important}.max-w-\[1145px\]{max-width:1145px}.max-w-\[200px\]{max-width:200px}.max-w-\[300px\]{max-width:300px}.max-w-\[400px\]{max-width:400px}.max-w-\[500px\]{max-width:500px}.max-w-\[600px\]{max-width:600px}.max-w-\[800px\]{max-width:800px}.max-w-none{max-width:none}.max-w-screen-2xl{max-width:1536px}.max-w-screen-md{max-width:768px}.max-w-screen-sm{max-width:640px}.max-w-screen-xl{max-width:1280px}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.\!flex-none{flex:none!important}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.table-auto{table-layout:auto}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-0\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0\.5{--tw-translate-x:0.125rem}.translate-x-px{--tw-translate-x:1px}.scale-150,.translate-x-px{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x:1.5;--tw-scale-y:1.5}.scale-50{--tw-scale-x:.5;--tw-scale-y:.5}.scale-50,.scale-75{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x:.75;--tw-scale-y:.75}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-90,.scale-\[0\.65\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\[0\.65\]{--tw-scale-x:0.65;--tw-scale-y:0.65}.scale-\[200\%\]{--tw-scale-x:200%;--tw-scale-y:200%}.scale-\[200\%\],.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pingslow{0%{transform:scale(1);opacity:1}60%{transform:scale(1);opacity:1}90%{transform:scale(2);opacity:0}to{transform:scale(2);opacity:0}}.animate-pingslow{animation:pingslow 3s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulselight{30%{opacity:1}50%{opacity:.2}70%{opacity:1}}.animate-pulselight{animation:pulselight 3s cubic-bezier(.4,0,.6,1) infinite}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-14{gap:3.5rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-7{gap:1.75rem}.gap-8{gap:2rem}.gap-x-12{-moz-column-gap:3rem;column-gap:3rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-1{row-gap:.25rem}.gap-y-10{row-gap:2.5rem}.gap-y-12{row-gap:3rem}.gap-y-4{row-gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tr-lg{border-top-right-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-y-0{border-top-width:0;border-bottom-width:0}.border-b{border-bottom-width:1px}.border-b-3{border-bottom-width:3px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-none{border-style:none}.border-accent-900{--tw-border-opacity:1;border-color:rgb(5 107 36/var(--tw-border-opacity))}.border-amber-500\/50{border-color:rgba(245,158,11,.5)}.border-amber-800\/30{border-color:rgba(146,64,14,.3)}.border-blue-500\/50{border-color:rgba(59,130,246,.5)}.border-gray-100{--tw-border-opacity:1;border-color:hsl(210 16.7% 97.6%/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:hsl(209 13.3% 95.3%/var(--tw-border-opacity))}.border-gray-200\/50{border-color:rgba(241,243,245,.5)}.border-gray-300{--tw-border-opacity:1;border-color:hsl(209 12.2% 93.2%/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:hsl(208 11.7% 91.1%/var(--tw-border-opacity))}.border-gray-400\/70{border-color:rgba(230,232,235,.7)}.border-gray-500{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity:1;border-color:hsl(207 11.1% 85.9%/var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity:1;border-color:hsl(206 5.8% 52.3%/var(--tw-border-opacity))}.border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.border-green-500\/50{border-color:rgba(34,197,94,.5)}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.border-green-800\/30{border-color:rgba(22,101,52,.3)}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.border-red-800\/30{border-color:rgba(153,27,27,.3)}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-accent-200{--tw-bg-opacity:1;background-color:rgb(213 242 222/var(--tw-bg-opacity))}.bg-accent-800{--tw-bg-opacity:1;background-color:rgb(5 135 45/var(--tw-bg-opacity))}.bg-amber-300{--tw-bg-opacity:1;background-color:rgb(252 211 77/var(--tw-bg-opacity))}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity))}.bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.bg-amber-700{--tw-bg-opacity:1;background-color:rgb(180 83 9/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\/70{background-color:rgba(0,0,0,.7)}.bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:hsl(210 16.7% 97.6%/var(--tw-bg-opacity))}.bg-gray-1000{--tw-bg-opacity:1;background-color:hsl(206 6% 43.5%/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:hsl(209 13.3% 95.3%/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:hsl(209 12.2% 93.2%/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:hsl(208 11.3% 88.9%/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:hsl(205 10.7% 78%/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:hsl(206 5.8% 52.3%/var(--tw-bg-opacity))}.bg-green-100\/20{background-color:rgba(220,252,231,.2)}.bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.bg-slate-400{--tw-bg-opacity:1;background-color:rgb(148 163 184/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-white{--tw-gradient-from:#fff;--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-white\/95{--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.95),var(--tw-gradient-to)}.to-white{--tw-gradient-to:#fff}.fill-gray-1100{fill:#11181c}.fill-gray-600{fill:#d7dbdf}.fill-white{fill:#fff}.object-cover{-o-object-fit:cover;object-fit:cover}.\!p-1{padding:.25rem!important}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[5px\]{padding:5px}.p-px{padding:1px}.\!px-1{padding-left:.25rem!important;padding-right:.25rem!important}.\!px-3{padding-left:.75rem!important;padding-right:.75rem!important}.\!py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\[5px\]{padding-left:5px;padding-right:5px}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-40{padding-top:10rem;padding-bottom:10rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-px{padding-top:1px;padding-bottom:1px}.\!pl-0{padding-left:0!important}.\!pl-2{padding-left:.5rem!important}.\!pr-4{padding-right:1rem!important}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-6{padding-bottom:1.5rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-5{padding-right:1.25rem}.pr-6{padding-right:1.5rem}.pr-9{padding-right:2.25rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-40{padding-top:10rem}.pt-6{padding-top:1.5rem}.pt-\[10px\]{padding-top:10px}.text-left{text-align:left}.text-center{text-align:center}.text-end{text-align:end}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.font-sans{font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-xxs{font-size:.625rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.proportional-nums{--tw-numeric-spacing:proportional-nums}.proportional-nums,.tabular-nums{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing:tabular-nums}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.\!text-accent-1100{--tw-text-opacity:1!important;color:rgb(1 31 10/var(--tw-text-opacity))!important}.\!text-amber-600{--tw-text-opacity:1!important;color:rgb(217 119 6/var(--tw-text-opacity))!important}.\!text-emerald-700{--tw-text-opacity:1!important;color:rgb(4 120 87/var(--tw-text-opacity))!important}.\!text-gray-1000{--tw-text-opacity:1!important;color:hsl(206 6% 43.5%/var(--tw-text-opacity))!important}.\!text-gray-1100{--tw-text-opacity:1!important;color:hsl(206 24% 9%/var(--tw-text-opacity))!important}.\!text-gray-700{--tw-text-opacity:1!important;color:hsl(205 10.7% 78%/var(--tw-text-opacity))!important}.\!text-red-700{--tw-text-opacity:1!important;color:rgb(185 28 28/var(--tw-text-opacity))!important}.\!text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.text-accent-1100{--tw-text-opacity:1;color:rgb(1 31 10/var(--tw-text-opacity))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}.text-emerald-700{--tw-text-opacity:1;color:rgb(4 120 87/var(--tw-text-opacity))}.text-gray-1000{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.text-gray-1100{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.text-gray-1100\/30{color:rgba(17,24,28,.3)}.text-gray-700{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:hsl(206 5.8% 52.3%/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.decoration-accent-900{text-decoration-color:#056b24}.decoration-accentdark-900{text-decoration-color:#069f35}.decoration-gray-1100{text-decoration-color:#11181c}.decoration-2{text-decoration-thickness:2px}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-95{opacity:.95}.opacity-\[10\%\]{opacity:10%}.mix-blend-difference{mix-blend-mode:difference}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-border-b{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-border-b{--tw-shadow:inset 0 -1px rgba(0,0,0,.3);--tw-shadow-colored:inset 0 -1px var(--tw-shadow-color)}.shadow-border-y{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.shadow-border-y,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.\!shadow-amber-500{--tw-shadow-color:#f59e0b!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-blue-500{--tw-shadow-color:#3b82f6!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-blue-900{--tw-shadow-color:#1e3a8a!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-green-500{--tw-shadow-color:#22c55e!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-red-500{--tw-shadow-color:#ef4444!important;--tw-shadow:var(--tw-shadow-colored)!important}.shadow-gray-400{--tw-shadow-color:#e6e8eb;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.blur{--tw-blur:blur(8px)}.blur,.grayscale{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale:grayscale(100%)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.scrollbar-thin.overflow-x-hidden,.scrollbar.overflow-x-hidden{overflow-x:hidden}#__next,#root,body,html{height:100vh;overflow:hidden}.placeholder\:text-gray-600::-moz-placeholder{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.placeholder\:text-gray-600::placeholder{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.placeholder\:text-gray-700::-moz-placeholder{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.placeholder\:text-gray-700::placeholder{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-1\/2:before{content:var(--tw-content);left:50%}.before\:top-1\/2:before{content:var(--tw-content);top:50%}.after\:block:after{content:var(--tw-content);display:block}.after\:h-2:after{content:var(--tw-content);height:.5rem}.after\:h-4:after{content:var(--tw-content);height:1rem}.after\:w-2:after{content:var(--tw-content);width:.5rem}.after\:w-4:after{content:var(--tw-content);width:1rem}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-green-600:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.after\:content-\[\"\"\]:after{--tw-content:"";content:var(--tw-content)}.first\:border-t-0:first-child{border-top-width:0}.first\:border-none:first-child{border-style:none}.first\:shadow-border-tlb:first-child{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset 1px 0 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset 1px 0 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.first\:shadow-border-tlb:first-child,.last\:shadow-border-trb:last-child{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.last\:shadow-border-trb:last-child{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset -1px 0 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset -1px 0 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.only\:left-0:only-child{left:0}.last-of-type\:border-b:last-of-type{border-bottom-width:1px}.autofill\:bg-blue-100:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.autofill\:bg-blue-100:autofill{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.autofill\:bg-white:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.autofill\:bg-white:autofill{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.autofill\:text-fill-gray-1100:-webkit-autofill{-webkit-text-fill-color:#11181c}.autofill\:text-fill-gray-1100:autofill{-webkit-text-fill-color:#11181c}.autofill\:shadow-fill-white:-webkit-autofill{--tw-shadow:0 0 0 9999px #fff inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.autofill\:shadow-fill-white:autofill{--tw-shadow:0 0 0 9999px #fff inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.autofill\:placeholder\:text-fill-gray-700:autofill::-moz-placeholder{-webkit-text-fill-color:#c1c8cd}.autofill\:placeholder\:text-fill-gray-700:-webkit-autofill::placeholder{-webkit-text-fill-color:#c1c8cd}.autofill\:placeholder\:text-fill-gray-700:autofill::placeholder{-webkit-text-fill-color:#c1c8cd}.focus-within\:z-10:focus-within{z-index:10}.focus-within\:ring:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:z-10:focus{z-index:10}.focus\:bg-gray-300:focus{--tw-bg-opacity:1;background-color:hsl(209 12.2% 93.2%/var(--tw-bg-opacity))}.focus\:text-gray-900:focus{--tw-text-opacity:1;color:hsl(206 5.8% 52.3%/var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.enabled\:border-green-800\/30:enabled{border-color:rgba(22,101,52,.3)}.enabled\:bg-green-700:enabled{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-auto:disabled{cursor:auto}.disabled\:cursor-default:disabled{cursor:default}.disabled\:border-amber-600\/50:disabled{border-color:rgba(217,119,6,.5)}.disabled\:border-green-600\/50:disabled{border-color:rgba(22,163,74,.5)}.disabled\:border-red-600\/50:disabled{border-color:rgba(220,38,38,.5)}.disabled\:bg-amber-700\/70:disabled{background-color:rgba(180,83,9,.7)}.disabled\:bg-gray-200:disabled{--tw-bg-opacity:1;background-color:hsl(209 13.3% 95.3%/var(--tw-bg-opacity))}.disabled\:bg-green-700\/70:disabled{background-color:rgba(21,128,61,.7)}.disabled\:bg-red-700\/70:disabled{background-color:rgba(185,28,28,.7)}.disabled\:text-gray-400:disabled{--tw-text-opacity:1;color:hsl(208 11.7% 91.1%/var(--tw-text-opacity))}.disabled\:text-gray-600:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.disabled\:text-white\/50:disabled{color:hsla(0,0%,100%,.5)}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:flex{display:flex}.group\/segments:hover .group-hover\/segments\:hidden{display:none}.group:hover .group-hover\:bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-blue-400{--tw-bg-opacity:1;background-color:rgb(96 165 250/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-blue-500\/10{background-color:rgba(59,130,246,.1)}.group:hover .group-hover\:bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.group:hover .group-hover\:opacity-100{opacity:1}.aria-selected\:bg-gray-400[aria-selected=true]{--tw-bg-opacity:1;background-color:hsl(208 11.7% 91.1%/var(--tw-bg-opacity))}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:top-1[data-side=bottom]{top:.25rem}.data-\[side\=left\]\:right-1[data-side=left]{right:.25rem}.data-\[side\=right\]\:left-1[data-side=right]{left:.25rem}.data-\[side\=top\]\:bottom-1[data-side=top]{bottom:.25rem}.data-\[side\=bottom\]\:origin-top[data-side=bottom]{transform-origin:top}.data-\[side\=left\]\:origin-right[data-side=left]{transform-origin:right}.data-\[side\=right\]\:origin-left[data-side=right]{transform-origin:left}.data-\[side\=top\]\:origin-bottom[data-side=top]{transform-origin:bottom}.data-\[state\=checked\]\:translate-x-\[20px\][data-state=checked]{--tw-translate-x:20px}.data-\[state\=checked\]\:translate-x-\[20px\][data-state=checked],.data-\[state\=checked\]\:translate-x-\[9px\][data-state=checked]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-\[9px\][data-state=checked]{--tw-translate-x:9px}@keyframes enterFromRight{0%{opacity:0;transform:translateX(200px)}to{opacity:1;transform:translateX(0)}}.data-\[motion\=from-end\]\:animate-enterFromRight[data-motion=from-end]{animation:enterFromRight .25s ease}@keyframes enterFromLeft{0%{opacity:0;transform:translateX(-200px)}to{opacity:1;transform:translateX(0)}}.data-\[motion\=from-start\]\:animate-enterFromLeft[data-motion=from-start]{animation:enterFromLeft .25s ease}@keyframes exitToRight{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(200px)}}.data-\[motion\=to-end\]\:animate-exitToRight[data-motion=to-end]{animation:exitToRight .25s ease}@keyframes exitToLeft{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-200px)}}.data-\[motion\=to-start\]\:animate-exitToLeft[data-motion=to-start]{animation:exitToLeft .25s ease}.data-\[state\=active\]\:border-green-600[data-state=active]{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.data-\[disabled\]\:text-gray-700[data-disabled]{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.data-\[state\=active\]\:text-accent-1100[data-state=active]{--tw-text-opacity:1;color:rgb(1 31 10/var(--tw-text-opacity))}.data-\[state\=checked\]\:text-gray-1100[data-state=checked]{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.enabled\:data-\[state\=checked\]\:bg-green-600[data-state=checked]:enabled{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.enabled\:data-\[state\=checked\]\:ring[data-state=checked]:enabled{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.enabled\:data-\[state\=checked\]\:ring-green-600[data-state=checked]:enabled{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.disabled\:data-\[state\=checked\]\:bg-green-600\/50[data-state=checked]:disabled{background-color:rgba(22,163,74,.5)}.disabled\:data-\[state\=checked\]\:ring-green-600\/50[data-state=checked]:disabled{--tw-ring-color:rgba(22,163,74,.5)}.group[data-selected=true] .group-data-\[selected\=true\]\:text-gray-1000{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.open\:text-gray-1100[data-state=open]{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.open\:opacity-10[data-state=open]{opacity:.1}.hover\:z-10:hover{z-index:10}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-amber-800\/50:hover{border-color:rgba(146,64,14,.5)}.hover\:border-gray-500:hover{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.hover\:border-green-500:hover{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.hover\:border-green-700:hover{--tw-border-opacity:1;border-color:rgb(21 128 61/var(--tw-border-opacity))}.hover\:border-green-800\/50:hover{border-color:rgba(22,101,52,.5)}.hover\:border-red-800\/50:hover{border-color:rgba(153,27,27,.5)}.hover\:bg-amber-800\/90:hover{background-color:rgba(146,64,14,.9)}.hover\:bg-black\/20:hover{background-color:rgba(0,0,0,.2)}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.hover\:bg-green-100\/20:hover{background-color:rgba(220,252,231,.2)}.hover\:bg-green-800\/90:hover{background-color:rgba(22,101,52,.9)}.hover\:bg-red-800\/90:hover{background-color:rgba(153,27,27,.9)}.hover\:text-gray-1000:hover{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.hover\:text-gray-1100:hover{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.hover\:text-gray-1100\/50:hover{color:rgba(17,24,28,.5)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-60:hover{opacity:.6}.hover\:opacity-90:hover{opacity:.9}.hover\:shadow:hover{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.enabled\:hover\:border-amber-800\/50:hover:enabled{border-color:rgba(146,64,14,.5)}.enabled\:hover\:border-gray-500:hover:enabled{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.enabled\:hover\:border-gray-700:hover:enabled{--tw-border-opacity:1;border-color:hsl(205 10.7% 78%/var(--tw-border-opacity))}.enabled\:hover\:border-green-800\/50:hover:enabled{border-color:rgba(22,101,52,.5)}.enabled\:hover\:border-red-800\/50:hover:enabled{border-color:rgba(153,27,27,.5)}.enabled\:hover\:bg-amber-800\/90:hover:enabled{background-color:rgba(146,64,14,.9)}.enabled\:hover\:bg-gray-50:hover:enabled{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.enabled\:hover\:bg-green-800\/90:hover:enabled{background-color:rgba(22,101,52,.9)}.enabled\:hover\:bg-red-800\/90:hover:enabled{background-color:rgba(153,27,27,.9)}.enabled\:hover\:text-gray-1100:hover:enabled{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}@media (prefers-reduced-motion:reduce){.motion-reduce\:hidden{display:none}}.dark .dark\:border-accentdark-900{--tw-border-opacity:1;border-color:rgb(6 159 53/var(--tw-border-opacity))}.dark .dark\:border-amber-500\/50{border-color:rgba(245,158,11,.5)}.dark .dark\:border-amber-600\/70{border-color:rgba(217,119,6,.7)}.dark .dark\:border-blue-500\/50{border-color:rgba(59,130,246,.5)}.dark .dark\:border-gray-800{--tw-border-opacity:1;border-color:hsl(206 6% 56.1%/var(--tw-border-opacity))}.dark .dark\:border-graydark-100{--tw-border-opacity:1;border-color:hsl(195 7.1% 11%/var(--tw-border-opacity))}.dark .dark\:border-graydark-200{--tw-border-opacity:1;border-color:hsl(197 6.8% 13.6%/var(--tw-border-opacity))}.dark .dark\:border-graydark-300{--tw-border-opacity:1;border-color:hsl(198 6.6% 15.8%/var(--tw-border-opacity))}.dark .dark\:border-graydark-400{--tw-border-opacity:1;border-color:hsl(199 6.4% 17.9%/var(--tw-border-opacity))}.dark .dark\:border-graydark-400\/50{border-color:rgba(43,47,49,.5)}.dark .dark\:border-graydark-400\/70{border-color:rgba(43,47,49,.7)}.dark .dark\:border-graydark-500{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .dark\:border-graydark-600{--tw-border-opacity:1;border-color:hsl(203 6% 24.3%/var(--tw-border-opacity))}.dark .dark\:border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity))}.dark .dark\:border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .dark\:border-green-500\/50{border-color:rgba(34,197,94,.5)}.dark .dark\:border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .dark\:border-green-600\/70{border-color:rgba(22,163,74,.7)}.dark .dark\:border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.dark .dark\:border-red-600\/70{border-color:rgba(220,38,38,.7)}.dark .dark\:border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.dark .dark\:border-white\/10{border-color:hsla(0,0%,100%,.1)}.dark .dark\:bg-accentdark-200{--tw-bg-opacity:1;background-color:rgb(6 40 17/var(--tw-bg-opacity))}.dark .dark\:bg-accentdark-800{--tw-bg-opacity:1;background-color:rgb(5 135 45/var(--tw-bg-opacity))}.dark .dark\:bg-amber-200{--tw-bg-opacity:1;background-color:rgb(253 230 138/var(--tw-bg-opacity))}.dark .dark\:bg-amber-300{--tw-bg-opacity:1;background-color:rgb(252 211 77/var(--tw-bg-opacity))}.dark .dark\:bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity))}.dark .dark\:bg-amber-700{--tw-bg-opacity:1;background-color:rgb(180 83 9/var(--tw-bg-opacity))}.dark .dark\:bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.dark .dark\:bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-100{--tw-bg-opacity:1;background-color:hsl(195 7.1% 11%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-200{--tw-bg-opacity:1;background-color:hsl(197 6.8% 13.6%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-300{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-400{--tw-bg-opacity:1;background-color:hsl(199 6.4% 17.9%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-50{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-500{--tw-bg-opacity:1;background-color:hsl(201 6.2% 20.5%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-700{--tw-bg-opacity:1;background-color:hsl(207 5.6% 31.6%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-800{--tw-bg-opacity:1;background-color:hsl(206 6% 43.9%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-900{--tw-bg-opacity:1;background-color:hsl(206 5.2% 49.5%/var(--tw-bg-opacity))}.dark .dark\:bg-green-100\/20{background-color:rgba(220,252,231,.2)}.dark .dark\:bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.dark .dark\:bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .dark\:bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.dark .dark\:bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.dark .dark\:bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.dark .dark\:bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}.dark .dark\:bg-transparent{background-color:transparent}.dark .dark\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.dark .dark\:from-graydark-50{--tw-gradient-from:#151718;--tw-gradient-to:rgba(21,23,24,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark .dark\:via-graydark-100\/95{--tw-gradient-to:rgba(26,29,30,0);--tw-gradient-stops:var(--tw-gradient-from),rgba(26,29,30,.95),var(--tw-gradient-to)}.dark .dark\:to-graydark-50{--tw-gradient-to:#151718}.dark .dark\:fill-graydark-50{fill:#151718}.dark .dark\:fill-graydark-600{fill:#3a3f42}.dark .dark\:fill-white{fill:#fff}.dark .dark\:\!text-accentdark-1100{--tw-text-opacity:1!important;color:rgb(217 244 225/var(--tw-text-opacity))!important}.dark .dark\:\!text-amber-500{--tw-text-opacity:1!important;color:rgb(245 158 11/var(--tw-text-opacity))!important}.dark .dark\:\!text-emerald-500{--tw-text-opacity:1!important;color:rgb(16 185 129/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-1000{--tw-text-opacity:1!important;color:hsl(206 6% 63%/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-50{--tw-text-opacity:1!important;color:hsl(200 7% 8.8%/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-700{--tw-text-opacity:1!important;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))!important}.dark .dark\:\!text-red-400{--tw-text-opacity:1!important;color:rgb(248 113 113/var(--tw-text-opacity))!important}.dark .dark\:\!text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.dark .dark\:text-accentdark-1100{--tw-text-opacity:1;color:rgb(217 244 225/var(--tw-text-opacity))}.dark .dark\:text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity))}.dark .dark\:text-emerald-500{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity))}.dark .dark\:text-gray-1100{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.dark .dark\:text-gray-300{--tw-text-opacity:1;color:hsl(209 12.2% 93.2%/var(--tw-text-opacity))}.dark .dark\:text-graydark-1000{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .dark\:text-graydark-1100{--tw-text-opacity:1;color:hsl(210 6% 93%/var(--tw-text-opacity))}.dark .dark\:text-graydark-50{--tw-text-opacity:1;color:hsl(200 7% 8.8%/var(--tw-text-opacity))}.dark .dark\:text-graydark-700{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .dark\:text-graydark-800{--tw-text-opacity:1;color:hsl(206 6% 43.9%/var(--tw-text-opacity))}.dark .dark\:text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.dark .dark\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:text-white\/30{color:hsla(0,0%,100%,.3)}.dark .dark\:decoration-accentdark-900{text-decoration-color:#069f35}.dark .dark\:decoration-gray-500{text-decoration-color:#dfe3e6}.dark .dark\:opacity-10{opacity:.1}.dark .dark\:opacity-50{opacity:.5}.dark .dark\:mix-blend-difference{mix-blend-mode:difference}.dark .dark\:\!shadow-amber-500{--tw-shadow-color:#f59e0b!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-blue-200{--tw-shadow-color:#bfdbfe!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-blue-400{--tw-shadow-color:#60a5fa!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-green-400{--tw-shadow-color:#4ade80!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-red-400{--tw-shadow-color:#f87171!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:shadow-graydark-300{--tw-shadow-color:#26292b;--tw-shadow:var(--tw-shadow-colored)}.dark .dark\:ring-blue-200{--tw-ring-opacity:1;--tw-ring-color:rgb(191 219 254/var(--tw-ring-opacity))}.dark .dark\:invert-\[0\.9\]{--tw-invert:invert(0.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.dark .placeholder\:dark\:text-graydark-500::-moz-placeholder{--tw-text-opacity:1;color:hsl(201 6.2% 20.5%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-500::placeholder{--tw-text-opacity:1;color:hsl(201 6.2% 20.5%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-700::-moz-placeholder{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-700::placeholder{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .after\:dark\:bg-green-500:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-blue-800:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-blue-800:autofill{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-graydark-50:-webkit-autofill{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-graydark-50:autofill{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .autofill\:dark\:text-fill-white:-webkit-autofill{-webkit-text-fill-color:#fff}.dark .autofill\:dark\:text-fill-white:autofill{-webkit-text-fill-color:#fff}.dark .autofill\:dark\:shadow-fill-graydark-50:-webkit-autofill{--tw-shadow:0 0 0 9999px #151718 inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark .autofill\:dark\:shadow-fill-graydark-50:autofill{--tw-shadow:0 0 0 9999px #151718 inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:autofill::-moz-placeholder{-webkit-text-fill-color:#4c5155}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:-webkit-autofill::placeholder{-webkit-text-fill-color:#4c5155}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:autofill::placeholder{-webkit-text-fill-color:#4c5155}.dark .dark\:focus\:bg-graydark-300:focus{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:focus\:text-white:focus{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .enabled\:dark\:border-green-600\/70:enabled{border-color:rgba(22,163,74,.7)}.dark .enabled\:dark\:bg-green-700:enabled{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .disabled\:dark\:border-amber-500\/30:disabled{border-color:rgba(245,158,11,.3)}.dark .disabled\:dark\:border-green-500\/30:disabled{border-color:rgba(34,197,94,.3)}.dark .disabled\:dark\:border-red-500\/30:disabled{border-color:rgba(239,68,68,.3)}.dark .disabled\:dark\:bg-amber-600\/70:disabled{background-color:rgba(217,119,6,.7)}.dark .disabled\:dark\:bg-graydark-200:disabled{--tw-bg-opacity:1;background-color:hsl(197 6.8% 13.6%/var(--tw-bg-opacity))}.dark .disabled\:dark\:bg-green-600\/70:disabled{background-color:rgba(22,163,74,.7)}.dark .disabled\:dark\:bg-red-600\/70:disabled{background-color:rgba(220,38,38,.7)}.dark .disabled\:dark\:text-graydark-400:disabled{--tw-text-opacity:1;color:hsl(199 6.4% 17.9%/var(--tw-text-opacity))}.dark .disabled\:dark\:text-graydark-700:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .disabled\:dark\:text-white\/50:disabled{color:hsla(0,0%,100%,.5)}.dark .group:hover .dark\:group-hover\:bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-blue-200\/10{background-color:rgba(191,219,254,.1)}.dark .group:hover .dark\:group-hover\:bg-blue-400{--tw-bg-opacity:1;background-color:rgb(96 165 250/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-graydark-800{--tw-bg-opacity:1;background-color:hsl(206 6% 43.9%/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.dark .aria-selected\:dark\:bg-graydark-500[aria-selected=true]{--tw-bg-opacity:1;background-color:hsl(201 6.2% 20.5%/var(--tw-bg-opacity))}.dark .data-\[state\=active\]\:dark\:border-green-500[data-state=active]{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .dark\:data-\[disabled\]\:text-graydark-700[data-disabled]{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .data-\[state\=active\]\:dark\:text-accentdark-1100[data-state=active]{--tw-text-opacity:1;color:rgb(217 244 225/var(--tw-text-opacity))}.dark .data-\[state\=checked\]\:dark\:text-white[data-state=checked]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:enabled\:data-\[state\=checked\]\:bg-green-500[data-state=checked]:enabled{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .dark\:enabled\:data-\[state\=checked\]\:ring-green-500[data-state=checked]:enabled{--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity))}.dark .dark\:disabled\:data-\[state\=checked\]\:bg-green-500\/50[data-state=checked]:disabled{background-color:rgba(34,197,94,.5)}.dark .dark\:disabled\:data-\[state\=checked\]\:ring-green-500\/50[data-state=checked]:disabled{--tw-ring-color:rgba(34,197,94,.5)}.dark .group[data-selected=true] .dark\:group-data-\[selected\=true\]\:text-graydark-1000{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .open\:dark\:text-white[data-state=open]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:open\:opacity-20[data-state=open]{opacity:.2}.dark .hover\:dark\:border-amber-600:hover{--tw-border-opacity:1;border-color:rgb(217 119 6/var(--tw-border-opacity))}.dark .hover\:dark\:border-graydark-500:hover{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .hover\:dark\:border-green-500:hover{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .hover\:dark\:border-green-600:hover{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .hover\:dark\:border-red-600:hover{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.dark .dark\:hover\:bg-amber-700\/90:hover{background-color:rgba(180,83,9,.9)}.dark .dark\:hover\:bg-graydark-300:hover{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:hover\:bg-green-700\/90:hover{background-color:rgba(21,128,61,.9)}.dark .dark\:hover\:bg-red-700\/90:hover{background-color:rgba(185,28,28,.9)}.dark .hover\:dark\:bg-green-100\/20:hover{background-color:rgba(220,252,231,.2)}.dark .hover\:dark\:text-graydark-1000:hover{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .hover\:dark\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .hover\:dark\:text-white\/50:hover{color:hsla(0,0%,100%,.5)}.dark .enabled\:hover\:dark\:border-amber-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(217 119 6/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-graydark-500:hover:enabled{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-graydark-600:hover:enabled{--tw-border-opacity:1;border-color:hsl(203 6% 24.3%/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-green-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-red-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.dark .dark\:enabled\:hover\:bg-amber-700\/90:hover:enabled{background-color:rgba(180,83,9,.9)}.dark .dark\:enabled\:hover\:bg-graydark-300:hover:enabled{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:enabled\:hover\:bg-green-700\/90:hover:enabled{background-color:rgba(21,128,61,.9)}.dark .dark\:enabled\:hover\:bg-red-700\/90:hover:enabled{background-color:rgba(185,28,28,.9)}.dark .enabled\:hover\:dark\:text-white:hover:enabled{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}@media (min-width:640px){.sm\:flex{display:flex}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:768px){.md\:block{display:block}.md\:h-\[50px\]{height:50px}.md\:items-start{align-items:flex-start}.md\:gap-3{gap:.75rem}.md\:gap-y-14{row-gap:3.5rem}.md\:px-10{padding-left:2.5rem;padding-right:2.5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\:text-xs{font-size:.75rem;line-height:1rem}.md\:leading-relaxed{line-height:1.625}}@media (min-width:1024px){.lg\:block{display:block}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-16{padding-left:4rem;padding-right:4rem}}@media (min-width:1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}.\[\&\+\*\]\:\!pl-0+*{padding-left:0!important}.\[\&\:nth-child\(2\)\]\:animation-delay-500:nth-child(2){animation-delay:.5s}.\[\&\:nth-child\(3\)\]\:animation-delay-1000:nth-child(3){animation-delay:1s}.\[\&\>\*\:first-child\]\:rounded-l>:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.\[\&\>\*\:first-child\]\:border-l>:first-child{border-left-width:1px}.\[\&\>\*\:last-child\]\:rounded-r>:last-child{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.\[\&\>\*\:last-child\]\:border-r>:last-child{border-right-width:1px}.\[\&\>\*\]\:rounded-none>*{border-radius:0}.\[\&\>\*\]\:border-l>*{border-left-width:1px}.\[\&\>\*\]\:border-r-0>*{border-right-width:0}.\[\&\>div\]\:\!block>div{display:block!important}.\[\&\>div\]\:\!h-full>div{height:100%!important}.\[\&\>div\]\:flex-1>div{flex:1 1 0%}.\[\&\>div\]\:overflow-hidden>div{overflow:hidden}.\[\&\>p\]\:\!py-0>p{padding-top:0!important;padding-bottom:0!important}.\[\&\>select\:disabled\]\:text-gray-600>select:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.dark .\[\&\>select\:disabled\]\:dark\:text-graydark-700>select:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.\[\&\>svg\]\:-mx-0\.5>svg{margin-left:-.125rem;margin-right:-.125rem}.\[\&\>svg\]\:opacity-50>svg{opacity:.5}.hover\:\[\&\>svg\]\:opacity-100>svg:hover{opacity:1}.\[\&\[href\]\]\:border-green-800\/30[href]{border-color:rgba(22,101,52,.3)}.\[\&\[href\]\]\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.\[\&\[href\]\]\:hover\:border-green-800\/50:hover[href]{border-color:rgba(22,101,52,.5)}.\[\&\[href\]\]\:hover\:bg-green-800\/90:hover[href]{background-color:rgba(22,101,52,.9)}.dark .\[\&\[href\]\]\:dark\:border-green-600\/70[href]{border-color:rgba(22,163,74,.7)}.dark .\[\&\[href\]\]\:dark\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:\[\&\[href\]\]\:hover\:bg-green-700\/90:hover[href]{background-color:rgba(21,128,61,.9)}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1eff7769948a8c71-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7a86083759ce0787-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1fece7a471d60ffe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/94e828afa3939314-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/dcb90225ac4215b0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/21379288e5de0162-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/20a0263cfae743ff-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/a06cddabfd904d07-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/c05280b20c19cff6-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ab3a7057d2c303a3-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e7a1d48695380088-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/7a514966b24fa042-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/f34054e2970d3793-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/ee809f9c8637ac35-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/416dffb3eaba61b5-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/b2613c7882fb9dad-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/00b652cd5acf4d1a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/318cd1ba86719051-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/26570e7eecd756a7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/6ad357e49f846140-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c1dadd6c99c0900a-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/9fb8e434756a520e-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/b83e9714dba3a7b2-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/7729f7b3bc7fa987-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/69dc0d8a22bc572a-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/d752111844abddfa-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/7fe39de114f984a0-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/6c817bbad1cfd130-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/bc7cd6cbdb8771c6-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/1b708ab38c59f94d-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/ed08f0e693ce6a65-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/0be44b380099e057-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f4ebea4f2ece3dbe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f7e3cefe6d9fda21-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/26d0ad28b444f0fb-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/d704a8fea67672dc-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/3ce4c920cddd7002-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1027f57de01c0b24-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/23313877d5d6ff1b-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/00417edf5e44282b-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/228a95c965c5f90b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/97c8a55b2cb1421c-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/86d6d32ab6c2e21d-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/07304b90e9b5ca40-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/54f3953b28e50f98-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a40ccebe730e6b34-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/01ec6e01ff4830ae-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/34d8d58b783ee6bb-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/3763ada0a9bb1988-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/787b0654beea4191-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/2c3c1f0838a71cfb-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/47bcda1e7b1ac8be-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/bed76354f405346d-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c70aa70a01eaecff-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/24cfcc12c15b03b9-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/29ffcd3df3f1cb91-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/3cef106cd115e360-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/a0c95037dd5c9387-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/e889cd181219a83f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/6d6d0e4a023f9f33-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/0148c4ca3456ea72-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/4184cf5f191b83db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/28cea0425961ab58-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/b4c759cba7a5f011-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/de555e6bc944c11a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/791334aa8b2b679f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/a2411df190893074-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/60d74363e715829c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/eb37c9fe4776ea97-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc381c5935034aa5-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f565fad065ab4cf3-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f9946f06d70a1b5b-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/d1f5f89450ecd78c-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ebcf93a611f94ec0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ec50b434b597bc61-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/6be22a85bef54f08-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/9491f41002d34397-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/afba6ba6bf9157e8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/be843c5b0882ad66-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/67aea609c6135b3b-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/09b62d668edb05d1-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/10446295ae7f2657-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/b6ecfd81ed9f83c9-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/08404bcfb1dae67a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_Fallback_829fdc;src:local("Arial");ascent-override:101.44%;descent-override:27.22%;line-gap-override:0.00%;size-adjust:101.04%}.__className_829fdc{font-family:__IBM_Plex_Sans_829fdc,__IBM_Plex_Sans_Fallback_829fdc}.__variable_829fdc{--font-sans:"__IBM_Plex_Sans_829fdc","__IBM_Plex_Sans_Fallback_829fdc"}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/43f58290d48b3e4f-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/f7b042c81aa9dac9-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/5f52e8aafa6d55e1-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7c8d3f8a7910b37f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/c91ca22957702d7a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e31631a967fe3515-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e46a860e09e79916-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/2d1700372dfaaa94-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/27834a3ea5568a72-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ba1ff977fd46651f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/aa5329918e5352b7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/3546445dbedfe8e0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/a329a67c917d0d83-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/32ef35af86a1df18-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/42c2d543c4ca0ff8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/4acd96e66b7a15d8-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c00fdcaa534cf51c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9b64de7575b01f6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/e05a5a1d4048d7df-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9387c470a117487-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5b5f10d1030076fd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/66b34bbb56a523d8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/62e8d71f5f62d0a9-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/4f5bd398699bdcf0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5873ad5359ff35c9-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/a08baca5e17c57be-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b8347de82b1bd9a8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/99163ae90df46b27-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b9432a067aca8720-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/c3f479ae50d16e35-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/d4eddeab410cd094-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1674d377433d7de6-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/f65f080f6ad9aa76-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/7a44530bd17b4a4c-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/37e85b36581a02ab-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/1e0eb4a7325b5d14-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/136ae42764b7e0db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/b17f4305e2f0c22a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a7f64a09f7737545-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/98bcafdc59ee6d65-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/ce562f20499ad585-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/57699fff66d5761c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/e490b1ecb6589d48-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/524be5e37a616f9b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c690761783507ad4-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/5a7dbca54c2fc4dd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/d4e99c199dab3055-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/9ae1ac821a4debaf-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/ec1b1cbc512bc43e-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/463cef7d4672ba68-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/ebec2867f40f78ec-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/d607327a37a507c7-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/2e1b830192b7974a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3aa27b2eb5f698f7-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3478b6abef19b3b3-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/b6f2eee8808a2bb4-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc2003170c651d45-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/d43ef4503e5571d0-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/3281a323710833ec-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/684e5662d94c69e1-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/97b12f7b815cdf76-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/19fc70611c7ee6d5-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/01721b474504e7d6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/3ccf24bed29cbb82-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/be2416cbb012c256-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/7524e759b2d52ce2-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/83feb047e42e457a-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/40bfb1458eaec497-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/8ea51a27e153ec43-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/035951aefad7b653-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_Fallback_355ef5;src:local("Arial");ascent-override:75.41%;descent-override:20.23%;line-gap-override:0.00%;size-adjust:135.93%}.__className_355ef5{font-family:__IBM_Plex_Mono_355ef5,__IBM_Plex_Mono_Fallback_355ef5}.__variable_355ef5{--font-mono:"__IBM_Plex_Mono_355ef5","__IBM_Plex_Mono_Fallback_355ef5"} \ No newline at end of file diff --git a/hostd/assets/_next/static/css/8808e5416d145794.css b/hostd/assets/_next/static/css/8808e5416d145794.css deleted file mode 100644 index c45847c91..000000000 --- a/hostd/assets/_next/static/css/8808e5416d145794.css +++ /dev/null @@ -1,3 +0,0 @@ -/* -! tailwindcss v3.2.7 | MIT License | https://tailwindcss.com -*/*,:after,:before{box-sizing:border-box;border:0 solid #f1f3f5}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--font-mono),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#e6e8eb}input::placeholder,textarea::placeholder{opacity:1;color:#e6e8eb}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*{scrollbar-color:auto;scrollbar-width:auto}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.fixed{position:fixed}.\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-2{bottom:-.5rem}.-bottom-2\.5{bottom:-.625rem}.-left-7{left:-1.75rem}.-right-\[2px\]{right:-2px}.-right-\[9px\]{right:-9px}.-top-0{top:0}.-top-0\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-\[100px\]{top:-100px}.-top-\[5px\]{top:-5px}.-top-px{top:-1px}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.bottom-\[100\%\]{bottom:100%}.left-0{left:0}.left-1{left:.25rem}.left-1\.5{left:.375rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-5{right:1.25rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-1{top:.25rem}.top-3{top:.75rem}.top-3\.5{top:.875rem}.top-\[-0\.5px\]{top:-.5px}.top-\[-30px\]{top:-30px}.top-\[-50px\]{top:-50px}.top-\[100\%\]{top:100%}.top-\[200px\]{top:200px}.top-px{top:1px}.-z-10{z-index:-10}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.-m-4{margin:-1rem}.m-0{margin:0}.m-px{margin:1px}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-0{margin-bottom:0}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-28{height:7rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-\[100px\]{height:100px}.h-\[120px\]{height:120px}.h-\[14px\]{height:14px}.h-\[200px\]{height:200px}.h-\[200vh\]{height:200vh}.h-\[20px\]{height:20px}.h-\[210px\]{height:210px}.h-\[300px\]{height:300px}.h-\[30px\]{height:30px}.h-\[400px\]{height:400px}.h-\[50px\]{height:50px}.h-\[80vh\]{height:80vh}.h-\[84px\]{height:84px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[400px\]{max-height:400px}.max-h-\[600px\]{max-height:600px}.max-h-\[70vh\]{max-height:70vh}.min-h-\[80px\]{min-height:80px}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[100px\]{width:100px}.w-\[120px\]{width:120px}.w-\[140px\]{width:140px}.w-\[150px\]{width:150px}.w-\[160px\]{width:160px}.w-\[200px\]{width:200px}.w-\[200vw\]{width:200vw}.w-\[210px\]{width:210px}.w-\[220px\]{width:220px}.w-\[250px\]{width:250px}.w-\[300px\]{width:300px}.w-\[400px\]{width:400px}.w-\[450px\]{width:450px}.w-\[500px\]{width:500px}.w-\[50px\]{width:50px}.w-\[60px\]{width:60px}.w-\[75px\]{width:75px}.w-\[800px\]{width:800px}.w-\[90\%\]{width:90%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-\[200px\]{min-width:200px}.min-w-\[250px\]{min-width:250px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.\!max-w-none{max-width:none!important}.max-w-\[1145px\]{max-width:1145px}.max-w-\[200px\]{max-width:200px}.max-w-\[300px\]{max-width:300px}.max-w-\[400px\]{max-width:400px}.max-w-\[500px\]{max-width:500px}.max-w-\[600px\]{max-width:600px}.max-w-\[800px\]{max-width:800px}.max-w-none{max-width:none}.max-w-screen-2xl{max-width:1536px}.max-w-screen-md{max-width:768px}.max-w-screen-sm{max-width:640px}.max-w-screen-xl{max-width:1280px}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.\!flex-none{flex:none!important}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.table-auto{table-layout:auto}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-0\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0\.5{--tw-translate-x:0.125rem}.translate-x-px{--tw-translate-x:1px}.scale-150,.translate-x-px{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x:1.5;--tw-scale-y:1.5}.scale-50{--tw-scale-x:.5;--tw-scale-y:.5}.scale-50,.scale-75{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x:.75;--tw-scale-y:.75}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-90,.scale-\[0\.65\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\[0\.65\]{--tw-scale-x:0.65;--tw-scale-y:0.65}.scale-\[200\%\]{--tw-scale-x:200%;--tw-scale-y:200%}.scale-\[200\%\],.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pingslow{0%{transform:scale(1);opacity:1}60%{transform:scale(1);opacity:1}90%{transform:scale(2);opacity:0}to{transform:scale(2);opacity:0}}.animate-pingslow{animation:pingslow 3s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulselight{30%{opacity:1}50%{opacity:.2}70%{opacity:1}}.animate-pulselight{animation:pulselight 3s cubic-bezier(.4,0,.6,1) infinite}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-14{gap:3.5rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-7{gap:1.75rem}.gap-8{gap:2rem}.gap-x-12{-moz-column-gap:3rem;column-gap:3rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-1{row-gap:.25rem}.gap-y-10{row-gap:2.5rem}.gap-y-12{row-gap:3rem}.gap-y-4{row-gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.\!rounded-none{border-radius:0!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tr-lg{border-top-right-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-y-0{border-top-width:0;border-bottom-width:0}.border-b{border-bottom-width:1px}.border-b-3{border-bottom-width:3px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-none{border-style:none}.border-accent-900{--tw-border-opacity:1;border-color:rgb(5 107 36/var(--tw-border-opacity))}.border-amber-500\/50{border-color:rgba(245,158,11,.5)}.border-amber-800\/30{border-color:rgba(146,64,14,.3)}.border-blue-500\/50{border-color:rgba(59,130,246,.5)}.border-gray-100{--tw-border-opacity:1;border-color:hsl(210 16.7% 97.6%/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:hsl(209 13.3% 95.3%/var(--tw-border-opacity))}.border-gray-200\/50{border-color:rgba(241,243,245,.5)}.border-gray-300{--tw-border-opacity:1;border-color:hsl(209 12.2% 93.2%/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:hsl(208 11.7% 91.1%/var(--tw-border-opacity))}.border-gray-400\/70{border-color:rgba(230,232,235,.7)}.border-gray-500{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity:1;border-color:hsl(207 11.1% 85.9%/var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity:1;border-color:hsl(206 5.8% 52.3%/var(--tw-border-opacity))}.border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.border-green-500\/50{border-color:rgba(34,197,94,.5)}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.border-green-800\/30{border-color:rgba(22,101,52,.3)}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.border-red-800\/30{border-color:rgba(153,27,27,.3)}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-accent-200{--tw-bg-opacity:1;background-color:rgb(213 242 222/var(--tw-bg-opacity))}.bg-accent-800{--tw-bg-opacity:1;background-color:rgb(5 135 45/var(--tw-bg-opacity))}.bg-amber-300{--tw-bg-opacity:1;background-color:rgb(252 211 77/var(--tw-bg-opacity))}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity))}.bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.bg-amber-700{--tw-bg-opacity:1;background-color:rgb(180 83 9/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\/70{background-color:rgba(0,0,0,.7)}.bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:hsl(210 16.7% 97.6%/var(--tw-bg-opacity))}.bg-gray-1000{--tw-bg-opacity:1;background-color:hsl(206 6% 43.5%/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:hsl(209 13.3% 95.3%/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:hsl(209 12.2% 93.2%/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:hsl(208 11.3% 88.9%/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:hsl(205 10.7% 78%/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:hsl(206 5.8% 52.3%/var(--tw-bg-opacity))}.bg-green-100\/20{background-color:rgba(220,252,231,.2)}.bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.bg-slate-400{--tw-bg-opacity:1;background-color:rgb(148 163 184/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-white{--tw-gradient-from:#fff;--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-white\/95{--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.95),var(--tw-gradient-to)}.to-white{--tw-gradient-to:#fff}.fill-gray-1100{fill:#11181c}.fill-gray-600{fill:#d7dbdf}.fill-white{fill:#fff}.object-cover{-o-object-fit:cover;object-fit:cover}.\!p-1{padding:.25rem!important}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[5px\]{padding:5px}.p-px{padding:1px}.\!px-1{padding-left:.25rem!important;padding-right:.25rem!important}.\!px-3{padding-left:.75rem!important;padding-right:.75rem!important}.\!py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\[5px\]{padding-left:5px;padding-right:5px}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-40{padding-top:10rem;padding-bottom:10rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-px{padding-top:1px;padding-bottom:1px}.\!pl-0{padding-left:0!important}.\!pl-2{padding-left:.5rem!important}.\!pr-4{padding-right:1rem!important}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-6{padding-bottom:1.5rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-5{padding-right:1.25rem}.pr-6{padding-right:1.5rem}.pr-9{padding-right:2.25rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-40{padding-top:10rem}.pt-6{padding-top:1.5rem}.pt-\[10px\]{padding-top:10px}.text-left{text-align:left}.text-center{text-align:center}.text-end{text-align:end}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.font-sans{font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-xxs{font-size:.625rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.proportional-nums{--tw-numeric-spacing:proportional-nums}.proportional-nums,.tabular-nums{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing:tabular-nums}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.\!text-accent-1100{--tw-text-opacity:1!important;color:rgb(1 31 10/var(--tw-text-opacity))!important}.\!text-amber-600{--tw-text-opacity:1!important;color:rgb(217 119 6/var(--tw-text-opacity))!important}.\!text-emerald-700{--tw-text-opacity:1!important;color:rgb(4 120 87/var(--tw-text-opacity))!important}.\!text-gray-1000{--tw-text-opacity:1!important;color:hsl(206 6% 43.5%/var(--tw-text-opacity))!important}.\!text-gray-1100{--tw-text-opacity:1!important;color:hsl(206 24% 9%/var(--tw-text-opacity))!important}.\!text-gray-700{--tw-text-opacity:1!important;color:hsl(205 10.7% 78%/var(--tw-text-opacity))!important}.\!text-red-700{--tw-text-opacity:1!important;color:rgb(185 28 28/var(--tw-text-opacity))!important}.\!text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.text-accent-1100{--tw-text-opacity:1;color:rgb(1 31 10/var(--tw-text-opacity))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}.text-emerald-700{--tw-text-opacity:1;color:rgb(4 120 87/var(--tw-text-opacity))}.text-gray-1000{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.text-gray-1100{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.text-gray-1100\/30{color:rgba(17,24,28,.3)}.text-gray-700{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:hsl(206 5.8% 52.3%/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.decoration-accent-900{text-decoration-color:#056b24}.decoration-accentdark-900{text-decoration-color:#069f35}.decoration-gray-1100{text-decoration-color:#11181c}.decoration-2{text-decoration-thickness:2px}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-95{opacity:.95}.opacity-\[10\%\]{opacity:10%}.mix-blend-difference{mix-blend-mode:difference}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-border-b{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-border-b{--tw-shadow:inset 0 -1px rgba(0,0,0,.3);--tw-shadow-colored:inset 0 -1px var(--tw-shadow-color)}.shadow-border-y{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.shadow-border-y,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.\!shadow-amber-500{--tw-shadow-color:#f59e0b!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-blue-500{--tw-shadow-color:#3b82f6!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-blue-900{--tw-shadow-color:#1e3a8a!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-green-500{--tw-shadow-color:#22c55e!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-red-500{--tw-shadow-color:#ef4444!important;--tw-shadow:var(--tw-shadow-colored)!important}.shadow-gray-400{--tw-shadow-color:#e6e8eb;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.blur{--tw-blur:blur(8px)}.blur,.grayscale{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale:grayscale(100%)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.scrollbar-thin.overflow-x-hidden,.scrollbar.overflow-x-hidden{overflow-x:hidden}#__next,#root,body,html{height:100vh;overflow:hidden}.placeholder\:text-gray-600::-moz-placeholder{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.placeholder\:text-gray-600::placeholder{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.placeholder\:text-gray-700::-moz-placeholder{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.placeholder\:text-gray-700::placeholder{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-1\/2:before{content:var(--tw-content);left:50%}.before\:top-1\/2:before{content:var(--tw-content);top:50%}.after\:block:after{content:var(--tw-content);display:block}.after\:h-2:after{content:var(--tw-content);height:.5rem}.after\:h-4:after{content:var(--tw-content);height:1rem}.after\:w-2:after{content:var(--tw-content);width:.5rem}.after\:w-4:after{content:var(--tw-content);width:1rem}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-green-600:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.after\:content-\[\"\"\]:after{--tw-content:"";content:var(--tw-content)}.first\:border-t-0:first-child{border-top-width:0}.first\:border-none:first-child{border-style:none}.first\:shadow-border-tlb:first-child{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset 1px 0 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset 1px 0 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.first\:shadow-border-tlb:first-child,.last\:shadow-border-trb:last-child{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.last\:shadow-border-trb:last-child{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset -1px 0 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset -1px 0 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.only\:left-0:only-child{left:0}.last-of-type\:border-b:last-of-type{border-bottom-width:1px}.autofill\:bg-blue-100:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.autofill\:bg-blue-100:autofill{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.autofill\:bg-white:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.autofill\:bg-white:autofill{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.autofill\:text-fill-gray-1100:-webkit-autofill{-webkit-text-fill-color:#11181c}.autofill\:text-fill-gray-1100:autofill{-webkit-text-fill-color:#11181c}.autofill\:shadow-fill-white:-webkit-autofill{--tw-shadow:0 0 0 9999px #fff inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.autofill\:shadow-fill-white:autofill{--tw-shadow:0 0 0 9999px #fff inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.autofill\:placeholder\:text-fill-gray-700:autofill::-moz-placeholder{-webkit-text-fill-color:#c1c8cd}.autofill\:placeholder\:text-fill-gray-700:-webkit-autofill::placeholder{-webkit-text-fill-color:#c1c8cd}.autofill\:placeholder\:text-fill-gray-700:autofill::placeholder{-webkit-text-fill-color:#c1c8cd}.focus-within\:z-10:focus-within{z-index:10}.focus-within\:ring:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:z-10:focus{z-index:10}.focus\:bg-gray-300:focus{--tw-bg-opacity:1;background-color:hsl(209 12.2% 93.2%/var(--tw-bg-opacity))}.focus\:text-gray-900:focus{--tw-text-opacity:1;color:hsl(206 5.8% 52.3%/var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.enabled\:border-green-800\/30:enabled{border-color:rgba(22,101,52,.3)}.enabled\:bg-green-700:enabled{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-auto:disabled{cursor:auto}.disabled\:cursor-default:disabled{cursor:default}.disabled\:border-amber-600\/50:disabled{border-color:rgba(217,119,6,.5)}.disabled\:border-green-600\/50:disabled{border-color:rgba(22,163,74,.5)}.disabled\:border-red-600\/50:disabled{border-color:rgba(220,38,38,.5)}.disabled\:bg-amber-700\/70:disabled{background-color:rgba(180,83,9,.7)}.disabled\:bg-gray-200:disabled{--tw-bg-opacity:1;background-color:hsl(209 13.3% 95.3%/var(--tw-bg-opacity))}.disabled\:bg-green-700\/70:disabled{background-color:rgba(21,128,61,.7)}.disabled\:bg-red-700\/70:disabled{background-color:rgba(185,28,28,.7)}.disabled\:text-gray-400:disabled{--tw-text-opacity:1;color:hsl(208 11.7% 91.1%/var(--tw-text-opacity))}.disabled\:text-gray-600:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.disabled\:text-white\/50:disabled{color:hsla(0,0%,100%,.5)}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:flex{display:flex}.group\/segments:hover .group-hover\/segments\:hidden{display:none}.group:hover .group-hover\:bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-blue-400{--tw-bg-opacity:1;background-color:rgb(96 165 250/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-blue-500\/10{background-color:rgba(59,130,246,.1)}.group:hover .group-hover\:bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.group:hover .group-hover\:opacity-100{opacity:1}.aria-selected\:bg-gray-400[aria-selected=true]{--tw-bg-opacity:1;background-color:hsl(208 11.7% 91.1%/var(--tw-bg-opacity))}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:top-1[data-side=bottom]{top:.25rem}.data-\[side\=left\]\:right-1[data-side=left]{right:.25rem}.data-\[side\=right\]\:left-1[data-side=right]{left:.25rem}.data-\[side\=top\]\:bottom-1[data-side=top]{bottom:.25rem}.data-\[side\=bottom\]\:origin-top[data-side=bottom]{transform-origin:top}.data-\[side\=left\]\:origin-right[data-side=left]{transform-origin:right}.data-\[side\=right\]\:origin-left[data-side=right]{transform-origin:left}.data-\[side\=top\]\:origin-bottom[data-side=top]{transform-origin:bottom}.data-\[state\=checked\]\:translate-x-\[20px\][data-state=checked]{--tw-translate-x:20px}.data-\[state\=checked\]\:translate-x-\[20px\][data-state=checked],.data-\[state\=checked\]\:translate-x-\[9px\][data-state=checked]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-\[9px\][data-state=checked]{--tw-translate-x:9px}@keyframes enterFromRight{0%{opacity:0;transform:translateX(200px)}to{opacity:1;transform:translateX(0)}}.data-\[motion\=from-end\]\:animate-enterFromRight[data-motion=from-end]{animation:enterFromRight .25s ease}@keyframes enterFromLeft{0%{opacity:0;transform:translateX(-200px)}to{opacity:1;transform:translateX(0)}}.data-\[motion\=from-start\]\:animate-enterFromLeft[data-motion=from-start]{animation:enterFromLeft .25s ease}@keyframes exitToRight{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(200px)}}.data-\[motion\=to-end\]\:animate-exitToRight[data-motion=to-end]{animation:exitToRight .25s ease}@keyframes exitToLeft{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-200px)}}.data-\[motion\=to-start\]\:animate-exitToLeft[data-motion=to-start]{animation:exitToLeft .25s ease}.data-\[state\=active\]\:border-green-600[data-state=active]{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.data-\[disabled\]\:text-gray-700[data-disabled]{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.data-\[state\=active\]\:text-accent-1100[data-state=active]{--tw-text-opacity:1;color:rgb(1 31 10/var(--tw-text-opacity))}.data-\[state\=checked\]\:text-gray-1100[data-state=checked]{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.enabled\:data-\[state\=checked\]\:bg-green-600[data-state=checked]:enabled{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.enabled\:data-\[state\=checked\]\:ring[data-state=checked]:enabled{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.enabled\:data-\[state\=checked\]\:ring-green-600[data-state=checked]:enabled{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.disabled\:data-\[state\=checked\]\:bg-green-600\/50[data-state=checked]:disabled{background-color:rgba(22,163,74,.5)}.disabled\:data-\[state\=checked\]\:ring-green-600\/50[data-state=checked]:disabled{--tw-ring-color:rgba(22,163,74,.5)}.group[data-selected=true] .group-data-\[selected\=true\]\:text-gray-1000{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.open\:text-gray-1100[data-state=open]{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.open\:opacity-10[data-state=open]{opacity:.1}.hover\:z-10:hover{z-index:10}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-amber-800\/50:hover{border-color:rgba(146,64,14,.5)}.hover\:border-gray-500:hover{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.hover\:border-green-500:hover{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.hover\:border-green-700:hover{--tw-border-opacity:1;border-color:rgb(21 128 61/var(--tw-border-opacity))}.hover\:border-green-800\/50:hover{border-color:rgba(22,101,52,.5)}.hover\:border-red-800\/50:hover{border-color:rgba(153,27,27,.5)}.hover\:bg-amber-800\/90:hover{background-color:rgba(146,64,14,.9)}.hover\:bg-black\/20:hover{background-color:rgba(0,0,0,.2)}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.hover\:bg-green-100\/20:hover{background-color:rgba(220,252,231,.2)}.hover\:bg-green-800\/90:hover{background-color:rgba(22,101,52,.9)}.hover\:bg-red-800\/90:hover{background-color:rgba(153,27,27,.9)}.hover\:text-gray-1000:hover{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.hover\:text-gray-1100:hover{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.hover\:text-gray-1100\/50:hover{color:rgba(17,24,28,.5)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-60:hover{opacity:.6}.hover\:opacity-90:hover{opacity:.9}.hover\:shadow:hover{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.enabled\:hover\:border-amber-800\/50:hover:enabled{border-color:rgba(146,64,14,.5)}.enabled\:hover\:border-gray-500:hover:enabled{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.enabled\:hover\:border-gray-700:hover:enabled{--tw-border-opacity:1;border-color:hsl(205 10.7% 78%/var(--tw-border-opacity))}.enabled\:hover\:border-green-800\/50:hover:enabled{border-color:rgba(22,101,52,.5)}.enabled\:hover\:border-red-800\/50:hover:enabled{border-color:rgba(153,27,27,.5)}.enabled\:hover\:bg-amber-800\/90:hover:enabled{background-color:rgba(146,64,14,.9)}.enabled\:hover\:bg-gray-50:hover:enabled{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.enabled\:hover\:bg-green-800\/90:hover:enabled{background-color:rgba(22,101,52,.9)}.enabled\:hover\:bg-red-800\/90:hover:enabled{background-color:rgba(153,27,27,.9)}.enabled\:hover\:text-gray-1100:hover:enabled{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}@media (prefers-reduced-motion:reduce){.motion-reduce\:hidden{display:none}}.dark .dark\:border-accentdark-900{--tw-border-opacity:1;border-color:rgb(6 159 53/var(--tw-border-opacity))}.dark .dark\:border-amber-500\/50{border-color:rgba(245,158,11,.5)}.dark .dark\:border-amber-600\/70{border-color:rgba(217,119,6,.7)}.dark .dark\:border-blue-500\/50{border-color:rgba(59,130,246,.5)}.dark .dark\:border-gray-800{--tw-border-opacity:1;border-color:hsl(206 6% 56.1%/var(--tw-border-opacity))}.dark .dark\:border-graydark-100{--tw-border-opacity:1;border-color:hsl(195 7.1% 11%/var(--tw-border-opacity))}.dark .dark\:border-graydark-200{--tw-border-opacity:1;border-color:hsl(197 6.8% 13.6%/var(--tw-border-opacity))}.dark .dark\:border-graydark-300{--tw-border-opacity:1;border-color:hsl(198 6.6% 15.8%/var(--tw-border-opacity))}.dark .dark\:border-graydark-400{--tw-border-opacity:1;border-color:hsl(199 6.4% 17.9%/var(--tw-border-opacity))}.dark .dark\:border-graydark-400\/50{border-color:rgba(43,47,49,.5)}.dark .dark\:border-graydark-400\/70{border-color:rgba(43,47,49,.7)}.dark .dark\:border-graydark-500{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .dark\:border-graydark-600{--tw-border-opacity:1;border-color:hsl(203 6% 24.3%/var(--tw-border-opacity))}.dark .dark\:border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity))}.dark .dark\:border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .dark\:border-green-500\/50{border-color:rgba(34,197,94,.5)}.dark .dark\:border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .dark\:border-green-600\/70{border-color:rgba(22,163,74,.7)}.dark .dark\:border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.dark .dark\:border-red-600\/70{border-color:rgba(220,38,38,.7)}.dark .dark\:border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.dark .dark\:border-white\/10{border-color:hsla(0,0%,100%,.1)}.dark .dark\:bg-accentdark-200{--tw-bg-opacity:1;background-color:rgb(6 40 17/var(--tw-bg-opacity))}.dark .dark\:bg-accentdark-800{--tw-bg-opacity:1;background-color:rgb(5 135 45/var(--tw-bg-opacity))}.dark .dark\:bg-amber-200{--tw-bg-opacity:1;background-color:rgb(253 230 138/var(--tw-bg-opacity))}.dark .dark\:bg-amber-300{--tw-bg-opacity:1;background-color:rgb(252 211 77/var(--tw-bg-opacity))}.dark .dark\:bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity))}.dark .dark\:bg-amber-700{--tw-bg-opacity:1;background-color:rgb(180 83 9/var(--tw-bg-opacity))}.dark .dark\:bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.dark .dark\:bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-100{--tw-bg-opacity:1;background-color:hsl(195 7.1% 11%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-200{--tw-bg-opacity:1;background-color:hsl(197 6.8% 13.6%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-300{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-400{--tw-bg-opacity:1;background-color:hsl(199 6.4% 17.9%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-50{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-500{--tw-bg-opacity:1;background-color:hsl(201 6.2% 20.5%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-700{--tw-bg-opacity:1;background-color:hsl(207 5.6% 31.6%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-800{--tw-bg-opacity:1;background-color:hsl(206 6% 43.9%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-900{--tw-bg-opacity:1;background-color:hsl(206 5.2% 49.5%/var(--tw-bg-opacity))}.dark .dark\:bg-green-100\/20{background-color:rgba(220,252,231,.2)}.dark .dark\:bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.dark .dark\:bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .dark\:bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.dark .dark\:bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.dark .dark\:bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.dark .dark\:bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}.dark .dark\:bg-transparent{background-color:transparent}.dark .dark\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.dark .dark\:from-graydark-50{--tw-gradient-from:#151718;--tw-gradient-to:rgba(21,23,24,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark .dark\:via-graydark-100\/95{--tw-gradient-to:rgba(26,29,30,0);--tw-gradient-stops:var(--tw-gradient-from),rgba(26,29,30,.95),var(--tw-gradient-to)}.dark .dark\:to-graydark-50{--tw-gradient-to:#151718}.dark .dark\:fill-graydark-50{fill:#151718}.dark .dark\:fill-graydark-600{fill:#3a3f42}.dark .dark\:fill-white{fill:#fff}.dark .dark\:\!text-accentdark-1100{--tw-text-opacity:1!important;color:rgb(217 244 225/var(--tw-text-opacity))!important}.dark .dark\:\!text-amber-500{--tw-text-opacity:1!important;color:rgb(245 158 11/var(--tw-text-opacity))!important}.dark .dark\:\!text-emerald-500{--tw-text-opacity:1!important;color:rgb(16 185 129/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-1000{--tw-text-opacity:1!important;color:hsl(206 6% 63%/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-50{--tw-text-opacity:1!important;color:hsl(200 7% 8.8%/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-700{--tw-text-opacity:1!important;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))!important}.dark .dark\:\!text-red-400{--tw-text-opacity:1!important;color:rgb(248 113 113/var(--tw-text-opacity))!important}.dark .dark\:\!text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.dark .dark\:text-accentdark-1100{--tw-text-opacity:1;color:rgb(217 244 225/var(--tw-text-opacity))}.dark .dark\:text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity))}.dark .dark\:text-emerald-500{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity))}.dark .dark\:text-gray-1100{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.dark .dark\:text-gray-300{--tw-text-opacity:1;color:hsl(209 12.2% 93.2%/var(--tw-text-opacity))}.dark .dark\:text-graydark-1000{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .dark\:text-graydark-1100{--tw-text-opacity:1;color:hsl(210 6% 93%/var(--tw-text-opacity))}.dark .dark\:text-graydark-50{--tw-text-opacity:1;color:hsl(200 7% 8.8%/var(--tw-text-opacity))}.dark .dark\:text-graydark-700{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .dark\:text-graydark-800{--tw-text-opacity:1;color:hsl(206 6% 43.9%/var(--tw-text-opacity))}.dark .dark\:text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.dark .dark\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:text-white\/30{color:hsla(0,0%,100%,.3)}.dark .dark\:decoration-accentdark-900{text-decoration-color:#069f35}.dark .dark\:decoration-gray-500{text-decoration-color:#dfe3e6}.dark .dark\:opacity-10{opacity:.1}.dark .dark\:opacity-50{opacity:.5}.dark .dark\:mix-blend-difference{mix-blend-mode:difference}.dark .dark\:\!shadow-amber-500{--tw-shadow-color:#f59e0b!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-blue-200{--tw-shadow-color:#bfdbfe!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-blue-400{--tw-shadow-color:#60a5fa!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-green-400{--tw-shadow-color:#4ade80!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-red-400{--tw-shadow-color:#f87171!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:shadow-graydark-300{--tw-shadow-color:#26292b;--tw-shadow:var(--tw-shadow-colored)}.dark .dark\:ring-blue-200{--tw-ring-opacity:1;--tw-ring-color:rgb(191 219 254/var(--tw-ring-opacity))}.dark .dark\:brightness-0{--tw-brightness:brightness(0)}.dark .dark\:brightness-0,.dark .dark\:invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.dark .dark\:invert{--tw-invert:invert(100%)}.dark .dark\:invert-\[0\.9\]{--tw-invert:invert(0.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.dark .placeholder\:dark\:text-graydark-500::-moz-placeholder{--tw-text-opacity:1;color:hsl(201 6.2% 20.5%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-500::placeholder{--tw-text-opacity:1;color:hsl(201 6.2% 20.5%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-700::-moz-placeholder{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-700::placeholder{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .after\:dark\:bg-green-500:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-blue-800:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-blue-800:autofill{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-graydark-50:-webkit-autofill{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-graydark-50:autofill{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .autofill\:dark\:text-fill-white:-webkit-autofill{-webkit-text-fill-color:#fff}.dark .autofill\:dark\:text-fill-white:autofill{-webkit-text-fill-color:#fff}.dark .autofill\:dark\:shadow-fill-graydark-50:-webkit-autofill{--tw-shadow:0 0 0 9999px #151718 inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark .autofill\:dark\:shadow-fill-graydark-50:autofill{--tw-shadow:0 0 0 9999px #151718 inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:autofill::-moz-placeholder{-webkit-text-fill-color:#4c5155}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:-webkit-autofill::placeholder{-webkit-text-fill-color:#4c5155}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:autofill::placeholder{-webkit-text-fill-color:#4c5155}.dark .dark\:focus\:bg-graydark-300:focus{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:focus\:text-white:focus{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .enabled\:dark\:border-green-600\/70:enabled{border-color:rgba(22,163,74,.7)}.dark .enabled\:dark\:bg-green-700:enabled{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .disabled\:dark\:border-amber-500\/30:disabled{border-color:rgba(245,158,11,.3)}.dark .disabled\:dark\:border-green-500\/30:disabled{border-color:rgba(34,197,94,.3)}.dark .disabled\:dark\:border-red-500\/30:disabled{border-color:rgba(239,68,68,.3)}.dark .disabled\:dark\:bg-amber-600\/70:disabled{background-color:rgba(217,119,6,.7)}.dark .disabled\:dark\:bg-graydark-200:disabled{--tw-bg-opacity:1;background-color:hsl(197 6.8% 13.6%/var(--tw-bg-opacity))}.dark .disabled\:dark\:bg-green-600\/70:disabled{background-color:rgba(22,163,74,.7)}.dark .disabled\:dark\:bg-red-600\/70:disabled{background-color:rgba(220,38,38,.7)}.dark .disabled\:dark\:text-graydark-400:disabled{--tw-text-opacity:1;color:hsl(199 6.4% 17.9%/var(--tw-text-opacity))}.dark .disabled\:dark\:text-graydark-700:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .disabled\:dark\:text-white\/50:disabled{color:hsla(0,0%,100%,.5)}.dark .group:hover .dark\:group-hover\:bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-blue-200\/10{background-color:rgba(191,219,254,.1)}.dark .group:hover .dark\:group-hover\:bg-blue-400{--tw-bg-opacity:1;background-color:rgb(96 165 250/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-graydark-800{--tw-bg-opacity:1;background-color:hsl(206 6% 43.9%/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.dark .aria-selected\:dark\:bg-graydark-500[aria-selected=true]{--tw-bg-opacity:1;background-color:hsl(201 6.2% 20.5%/var(--tw-bg-opacity))}.dark .data-\[state\=active\]\:dark\:border-green-500[data-state=active]{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .dark\:data-\[disabled\]\:text-graydark-700[data-disabled]{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .data-\[state\=active\]\:dark\:text-accentdark-1100[data-state=active]{--tw-text-opacity:1;color:rgb(217 244 225/var(--tw-text-opacity))}.dark .data-\[state\=checked\]\:dark\:text-white[data-state=checked]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:enabled\:data-\[state\=checked\]\:bg-green-500[data-state=checked]:enabled{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .dark\:enabled\:data-\[state\=checked\]\:ring-green-500[data-state=checked]:enabled{--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity))}.dark .dark\:disabled\:data-\[state\=checked\]\:bg-green-500\/50[data-state=checked]:disabled{background-color:rgba(34,197,94,.5)}.dark .dark\:disabled\:data-\[state\=checked\]\:ring-green-500\/50[data-state=checked]:disabled{--tw-ring-color:rgba(34,197,94,.5)}.dark .group[data-selected=true] .dark\:group-data-\[selected\=true\]\:text-graydark-1000{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .open\:dark\:text-white[data-state=open]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:open\:opacity-20[data-state=open]{opacity:.2}.dark .hover\:dark\:border-amber-600:hover{--tw-border-opacity:1;border-color:rgb(217 119 6/var(--tw-border-opacity))}.dark .hover\:dark\:border-graydark-500:hover{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .hover\:dark\:border-green-500:hover{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .hover\:dark\:border-green-600:hover{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .hover\:dark\:border-red-600:hover{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.dark .dark\:hover\:bg-amber-700\/90:hover{background-color:rgba(180,83,9,.9)}.dark .dark\:hover\:bg-graydark-300:hover{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:hover\:bg-green-700\/90:hover{background-color:rgba(21,128,61,.9)}.dark .dark\:hover\:bg-red-700\/90:hover{background-color:rgba(185,28,28,.9)}.dark .hover\:dark\:bg-green-100\/20:hover{background-color:rgba(220,252,231,.2)}.dark .hover\:dark\:text-graydark-1000:hover{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .hover\:dark\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .hover\:dark\:text-white\/50:hover{color:hsla(0,0%,100%,.5)}.dark .enabled\:hover\:dark\:border-amber-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(217 119 6/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-graydark-500:hover:enabled{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-graydark-600:hover:enabled{--tw-border-opacity:1;border-color:hsl(203 6% 24.3%/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-green-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-red-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.dark .dark\:enabled\:hover\:bg-amber-700\/90:hover:enabled{background-color:rgba(180,83,9,.9)}.dark .dark\:enabled\:hover\:bg-graydark-300:hover:enabled{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:enabled\:hover\:bg-green-700\/90:hover:enabled{background-color:rgba(21,128,61,.9)}.dark .dark\:enabled\:hover\:bg-red-700\/90:hover:enabled{background-color:rgba(185,28,28,.9)}.dark .enabled\:hover\:dark\:text-white:hover:enabled{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}@media (min-width:640px){.sm\:flex{display:flex}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:768px){.md\:block{display:block}.md\:h-\[50px\]{height:50px}.md\:items-start{align-items:flex-start}.md\:gap-3{gap:.75rem}.md\:gap-y-14{row-gap:3.5rem}.md\:px-10{padding-left:2.5rem;padding-right:2.5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\:text-xs{font-size:.75rem;line-height:1rem}.md\:leading-relaxed{line-height:1.625}}@media (min-width:1024px){.lg\:block{display:block}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-16{padding-left:4rem;padding-right:4rem}}@media (min-width:1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}.\[\&\+\*\]\:\!pl-0+*{padding-left:0!important}.\[\&\:nth-child\(2\)\]\:animation-delay-500:nth-child(2){animation-delay:.5s}.\[\&\:nth-child\(3\)\]\:animation-delay-1000:nth-child(3){animation-delay:1s}.\[\&\>\*\:first-child\]\:rounded-l>:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.\[\&\>\*\:first-child\]\:border-l>:first-child{border-left-width:1px}.\[\&\>\*\:last-child\]\:rounded-r>:last-child{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.\[\&\>\*\:last-child\]\:border-r>:last-child{border-right-width:1px}.\[\&\>\*\]\:rounded-none>*{border-radius:0}.\[\&\>\*\]\:border-l>*{border-left-width:1px}.\[\&\>\*\]\:border-r-0>*{border-right-width:0}.\[\&\>div\]\:\!block>div{display:block!important}.\[\&\>div\]\:\!h-full>div{height:100%!important}.\[\&\>div\]\:flex-1>div{flex:1 1 0%}.\[\&\>div\]\:overflow-hidden>div{overflow:hidden}.\[\&\>p\]\:\!py-0>p{padding-top:0!important;padding-bottom:0!important}.\[\&\>select\:disabled\]\:text-gray-600>select:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.dark .\[\&\>select\:disabled\]\:dark\:text-graydark-700>select:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.\[\&\>svg\]\:-mx-0\.5>svg{margin-left:-.125rem;margin-right:-.125rem}.\[\&\>svg\]\:opacity-50>svg{opacity:.5}.hover\:\[\&\>svg\]\:opacity-100>svg:hover{opacity:1}.\[\&\[href\]\]\:border-green-800\/30[href]{border-color:rgba(22,101,52,.3)}.\[\&\[href\]\]\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.\[\&\[href\]\]\:hover\:border-green-800\/50:hover[href]{border-color:rgba(22,101,52,.5)}.\[\&\[href\]\]\:hover\:bg-green-800\/90:hover[href]{background-color:rgba(22,101,52,.9)}.dark .\[\&\[href\]\]\:dark\:border-green-600\/70[href]{border-color:rgba(22,163,74,.7)}.dark .\[\&\[href\]\]\:dark\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:\[\&\[href\]\]\:hover\:bg-green-700\/90:hover[href]{background-color:rgba(21,128,61,.9)}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1eff7769948a8c71-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7a86083759ce0787-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1fece7a471d60ffe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/94e828afa3939314-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/dcb90225ac4215b0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/21379288e5de0162-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/20a0263cfae743ff-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/a06cddabfd904d07-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/c05280b20c19cff6-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ab3a7057d2c303a3-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e7a1d48695380088-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/7a514966b24fa042-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/f34054e2970d3793-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/ee809f9c8637ac35-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/416dffb3eaba61b5-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/b2613c7882fb9dad-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/00b652cd5acf4d1a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/318cd1ba86719051-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/26570e7eecd756a7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/6ad357e49f846140-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c1dadd6c99c0900a-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/9fb8e434756a520e-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/b83e9714dba3a7b2-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/7729f7b3bc7fa987-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/69dc0d8a22bc572a-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/d752111844abddfa-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/7fe39de114f984a0-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/6c817bbad1cfd130-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/bc7cd6cbdb8771c6-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/1b708ab38c59f94d-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/ed08f0e693ce6a65-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/0be44b380099e057-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f4ebea4f2ece3dbe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f7e3cefe6d9fda21-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/26d0ad28b444f0fb-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/d704a8fea67672dc-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/3ce4c920cddd7002-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1027f57de01c0b24-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/23313877d5d6ff1b-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/00417edf5e44282b-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/228a95c965c5f90b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/97c8a55b2cb1421c-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/86d6d32ab6c2e21d-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/07304b90e9b5ca40-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/54f3953b28e50f98-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a40ccebe730e6b34-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/01ec6e01ff4830ae-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/34d8d58b783ee6bb-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/3763ada0a9bb1988-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/787b0654beea4191-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/2c3c1f0838a71cfb-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/47bcda1e7b1ac8be-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/bed76354f405346d-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c70aa70a01eaecff-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/24cfcc12c15b03b9-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/29ffcd3df3f1cb91-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/3cef106cd115e360-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/a0c95037dd5c9387-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/e889cd181219a83f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/6d6d0e4a023f9f33-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/0148c4ca3456ea72-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/4184cf5f191b83db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/28cea0425961ab58-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/b4c759cba7a5f011-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/de555e6bc944c11a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/791334aa8b2b679f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/a2411df190893074-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/60d74363e715829c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/eb37c9fe4776ea97-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc381c5935034aa5-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f565fad065ab4cf3-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f9946f06d70a1b5b-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/d1f5f89450ecd78c-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ebcf93a611f94ec0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ec50b434b597bc61-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/6be22a85bef54f08-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/9491f41002d34397-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/afba6ba6bf9157e8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/be843c5b0882ad66-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/67aea609c6135b3b-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/09b62d668edb05d1-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/10446295ae7f2657-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/b6ecfd81ed9f83c9-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/08404bcfb1dae67a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_Fallback_829fdc;src:local("Arial");ascent-override:101.44%;descent-override:27.22%;line-gap-override:0.00%;size-adjust:101.04%}.__className_829fdc{font-family:__IBM_Plex_Sans_829fdc,__IBM_Plex_Sans_Fallback_829fdc}.__variable_829fdc{--font-sans:"__IBM_Plex_Sans_829fdc","__IBM_Plex_Sans_Fallback_829fdc"}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/43f58290d48b3e4f-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/f7b042c81aa9dac9-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/5f52e8aafa6d55e1-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7c8d3f8a7910b37f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/c91ca22957702d7a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e31631a967fe3515-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e46a860e09e79916-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/2d1700372dfaaa94-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/27834a3ea5568a72-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ba1ff977fd46651f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/aa5329918e5352b7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/3546445dbedfe8e0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/a329a67c917d0d83-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/32ef35af86a1df18-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/42c2d543c4ca0ff8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/4acd96e66b7a15d8-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c00fdcaa534cf51c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9b64de7575b01f6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/e05a5a1d4048d7df-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9387c470a117487-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5b5f10d1030076fd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/66b34bbb56a523d8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/62e8d71f5f62d0a9-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/4f5bd398699bdcf0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5873ad5359ff35c9-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/a08baca5e17c57be-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b8347de82b1bd9a8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/99163ae90df46b27-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b9432a067aca8720-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/c3f479ae50d16e35-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/d4eddeab410cd094-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1674d377433d7de6-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/f65f080f6ad9aa76-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/7a44530bd17b4a4c-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/37e85b36581a02ab-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/1e0eb4a7325b5d14-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/136ae42764b7e0db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/b17f4305e2f0c22a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a7f64a09f7737545-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/98bcafdc59ee6d65-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/ce562f20499ad585-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/57699fff66d5761c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/e490b1ecb6589d48-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/524be5e37a616f9b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c690761783507ad4-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/5a7dbca54c2fc4dd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/d4e99c199dab3055-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/9ae1ac821a4debaf-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/ec1b1cbc512bc43e-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/463cef7d4672ba68-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/ebec2867f40f78ec-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/d607327a37a507c7-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/2e1b830192b7974a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3aa27b2eb5f698f7-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3478b6abef19b3b3-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/b6f2eee8808a2bb4-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc2003170c651d45-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/d43ef4503e5571d0-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/3281a323710833ec-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/684e5662d94c69e1-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/97b12f7b815cdf76-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/19fc70611c7ee6d5-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/01721b474504e7d6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/3ccf24bed29cbb82-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/be2416cbb012c256-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/7524e759b2d52ce2-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/83feb047e42e457a-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/40bfb1458eaec497-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/8ea51a27e153ec43-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/035951aefad7b653-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_Fallback_355ef5;src:local("Arial");ascent-override:75.41%;descent-override:20.23%;line-gap-override:0.00%;size-adjust:135.93%}.__className_355ef5{font-family:__IBM_Plex_Mono_355ef5,__IBM_Plex_Mono_Fallback_355ef5}.__variable_355ef5{--font-mono:"__IBM_Plex_Mono_355ef5","__IBM_Plex_Mono_Fallback_355ef5"} \ No newline at end of file diff --git a/hostd/assets/_next/static/media/wordmark.0504c8a6.svg b/hostd/assets/_next/static/media/wordmark.0504c8a6.svg deleted file mode 100644 index 83f34935b..000000000 --- a/hostd/assets/_next/static/media/wordmark.0504c8a6.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/hostd/assets/config.html b/hostd/assets/config.html index 7a0df400b..5f473f0e3 100644 --- a/hostd/assets/config.html +++ b/hostd/assets/config.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/contracts.html b/hostd/assets/contracts.html index 40fec595f..4e7042077 100644 --- a/hostd/assets/contracts.html +++ b/hostd/assets/contracts.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/index.html b/hostd/assets/index.html index 0e7bf257d..0a74281e4 100644 --- a/hostd/assets/index.html +++ b/hostd/assets/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/login.html b/hostd/assets/login.html index ee60bddc8..cfdd8f387 100644 --- a/hostd/assets/login.html +++ b/hostd/assets/login.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/node.html b/hostd/assets/node.html index 6776c1b01..ab7a463a6 100644 --- a/hostd/assets/node.html +++ b/hostd/assets/node.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/volumes.html b/hostd/assets/volumes.html index 03092dcb2..7861dc60c 100644 --- a/hostd/assets/volumes.html +++ b/hostd/assets/volumes.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/hostd/assets/wallet.html b/hostd/assets/wallet.html index 48f2efccd..790e155ef 100644 --- a/hostd/assets/wallet.html +++ b/hostd/assets/wallet.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/package-lock.json b/package-lock.json index fe67ab8f6..3427d3a77 100644 --- a/package-lock.json +++ b/package-lock.json @@ -450,6 +450,7 @@ "license": "MIT" }, "libs/units": { + "name": "@siafoundation/units", "version": "0.1.1", "license": "MIT", "dependencies": { diff --git a/renterd/assets/404.html b/renterd/assets/404.html index 6e6e1efb1..b369084be 100644 --- a/renterd/assets/404.html +++ b/renterd/assets/404.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/_next/static/LHrQ4UOYBW3OovzpYCNr0/_buildManifest.js b/renterd/assets/_next/static/LHrQ4UOYBW3OovzpYCNr0/_buildManifest.js deleted file mode 100644 index 4b22587c2..000000000 --- a/renterd/assets/_next/static/LHrQ4UOYBW3OovzpYCNr0/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-d2823954941fac65.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/config":["static/chunks/pages/config-21186dc4f4d1e9af.js"],"/contracts":["static/chunks/pages/contracts-68bb1875565d08a0.js"],"/files/[[...path]]":["static/chunks/pages/files/[[...path]]-c0058a266ee4f4f3.js"],"/hosts":["static/chunks/pages/hosts-a5f16681aad4148b.js"],"/login":["static/chunks/pages/login-8035d88be9bdfeb1.js"],"/node":["static/chunks/pages/node-1729d6d2e8d52dc7.js"],"/wallet":["static/chunks/pages/wallet-5475b19fd254600d.js"],sortedPages:["/","/_app","/_error","/config","/contracts","/files/[[...path]]","/hosts","/login","/node","/wallet"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/_app-15fd6810a53dc815.js b/renterd/assets/_next/static/chunks/pages/_app-77122054dfcd6459.js similarity index 57% rename from renterd/assets/_next/static/chunks/pages/_app-15fd6810a53dc815.js rename to renterd/assets/_next/static/chunks/pages/_app-77122054dfcd6459.js index 74ccc43e4..f92d0d730 100644 --- a/renterd/assets/_next/static/chunks/pages/_app-15fd6810a53dc815.js +++ b/renterd/assets/_next/static/chunks/pages/_app-77122054dfcd6459.js @@ -1,20 +1,20 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{44711:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizeObserver:function(){return q},ResizeObserverEntry:function(){return _},ResizeObserverSize:function(){return c}});var r,i,o,a=[],s="ResizeObserver loop completed with undelivered notifications.",l=function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:s}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=s),window.dispatchEvent(e)};(r=i||(i={})).BORDER_BOX="border-box",r.CONTENT_BOX="content-box",r.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var u=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,u(this)},d=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,u(this)}return e.prototype.toJSON=function(){return{x:this.x,y:this.y,top:this.top,right:this.right,bottom:this.bottom,left:this.left,width:this.width,height:this.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),f=function(e){return e instanceof SVGElement&&"getBBox"in e},h=function(e){if(f(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e.offsetWidth,o=e.offsetHeight;return!(i||o||e.getClientRects().length)},p=function(e){if(e instanceof Element)return!0;var t,n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},m=function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},v="undefined"!=typeof window?window:{},g=new WeakMap,y=/auto|scroll/,b=/^tb|vertical/,x=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),w=function(e){return parseFloat(e||"0")},j=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new c((n?t:e)||0,(n?e:t)||0)},E=u({devicePixelContentBoxSize:j(),borderBoxSize:j(),contentBoxSize:j(),contentRect:new d(0,0,0,0)}),k=function(e,t){if(void 0===t&&(t=!1),g.has(e)&&!t)return g.get(e);if(h(e))return g.set(e,E),E;var n=getComputedStyle(e),r=f(e)&&e.ownerSVGElement&&e.getBBox(),i=!x&&"border-box"===n.boxSizing,o=b.test(n.writingMode||""),a=!r&&y.test(n.overflowY||""),s=!r&&y.test(n.overflowX||""),l=r?0:w(n.paddingTop),c=r?0:w(n.paddingRight),p=r?0:w(n.paddingBottom),m=r?0:w(n.paddingLeft),v=r?0:w(n.borderTopWidth),k=r?0:w(n.borderRightWidth),S=r?0:w(n.borderBottomWidth),_=r?0:w(n.borderLeftWidth),C=m+c,O=l+p,M=_+k,T=v+S,A=s?e.offsetHeight-T-e.clientHeight:0,P=a?e.offsetWidth-M-e.clientWidth:0,N=r?r.width:w(n.width)-(i?C+M:0)-P,R=r?r.height:w(n.height)-(i?O+T:0)-A,D=N+C+P+M,L=R+O+A+T,F=u({devicePixelContentBoxSize:j(Math.round(N*devicePixelRatio),Math.round(R*devicePixelRatio),o),borderBoxSize:j(D,L,o),contentBoxSize:j(N,R,o),contentRect:new d(m,l,N,R)});return g.set(e,F),F},S=function(e,t,n){var r=k(e,n),o=r.borderBoxSize,a=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case i.DEVICE_PIXEL_CONTENT_BOX:return s;case i.BORDER_BOX:return o;default:return a}},_=function(e){var t=k(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=u([t.borderBoxSize]),this.contentBoxSize=u([t.contentBoxSize]),this.devicePixelContentBoxSize=u([t.devicePixelContentBoxSize])},C=function(e){if(h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},O=function(){var e=1/0,t=[];a.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new _(t.target),i=C(t.target);r.push(n),t.lastReportedSize=S(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},T=function(){var e=0;for(M(0);a.some(function(e){return e.activeTargets.length>0});)M(e=O());return a.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},A=[],P=function(e){if(!o){var t=0,n=document.createTextNode("");new MutationObserver(function(){return A.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),o=function(){n.textContent=""+(t?t--:t++)}}A.push(e),o()},N=function(e){P(function(){requestAnimationFrame(e)})},R=0,D={attributes:!0,characterData:!0,childList:!0,subtree:!0},L=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],F=function(e){return void 0===e&&(e=0),Date.now()+e},z=!1,V=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!z){z=!0;var n=F(e);N(function(){var r=!1;try{r=T()}finally{if(z=!1,e=n-F(),!R)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,D)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),L.forEach(function(t){return v.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),L.forEach(function(t){return v.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),I=function(e){!R&&e>0&&V.start(),(R+=e)||V.stop()},Z=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=S(this.target,this.observedBox,!0);return f(e=this.target)||m(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),B=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},H=new WeakMap,U=function(e,t){for(var n=0;nU(r.observationTargets,t)&&(i&&a.push(r),r.observationTargets.push(new Z(t,n&&n.box)),I(1),V.schedule())},e.unobserve=function(e,t){var n=H.get(e),r=U(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&a.splice(a.indexOf(n),1),n.observationTargets.splice(r,1),I(-1))},e.disconnect=function(e){var t=this,n=H.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),q=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");W.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");W.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");W.unobserve(this,e)},e.prototype.disconnect=function(){W.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},41816:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}n.d(t,{M:function(){return r}})},26215:function(e,t,n){"use strict";n.d(t,{F:function(){return i},e:function(){return o}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return o},k:function(){return i}});var r=n(2784);function i(e,t){let n=(0,r.createContext)(t);function i(e){let{children:t,...i}=e,o=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:o},t)}return i.displayName=e+"Provider",[i,function(i){let o=(0,r.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(e,t=[]){let n=[],i=()=>{let t=n.map(e=>(0,r.createContext)(e));return function(n){let i=(null==n?void 0:n[e])||t;return(0,r.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let o=(0,r.createContext)(i),a=n.length;function s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][a])||o,u=(0,r.useMemo)(()=>s,Object.values(s));return(0,r.createElement)(l.Provider,{value:u},i)}return n=[...n,i],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][a])||o,u=(0,r.useContext)(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}},72331:function(e,t,n){"use strict";n.d(t,{Dx:function(){return K},VY:function(){return $},aV:function(){return q},dk:function(){return Y},fC:function(){return H},h_:function(){return W},x8:function(){return G},xz:function(){return U}});var r=n(7896),i=n(2784),o=n(41816),a=n(26215),s=n(34540),l=n(26074),u=n(73597),c=n(83317),d=n(77334),f=n(6500),h=n(28245),p=n(72130),m=n(55070),v=n(70506),g=n(49732),y=n(99575);let b="Dialog",[x,w]=(0,s.b)(b),[j,E]=x(b),k=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...s}=e,l=E("DialogTrigger",n),u=(0,a.e)(t,l.triggerRef);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":I(l.open)},s,{ref:u,onClick:(0,o.M)(e.onClick,l.onOpenToggle)}))}),S="DialogPortal",[_,C]=x(S,{forceMount:void 0}),O="DialogOverlay",M=(0,i.forwardRef)((e,t)=>{let n=C(O,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=E(O,e.__scopeDialog);return s.modal?(0,i.createElement)(h.z,{present:o||s.open},(0,i.createElement)(T,(0,r.Z)({},a,{ref:t}))):null}),T=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=E(O,n);return(0,i.createElement)(v.Z,{as:y.g7,allowPinchZoom:!0,shards:[a.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":I(a.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),A="DialogContent",P=(0,i.forwardRef)((e,t)=>{let n=C(A,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=E(A,e.__scopeDialog);return(0,i.createElement)(h.z,{present:o||s.open},s.modal?(0,i.createElement)(N,(0,r.Z)({},a,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},a,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=E(A,e.__scopeDialog),s=(0,i.useRef)(null),l=(0,a.e)(t,n.contentRef,s);return(0,i.useEffect)(()=>{let e=s.current;if(e)return(0,g.R)(e)},[]),(0,i.createElement)(D,(0,r.Z)({},e,{ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=E(A,e.__scopeDialog),o=(0,i.useRef)(!1);return(0,i.createElement)(D,(0,r.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0);let a=t.target,s=null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a);s&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,f=E(A,n),h=(0,i.useRef)(null),p=(0,a.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:l},(0,i.createElement)(c.XB,(0,r.Z)({role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":I(f.open)},u,{ref:p,onDismiss:()=>f.onOpenChange(!1)}))),!1)}),L="DialogTitle",F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=E(L,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:a.titleId},o,{ref:t}))}),z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=E("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:a.descriptionId},o,{ref:t}))}),V=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,s=E("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},a,{ref:t,onClick:(0,o.M)(e.onClick,()=>s.onOpenChange(!1))}))});function I(e){return e?"open":"closed"}let[Z,B]=(0,s.k)("DialogTitleWarning",{contentName:A,titleName:L,docsSlug:"dialog"}),H=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:o,onChange:a});return(0,i.createElement)(j,{scope:t,triggerRef:c,contentRef:d,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:h,onOpenToggle:(0,i.useCallback)(()=>h(e=>!e),[h]),modal:s},n)},U=k,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=E(S,t);return(0,i.createElement)(_,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||a.open},(0,i.createElement)(f.h,{asChild:!0,container:o},e))))},q=M,$=P,K=F,Y=z,G=V},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),o=n(2784),a=n(41816),s=n(72130),l=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,o.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...b}=e,x=(0,o.useContext)(d),[w,j]=(0,o.useState)(null),[,E]=(0,o.useState)({}),k=(0,l.e)(t,e=>j(e)),S=Array.from(x.layers),[_]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),C=S.indexOf(_),O=w?S.indexOf(w):-1,M=x.layersWithOutsidePointerEventsDisabled.size>0,T=O>=C,A=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1),r=(0,o.useRef)(()=>{});return(0,o.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){p("dismissableLayer.pointerDownOutside",t,n,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=i,document.addEventListener("click",r.current,{once:!0})):i()}n.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));!T||n||(null==m||m(e),null==g||g(e),e.defaultPrevented||null==y||y())}),P=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let e=e=>{e.target&&!n.current&&p("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));n||(null==v||v(e),null==g||g(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=O===x.layers.size-1;t&&(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,o.useEffect)(()=>{if(w)return n&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(w)),x.layers.add(w),h(),()=>{n&&1===x.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[w,n,x]),(0,o.useEffect)(()=>()=>{w&&(x.layers.delete(w),x.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,x]),(0,o.useEffect)(()=>{let e=()=>E({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,o.createElement)(s.WV.div,(0,i.Z)({},b,{ref:k,style:{pointerEvents:M?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,A.onPointerDownCapture)}))});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,s.jH)(i,o):i.dispatchEvent(o)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return o}});var r=n(2784);let i=0;function o(){(0,r.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},77334:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var i=n(7896),o=n(2784),a=n(26215),s=n(72130),l=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,o.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[b,x]=(0,o.useState)(null),w=(0,l.W)(f),j=(0,l.W)(g),E=(0,o.useRef)(null),k=(0,a.e)(t,e=>x(e)),S=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)(()=>{if(r){function e(e){if(S.paused||!b)return;let t=e.target;b.contains(t)?E.current=t:m(E.current,{select:!0})}function t(e){S.paused||!b||b.contains(e.relatedTarget)||m(E.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,b,S.paused]),(0,o.useEffect)(()=>{if(b){v.add(S);let e=document.activeElement,t=b.contains(e);if(!t){let t=new CustomEvent(u,d);b.addEventListener(u,w),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(h(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(b))}return()=>{b.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(c,d);b.addEventListener(c,j),b.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),b.removeEventListener(c,j),v.remove(S)},0)}}},[b,w,j,S]);let _=(0,o.useCallback)(e=>{if(!n&&!r||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=h(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]}(t),a=r&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(o,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,S.paused]);return(0,o.createElement)(s.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:k,onKeyDown:_}))});function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let v=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},26074:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,i=n(2784),o=n(64680);let a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.b)(()=>{e||n(e=>null!=e?e:String(s++))},[e]),e||(t?`radix-${t}`:"")}},6500:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(7896),i=n(2784),o=n(28316),a=n(72130);let s=(0,i.forwardRef)((e,t)=>{var n;let{container:s=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...l}=e;return s?o.createPortal((0,i.createElement)(a.WV.div,(0,r.Z)({},l,{ref:t})),s):null})},28245:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(2784),i=n(28316),o=n(26215),a=n(64680);let s=e=>{let{present:t,children:n}=e,s=function(e){var t;let[n,o]=(0,r.useState)(),s=(0,r.useRef)({}),u=(0,r.useRef)(e),c=(0,r.useRef)("none"),d=e?"mounted":"unmounted",[f,h]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},d));return(0,r.useEffect)(()=>{let e=l(s.current);c.current="mounted"===f?e:"none"},[f]),(0,a.b)(()=>{let t=s.current,n=u.current,r=n!==e;if(r){let r=c.current,i=l(t);e?h("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),u.current=e}},[e,h]),(0,a.b)(()=>{if(n){let e=e=>{let t=l(s.current),r=t.includes(e.animationName);e.target===n&&r&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===n&&(c.current=l(s.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(s.current=getComputedStyle(e)),o(e)},[])}}(t),u="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),c=(0,o.e)(s.ref,u.ref),d="function"==typeof n;return d||s.isPresent?(0,r.cloneElement)(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},72130:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(7896),i=n(2784),o=n(28316),a=n(99575);let s=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,i.forwardRef)((e,n)=>{let{asChild:o,...s}=e,l=o?a.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(l,(0,r.Z)({},s,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&(0,o.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return a}});var r=n(7896),i=n(2784),o=n(26215);let a=(0,i.forwardRef)((e,t)=>{let{children:n,...o}=e,a=i.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),n)});a.displayName="Slot";let s=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?n[r]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,o.F)(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});s.displayName="SlotClone";let l=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===l}},86029:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}},73597:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(2784),i=n(86029);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[o]=n,a=(0,r.useRef)(o),s=(0,i.W)(t);return(0,r.useEffect)(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,u=(0,i.W)(n),c=(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u]);return[l,c]}},64680:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(2784);let i=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},25447:function(e,t,n){"use strict";e.exports=n(44868)},99550:function(e,t,n){"use strict";e.exports=n(22360)},6901:function(e,t,n){"use strict";e.exports=n(78476)},8669:function(e,t,n){"use strict";e.exports=n(19455)},53609:function(e,t,n){"use strict";e.exports=n(96721)},81401:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.children,n=void 0===t?s.default:t,p=e.axisClassName,v=e.hideAxisLine,g=e.hideTicks,y=e.hideZero,b=void 0!==y&&y,x=e.left,w=e.numTicks,j=void 0===w?10:w,E=e.orientation,k=void 0===E?d.default.bottom:E,S=e.rangePadding,_=void 0===S?0:S,C=e.scale,O=e.tickFormat,M=e.tickLength,T=void 0===M?8:M,A=e.tickValues,P=e.top,N=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,h),R=null!=O?O:(0,u.default)(C),D=k===d.default.left,L=k===d.default.top,F=L||k===d.default.bottom,z=(0,l.default)(C),V=D||L?-1:1,I=C.range(),Z=(0,f.default)(_),B=(0,c.default)({x:Number(I[0])+.5-Z.start,y:0},F),H=(0,c.default)({x:Number(I[I.length-1])+.5+Z.end,y:0},F),U=(null!=A?A:(0,a.getTicks)(C,j)).filter(function(e){return!b||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),W=U.map(function(e){var t=e.value,n=e.index,r=(0,a.coerceNumber)(z(t));return{value:t,index:n,from:(0,c.default)({x:r,y:0},F),to:(0,c.default)({x:r,y:T*V},F),formattedValue:R(t,n,U)}});return r.default.createElement(o.Group,{className:(0,i.default)("visx-axis",p),top:void 0===P?0:P,left:void 0===x?0:x},n(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:b,horizontal:F,numTicks:j,orientation:k,rangePadding:_,scale:C,tickFormat:R,tickLength:T,tickPosition:z,tickSign:V,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),o=n(71602),a=n(63243),s=p(n(58052)),l=p(n(71387)),u=p(n(16882)),c=p(n(89591)),d=p(n(87209)),f=p(n(31863)),h=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:a.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:a.default.left,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:a.default.right,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:a.default.top,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=a()).done;){var s=r.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,r.default)(e.x,null!=(o=n.xMin)?o:-1/0,null!=(a=n.xMax)?a:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l:1/0)}};var r=o(n(30968)),i=o(n(98929));function o(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,r.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,n){if(void 0===n&&(n=1),!e)return[];for(var r=[],i=e.getTotalLength(),o=0;o<=i;o+=n){var a=e.getPointAtLength(o).matrixTransform(t);r.push(a)}return r}(e,t)},[null==e?void 0:e.getTotalLength()])};var r=n(2784)},37016:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,r.useState)(e),n=t[0],i=t[1],o=(0,r.useRef)(null),a=(0,r.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){o.current&&(o.current(n),o.current=null)},[n]),[n,a]};var r=n(2784)},65319:function(e,t,n){"use strict";n.r(t),n.d(t,{localPoint:function(){return r.Z},touchPoint:function(){return i.Z}});var r=n(91032),i=n(49833)},91032:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(49833),i=n(44321);function o(e,t){if((0,i.kK)(e)&&t)return(0,r.Z)(e,t);if((0,i.cO)(e)){var n=e.target;if(n)return(0,r.Z)(n,e)}return null}},49833:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(19067),i=n(44321);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:o({},a)}(t),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=n.x,u.y=n.y,u=u.matrixTransform(l.inverse()),new r.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new r.Z({x:n.x-c.left-e.clientLeft,y:n.y-c.top-e.clientTop})}},44321:function(e,t,n){"use strict";function r(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function o(e){return!!e&&"createSVGPoint"in e}function a(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}n.d(t,{DY:function(){return a},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return o},vZ:function(){return i},z6:function(){return s}})},21516:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),_=null!=E?E:(0,u.getTicks)(r,void 0===x?10:x),C=(null!=j?j:0)+(0,c.default)(r)/2,O=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+C;return{index:t,from:new l.Point({x:i,y:0}),to:new l.Point({x:i,y:f})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-columns",b),top:void 0===t?0:t,left:void 0===n?0:n},k?k({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:w},S))}))}p.propTypes={tickValues:r.default.array,height:r.default.number.isRequired}},34264:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),_=null!=k?k:(0,u.getTicks)(r,void 0===w?10:w),C=(null!=E?E:0)+(0,c.default)(r)/2,O=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+C;return{index:t,from:new l.Point({x:0,y:i}),to:new l.Point({x:f,y:i})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-rows",b),top:void 0===t?0:t,left:void 0===n?0:n},x?x({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:j},S))}))}p.propTypes={tickValues:r.default.array,width:r.default.number.isRequired}},12345:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return"bandwidth"in e?e.bandwidth():0}},59309:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(13980),i=n.n(r),o=n(2784),a=n(72779),s=n.n(a),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),a)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},71602:function(e,t,n){"use strict";n.r(t),n.d(t,{Group:function(){return r.Z}});var r=n(59309)},19067:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(){function e(e){var t=e.x,n=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===n?0:n}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},61305:function(e,t,n){"use strict";n.r(t),n.d(t,{Point:function(){return r.Z},subtractPoints:function(){return o},sumPoints:function(){return i}});var r=n(19067);function i(e,t){return new r.Z({x:e.x+t.x,y:e.y+t.y})}function o(e,t){return new r.Z({x:e.x-t.x,y:e.y-t.y})}},93125:function(e,t,n){"use strict";t.Z=function(e){var t=e.animationTrajectory,n=e.tickComponent,s=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),l=(0,r.useMemo)(function(){return function(e){return r.default.createElement(o.default,u({},e,{tickComponent:n,animationTrajectory:t}))}},[t,n]);return r.default.createElement(i.default,u({},s,{ticksComponent:l}))},l(n(13980));var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=l(n(81401)),o=l(n(65154)),a=["animationTrajectory","tickComponent"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,height:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"x",lineKey:function(e){var t,n;return"column-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.x)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(21516)),o=s(n(55727)),a=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),h=(0,o.useTransition)(n,u({},(0,a.default)({scale:t,animateXOrY:l,animationTrajectory:r}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,n){var r=e.fromX,a=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(o.animated.line,u({key:h,x1:r,x2:a,y1:s,y2:l,strokeOpacity:c,style:d},f))}))}c.propTypes={lineKey:r.default.func.isRequired}},93353:function(e,t,n){"use strict";t.Z=function(e){var t=e.scale,n=e.width,s=e.numTicks,u=e.tickValues,c=(e.offset,e.className),d=e.animationTrajectory,f=e.top,h=e.left,p=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,width:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"y",lineKey:function(e){var t,n;return"row-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.y)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(34264)),o=s(n(55727)),a=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,o.useRef)(null),y=(0,o.useRef)(0),b=(0,o.useState)({width:0,height:0,top:0,left:0}),x=b[0],w=b[1],j=(0,o.useMemo)(function(){var e=Array.isArray(f)?f:[f];return(0,i.default)(function(t){w(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},l,{leading:m})},[l,m,f]);return(0,o.useEffect)(function(){var e=new a.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,o=t.height;y.current=window.requestAnimationFrame(function(){j({width:i,height:o,top:r,left:n})})})});return g.current&&e.observe(g.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=j&&j.cancel&&j.cancel()}},[j]),o.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),n(c({},x,{ref:g.current,resize:j})))}f.propTypes={className:r.default.string,debounceTime:r.default.number,enableDebounceLeadingCall:r.default.bool,ignoreDimensions:r.default.oneOfType([r.default.any,r.default.arrayOf(r.default.any)]),children:r.default.func.isRequired}},2663:function(e,t,n){"use strict";var r=n(8597),i=n(12430),o=n(70590),a=n(50630),s=n(34278),l=n(64183),u=n(61662),c=n(43634),d=n(73335),f=n(54229),h=n(30558),p=n(71646),m=n(26587);t.Z=function(e){if(void 0!==e&&"type"in e)switch(e.type){case"linear":break;case"log":return(0,i.Z)(e);case"pow":return(0,o.Z)(e);case"sqrt":return(0,a.Z)(e);case"symlog":return(0,s.Z)(e);case"time":return(0,l.Z)(e);case"utc":return(0,u.Z)(e);case"quantile":return(0,c.Z)(e);case"quantize":return(0,d.Z)(e);case"threshold":return(0,f.Z)(e);case"ordinal":return(0,h.Z)(e);case"point":return(0,p.Z)(e);case"band":return(0,m.Z)(e)}return(0,r.Z)(e)}},63243:function(e,t,n){"use strict";n.r(t),n.d(t,{coerceNumber:function(){return S.Z},createScale:function(){return x.Z},getTicks:function(){return _.Z},inferScaleType:function(){return k},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return O.Z},scaleLinear:function(){return o.Z},scaleLog:function(){return f.Z},scaleOrdinal:function(){return p.Z},scalePoint:function(){return i.Z},scalePower:function(){return h.Z},scaleQuantile:function(){return v.Z},scaleQuantize:function(){return m.Z},scaleRadial:function(){return u},scaleSqrt:function(){return b.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return C.Z},updateScale:function(){return j}});var r=n(26587),i=n(71646),o=n(8597),a=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,a.Z)(),e)}var c=n(64183),d=n(61662),f=n(12430),h=n(70590),p=n(30558),m=n(73335),v=n(43634),g=n(34278),y=n(54229),b=n(50630),x=n(2663),w=s.Z.apply(void 0,s.a),j=function(e,t){return w(e.copy(),t)},E=n(40668);function k(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?.5===e.exponent()?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?(0,E.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var S=n(28142),_=n(71220),C=n(51519),O=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return _},Z:function(){return O}});var r=n(88751),i=n(87286),o=n(43780),a=n(77636),s=n(78978),l={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:o.Z,"hsl-long":o.q,cubehelix:a.Z,"cubehelix-long":a.B,rgb:s.ZP},u=n(68603),c=n(54076),d=n(18450),f=n(50690),h=n(52546),p=n(76231),m=n(97344),v=n(12370),g=n(28239),y=n(52004),b=n(94758),x=n(97631),w=n(2908),j=n(40668),E={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},k={day:v.Z,hour:g.Z,minute:y.Z,month:b.Z,second:h.Z,week:x.Ox,year:w.Z},S=n(74672),_=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],C={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var n=t.nice;if("boolean"==typeof n)n&&e.nice();else if("number"==typeof n)e.nice(n);else{var r=(0,j.Z)(e);if("string"==typeof n)e.nice(r?k[n]:E[n]);else{var i=n.interval,o=n.step,a=(r?k[i]:E[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],o=i=0||(i[n]=e[n]);return i}(e,s),y=(0,a.Nb)({innerRadius:i,outerRadius:u,cornerRadius:c,startAngle:d,endAngle:f,padAngle:h,padRadius:p});return m?r.createElement(r.Fragment,null,m({path:y})):n||null!=d&&null!=f&&null!=i&&null!=u?r.createElement("path",l({ref:v,className:o()("visx-arc",t),d:y(n)||""},g)):(console.warn("[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing."),null)}var c=n(59309),d=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),_=(0,a.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),C=(0,a.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:b,sortValues:x}),O=C(void 0===s?[]:s);return j?r.createElement(r.Fragment,null,j({arcs:O,path:_,pie:C})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},O.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:o()("visx-pie-arc",t),d:_(e)||"",fill:null==k||"string"==typeof k?k:k(e)},S)),null==l?void 0:l(_.centroid(e),e))}))}var p=n(63739),m=n(27079),v=["className","angle","radius","defined","curve","data","innerRef","children","fill"];function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v),m=(0,a.aJ)({angle:n,radius:i,defined:s,curve:l});return f?r.createElement(r.Fragment,null,f({path:m})):r.createElement("path",g({ref:d,className:o()("visx-line-radial",t),d:m(c)||"",fill:void 0===h?"transparent":h},p))}var b=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,b),y=(0,a.SO)({x:n,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===h?function(){return!0}:h,curve:m});return t?r.createElement(r.Fragment,null,t({path:y})):r.createElement("path",x({ref:v,className:o()("visx-area",p),d:y(f)||""},g))}var j=n(55746),E=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,E),S=(0,a.kn)({keys:s,value:g,order:y,offset:b}),_=(0,a.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),C=S(l);return w?r.createElement(r.Fragment,null,w({stacks:C,path:_,stack:S})):r.createElement(c.Z,{top:n,left:i},C.map(function(e,n){return r.createElement("path",k({className:o()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:_(e)||"",fill:null==x?void 0:x(e.key,n)},j))}))}var _=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,_);return r.createElement(S,C({className:t,top:n,left:i,keys:a,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},x),b||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",C({className:o()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},x))})})}var M=n(14582),T=n(10897);function A(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}var P=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,P),g=A(u),y=t.map(function(e,t){return{index:t,x0:l(s(e)),bars:h.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,width:g,x:u(t)||0,y:d(r)||0,color:f(t,n),height:p-(d(r)||0)}})}});return m?r.createElement(r.Fragment,null,m(y)):r.createElement(c.Z,{className:o()("visx-bar-group",n),top:i,left:a},y.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map(function(t){return r.createElement(M.Z,N({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},v))}))}))}var D=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,D),y=A(f),b=t.map(function(e,t){return{index:t,y0:d(u(e))||0,bars:m.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,height:y,x:l(r)||0,y:f(t)||0,color:p(t,n),width:h(r)||0}})}});return v?r.createElement(r.Fragment,null,v(b)):r.createElement(c.Z,{className:o()("visx-bar-group-horizontal",n),top:i,left:a},b.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map(function(t){return r.createElement(M.Z,L({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},g))}))}))}var z=n(98926);function V(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function I(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function Z(e){return null==e?void 0:e.source}function B(e){return null==e?void 0:e.target}function H(e){return null==e?void 0:e[0]}function U(e){return null==e?void 0:e[1]}var W=n(26078),q=n(44081),$=n(30382),K=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,K),j=(0,z.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),b&&j.offset((0,$.ZP)(b));var E=j(t),k=A(h),S=E.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(p(u(t))||0)-(p(f(t))||0),o=p(f(t)),a="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-k/2);return{bar:t,key:n,index:r,height:i,width:k,x:a||0,y:o||0,color:m(e.key,r)}})}});return x?r.createElement(r.Fragment,null,x(S)):r.createElement(c.Z,{className:o()("visx-bar-stack",n),top:i,left:a},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,Y({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var X=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function J(){return(J=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,X),j=(0,z.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),b&&j.offset((0,$.ZP)(b));var E=j(t),k=A(p),S=E.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(h(f(t))||0)-(h(u(t))||0),o=h(u(t)),a="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:k,width:i,x:o||0,y:a||0,color:m(e.key,r)}})}});return x?r.createElement(r.Fragment,null,x(S)):r.createElement(c.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:a},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,J({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var ee=function(e){return Math.PI/180*e},et=n(72215),en=["className","children","data","innerRef","path","x","y","source","target"];function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,en),h=s||ei({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:a,className:o()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var ea=["className","children","data","innerRef","path","x","y","source","target"];function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ea),h=s||el({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",es({ref:a,className:o()("visx-link visx-link-vertical-diagonal",t),d:h(i)||""},f))}var ec=["className","children","data","innerRef","path","angle","radius","source","target"];function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ec),h=s||ef({source:void 0===c?Z:c,target:void 0===d?B:d,angle:void 0===l?V:l,radius:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:a,className:o()("visx-link visx-link-radial-diagonal",t),d:h(i)||""},f))}var ep=n(91672),em=["className","children","data","innerRef","path","percent","x","y","source","target"];function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,em),p=s||eg({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?I:u,y:void 0===c?V:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ev({ref:a,className:o()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var eb=["className","children","data","innerRef","path","percent","x","y","source","target"];function ex(){return(ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eb),p=s||ew({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ex({ref:a,className:o()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var eE=["className","children","data","innerRef","path","percent","x","y","source","target"];function ek(){return(ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eE),p=s||eS({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ek({ref:a,className:o()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eC=["className","children","innerRef","data","path","x","y","source","target"];function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eC),h=s||eM({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eO({ref:i,className:o()("visx-link visx-link-horizontal-line",t),d:h(a)||""},f))}var eA=["className","innerRef","data","path","x","y","source","target","children"];function eP(){return(eP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eA),h=a||eN({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eP({ref:n,className:o()("visx-link visx-link-vertical-line",t),d:h(i)||""},f))}var eD=["className","innerRef","data","path","x","y","source","target","children"];function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eD),h=a||eF({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className:o()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var eV=["className","innerRef","data","path","percent","x","y","source","target","children"];function eI(){return(eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eV),p=a||eZ({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?V:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eI({ref:n,className:o()("visx-link visx-link-horizontal-step",t),d:p(i)||""},h))}var eH=["className","innerRef","data","path","percent","x","y","source","target","children"];function eU(){return(eU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eH),p=a||eW({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?I:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eU({ref:n,className:o()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var e$=["className","innerRef","data","path","x","y","source","target","children"];function eK(){return(eK=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.PI?f<=d:f>d)?1:0)+","+l*h+","+l*p+"\n L"+c*h+","+c*p+"\n "}}function eG(e){var t=e.className,n=e.innerRef,i=e.data,a=e.path,s=e.x,l=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=a||eY({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eK({ref:n,className:o()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eX=["sides","size","center","rotate","className","children","innerRef","points"];function eJ(){return(eJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eX),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eQ:i,rotate:void 0===a?0:a}).map(function(e){return[e.x,e.y]});return l?r.createElement(r.Fragment,null,l({points:f})):r.createElement("polygon",eJ({ref:u,className:o()("visx-polygon",s),points:f.join(" ")},d))}var e4=["className","innerRef"];function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,e4);return r.createElement("circle",e3({ref:n,className:o()("visx-circle",t)},i))}var e6=n(13980),e8=n.n(e6),e7="http://www.w3.org/2000/svg",e9=function(){return!0};function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;tf[i]?d.map(function(e){return void 0===e?e9:function(t){return t>=e}}):d.map(function(e){return void 0===e?e9:function(t){return t<=e}}),p=0,m=0;m<=l;m+=a){for(var v=s.getPointAtLength(m),g=v[i];p=w[k+1];)k+=1;c[k].push(_)}}return c}catch(e){return[]}}({path:p,segmentation:s,pointsInSegments:h,sampleRate:l})},[p,s,h,l]);return r.createElement("g",null,v.map(function(e,i){return t?r.createElement(r.Fragment,{key:i},t({index:i,segment:e,styles:f[i]||f[i%f.length]})):r.createElement(m.Z,te({key:i,className:n,data:e,x:tt,y:tn},f[i]||f[i%f.length]))}))}tr.propTypes={segments:e8().arrayOf(e8().array).isRequired,styles:e8().array.isRequired,children:e8().func,className:e8().string}},55746:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(72779),o=n.n(i),a=n(26078),s=n(52511),l=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),j=(0,s.SO)({x:t,x0:n,x1:i,defined:void 0===v?function(){return!0}:v,curve:y});return(null==f?j.y0(h.range()[0]):(0,a.Z)(j.y0,f),c&&!d&&(0,a.Z)(j.y1,c),d&&!c&&(0,a.Z)(j.y1,d),x)?r.createElement(r.Fragment,null,x({path:j})):r.createElement("path",u({ref:b,className:o()("visx-area-closed",g),d:j(m)||""},w))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.createElement("rect",s({ref:n,className:o()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),V=(n=(t={x:k,y:S,width:_,height:C,radius:O,all:void 0!==M&&M,top:void 0!==T&&T,bottom:void 0!==A&&A,left:void 0!==P&&P,right:void 0!==N&&N,topLeft:void 0!==R&&R,topRight:void 0!==D&&D,bottomLeft:void 0!==L&&L,bottomRight:void 0!==F&&F}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,v=t.topRight,g=t.width,y=t.x,b=t.y,v=n||p||h||v,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,x=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+b+" h"+(g-x)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-x)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(x-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(x-c)+"\n "+(m?"a"+f+","+f+" 0 0 1 "+f+","+-f:"v"+-f+"h"+f)+"\nz").split("\n").join(""));return w?r.createElement(r.Fragment,null,w({path:V})):r.createElement("path",s({ref:E,className:o()("visx-bar-rounded",j),d:V},z))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:o()("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))}},27079:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),o=n.n(i),a=n(52511),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,a.jv)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",l({ref:p,className:o()("visx-linepath",f),d:g(i)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))}},52511:function(e,t,n){"use strict";n.d(t,{Nb:function(){return f},SO:function(){return h},aJ:function(){return v},jv:function(){return p},kn:function(){return g},ve:function(){return m}});var r=n(38764),i=n(12235),o=n(79767),a=n(69619),s=n(8329),l=n(98926),u=n(26078),c=n(44081),d=n(30382);function f(e){var t=void 0===e?{}:e,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.startAngle,s=t.endAngle,l=t.padAngle,c=t.padRadius,d=(0,r.Z)();return null!=n&&(0,u.Z)(d.innerRadius,n),null!=i&&(0,u.Z)(d.outerRadius,i),null!=o&&(0,u.Z)(d.cornerRadius,o),null!=a&&(0,u.Z)(d.startAngle,a),null!=s&&(0,u.Z)(d.endAngle,s),null!=l&&(0,u.Z)(d.padAngle,l),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,o=t.x1,a=t.y,s=t.y0,l=t.y1,c=t.defined,d=t.curve,f=(0,i.Z)();return n&&(0,u.Z)(f.x,n),r&&(0,u.Z)(f.x0,r),o&&(0,u.Z)(f.x1,o),a&&(0,u.Z)(f.y,a),s&&(0,u.Z)(f.y0,s),l&&(0,u.Z)(f.y1,l),c&&f.defined(c),d&&f.curve(d),f}function p(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,a=t.curve,s=(0,o.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),a&&s.curve(a),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,s=t.sort,l=t.sortValues,c=(0,a.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=o&&c.value(o),null!=i&&(0,u.Z)(c.padAngle,i),null!=n&&(0,u.Z)(c.startAngle,n),null!=r&&(0,u.Z)(c.endAngle,r),c}function v(e){var t=void 0===e?{}:e,n=t.angle,r=t.radius,i=t.defined,o=t.curve,a=(0,s.Z)();return n&&(0,u.Z)(a.angle,n),r&&(0,u.Z)(a.radius,r),i&&a.defined(i),o&&a.curve(o),a}function g(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,o=(0,l.Z)();return t&&o.keys(t),n&&(0,u.Z)(o.value,n),r&&o.order((0,c.ZP)(r)),i&&o.offset((0,d.ZP)(i)),o}},26078:function(e,t,n){"use strict";function r(e,t){e(t)}n.d(t,{Z:function(){return r}})},30382:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},ed:function(){return u},nW:function(){return l}});var r=n(22254),i=n(76751),o=n(90541),a=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:a.Z,wiggle:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},44081:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return l}});var r=n(19721),i=n(82564),o=n(12197),a=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:o.Z,none:a.Z,reverse:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},12935:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.x,s=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=void 0===h?[]:h,m=e.defined,v=e.className,g=e.curve,y=e.innerRef,b=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),x=(0,o.area)({x:n,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===m?function(){return!0}:m,curve:g});return t?r.default.createElement(r.default.Fragment,null,t({path:x})):r.default.createElement("path",l({ref:y,className:(0,i.default)("visx-area",v),d:x(p)||""},b))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),h=n.x===l.x||n.y===l.y;return r.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var r=a(n(2784)),i=a(n(72779)),o=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),g=(0,o.line)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.default.createElement(r.default.Fragment,null,t({path:g})):r.default.createElement("path",l({ref:p,className:(0,i.default)("visx-linepath",f),d:g(s)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,b=g.startDy,x=g.transform;return r.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===n?0:n,fontSize:v,style:s},y.length>0?r.createElement("text",a({ref:c,transform:x},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?b:f},e.words.join(" "))})):null)}},89907:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(32718),o=n.n(i),a=n(75715),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function l(e){return"number"==typeof e}function u(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function c(e){var t=e.verticalAnchor,n=void 0===t?"end":t,i=e.scaleToFit,c=void 0!==i&&i,d=e.angle,f=e.width,h=e.lineHeight,p=void 0===h?"1em":h,m=e.capHeight,v=void 0===m?"0.71em":m,g=e.children,y=e.style,b=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,s),x=b.x,w=void 0===x?0:x,j=b.y,E=void 0===j?0:j,k=!u(w)||!u(E),S=(0,r.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.Z)(e,y)||0}}),spaceWidth:(0,a.Z)("\xa0",y)||0}},[g,y]),_=S.wordsWithWidth,C=S.spaceWidth,O=(0,r.useMemo)(function(){return k?[]:f||c?_.reduce(function(e,t){var n=t.word,r=t.wordWidth,i=e[e.length-1];return i&&(null==f||c||(i.width||0)+r+C0){var t=O[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=E-n*E;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+E+")"),e.length>0?e.join(" "):""},[k,w,E,f,c,O,d]);return{wordsByLines:O,startDy:M,transform:T}}},44425:function(e,t,n){"use strict";n.r(t),n.d(t,{Text:function(){return r.Z},getStringWidth:function(){return i.Z},useText:function(){return o.Z}});var r=n(64170),i=n(75715),o=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),o="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(o);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",o),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)})},49732:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=new WeakMap,i=new WeakMap,o={},a=0,s=function(e,t,n){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===n&&(n="data-aria-hidden");var s=Array.isArray(e)?e:[e];o[n]||(o[n]=new WeakMap);var l=o[n],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};s.forEach(d);var f=function(e){!e||s.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,a),l.set(e,s),u.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),a++,function(){u.forEach(function(e){var t=r.get(e)-1,o=l.get(e)-1;r.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}}},30387:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t})}return!0}},89644:function(e,t,n){e.exports=n(25644)},70353:function(e,t,n){"use strict";var r=n(93044),i=n(86955),o=n(92233),a=n(68030),s=n(97948),l=n(51875),u=n(60842),c=n(98560),d=n(21218),f=n(68047),h=n(10738);e.exports=function(e){return new Promise(function(t,n){var p,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete v["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var x=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(x+":"+w)}var j=s(e.baseURL,e.url);function E(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}}if(b.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=E:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(E)},b.onabort=function(){b&&(n(new d("Request aborted",d.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(j))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(v[e.xsrfHeaderName]=k)}"setRequestHeader"in b&&r.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:b.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(n(!e||e&&e.type?new f:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var S=h(j);if(S&&-1===["http","https","file"].indexOf(S)){n(new d("Unsupported protocol "+S+":",d.ERR_BAD_REQUEST,e));return}b.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),o=n(62215),a=n(92937),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(10663));s.Axios=o,s.CanceledError=n(68047),s.CancelToken=n(34089),s.isCancel=n(98041),s.VERSION=n(29241).version,s.toFormData=n(49027),s.AxiosError=n(21218),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(70783),s.isAxiosError=n(65587),e.exports=s,e.exports.default=s},34089:function(e,t,n){"use strict";var r=n(68047);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.merge(c)}),e.exports=f},98560:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(e){e.exports={version:"0.27.2"}},73644:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([n]):a[t]=a[t]?a[t]+", "+n:n)}),a}},10738:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},70783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},49027:function(e,t,n){"use strict";var r=n(48834).lW,i=n(93044);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return!function e(r,a){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var s,l=a?a+"."+r:r;if(n&&!a&&"object"==typeof n){if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(s=i.toArray(n))){s.forEach(function(e){i.isUndefined(e)||t.append(l,o(e))});return}}e(n,l)}}),n.pop()}else t.append(a,o(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,n){"use strict";var r,i,o=n(73644),a=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=a.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),v=l("Blob"),g=l("FileList");function y(e){return"[object Function]"===a.call(e)}var b=l("URLSearchParams");function x(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return -1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},6391:function(e,t,n){var r;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,n,r=1,i=e.length,o=e[0]+"";ru^n?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function m(e,t,n,r){if(en||e!==l(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else tA?h.c=h.e=null:e.e=10;s/=10,o++);o>A?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return E(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&F)return B(h=new z(e),_+h.e+1,C);if(f=String(e),u="number"==typeof e){if(0*e!=0)return E(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,z.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=L.slice(0,t),o=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return E(h,String(e),u,t)}u=!1,(o=(f=j(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=f.length}for(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&z.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>A)h.c=h.e=null;else if(o=M)?g(l,a):y(l,a,"0");else if(o=(e=B(new z(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=o||o<=O)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function I(e,t){for(var n,r=1,i=new z(e[0]);r=10;i/=10,r++);return(n=r+14*n-1)>A?e.c=e.e=null:n=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(r=r||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(o>0?a>0?c/d[i-a]:0:p[f-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),r)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>A?e.c=e.e=null:e.e=M?g(t,n):y(t,n,"0"),e.s<0?"-"+t:t)}return z.clone=e,z.ROUND_UP=0,z.ROUND_DOWN=1,z.ROUND_CEIL=2,z.ROUND_FLOOR=3,z.ROUND_HALF_UP=4,z.ROUND_HALF_DOWN=5,z.ROUND_HALF_EVEN=6,z.ROUND_HALF_CEIL=7,z.ROUND_HALF_FLOOR=8,z.EUCLID=9,z.config=z.set=function(e){var t,n;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(n=e[t],0,1e9,t),_=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),C=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),O=n[0],M=n[1]):(m(n,-1e9,1e9,t),O=-(M=n<0?-n:n))),e.hasOwnProperty(t="RANGE")){if((n=e[t])&&n.pop)m(n[0],-1e9,-1,t),m(n[1],1,1e9,t),T=n[0],A=n[1];else if(m(n,-1e9,1e9,t),n)T=-(A=n<0?-n:n);else throw Error(u+t+" cannot be zero: "+n)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(n=e[t])===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))P=n;else throw P=!n,Error(u+"crypto unavailable")}else P=n}else throw Error(u+t+" not true or false: "+n)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(n=e[t],0,9,t),N=n),e.hasOwnProperty(t="POW_PRECISION")&&(m(n=e[t],0,1e9,t),R=n),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(n=e[t]))D=n;else throw Error(u+t+" not an object: "+n)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);F="0123456789"==n.slice(0,10),L=n}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:_,ROUNDING_MODE:C,EXPONENTIAL_AT:[O,M],RANGE:[T,A],CRYPTO:P,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},z.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!z.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t=1e14||n!==l(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},z.maximum=z.max=function(){return I(arguments,k.lt)},z.minimum=z.min=function(){return I(arguments,k.gt)},z.random=(n=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,i,o,a,c=0,f=[],h=new z(S);if(null==e?e=_:m(e,0,1e9),o=s(e/14),P){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw P=!1,Error(u+"crypto unavailable")}if(!P)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),z.sum=function(){for(var e=1,t=arguments,n=new z(t[0]);en-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(n,r,i,o,a){var s,l,u,c,d,f,p,m,v=n.indexOf("."),g=_,b=C;for(v>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new z(r)).pow(n.length-v),R=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(n,r,i,a?(s=L,e):(s=e,L))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(v<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=w(f,m,g,b,i)).c,d=f.r,u=f.e),v=p[l=u+g+1],c=i/2,d=d||l<0||null!=p[l+1],d=b<4?(null!=v||d)&&(0==b||b==(f.s<0?3:2)):v>c||v==c&&(4==b||d||6==b&&1&p[l-1]||b==(f.s<0?8:7)),l<1||!p[0])n=d?y(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(v=0,n="";v<=c;n+=s.charAt(p[v++]));n=y(n,u,s.charAt(0))}return n}}(),w=function(){function e(e,t,n){var r,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*a,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(r,i,o,a,s){var u,c,d,h,p,m,v,g,y,b,x,w,j,E,k,S,_,C=r.s==i.s?1:-1,O=r.c,M=i.c;if(!O||!O[0]||!M||!M[0])return new z(r.s&&i.s&&(O?!M||O[0]!=M[0]:M)?O&&0==O[0]||!M?0*C:C/0:NaN);for(y=(g=new z(C)).c=[],C=o+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),C=C/14|0),d=0;M[d]==(O[d]||0);d++);if(M[d]>(O[d]||0)&&c--,C<0)y.push(1),h=!0;else{for(E=O.length,S=M.length,d=0,C+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),O=e(O,p,s),S=M.length,E=O.length),j=S,x=(b=O.slice(0,S)).length;x=s/2&&k++;do{if(p=0,(u=t(M,b,S,x))<0){if(w=b[0],S!=x&&(w=w*s+(b[1]||0)),(p=l(w/k))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,x=b.length;1==t(m,b,v,x);)p--,n(m,St(M,b,S,x);)p++,n(b,S=10;C/=10,d++);B(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,x=/^\s*\+(?=[\w.])|^\s+|\s+$/g,E=function(e,t,n,a){var s,l=n?t:t.replace(x,"");if(b.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!n&&(l=l.replace(r,function(e,t,n){return s="x"==(n=n.toLowerCase())?16:"b"==n?2:8,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new z(l,s);if(z.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},k.absoluteValue=k.abs=function(){var e=new z(this);return e.s<0&&(e.s=1),e},k.comparedTo=function(e,t){return p(this,new z(e,t))},k.decimalPlaces=k.dp=function(e,t){var n,r,i;if(null!=e)return m(e,0,1e9),null==t?t=C:m(t,0,8),B(new z(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((i=n.length-1)-f(this.e/14))*14,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},k.dividedBy=k.div=function(e,t){return w(this,new z(e,t),_,C)},k.dividedToIntegerBy=k.idiv=function(e,t){return w(this,new z(e,t),0,1)},k.exponentiatedBy=k.pow=function(e,t){var n,r,i,o,a,c,d,f,h,p=this;if((e=new z(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new z(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new z(Math.pow(+H(p),c?2-v(e):+H(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new z(NaN);(r=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new z(d?1/o:o);R&&(o=s(R/14+2))}for(c?(n=new z(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new z(S);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):r&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(B(e=e.times(n),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?h:(d&&(h=S.div(h)),t?h.mod(t):o?B(h,R,C,a):h)},k.integerValue=function(e){var t=new z(this);return null==e?e=C:m(e,0,8),B(t,t.e+1,e)},k.isEqualTo=k.eq=function(e,t){return 0===p(this,new z(e,t))},k.isFinite=function(){return!!this.c},k.isGreaterThan=k.gt=function(e,t){return p(this,new z(e,t))>0},k.isGreaterThanOrEqualTo=k.gte=function(e,t){return 1===(t=p(this,new z(e,t)))||0===t},k.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},k.isLessThan=k.lt=function(e,t){return 0>p(this,new z(e,t))},k.isLessThanOrEqualTo=k.lte=function(e,t){return -1===(t=p(this,new z(e,t)))||0===t},k.isNaN=function(){return!this.s},k.isNegative=function(){return this.s<0},k.isPositive=function(){return this.s>0},k.isZero=function(){return!!this.c&&0==this.c[0]},k.minus=function(e,t){var n,r,i,o,a=this.s;if(t=(e=new z(e,t)).s,!a||!t)return new z(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new z(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new z(u[0]?this:3==C?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>a;){if(u[--r]=0;){for(n=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[o]+n)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=n}return n?++r:m.splice(0,1),Z(e,m,r)},k.negated=function(){var e=new z(this);return e.s=-e.s||null,e},k.plus=function(e,t){var n,r=this.s;if(t=(e=new z(e,t)).s,!r||!t)return new z(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new z(r/0);if(!a[0]||!s[0])return s[0]?e:new z(a[0]?this:0*r)}if(i=f(i),o=f(o),a=a.slice(),r=i-o){for(r>0?(o=i,n=s):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for((r=a.length)-(t=s.length)<0&&(n=s,s=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+s[t]+r)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return r&&(a=[r].concat(a),++o),Z(e,a,o)},k.precision=k.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=C:m(t,0,8),B(new z(this),e,t);if(!(n=this.c))return null;if(r=14*(i=n.length-1)+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},k.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},k.squareRoot=k.sqrt=function(){var e,t,n,r,i,o=this.c,a=this.s,s=this.e,l=_+4,u=new z("0.5");if(1!==a||!o||!o[0])return new z(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,n=new z(t)):n=new z(a+""),n.c[0]){for((a=(s=n.e)+l)<3&&(a=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(n.c)).slice(0,a)){if(n.e0&&p>0){for(i=p%a||a,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((s=+n.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},k.toFraction=function(e){var t,n,r,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new z(e)).isInteger()&&(s.c||1!==s.s)||s.lt(S)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new z(this);for(t=new z(S),c=n=new z(S),r=l=new z(S),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=A,A=1/0,s=new z(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(n),r,0,1),l=l.plus(i.times(c)),n=n.plus(i.times(r)),l.s=c.s=this.s,o*=2,p=1>w(c,r,o,C).minus(this).abs().comparedTo(w(l,n,o,C).minus(this).abs())?[c,r]:[l,n],A=a,p},k.toNumber=function(){return+H(this)},k.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),V(this,e,t,2)},k.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=O||i>=M?g(h(n.c),i):y(h(n.c),i,"0"):10===e&&F?t=y(h((n=B(new z(n),_+i+1,C)).c),n.e,"0"):(m(e,2,L.length,"Base"),t=j(y(h(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},k.valueOf=k.toJSON=function(){return H(this)},k._isBigNumber=!0,null!=t&&z.set(t),z}()).default=o.BigNumber=o,void 0!==(r=(function(){return o}).call(t,n,t,e))&&(e.exports=r)}(0)},70651:function(e,t,n){let r=n(7967);function i(e,t,n){let r=e[t]+e[n],i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function o(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let o=e[t+1]+r;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(c,e,l,u);let p=c[r]^c[e],m=c[r+1]^c[e+1];c[r]=m,c[r+1]=p,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),o(c,e,f,h),p=c[r]^c[e],m=c[r+1]^c[e+1],c[r]=p>>>16^m<<16,c[r+1]=m>>>16^p<<16,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=m>>>31^p<<1,c[t+1]=p>>>31^m<<1}let l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let n=0;for(n=0;n<16;n++)c[n]=e.h[n],c[n+16]=l[n];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),n=0;n<32;n++)d[n]=a(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,u[16*n+0],u[16*n+1]),s(2,10,18,26,u[16*n+2],u[16*n+3]),s(4,12,20,28,u[16*n+4],u[16*n+5]),s(6,14,22,30,u[16*n+6],u[16*n+7]),s(0,10,20,30,u[16*n+8],u[16*n+9]),s(2,12,22,24,u[16*n+10],u[16*n+11]),s(4,14,16,26,u[16*n+12],u[16*n+13]),s(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^c[n]^c[n+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,n,r){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&16!==n.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(r&&16!==r.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,n&&h.set(n,32),r&&h.set(r,48);for(let e=0;e<16;e++)i.h[e]=l[e]^a(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let n=0;n>2]>>8*(3&n);return t}function g(e,t,n,i,o){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),o&&(o=r.normalizeInput(o));let a=p(n,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,n,i,o){let a=g(e,t,n,i,o);return r.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,a){l[e]=l[e]+l[t]+i,l[r]=o(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],12),l[e]=l[e]+l[t]+a,l[r]=o(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],7)}function o(e,t){return e>>>t^e<<32-t}let a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let n=0;for(n=0;n<8;n++)l[n]=e.h[n],l[n+8]=a[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++){var r,o;u[n]=(r=e.b)[o=4*n]^r[o+1]<<8^r[o+2]<<16^r[o+3]<<24}for(n=0;n<10;n++)i(0,4,8,12,u[s[16*n+0]],u[s[16*n+1]]),i(1,5,9,13,u[s[16*n+2]],u[s[16*n+3]]),i(2,6,10,14,u[s[16*n+4]],u[s[16*n+5]]),i(3,7,11,15,u[s[16*n+6]],u[s[16*n+7]]),i(0,5,10,15,u[s[16*n+8]],u[s[16*n+9]]),i(1,6,11,12,u[s[16*n+10]],u[s[16*n+11]]),i(2,7,8,13,u[s[16*n+12]],u[s[16*n+13]]),i(3,4,9,14,u[s[16*n+14]],u[s[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=l[n]^l[n+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let n=t?t.length:0;if(t&&!(n>0&&n<=32))throw Error("Incorrect key length, should be in [1, 32]");let r={h:new Uint32Array(a),b:new Uint8Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(f(r,t),r.c=64),r}function f(e,t){for(let n=0;n>2]>>8*(3&n)&255;return t}function p(e,t,n){n=n||32,e=r.normalizeInput(e);let i=d(n,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,n){let i=p(e,t,n);return r.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,n){let r=n(70651),i=n(39962);e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},7967:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e){let n=new TextEncoder;t=n.encode(e)}else throw Error("Input must be an string, Buffer or Uint8Array");return t},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,n,r){let i="\n"+e+" = ";for(let o=0;oe?t.activeTargets.push(n):t.skippedTargets.push(n))})})},T=function(){var e=0;for(M(0);a.some(function(e){return e.activeTargets.length>0});)M(e=O());return a.some(function(e){return e.skippedTargets.length>0})&&l(),e>0},A=[],P=function(e){if(!o){var t=0,n=document.createTextNode("");new MutationObserver(function(){return A.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),o=function(){n.textContent=""+(t?t--:t++)}}A.push(e),o()},N=function(e){P(function(){requestAnimationFrame(e)})},R=0,D={attributes:!0,characterData:!0,childList:!0,subtree:!0},L=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],F=function(e){return void 0===e&&(e=0),Date.now()+e},z=!1,V=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!z){z=!0;var n=F(e);N(function(){var r=!1;try{r=T()}finally{if(z=!1,e=n-F(),!R)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,D)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),L.forEach(function(t){return v.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),L.forEach(function(t){return v.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}()),I=function(e){!R&&e>0&&V.start(),(R+=e)||V.stop()},Z=function(){function e(e,t){this.target=e,this.observedBox=t||i.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=S(this.target,this.observedBox,!0);return f(e=this.target)||m(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),B=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},H=new WeakMap,U=function(e,t){for(var n=0;nU(r.observationTargets,t)&&(i&&a.push(r),r.observationTargets.push(new Z(t,n&&n.box)),I(1),V.schedule())},e.unobserve=function(e,t){var n=H.get(e),r=U(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&a.splice(a.indexOf(n),1),n.observationTargets.splice(r,1),I(-1))},e.disconnect=function(e){var t=this,n=H.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),q=function(){function e(e){if(0==arguments.length)throw TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");W.connect(this,e)}return e.prototype.observe=function(e,t){if(0==arguments.length)throw TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");W.observe(this,e,t)},e.prototype.unobserve=function(e){if(0==arguments.length)throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(e))throw TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");W.unobserve(this,e)},e.prototype.disconnect=function(){W.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()},41816:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}n.d(t,{M:function(){return r}})},26215:function(e,t,n){"use strict";n.d(t,{F:function(){return i},e:function(){return o}});var r=n(2784);function i(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function o(...e){return(0,r.useCallback)(i(...e),e)}},34540:function(e,t,n){"use strict";n.d(t,{b:function(){return o},k:function(){return i}});var r=n(2784);function i(e,t){let n=(0,r.createContext)(t);function i(e){let{children:t,...i}=e,o=(0,r.useMemo)(()=>i,Object.values(i));return(0,r.createElement)(n.Provider,{value:o},t)}return i.displayName=e+"Provider",[i,function(i){let o=(0,r.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function o(e,t=[]){let n=[],i=()=>{let t=n.map(e=>(0,r.createContext)(e));return function(n){let i=(null==n?void 0:n[e])||t;return(0,r.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let o=(0,r.createContext)(i),a=n.length;function s(t){let{scope:n,children:i,...s}=t,l=(null==n?void 0:n[e][a])||o,u=(0,r.useMemo)(()=>s,Object.values(s));return(0,r.createElement)(l.Provider,{value:u},i)}return n=[...n,i],s.displayName=t+"Provider",[s,function(n,s){let l=(null==s?void 0:s[e][a])||o,u=(0,r.useContext)(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}},72331:function(e,t,n){"use strict";n.d(t,{Dx:function(){return K},VY:function(){return $},aV:function(){return q},dk:function(){return Y},fC:function(){return H},h_:function(){return W},x8:function(){return G},xz:function(){return U}});var r=n(7896),i=n(2784),o=n(41816),a=n(26215),s=n(34540),l=n(26074),u=n(73597),c=n(83317),d=n(77334),f=n(6500),h=n(28245),p=n(72130),m=n(55070),v=n(70506),g=n(49732),y=n(99575);let x="Dialog",[b,w]=(0,s.b)(x),[j,E]=b(x),k=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...s}=e,l=E("DialogTrigger",n),u=(0,a.e)(t,l.triggerRef);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":I(l.open)},s,{ref:u,onClick:(0,o.M)(e.onClick,l.onOpenToggle)}))}),S="DialogPortal",[_,C]=b(S,{forceMount:void 0}),O="DialogOverlay",M=(0,i.forwardRef)((e,t)=>{let n=C(O,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=E(O,e.__scopeDialog);return s.modal?(0,i.createElement)(h.z,{present:o||s.open},(0,i.createElement)(T,(0,r.Z)({},a,{ref:t}))):null}),T=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=E(O,n);return(0,i.createElement)(v.Z,{as:y.g7,allowPinchZoom:!0,shards:[a.contentRef]},(0,i.createElement)(p.WV.div,(0,r.Z)({"data-state":I(a.open)},o,{ref:t,style:{pointerEvents:"auto",...o.style}})))}),A="DialogContent",P=(0,i.forwardRef)((e,t)=>{let n=C(A,e.__scopeDialog),{forceMount:o=n.forceMount,...a}=e,s=E(A,e.__scopeDialog);return(0,i.createElement)(h.z,{present:o||s.open},s.modal?(0,i.createElement)(N,(0,r.Z)({},a,{ref:t})):(0,i.createElement)(R,(0,r.Z)({},a,{ref:t})))}),N=(0,i.forwardRef)((e,t)=>{let n=E(A,e.__scopeDialog),s=(0,i.useRef)(null),l=(0,a.e)(t,n.contentRef,s);return(0,i.useEffect)(()=>{let e=s.current;if(e)return(0,g.R)(e)},[]),(0,i.createElement)(D,(0,r.Z)({},e,{ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())}))}),R=(0,i.forwardRef)((e,t)=>{let n=E(A,e.__scopeDialog),o=(0,i.useRef)(!1);return(0,i.createElement)(D,(0,r.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),o.current=!1},onInteractOutside:t=>{var r,i;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0);let a=t.target,s=null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a);s&&t.preventDefault()}}))}),D=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:l,...u}=e,f=E(A,n),h=(0,i.useRef)(null),p=(0,a.e)(t,h);return(0,m.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:l},(0,i.createElement)(c.XB,(0,r.Z)({role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":I(f.open)},u,{ref:p,onDismiss:()=>f.onOpenChange(!1)}))),!1)}),L="DialogTitle",F=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=E(L,n);return(0,i.createElement)(p.WV.h2,(0,r.Z)({id:a.titleId},o,{ref:t}))}),z=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...o}=e,a=E("DialogDescription",n);return(0,i.createElement)(p.WV.p,(0,r.Z)({id:a.descriptionId},o,{ref:t}))}),V=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,s=E("DialogClose",n);return(0,i.createElement)(p.WV.button,(0,r.Z)({type:"button"},a,{ref:t,onClick:(0,o.M)(e.onClick,()=>s.onOpenChange(!1))}))});function I(e){return e?"open":"closed"}let[Z,B]=(0,s.k)("DialogTitleWarning",{contentName:A,titleName:L,docsSlug:"dialog"}),H=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,c=(0,i.useRef)(null),d=(0,i.useRef)(null),[f=!1,h]=(0,u.T)({prop:r,defaultProp:o,onChange:a});return(0,i.createElement)(j,{scope:t,triggerRef:c,contentRef:d,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:h,onOpenToggle:(0,i.useCallback)(()=>h(e=>!e),[h]),modal:s},n)},U=k,W=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=E(S,t);return(0,i.createElement)(_,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(h.z,{present:n||a.open},(0,i.createElement)(f.h,{asChild:!0,container:o},e))))},q=M,$=P,K=F,Y=z,G=V},83317:function(e,t,n){"use strict";let r;n.d(t,{XB:function(){return f}});var i=n(7896),o=n(2784),a=n(41816),s=n(72130),l=n(26215),u=n(86029);let c="dismissableLayer.update",d=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=(0,o.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:g,onDismiss:y,...x}=e,b=(0,o.useContext)(d),[w,j]=(0,o.useState)(null),[,E]=(0,o.useState)({}),k=(0,l.e)(t,e=>j(e)),S=Array.from(b.layers),[_]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),C=S.indexOf(_),O=w?S.indexOf(w):-1,M=b.layersWithOutsidePointerEventsDisabled.size>0,T=O>=C,A=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1),r=(0,o.useRef)(()=>{});return(0,o.useEffect)(()=>{let e=e=>{if(e.target&&!n.current){let n={originalEvent:e};function i(){p("dismissableLayer.pointerDownOutside",t,n,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",r.current),r.current=i,document.addEventListener("click",r.current,{once:!0})):i()}n.current=!1},i=window.setTimeout(()=>{document.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),document.removeEventListener("pointerdown",e),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}(e=>{let t=e.target,n=[...b.branches].some(e=>e.contains(t));!T||n||(null==m||m(e),null==g||g(e),e.defaultPrevented||null==y||y())}),P=function(e){let t=(0,u.W)(e),n=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let e=e=>{e.target&&!n.current&&p("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{let t=e.target,n=[...b.branches].some(e=>e.contains(t));n||(null==v||v(e),null==g||g(e),e.defaultPrevented||null==y||y())});return!function(e){let t=(0,u.W)(e);(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t])}(e=>{let t=O===b.layers.size-1;t&&(null==f||f(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))}),(0,o.useEffect)(()=>{if(w)return n&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(r=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(w)),b.layers.add(w),h(),()=>{n&&1===b.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=r)}},[w,n,b]),(0,o.useEffect)(()=>()=>{w&&(b.layers.delete(w),b.layersWithOutsidePointerEventsDisabled.delete(w),h())},[w,b]),(0,o.useEffect)(()=>{let e=()=>E({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,o.createElement)(s.WV.div,(0,i.Z)({},x,{ref:k,style:{pointerEvents:M?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,A.onPointerDownCapture)}))});function h(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,s.jH)(i,o):i.dispatchEvent(o)}},55070:function(e,t,n){"use strict";n.d(t,{EW:function(){return o}});var r=n(2784);let i=0;function o(){(0,r.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},77334:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return f}});var i=n(7896),o=n(2784),a=n(26215),s=n(72130),l=n(86029);let u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=(0,o.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[x,b]=(0,o.useState)(null),w=(0,l.W)(f),j=(0,l.W)(g),E=(0,o.useRef)(null),k=(0,a.e)(t,e=>b(e)),S=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)(()=>{if(r){function e(e){if(S.paused||!x)return;let t=e.target;x.contains(t)?E.current=t:m(E.current,{select:!0})}function t(e){S.paused||!x||x.contains(e.relatedTarget)||m(E.current,{select:!0})}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}},[r,x,S.paused]),(0,o.useEffect)(()=>{if(x){v.add(S);let e=document.activeElement,t=x.contains(e);if(!t){let t=new CustomEvent(u,d);x.addEventListener(u,w),x.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(h(x).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(x))}return()=>{x.removeEventListener(u,w),setTimeout(()=>{let t=new CustomEvent(c,d);x.addEventListener(c,j),x.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),x.removeEventListener(c,j),v.remove(S)},0)}}},[x,w,j,S]);let _=(0,o.useCallback)(e=>{if(!n&&!r||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=h(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]}(t),a=r&&o;a?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&m(o,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,S.paused]);return(0,o.createElement)(s.WV.div,(0,i.Z)({tabIndex:-1},y,{ref:k,onKeyDown:_}))});function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let v=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},26074:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,i=n(2784),o=n(64680);let a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.b)(()=>{e||n(e=>null!=e?e:String(s++))},[e]),e||(t?`radix-${t}`:"")}},6500:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(7896),i=n(2784),o=n(28316),a=n(72130);let s=(0,i.forwardRef)((e,t)=>{var n;let{container:s=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...l}=e;return s?o.createPortal((0,i.createElement)(a.WV.div,(0,r.Z)({},l,{ref:t})),s):null})},28245:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(2784),i=n(28316),o=n(26215),a=n(64680);let s=e=>{let{present:t,children:n}=e,s=function(e){var t;let[n,o]=(0,r.useState)(),s=(0,r.useRef)({}),u=(0,r.useRef)(e),c=(0,r.useRef)("none"),d=e?"mounted":"unmounted",[f,h]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},d));return(0,r.useEffect)(()=>{let e=l(s.current);c.current="mounted"===f?e:"none"},[f]),(0,a.b)(()=>{let t=s.current,n=u.current,r=n!==e;if(r){let r=c.current,i=l(t);e?h("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),u.current=e}},[e,h]),(0,a.b)(()=>{if(n){let e=e=>{let t=l(s.current),r=t.includes(e.animationName);e.target===n&&r&&(0,i.flushSync)(()=>h("ANIMATION_END"))},t=e=>{e.target===n&&(c.current=l(s.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(s.current=getComputedStyle(e)),o(e)},[])}}(t),u="function"==typeof n?n({present:s.isPresent}):r.Children.only(n),c=(0,o.e)(s.ref,u.ref),d="function"==typeof n;return d||s.isPresent?(0,r.cloneElement)(u,{ref:c}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}s.displayName="Presence"},72130:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return l}});var r=n(7896),i=n(2784),o=n(28316),a=n(99575);let s=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,i.forwardRef)((e,n)=>{let{asChild:o,...s}=e,l=o?a.g7:t;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(l,(0,r.Z)({},s,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&(0,o.flushSync)(()=>e.dispatchEvent(t))}},99575:function(e,t,n){"use strict";n.d(t,{A4:function(){return l},g7:function(){return a}});var r=n(7896),i=n(2784),o=n(26215);let a=(0,i.forwardRef)((e,t)=>{let{children:n,...o}=e,a=i.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(s,(0,r.Z)({},o,{ref:t}),n)});a.displayName="Slot";let s=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?n[r]=(...e)=>{null==o||o(...e),null==i||i(...e)}:"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,o.F)(t,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});s.displayName="SlotClone";let l=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===l}},86029:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}},73597:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(2784),i=n(86029);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[o]=n,a=(0,r.useRef)(o),s=(0,i.W)(t);return(0,r.useEffect)(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,u=(0,i.W)(n),c=(0,r.useCallback)(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u]);return[l,c]}},64680:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(2784);let i=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},25447:function(e,t,n){"use strict";e.exports=n(44868)},99550:function(e,t,n){"use strict";e.exports=n(22360)},6901:function(e,t,n){"use strict";e.exports=n(78476)},8669:function(e,t,n){"use strict";e.exports=n(19455)},53609:function(e,t,n){"use strict";e.exports=n(96721)},81401:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=e.children,n=void 0===t?s.default:t,p=e.axisClassName,v=e.hideAxisLine,g=e.hideTicks,y=e.hideZero,x=void 0!==y&&y,b=e.left,w=e.numTicks,j=void 0===w?10:w,E=e.orientation,k=void 0===E?d.default.bottom:E,S=e.rangePadding,_=void 0===S?0:S,C=e.scale,O=e.tickFormat,M=e.tickLength,T=void 0===M?8:M,A=e.tickValues,P=e.top,N=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,h),R=null!=O?O:(0,u.default)(C),D=k===d.default.left,L=k===d.default.top,F=L||k===d.default.bottom,z=(0,l.default)(C),V=D||L?-1:1,I=C.range(),Z=(0,f.default)(_),B=(0,c.default)({x:Number(I[0])+.5-Z.start,y:0},F),H=(0,c.default)({x:Number(I[I.length-1])+.5+Z.end,y:0},F),U=(null!=A?A:(0,a.getTicks)(C,j)).filter(function(e){return!x||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),W=U.map(function(e){var t=e.value,n=e.index,r=(0,a.coerceNumber)(z(t));return{value:t,index:n,from:(0,c.default)({x:r,y:0},F),to:(0,c.default)({x:r,y:T*V},F),formattedValue:R(t,n,U)}});return r.default.createElement(o.Group,{className:(0,i.default)("visx-axis",p),top:void 0===P?0:P,left:void 0===b?0:b},n(m({},N,{axisFromPoint:B,axisToPoint:H,hideAxisLine:void 0!==v&&v,hideTicks:void 0!==g&&g,hideZero:x,horizontal:F,numTicks:j,orientation:k,rangePadding:_,scale:C,tickFormat:R,tickLength:T,tickPosition:z,tickSign:V,ticks:W})))},p(n(13980));var r=p(n(2784)),i=p(n(72779)),o=n(71602),a=n(63243),s=p(n(58052)),l=p(n(71387)),u=p(n(16882)),c=p(n(89591)),d=p(n(87209)),f=p(n(31863)),h=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return(m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:a.default.bottom,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))};var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:a.default.left,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.leftTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-right",t),labelOffset:void 0===n?36:n,orientation:a.default.right,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.rightTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s);return r.default.createElement(o.default,u({axisClassName:(0,i.default)("visx-axis-top",t),labelOffset:void 0===n?8:n,orientation:a.default.top,tickLabelProps:void 0===l?c:l,tickLength:void 0===d?8:d},f))},t.topTickLabelProps=void 0;var r=l(n(2784)),i=l(n(72779)),o=l(n(81401)),a=l(n(87209)),s=["axisClassName","labelOffset","tickLabelProps","tickLength"];function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=a()).done;){var s=r.value,l=Math.sqrt(Math.pow(s.x-e.x,2)+Math.pow(s.y-e.y,2));l0)?(0,i.default)(e,t):{x:(0,r.default)(e.x,null!=(o=n.xMin)?o:-1/0,null!=(a=n.xMax)?a:1/0),y:(0,r.default)(e.y,null!=(s=n.yMin)?s:-1/0,null!=(l=n.yMax)?l:1/0)}};var r=o(n(30968)),i=o(n(98929));function o(e){return e&&e.__esModule?e:{default:e}}},32722:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,r.useMemo)(function(){if(!e)return[];var t=e.getCTM()||new DOMMatrix;return function(e,t,n){if(void 0===n&&(n=1),!e)return[];for(var r=[],i=e.getTotalLength(),o=0;o<=i;o+=n){var a=e.getPointAtLength(o).matrixTransform(t);r.push(a)}return r}(e,t)},[null==e?void 0:e.getTotalLength()])};var r=n(2784)},37016:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,r.useState)(e),n=t[0],i=t[1],o=(0,r.useRef)(null),a=(0,r.useCallback)(function(e,t){o.current=t||null,i(e)},[i]);return(0,r.useLayoutEffect)(function(){o.current&&(o.current(n),o.current=null)},[n]),[n,a]};var r=n(2784)},65319:function(e,t,n){"use strict";n.r(t),n.d(t,{localPoint:function(){return r.Z},touchPoint:function(){return i.Z}});var r=n(91032),i=n(49833)},91032:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(49833),i=n(44321);function o(e,t){if((0,i.kK)(e)&&t)return(0,r.Z)(e,t);if((0,i.cO)(e)){var n=e.target;if(n)return(0,r.Z)(n,e)}return null}},49833:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(19067),i=n(44321);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:o({},a);if((0,i.N5)(e))return{x:e.clientX,y:e.clientY};var t=null==e?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:o({},a)}(t),s=(0,i.vZ)(e)?e.ownerSVGElement:e,l=(0,i.DY)(s)?s.getScreenCTM():null;if((0,i.r4)(s)&&l){var u=s.createSVGPoint();return u.x=n.x,u.y=n.y,u=u.matrixTransform(l.inverse()),new r.Z({x:u.x,y:u.y})}var c=e.getBoundingClientRect();return new r.Z({x:n.x-c.left-e.clientLeft,y:n.y-c.top-e.clientTop})}},44321:function(e,t,n){"use strict";function r(e){return!!e&&e instanceof Element}function i(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function o(e){return!!e&&"createSVGPoint"in e}function a(e){return!!e&&"getScreenCTM"in e}function s(e){return!!e&&"changedTouches"in e}function l(e){return!!e&&"clientX"in e}function u(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}n.d(t,{DY:function(){return a},N5:function(){return l},cO:function(){return u},kK:function(){return r},r4:function(){return o},vZ:function(){return i},z6:function(){return s}})},21516:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),_=null!=E?E:(0,u.getTicks)(r,void 0===b?10:b),C=(null!=j?j:0)+(0,c.default)(r)/2,O=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+C;return{index:t,from:new l.Point({x:i,y:0}),to:new l.Point({x:i,y:f})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-columns",x),top:void 0===t?0:t,left:void 0===n?0:n},k?k({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:w},S))}))}p.propTypes={tickValues:r.default.array,height:r.default.number.isRequired}},34264:function(e,t,n){"use strict";t.__esModule=!0,t.default=p;var r=f(n(13980)),i=f(n(2784)),o=f(n(72779)),a=f(n(47440)),s=n(71602),l=n(61305),u=n(63243),c=f(n(12345)),d=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function f(e){return e&&e.__esModule?e:{default:e}}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),_=null!=k?k:(0,u.getTicks)(r,void 0===w?10:w),C=(null!=E?E:0)+(0,c.default)(r)/2,O=_.map(function(e,t){var n,i=(null!=(n=(0,u.coerceNumber)(r(e)))?n:0)+C;return{index:t,from:new l.Point({x:0,y:i}),to:new l.Point({x:f,y:i})}});return i.default.createElement(s.Group,{className:(0,o.default)("visx-rows",x),top:void 0===t?0:t,left:void 0===n?0:n},b?b({lines:O}):O.map(function(e){var t=e.from,n=e.to,r=e.index;return i.default.createElement(a.default,h({key:"row-line-"+r,from:t,to:n,stroke:m,strokeWidth:g,strokeDasharray:y,style:j},S))}))}p.propTypes={tickValues:r.default.array,width:r.default.number.isRequired}},12345:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){return"bandwidth"in e?e.bandwidth():0}},59309:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(13980),i=n.n(r),o=n(2784),a=n(72779),s=n.n(a),l=["top","left","transform","className","children","innerRef"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l);return o.createElement("g",u({ref:c,className:s()("visx-group",i),transform:r||"translate("+(void 0===n?0:n)+", "+(void 0===t?0:t)+")"},d),a)}c.propTypes={top:i().number,left:i().number,transform:i().string,className:i().string,children:i().node,innerRef:i().oneOfType([i().string,i().func,i().object])}},71602:function(e,t,n){"use strict";n.r(t),n.d(t,{Group:function(){return r.Z}});var r=n(59309)},19067:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(){function e(e){var t=e.x,n=e.y;this.x=0,this.y=0,this.x=void 0===t?0:t,this.y=void 0===n?0:n}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}()},61305:function(e,t,n){"use strict";n.r(t),n.d(t,{Point:function(){return r.Z},subtractPoints:function(){return o},sumPoints:function(){return i}});var r=n(19067);function i(e,t){return new r.Z({x:e.x+t.x,y:e.y+t.y})}function o(e,t){return new r.Z({x:e.x-t.x,y:e.y-t.y})}},93125:function(e,t,n){"use strict";t.Z=function(e){var t=e.animationTrajectory,n=e.tickComponent,s=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),l=(0,r.useMemo)(function(){return function(e){return r.default.createElement(o.default,u({},e,{tickComponent:n,animationTrajectory:t}))}},[t,n]);return r.default.createElement(i.default,u({},s,{ticksComponent:l}))},l(n(13980));var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(n(2784)),i=l(n(81401)),o=l(n(65154)),a=["animationTrajectory","tickComponent"];function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e){return e&&e.__esModule?e:{default:e}}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,height:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"x",lineKey:function(e){var t,n;return"column-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.x)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(21516)),o=s(n(55727)),a=["scale","height","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),h=(0,o.useTransition)(n,u({},(0,a.default)({scale:t,animateXOrY:l,animationTrajectory:r}),{key:c}));return i.default.createElement(i.default.Fragment,null,h(function(e,t,n){var r=e.fromX,a=e.toX,s=e.fromY,l=e.toY,c=e.opacity,h=n.key;return i.default.createElement(o.animated.line,u({key:h,x1:r,x2:a,y1:s,y2:l,strokeOpacity:c,style:d},f))}))}c.propTypes={lineKey:r.default.func.isRequired}},93353:function(e,t,n){"use strict";t.Z=function(e){var t=e.scale,n=e.width,s=e.numTicks,u=e.tickValues,c=(e.offset,e.className),d=e.animationTrajectory,f=e.top,h=e.left,p=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a);return r.default.createElement(i.default,{scale:t,width:n,numTicks:s,tickValues:u,className:c,top:f,left:h},function(e){var n=e.lines;return r.default.createElement(o.default,l({scale:t,lines:n,animationTrajectory:d,animateXOrY:"y",lineKey:function(e){var t,n;return"row-"+(null!=(t=null==e?void 0:null==(n=e.from)?void 0:n.y)?t:"")+"-"+e.index}},p))})};var r=s(n(2784)),i=s(n(34264)),o=s(n(55727)),a=["scale","width","numTicks","tickValues","offset","className","animationTrajectory","top","left"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,o.useRef)(null),y=(0,o.useRef)(0),x=(0,o.useState)({width:0,height:0,top:0,left:0}),b=x[0],w=x[1],j=(0,o.useMemo)(function(){var e=Array.isArray(f)?f:[f];return(0,i.default)(function(t){w(function(n){return Object.keys(n).filter(function(e){return n[e]!==t[e]}).every(function(t){return e.includes(t)})?n:t})},l,{leading:m})},[l,m,f]);return(0,o.useEffect)(function(){var e=new a.ResizeObserver(function(e){void 0===e&&(e=[]),e.forEach(function(e){var t=e.contentRect,n=t.left,r=t.top,i=t.width,o=t.height;y.current=window.requestAnimationFrame(function(){j({width:i,height:o,top:r,left:n})})})});return g.current&&e.observe(g.current),function(){window.cancelAnimationFrame(y.current),e.disconnect(),null!=j&&j.cancel&&j.cancel()}},[j]),o.default.createElement("div",c({style:void 0===h?{width:"100%",height:"100%"}:h,ref:g,className:t},v),n(c({},b,{ref:g.current,resize:j})))}f.propTypes={className:r.default.string,debounceTime:r.default.number,enableDebounceLeadingCall:r.default.bool,ignoreDimensions:r.default.oneOfType([r.default.any,r.default.arrayOf(r.default.any)]),children:r.default.func.isRequired}},2663:function(e,t,n){"use strict";var r=n(8597),i=n(12430),o=n(70590),a=n(50630),s=n(34278),l=n(64183),u=n(61662),c=n(43634),d=n(73335),f=n(54229),h=n(30558),p=n(71646),m=n(26587);t.Z=function(e){if(void 0!==e&&"type"in e)switch(e.type){case"linear":break;case"log":return(0,i.Z)(e);case"pow":return(0,o.Z)(e);case"sqrt":return(0,a.Z)(e);case"symlog":return(0,s.Z)(e);case"time":return(0,l.Z)(e);case"utc":return(0,u.Z)(e);case"quantile":return(0,c.Z)(e);case"quantize":return(0,d.Z)(e);case"threshold":return(0,f.Z)(e);case"ordinal":return(0,h.Z)(e);case"point":return(0,p.Z)(e);case"band":return(0,m.Z)(e)}return(0,r.Z)(e)}},63243:function(e,t,n){"use strict";n.r(t),n.d(t,{coerceNumber:function(){return S.Z},createScale:function(){return b.Z},getTicks:function(){return _.Z},inferScaleType:function(){return k},scaleBand:function(){return r.Z},scaleCanBeZeroed:function(){return O.Z},scaleLinear:function(){return o.Z},scaleLog:function(){return f.Z},scaleOrdinal:function(){return p.Z},scalePoint:function(){return i.Z},scalePower:function(){return h.Z},scaleQuantile:function(){return v.Z},scaleQuantize:function(){return m.Z},scaleRadial:function(){return u},scaleSqrt:function(){return x.Z},scaleSymlog:function(){return g.Z},scaleThreshold:function(){return y.Z},scaleTime:function(){return c.Z},scaleUtc:function(){return d.Z},toString:function(){return C.Z},updateScale:function(){return j}});var r=n(26587),i=n(71646),o=n(8597),a=n(19637),s=n(25176),l=(0,s.Z)("domain","range","clamp","nice","round","unknown");function u(e){return l((0,a.Z)(),e)}var c=n(64183),d=n(61662),f=n(12430),h=n(70590),p=n(30558),m=n(73335),v=n(43634),g=n(34278),y=n(54229),x=n(50630),b=n(2663),w=s.Z.apply(void 0,s.a),j=function(e,t){return w(e.copy(),t)},E=n(40668);function k(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?.5===e.exponent()?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?(0,E.Z)(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}var S=n(28142),_=n(71220),C=n(51519),O=n(34636)},25176:function(e,t,n){"use strict";n.d(t,{a:function(){return _},Z:function(){return O}});var r=n(88751),i=n(87286),o=n(43780),a=n(77636),s=n(78978),l={lab:r.Z,hcl:i.Z,"hcl-long":i.b,hsl:o.Z,"hsl-long":o.q,cubehelix:a.Z,"cubehelix-long":a.B,rgb:s.ZP},u=n(68603),c=n(54076),d=n(18450),f=n(50690),h=n(52546),p=n(76231),m=n(97344),v=n(12370),g=n(28239),y=n(52004),x=n(94758),b=n(97631),w=n(2908),j=n(40668),E={day:u.Z,hour:c.Z,minute:d.Z,month:f.Z,second:h.Z,week:p.OM,year:m.Z},k={day:v.Z,hour:g.Z,minute:y.Z,month:x.Z,second:h.Z,week:b.Ox,year:w.Z},S=n(74672),_=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],C={domain:function(e,t){t.domain&&e.domain(t.domain)},nice:function(e,t){if("nice"in t&&void 0!==t.nice&&"nice"in e){var n=t.nice;if("boolean"==typeof n)n&&e.nice();else if("number"==typeof n)e.nice(n);else{var r=(0,j.Z)(e);if("string"==typeof n)e.nice(r?k[n]:E[n]);else{var i=n.interval,o=n.step,a=(r?k[i]:E[i]).every(o);null!=a&&e.nice(a)}}}},zero:function(e,t){if("zero"in t&&!0===t.zero){var n=e.domain(),r=n[0],i=n[1],o=i=0||(i[n]=e[n]);return i}(e,s),y=(0,a.Nb)({innerRadius:i,outerRadius:u,cornerRadius:c,startAngle:d,endAngle:f,padAngle:h,padRadius:p});return m?r.createElement(r.Fragment,null,m({path:y})):n||null!=d&&null!=f&&null!=i&&null!=u?r.createElement("path",l({ref:v,className:o()("visx-arc",t),d:y(n)||""},g)):(console.warn("[@visx/shape/Arc]: expected data because one of startAngle, endAngle, innerRadius, outerRadius is undefined. Bailing."),null)}var c=n(59309),d=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,d),_=(0,a.Nb)({innerRadius:void 0===u?0:u,outerRadius:h,cornerRadius:p,padRadius:y}),C=(0,a.ve)({startAngle:m,endAngle:v,padAngle:g,value:w,sort:x,sortValues:b}),O=C(void 0===s?[]:s);return j?r.createElement(r.Fragment,null,j({arcs:O,path:_,pie:C})):r.createElement(c.Z,{className:"visx-pie-arcs-group",top:n,left:i},O.map(function(e,n){return r.createElement("g",{key:"pie-arc-"+n},r.createElement("path",f({className:o()("visx-pie-arc",t),d:_(e)||"",fill:null==k||"string"==typeof k?k:k(e)},S)),null==l?void 0:l(_.centroid(e),e))}))}var p=n(63739),m=n(27079),v=["className","angle","radius","defined","curve","data","innerRef","children","fill"];function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v),m=(0,a.aJ)({angle:n,radius:i,defined:s,curve:l});return f?r.createElement(r.Fragment,null,f({path:m})):r.createElement("path",g({ref:d,className:o()("visx-line-radial",t),d:m(c)||"",fill:void 0===h?"transparent":h},p))}var x=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,x),y=(0,a.SO)({x:n,x0:i,x1:s,y:l,y0:u,y1:c,defined:void 0===h?function(){return!0}:h,curve:m});return t?r.createElement(r.Fragment,null,t({path:y})):r.createElement("path",b({ref:v,className:o()("visx-area",p),d:y(f)||""},g))}var j=n(55746),E=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,E),S=(0,a.kn)({keys:s,value:g,order:y,offset:x}),_=(0,a.SO)({x:f,x0:h,x1:p,y0:m,y1:v,curve:u,defined:d}),C=S(l);return w?r.createElement(r.Fragment,null,w({stacks:C,path:_,stack:S})):r.createElement(c.Z,{top:n,left:i},C.map(function(e,n){return r.createElement("path",k({className:o()("visx-stack",t),key:"stack-"+n+"-"+(e.key||""),d:_(e)||"",fill:null==b?void 0:b(e.key,n)},j))}))}var _=["className","top","left","keys","data","curve","defined","x","x0","x1","y0","y1","value","order","offset","color","children"];function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,_);return r.createElement(S,C({className:t,top:n,left:i,keys:a,data:s,curve:l,defined:u,x:c,x0:d,x1:f,y0:h,y1:p,value:m,order:v,offset:g,color:y},b),x||function(e){var n=e.stacks,i=e.path;return n.map(function(e,n){return r.createElement("path",C({className:o()("visx-area-stack",t),key:"area-stack-"+n+"-"+(e.key||""),d:i(e)||"",fill:null==y?void 0:y(e.key,n)},b))})})}var M=n(14582),T=n(10897);function A(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}var P=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,P),g=A(u),y=t.map(function(e,t){return{index:t,x0:l(s(e)),bars:h.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,width:g,x:u(t)||0,y:d(r)||0,color:f(t,n),height:p-(d(r)||0)}})}});return m?r.createElement(r.Fragment,null,m(y)):r.createElement(c.Z,{className:o()("visx-bar-group",n),top:i,left:a},y.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map(function(t){return r.createElement(M.Z,N({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},v))}))}))}var D=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function L(){return(L=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,D),y=A(f),x=t.map(function(e,t){return{index:t,y0:d(u(e))||0,bars:m.map(function(t,n){var r=e[t];return{index:n,key:t,value:r,height:y,x:l(r)||0,y:f(t)||0,color:p(t,n),width:h(r)||0}})}});return v?r.createElement(r.Fragment,null,v(x)):r.createElement(c.Z,{className:o()("visx-bar-group-horizontal",n),top:i,left:a},x.map(function(e){return r.createElement(c.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map(function(t){return r.createElement(M.Z,L({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},g))}))}))}var z=n(98926);function V(e){return"number"==typeof(null==e?void 0:e.x)?null==e?void 0:e.x:0}function I(e){return"number"==typeof(null==e?void 0:e.y)?null==e?void 0:e.y:0}function Z(e){return null==e?void 0:e.source}function B(e){return null==e?void 0:e.target}function H(e){return null==e?void 0:e[0]}function U(e){return null==e?void 0:e[1]}var W=n(26078),q=n(44081),$=n(30382),K=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,K),j=(0,z.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),x&&j.offset((0,$.ZP)(x));var E=j(t),k=A(h),S=E.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(p(u(t))||0)-(p(f(t))||0),o=p(f(t)),a="bandwidth"in h?h(s(t.data)):Math.max((h(s(t.data))||0)-k/2);return{bar:t,key:n,index:r,height:i,width:k,x:a||0,y:o||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(S)):r.createElement(c.Z,{className:o()("visx-bar-stack",n),top:i,left:a},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,Y({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var X=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function J(){return(J=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,X),j=(0,z.Z)();v&&j.keys(v),g&&(0,W.Z)(j.value,g),y&&j.order((0,q.ZP)(y)),x&&j.offset((0,$.ZP)(x));var E=j(t),k=A(p),S=E.map(function(e,t){var n=e.key;return{index:t,key:n,bars:e.map(function(t,r){var i=(h(f(t))||0)-(h(u(t))||0),o=h(u(t)),a="bandwidth"in p?p(s(t.data)):Math.max((p(s(t.data))||0)-i/2);return{bar:t,key:n,index:r,height:k,width:i,x:o||0,y:a||0,color:m(e.key,r)}})}});return b?r.createElement(r.Fragment,null,b(S)):r.createElement(c.Z,{className:o()("visx-bar-stack-horizontal",n),top:i,left:a},S.map(function(e){return e.bars.map(function(t){return r.createElement(M.Z,J({key:"bar-stack-"+e.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},w))})}))}var ee=function(e){return Math.PI/180*e},et=n(72215),en=["className","children","data","innerRef","path","x","y","source","target"];function er(){return(er=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,en),h=s||ei({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",er({ref:a,className:o()("visx-link visx-link-horizontal-diagonal",t),d:h(i)||""},f))}var ea=["className","children","data","innerRef","path","x","y","source","target"];function es(){return(es=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ea),h=s||el({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",es({ref:a,className:o()("visx-link visx-link-vertical-diagonal",t),d:h(i)||""},f))}var ec=["className","children","data","innerRef","path","angle","radius","source","target"];function ed(){return(ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ec),h=s||ef({source:void 0===c?Z:c,target:void 0===d?B:d,angle:void 0===l?V:l,radius:void 0===u?I:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",ed({ref:a,className:o()("visx-link visx-link-radial-diagonal",t),d:h(i)||""},f))}var ep=n(91672),em=["className","children","data","innerRef","path","percent","x","y","source","target"];function ev(){return(ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,em),p=s||eg({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?I:u,y:void 0===c?V:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ev({ref:a,className:o()("visx-link visx-link-horizontal-curve",t),d:p(i)||""},h))}var ex=["className","children","data","innerRef","path","percent","x","y","source","target"];function eb(){return(eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ex),p=s||ew({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",eb({ref:a,className:o()("visx-link visx-link-vertical-curve",t),d:p(i)||""},h))}var eE=["className","children","data","innerRef","path","percent","x","y","source","target"];function ek(){return(ek=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eE),p=s||eS({source:void 0===d?Z:d,target:void 0===f?B:f,x:void 0===u?V:u,y:void 0===c?I:c,percent:void 0===l?.2:l});return n?r.createElement(r.Fragment,null,n({path:p})):r.createElement("path",ek({ref:a,className:o()("visx-link visx-link-radial-curve",t),d:p(i)||""},h))}var eC=["className","children","innerRef","data","path","x","y","source","target"];function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eC),h=s||eM({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?V:u});return n?r.createElement(r.Fragment,null,n({path:h})):r.createElement("path",eO({ref:i,className:o()("visx-link visx-link-horizontal-line",t),d:h(a)||""},f))}var eA=["className","innerRef","data","path","x","y","source","target","children"];function eP(){return(eP=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eA),h=a||eN({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eP({ref:n,className:o()("visx-link visx-link-vertical-line",t),d:h(i)||""},f))}var eD=["className","innerRef","data","path","x","y","source","target","children"];function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eD),h=a||eF({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eL({ref:n,className:o()("visx-link visx-link-radial-line",t),d:h(i)||""},f))}var eV=["className","innerRef","data","path","percent","x","y","source","target","children"];function eI(){return(eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eV),p=a||eZ({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?I:l,y:void 0===u?V:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eI({ref:n,className:o()("visx-link visx-link-horizontal-step",t),d:p(i)||""},h))}var eH=["className","innerRef","data","path","percent","x","y","source","target","children"];function eU(){return(eU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eH),p=a||eW({source:void 0===c?Z:c,target:void 0===d?B:d,x:void 0===l?V:l,y:void 0===u?I:u,percent:void 0===s?.5:s});return f?r.createElement(r.Fragment,null,f({path:p})):r.createElement("path",eU({ref:n,className:o()("visx-link visx-link-vertical-step",t),d:p(i)||""},h))}var e$=["className","innerRef","data","path","x","y","source","target","children"];function eK(){return(eK=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.PI?f<=d:f>d)?1:0)+","+l*h+","+l*p+"\n L"+c*h+","+c*p+"\n "}}function eG(e){var t=e.className,n=e.innerRef,i=e.data,a=e.path,s=e.x,l=e.y,u=e.source,c=e.target,d=e.children,f=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,e$),h=a||eY({source:void 0===u?Z:u,target:void 0===c?B:c,x:void 0===s?V:s,y:void 0===l?I:l});return d?r.createElement(r.Fragment,null,d({path:h})):r.createElement("path",eK({ref:n,className:o()("visx-link visx-link-radial-step",t),d:h(i)||""},f))}var eX=["sides","size","center","rotate","className","children","innerRef","points"];function eJ(){return(eJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,eX),f=c||e1({sides:void 0===t?4:t,size:void 0===n?25:n,center:void 0===i?eQ:i,rotate:void 0===a?0:a}).map(function(e){return[e.x,e.y]});return l?r.createElement(r.Fragment,null,l({points:f})):r.createElement("polygon",eJ({ref:u,className:o()("visx-polygon",s),points:f.join(" ")},d))}var e4=["className","innerRef"];function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,e4);return r.createElement("circle",e3({ref:n,className:o()("visx-circle",t)},i))}var e6=n(13980),e8=n.n(e6),e7="http://www.w3.org/2000/svg",e9=function(){return!0};function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;tf[i]?d.map(function(e){return void 0===e?e9:function(t){return t>=e}}):d.map(function(e){return void 0===e?e9:function(t){return t<=e}}),p=0,m=0;m<=l;m+=a){for(var v=s.getPointAtLength(m),g=v[i];p=w[k+1];)k+=1;c[k].push(_)}}return c}catch(e){return[]}}({path:p,segmentation:s,pointsInSegments:h,sampleRate:l})},[p,s,h,l]);return r.createElement("g",null,v.map(function(e,i){return t?r.createElement(r.Fragment,{key:i},t({index:i,segment:e,styles:f[i]||f[i%f.length]})):r.createElement(m.Z,te({key:i,className:n,data:e,x:tt,y:tn},f[i]||f[i%f.length]))}))}tr.propTypes={segments:e8().arrayOf(e8().array).isRequired,styles:e8().array.isRequired,children:e8().func,className:e8().string}},55746:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(72779),o=n.n(i),a=n(26078),s=n(52511),l=["x","x0","x1","y","y1","y0","yScale","data","defined","className","curve","innerRef","children"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,l),j=(0,s.SO)({x:t,x0:n,x1:i,defined:void 0===v?function(){return!0}:v,curve:y});return(null==f?j.y0(h.range()[0]):(0,a.Z)(j.y0,f),c&&!d&&(0,a.Z)(j.y1,c),d&&!c&&(0,a.Z)(j.y1,d),b)?r.createElement(r.Fragment,null,b({path:j})):r.createElement("path",u({ref:x,className:o()("visx-area-closed",g),d:j(m)||""},w))}},14582:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a);return r.createElement("rect",s({ref:n,className:o()("visx-bar",t)},i))}},10897:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["children","className","innerRef","x","y","width","height","radius","all","top","bottom","left","right","topLeft","topRight","bottomLeft","bottomRight"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),V=(n=(t={x:k,y:S,width:_,height:C,radius:O,all:void 0!==M&&M,top:void 0!==T&&T,bottom:void 0!==A&&A,left:void 0!==P&&P,right:void 0!==N&&N,topLeft:void 0!==R&&R,topRight:void 0!==D&&D,bottomLeft:void 0!==L&&L,bottomRight:void 0!==F&&F}).all,i=t.bottom,l=t.bottomLeft,u=t.bottomRight,c=t.height,d=t.left,f=t.radius,h=t.right,p=t.top,m=t.topLeft,v=t.topRight,g=t.width,y=t.x,x=t.y,v=n||p||h||v,u=n||i||h||u,l=n||i||d||l,m=n||p||d||m,b=2*(f=Math.max(1,Math.min(f,Math.min(g,c)/2))),("M"+(y+f)+","+x+" h"+(g-b)+"\n "+(v?"a"+f+","+f+" 0 0 1 "+f+","+f:"h"+f+"v"+f)+"\n v"+(c-b)+"\n "+(u?"a"+f+","+f+" 0 0 1 "+-f+","+f:"v"+f+"h"+-f)+"\n h"+(b-g)+"\n "+(l?"a"+f+","+f+" 0 0 1 "+-f+","+-f:"h"+-f+"v"+-f)+"\n v"+(b-c)+"\n "+(m?"a"+f+","+f+" 0 0 1 "+f+","+-f:"v"+-f+"h"+f)+"\nz").split("\n").join(""));return w?r.createElement(r.Fragment,null,w({path:V})):r.createElement("path",s({ref:E,className:o()("visx-bar-rounded",j),d:V},z))}},63739:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2784),i=n(72779),o=n.n(i),a=["from","to","fill","className","innerRef"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),h=n.x===l.x||n.y===l.y;return r.createElement("line",s({ref:d,className:o()("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))}},27079:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2784),i=n(72779),o=n.n(i),a=n(52511),s=["children","data","x","y","fill","className","curve","innerRef","defined"];function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,s),g=(0,a.jv)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",l({ref:p,className:o()("visx-linepath",f),d:g(i)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))}},52511:function(e,t,n){"use strict";n.d(t,{Nb:function(){return f},SO:function(){return h},aJ:function(){return v},jv:function(){return p},kn:function(){return g},ve:function(){return m}});var r=n(38764),i=n(12235),o=n(79767),a=n(69619),s=n(8329),l=n(98926),u=n(26078),c=n(44081),d=n(30382);function f(e){var t=void 0===e?{}:e,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.startAngle,s=t.endAngle,l=t.padAngle,c=t.padRadius,d=(0,r.Z)();return null!=n&&(0,u.Z)(d.innerRadius,n),null!=i&&(0,u.Z)(d.outerRadius,i),null!=o&&(0,u.Z)(d.cornerRadius,o),null!=a&&(0,u.Z)(d.startAngle,a),null!=s&&(0,u.Z)(d.endAngle,s),null!=l&&(0,u.Z)(d.padAngle,l),null!=c&&(0,u.Z)(d.padRadius,c),d}function h(e){var t=void 0===e?{}:e,n=t.x,r=t.x0,o=t.x1,a=t.y,s=t.y0,l=t.y1,c=t.defined,d=t.curve,f=(0,i.Z)();return n&&(0,u.Z)(f.x,n),r&&(0,u.Z)(f.x0,r),o&&(0,u.Z)(f.x1,o),a&&(0,u.Z)(f.y,a),s&&(0,u.Z)(f.y0,s),l&&(0,u.Z)(f.y1,l),c&&f.defined(c),d&&f.curve(d),f}function p(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,a=t.curve,s=(0,o.Z)();return n&&(0,u.Z)(s.x,n),r&&(0,u.Z)(s.y,r),i&&s.defined(i),a&&s.curve(a),s}function m(e){var t=void 0===e?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,s=t.sort,l=t.sortValues,c=(0,a.Z)();return null===s?c.sort(s):null!=s&&c.sort(s),null===l?c.sortValues(l):null!=l&&c.sortValues(l),null!=o&&c.value(o),null!=i&&(0,u.Z)(c.padAngle,i),null!=n&&(0,u.Z)(c.startAngle,n),null!=r&&(0,u.Z)(c.endAngle,r),c}function v(e){var t=void 0===e?{}:e,n=t.angle,r=t.radius,i=t.defined,o=t.curve,a=(0,s.Z)();return n&&(0,u.Z)(a.angle,n),r&&(0,u.Z)(a.radius,r),i&&a.defined(i),o&&a.curve(o),a}function g(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,o=(0,l.Z)();return t&&o.keys(t),n&&(0,u.Z)(o.value,n),r&&o.order((0,c.ZP)(r)),i&&o.offset((0,d.ZP)(i)),o}},26078:function(e,t,n){"use strict";function r(e,t){e(t)}n.d(t,{Z:function(){return r}})},30382:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},ed:function(){return u},nW:function(){return l}});var r=n(22254),i=n(76751),o=n(90541),a=n(36538),s=n(34928),l={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:a.Z,wiggle:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},44081:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},s2:function(){return u},un:function(){return l}});var r=n(19721),i=n(82564),o=n(12197),a=n(81182),s=n(40277),l={ascending:r.Z,descending:i.Z,insideout:o.Z,none:a.Z,reverse:s.Z},u=Object.keys(l);function c(e){return e&&l[e]||l.none}},12935:function(e,t,n){"use strict";t.Z=function(e){var t=e.children,n=e.x,s=e.x0,u=e.x1,c=e.y,d=e.y0,f=e.y1,h=e.data,p=void 0===h?[]:h,m=e.defined,v=e.className,g=e.curve,y=e.innerRef,x=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,a),b=(0,o.area)({x:n,x0:s,x1:u,y:c,y0:d,y1:f,defined:void 0===m?function(){return!0}:m,curve:g});return t?r.default.createElement(r.default.Fragment,null,t({path:b})):r.default.createElement("path",l({ref:y,className:(0,i.default)("visx-area",v),d:b(p)||""},x))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o),h=n.x===l.x||n.y===l.y;return r.default.createElement("line",s({ref:d,className:(0,i.default)("visx-line",c),x1:n.x,y1:n.y,x2:l.x,y2:l.y,fill:void 0===u?"transparent":u,shapeRendering:h?"crispEdges":"auto"},f))};var r=a(n(2784)),i=a(n(72779)),o=["from","to","fill","className","innerRef"];function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,a),g=(0,o.line)({x:u,y:c,defined:void 0===m?function(){return!0}:m,curve:h});return t?r.default.createElement(r.default.Fragment,null,t({path:g})):r.default.createElement("path",l({ref:p,className:(0,i.default)("visx-linepath",f),d:g(s)||"",fill:void 0===d?"transparent":d,strokeLinecap:"round"},v))};var r=s(n(2784)),i=s(n(72779)),o=n(15601),a=["children","data","x","y","fill","className","curve","innerRef","defined"];function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,o)),p=h.x,m=void 0===p?0:p,v=h.fontSize,g=(0,i.Z)(e),y=g.wordsByLines,x=g.startDy,b=g.transform;return r.createElement("svg",{ref:u,x:void 0===t?0:t,y:void 0===n?0:n,fontSize:v,style:s},y.length>0?r.createElement("text",a({ref:c,transform:b},h,{textAnchor:void 0===l?"start":l}),y.map(function(e,t){return r.createElement("tspan",{key:t,x:m,dy:0===t?x:f},e.words.join(" "))})):null)}},89907:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(2784),i=n(32718),o=n.n(i),a=n(75715),s=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function l(e){return"number"==typeof e}function u(e){return"number"==typeof e&&Number.isFinite(e)||"string"==typeof e}function c(e){var t=e.verticalAnchor,n=void 0===t?"end":t,i=e.scaleToFit,c=void 0!==i&&i,d=e.angle,f=e.width,h=e.lineHeight,p=void 0===h?"1em":h,m=e.capHeight,v=void 0===m?"0.71em":m,g=e.children,y=e.style,x=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,s),b=x.x,w=void 0===b?0:b,j=x.y,E=void 0===j?0:j,k=!u(w)||!u(E),S=(0,r.useMemo)(function(){return{wordsWithWidth:(null==g?[]:g.toString().split(/(?:(?!\u00A0+)\s+)/)).map(function(e){return{word:e,wordWidth:(0,a.Z)(e,y)||0}}),spaceWidth:(0,a.Z)("\xa0",y)||0}},[g,y]),_=S.wordsWithWidth,C=S.spaceWidth,O=(0,r.useMemo)(function(){return k?[]:f||c?_.reduce(function(e,t){var n=t.word,r=t.wordWidth,i=e[e.length-1];return i&&(null==f||c||(i.width||0)+r+C0){var t=O[0].width||1,n="shrink-only"===c?Math.min(f/t,1):f/t,r=w-n*w,i=E-n*E;e.push("matrix("+n+", 0, 0, "+n+", "+r+", "+i+")")}return d&&e.push("rotate("+d+", "+w+", "+E+")"),e.length>0?e.join(" "):""},[k,w,E,f,c,O,d]);return{wordsByLines:O,startDy:M,transform:T}}},44425:function(e,t,n){"use strict";n.r(t),n.d(t,{Text:function(){return r.Z},getStringWidth:function(){return i.Z},useText:function(){return o.Z}});var r=n(64170),i=n(75715),o=n(89907)},75715:function(e,t,n){"use strict";var r=n(30733),i=n.n(r),o="__react_svg_text_measurement_id";t.Z=i()(function(e,t){try{var n=document.getElementById(o);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",(n=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("id",o),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch(e){return null}},function(e,t){return e+"_"+JSON.stringify(t)})},49732:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=new WeakMap,i=new WeakMap,o={},a=0,s=function(e,t,n){void 0===t&&(t="undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body),void 0===n&&(n="data-aria-hidden");var s=Array.isArray(e)?e:[e];o[n]||(o[n]=new WeakMap);var l=o[n],u=[],c=new Set,d=function(e){!e||c.has(e)||(c.add(e),d(e.parentNode))};s.forEach(d);var f=function(e){!e||s.indexOf(e)>=0||Array.prototype.forEach.call(e.children,function(e){if(c.has(e))f(e);else{var t=e.getAttribute("aria-hidden"),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(l.get(e)||0)+1;r.set(e,a),l.set(e,s),u.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute("aria-hidden","true")}})};return f(t),c.clear(),a++,function(){u.forEach(function(e){var t=r.get(e)-1,o=l.get(e)-1;r.set(e,t),l.set(e,o),t||(i.has(e)||e.removeAttribute("aria-hidden"),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}}},30387:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t})}return!0}},89644:function(e,t,n){e.exports=n(25644)},70353:function(e,t,n){"use strict";var r=n(93044),i=n(86955),o=n(92233),a=n(68030),s=n(97948),l=n(51875),u=n(60842),c=n(98560),d=n(21218),f=n(68047),h=n(10738);e.exports=function(e){return new Promise(function(t,n){var p,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete v["Content-Type"];var x=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var j=s(e.baseURL,e.url);function E(){if(x){var r="getAllResponseHeaders"in x?l(x.getAllResponseHeaders()):null;i(function(e){t(e),y()},function(e){n(e),y()},{data:g&&"text"!==g&&"json"!==g?x.response:x.responseText,status:x.status,statusText:x.statusText,headers:r,config:e,request:x}),x=null}}if(x.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),x.timeout=e.timeout,"onloadend"in x?x.onloadend=E:x.onreadystatechange=function(){x&&4===x.readyState&&(0!==x.status||x.responseURL&&0===x.responseURL.indexOf("file:"))&&setTimeout(E)},x.onabort=function(){x&&(n(new d("Request aborted",d.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,x,x)),x=null},x.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,x)),x=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(j))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(v[e.xsrfHeaderName]=k)}"setRequestHeader"in x&&r.forEach(v,function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete v[t]:x.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(x.withCredentials=!!e.withCredentials),g&&"json"!==g&&(x.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&x.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&x.upload&&x.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){x&&(n(!e||e&&e.type?new f:e),x.abort(),x=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var S=h(j);if(S&&-1===["http","https","file"].indexOf(S)){n(new d("Unsupported protocol "+S+":",d.ERR_BAD_REQUEST,e));return}x.send(m)})}},25644:function(e,t,n){"use strict";var r=n(93044),i=n(73644),o=n(62215),a=n(92937),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(10663));s.Axios=o,s.CanceledError=n(68047),s.CancelToken=n(34089),s.isCancel=n(98041),s.VERSION=n(29241).version,s.toFormData=n(49027),s.AxiosError=n(21218),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(70783),s.isAxiosError=n(65587),e.exports=s,e.exports.default=s},34089:function(e,t,n){"use strict";var r=n(68047);function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function(e){f.headers[e]={}}),o.forEach(["post","put","patch"],function(e){f.headers[e]=o.merge(c)}),e.exports=f},98560:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},29241:function(e){e.exports={version:"0.27.2"}},73644:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r=0)&&("set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([n]):a[t]=a[t]?a[t]+", "+n:n)}),a}},10738:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},70783:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},49027:function(e,t,n){"use strict";var r=n(48834).lW,i=n(93044);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return!function e(r,a){if(i.isPlainObject(r)||i.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+a);n.push(r),i.forEach(r,function(n,r){if(!i.isUndefined(n)){var s,l=a?a+"."+r:r;if(n&&!a&&"object"==typeof n){if(i.endsWith(r,"{}"))n=JSON.stringify(n);else if(i.endsWith(r,"[]")&&(s=i.toArray(n))){s.forEach(function(e){i.isUndefined(e)||t.append(l,o(e))});return}}e(n,l)}}),n.pop()}else t.append(a,o(r))}(e),t}},17525:function(e,t,n){"use strict";var r=n(29241).version,i=n(21218),o={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new i("option "+a+" must be "+u,i.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},93044:function(e,t,n){"use strict";var r,i,o=n(73644),a=Object.prototype.toString,s=(r=Object.create(null),function(e){var t=a.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var d=l("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function h(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=l("Date"),m=l("File"),v=l("Blob"),g=l("FileList");function y(e){return"[object Function]"===a.call(e)}var x=l("URLSearchParams");function b(e,t){if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:l,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return -1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:g}},82294:function(e){"use strict";function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){if(e===t)return[l,u];for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},95766:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],u=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},6391:function(e,t,n){var r;!function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,l=Math.floor,u="[BigNumber Error] ",c=u+"Number primitive has more than 15 significant digits: ",d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function f(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,n,r=1,i=e.length,o=e[0]+"";ru^n?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;ao[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function m(e,t,n,r){if(en||e!==l(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return f(e.e/14)==t&&e.c[t]%2!=0}function g(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function y(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else tA?h.c=h.e=null:e.e=10;s/=10,o++);o>A?h.c=h.e=null:(h.e=o,h.c=[e]);return}f=String(e)}else{if(!a.test(f=String(e)))return E(h,f,u);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(o=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(o<0&&(o=s),o+=+f.slice(s+1),f=f.substring(0,s)):o<0&&(o=f.length)}else{if(m(t,2,L.length,"Base"),10==t&&F)return B(h=new z(e),_+h.e+1,C);if(f=String(e),u="number"==typeof e){if(0*e!=0)return E(h,f,u,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,z.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=L.slice(0,t),o=s=0,d=f.length;sn.indexOf(r=f.charAt(s))){if("."==r){if(s>o){o=d;continue}}else if(!i&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){i=!0,s=-1,o=0;continue}return E(h,String(e),u,t)}u=!1,(o=(f=j(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):o=f.length}for(s=0;48===f.charCodeAt(s);s++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(s,++d)){if(d-=s,u&&z.DEBUG&&d>15&&(e>9007199254740991||e!==l(e)))throw Error(c+h.s*e);if((o=o-s-1)>A)h.c=h.e=null;else if(o=M)?g(l,a):y(l,a,"0");else if(o=(e=B(new z(e),t,n)).e,s=(l=h(e.c)).length,1==r||2==r&&(t<=o||o<=O)){for(;ss){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function I(e,t){for(var n,r=1,i=new z(e[0]);r=10;i/=10,r++);return(n=r+14*n-1)>A?e.c=e.e=null:n=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,h=(c=p[f=0])/d[i-a-1]%10|0;else if((f=s((o+1)/14))>=p.length){if(r){for(;p.length<=f;p.push(0));c=h=0,i=1,o%=14,a=o-14+1}else break e}else{for(i=1,c=u=p[f];u>=10;u/=10,i++);o%=14,h=(a=o-14+i)<0?0:c/d[i-a-1]%10|0}if(r=r||t<0||null!=p[f+1]||(a<0?c:c%d[i-a-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(o>0?a>0?c/d[i-a]:0:p[f-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=d[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=f,u=1,f--):(p.length=f+1,u=d[14-o],p[f]=a>0?l(c/d[i-a]%d[a])*u:0),r)for(;;){if(0==f){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[f]+=u,1e14!=p[f])break;p[f--]=0,u=1}for(o=p.length;0===p[--o];p.pop());}e.e>A?e.c=e.e=null:e.e=M?g(t,n):y(t,n,"0"),e.s<0?"-"+t:t)}return z.clone=e,z.ROUND_UP=0,z.ROUND_DOWN=1,z.ROUND_CEIL=2,z.ROUND_FLOOR=3,z.ROUND_HALF_UP=4,z.ROUND_HALF_DOWN=5,z.ROUND_HALF_EVEN=6,z.ROUND_HALF_CEIL=7,z.ROUND_HALF_FLOOR=8,z.EUCLID=9,z.config=z.set=function(e){var t,n;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(m(n=e[t],0,1e9,t),_=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(m(n=e[t],0,8,t),C=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(m(n[0],-1e9,0,t),m(n[1],0,1e9,t),O=n[0],M=n[1]):(m(n,-1e9,1e9,t),O=-(M=n<0?-n:n))),e.hasOwnProperty(t="RANGE")){if((n=e[t])&&n.pop)m(n[0],-1e9,-1,t),m(n[1],1,1e9,t),T=n[0],A=n[1];else if(m(n,-1e9,1e9,t),n)T=-(A=n<0?-n:n);else throw Error(u+t+" cannot be zero: "+n)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(n=e[t])===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))P=n;else throw P=!n,Error(u+"crypto unavailable")}else P=n}else throw Error(u+t+" not true or false: "+n)}if(e.hasOwnProperty(t="MODULO_MODE")&&(m(n=e[t],0,9,t),N=n),e.hasOwnProperty(t="POW_PRECISION")&&(m(n=e[t],0,1e9,t),R=n),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(n=e[t]))D=n;else throw Error(u+t+" not an object: "+n)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);F="0123456789"==n.slice(0,10),L=n}}else throw Error(u+"Object expected: "+e)}return{DECIMAL_PLACES:_,ROUNDING_MODE:C,EXPONENTIAL_AT:[O,M],RANGE:[T,A],CRYPTO:P,MODULO_MODE:N,POW_PRECISION:R,FORMAT:D,ALPHABET:L}},z.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!z.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===l(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t=1e14||n!==l(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(u+"Invalid BigNumber: "+e)},z.maximum=z.max=function(){return I(arguments,k.lt)},z.minimum=z.min=function(){return I(arguments,k.gt)},z.random=(n=9007199254740992*Math.random()&2097151?function(){return l(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,i,o,a,c=0,f=[],h=new z(S);if(null==e?e=_:m(e,0,1e9),o=s(e/14),P){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));c>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(f.push(a%1e14),c+=2);c=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);c=9e15?crypto.randomBytes(7).copy(t,c):(f.push(a%1e14),c+=7);c=o/7}else throw P=!1,Error(u+"crypto unavailable")}if(!P)for(;c=10;a/=10,c++);c<14&&(i-=14-c)}return h.e=i,h.c=f,h}),z.sum=function(){for(var e=1,t=arguments,n=new z(t[0]);en-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(n,r,i,o,a){var s,l,u,c,d,f,p,m,v=n.indexOf("."),g=_,x=C;for(v>=0&&(c=R,R=0,n=n.replace(".",""),f=(m=new z(r)).pow(n.length-v),R=c,m.c=t(y(h(f.c),f.e,"0"),10,i,e),m.e=m.c.length),u=c=(p=t(n,r,i,a?(s=L,e):(s=e,L))).length;0==p[--c];p.pop());if(!p[0])return s.charAt(0);if(v<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=w(f,m,g,x,i)).c,d=f.r,u=f.e),v=p[l=u+g+1],c=i/2,d=d||l<0||null!=p[l+1],d=x<4?(null!=v||d)&&(0==x||x==(f.s<0?3:2)):v>c||v==c&&(4==x||d||6==x&&1&p[l-1]||x==(f.s<0?8:7)),l<1||!p[0])n=d?y(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=l,d)for(--i;++p[--l]>i;)p[l]=0,l||(++u,p=[1].concat(p));for(c=p.length;!p[--c];);for(v=0,n="";v<=c;n+=s.charAt(p[v++]));n=y(n,u,s.charAt(0))}return n}}(),w=function(){function e(e,t,n){var r,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*a,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(r,i,o,a,s){var u,c,d,h,p,m,v,g,y,x,b,w,j,E,k,S,_,C=r.s==i.s?1:-1,O=r.c,M=i.c;if(!O||!O[0]||!M||!M[0])return new z(r.s&&i.s&&(O?!M||O[0]!=M[0]:M)?O&&0==O[0]||!M?0*C:C/0:NaN);for(y=(g=new z(C)).c=[],C=o+(c=r.e-i.e)+1,s||(s=1e14,c=f(r.e/14)-f(i.e/14),C=C/14|0),d=0;M[d]==(O[d]||0);d++);if(M[d]>(O[d]||0)&&c--,C<0)y.push(1),h=!0;else{for(E=O.length,S=M.length,d=0,C+=2,(p=l(s/(M[0]+1)))>1&&(M=e(M,p,s),O=e(O,p,s),S=M.length,E=O.length),j=S,b=(x=O.slice(0,S)).length;b=s/2&&k++;do{if(p=0,(u=t(M,x,S,b))<0){if(w=x[0],S!=b&&(w=w*s+(x[1]||0)),(p=l(w/k))>1)for(p>=s&&(p=s-1),v=(m=e(M,p,s)).length,b=x.length;1==t(m,x,v,b);)p--,n(m,St(M,x,S,b);)p++,n(x,S=10;C/=10,d++);B(g,o+(g.e=d+14*c-1)+1,a,h)}else g.e=c,g.r=+h;return g}}(),r=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,b=/^\s*\+(?=[\w.])|^\s+|\s+$/g,E=function(e,t,n,a){var s,l=n?t:t.replace(b,"");if(x.test(l))e.s=isNaN(l)?null:l<0?-1:1;else{if(!n&&(l=l.replace(r,function(e,t,n){return s="x"==(n=n.toLowerCase())?16:"b"==n?2:8,a&&a!=s?e:t}),a&&(s=a,l=l.replace(i,"$1").replace(o,"0.$1")),t!=l))return new z(l,s);if(z.DEBUG)throw Error(u+"Not a"+(a?" base "+a:"")+" number: "+t);e.s=null}e.c=e.e=null},k.absoluteValue=k.abs=function(){var e=new z(this);return e.s<0&&(e.s=1),e},k.comparedTo=function(e,t){return p(this,new z(e,t))},k.decimalPlaces=k.dp=function(e,t){var n,r,i;if(null!=e)return m(e,0,1e9),null==t?t=C:m(t,0,8),B(new z(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((i=n.length-1)-f(this.e/14))*14,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},k.dividedBy=k.div=function(e,t){return w(this,new z(e,t),_,C)},k.dividedToIntegerBy=k.idiv=function(e,t){return w(this,new z(e,t),0,1)},k.exponentiatedBy=k.pow=function(e,t){var n,r,i,o,a,c,d,f,h,p=this;if((e=new z(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+H(e));if(null!=t&&(t=new z(t)),c=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return h=new z(Math.pow(+H(p),c?2-v(e):+H(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new z(NaN);(r=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return o=p.s<0&&v(e)?-0:0,p.e>-1&&(o=1/o),new z(d?1/o:o);R&&(o=s(R/14+2))}for(c?(n=new z(.5),d&&(e.s=1),f=v(e)):f=(i=Math.abs(+H(e)))%2,h=new z(S);;){if(f){if(!(h=h.times(p)).c)break;o?h.c.length>o&&(h.c.length=o):r&&(h=h.mod(t))}if(i){if(0===(i=l(i/2)))break;f=i%2}else if(B(e=e.times(n),e.e+1,1),e.e>14)f=v(e);else{if(0==(i=+H(e)))break;f=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):r&&(p=p.mod(t))}return r?h:(d&&(h=S.div(h)),t?h.mod(t):o?B(h,R,C,a):h)},k.integerValue=function(e){var t=new z(this);return null==e?e=C:m(e,0,8),B(t,t.e+1,e)},k.isEqualTo=k.eq=function(e,t){return 0===p(this,new z(e,t))},k.isFinite=function(){return!!this.c},k.isGreaterThan=k.gt=function(e,t){return p(this,new z(e,t))>0},k.isGreaterThanOrEqualTo=k.gte=function(e,t){return 1===(t=p(this,new z(e,t)))||0===t},k.isInteger=function(){return!!this.c&&f(this.e/14)>this.c.length-2},k.isLessThan=k.lt=function(e,t){return 0>p(this,new z(e,t))},k.isLessThanOrEqualTo=k.lte=function(e,t){return -1===(t=p(this,new z(e,t)))||0===t},k.isNaN=function(){return!this.s},k.isNegative=function(){return this.s<0},k.isPositive=function(){return this.s>0},k.isZero=function(){return!!this.c&&0==this.c[0]},k.minus=function(e,t){var n,r,i,o,a=this.s;if(t=(e=new z(e,t)).s,!a||!t)return new z(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new z(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new z(u[0]?this:3==C?-0:0)}if(s=f(s),l=f(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t0)for(;t--;u[n++]=0);for(t=1e14-1;r>a;){if(u[--r]=0;){for(n=0,h=g[i]%1e7,p=g[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=v[--a]%1e7)+(c=v[a]/1e7|0)*h,n=((u=h*u+s%1e7*1e7+m[o]+n)/1e14|0)+(s/1e7|0)+p*c,m[o--]=u%1e14;m[o]=n}return n?++r:m.splice(0,1),Z(e,m,r)},k.negated=function(){var e=new z(this);return e.s=-e.s||null,e},k.plus=function(e,t){var n,r=this.s;if(t=(e=new z(e,t)).s,!r||!t)return new z(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new z(r/0);if(!a[0]||!s[0])return s[0]?e:new z(a[0]?this:0*r)}if(i=f(i),o=f(o),a=a.slice(),r=i-o){for(r>0?(o=i,n=s):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for((r=a.length)-(t=s.length)<0&&(n=s,s=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+s[t]+r)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return r&&(a=[r].concat(a),++o),Z(e,a,o)},k.precision=k.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return m(e,1,1e9),null==t?t=C:m(t,0,8),B(new z(this),e,t);if(!(n=this.c))return null;if(r=14*(i=n.length-1)+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},k.shiftedBy=function(e){return m(e,-9007199254740991,9007199254740991),this.times("1e"+e)},k.squareRoot=k.sqrt=function(){var e,t,n,r,i,o=this.c,a=this.s,s=this.e,l=_+4,u=new z("0.5");if(1!==a||!o||!o[0])return new z(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=h(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=f((s+1)/2)-(s<0||s%2),t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s,n=new z(t)):n=new z(a+""),n.c[0]){for((a=(s=n.e)+l)<3&&(a=0);;)if(i=n,n=u.times(i.plus(w(this,i,l,1))),h(i.c).slice(0,a)===(t=h(n.c)).slice(0,a)){if(n.e0&&p>0){for(i=p%a||a,c=h.substr(0,i);i0&&(c+=l+h.slice(i)),f&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((s=+n.fractionGroupSize)?d.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},k.toFraction=function(e){var t,n,r,i,o,a,s,l,c,f,p,m,v=this.c;if(null!=e&&(!(s=new z(e)).isInteger()&&(s.c||1!==s.s)||s.lt(S)))throw Error(u+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+H(s));if(!v)return new z(this);for(t=new z(S),c=n=new z(S),r=l=new z(S),m=h(v),o=t.e=m.length-this.e-1,t.c[0]=d[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=A,A=1/0,s=new z(m),l.c[0]=0;f=w(s,t,0,1),1!=(i=n.plus(f.times(r))).comparedTo(e);)n=r,r=i,c=l.plus(f.times(i=c)),l=i,t=s.minus(f.times(i=t)),s=i;return i=w(e.minus(n),r,0,1),l=l.plus(i.times(c)),n=n.plus(i.times(r)),l.s=c.s=this.s,o*=2,p=1>w(c,r,o,C).minus(this).abs().comparedTo(w(l,n,o,C).minus(this).abs())?[c,r]:[l,n],A=a,p},k.toNumber=function(){return+H(this)},k.toPrecision=function(e,t){return null!=e&&m(e,1,1e9),V(this,e,t,2)},k.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=O||i>=M?g(h(n.c),i):y(h(n.c),i,"0"):10===e&&F?t=y(h((n=B(new z(n),_+i+1,C)).c),n.e,"0"):(m(e,2,L.length,"Base"),t=j(y(h(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},k.valueOf=k.toJSON=function(){return H(this)},k._isBigNumber=!0,null!=t&&z.set(t),z}()).default=o.BigNumber=o,void 0!==(r=(function(){return o}).call(t,n,t,e))&&(e.exports=r)}(0)},70651:function(e,t,n){let r=n(7967);function i(e,t,n){let r=e[t]+e[n],i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function o(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let o=e[t+1]+r;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function a(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,a,s){let l=d[a],u=d[a+1],f=d[s],h=d[s+1];i(c,e,t),o(c,e,l,u);let p=c[r]^c[e],m=c[r+1]^c[e+1];c[r]=m,c[r+1]=p,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=p>>>24^m<<8,c[t+1]=m>>>24^p<<8,i(c,e,t),o(c,e,f,h),p=c[r]^c[e],m=c[r+1]^c[e+1],c[r]=p>>>16^m<<16,c[r+1]=m>>>16^p<<16,i(c,n,r),p=c[t]^c[n],m=c[t+1]^c[n+1],c[t]=m>>>31^p<<1,c[t+1]=p>>>31^m<<1}let l=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map(function(e){return 2*e})),c=new Uint32Array(32),d=new Uint32Array(32);function f(e,t){let n=0;for(n=0;n<16;n++)c[n]=e.h[n],c[n+16]=l[n];for(c[24]=c[24]^e.t,c[25]=c[25]^e.t/4294967296,t&&(c[28]=~c[28],c[29]=~c[29]),n=0;n<32;n++)d[n]=a(e.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,u[16*n+0],u[16*n+1]),s(2,10,18,26,u[16*n+2],u[16*n+3]),s(4,12,20,28,u[16*n+4],u[16*n+5]),s(6,14,22,30,u[16*n+6],u[16*n+7]),s(0,10,20,30,u[16*n+8],u[16*n+9]),s(2,12,22,24,u[16*n+10],u[16*n+11]),s(4,14,16,26,u[16*n+12],u[16*n+13]),s(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^c[n]^c[n+16]}let h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(e,t,n,r){if(0===e||e>64)throw Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&16!==n.length)throw Error("Illegal salt, expected Uint8Array with length is 16");if(r&&16!==r.length)throw Error("Illegal personal, expected Uint8Array with length is 16");let i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};h.fill(0),h[0]=e,t&&(h[1]=t.length),h[2]=1,h[3]=1,n&&h.set(n,32),r&&h.set(r,48);for(let e=0;e<16;e++)i.h[e]=l[e]^a(h,4*e);return t&&(m(i,t),i.c=128),i}function m(e,t){for(let n=0;n>2]>>8*(3&n);return t}function g(e,t,n,i,o){n=n||64,e=r.normalizeInput(e),i&&(i=r.normalizeInput(i)),o&&(o=r.normalizeInput(o));let a=p(n,t,i,o);return m(a,e),v(a)}e.exports={blake2b:g,blake2bHex:function(e,t,n,i,o){let a=g(e,t,n,i,o);return r.toHex(a)},blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},39962:function(e,t,n){let r=n(7967);function i(e,t,n,r,i,a){l[e]=l[e]+l[t]+i,l[r]=o(l[r]^l[e],16),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],12),l[e]=l[e]+l[t]+a,l[r]=o(l[r]^l[e],8),l[n]=l[n]+l[r],l[t]=o(l[t]^l[n],7)}function o(e,t){return e>>>t^e<<32-t}let a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),u=new Uint32Array(16);function c(e,t){let n=0;for(n=0;n<8;n++)l[n]=e.h[n],l[n+8]=a[n];for(l[12]^=e.t,l[13]^=e.t/4294967296,t&&(l[14]=~l[14]),n=0;n<16;n++){var r,o;u[n]=(r=e.b)[o=4*n]^r[o+1]<<8^r[o+2]<<16^r[o+3]<<24}for(n=0;n<10;n++)i(0,4,8,12,u[s[16*n+0]],u[s[16*n+1]]),i(1,5,9,13,u[s[16*n+2]],u[s[16*n+3]]),i(2,6,10,14,u[s[16*n+4]],u[s[16*n+5]]),i(3,7,11,15,u[s[16*n+6]],u[s[16*n+7]]),i(0,5,10,15,u[s[16*n+8]],u[s[16*n+9]]),i(1,6,11,12,u[s[16*n+10]],u[s[16*n+11]]),i(2,7,8,13,u[s[16*n+12]],u[s[16*n+13]]),i(3,4,9,14,u[s[16*n+14]],u[s[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=l[n]^l[n+8]}function d(e,t){if(!(e>0&&e<=32))throw Error("Incorrect output length, should be in [1, 32]");let n=t?t.length:0;if(t&&!(n>0&&n<=32))throw Error("Incorrect key length, should be in [1, 32]");let r={h:new Uint32Array(a),b:new Uint8Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(f(r,t),r.c=64),r}function f(e,t){for(let n=0;n>2]>>8*(3&n)&255;return t}function p(e,t,n){n=n||32,e=r.normalizeInput(e);let i=d(n,t);return f(i,e),h(i)}e.exports={blake2s:p,blake2sHex:function(e,t,n){let i=p(e,t,n);return r.toHex(i)},blake2sInit:d,blake2sUpdate:f,blake2sFinal:h}},81395:function(e,t,n){let r=n(70651),i=n(39962);e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},7967:function(e){function t(e){return(4294967296+e).toString(16).substring(1)}e.exports={normalizeInput:function(e){let t;if(e instanceof Uint8Array)t=e;else if("string"==typeof e){let n=new TextEncoder;t=n.encode(e)}else throw Error("Input must be an string, Buffer or Uint8Array");return t},toHex:function(e){return Array.prototype.map.call(e,function(e){return(e<16?"0":"")+e.toString(16)}).join("")},debugPrint:function(e,n,r){let i="\n"+e+" = ";for(let o=0;o * @license MIT - */var r=n(95766),i=n(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|h(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=a(t),r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return _(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return C(e).length;default:if(i)return r?-1:_(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function j(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function E(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function k(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);ir.length?s.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else if(s.isBuffer(o))o.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var h=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||x(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||x(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||x(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||x(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||x(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||x(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return E(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return E(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function C(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},72779:function(e,t){var n;/*! + */var r=n(95766),i=n(62333),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|p(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(M(e,Uint8Array)){var t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t,n=0|h(e.length),r=a(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|h(e))}function d(e){for(var t=e.length<0?0:0|h(e.length),n=a(t),r=0;r=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return _(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return C(e).length;default:if(i)return r?-1:_(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function j(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function E(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function k(e,t,n,r,o){return t=+t,n>>>=0,o||j(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.lW=s,t.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);ir.length?s.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else if(s.isBuffer(o))o.copy(r,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var h=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i.push(n%256),i.push(r);return i}(e,this.length-c),this,c,d);default:if(h)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return E(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return E(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return k(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return k(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function C(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,n,r){for(var i=0;i=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},72779:function(e,t){var n;/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t=0;)(u=e(r,i,o,a,h+1,l+1))>p&&(h===s?u*=1:t.test(r.charAt(h-1))?(u*=.9,(d=r.slice(s,h-1).match(n))&&s>0&&(u*=Math.pow(.999,d.length))):(t.test(r.slice(s,h-1))?u*=0:u*=.3,s>0&&(u*=Math.pow(.999,h-s))),r.charAt(h)!==i.charAt(l)&&(u*=.9999)),u<.1&&o.charAt(h-1)===a.charAt(l+1)&&o.charAt(h-1)!==a.charAt(l)&&.1*(c=e(r,i,o,a,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=o.indexOf(f,h+1);return p}(e,r,e.toLowerCase(),r.toLowerCase(),0,0)}},68847:function(e,t,n){"use strict";n.d(t,{B8:function(){return k},Il:function(){return i},J5:function(){return a},SU:function(){return E},Ss:function(){return S},Ym:function(){return A},ZP:function(){return x},xV:function(){return o}});var r=n(40948);function i(){}var o=.7,a=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),m=RegExp("^hsl\\("+[l,u,u]+"\\)$"),v=RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),g={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};function y(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function x(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?j(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?j(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new S(t[1],t[2],t[3],1):(t=f.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?j(t[1],t[2],t[3],t[4]):(t=p.exec(e))?j(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function w(e){return new S(e>>16&255,e>>8&255,255&e,1)}function j(e,t,n,r){return r<=0&&(e=t=n=NaN),new S(e,t,n,r)}function E(e){return(e instanceof i||(e=x(e)),e)?(e=e.rgb(),new S(e.r,e.g,e.b,e.opacity)):new S}function k(e,t,n,r){return 1==arguments.length?E(e):new S(e,t,n,null==r?1:r)}function S(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function _(){return"#"+O(this.r)+O(this.g)+O(this.b)}function C(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function O(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new P(e,t,n,r)}function T(e){if(e instanceof P)return new P(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=x(e)),!e)return new P;if(e instanceof P)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-o,u=(a+o)/2;return l?(s=t===a?(n-r)/l+(n0&&u<1?0:s,new P(s,l,u,e.opacity)}function A(e,t,n,r){return 1==arguments.length?T(e):new P(e,t,n,null==r?1:r)}function P(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function N(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}(0,r.Z)(i,x,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return T(this).formatHsl()},formatRgb:b,toString:b}),(0,r.Z)(S,k,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:_,formatHex:_,formatRgb:C,toString:C})),(0,r.Z)(P,A,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new P(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new P(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new S(N(e>=240?e-240:e+120,i,r),N(e,i,r),N(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},40948:function(e,t,n){"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,{Z:function(){return r},l:function(){return i}})},20966:function(e,t,n){"use strict";n.d(t,{Uc:function(){return g},ZP:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=4/29,s=6/29,l=3*(6/29)*(6/29),u=6/29*(6/29)*(6/29);function c(e){if(e instanceof f)return new f(e.l,e.a,e.b,e.opacity);if(e instanceof y)return b(e);e instanceof i.Ss||(e=(0,i.SU)(e));var t,n,r=v(e.r),o=v(e.g),a=v(e.b),s=h((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=s:(t=h((.4360747*r+.3850649*o+.1430804*a)/.96422),n=h((.0139322*r+.0971045*o+.7141733*a)/.82521)),new f(116*s-16,500*(t-s),200*(s-n),e.opacity)}function d(e,t,n,r){return 1==arguments.length?c(e):new f(e,t,n,null==r?1:r)}function f(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function h(e){return e>u?Math.pow(e,1/3):e/l+a}function p(e){return e>s?e*e*e:l*(e-a)}function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function v(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function g(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof y)return new y(e.h,e.c,e.l,e.opacity);if(e instanceof f||(e=c(e)),0===e.a&&0===e.b)return new y(NaN,0i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}var d={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:u.Z,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)=>c(100*e,t),r:c,s:function(e,t){var n=(0,u.V)(e,t);if(!n)return e+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+(0,u.V)(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function f(e){return e}var h=Array.prototype.map,p=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(i=function(e){var t,n,i,o=void 0===e.grouping||void 0===e.thousands?f:(t=h.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?f:(i=h.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),v=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function b(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,b=e.comma,x=e.precision,w=e.trim,j=e.type;"n"===j?(b=!0,j="g"):d[j]||(void 0===x&&(x=12),w=!0,j="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var E="$"===s?a:"#"===s&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",k="$"===s?u:/[%p]/.test(j)?v:"",S=d[j],_=/[defgprs%]/.test(j);function C(e){var a,s,l,u=E,d=k;if("c"===j)d=S(e)+d,e="";else{var v=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:S(Math.abs(e),x),w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),v&&0==+e&&"+"!==i&&(v=!1),u=(v?"("===i?i:g:"-"===i||"("===i?"":i)+u,d=("s"===j?p[8+r/3]:"")+d+(v&&"("===i?")":""),_){for(a=-1,s=e.length;++a(l=e.charCodeAt(a))||l>57){d=(46===l?c+e.slice(a+1):e.slice(a))+d,e=e.slice(0,a);break}}}b&&!f&&(e=o(e,1/0));var C=u.length+e.length+d.length,O=C>1)+u+e+d+O.slice(C);break;default:e=O+u+e+d}return m(e)}return x=void 0===x?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),C.toString=function(){return e+""},C}return{format:b,formatPrefix:function(e,t){var n=b(((e=(0,l.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,s.Z)(t)/3))),i=Math.pow(10,-r),o=p[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix},23733:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(39801);function i(e){return(e=(0,r.V)(Math.abs(e)))?e[1]:NaN}},39801:function(e,t,n){"use strict";function r(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function i(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,{V:function(){return i},Z:function(){return r}})},52328:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){var t;if(!(t=r.exec(e)))throw Error("invalid format: "+e);return new o({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]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},88013:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e){return Math.max(0,-(0,r.Z)(Math.abs(e)))}},21032:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(t)/3)))-(0,r.Z)(Math.abs(e)))}},61652:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e,t){return t=Math.abs(t)-(e=Math.abs(e)),Math.max(0,(0,r.Z)(t)-(0,r.Z)(e))+1}},12766:function(e,t){!function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function o(e){var t={};return 4===e.length&&(t.x2=e[2][0],t.y2=e[2][1]),e.length>=3&&(t.x1=e[1][0],t.y1=e[1][1]),t.x=e[e.length-1][0],t.y=e[e.length-1][1],4===e.length?t.type="C":3===e.length?t.type="Q":t.type="L",t}var a=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,s={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function l(e,t){for(var n=Array(e),r=0;r0?o-=1:o0&&(o-=1)),t[o]=(t[o]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var a=l(r,t({},e[e.length-1]));return"M"===a[0].type&&a.forEach(function(e){e.type="L"}),n.concat(a)}return n.concat(function(e,n,r){var i,a=[];if("L"===n.type||"Q"===n.type||"C"===n.type)a=a.concat((i=[[e.x,e.y]],null!=n.x1&&i.push([n.x1,n.y1]),null!=n.x2&&i.push([n.x2,n.y2]),i.push([n.x,n.y]),(function(e,t){for(var n=[],r=e,i=1/(t=t||2),o=0;o0&&"Z"===o[o.length-1].type&&o.pop(),a.length>0&&"Z"===a[a.length-1].type&&a.pop(),o.length?a.length||a.push(o[0]):o.push(a[0]),0!==Math.abs(a.length-o.length)&&(a.length>o.length?o=u(o,a,r):a.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,n){var i,o,a;return n-t?(i=t,o=n,i=Math.pow(i,a=e),o=Math.pow(o,a)-i,a=1/a,function(e){return Math.pow(i+e*o,a)}):(0,r.Z)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?i(e,n):(0,r.Z)(isNaN(e)?t:e)}},88992:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},77636:function(e,t,n){"use strict";n.d(t,{B:function(){return f},Z:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=-1.78277*.29227-.1347134789;function s(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof l)return new l(e.h,e.s,e.l,e.opacity);e instanceof i.Ss||(e=(0,i.SU)(e));var t=e.r/255,n=e.g/255,r=e.b/255,s=(a*r+-1.7884503806*t-3.5172982438*n)/(a+-1.7884503806-3.5172982438),u=r-s,c=-((1.97294*(n-s)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*s*(1-s)),f=d?Math.atan2(c,u)*o.B-120:NaN;return new l(f<0?f+360:f,d,s,e.opacity)}(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(l,s,(0,r.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new l(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new l(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*o.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*a)),255*(t+n*(-.29227*r+-.90649*a)),255*(t+n*(1.97294*r)),this.opacity)}}));var u=n(1234);function c(e){return function t(n){function r(t,r){var i=e((t=s(t)).h,(r=s(r)).h),o=(0,u.ZP)(t.s,r.s),a=(0,u.ZP)(t.l,r.l),l=(0,u.ZP)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}var d=c(u.wx),f=c(u.ZP)},91255:function(e,t,n){"use strict";function r(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}n.d(t,{Z:function(){return r}})},87286:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(20966),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),a=(0,i.ZP)(t.c,n.c),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.c=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(68847),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),a=(0,i.ZP)(t.s,n.s),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.s=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},31380:function(e,t,n){"use strict";n.r(t),n.d(t,{interpolate:function(){return s.Z},interpolateArray:function(){return l.Z},interpolateBasis:function(){return u.Z},interpolateBasisClosed:function(){return c.Z},interpolateCubehelix:function(){return N.Z},interpolateCubehelixLong:function(){return N.B},interpolateDate:function(){return d.Z},interpolateDiscrete:function(){return f},interpolateHcl:function(){return P.Z},interpolateHclLong:function(){return P.b},interpolateHsl:function(){return T.Z},interpolateHslLong:function(){return T.q},interpolateHue:function(){return p},interpolateLab:function(){return A.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return v.Z},interpolateObject:function(){return g.Z},interpolateRgb:function(){return M.ZP},interpolateRgbBasis:function(){return M.hD},interpolateRgbBasisClosed:function(){return M.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return b.Z},interpolateTransformCss:function(){return k},interpolateTransformSvg:function(){return S},interpolateZoom:function(){return O},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,o,a,s=n(69777),l=n(47639),u=n(67855),c=n(6984),d=n(91255);function f(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var h=n(1234);function p(e,t){var n=(0,h.wx)(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}var m=n(98876),v=n(43289),g=n(73363),y=n(74672),b=n(76060),x=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:(0,m.Z)(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=o.skewX)!==(c=a.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:(0,m.Z)(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,n=-1,r=f.length;++nc&&(u=t.slice(c,u),f[d]?f[d]+=u:f[++d]=u),(s=s[0])===(l=l[0])?f[d]?f[d]+=l:f[++d]=l:(f[++d]=null,h.push({i:d,x:(0,r.Z)(s,l)})),c=o.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var h=r-a,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=o*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),b=y/g,x=y/v;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*d)),this._+="A"+o+","+o+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+x*l)+","+(this._y1=t+x*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,l){e=+e,t=+t,o=+o,l=!!l;var u=o*Math.cos(a),c=o*Math.sin(a),d=e+u,f=t+c,h=1^l,p=l?a-s:s-a;if(o<0)throw Error("negative radius: "+o);null===this._x1?this._+="M"+d+","+f:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+d+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+h+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.Z=a},1169:function(e,t,n){"use strict";function r(e,t){return et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},98038:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var r=n(1169);function i(e){let t=e,n=e;function i(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>(0,r.Z)(e(t),n)),{left:i,center:function(e,n,r,o){null==r&&(r=0),null==o&&(o=e.length);let a=i(e,n,r,o-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}var o=n(81048);let a=i(r.Z),s=a.right;a.left,i(o.Z).center;var l=s},81048:function(e,t,n){"use strict";function r(e){return null===e?NaN:+e}function*i(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}n.d(t,{K:function(){return i},Z:function(){return r}})},33907:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(t,{Z:function(){return l},s:function(){return u}});var o=n(1169);function a(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var s=n(81048);function l(e,t,n){if(l=(e=Float64Array.from((0,s.K)(e,n))).length){if((t=+t)<=0||l<2)return i(e);if(t>=1)return r(e);var l,u=(l-1)*t,c=Math.floor(u),d=r((function e(t,n,r=0,i=t.length-1,s=o.Z){for(;i>r;){if(i-r>600){let o=i-r+1,a=n-r+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(a-o/2<0?-1:1),d=Math.max(r,Math.floor(n-a*u/o+c)),f=Math.min(i,Math.floor(n+(o-a)*u/o+c));e(t,n,d,f,s)}let o=t[n],l=r,u=i;for(a(t,r,n),s(t[i],o)>0&&a(t,r,i);ls(t[l],o);)++l;for(;s(t[u],o)>0;)--u}0===s(t[r],o)?a(t,r,u):a(t,++u,i),u<=n&&(r=u+1),n<=u&&(i=u-1)}return t})(e,c).subarray(0,c+1));return d+(i(e.subarray(c+1))-d)*(u-c)}}function u(e,t,n=s.Z){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var r,i,o,a,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=Array(i=r-n+1);++lt&&--r,o=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}function l(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t[e.toLowerCase(),t]))}function E(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function k(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function S(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function _(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function C(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function O(e,t,n){var r=v.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function M(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function T(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function A(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function P(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function R(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function D(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function L(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function F(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function z(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function V(e,t,n){var r=v.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function I(e,t,n){var r=g.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Z(e,t,n){var r=v.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function B(e,t,n){var r=v.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function H(e,t){return b(e.getDate(),t,2)}function U(e,t){return b(e.getHours(),t,2)}function W(e,t){return b(e.getHours()%12||12,t,2)}function q(e,t){return b(1+u.Z.count((0,c.Z)(e),e),t,3)}function $(e,t){return b(e.getMilliseconds(),t,3)}function K(e,t){return $(e,t)+"000"}function Y(e,t){return b(e.getMonth()+1,t,2)}function G(e,t){return b(e.getMinutes(),t,2)}function X(e,t){return b(e.getSeconds(),t,2)}function J(e){var t=e.getDay();return 0===t?7:t}function Q(e,t){return b(l.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,l.bL)(e):l.bL.ceil(e)}function et(e,t){return e=ee(e),b(l.bL.count((0,c.Z)(e),e)+(4===(0,c.Z)(e).getDay()),t,2)}function en(e){return e.getDay()}function er(e,t){return b(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return b(e.getFullYear()%100,t,2)}function eo(e,t){return b((e=ee(e)).getFullYear()%100,t,2)}function ea(e,t){return b(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return b((e=n>=4||0===n?(0,l.bL)(e):l.bL.ceil(e)).getFullYear()%1e4,t,4)}function el(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+b(t/60|0,"0",2)+b(t%60,"0",2)}function eu(e,t){return b(e.getUTCDate(),t,2)}function ec(e,t){return b(e.getUTCHours(),t,2)}function ed(e,t){return b(e.getUTCHours()%12||12,t,2)}function ef(e,t){return b(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return b(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return b(e.getUTCMonth()+1,t,2)}function ev(e,t){return b(e.getUTCMinutes(),t,2)}function eg(e,t){return b(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function eb(e,t){return b(a.Ox.count((0,d.Z)(e)-1,e),t,2)}function ex(e){var t=e.getUTCDay();return t>=4||0===t?(0,a.hB)(e):a.hB.ceil(e)}function ew(e,t){return e=ex(e),b(a.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function ej(e){return e.getUTCDay()}function eE(e,t){return b(a.l6.count((0,d.Z)(e)-1,e),t,2)}function ek(e,t){return b(e.getUTCFullYear()%100,t,2)}function eS(e,t){return b((e=ex(e)).getUTCFullYear()%100,t,2)}function e_(e,t){return b(e.getUTCFullYear()%1e4,t,4)}function eC(e,t){var n=e.getUTCDay();return b((e=n>=4||0===n?(0,a.hB)(e):a.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function eO(){return"+0000"}function eM(){return"%"}function eT(e){return+e}function eA(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=j(i),b=w(o),x=j(o),ee=w(c),ex=j(c),eP=w(d),eN=j(d),eR=w(v),eD=j(v),eL={a:function(e){return c[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:K,g:eo,G:es,H:U,I:W,j:q,L:$,m:Y,M:G,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eT,s:eA,S:X,u:J,U:Q,V:et,w:en,W:er,x:null,X:null,y:ei,Y:ea,Z:el,"%":eM},eF={a:function(e){return c[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return v[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:eu,e:eu,f:ep,g:eS,G:eC,H:ec,I:ed,j:ef,L:eh,m:em,M:ev,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eT,s:eA,S:eg,u:ey,U:eb,V:ew,w:ej,W:eE,x:null,X:null,y:ek,Y:e_,Z:eO,"%":eM},ez={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=ex.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.w=x.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=eR.exec(t.slice(n));return r?(e.m=eD.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=eP.exec(t.slice(n));return r?(e.m=eN.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return eZ(e,t,n,r)},d:N,e:N,f:V,g:M,G:O,H:D,I:D,j:R,L:z,m:P,M:L,p:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.p=y.get(r[0].toLowerCase()),n+r[0].length):-1},q:A,Q:Z,s:B,S:F,u:k,U:S,V:_,w:E,W:C,x:function(e,t,r){return eZ(e,n,t,r)},X:function(e,t,n){return eZ(e,r,t,n)},y:M,Y:O,Z:T,"%":I};function eV(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=h(p(o.y,0,1))).getUTCDay())>4||0===i?a.l6.ceil(r):(0,a.l6)(r),r=s.Z.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=f(p(o.y,0,1))).getDay())>4||0===i?l.wA.ceil(r):(0,l.wA)(r),r=u.Z.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?h(p(o.y,0,1)).getUTCDay():f(p(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,h(o)):f(o)}}function eZ(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=ez[(i=t.charAt(a++))in m?t.charAt(a++):i])||(r=o(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return eL.x=eV(n,eL),eL.X=eV(r,eL),eL.c=eV(t,eL),eF.x=eV(n,eF),eF.X=eV(r,eF),eF.c=eV(t,eF),{format:function(e){var t=eV(e+="",eL);return t.toString=function(){return e},t},parse:function(e){var t=eI(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=eV(e+="",eF);return t.toString=function(){return e},t},utcParse:function(e){var t=eI(e+="",!0);return t.toString=function(){return e},t}}}({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"]})).format,r.parse,o=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},x:function(){return a}});var r=n(22274),i=n(34130);function o(){var e,t,n=(0,i.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=a().length,r=ut&&(n=e,e=t,t=n),g=function(n){return Math.max(e,Math.min(t,n))}),r=i>2?f:d,c=h=null,b}function b(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,v)))(e(g(t)))}return b.invert=function(n){return g(t((h||(h=r(m,p.map(e),o.Z)))(n)))},b.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),v=a.Z,y()},b.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},b.interpolate=function(e){return arguments.length?(v=e,y()):v},b.unknown=function(e){return arguments.length?(n=e,b):n},function(n,r){return e=n,t=r,y()}}function m(){return p()(u,u)}},79870:function(e,t,n){"use strict";n.r(t),n.d(t,{scaleBand:function(){return r.Z},scaleDiverging:function(){return function e(){var t=(0,i.Q)(O()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,a.Q)(O()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return T},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(O());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,o.Z),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,o.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return a.Z},scaleOrdinal:function(){return l.Z},scalePoint:function(){return r.x},scalePow:function(){return u.ZP},scaleQuantile:function(){return d.Z},scaleQuantize:function(){return f.Z},scaleRadial:function(){return c.Z},scaleSequential:function(){return function e(){var t=(0,i.Q)(x()(y.yR));return t.copy=function(){return w(t,e())},b.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,a.Q)(x()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},b.O.apply(t,arguments)}},scaleSequentialPow:function(){return j},scaleSequentialQuantile:function(){return function e(){var t=[],n=y.yR;function r(e){if(null!=e&&!isNaN(e=+e))return n(((0,k.ZP)(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(S.Z),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(0,_.Z)(t,r/e))},r.copy=function(){return e(n).domain(t)},b.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return E},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(x());return t.copy=function(){return w(t,e()).constant(t.constant())},b.O.apply(t,arguments)}},scaleSqrt:function(){return u._b},scaleSymlog:function(){return s.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return p.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return A.Z}});var r=n(48623),i=n(93963),o=n(5497),a=n(13641),s=n(46494),l=n(34130),u=n(72851),c=n(19637),d=n(96417),f=n(73408),h=n(74995),p=n(37932),m=n(83803),v=n(69777),g=n(74672),y=n(70552),b=n(22274);function x(){var e,t,n,r,i,o=0,a=1,s=y.yR,l=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,a]},u.clamp=function(e){return arguments.length?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=c(v.Z),u.rangeRound=c(g.Z),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),u}}function w(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function j(){var e=(0,u.Hh)(x());return e.copy=function(){return w(e,j()).exponent(e.exponent())},b.O.apply(e,arguments)}function E(){return j.apply(null,arguments).exponent(.5)}var k=n(98038),S=n(1169),_=n(33907),C=n(87475);function O(){var e,t,n,r,i,o,a,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e0;){if((o=(0,r.G9)(u,c,n))===i)return a[s]=u,a[l]=c,t(a);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;i=o}return e},e}},13641:function(e,t,n){"use strict";n.d(t,{Q:function(){return p},Z:function(){return function e(){var t=p((0,a.l4)()).domain([1,10]);return t.copy=function(){return(0,a.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),o=n(10070),a=n(70552),s=n(22274);function l(e){return Math.log(e)}function u(e){return Math.exp(e)}function c(e){return-Math.log(-e)}function d(e){return-Math.exp(-e)}function f(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return function(t){return-e(-t)}}function p(e){var t,n,a=e(l,u),s=a.domain,p=10;function m(){var r,i;return t=(r=p)===Math.E?Math.log:10===r&&Math.log10||2===r&&Math.log2||(r=Math.log(r),function(e){return Math.log(e)/r}),n=10===(i=p)?f:i===Math.E?Math.exp:function(e){return Math.pow(i,e)},s()[0]<0?(t=h(t),n=h(n),e(c,d)):e(l,u),a}return a.base=function(e){return arguments.length?(p=+e,m()):p},a.domain=function(e){return arguments.length?(s(e),m()):s()},a.ticks=function(e){var i,o=s(),a=o[0],l=o[o.length-1];(i=l0){for(;f<=h;++f)for(c=1,u=n(f);cl)break;v.push(d)}}else for(;f<=h;++f)for(c=p-1,u=n(f);c>=1;--c)if(!((d=u*c)l)break;v.push(d)}2*v.length0?l[t-1]:n[0],t=s?[l[s-1],a]:[l[t-1],l[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return l.slice()},c.copy=function(){return e().domain([n,a]).range(u).unknown(t)},o.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),o=n(22274)},19637:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=(0,r.ZP)(),l=[0,1],u=!1;function c(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:u?Math.round(i):i}return c.invert=function(e){return n.invert(s(e))},c.domain=function(e){return arguments.length?(n.domain(e),c):n.domain()},c.range=function(e){return arguments.length?(n.range((l=Array.from(e,a.Z)).map(s)),c):l.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(u=!!e,c):u},c.clamp=function(e){return arguments.length?(n.clamp(e),c):n.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(n.domain(),l).round(u).clamp(n.clamp()).unknown(t)},i.o.apply(c,arguments),(0,o.Q)(c)}}});var r=n(70552),i=n(22274),o=n(93963),a=n(5497);function s(e){return Math.sign(e)*e*e}},46494:function(e,t,n){"use strict";n.d(t,{P:function(){return l},Z:function(){return function e(){var t=l((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},o.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),o=n(22274);function a(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function s(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l(e){var t=1,n=e(a(1),s(t));return n.constant=function(n){return arguments.length?e(a(t=+n),s(t)):t},(0,r.Q)(n)}},74995:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=[.5],o=[0,1],a=1;function s(e){return null!=e&&e<=e?o[(0,r.ZP)(n,e,0,a)]:t}return s.domain=function(e){return arguments.length?(a=Math.min((n=Array.from(e)).length,o.length-1),s):n.slice()},s.range=function(e){return arguments.length?(o=Array.from(e),a=Math.min(n.length,o.length-1),s):o.slice()},s.invertExtent=function(e){var t=o.indexOf(e);return[n[t-1],n[t]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return e().domain(n).range(o).unknown(t)},i.o.apply(s,arguments)}}});var r=n(98038),i=n(22274)},78937:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(32071),i=n(52328),o=n(21032),a=n(11192),s=n(61652),l=n(88013);function u(e,t,n,u){var c,d=(0,r.ly)(e,t,n);switch((u=(0,i.Z)(null==u?",f":u)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=u.precision||isNaN(c=(0,o.Z)(d,f))||(u.precision=c),(0,a.jH)(u,f);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(c=(0,s.Z)(d,Math.max(Math.abs(e),Math.abs(t))))||(u.precision=c-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(c=(0,l.Z)(d))||(u.precision=c-("%"===u.type)*2)}return(0,a.WU)(u)}},37932:function(e,t,n){"use strict";n.d(t,{Y:function(){return g},Z:function(){return y}});var r=n(1381),i=n(97344),o=n(50690),a=n(76231),s=n(68603),l=n(54076),u=n(18450),c=n(52546),d=n(61743),f=n(70552),h=n(22274),p=n(10070);function m(e){return new Date(e)}function v(e){return e instanceof Date?+e:+new Date(+e)}function g(e,t,n,r,i,o,a,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),b=u(":%S"),x=u("%I:%M"),w=u("%I %p"),j=u("%a %d"),E=u("%b %d"),k=u("%B"),S=u("%Y");function _(e){return(l(e)A*A+P*P&&(S=C,_=O),{cx:S,cy:_,x01:-d,y01:-f,x11:S*(i/j-1),y11:_*(i/j-1)}}function f(){var e=a,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-o.ou,c=p.apply(this,arguments)-o.ou,g=(0,o.Wn)(c-u),y=c>u;if(v||(v=i=(0,r.Z)()),lo.Ho){if(g>o.BZ-o.Ho)v.moveTo(l*(0,o.mC)(u),l*(0,o.O$)(u)),v.arc(0,0,l,u,c,!y),s>o.Ho&&(v.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),v.arc(0,0,s,c,u,y));else{var b,x,w=u,j=c,E=u,k=c,S=g,_=g,C=m.apply(this,arguments)/2,O=C>o.Ho&&(f?+f.apply(this,arguments):(0,o._b)(s*s+l*l)),M=(0,o.VV)((0,o.Wn)(l-s)/2,+n.apply(this,arguments)),T=M,A=M;if(O>o.Ho){var P=(0,o.ZR)(O/s*(0,o.O$)(C)),N=(0,o.ZR)(O/l*(0,o.O$)(C));(S-=2*P)>o.Ho?(P*=y?1:-1,E+=P,k-=P):(S=0,E=k=(u+c)/2),(_-=2*N)>o.Ho?(N*=y?1:-1,w+=N,j-=N):(_=0,w=j=(u+c)/2)}var R=l*(0,o.mC)(w),D=l*(0,o.O$)(w),L=s*(0,o.mC)(k),F=s*(0,o.O$)(k);if(M>o.Ho){var z,V=l*(0,o.mC)(j),I=l*(0,o.O$)(j),Z=s*(0,o.mC)(E),B=s*(0,o.O$)(E);if(go.Ho?A>o.Ho?(b=d(Z,B,R,D,l,A,y),x=d(V,I,L,F,l,A,y),v.moveTo(b.cx+b.x01,b.cy+b.y01),Ao.Ho&&S>o.Ho?T>o.Ho?(b=d(L,F,V,I,s,-T,y),x=d(R,D,Z,B,s,-T,y),v.lineTo(b.cx+b.x01,b.cy+b.y01),T=a;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[o]=+e(h,o,i),y[o]=+n(h,o,i),f.point(t?+t(h,o,i):g[o],l?+l(h,o,i):y[o]))}if(p)return f=null,p+""||null}function p(){return(0,a.Z)().defined(u).curve(d).context(c)}return h.x=function(n){return arguments.length?(e="function"==typeof n?n:(0,i.Z)(+n),t=null,h):e},h.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.Z)(+t),h):e},h.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):t},h.y=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),l=null,h):n},h.y0=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),h):n},h.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):l},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(l)},h.lineX1=function(){return p().x(t).y(n)},h.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.Z)(!!e),h):u},h.curve=function(e){return arguments.length?(d=e,null!=c&&(f=d(c)),h):d},h.context=function(e){return arguments.length?(null==e?c=f=null:f=d(c=e),h):c},h}},72299:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var r=Array.prototype.slice},33554:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},46385:function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}n.d(t,{pC:function(){return i},xm:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.ZP=function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},20651:function(e,t,n){"use strict";function r(e){this._context=e}function i(e){return new r(e)}n.d(t,{Z:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&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)}}}},27266:function(e,t,n){"use strict";function r(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*r)/(r+i)))||0}function i(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function o(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function a(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new a(e)}function c(e){return new s(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),a.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:o(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+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,o(this,i(this,n=r(this,e,t)),n);break;default:o(this,this._t0,n=r(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(s.prototype=Object.create(a.prototype)).point=function(e,t){a.prototype.point.call(this,t,e)},l.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,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},j:function(){return r}});var r=o(n(20651).Z);function i(e){this._curve=e}function o(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}}},45742:function(e,t,n){"use strict";function r(e,t){this._context=e,this._t=t}function i(e){return new r(e,.5)}function o(e){return new r(e,0)}function a(e){return new r(e,1)}n.d(t,{RN:function(){return o},ZP:function(){return i},cD:function(){return a}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=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)}}this._x=e,this._y=t}}},59207:function(e,t,n){"use strict";n.r(t),n.d(t,{arc:function(){return r.Z},area:function(){return i.Z},areaRadial:function(){return u},curveBasis:function(){return E},curveBasisClosed:function(){return S},curveBasisOpen:function(){return C},curveBundle:function(){return M},curveCardinal:function(){return T.ZP},curveCardinalClosed:function(){return P},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return z},curveCatmullRomClosed:function(){return I},curveCatmullRomOpen:function(){return B},curveLinear:function(){return W.Z},curveLinearClosed:function(){return U},curveMonotoneX:function(){return q.Z},curveMonotoneY:function(){return q.s},curveNatural:function(){return Y},curveStep:function(){return G.ZP},curveStepAfter:function(){return G.cD},curveStepBefore:function(){return G.RN},line:function(){return o.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return a.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return X.Z},stackOffsetDiverging:function(){return Q.Z},stackOffsetExpand:function(){return J.Z},stackOffsetNone:function(){return ee.Z},stackOffsetSilhouette:function(){return et.Z},stackOffsetWiggle:function(){return en.Z},stackOrderAppearance:function(){return er.Z},stackOrderAscending:function(){return ei.Z},stackOrderDescending:function(){return eo.Z},stackOrderInsideOut:function(){return ea.Z},stackOrderNone:function(){return es.Z},stackOrderReverse:function(){return el.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return v.Z},symbolStar:function(){return g.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return b.Z},symbols:function(){return f.u}});var r=n(38764),i=n(12235),o=n(79767),a=n(69619),s=n(23165),l=n(8329);function u(){var e=(0,i.Z)().curve(s.j),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,l.X)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,l.X)(r())},delete e.lineX1,e.lineInnerRadius=function(){return(0,l.X)(o())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,s.Z)(e)):t()._curve},e}var c=n(3326),d=n(72215),f=n(24037),h=n(62628),p=n(9135),m=n(82893),v=n(44523),g=n(86707),y=n(42965),b=n(60598);function x(){}function w(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 j(e){this._context=e}function E(e){return new j(e)}function k(e){this._context=e}function S(e){return new k(e)}function _(e){this._context=e}function C(e){return new _(e)}function O(e,t){this._basis=new j(e),this._beta=t}j.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:w(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},k.prototype={areaStart:x,areaEnd:x,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)}},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:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},_.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||0!==this._line&&3===this._point)&&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,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},O.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var M=function e(t){function n(e){return 1===t?new j(e):new O(e,t)}return n.beta=function(t){return e(+t)},n}(.85),T=n(46385);function A(e,t){this._context=e,this._k=(1-t)/6}A.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,T.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var P=function e(t){function n(e){return new A(e,t)}return n.tension=function(t){return e(+t)},n}(0);function N(e,t){this._context=e,this._k=(1-t)/6}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,T.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R=function e(t){function n(e){return new N(e,t)}return n.tension=function(t){return e(+t)},n}(0),D=n(15);function L(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>D.Ho){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>D.Ho){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function F(e,t){this._context=e,this._alpha=t}F.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var z=function e(t){function n(e){return t?new F(e,t):new T.pC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function V(e,t){this._context=e,this._alpha=t}V.prototype={areaStart:x,areaEnd:x,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var I=function e(t){function n(e){return t?new V(e,t):new A(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Z(e,t){this._context=e,this._alpha=t}Z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var B=function e(t){function n(e){return t?new Z(e,t):new N(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function H(e){this._context=e}function U(e){return new H(e)}H.prototype={areaStart:x,areaEnd:x,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))}};var W=n(20651),q=n(27266);function $(e){this._context=e}function K(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[r-1]=(e[r]+i[r-1])/2;t1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?f:e<=-1?-f:Math.asin(e)}},76751:function(e,t,n){"use strict";function r(e,t){if((s=e.length)>0)for(var n,r,i,o,a,s,l=0,u=e[t[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}n.d(t,{Z:function(){return r}})},22254:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(90541);function i(e,t){if((i=e.length)>0){for(var n,i,o,a=0,s=e[0].length;a1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o0){for(var n,i=0,o=e[t[0]],a=o.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,o,a=0,s=1;so&&(o=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(o);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function o(e){for(var t,n=0,r=-1,i=e.length;++r=0;)n[t]=t;return n}n.d(t,{Z:function(){return r}})},40277:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(81182);function i(e){return(0,r.Z)(e).reverse()}},69619:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(33554);function i(e,t){return te?1:t>=e?0:NaN}function o(e){return e}var a=n(15);function s(){var e=o,t=i,n=null,s=(0,r.Z)(0),l=(0,r.Z)(a.BZ),u=(0,r.Z)(0);function c(r){var i,o,c,d,f,h=r.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(a.BZ,Math.max(-a.BZ,l.apply(this,arguments)-g)),b=Math.min(Math.abs(y)/h,u.apply(this,arguments)),x=b*(y<0?-1:1);for(i=0;i0&&(p+=f);for(null!=t?m.sort(function(e,n){return t(v[e],v[n])}):null!=n&&m.sort(function(e,t){return n(r[e],r[t])}),i=0,c=p?(y-h*x)/p:0;i0?f*c:0)+x,v[o]={data:r[o],index:i,value:f,startAngle:g,endAngle:d,padAngle:b};return v}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.Z)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,n=null,c):t},c.sort=function(e){return arguments.length?(n=e,t=null,c):n},c.startAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,r.Z)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.Z)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,r.Z)(+e),c):u},c}},11053:function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}n.d(t,{x:function(){return r},y:function(){return i}})},3326:function(e,t,n){"use strict";function r(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}n.d(t,{Z:function(){return r}})},98926:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(72299),i=n(33554),o=n(90541),a=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=a.Z,n=o.Z,l=s;function u(r){var i,o,a=e.apply(this,arguments),s=r.length,u=a.length,c=Array(u);for(i=0;ie.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.UD,e=>e.getDate()-1);t.Z=o;var a=o.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,l=30*a,u=365*a},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym-e.getMinutes()*i.yB)},function(e,t){e.setTime(+e+t*i.Y2)},function(e,t){return(t-e)/i.Y2},function(e){return e.getHours()});t.Z=o;var a=o.range},11365:function(e,t,n){"use strict";n.r(t),n.d(t,{timeDay:function(){return l.Z},timeDays:function(){return l.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return s.Z},timeHours:function(){return s.i},timeInterval:function(){return r.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return a.Z},timeMinutes:function(){return a.L},timeMonday:function(){return u.wA},timeMondays:function(){return u.bJ},timeMonth:function(){return c.Z},timeMonths:function(){return c.e},timeSaturday:function(){return u.EY},timeSaturdays:function(){return u.Ff},timeSecond:function(){return o.Z},timeSeconds:function(){return o.m},timeSunday:function(){return u.OM},timeSundays:function(){return u.vm},timeThursday:function(){return u.bL},timeThursdays:function(){return u.$t},timeTickInterval:function(){return y._g},timeTicks:function(){return y.jK},timeTuesday:function(){return u.sy},timeTuesdays:function(){return u.aU},timeWednesday:function(){return u.zg},timeWednesdays:function(){return u.Ld},timeWeek:function(){return u.OM},timeWeeks:function(){return u.vm},timeYear:function(){return d.Z},timeYears:function(){return d.g},utcDay:function(){return p.Z},utcDays:function(){return p.y},utcFriday:function(){return m.QQ},utcFridays:function(){return m.fz},utcHour:function(){return h.Z},utcHours:function(){return h.X},utcMillisecond:function(){return i.Z},utcMilliseconds:function(){return i.m},utcMinute:function(){return f.Z},utcMinutes:function(){return f.N},utcMonday:function(){return m.l6},utcMondays:function(){return m.$3},utcMonth:function(){return v.Z},utcMonths:function(){return v.K},utcSaturday:function(){return m.g4},utcSaturdays:function(){return m.Q_},utcSecond:function(){return o.Z},utcSeconds:function(){return o.m},utcSunday:function(){return m.Ox},utcSundays:function(){return m.SU},utcThursday:function(){return m.hB},utcThursdays:function(){return m.xj},utcTickInterval:function(){return y.jo},utcTicks:function(){return y.WG},utcTuesday:function(){return m.J1},utcTuesdays:function(){return m.DK},utcWednesday:function(){return m.b3},utcWednesdays:function(){return m.uy},utcWeek:function(){return m.Ox},utcWeeks:function(){return m.SU},utcYear:function(){return g.Z},utcYears:function(){return g.D}});var r=n(22179),i=n(30356),o=n(52546),a=n(18450),s=n(54076),l=n(68603),u=n(76231),c=n(50690),d=n(97344),f=n(52004),h=n(28239),p=n(12370),m=n(97631),v=n(94758),g=n(2908),y=n(1381)},22179:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t,n,o,a){function s(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t0))return a;do a.push(o=new Date(+e)),n(e,i),t(e);while(o=e)for(;t(e),!r(e);)e.setTime(e-1)},function(e,t){if(e>=e){if(t<0)for(;++t<=0;)for(;n(e,-1),!r(e););else for(;--t>=0;)for(;n(e,1),!r(e););}})},o&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(o(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}}});var r=new Date,i=new Date},30356:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(22179),i=(0,r.Z)(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?(0,r.Z)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):i:null},t.Z=i;var o=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym)},function(e,t){e.setTime(+e+t*i.yB)},function(e,t){return(t-e)/i.yB},function(e){return e.getMinutes()});t.Z=o;var a=o.range},50690:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=(0,n(22179).Z)(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});t.Z=r;var i=r.range},52546:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*i.Ym)},function(e,t){return(t-e)/i.Ym},function(e){return e.getUTCSeconds()});t.Z=o;var a=o.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return _},jK:function(){return S},jo:function(){return k},WG:function(){return E}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>{var r;return(r=e(t))n?1:r>=n?0:NaN}),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}})(([,,e])=>e).right(c,i);if(o===c.length)return e.every(a(t/s.qz,n/s.qz,r));if(0===o)return l.Z.every(Math.max(a(t,n,r),1));let[u,d]=c[i/c[o-1][2]0?(0,r.Z)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},t.Z=i;var o=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return b},Ld:function(){return v},OM:function(){return a},aU:function(){return m},b$:function(){return y},bJ:function(){return p},bL:function(){return c},mC:function(){return d},sy:function(){return l},vm:function(){return h},wA:function(){return s},zg:function(){return u}});var r=n(22179),i=n(1514);function o(e){return(0,r.Z)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.iM})}var a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),d=o(5),f=o(6),h=a.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,b=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(22179),i=(0,r.Z)(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},t.Z=i;var o=i.range},1645:function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return r}})},19785:function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},29193:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(66700),i=n(19785);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t),a=n.getTime()-o.getTime();return a<0?-1:a>0?1:a}var a={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},s=n(88811),l=n(1645);function u(e,t){var n,u,c,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,i.Z)(2,arguments);var f=d.locale||s.Z;if(!f.formatDistance)throw RangeError("locale must contain formatDistance property");var h=o(e,t);if(isNaN(h))throw RangeError("Invalid time value");var p=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}({},d);p.addSuffix=!!d.addSuffix,p.comparison=h,h>0?(n=(0,r.Z)(t),u=(0,r.Z)(e)):(n=(0,r.Z)(e),u=(0,r.Z)(t));var m=function(e,t,n){(0,i.Z)(2,arguments);var o,s=function(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}(e,t)/1e3;return((o=null==n?void 0:n.roundingMethod)?a[o]:a.trunc)(s)}(u,n),v=Math.round((m-((0,l.Z)(u)-(0,l.Z)(n))/1e3)/60);if(v<2){if(d.includeSeconds){if(m<5)return f.formatDistance("lessThanXSeconds",5,p);if(m<10)return f.formatDistance("lessThanXSeconds",10,p);if(m<20)return f.formatDistance("lessThanXSeconds",20,p);if(m<40)return f.formatDistance("halfAMinute",null,p);else if(m<60)return f.formatDistance("lessThanXMinutes",1,p);else return f.formatDistance("xMinutes",1,p)}return 0===v?f.formatDistance("lessThanXMinutes",1,p):f.formatDistance("xMinutes",v,p)}if(v<45)return f.formatDistance("xMinutes",v,p);if(v<90)return f.formatDistance("aboutXHours",1,p);if(v<1440){var g=Math.round(v/60);return f.formatDistance("aboutXHours",g,p)}if(v<2520)return f.formatDistance("xDays",1,p);if(v<43200){var y=Math.round(v/1440);return f.formatDistance("xDays",y,p)}if(v<86400)return c=Math.round(v/43200),f.formatDistance("aboutXMonths",c,p);if((c=function(e,t){(0,i.Z)(2,arguments);var n,a=(0,r.Z)(e),s=(0,r.Z)(t),l=o(a,s),u=Math.abs(function(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}(a,s));if(u<1)n=0;else{1===a.getMonth()&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-l*u);var c=o(a,s)===-l;(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,r.Z)(e))&&1===u&&1===o(e,s)&&(c=!1),n=l*(u-Number(c))}return 0===n?0:n}(u,n))<12){var b=Math.round(v/43200);return f.formatDistance("xMonths",b,p)}var x=c%12,w=Math.floor(c/12);return x<3?f.formatDistance("aboutXYears",w,p):x<9?f.formatDistance("overXYears",w,p):f.formatDistance("almostXYears",w+1,p)}},88811:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r,i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function o(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:a,formatRelative:function(e,t,n,r){return s[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(r.matchPattern);if(!n)return null;var i=n[0],o=e.match(r.parsePattern);if(!o)return null;var a=r.valueCallback?r.valueCallback(o[0]):o[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(i.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},66700:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19785);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},36386:function(e){function t(e,t,n){function r(){var u=Date.now()-s;u=0?i=setTimeout(r,t-u):(i=null,n||(l=e.apply(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,l,u=function(){a=this,o=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(a,o),a=o=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},9156:function(e,t,n){"use strict";n.d(t,{TA:function(){return t3}});var r,i,o,a=n(2784),s=n(78435),l=n.n(s),u=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==c},c="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function d(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h(Array.isArray(e)?[]:{},e,t):e}function f(e,t,n){return e.concat(t).map(function(e){return d(e,n)})}function h(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||f,n.isMergeableObject=n.isMergeableObject||u;var r,i,o=Array.isArray(t);return o!==Array.isArray(e)?d(t,n):o?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=d(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=h(e[n],t[n],r):i[n]=d(t[n],r)}),i)}h.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return h(e,n,t)},{})};var p=h,m=n(98147),v=function(e,t){return function(n){return e(t(n))}},g=v(Object.getPrototypeOf,Object),y=n(43391),b=Object.prototype,x=Function.prototype.toString,w=b.hasOwnProperty,j=x.call(Object),E=function(e){if(!(0,y.Z)(e)||"[object Object]"!=(0,m.Z)(e))return!1;var t=g(e);if(null===t)return!0;var n=w.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&x.call(n)==j},k=function(e,t){return e===t||e!=e&&t!=t},S=function(e,t){for(var n=e.length;n--;)if(k(e[n][0],t))return n;return -1},_=Array.prototype.splice;function C(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},C.prototype.set=function(e,t){var n=this.__data__,r=S(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var O=n(93122),M=function(e){if(!(0,O.Z)(e))return!1;var t=(0,m.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},T=n(93221),A=T.Z["__core-js_shared__"],P=(r=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",N=Function.prototype.toString,R=function(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""},D=/^\[object .+?Constructor\]$/,L=Object.prototype,F=Function.prototype.toString,z=L.hasOwnProperty,V=RegExp("^"+F.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=function(e,t){var n,r=null==e?void 0:e[t];return(n=r,(0,O.Z)(n)&&(!P||!(P in n))&&(M(n)?V:D).test(R(n)))?r:void 0},Z=I(T.Z,"Map"),B=I(Object,"create"),H=Object.prototype.hasOwnProperty,U=Object.prototype.hasOwnProperty;function W(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},ev={};ev["[object Float32Array]"]=ev["[object Float64Array]"]=ev["[object Int8Array]"]=ev["[object Int16Array]"]=ev["[object Int32Array]"]=ev["[object Uint8Array]"]=ev["[object Uint8ClampedArray]"]=ev["[object Uint16Array]"]=ev["[object Uint32Array]"]=!0,ev["[object Arguments]"]=ev["[object Array]"]=ev["[object ArrayBuffer]"]=ev["[object Boolean]"]=ev["[object DataView]"]=ev["[object Date]"]=ev["[object Error]"]=ev["[object Function]"]=ev["[object Map]"]=ev["[object Number]"]=ev["[object Object]"]=ev["[object RegExp]"]=ev["[object Set]"]=ev["[object String]"]=ev["[object WeakMap]"]=!1;var eg=function(e){return function(t){return e(t)}},ey=n(92168),eb="object"==typeof exports&&exports&&!exports.nodeType&&exports,ex=eb&&"object"==typeof module&&module&&!module.nodeType&&module,ew=ex&&ex.exports===eb&&ey.Z.process,ej=function(){try{var e=ex&&ex.require&&ex.require("util").types;if(e)return e;return ew&&ew.binding&&ew.binding("util")}catch(e){}}(),eE=ej&&ej.isTypedArray,ek=eE?eg(eE):function(e){return(0,y.Z)(e)&&em(e.length)&&!!ev[(0,m.Z)(e)]},eS=Object.prototype.hasOwnProperty,e_=function(e,t){var n=el(e),r=!n&&es(e),i=!n&&!r&&ef(e),o=!n&&!r&&!i&&ek(e),a=n||r||i||o,s=a?en(e.length,String):[],l=s.length;for(var u in e)(t||eS.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ep(u,l)))&&s.push(u);return s},eC=Object.prototype,eO=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eC)},eM=v(Object.keys,Object),eT=Object.prototype.hasOwnProperty,eA=function(e){if(!eO(e))return eM(e);var t=[];for(var n in Object(e))eT.call(e,n)&&"constructor"!=n&&t.push(n);return t},eP=function(e){return null!=e&&em(e.length)&&!M(e)},eN=function(e){return eP(e)?e_(e):eA(e)},eR=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eD=Object.prototype.hasOwnProperty,eL=function(e){if(!(0,O.Z)(e))return eR(e);var t=eO(e),n=[];for(var r in e)"constructor"==r&&(t||!eD.call(e,r))||n.push(r);return n},eF=function(e){return eP(e)?e_(e,!0):eL(e)},ez="object"==typeof exports&&exports&&!exports.nodeType&&exports,eV=ez&&"object"==typeof module&&module&&!module.nodeType&&module,eI=eV&&eV.exports===ez?T.Z.Buffer:void 0,eZ=eI?eI.allocUnsafe:void 0,eB=function(e,t){if(t)return e.slice();var n=e.length,r=eZ?eZ(n):new e.constructor(n);return e.copy(r),r},eH=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0||(i[n]=e[n]);return i}function tq(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var t$=function(e){return Array.isArray(e)&&0===e.length},tK=function(e){return"function"==typeof e},tY=function(e){return null!==e&&"object"==typeof e},tG=function(e){return"[object String]"===Object.prototype.toString.call(e)},tX=function(e){return tY(e)&&tK(e.then)};function tJ(e,t,n,r){void 0===r&&(r=0);for(var i=tB(t);e&&r=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}var t0=(0,a.createContext)(void 0);function t1(e,t){switch(t.type){case"SET_VALUES":return tU({},e,{values:t.payload});case"SET_TOUCHED":return tU({},e,{touched:t.payload});case"SET_ERRORS":if(l()(e.errors,t.payload))return e;return tU({},e,{errors:t.payload});case"SET_STATUS":return tU({},e,{status:t.payload});case"SET_ISSUBMITTING":return tU({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return tU({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return tU({},e,{values:tQ(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return tU({},e,{touched:tQ(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return tU({},e,{errors:tQ(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return tU({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return tU({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var o,a=o;tJ(t,a.path)||(t=tQ(t,a.path,a.message))}}return t}(n)):t(n)})})},[m.validationSchema]),O=(0,a.useCallback)(function(e,t){return new Promise(function(n){return n(w.current[e].validate(t))})},[]),M=(0,a.useCallback)(function(e){var t=Object.keys(w.current).filter(function(e){return tK(w.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return O(t,tJ(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=tQ(e,t[r],n)),e},{})})},[O]),T=(0,a.useCallback)(function(e){return Promise.all([M(e),m.validationSchema?C(e):{},m.validate?_(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return p.all([t,n,r],{arrayMerge:t5})})},[m.validate,m.validationSchema,M,_,C]),A=t8(function(e){return void 0===e&&(e=k.values),S({type:"SET_ISVALIDATING",payload:!0}),T(e).then(function(e){return x.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:e})),e})});(0,a.useEffect)(function(){s&&!0===x.current&&l()(v.current,m.initialValues)&&A(v.current)},[s,A]);var P=(0,a.useCallback)(function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:g.current?g.current:m.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:m.initialTouched||{},i=e&&e.status?e.status:b.current?b.current:m.initialStatus;v.current=t,g.current=n,y.current=r,b.current=i;var o=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(m.onReset){var a=m.onReset(k.values,X);tX(a)?a.then(o):o()}else o()},[m.initialErrors,m.initialStatus,m.initialTouched]);(0,a.useEffect)(function(){!0===x.current&&!l()(v.current,m.initialValues)&&(d&&(v.current=m.initialValues,P()),s&&A(v.current))},[d,m.initialValues,P,s,A]),(0,a.useEffect)(function(){d&&!0===x.current&&!l()(g.current,m.initialErrors)&&(g.current=m.initialErrors||t2,S({type:"SET_ERRORS",payload:m.initialErrors||t2}))},[d,m.initialErrors]),(0,a.useEffect)(function(){d&&!0===x.current&&!l()(y.current,m.initialTouched)&&(y.current=m.initialTouched||t4,S({type:"SET_TOUCHED",payload:m.initialTouched||t4}))},[d,m.initialTouched]),(0,a.useEffect)(function(){d&&!0===x.current&&!l()(b.current,m.initialStatus)&&(b.current=m.initialStatus,S({type:"SET_STATUS",payload:m.initialStatus}))},[d,m.initialStatus,m.initialTouched]);var N=t8(function(e){if(w.current[e]&&tK(w.current[e].validate)){var t=tJ(k.values,e),n=w.current[e].validate(t);return tX(n)?(S({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return m.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),C(k.values,e).then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),S({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),R=(0,a.useCallback)(function(e,t){var n=t.validate;w.current[e]={validate:n}},[]),D=(0,a.useCallback)(function(e){delete w.current[e]},[]),L=t8(function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?A(k.values):Promise.resolve()}),F=(0,a.useCallback)(function(e){S({type:"SET_ERRORS",payload:e})},[]),z=t8(function(e,t){var r=tK(e)?e(k.values):e;return S({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?A(r):Promise.resolve()}),V=(0,a.useCallback)(function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),I=t8(function(e,t,r){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?A(tQ(k.values,e,t)):Promise.resolve()}),Z=(0,a.useCallback)(function(e,t){var n,r=t,i=e;if(!tG(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;r=t||s||l,i=/number|range/.test(a)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}(tJ(k.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&I(r,i)},[I,k.values]),B=t8(function(e){if(tG(e))return function(t){return Z(t,e)};Z(e)}),H=t8(function(e,t,n){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?A(k.values):Promise.resolve()}),U=(0,a.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,H(t||r||i,!0)},[H]),W=t8(function(e){if(tG(e))return function(t){return U(t,e)};U(e)}),q=(0,a.useCallback)(function(e){tK(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),$=(0,a.useCallback)(function(e){S({type:"SET_STATUS",payload:e})},[]),K=(0,a.useCallback)(function(e){S({type:"SET_ISSUBMITTING",payload:e})},[]),Y=t8(function(){return S({type:"SUBMIT_ATTEMPT"}),A().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=J(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return x.current&&S({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(x.current)throw S({type:"SUBMIT_FAILURE"}),e})}if(x.current&&(S({type:"SUBMIT_FAILURE"}),n))throw e})}),G=t8(function(e){e&&e.preventDefault&&tK(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&tK(e.stopPropagation)&&e.stopPropagation(),Y().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),X={resetForm:P,validateForm:A,validateField:N,setErrors:F,setFieldError:V,setFieldTouched:H,setFieldValue:I,setStatus:$,setSubmitting:K,setTouched:L,setValues:z,setFormikState:q,submitForm:Y},J=t8(function(){return f(k.values,X)}),Q=t8(function(e){e&&e.preventDefault&&tK(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&tK(e.stopPropagation)&&e.stopPropagation(),P()}),ee=(0,a.useCallback)(function(e){return{value:tJ(k.values,e),error:tJ(k.errors,e),touched:!!tJ(k.touched,e),initialValue:tJ(v.current,e),initialTouched:!!tJ(y.current,e),initialError:tJ(g.current,e)}},[k.errors,k.touched,k.values]),et=(0,a.useCallback)(function(e){return{setValue:function(t,n){return I(e,t,n)},setTouched:function(t,n){return H(e,t,n)},setError:function(t){return V(e,t)}}},[I,H,V]),en=(0,a.useCallback)(function(e){var t=tY(e),n=t?e.name:e,r=tJ(k.values,n),i={name:n,value:r,onChange:B,onBlur:W};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[W,B,k.values]),er=(0,a.useMemo)(function(){return!l()(v.current,k.values)},[v.current,k.values]),ei=(0,a.useMemo)(function(){return void 0!==u?er?k.errors&&0===Object.keys(k.errors).length:!1!==u&&tK(u)?u(m):u:k.errors&&0===Object.keys(k.errors).length},[u,er,k.errors,m]);return tU({},k,{initialValues:v.current,initialErrors:g.current,initialTouched:y.current,initialStatus:b.current,handleBlur:W,handleChange:B,handleReset:Q,handleSubmit:G,resetForm:P,setErrors:F,setFormikState:q,setFieldTouched:H,setFieldValue:I,setFieldError:V,setStatus:$,setSubmitting:K,setTouched:L,setValues:z,submitForm:Y,validateForm:A,validateField:N,isValid:ei,dirty:er,unregisterField:D,registerField:R,getFieldProps:en,getFieldMeta:ee,getFieldHelpers:et,validateOnBlur:i,validateOnChange:n,validateOnMount:s})}function t5(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?p(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=p(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var t6="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function t8(e){var t=(0,a.useRef)(e);return t6(function(){t.current=e}),(0,a.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;re?t:e},0);return Array.from(tU({},e,{length:t+1}))};(function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)(function(n){var i="function"==typeof r?r:e,a="function"==typeof t?t:e,s=tQ(n.values,o,e(tJ(n.values,o))),l=r?i(tJ(n.errors,o)):void 0,u=t?a(tJ(n.touched,o)):void 0;return t$(l)&&(l=void 0),t$(u)&&(u=void 0),tU({},n,{values:s,errors:r?tQ(n.errors,o,l):n.errors,touched:t?tQ(n.touched,o,u):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(nn(t),[tO(e,5)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return t9(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return t7(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return ne(n,e,t)},function(t){return ne(t,e,null)},function(t){return ne(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return nt(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(tq(n)),n.pop=n.pop.bind(tq(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!l()(tJ(e.formik.values,e.name),tJ(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?nn(n):[];return t||(t=r[e]),tK(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,i=t.children,o=t.name,s=tW(t.formik,["validate","validationSchema"]),l=tU({},e,{form:s,name:o});return n?(0,a.createElement)(n,l):r?r(l):i?"function"==typeof i?i(l):0===a.Children.count(i)?null:a.Children.only(i):null},t})(a.Component).defaultProps={validateOnChange:!0}},73463:function(e,t,n){"use strict";var r=n(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v=0;)(u=e(r,i,o,a,h+1,l+1))>p&&(h===s?u*=1:t.test(r.charAt(h-1))?(u*=.9,(d=r.slice(s,h-1).match(n))&&s>0&&(u*=Math.pow(.999,d.length))):(t.test(r.slice(s,h-1))?u*=0:u*=.3,s>0&&(u*=Math.pow(.999,h-s))),r.charAt(h)!==i.charAt(l)&&(u*=.9999)),u<.1&&o.charAt(h-1)===a.charAt(l+1)&&o.charAt(h-1)!==a.charAt(l)&&.1*(c=e(r,i,o,a,h+1,l+2))>u&&(u=.1*c),u>p&&(p=u),h=o.indexOf(f,h+1);return p}(e,r,e.toLowerCase(),r.toLowerCase(),0,0)}},68847:function(e,t,n){"use strict";n.d(t,{B8:function(){return k},Il:function(){return i},J5:function(){return a},SU:function(){return E},Ss:function(){return S},Ym:function(){return A},ZP:function(){return b},xV:function(){return o}});var r=n(40948);function i(){}var o=.7,a=1.4285714285714286,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,d=RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=RegExp("^rgb\\("+[u,u,u]+"\\)$"),h=RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),m=RegExp("^hsl\\("+[l,u,u]+"\\)$"),v=RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),g={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};function y(){return this.rgb().formatHex()}function x(){return this.rgb().formatRgb()}function b(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new S(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?j(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?j(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=d.exec(e))?new S(t[1],t[2],t[3],1):(t=f.exec(e))?new S(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?j(t[1],t[2],t[3],t[4]):(t=p.exec(e))?j(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?M(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?M(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new S(NaN,NaN,NaN,0):null}function w(e){return new S(e>>16&255,e>>8&255,255&e,1)}function j(e,t,n,r){return r<=0&&(e=t=n=NaN),new S(e,t,n,r)}function E(e){return(e instanceof i||(e=b(e)),e)?(e=e.rgb(),new S(e.r,e.g,e.b,e.opacity)):new S}function k(e,t,n,r){return 1==arguments.length?E(e):new S(e,t,n,null==r?1:r)}function S(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function _(){return"#"+O(this.r)+O(this.g)+O(this.b)}function C(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function O(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function M(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new P(e,t,n,r)}function T(e){if(e instanceof P)return new P(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=b(e)),!e)return new P;if(e instanceof P)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-o,u=(a+o)/2;return l?(s=t===a?(n-r)/l+(n0&&u<1?0:s,new P(s,l,u,e.opacity)}function A(e,t,n,r){return 1==arguments.length?T(e):new P(e,t,n,null==r?1:r)}function P(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function N(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}(0,r.Z)(i,b,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return T(this).formatHsl()},formatRgb:x,toString:x}),(0,r.Z)(S,k,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new S(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:_,formatHex:_,formatRgb:C,toString:C})),(0,r.Z)(P,A,(0,r.l)(i,{brighter:function(e){return e=null==e?a:Math.pow(a,e),new P(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?o:Math.pow(o,e),new P(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new S(N(e>=240?e-240:e+120,i,r),N(e,i,r),N(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},40948:function(e,t,n){"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,{Z:function(){return r},l:function(){return i}})},20966:function(e,t,n){"use strict";n.d(t,{Uc:function(){return g},ZP:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=4/29,s=6/29,l=3*(6/29)*(6/29),u=6/29*(6/29)*(6/29);function c(e){if(e instanceof f)return new f(e.l,e.a,e.b,e.opacity);if(e instanceof y)return x(e);e instanceof i.Ss||(e=(0,i.SU)(e));var t,n,r=v(e.r),o=v(e.g),a=v(e.b),s=h((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=s:(t=h((.4360747*r+.3850649*o+.1430804*a)/.96422),n=h((.0139322*r+.0971045*o+.7141733*a)/.82521)),new f(116*s-16,500*(t-s),200*(s-n),e.opacity)}function d(e,t,n,r){return 1==arguments.length?c(e):new f(e,t,n,null==r?1:r)}function f(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function h(e){return e>u?Math.pow(e,1/3):e/l+a}function p(e){return e>s?e*e*e:l*(e-a)}function m(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function v(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function g(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof y)return new y(e.h,e.c,e.l,e.opacity);if(e instanceof f||(e=c(e)),0===e.a&&0===e.b)return new y(NaN,0i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}var d={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:u.Z,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)=>c(100*e,t),r:c,s:function(e,t){var n=(0,u.V)(e,t);if(!n)return e+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+(0,u.V)(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function f(e){return e}var h=Array.prototype.map,p=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];o=(i=function(e){var t,n,i,o=void 0===e.grouping||void 0===e.thousands?f:(t=h.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),a=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",c=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?f:(i=h.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return i[+e]})}),v=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"−":e.minus+"",y=void 0===e.nan?"NaN":e.nan+"";function x(e){var t=(e=(0,l.Z)(e)).fill,n=e.align,i=e.sign,s=e.symbol,f=e.zero,h=e.width,x=e.comma,b=e.precision,w=e.trim,j=e.type;"n"===j?(x=!0,j="g"):d[j]||(void 0===b&&(b=12),w=!0,j="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var E="$"===s?a:"#"===s&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",k="$"===s?u:/[%p]/.test(j)?v:"",S=d[j],_=/[defgprs%]/.test(j);function C(e){var a,s,l,u=E,d=k;if("c"===j)d=S(e)+d,e="";else{var v=(e=+e)<0||1/e<0;if(e=isNaN(e)?y:S(Math.abs(e),b),w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),v&&0==+e&&"+"!==i&&(v=!1),u=(v?"("===i?i:g:"-"===i||"("===i?"":i)+u,d=("s"===j?p[8+r/3]:"")+d+(v&&"("===i?")":""),_){for(a=-1,s=e.length;++a(l=e.charCodeAt(a))||l>57){d=(46===l?c+e.slice(a+1):e.slice(a))+d,e=e.slice(0,a);break}}}x&&!f&&(e=o(e,1/0));var C=u.length+e.length+d.length,O=C>1)+u+e+d+O.slice(C);break;default:e=O+u+e+d}return m(e)}return b=void 0===b?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),C.toString=function(){return e+""},C}return{format:x,formatPrefix:function(e,t){var n=x(((e=(0,l.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,s.Z)(t)/3))),i=Math.pow(10,-r),o=p[8+r/3];return function(e){return n(i*e)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix},23733:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(39801);function i(e){return(e=(0,r.V)(Math.abs(e)))?e[1]:NaN}},39801:function(e,t,n){"use strict";function r(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function i(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,{V:function(){return i},Z:function(){return r}})},52328:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){var t;if(!(t=r.exec(e)))throw Error("invalid format: "+e);return new o({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]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},88013:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e){return Math.max(0,-(0,r.Z)(Math.abs(e)))}},21032:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(t)/3)))-(0,r.Z)(Math.abs(e)))}},61652:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23733);function i(e,t){return t=Math.abs(t)-(e=Math.abs(e)),Math.max(0,(0,r.Z)(t)-(0,r.Z)(e))+1}},12766:function(e,t){!function(e){"use strict";function t(){return(t=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}function o(e){var t={};return 4===e.length&&(t.x2=e[2][0],t.y2=e[2][1]),e.length>=3&&(t.x1=e[1][0],t.y1=e[1][1]),t.x=e[e.length-1][0],t.y=e[e.length-1][1],4===e.length?t.type="C":3===e.length?t.type="Q":t.type="L",t}var a=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,s={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function l(e,t){for(var n=Array(e),r=0;r0?o-=1:o0&&(o-=1)),t[o]=(t[o]||0)+1,t},[]).reduce(function(n,r,i){if(i===e.length-1){var a=l(r,t({},e[e.length-1]));return"M"===a[0].type&&a.forEach(function(e){e.type="L"}),n.concat(a)}return n.concat(function(e,n,r){var i,a=[];if("L"===n.type||"Q"===n.type||"C"===n.type)a=a.concat((i=[[e.x,e.y]],null!=n.x1&&i.push([n.x1,n.y1]),null!=n.x2&&i.push([n.x2,n.y2]),i.push([n.x,n.y]),(function(e,t){for(var n=[],r=e,i=1/(t=t||2),o=0;o0&&"Z"===o[o.length-1].type&&o.pop(),a.length>0&&"Z"===a[a.length-1].type&&a.pop(),o.length?a.length||a.push(o[0]):o.push(a[0]),0!==Math.abs(a.length-o.length)&&(a.length>o.length?o=u(o,a,r):a.length0)for(var n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[i],a=e[i+1],s=i>0?e[i-1]:2*o-a,l=i180||n<-180?n-360*Math.round(n/360):n):(0,r.Z)(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?s:function(t,n){var i,o,a;return n-t?(i=t,o=n,i=Math.pow(i,a=e),o=Math.pow(o,a)-i,a=1/a,function(e){return Math.pow(i+e*o,a)}):(0,r.Z)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?i(e,n):(0,r.Z)(isNaN(e)?t:e)}},88992:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},77636:function(e,t,n){"use strict";n.d(t,{B:function(){return f},Z:function(){return d}});var r=n(40948),i=n(68847),o=n(10810),a=-1.78277*.29227-.1347134789;function s(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof l)return new l(e.h,e.s,e.l,e.opacity);e instanceof i.Ss||(e=(0,i.SU)(e));var t=e.r/255,n=e.g/255,r=e.b/255,s=(a*r+-1.7884503806*t-3.5172982438*n)/(a+-1.7884503806-3.5172982438),u=r-s,c=-((1.97294*(n-s)- -.29227*u)/.90649),d=Math.sqrt(c*c+u*u)/(1.97294*s*(1-s)),f=d?Math.atan2(c,u)*o.B-120:NaN;return new l(f<0?f+360:f,d,s,e.opacity)}(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}(0,r.Z)(l,s,(0,r.l)(i.Il,{brighter:function(e){return e=null==e?i.J5:Math.pow(i.J5,e),new l(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?i.xV:Math.pow(i.xV,e),new l(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*o.V,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new i.Ss(255*(t+n*(-.14861*r+1.78277*a)),255*(t+n*(-.29227*r+-.90649*a)),255*(t+n*(1.97294*r)),this.opacity)}}));var u=n(1234);function c(e){return function t(n){function r(t,r){var i=e((t=s(t)).h,(r=s(r)).h),o=(0,u.ZP)(t.s,r.s),a=(0,u.ZP)(t.l,r.l),l=(0,u.ZP)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}var d=c(u.wx),f=c(u.ZP)},91255:function(e,t,n){"use strict";function r(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}n.d(t,{Z:function(){return r}})},87286:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(20966),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Uc)(t)).h,(n=(0,r.Uc)(n)).h),a=(0,i.ZP)(t.c,n.c),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.c=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},43780:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(68847),i=n(1234);function o(e){return function(t,n){var o=e((t=(0,r.Ym)(t)).h,(n=(0,r.Ym)(n)).h),a=(0,i.ZP)(t.s,n.s),s=(0,i.ZP)(t.l,n.l),l=(0,i.ZP)(t.opacity,n.opacity);return function(e){return t.h=o(e),t.s=a(e),t.l=s(e),t.opacity=l(e),t+""}}}t.Z=o(i.wx);var a=o(i.ZP)},31380:function(e,t,n){"use strict";n.r(t),n.d(t,{interpolate:function(){return s.Z},interpolateArray:function(){return l.Z},interpolateBasis:function(){return u.Z},interpolateBasisClosed:function(){return c.Z},interpolateCubehelix:function(){return N.Z},interpolateCubehelixLong:function(){return N.B},interpolateDate:function(){return d.Z},interpolateDiscrete:function(){return f},interpolateHcl:function(){return P.Z},interpolateHclLong:function(){return P.b},interpolateHsl:function(){return T.Z},interpolateHslLong:function(){return T.q},interpolateHue:function(){return p},interpolateLab:function(){return A.Z},interpolateNumber:function(){return m.Z},interpolateNumberArray:function(){return v.Z},interpolateObject:function(){return g.Z},interpolateRgb:function(){return M.ZP},interpolateRgbBasis:function(){return M.hD},interpolateRgbBasisClosed:function(){return M.YD},interpolateRound:function(){return y.Z},interpolateString:function(){return x.Z},interpolateTransformCss:function(){return k},interpolateTransformSvg:function(){return S},interpolateZoom:function(){return O},piecewise:function(){return R.Z},quantize:function(){return D}});var r,i,o,a,s=n(69777),l=n(47639),u=n(67855),c=n(6984),d=n(91255);function f(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var h=n(1234);function p(e,t){var n=(0,h.wx)(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}var m=n(98876),v=n(43289),g=n(73363),y=n(74672),x=n(76060),b=180/Math.PI,w={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function j(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r180?l+=360:l-s>180&&(s+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:(0,m.Z)(s,l)})):l&&d.push(i(d)+"rotate("+l+r),(u=o.skewX)!==(c=a.skewX)?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:(0,m.Z)(u,c)}):c&&d.push(i(d)+"skewX("+c+r),!function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:(0,m.Z)(e,n)},{i:s-2,x:(0,m.Z)(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,d,f),o=a=null,function(e){for(var t,n=-1,r=f.length;++nc&&(u=t.slice(c,u),f[d]?f[d]+=u:f[++d]=u),(s=s[0])===(l=l[0])?f[d]?f[d]+=l:f[++d]=l:(f[++d]=null,h.push({i:d,x:(0,r.Z)(s,l)})),c=o.lastIndex;return c1e-6){if(Math.abs(d*l-u*c)>1e-6&&o){var h=r-a,p=i-s,m=l*l+u*u,v=Math.sqrt(m),g=Math.sqrt(f),y=o*Math.tan((n-Math.acos((m+f-(h*h+p*p))/(2*v*g)))/2),x=y/g,b=y/v;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*c)+","+(t+x*d)),this._+="A"+o+","+o+",0,0,"+ +(d*h>c*p)+","+(this._x1=e+b*l)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,o,a,s,l){e=+e,t=+t,o=+o,l=!!l;var u=o*Math.cos(a),c=o*Math.sin(a),d=e+u,f=t+c,h=1^l,p=l?a-s:s-a;if(o<0)throw Error("negative radius: "+o);null===this._x1?this._+="M"+d+","+f:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+d+","+f),o&&(p<0&&(p=p%r+r),p>i?this._+="A"+o+","+o+",0,1,"+h+","+(e-u)+","+(t-c)+"A"+o+","+o+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):p>1e-6&&(this._+="A"+o+","+o+",0,"+ +(p>=n)+","+h+","+(this._x1=e+o*Math.cos(s))+","+(this._y1=t+o*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},t.Z=a},1169:function(e,t,n){"use strict";function r(e,t){return et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},98038:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});var r=n(1169);function i(e){let t=e,n=e;function i(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>(0,r.Z)(e(t),n)),{left:i,center:function(e,n,r,o){null==r&&(r=0),null==o&&(o=e.length);let a=i(e,n,r,o-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}var o=n(81048);let a=i(r.Z),s=a.right;a.left,i(o.Z).center;var l=s},81048:function(e,t,n){"use strict";function r(e){return null===e?NaN:+e}function*i(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}n.d(t,{K:function(){return i},Z:function(){return r}})},33907:function(e,t,n){"use strict";function r(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}function i(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(t,{Z:function(){return l},s:function(){return u}});var o=n(1169);function a(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var s=n(81048);function l(e,t,n){if(l=(e=Float64Array.from((0,s.K)(e,n))).length){if((t=+t)<=0||l<2)return i(e);if(t>=1)return r(e);var l,u=(l-1)*t,c=Math.floor(u),d=r((function e(t,n,r=0,i=t.length-1,s=o.Z){for(;i>r;){if(i-r>600){let o=i-r+1,a=n-r+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o)*(a-o/2<0?-1:1),d=Math.max(r,Math.floor(n-a*u/o+c)),f=Math.min(i,Math.floor(n+(o-a)*u/o+c));e(t,n,d,f,s)}let o=t[n],l=r,u=i;for(a(t,r,n),s(t[i],o)>0&&a(t,r,i);ls(t[l],o);)++l;for(;s(t[u],o)>0;)--u}0===s(t[r],o)?a(t,r,u):a(t,++u,i),u<=n&&(r=u+1),n<=u&&(i=u-1)}return t})(e,c).subarray(0,c+1));return d+(i(e.subarray(c+1))-d)*(u-c)}}function u(e,t,n=s.Z){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}},32071:function(e,t,n){"use strict";n.d(t,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var r,i,o,a,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=Array(i=r-n+1);++lt&&--r,o=Array(i=r-n+1);++l=0?(l>=r?10:l>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}function l(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t[e.toLowerCase(),t]))}function E(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function k(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function S(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function _(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function C(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function O(e,t,n){var r=v.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function M(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function T(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function A(e,t,n){var r=v.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function P(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function R(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function D(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function L(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function F(e,t,n){var r=v.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function z(e,t,n){var r=v.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function V(e,t,n){var r=v.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function I(e,t,n){var r=g.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Z(e,t,n){var r=v.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function B(e,t,n){var r=v.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function H(e,t){return x(e.getDate(),t,2)}function U(e,t){return x(e.getHours(),t,2)}function W(e,t){return x(e.getHours()%12||12,t,2)}function q(e,t){return x(1+u.Z.count((0,c.Z)(e),e),t,3)}function $(e,t){return x(e.getMilliseconds(),t,3)}function K(e,t){return $(e,t)+"000"}function Y(e,t){return x(e.getMonth()+1,t,2)}function G(e,t){return x(e.getMinutes(),t,2)}function X(e,t){return x(e.getSeconds(),t,2)}function J(e){var t=e.getDay();return 0===t?7:t}function Q(e,t){return x(l.OM.count((0,c.Z)(e)-1,e),t,2)}function ee(e){var t=e.getDay();return t>=4||0===t?(0,l.bL)(e):l.bL.ceil(e)}function et(e,t){return e=ee(e),x(l.bL.count((0,c.Z)(e),e)+(4===(0,c.Z)(e).getDay()),t,2)}function en(e){return e.getDay()}function er(e,t){return x(l.wA.count((0,c.Z)(e)-1,e),t,2)}function ei(e,t){return x(e.getFullYear()%100,t,2)}function eo(e,t){return x((e=ee(e)).getFullYear()%100,t,2)}function ea(e,t){return x(e.getFullYear()%1e4,t,4)}function es(e,t){var n=e.getDay();return x((e=n>=4||0===n?(0,l.bL)(e):l.bL.ceil(e)).getFullYear()%1e4,t,4)}function el(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+x(t/60|0,"0",2)+x(t%60,"0",2)}function eu(e,t){return x(e.getUTCDate(),t,2)}function ec(e,t){return x(e.getUTCHours(),t,2)}function ed(e,t){return x(e.getUTCHours()%12||12,t,2)}function ef(e,t){return x(1+s.Z.count((0,d.Z)(e),e),t,3)}function eh(e,t){return x(e.getUTCMilliseconds(),t,3)}function ep(e,t){return eh(e,t)+"000"}function em(e,t){return x(e.getUTCMonth()+1,t,2)}function ev(e,t){return x(e.getUTCMinutes(),t,2)}function eg(e,t){return x(e.getUTCSeconds(),t,2)}function ey(e){var t=e.getUTCDay();return 0===t?7:t}function ex(e,t){return x(a.Ox.count((0,d.Z)(e)-1,e),t,2)}function eb(e){var t=e.getUTCDay();return t>=4||0===t?(0,a.hB)(e):a.hB.ceil(e)}function ew(e,t){return e=eb(e),x(a.hB.count((0,d.Z)(e),e)+(4===(0,d.Z)(e).getUTCDay()),t,2)}function ej(e){return e.getUTCDay()}function eE(e,t){return x(a.l6.count((0,d.Z)(e)-1,e),t,2)}function ek(e,t){return x(e.getUTCFullYear()%100,t,2)}function eS(e,t){return x((e=eb(e)).getUTCFullYear()%100,t,2)}function e_(e,t){return x(e.getUTCFullYear()%1e4,t,4)}function eC(e,t){var n=e.getUTCDay();return x((e=n>=4||0===n?(0,a.hB)(e):a.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function eO(){return"+0000"}function eM(){return"%"}function eT(e){return+e}function eA(e){return Math.floor(+e/1e3)}i=(r=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,c=e.shortDays,d=e.months,v=e.shortMonths,g=w(i),y=j(i),x=w(o),b=j(o),ee=w(c),eb=j(c),eP=w(d),eN=j(d),eR=w(v),eD=j(v),eL={a:function(e){return c[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:H,e:H,f:K,g:eo,G:es,H:U,I:W,j:q,L:$,m:Y,M:G,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:eT,s:eA,S:X,u:J,U:Q,V:et,w:en,W:er,x:null,X:null,y:ei,Y:ea,Z:el,"%":eM},eF={a:function(e){return c[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return v[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:eu,e:eu,f:ep,g:eS,G:eC,H:ec,I:ed,j:ef,L:eh,m:em,M:ev,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:eT,s:eA,S:eg,u:ey,U:ex,V:ew,w:ej,W:eE,x:null,X:null,y:ek,Y:e_,Z:eO,"%":eM},ez={a:function(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=eb.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=x.exec(t.slice(n));return r?(e.w=b.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=eR.exec(t.slice(n));return r?(e.m=eD.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=eP.exec(t.slice(n));return r?(e.m=eN.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return eZ(e,t,n,r)},d:N,e:N,f:V,g:M,G:O,H:D,I:D,j:R,L:z,m:P,M:L,p:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.p=y.get(r[0].toLowerCase()),n+r[0].length):-1},q:A,Q:Z,s:B,S:F,u:k,U:S,V:_,w:E,W:C,x:function(e,t,r){return eZ(e,n,t,r)},X:function(e,t,n){return eZ(e,r,t,n)},y:M,Y:O,Z:T,"%":I};function eV(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=h(p(o.y,0,1))).getUTCDay())>4||0===i?a.l6.ceil(r):(0,a.l6)(r),r=s.Z.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=f(p(o.y,0,1))).getDay())>4||0===i?l.wA.ceil(r):(0,l.wA)(r),r=u.Z.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?h(p(o.y,0,1)).getUTCDay():f(p(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,h(o)):f(o)}}function eZ(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=ez[(i=t.charAt(a++))in m?t.charAt(a++):i])||(r=o(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return eL.x=eV(n,eL),eL.X=eV(r,eL),eL.c=eV(t,eL),eF.x=eV(n,eF),eF.X=eV(r,eF),eF.c=eV(t,eF),{format:function(e){var t=eV(e+="",eL);return t.toString=function(){return e},t},parse:function(e){var t=eI(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=eV(e+="",eF);return t.toString=function(){return e},t},utcParse:function(e){var t=eI(e+="",!0);return t.toString=function(){return e},t}}}({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"]})).format,r.parse,o=r.utcFormat,r.utcParse},48623:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},x:function(){return a}});var r=n(22274),i=n(34130);function o(){var e,t,n=(0,i.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,u=1,c=!1,d=0,f=0,h=.5;function p(){var n=a().length,r=ut&&(n=e,e=t,t=n),g=function(n){return Math.max(e,Math.min(t,n))}),r=i>2?f:d,c=h=null,x}function x(t){return null==t||isNaN(t=+t)?n:(c||(c=r(p.map(e),m,v)))(e(g(t)))}return x.invert=function(n){return g(t((h||(h=r(m,p.map(e),o.Z)))(n)))},x.domain=function(e){return arguments.length?(p=Array.from(e,s.Z),y()):p.slice()},x.range=function(e){return arguments.length?(m=Array.from(e),y()):m.slice()},x.rangeRound=function(e){return m=Array.from(e),v=a.Z,y()},x.clamp=function(e){return arguments.length?(g=!!e||u,y()):g!==u},x.interpolate=function(e){return arguments.length?(v=e,y()):v},x.unknown=function(e){return arguments.length?(n=e,x):n},function(n,r){return e=n,t=r,y()}}function m(){return p()(u,u)}},79870:function(e,t,n){"use strict";n.r(t),n.d(t,{scaleBand:function(){return r.Z},scaleDiverging:function(){return function e(){var t=(0,i.Q)(O()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleDivergingLog:function(){return function e(){var t=(0,a.Q)(O()).domain([.1,1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleDivergingPow:function(){return M},scaleDivergingSqrt:function(){return T},scaleDivergingSymlog:function(){return function e(){var t=(0,s.P)(O());return t.copy=function(){return w(t,e()).constant(t.constant())},x.O.apply(t,arguments)}},scaleIdentity:function(){return function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,o.Z),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,o.Z):[0,1],(0,i.Q)(r)}},scaleImplicit:function(){return l.O},scaleLinear:function(){return i.Z},scaleLog:function(){return a.Z},scaleOrdinal:function(){return l.Z},scalePoint:function(){return r.x},scalePow:function(){return u.ZP},scaleQuantile:function(){return d.Z},scaleQuantize:function(){return f.Z},scaleRadial:function(){return c.Z},scaleSequential:function(){return function e(){var t=(0,i.Q)(b()(y.yR));return t.copy=function(){return w(t,e())},x.O.apply(t,arguments)}},scaleSequentialLog:function(){return function e(){var t=(0,a.Q)(b()).domain([1,10]);return t.copy=function(){return w(t,e()).base(t.base())},x.O.apply(t,arguments)}},scaleSequentialPow:function(){return j},scaleSequentialQuantile:function(){return function e(){var t=[],n=y.yR;function r(e){if(null!=e&&!isNaN(e=+e))return n(((0,k.ZP)(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let n of(t=[],e))null==n||isNaN(n=+n)||t.push(n);return t.sort(S.Z),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map((e,r)=>n(r/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(n,r)=>(0,_.Z)(t,r/e))},r.copy=function(){return e(n).domain(t)},x.O.apply(r,arguments)}},scaleSequentialSqrt:function(){return E},scaleSequentialSymlog:function(){return function e(){var t=(0,s.P)(b());return t.copy=function(){return w(t,e()).constant(t.constant())},x.O.apply(t,arguments)}},scaleSqrt:function(){return u._b},scaleSymlog:function(){return s.Z},scaleThreshold:function(){return h.Z},scaleTime:function(){return p.Z},scaleUtc:function(){return m.Z},tickFormat:function(){return A.Z}});var r=n(48623),i=n(93963),o=n(5497),a=n(13641),s=n(46494),l=n(34130),u=n(72851),c=n(19637),d=n(96417),f=n(73408),h=n(74995),p=n(37932),m=n(83803),v=n(69777),g=n(74672),y=n(70552),x=n(22274);function b(){var e,t,n,r,i,o=0,a=1,s=y.yR,l=!1;function u(t){return null==t||isNaN(t=+t)?i:s(0===n?.5:(t=(r(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),u):[s(0),s(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),u):[o,a]},u.clamp=function(e){return arguments.length?(l=!!e,u):l},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=c(v.Z),u.rangeRound=c(g.Z),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),u}}function w(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function j(){var e=(0,u.Hh)(b());return e.copy=function(){return w(e,j()).exponent(e.exponent())},x.O.apply(e,arguments)}function E(){return j.apply(null,arguments).exponent(.5)}var k=n(98038),S=n(1169),_=n(33907),C=n(87475);function O(){var e,t,n,r,i,o,a,s=0,l=.5,u=1,c=1,d=y.yR,f=!1;function h(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(c*e0;){if((o=(0,r.G9)(u,c,n))===i)return a[s]=u,a[l]=c,t(a);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else if(o<0)u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o;else break;i=o}return e},e}},13641:function(e,t,n){"use strict";n.d(t,{Q:function(){return p},Z:function(){return function e(){var t=p((0,a.l4)()).domain([1,10]);return t.copy=function(){return(0,a.JG)(t,e()).base(t.base())},s.o.apply(t,arguments),t}}});var r=n(32071),i=n(11192),o=n(10070),a=n(70552),s=n(22274);function l(e){return Math.log(e)}function u(e){return Math.exp(e)}function c(e){return-Math.log(-e)}function d(e){return-Math.exp(-e)}function f(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return function(t){return-e(-t)}}function p(e){var t,n,a=e(l,u),s=a.domain,p=10;function m(){var r,i;return t=(r=p)===Math.E?Math.log:10===r&&Math.log10||2===r&&Math.log2||(r=Math.log(r),function(e){return Math.log(e)/r}),n=10===(i=p)?f:i===Math.E?Math.exp:function(e){return Math.pow(i,e)},s()[0]<0?(t=h(t),n=h(n),e(c,d)):e(l,u),a}return a.base=function(e){return arguments.length?(p=+e,m()):p},a.domain=function(e){return arguments.length?(s(e),m()):s()},a.ticks=function(e){var i,o=s(),a=o[0],l=o[o.length-1];(i=l0){for(;f<=h;++f)for(c=1,u=n(f);cl)break;v.push(d)}}else for(;f<=h;++f)for(c=p-1,u=n(f);c>=1;--c)if(!((d=u*c)l)break;v.push(d)}2*v.length0?l[t-1]:n[0],t=s?[l[s-1],a]:[l[t-1],l[t]]},c.unknown=function(e){return arguments.length&&(t=e),c},c.thresholds=function(){return l.slice()},c.copy=function(){return e().domain([n,a]).range(u).unknown(t)},o.o.apply((0,i.Q)(c),arguments)}}});var r=n(98038),i=n(93963),o=n(22274)},19637:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=(0,r.ZP)(),l=[0,1],u=!1;function c(e){var r,i=Math.sign(r=n(e))*Math.sqrt(Math.abs(r));return isNaN(i)?t:u?Math.round(i):i}return c.invert=function(e){return n.invert(s(e))},c.domain=function(e){return arguments.length?(n.domain(e),c):n.domain()},c.range=function(e){return arguments.length?(n.range((l=Array.from(e,a.Z)).map(s)),c):l.slice()},c.rangeRound=function(e){return c.range(e).round(!0)},c.round=function(e){return arguments.length?(u=!!e,c):u},c.clamp=function(e){return arguments.length?(n.clamp(e),c):n.clamp()},c.unknown=function(e){return arguments.length?(t=e,c):t},c.copy=function(){return e(n.domain(),l).round(u).clamp(n.clamp()).unknown(t)},i.o.apply(c,arguments),(0,o.Q)(c)}}});var r=n(70552),i=n(22274),o=n(93963),a=n(5497);function s(e){return Math.sign(e)*e*e}},46494:function(e,t,n){"use strict";n.d(t,{P:function(){return l},Z:function(){return function e(){var t=l((0,i.l4)());return t.copy=function(){return(0,i.JG)(t,e()).constant(t.constant())},o.o.apply(t,arguments)}}});var r=n(93963),i=n(70552),o=n(22274);function a(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function s(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function l(e){var t=1,n=e(a(1),s(t));return n.constant=function(n){return arguments.length?e(a(t=+n),s(t)):t},(0,r.Q)(n)}},74995:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(){var t,n=[.5],o=[0,1],a=1;function s(e){return null!=e&&e<=e?o[(0,r.ZP)(n,e,0,a)]:t}return s.domain=function(e){return arguments.length?(a=Math.min((n=Array.from(e)).length,o.length-1),s):n.slice()},s.range=function(e){return arguments.length?(o=Array.from(e),a=Math.min(n.length,o.length-1),s):o.slice()},s.invertExtent=function(e){var t=o.indexOf(e);return[n[t-1],n[t]]},s.unknown=function(e){return arguments.length?(t=e,s):t},s.copy=function(){return e().domain(n).range(o).unknown(t)},i.o.apply(s,arguments)}}});var r=n(98038),i=n(22274)},78937:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(32071),i=n(52328),o=n(21032),a=n(11192),s=n(61652),l=n(88013);function u(e,t,n,u){var c,d=(0,r.ly)(e,t,n);switch((u=(0,i.Z)(null==u?",f":u)).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=u.precision||isNaN(c=(0,o.Z)(d,f))||(u.precision=c),(0,a.jH)(u,f);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(c=(0,s.Z)(d,Math.max(Math.abs(e),Math.abs(t))))||(u.precision=c-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(c=(0,l.Z)(d))||(u.precision=c-("%"===u.type)*2)}return(0,a.WU)(u)}},37932:function(e,t,n){"use strict";n.d(t,{Y:function(){return g},Z:function(){return y}});var r=n(1381),i=n(97344),o=n(50690),a=n(76231),s=n(68603),l=n(54076),u=n(18450),c=n(52546),d=n(61743),f=n(70552),h=n(22274),p=n(10070);function m(e){return new Date(e)}function v(e){return e instanceof Date?+e:+new Date(+e)}function g(e,t,n,r,i,o,a,s,l,u){var c=(0,f.ZP)(),d=c.invert,h=c.domain,y=u(".%L"),x=u(":%S"),b=u("%I:%M"),w=u("%I %p"),j=u("%a %d"),E=u("%b %d"),k=u("%B"),S=u("%Y");function _(e){return(l(e)A*A+P*P&&(S=C,_=O),{cx:S,cy:_,x01:-d,y01:-f,x11:S*(i/j-1),y11:_*(i/j-1)}}function f(){var e=a,t=s,n=(0,i.Z)(0),f=null,h=l,p=u,m=c,v=null;function g(){var i,a,s=+e.apply(this,arguments),l=+t.apply(this,arguments),u=h.apply(this,arguments)-o.ou,c=p.apply(this,arguments)-o.ou,g=(0,o.Wn)(c-u),y=c>u;if(v||(v=i=(0,r.Z)()),lo.Ho){if(g>o.BZ-o.Ho)v.moveTo(l*(0,o.mC)(u),l*(0,o.O$)(u)),v.arc(0,0,l,u,c,!y),s>o.Ho&&(v.moveTo(s*(0,o.mC)(c),s*(0,o.O$)(c)),v.arc(0,0,s,c,u,y));else{var x,b,w=u,j=c,E=u,k=c,S=g,_=g,C=m.apply(this,arguments)/2,O=C>o.Ho&&(f?+f.apply(this,arguments):(0,o._b)(s*s+l*l)),M=(0,o.VV)((0,o.Wn)(l-s)/2,+n.apply(this,arguments)),T=M,A=M;if(O>o.Ho){var P=(0,o.ZR)(O/s*(0,o.O$)(C)),N=(0,o.ZR)(O/l*(0,o.O$)(C));(S-=2*P)>o.Ho?(P*=y?1:-1,E+=P,k-=P):(S=0,E=k=(u+c)/2),(_-=2*N)>o.Ho?(N*=y?1:-1,w+=N,j-=N):(_=0,w=j=(u+c)/2)}var R=l*(0,o.mC)(w),D=l*(0,o.O$)(w),L=s*(0,o.mC)(k),F=s*(0,o.O$)(k);if(M>o.Ho){var z,V=l*(0,o.mC)(j),I=l*(0,o.O$)(j),Z=s*(0,o.mC)(E),B=s*(0,o.O$)(E);if(go.Ho?A>o.Ho?(x=d(Z,B,R,D,l,A,y),b=d(V,I,L,F,l,A,y),v.moveTo(x.cx+x.x01,x.cy+x.y01),Ao.Ho&&S>o.Ho?T>o.Ho?(x=d(L,F,V,I,s,-T,y),b=d(R,D,Z,B,s,-T,y),v.lineTo(x.cx+x.x01,x.cy+x.y01),T=a;--s)f.point(g[s],y[s]);f.lineEnd(),f.areaEnd()}}v&&(g[o]=+e(h,o,i),y[o]=+n(h,o,i),f.point(t?+t(h,o,i):g[o],l?+l(h,o,i):y[o]))}if(p)return f=null,p+""||null}function p(){return(0,a.Z)().defined(u).curve(d).context(c)}return h.x=function(n){return arguments.length?(e="function"==typeof n?n:(0,i.Z)(+n),t=null,h):e},h.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,i.Z)(+t),h):e},h.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):t},h.y=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),l=null,h):n},h.y0=function(e){return arguments.length?(n="function"==typeof e?e:(0,i.Z)(+e),h):n},h.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:(0,i.Z)(+e),h):l},h.lineX0=h.lineY0=function(){return p().x(e).y(n)},h.lineY1=function(){return p().x(e).y(l)},h.lineX1=function(){return p().x(t).y(n)},h.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.Z)(!!e),h):u},h.curve=function(e){return arguments.length?(d=e,null!=c&&(f=d(c)),h):d},h.context=function(e){return arguments.length?(null==e?c=f=null:f=d(c=e),h):c},h}},72299:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var r=Array.prototype.slice},33554:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{Z:function(){return r}})},46385:function(e,t,n){"use strict";function r(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function i(e,t){this._context=e,this._k=(1-t)/6}n.d(t,{pC:function(){return i},xm:function(){return r}}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:r(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},t.ZP=function e(t){function n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},20651:function(e,t,n){"use strict";function r(e){this._context=e}function i(e){return new r(e)}n.d(t,{Z:function(){return i}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&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)}}}},27266:function(e,t,n){"use strict";function r(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*r)/(r+i)))||0}function i(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function o(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function a(e){this._context=e}function s(e){this._context=new l(e)}function l(e){this._context=e}function u(e){return new a(e)}function c(e){return new s(e)}n.d(t,{Z:function(){return u},s:function(){return c}}),a.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:o(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+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,o(this,i(this,n=r(this,e,t)),n);break;default:o(this,this._t0,n=r(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(s.prototype=Object.create(a.prototype)).point=function(e,t){a.prototype.point.call(this,t,e)},l.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,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}}},23165:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},j:function(){return r}});var r=o(n(20651).Z);function i(e){this._curve=e}function o(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),-(t*Math.cos(e)))}}},45742:function(e,t,n){"use strict";function r(e,t){this._context=e,this._t=t}function i(e){return new r(e,.5)}function o(e){return new r(e,0)}function a(e){return new r(e,1)}n.d(t,{RN:function(){return o},ZP:function(){return i},cD:function(){return a}}),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=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)}}this._x=e,this._y=t}}},59207:function(e,t,n){"use strict";n.r(t),n.d(t,{arc:function(){return r.Z},area:function(){return i.Z},areaRadial:function(){return u},curveBasis:function(){return E},curveBasisClosed:function(){return S},curveBasisOpen:function(){return C},curveBundle:function(){return M},curveCardinal:function(){return T.ZP},curveCardinalClosed:function(){return P},curveCardinalOpen:function(){return R},curveCatmullRom:function(){return z},curveCatmullRomClosed:function(){return I},curveCatmullRomOpen:function(){return B},curveLinear:function(){return W.Z},curveLinearClosed:function(){return U},curveMonotoneX:function(){return q.Z},curveMonotoneY:function(){return q.s},curveNatural:function(){return Y},curveStep:function(){return G.ZP},curveStepAfter:function(){return G.cD},curveStepBefore:function(){return G.RN},line:function(){return o.Z},lineRadial:function(){return l.Z},linkHorizontal:function(){return d.h5},linkRadial:function(){return d.M4},linkVertical:function(){return d.rR},pie:function(){return a.Z},pointRadial:function(){return c.Z},radialArea:function(){return u},radialLine:function(){return l.Z},stack:function(){return X.Z},stackOffsetDiverging:function(){return Q.Z},stackOffsetExpand:function(){return J.Z},stackOffsetNone:function(){return ee.Z},stackOffsetSilhouette:function(){return et.Z},stackOffsetWiggle:function(){return en.Z},stackOrderAppearance:function(){return er.Z},stackOrderAscending:function(){return ei.Z},stackOrderDescending:function(){return eo.Z},stackOrderInsideOut:function(){return ea.Z},stackOrderNone:function(){return es.Z},stackOrderReverse:function(){return el.Z},symbol:function(){return f.Z},symbolCircle:function(){return h.Z},symbolCross:function(){return p.Z},symbolDiamond:function(){return m.Z},symbolSquare:function(){return v.Z},symbolStar:function(){return g.Z},symbolTriangle:function(){return y.Z},symbolWye:function(){return x.Z},symbols:function(){return f.u}});var r=n(38764),i=n(12235),o=n(79767),a=n(69619),s=n(23165),l=n(8329);function u(){var e=(0,i.Z)().curve(s.j),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return(0,l.X)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,l.X)(r())},delete e.lineX1,e.lineInnerRadius=function(){return(0,l.X)(o())},delete e.lineY0,e.lineOuterRadius=function(){return(0,l.X)(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,s.Z)(e)):t()._curve},e}var c=n(3326),d=n(72215),f=n(24037),h=n(62628),p=n(9135),m=n(82893),v=n(44523),g=n(86707),y=n(42965),x=n(60598);function b(){}function w(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 j(e){this._context=e}function E(e){return new j(e)}function k(e){this._context=e}function S(e){return new k(e)}function _(e){this._context=e}function C(e){return new _(e)}function O(e,t){this._basis=new j(e),this._beta=t}j.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:w(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},k.prototype={areaStart:b,areaEnd:b,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)}},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:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},_.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||0!==this._line&&3===this._point)&&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,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:w(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},O.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var M=function e(t){function n(e){return 1===t?new j(e):new O(e,t)}return n.beta=function(t){return e(+t)},n}(.85),T=n(46385);function A(e,t){this._context=e,this._k=(1-t)/6}A.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:(0,T.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var P=function e(t){function n(e){return new A(e,t)}return n.tension=function(t){return e(+t)},n}(0);function N(e,t){this._context=e,this._k=(1-t)/6}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,T.xm)(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R=function e(t){function n(e){return new N(e,t)}return n.tension=function(t){return e(+t)},n}(0),D=n(15);function L(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>D.Ho){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>D.Ho){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function F(e,t){this._context=e,this._alpha=t}F.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var z=function e(t){function n(e){return t?new F(e,t):new T.pC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function V(e,t){this._context=e,this._alpha=t}V.prototype={areaStart:b,areaEnd:b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var I=function e(t){function n(e){return t?new V(e,t):new A(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Z(e,t){this._context=e,this._alpha=t}Z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:L(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var B=function e(t){function n(e){return t?new Z(e,t):new N(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function H(e){this._context=e}function U(e){return new H(e)}H.prototype={areaStart:b,areaEnd:b,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))}};var W=n(20651),q=n(27266);function $(e){this._context=e}function K(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[r-1]=(e[r]+i[r-1])/2;t1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?f:e<=-1?-f:Math.asin(e)}},76751:function(e,t,n){"use strict";function r(e,t){if((s=e.length)>0)for(var n,r,i,o,a,s,l=0,u=e[t[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}n.d(t,{Z:function(){return r}})},22254:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(90541);function i(e,t){if((i=e.length)>0){for(var n,i,o,a=0,s=e[0].length;a1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o0){for(var n,i=0,o=e[t[0]],a=o.length;i0&&(i=(n=e[t[0]]).length)>0){for(var n,i,o,a=0,s=1;so&&(o=t,r=n);return r}},19721:function(e,t,n){"use strict";n.d(t,{S:function(){return o},Z:function(){return i}});var r=n(81182);function i(e){var t=e.map(o);return(0,r.Z)(e).sort(function(e,n){return t[e]-t[n]})}function o(e){for(var t,n=0,r=-1,i=e.length;++r=0;)n[t]=t;return n}n.d(t,{Z:function(){return r}})},40277:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(81182);function i(e){return(0,r.Z)(e).reverse()}},69619:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(33554);function i(e,t){return te?1:t>=e?0:NaN}function o(e){return e}var a=n(15);function s(){var e=o,t=i,n=null,s=(0,r.Z)(0),l=(0,r.Z)(a.BZ),u=(0,r.Z)(0);function c(r){var i,o,c,d,f,h=r.length,p=0,m=Array(h),v=Array(h),g=+s.apply(this,arguments),y=Math.min(a.BZ,Math.max(-a.BZ,l.apply(this,arguments)-g)),x=Math.min(Math.abs(y)/h,u.apply(this,arguments)),b=x*(y<0?-1:1);for(i=0;i0&&(p+=f);for(null!=t?m.sort(function(e,n){return t(v[e],v[n])}):null!=n&&m.sort(function(e,t){return n(r[e],r[t])}),i=0,c=p?(y-h*b)/p:0;i0?f*c:0)+b,v[o]={data:r[o],index:i,value:f,startAngle:g,endAngle:d,padAngle:x};return v}return c.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.Z)(+t),c):e},c.sortValues=function(e){return arguments.length?(t=e,n=null,c):t},c.sort=function(e){return arguments.length?(n=e,t=null,c):n},c.startAngle=function(e){return arguments.length?(s="function"==typeof e?e:(0,r.Z)(+e),c):s},c.endAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,r.Z)(+e),c):l},c.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,r.Z)(+e),c):u},c}},11053:function(e,t,n){"use strict";function r(e){return e[0]}function i(e){return e[1]}n.d(t,{x:function(){return r},y:function(){return i}})},3326:function(e,t,n){"use strict";function r(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}n.d(t,{Z:function(){return r}})},98926:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(72299),i=n(33554),o=n(90541),a=n(81182);function s(e,t){return e[t]}function l(){var e=(0,i.Z)([]),t=a.Z,n=o.Z,l=s;function u(r){var i,o,a=e.apply(this,arguments),s=r.length,u=a.length,c=Array(u);for(i=0;ie.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.UD,e=>e.getDate()-1);t.Z=o;var a=o.range},1514:function(e,t,n){"use strict";n.d(t,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return u},yB:function(){return i}});let r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,l=30*a,u=365*a},54076:function(e,t,n){"use strict";n.d(t,{i:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym-e.getMinutes()*i.yB)},function(e,t){e.setTime(+e+t*i.Y2)},function(e,t){return(t-e)/i.Y2},function(e){return e.getHours()});t.Z=o;var a=o.range},11365:function(e,t,n){"use strict";n.r(t),n.d(t,{timeDay:function(){return l.Z},timeDays:function(){return l.a},timeFriday:function(){return u.mC},timeFridays:function(){return u.b$},timeHour:function(){return s.Z},timeHours:function(){return s.i},timeInterval:function(){return r.Z},timeMillisecond:function(){return i.Z},timeMilliseconds:function(){return i.m},timeMinute:function(){return a.Z},timeMinutes:function(){return a.L},timeMonday:function(){return u.wA},timeMondays:function(){return u.bJ},timeMonth:function(){return c.Z},timeMonths:function(){return c.e},timeSaturday:function(){return u.EY},timeSaturdays:function(){return u.Ff},timeSecond:function(){return o.Z},timeSeconds:function(){return o.m},timeSunday:function(){return u.OM},timeSundays:function(){return u.vm},timeThursday:function(){return u.bL},timeThursdays:function(){return u.$t},timeTickInterval:function(){return y._g},timeTicks:function(){return y.jK},timeTuesday:function(){return u.sy},timeTuesdays:function(){return u.aU},timeWednesday:function(){return u.zg},timeWednesdays:function(){return u.Ld},timeWeek:function(){return u.OM},timeWeeks:function(){return u.vm},timeYear:function(){return d.Z},timeYears:function(){return d.g},utcDay:function(){return p.Z},utcDays:function(){return p.y},utcFriday:function(){return m.QQ},utcFridays:function(){return m.fz},utcHour:function(){return h.Z},utcHours:function(){return h.X},utcMillisecond:function(){return i.Z},utcMilliseconds:function(){return i.m},utcMinute:function(){return f.Z},utcMinutes:function(){return f.N},utcMonday:function(){return m.l6},utcMondays:function(){return m.$3},utcMonth:function(){return v.Z},utcMonths:function(){return v.K},utcSaturday:function(){return m.g4},utcSaturdays:function(){return m.Q_},utcSecond:function(){return o.Z},utcSeconds:function(){return o.m},utcSunday:function(){return m.Ox},utcSundays:function(){return m.SU},utcThursday:function(){return m.hB},utcThursdays:function(){return m.xj},utcTickInterval:function(){return y.jo},utcTicks:function(){return y.WG},utcTuesday:function(){return m.J1},utcTuesdays:function(){return m.DK},utcWednesday:function(){return m.b3},utcWednesdays:function(){return m.uy},utcWeek:function(){return m.Ox},utcWeeks:function(){return m.SU},utcYear:function(){return g.Z},utcYears:function(){return g.D}});var r=n(22179),i=n(30356),o=n(52546),a=n(18450),s=n(54076),l=n(68603),u=n(76231),c=n(50690),d=n(97344),f=n(52004),h=n(28239),p=n(12370),m=n(97631),v=n(94758),g=n(2908),y=n(1381)},22179:function(e,t,n){"use strict";n.d(t,{Z:function(){return function e(t,n,o,a){function s(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t0))return a;do a.push(o=new Date(+e)),n(e,i),t(e);while(o=e)for(;t(e),!r(e);)e.setTime(e-1)},function(e,t){if(e>=e){if(t<0)for(;++t<=0;)for(;n(e,-1),!r(e););else for(;--t>=0;)for(;n(e,1),!r(e););}})},o&&(s.count=function(e,n){return r.setTime(+e),i.setTime(+n),t(r),t(i),Math.floor(o(r,i))},s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}}});var r=new Date,i=new Date},30356:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(22179),i=(0,r.Z)(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?(0,r.Z)(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):i:null},t.Z=i;var o=i.range},18450:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.Ym)},function(e,t){e.setTime(+e+t*i.yB)},function(e,t){return(t-e)/i.yB},function(e){return e.getMinutes()});t.Z=o;var a=o.range},50690:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=(0,n(22179).Z)(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});t.Z=r;var i=r.range},52546:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(22179),i=n(1514),o=(0,r.Z)(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*i.Ym)},function(e,t){return(t-e)/i.Ym},function(e){return e.getUTCSeconds()});t.Z=o;var a=o.range},1381:function(e,t,n){"use strict";n.d(t,{_g:function(){return _},jK:function(){return S},jo:function(){return k},WG:function(){return E}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),t>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>{var r;return(r=e(t))n?1:r>=n?0:NaN}),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}})(([,,e])=>e).right(c,i);if(o===c.length)return e.every(a(t/s.qz,n/s.qz,r));if(0===o)return l.Z.every(Math.max(a(t,n,r),1));let[u,d]=c[i/c[o-1][2]0?(0,r.Z)(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},t.Z=i;var o=i.range},76231:function(e,t,n){"use strict";n.d(t,{$t:function(){return g},EY:function(){return f},Ff:function(){return x},Ld:function(){return v},OM:function(){return a},aU:function(){return m},b$:function(){return y},bJ:function(){return p},bL:function(){return c},mC:function(){return d},sy:function(){return l},vm:function(){return h},wA:function(){return s},zg:function(){return u}});var r=n(22179),i=n(1514);function o(e){return(0,r.Z)(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.yB)/i.iM})}var a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),d=o(5),f=o(6),h=a.range,p=s.range,m=l.range,v=u.range,g=c.range,y=d.range,x=f.range},97344:function(e,t,n){"use strict";n.d(t,{g:function(){return o}});var r=n(22179),i=(0,r.Z)(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},t.Z=i;var o=i.range},1645:function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,{Z:function(){return r}})},19785:function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},29193:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(66700),i=n(19785);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t),a=n.getTime()-o.getTime();return a<0?-1:a>0?1:a}var a={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},s=n(88811),l=n(1645);function u(e,t){var n,u,c,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,i.Z)(2,arguments);var f=d.locale||s.Z;if(!f.formatDistance)throw RangeError("locale must contain formatDistance property");var h=o(e,t);if(isNaN(h))throw RangeError("Invalid time value");var p=function(e,t){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}({},d);p.addSuffix=!!d.addSuffix,p.comparison=h,h>0?(n=(0,r.Z)(t),u=(0,r.Z)(e)):(n=(0,r.Z)(e),u=(0,r.Z)(t));var m=function(e,t,n){(0,i.Z)(2,arguments);var o,s=function(e,t){return(0,i.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}(e,t)/1e3;return((o=null==n?void 0:n.roundingMethod)?a[o]:a.trunc)(s)}(u,n),v=Math.round((m-((0,l.Z)(u)-(0,l.Z)(n))/1e3)/60);if(v<2){if(d.includeSeconds){if(m<5)return f.formatDistance("lessThanXSeconds",5,p);if(m<10)return f.formatDistance("lessThanXSeconds",10,p);if(m<20)return f.formatDistance("lessThanXSeconds",20,p);if(m<40)return f.formatDistance("halfAMinute",null,p);else if(m<60)return f.formatDistance("lessThanXMinutes",1,p);else return f.formatDistance("xMinutes",1,p)}return 0===v?f.formatDistance("lessThanXMinutes",1,p):f.formatDistance("xMinutes",v,p)}if(v<45)return f.formatDistance("xMinutes",v,p);if(v<90)return f.formatDistance("aboutXHours",1,p);if(v<1440){var g=Math.round(v/60);return f.formatDistance("aboutXHours",g,p)}if(v<2520)return f.formatDistance("xDays",1,p);if(v<43200){var y=Math.round(v/1440);return f.formatDistance("xDays",y,p)}if(v<86400)return c=Math.round(v/43200),f.formatDistance("aboutXMonths",c,p);if((c=function(e,t){(0,i.Z)(2,arguments);var n,a=(0,r.Z)(e),s=(0,r.Z)(t),l=o(a,s),u=Math.abs(function(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}(a,s));if(u<1)n=0;else{1===a.getMonth()&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-l*u);var c=o(a,s)===-l;(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e);return t.setHours(23,59,59,999),t})(t).getTime()===(function(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t})(t).getTime()})((0,r.Z)(e))&&1===u&&1===o(e,s)&&(c=!1),n=l*(u-Number(c))}return 0===n?0:n}(u,n))<12){var x=Math.round(v/43200);return f.formatDistance("xMonths",x,p)}var b=c%12,w=Math.floor(c/12);return b<3?f.formatDistance("aboutXYears",w,p):b<9?f.formatDistance("overXYears",w,p):f.formatDistance("almostXYears",w+1,p)}},88811:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r,i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function o(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function l(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},formatLong:a,formatRelative:function(e,t,n,r){return s[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(r={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(r.matchPattern);if(!n)return null;var i=n[0],o=e.match(r.parsePattern);if(!o)return null;var a=r.valueCallback?r.valueCallback(o[0]):o[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(i.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},66700:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19785);function i(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(Error().stack)),new Date(NaN))}},36386:function(e){function t(e,t,n){function r(){var u=Date.now()-s;u=0?i=setTimeout(r,t-u):(i=null,n||(l=e.apply(a,o),a=o=null))}null==t&&(t=100);var i,o,a,s,l,u=function(){a=this,o=arguments,s=Date.now();var u=n&&!i;return i||(i=setTimeout(r,t)),u&&(l=e.apply(a,o),a=o=null),l};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(l=e.apply(a,o),a=o=null,clearTimeout(i),i=null)},u}t.debounce=t,e.exports=t},9156:function(e,t,n){"use strict";n.d(t,{TA:function(){return t3}});var r,i,o,a=n(2784),s=n(78435),l=n.n(s),u=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==c},c="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function d(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h(Array.isArray(e)?[]:{},e,t):e}function f(e,t,n){return e.concat(t).map(function(e){return d(e,n)})}function h(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||f,n.isMergeableObject=n.isMergeableObject||u;var r,i,o=Array.isArray(t);return o!==Array.isArray(e)?d(t,n):o?n.arrayMerge(e,t,n):(i={},(r=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){i[t]=d(e[t],r)}),Object.keys(t).forEach(function(n){r.isMergeableObject(t[n])&&e[n]?i[n]=h(e[n],t[n],r):i[n]=d(t[n],r)}),i)}h.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return h(e,n,t)},{})};var p=h,m=n(98147),v=function(e,t){return function(n){return e(t(n))}},g=v(Object.getPrototypeOf,Object),y=n(43391),x=Object.prototype,b=Function.prototype.toString,w=x.hasOwnProperty,j=b.call(Object),E=function(e){if(!(0,y.Z)(e)||"[object Object]"!=(0,m.Z)(e))return!1;var t=g(e);if(null===t)return!0;var n=w.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&b.call(n)==j},k=function(e,t){return e===t||e!=e&&t!=t},S=function(e,t){for(var n=e.length;n--;)if(k(e[n][0],t))return n;return -1},_=Array.prototype.splice;function C(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},C.prototype.set=function(e,t){var n=this.__data__,r=S(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var O=n(93122),M=function(e){if(!(0,O.Z)(e))return!1;var t=(0,m.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},T=n(93221),A=T.Z["__core-js_shared__"],P=(r=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",N=Function.prototype.toString,R=function(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""},D=/^\[object .+?Constructor\]$/,L=Object.prototype,F=Function.prototype.toString,z=L.hasOwnProperty,V=RegExp("^"+F.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=function(e,t){var n,r=null==e?void 0:e[t];return(n=r,(0,O.Z)(n)&&(!P||!(P in n))&&(M(n)?V:D).test(R(n)))?r:void 0},Z=I(T.Z,"Map"),B=I(Object,"create"),H=Object.prototype.hasOwnProperty,U=Object.prototype.hasOwnProperty;function W(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},ev={};ev["[object Float32Array]"]=ev["[object Float64Array]"]=ev["[object Int8Array]"]=ev["[object Int16Array]"]=ev["[object Int32Array]"]=ev["[object Uint8Array]"]=ev["[object Uint8ClampedArray]"]=ev["[object Uint16Array]"]=ev["[object Uint32Array]"]=!0,ev["[object Arguments]"]=ev["[object Array]"]=ev["[object ArrayBuffer]"]=ev["[object Boolean]"]=ev["[object DataView]"]=ev["[object Date]"]=ev["[object Error]"]=ev["[object Function]"]=ev["[object Map]"]=ev["[object Number]"]=ev["[object Object]"]=ev["[object RegExp]"]=ev["[object Set]"]=ev["[object String]"]=ev["[object WeakMap]"]=!1;var eg=function(e){return function(t){return e(t)}},ey=n(92168),ex="object"==typeof exports&&exports&&!exports.nodeType&&exports,eb=ex&&"object"==typeof module&&module&&!module.nodeType&&module,ew=eb&&eb.exports===ex&&ey.Z.process,ej=function(){try{var e=eb&&eb.require&&eb.require("util").types;if(e)return e;return ew&&ew.binding&&ew.binding("util")}catch(e){}}(),eE=ej&&ej.isTypedArray,ek=eE?eg(eE):function(e){return(0,y.Z)(e)&&em(e.length)&&!!ev[(0,m.Z)(e)]},eS=Object.prototype.hasOwnProperty,e_=function(e,t){var n=el(e),r=!n&&es(e),i=!n&&!r&&ef(e),o=!n&&!r&&!i&&ek(e),a=n||r||i||o,s=a?en(e.length,String):[],l=s.length;for(var u in e)(t||eS.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ep(u,l)))&&s.push(u);return s},eC=Object.prototype,eO=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eC)},eM=v(Object.keys,Object),eT=Object.prototype.hasOwnProperty,eA=function(e){if(!eO(e))return eM(e);var t=[];for(var n in Object(e))eT.call(e,n)&&"constructor"!=n&&t.push(n);return t},eP=function(e){return null!=e&&em(e.length)&&!M(e)},eN=function(e){return eP(e)?e_(e):eA(e)},eR=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},eD=Object.prototype.hasOwnProperty,eL=function(e){if(!(0,O.Z)(e))return eR(e);var t=eO(e),n=[];for(var r in e)"constructor"==r&&(t||!eD.call(e,r))||n.push(r);return n},eF=function(e){return eP(e)?e_(e,!0):eL(e)},ez="object"==typeof exports&&exports&&!exports.nodeType&&exports,eV=ez&&"object"==typeof module&&module&&!module.nodeType&&module,eI=eV&&eV.exports===ez?T.Z.Buffer:void 0,eZ=eI?eI.allocUnsafe:void 0,eB=function(e,t){if(t)return e.slice();var n=e.length,r=eZ?eZ(n):new e.constructor(n);return e.copy(r),r},eH=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0||(i[n]=e[n]);return i}function tq(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(73463);var t$=function(e){return Array.isArray(e)&&0===e.length},tK=function(e){return"function"==typeof e},tY=function(e){return null!==e&&"object"==typeof e},tG=function(e){return"[object String]"===Object.prototype.toString.call(e)},tX=function(e){return tY(e)&&tK(e.then)};function tJ(e,t,n,r){void 0===r&&(r=0);for(var i=tB(t);e&&r=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}var t0=(0,a.createContext)(void 0);function t1(e,t){switch(t.type){case"SET_VALUES":return tU({},e,{values:t.payload});case"SET_TOUCHED":return tU({},e,{touched:t.payload});case"SET_ERRORS":if(l()(e.errors,t.payload))return e;return tU({},e,{errors:t.payload});case"SET_STATUS":return tU({},e,{status:t.payload});case"SET_ISSUBMITTING":return tU({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return tU({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return tU({},e,{values:tQ(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return tU({},e,{touched:tQ(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return tU({},e,{errors:tQ(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return tU({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return tU({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var o,a=o;tJ(t,a.path)||(t=tQ(t,a.path,a.message))}}return t}(n)):t(n)})})},[m.validationSchema]),O=(0,a.useCallback)(function(e,t){return new Promise(function(n){return n(w.current[e].validate(t))})},[]),M=(0,a.useCallback)(function(e){var t=Object.keys(w.current).filter(function(e){return tK(w.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return O(t,tJ(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=tQ(e,t[r],n)),e},{})})},[O]),T=(0,a.useCallback)(function(e){return Promise.all([M(e),m.validationSchema?C(e):{},m.validate?_(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return p.all([t,n,r],{arrayMerge:t5})})},[m.validate,m.validationSchema,M,_,C]),A=t8(function(e){return void 0===e&&(e=k.values),S({type:"SET_ISVALIDATING",payload:!0}),T(e).then(function(e){return b.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:e})),e})});(0,a.useEffect)(function(){s&&!0===b.current&&l()(v.current,m.initialValues)&&A(v.current)},[s,A]);var P=(0,a.useCallback)(function(e){var t=e&&e.values?e.values:v.current,n=e&&e.errors?e.errors:g.current?g.current:m.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:m.initialTouched||{},i=e&&e.status?e.status:x.current?x.current:m.initialStatus;v.current=t,g.current=n,y.current=r,x.current=i;var o=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(m.onReset){var a=m.onReset(k.values,X);tX(a)?a.then(o):o()}else o()},[m.initialErrors,m.initialStatus,m.initialTouched]);(0,a.useEffect)(function(){!0===b.current&&!l()(v.current,m.initialValues)&&(d&&(v.current=m.initialValues,P()),s&&A(v.current))},[d,m.initialValues,P,s,A]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(g.current,m.initialErrors)&&(g.current=m.initialErrors||t2,S({type:"SET_ERRORS",payload:m.initialErrors||t2}))},[d,m.initialErrors]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(y.current,m.initialTouched)&&(y.current=m.initialTouched||t4,S({type:"SET_TOUCHED",payload:m.initialTouched||t4}))},[d,m.initialTouched]),(0,a.useEffect)(function(){d&&!0===b.current&&!l()(x.current,m.initialStatus)&&(x.current=m.initialStatus,S({type:"SET_STATUS",payload:m.initialStatus}))},[d,m.initialStatus,m.initialTouched]);var N=t8(function(e){if(w.current[e]&&tK(w.current[e].validate)){var t=tJ(k.values,e),n=w.current[e].validate(t);return tX(n)?(S({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return m.validationSchema?(S({type:"SET_ISVALIDATING",payload:!0}),C(k.values,e).then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),S({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),R=(0,a.useCallback)(function(e,t){var n=t.validate;w.current[e]={validate:n}},[]),D=(0,a.useCallback)(function(e){delete w.current[e]},[]),L=t8(function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?A(k.values):Promise.resolve()}),F=(0,a.useCallback)(function(e){S({type:"SET_ERRORS",payload:e})},[]),z=t8(function(e,t){var r=tK(e)?e(k.values):e;return S({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?A(r):Promise.resolve()}),V=(0,a.useCallback)(function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),I=t8(function(e,t,r){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?A(tQ(k.values,e,t)):Promise.resolve()}),Z=(0,a.useCallback)(function(e,t){var n,r=t,i=e;if(!tG(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,u=o.value,c=o.checked,d=(o.outerHTML,o.options),f=o.multiple;r=t||s||l,i=/number|range/.test(a)?isNaN(n=parseFloat(u))?"":n:/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}(tJ(k.values,r),c,u):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):u}r&&I(r,i)},[I,k.values]),B=t8(function(e){if(tG(e))return function(t){return Z(t,e)};Z(e)}),H=t8(function(e,t,n){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?A(k.values):Promise.resolve()}),U=(0,a.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,H(t||r||i,!0)},[H]),W=t8(function(e){if(tG(e))return function(t){return U(t,e)};U(e)}),q=(0,a.useCallback)(function(e){tK(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),$=(0,a.useCallback)(function(e){S({type:"SET_STATUS",payload:e})},[]),K=(0,a.useCallback)(function(e){S({type:"SET_ISSUBMITTING",payload:e})},[]),Y=t8(function(){return S({type:"SUBMIT_ATTEMPT"}),A().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=J(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return b.current&&S({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(b.current)throw S({type:"SUBMIT_FAILURE"}),e})}if(b.current&&(S({type:"SUBMIT_FAILURE"}),n))throw e})}),G=t8(function(e){e&&e.preventDefault&&tK(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&tK(e.stopPropagation)&&e.stopPropagation(),Y().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),X={resetForm:P,validateForm:A,validateField:N,setErrors:F,setFieldError:V,setFieldTouched:H,setFieldValue:I,setStatus:$,setSubmitting:K,setTouched:L,setValues:z,setFormikState:q,submitForm:Y},J=t8(function(){return f(k.values,X)}),Q=t8(function(e){e&&e.preventDefault&&tK(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&tK(e.stopPropagation)&&e.stopPropagation(),P()}),ee=(0,a.useCallback)(function(e){return{value:tJ(k.values,e),error:tJ(k.errors,e),touched:!!tJ(k.touched,e),initialValue:tJ(v.current,e),initialTouched:!!tJ(y.current,e),initialError:tJ(g.current,e)}},[k.errors,k.touched,k.values]),et=(0,a.useCallback)(function(e){return{setValue:function(t,n){return I(e,t,n)},setTouched:function(t,n){return H(e,t,n)},setError:function(t){return V(e,t)}}},[I,H,V]),en=(0,a.useCallback)(function(e){var t=tY(e),n=t?e.name:e,r=tJ(k.values,n),i={name:n,value:r,onChange:B,onBlur:W};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[W,B,k.values]),er=(0,a.useMemo)(function(){return!l()(v.current,k.values)},[v.current,k.values]),ei=(0,a.useMemo)(function(){return void 0!==u?er?k.errors&&0===Object.keys(k.errors).length:!1!==u&&tK(u)?u(m):u:k.errors&&0===Object.keys(k.errors).length},[u,er,k.errors,m]);return tU({},k,{initialValues:v.current,initialErrors:g.current,initialTouched:y.current,initialStatus:x.current,handleBlur:W,handleChange:B,handleReset:Q,handleSubmit:G,resetForm:P,setErrors:F,setFormikState:q,setFieldTouched:H,setFieldValue:I,setFieldError:V,setStatus:$,setSubmitting:K,setTouched:L,setValues:z,submitForm:Y,validateForm:A,validateField:N,isValid:ei,dirty:er,unregisterField:D,registerField:R,getFieldProps:en,getFieldMeta:ee,getFieldHelpers:et,validateOnBlur:i,validateOnChange:n,validateOnMount:s})}function t5(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?p(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=p(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var t6="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function t8(e){var t=(0,a.useRef)(e);return t6(function(){t.current=e}),(0,a.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;re?t:e},0);return Array.from(tU({},e,{length:t+1}))};(function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)(function(n){var i="function"==typeof r?r:e,a="function"==typeof t?t:e,s=tQ(n.values,o,e(tJ(n.values,o))),l=r?i(tJ(n.errors,o)):void 0,u=t?a(tJ(n.touched,o)):void 0;return t$(l)&&(l=void 0),t$(u)&&(u=void 0),tU({},n,{values:s,errors:r?tQ(n.errors,o,l):n.errors,touched:t?tQ(n.touched,o,u):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(nn(t),[tO(e,5)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return t9(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return t7(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return ne(n,e,t)},function(t){return ne(t,e,null)},function(t){return ne(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return nt(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(tq(n)),n.pop=n.pop.bind(tq(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!l()(tJ(e.formik.values,e.name),tJ(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?nn(n):[];return t||(t=r[e]),tK(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){return e||(e=t&&t.pop&&t.pop()),t},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,i=t.children,o=t.name,s=tW(t.formik,["validate","validationSchema"]),l=tU({},e,{form:s,name:o});return n?(0,a.createElement)(n,l):r?r(l):i?"function"==typeof i?i(l):0===a.Children.count(i)?null:a.Children.only(i):null},t})(a.Component).defaultProps={validateOnChange:!0}},73463:function(e,t,n){"use strict";var r=n(73887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),v=0;v */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*m}},39515:function(e,t,n){var r=n(38761)(n(37772),"DataView");e.exports=r},89612:function(e,t,n){var r=n(52118),i=n(96909),o=n(98138),a=n(4174),s=n(7942);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},34893:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(d=l,f=!1,t=new r(t));t:for(;++c0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},15308:function(e,t,n){var r=n(55463)();e.exports=r},26548:function(e,t,n){var r=n(15308),i=n(90249);e.exports=function(e,t){return e&&r(e,t,i)}},13324:function(e,t,n){var r=n(17297),i=n(33812);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n=120&&g.length>=120)?new r(h&&g):void 0}g=e[0];var y=-1,b=p[0];t:for(;++yi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,p=new r}else p=t?[]:h;t:for(;++u=i?e:r(e,t,n)}},79882:function(e,t,n){var r=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},92175:function(e,t,n){e=n.nmd(e);var r=n(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},34727:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var r=n(50857),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},27520:function(e,t,n){var r=n(4795);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++rc))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),o=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},79493:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var r=n(30733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},54248:function(e,t,n){var r=n(60241)(Object.keys,Object);e.exports=r},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},43114:function(e,t,n){var r=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},15243:function(e,t,n){var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var r=n(80235),i=n(10326),o=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},66024:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r=t||n<0||v&&r>=c}function x(){var e,n,r,o=i();if(b(o))return w(o);f=setTimeout(x,(e=o-h,n=o-p,r=t-e,v?s(r,c-n):r))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function j(){var e,n=i(),r=b(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(x,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(x,t),y(h)}return void 0===f&&(f=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),j.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},j.flush=function(){return void 0===f?d:w(i())},j}},97329:function(e,t,n){var r=n(61655),i=n(66188),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},17335:function(e,t,n){var r=n(85246),i=n(62034),o=n(36060),a=n(93746),s=o(function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]});e.exports=s},45861:function(e,t,n){e.exports=n(28460)},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,n){var r=n(62034);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},72579:function(e,t,n){var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},3440:function(e,t,n){var r=n(13940),i=n(36740),o=Object.prototype.hasOwnProperty,a=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},93352:function(e,t,n){var r=n(32726),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},95041:function(e,t,n){var r=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},23059:function(e){e.exports=function(e){return e}},30898:function(e,t,n){var r=n(50343),i=n(88390),o=n(36060),a=n(5642),s=o(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},79631:function(e,t,n){var r=n(15183),i=n(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},93746:function(e,t,n){var r=n(67878),i=n(15125);e.exports=function(e){return i(e)&&r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},18149:function(e,t,n){var r=n(88746);e.exports=function(e,t){return r(e,t)}},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:function(e,t,n){var r=n(74511),i=n(47826),o=n(4146),a=o&&o.isMap,s=a?i(a):r;e.exports=s},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},97030:function(e,t,n){var r=n(53366),i=n(47353),o=n(15125),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},43679:function(e,t,n){var r=n(8109),i=n(47826),o=n(4146),a=o&&o.isSet,s=a?i(a):r;e.exports=s},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},90249:function(e,t,n){var r=n(1634),i=n(86411),o=n(67878);e.exports=function(e){return o(e)?r(e):i(e)}},18582:function(e,t,n){var r=n(1634),i=n(18390),o=n(67878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},19950:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,t(e,i,o),e)}),n}},34519:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},30733:function(e,t,n){var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},98537:function(e,t,n){var r=n(84565),i=n(97263)(function(e,t,n){r(e,t,n)});e.exports=i},65680:function(e,t,n){var r=n(2229),i=n(17606),o=n(23059);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},34291:function(e){e.exports=function(){}},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},17620:function(e,t,n){var r=n(50343),i=n(18874),o=n(29078),a=n(17297),s=n(752),l=n(48642),u=n(29097),c=n(76939),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n});e.exports=d},65798:function(e,t,n){var r=n(20256),i=n(82952),o=n(21401),a=n(33812);e.exports=function(e){return o(e)?r(a(e)):i(e)}},57370:function(e,t,n){var r=n(34311)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=r},829:function(e,t,n){var r=n(62034),i=n(23813),o=n(36060),a=n(82406),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,n){var r=n(54073),i=n(29259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},61258:function(e,t,n){var r=n(36473),i=n(89419),o=n(38101),a=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var n=4294967295,s=a(e,4294967295);t=i(t),e-=4294967295;for(var l=r(s,t);++n"+t.value+""+i[o].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},66655:function(e,t,n){"use strict";var r=n(72346);function i(e,t){for(var n=0;np.length-2?p.length-1:e.length-l;n>0;n--)if(void 0!==p[n])for(i=0;i0&&kn)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==n?this.lex(e,t).toPostfix().postfixEval(n):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=r},38617:function(e,t,n){"use strict";n.d(t,{F:function(){return u},f:function(){return c}});var r=n(2784);let i=["light","dark"],o="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=(0,r.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:a=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:g,children:y,nonce:b})=>{let[x,w]=(0,r.useState)(()=>p(l,c)),[j,E]=(0,r.useState)(()=>p(l)),k=g?Object.values(g):u,S=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=v());let o=g?g[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...k),o&&l.classList.add(o)):o?l.setAttribute(f,o):l.removeAttribute(f),a){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),_=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),C=(0,r.useCallback)(t=>{let r=v(t);E(r),"system"===x&&n&&!e&&S("system")},[x,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(C),C(e),()=>e.removeListener(C)},[C]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&_(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[_]),(0,r.useEffect)(()=>{S(null!=e?e:x)},[e,x]);let O=(0,r.useMemo)(()=>({theme:x,setTheme:_,forcedTheme:e,resolvedTheme:"system"===x?j:x,themes:n?[...u,"system"]:u,systemTheme:n?j:void 0}),[x,_,e,j,n,u]);return r.createElement(s.Provider,{value:O},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:a,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:y,attrs:k,nonce:b}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let o=u?u[e]:e,a=t?e+"|| ''":`'${o}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${a})`:"null":o&&(l+=`d[s](n,${a})`),l},v=e?`!function(){${h}${m(e)}}()`:a?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${o}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${f?"":"else{"+m(l,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),p=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},v=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(48201)}])},4941:function(e,t,n){"use strict";n.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(23305),o=n(82851),a=n(99182);function s(e){let{currentPage:t,parentPage:n,commandPage:s,className:l,...u}=e,c=(0,a.U8)(e=>e.search);if((null==n?void 0:n.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",l),value:"".concat(null==s?void 0:s.label," ").concat(u.children.toString()),...u})}function l(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function u(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||!t||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function c(e){let{heading:t,currentPage:n,commandPage:o,...s}=e,l=(0,a.U8)(e=>e.search);return(0,r.jsx)(a.mY.Group,{heading:l&&(null==n?void 0:n.namespace)!==o.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:o.label}),...s})}n(2784)},82459:function(e,t,n){"use strict";n.d(t,{F:function(){return g}});var r=n(52322),i=n(23305),o=n(88242),a=n(9969),s=n(71930),l=n(5632),u=n(13242),c=n(19513),d=n(33571),f=n(98358),h=n(31781),p=n(24801),m=n(86450),v=n(2784);function g(e){var t,n;let{id:g,address:y,publicKey:b,contentProps:x,buttonProps:w}=e,j=(0,l.useRouter)(),{setFilter:E,resetFilters:k}=(0,c.l)(),{setFilter:S,resetFilters:_}=(0,u.G)(),C=(0,a.uf)(),O=(0,a.s2)(),M=(0,f.l)(),T=(0,d.I)(),A=function(){let{openConfirmDialog:e}=(0,m.Rh)(),t=(0,a.IK)();return(0,v.useCallback)(n=>e({title:"Delete contract",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to delete the following contract:"}),(0,r.jsxs)(i.nvN,{size:"14",font:"mono",children:[n.slice(0,20),"..."]})]}),onConfirm:async()=>{let e=await t.delete({params:{id:n}});e.error&&(0,i.OHV)("Error deleting contract."),(0,i.OPV)("Successfully deleted contract.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...w,children:(0,r.jsx)(o.iG7,{})}),contentProps:{align:"start",...x,onClick:e=>{e.stopPropagation()}},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Contract ",b.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{k(),E({id:"addressContains",value:y,label:"Address contains ".concat(y)}),j.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{_(),S((0,h.e)(y)),j.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{_(),S((0,p.V)(b)),j.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(null===(t=C.data)||void 0===t?void 0:t.find(e=>e===y))?(0,r.jsxs)(i.Xiv,{onSelect:()=>M([],[y]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove host address from blocklist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>M([y],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add host address to blocklist"]}),(null===(n=O.data)||void 0===n?void 0:n.find(e=>e===b))?(0,r.jsxs)(i.Xiv,{onSelect:()=>T([],[b]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove host public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>T([b],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add host public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>A(g),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.Jrl,{})}),"Delete contract"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(g,"contract ID"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Contract ID"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(b,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(y,"host address"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host address"]})]})}},93216:function(e,t,n){"use strict";n.d(t,{F:function(){return M}});var r=n(52322),i=n(23305),o=n(4941);let a={namespace:"contracts/filterExpiryDate",label:"Contracts filter by expiry date"},s=[{id:"expiry",value:"day",label:"expires today",fn:e=>{let t=new Date().getTime(),n=t+(0,i.NrH)(1);return e.endTimet}},{id:"expiry",value:"week",label:"expires this week",fn:e=>{let t=new Date().getTime(),n=t+(0,i.BL0)(1);return e.endTimet}},{id:"expiry",value:"month",label:"expires this month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xLV)(1);return e.endTimet}},{id:"expiry",value:"nextMonth",label:"expires next month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xLV)(2);return e.endTimet}},{id:"expiry",value:"year",label:"expires this year",fn:e=>{let t=new Date().getTime(),n=t+(0,i.ivg)(1);return e.endTimet}},{id:"expiry",value:"expired",label:"expired",fn:e=>{let t=new Date().getTime();return e.endTime(0,r.jsx)(o.WD,{currentPage:t,commandPage:a,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}let u={namespace:"contracts/filterFormationDate",label:"Contracts filter by formation date"},c=[{id:"formationDate",value:"day",label:"formed in the last day",fn:e=>{let t=new Date().getTime(),n=t-(0,i.NrH)(1);return e.startTime>=n}},{id:"formationDate",value:"week",label:"formed in the last week",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(1);return e.startTime>=n}},{id:"formationDate",value:"twoWeeks",label:"formed in the last two weeks",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(2);return e.startTime>=n}},{id:"formationDate",value:"month",label:"formed in the last month",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(1);return e.startTime>=n}},{id:"formationDate",value:"twoMonths",label:"formed in the last two months",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(2);return e.startTime>=n}},{id:"formationDate",value:"year",label:"formed in the last year",fn:e=>{let t=new Date().getTime(),n=t-(0,i.ivg)(1);return e.startTime>=n}}];function d(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(o.fu,{currentPage:t,commandPage:u,children:c.map(e=>(0,r.jsx)(o.WD,{currentPage:t,commandPage:u,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}let f={namespace:"contracts/filterRenewDate",label:"Contracts filter by renew date"},h=[{id:"renewDate",value:"day",label:"renewed in the last day",fn:e=>{let t=new Date().getTime(),n=t-(0,i.NrH)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"week",label:"renewed in the last week",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"twoWeeks",label:"renewed in the last two weeks",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(2);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"month",label:"renewed in the last month",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"twoMonths",label:"renewed in the last two months",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(2);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"year",label:"renewed in the last year",fn:e=>{let t=new Date().getTime(),n=t-(0,i.ivg)(1);return e.isRenewed&&e.startTime>=n}}];function p(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(o.fu,{currentPage:t,commandPage:f,children:h.map(e=>(0,r.jsx)(o.WD,{currentPage:t,commandPage:f,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}var m=n(86450),v=n(31781);let g={namespace:"contracts/filterAddress",label:"Contracts filter by address"};function y(e){let{select:t,currentPage:n}=e,{openDialog:i}=(0,m.Rh)(),a=(0,v.e)("");return(0,r.jsx)(o.fu,{currentPage:n,commandPage:g,children:(0,r.jsx)(o.WD,{currentPage:n,commandPage:g,onSelect:()=>{t(),i("contractsFilterAddress")},children:a.label})})}function b(e){let{select:t,currentPage:n,parentPage:i,commandPage:a}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(o.Ul,{currentPage:n,parentPage:i,commandPage:a,onSelect:()=>{t(),s("contractsFilterAddress")},children:g.label})}var x=n(24801);let w={namespace:"contracts/filterPublicKey",label:"Contracts filter by public key"};function j(e){let{select:t,currentPage:n}=e,i=(0,x.V)(""),{openDialog:a}=(0,m.Rh)();return(0,r.jsx)(o.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(o.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),a("contractsFilterPublicKey")},children:i.label})})}function E(e){let{select:t,currentPage:n,parentPage:i,commandPage:a}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(o.Ul,{currentPage:n,parentPage:i,commandPage:a,onSelect:()=>{t(),s("contractsFilterPublicKey")},children:w.label})}function k(e){let{currentPage:t,select:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{currentPage:t,select:n}),(0,r.jsx)(j,{currentPage:t,select:n}),(0,r.jsx)(l,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n}),(0,r.jsx)(p,{currentPage:t,select:n})]})}let S={namespace:"contracts",label:"Contracts"};function _(e){let{currentPage:t,parentPage:n,pushPage:i,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b,{currentPage:t,parentPage:n,commandPage:S,select:s}),(0,r.jsx)(E,{currentPage:t,parentPage:n,commandPage:S,select:s}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(u)},children:u.label}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(a)},children:a.label}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(f)},children:f.label})]})}var C=n(13242),O=n(2784);function M(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,C.G)(),l=(0,O.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(k,{currentPage:t,select:l})]})}},31781:function(e,t,n){"use strict";n.d(t,{e:function(){return u},p:function(){return f}});var r=n(52322),i=n(23305),o=n(13242),a=n(9156),s=n(24511),l=n(86450);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e),fn:t=>t.hostIp.includes(e)}}let c={address:""},d=s.Ry().shape({address:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.address)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by address",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Address",name:"address",placeholder:"Partial match against domain or IP",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},24801:function(e,t,n){"use strict";n.d(t,{C:function(){return f},V:function(){return u}});var r=n(52322),i=n(23305),o=n(13242),a=n(9156),s=n(24511),l=n(86450);function u(e){return{id:"publicKeyContains",value:e,label:"public key contains ".concat((0,i.$Gg)(e,20)),fn:t=>t.hostKey.includes(e)}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.publicKey)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by public key",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},4370:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(13242),i=n(34658);function o(){var e;let t=(0,i.w)(),{datasetConfirmedCount:n,isLoading:o}=(0,r.G)(),a=t.data&&!o&&n{e.stopPropagation()}},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Host ",g.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w({id:"addressContains",value:v,label:"Address contains ".concat((0,i.$Gg)(v,20))}),x.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w((0,m.K)(g)),x.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by public key"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{k(),E((0,h.e)(v)),x.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{k(),E((0,p.V)(g)),x.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>M.post({payload:{hostKey:g,hostIP:v,timeout:(0,i.XBW)(30)}}),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o._Eq,{})}),"Rescan host"]}),(null===(t=S.data)||void 0===t?void 0:t.find(e=>e===v))?(0,r.jsxs)(i.Xiv,{onSelect:()=>C([],[v]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove address from blocklist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>C([v],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add address to blocklist"]}),(null===(n=_.data)||void 0===n?void 0:n.find(e=>e===g))?(0,r.jsxs)(i.Xiv,{onSelect:()=>O([],[g]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>O([g],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add public key to allowlist"]})]})}},34444:function(e,t,n){"use strict";n.d(t,{T:function(){return j},N:function(){return w}});var r=n(52322),i=n(2784),o=n(23305),a=n(96206),s=n(6391),l=n.n(s);function u(e){let{host:t,rates:n}=e,r=n?"$".concat(new(l())(t.settings.storageprice).times((0,o.xf5)(1)).times((0,o.S5V)(1)).div(1e24).times((null==n?void 0:n.usd)||1).toFixed(2),"/TB"):"".concat((0,a.Vz)(new(l())(t.settings.storageprice).times((0,o.xf5)(1)).times((0,o.S5V)(1)),{fixed:0}),"/TB"),i="".concat((0,a.vW)(t.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).toNumber())," utilized"),s="".concat((0,a.vW)(t.settings.remainingstorage)," / ").concat((0,a.vW)(t.settings.totalstorage)," available");return"".concat((0,o.HLH)(t.countryCode)," \xb7 ").concat(r," \xb7 ").concat(i," \xb7 ").concat(s)}var c=function(){let[e,t]=(0,i.useState)(null),[n,r]=(0,i.useState)({width:0,height:0}),o=(0,i.useCallback)(()=>{r({width:(null==e?void 0:e.offsetWidth)||0,height:(null==e?void 0:e.offsetHeight)||0})},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]);return d("resize",o),h(()=>{o()},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]),[t,n]},d=function(e,t,n,r){let o=(0,i.useRef)(t);h(()=>{o.current=t},[t]),(0,i.useEffect)(()=>{var t;let i=null!==(t=null==n?void 0:n.current)&&void 0!==t?t:window;if(!(i&&i.addEventListener))return;let a=e=>o.current(e);return i.addEventListener(e,a,r),()=>{i.removeEventListener(e,a,r)}},[e,n,r])};let f="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;var h=f,p=n(2850),m=n(25237),v=n.n(m);let g=v()(()=>Promise.all([n.e(546),n.e(508),n.e(167),n.e(764),n.e(17)]).then(n.bind(n,45017)),{loadableGenerated:{webpack:()=>[45017]},ssr:!1}),y=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(g,{...e,forwardRef:t})});var b=n(10917),x=n(47025);let w={moveToLocation:(e,t)=>null};function j(e){let{activeHost:t,hosts:n,onMount:o,onHostClick:a,onHostHover:s}=e,d=(0,x.BW)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,i.useRef)(null),h=(0,i.useRef)(w),m=(0,i.useCallback)((e,t)=>{var n;e&&(null===(n=f.current)||void 0===n||n.pointOfView({lat:e[0]-8,lng:e[1],altitude:t||1.5},700))},[]);(0,i.useEffect)(()=>{h.current.moveToLocation=m},[m]),(0,p.Q5)(()=>{var e;if(!f.current)return!1;m((null==t?void 0:t.location)||[48.8323,2.4075],1.5);let n=null===(e=f.current)||void 0===e?void 0:e.scene().children.find(e=>"DirectionalLight"===e.type);return n&&(n.intensity=10),!0}),(0,i.useEffect)(()=>{o&&o(h.current)},[]);let[v,{height:g,width:j}]=c(),E=(0,i.useMemo)(()=>n||[],[n]);return(0,r.jsx)("div",{ref:v,className:"w-full h-full",children:(0,r.jsx)(y,{ref:f,width:j,height:g,backgroundColor:"rgba(0,0,0,0)",globeImageUrl:"/_next/static/media/earth-dark-contrast.bf7081fc.png",bumpImageUrl:"/_next/static/media/earth-topology.e385a70e.png",arcsData:[],atmosphereColor:"rgba(0,0,0,0)",atmosphereAltitude:.16,animateIn:!1,arcLabel:e=>{var t;return u({host:e.dst,rates:null===(t=d.data)||void 0===t?void 0:t.rates.sc})},arcStartLat:e=>+e.src.location[0],arcStartLng:e=>+e.src.location[1],arcEndLat:e=>+e.dst.location[0],arcEndLng:e=>+e.dst.location[1],arcDashLength:.75,arcAltitude:0,arcDashGap:.1,arcDashInitialGap:()=>Math.random(),arcDashAnimateTime:5e3,arcColor:e=>t&&(e.dst.publicKey===t.publicKey||e.src.publicKey===t.publicKey)?["rgba(187, 229, 201, 0.25)","rgba(187, 229, 201, 0.25)"]:["rgba(187, 229, 201, 0.10)","rgba(187, 229, 201, 0.10)"],arcsTransitionDuration:0,pointsData:E,pointLat:e=>e.location[0],pointLng:e=>e.location[1],pointLabel:e=>{var t;return u({host:e,rates:null===(t=d.data)||void 0===t?void 0:t.rates.sc})},pointAltitude:e=>(t&&e.publicKey===(null==t?void 0:t.publicKey)||e.activeContractsCount.gt(0),.1),pointsTransitionDuration:0,pointColor:e=>{let{colorHex:n}=(0,b.Kg)(e);return t&&e.publicKey!==(null==t?void 0:t.publicKey)?function(e,t){let n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return"rgba(".concat(n,", ").concat(r,", ").concat(i,", ").concat(.2,")")}(n,0):n},pointRadius:e=>(e.activeContractsCount.gt(0)&&e.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).div(1e12).toNumber(),Math.max(e.settings.remainingstorage/1e13/3,.1)),onPointHover:e=>{e&&(null==s||s(e.publicKey,e.location))},onPointClick:e=>{e&&(null==a||a(e.publicKey,e.location))},pointsMerge:!1})})}},18006:function(e,t,n){"use strict";n.d(t,{L:function(){return M}});var r=n(52322),i=n(4941),o=n(86450),a=n(2320);let s={namespace:"hosts/filterAddress",label:"Hosts filter by address"};function l(e){let{select:t,currentPage:n}=e,{openDialog:l}=(0,o.Rh)(),u=(0,a.q)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:s,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:s,onSelect:()=>{t(),l("hostsFilterAddress")},children:u.label})})}function u(e){let{select:t,currentPage:n,parentPage:a,commandPage:l}=e,{openDialog:u}=(0,o.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:a,commandPage:l,onSelect:()=>{t(),u("hostsFilterAddress")},children:s.label})}let c={namespace:"hosts/filterAllowBlock",label:"Hosts filter by allow/block status"},d=[{id:"filterMode",value:"allowed",label:"allowed"},{id:"filterMode",value:"blocked",label:"blocked"}];function f(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:c,children:d.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:c,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}let h={namespace:"hosts/filterActiveContracts",label:"Hosts filter by contracts"},p={id:"hasActiveContracts",bool:!0,label:"has active contracts"};function m(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:h,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:h,onSelect:()=>{t(p)},children:p.label})})}let v={namespace:"hosts/filterUsable",label:"Hosts filter by usable"},g=[{id:"usabilityMode",value:"usable",label:"usable"},{id:"usabilityMode",value:"unusable",label:"unusable"}];function y(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:v,children:g.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:v,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var b=n(91641),x=n(54155);let w={namespace:"hosts/filterPublicKey",label:"Hosts filter by public key"};function j(e){let{select:t,currentPage:n}=e,{openDialog:a}=(0,o.Rh)(),s=(0,x.K)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),a("hostsFilterPublicKey")},children:s.label})})}function E(e){let{select:t,currentPage:n,parentPage:a,commandPage:s}=e,{openDialog:l}=(0,o.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:a,commandPage:s,onSelect:()=>{t(),l("hostsFilterPublicKey")},children:w.label})}function k(e){let{currentPage:t,select:n}=e,{autopilot:i}=(0,b.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===i.status&&(0,r.jsx)(y,{currentPage:t,select:n}),(0,r.jsx)(m,{currentPage:t,select:n}),(0,r.jsx)(l,{currentPage:t,select:n}),(0,r.jsx)(j,{currentPage:t,select:n}),(0,r.jsx)(f,{currentPage:t,select:n})]})}let S={namespace:"hosts",label:"Hosts"};function _(e){let{currentPage:t,parentPage:n,pushPage:o,select:a}=e,{autopilot:s}=(0,b.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===s.status&&(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(v)},children:v.label}),(0,r.jsx)(E,{currentPage:t,parentPage:n,commandPage:S,select:a}),(0,r.jsx)(u,{currentPage:t,parentPage:n,commandPage:S,select:a}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(h)},children:h.label}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(c)},children:c.label})]})}var C=n(19513),O=n(2784);function M(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,C.l)(),l=(0,O.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(k,{currentPage:t,pushPage:i,select:l})]})}},2320:function(e,t,n){"use strict";n.d(t,{g:function(){return f},q:function(){return u}});var r=n(52322),i=n(23305),o=n(19513),a=n(9156),s=n(24511),l=n(86450);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e)}}let c={address:""},d=s.Ry().shape({address:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.l)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.address)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by address",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Address",name:"address",placeholder:"Partial match against domain or IP",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},54155:function(e,t,n){"use strict";n.d(t,{K:function(){return u},a:function(){return f}});var r=n(52322),i=n(23305),o=n(19513),a=n(9156),s=n(24511),l=n(86450);function u(e){return{id:"publicKeyEquals",value:e,label:"public key is ".concat((0,i.$Gg)(e,20))}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.l)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.publicKey)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by public key",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:b050c0c6...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},71930:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return o}});var r=n(9969);let i={home:"/",files:{index:"/files"},config:{index:"/config",storage:"/config#storage",pricing:"/config#pricing",hosts:"/config#hosts",wallet:"/config#wallet",contracts:"/config#contracts",uploads:"/config#uploads",redundancy:"/config#redundancy"},contracts:{index:"/contracts"},hosts:{index:"/hosts"},wallet:{view:"/wallet"},node:{index:"/node"},login:"/login"},o=r.HI},91641:function(e,t,n){"use strict";n.d(t,{w:function(){return u},q:function(){return l}});var r=n(52322),i=n(2784),o=n(23305),a=n(9969);let s=(0,i.createContext)({}),l=()=>(0,i.useContext)(s);function u(e){let{children:t}=e,n=function(){let e=function(){let e=(0,a.YX)({config:{swr:{dedupingInterval:(0,o.XBW)(5),revalidateOnFocus:!1,refreshInterval:e=>e?(0,o.XBW)(60):(0,o.XBW)(1)}}}),[t,n]=(0,i.useState)("init");return(0,i.useEffect)(()=>{if(e.isLoading)n("init");else if(e.isValidating)return;else if(e.error)n("off");else if(e.data){let t="object"==typeof e.data;n(t?"on":"off")}},[e]),{status:t,state:e}}();return{autopilot:e}}();return(0,r.jsx)(s.Provider,{value:n,children:t})}},17286:function(e,t,n){"use strict";n.d(t,{iV:function(){return V},ZR:function(){return z}});var r=n(52322),i=n(2784),o=n(23305),a=n(6391),s=n.n(a),l=n(9969),u=n(96206);let c={autopilotContractSet:"",amountHosts:void 0,allowanceMonth:void 0,periodWeeks:void 0,renewWindowWeeks:void 0,downloadTBMonth:void 0,uploadTBMonth:void 0,storageTB:void 0,allowRedundantIPs:!1,maxDowntimeHours:void 0,defragThreshold:void 0},d={defaultContractSet:""},f={uploadPackingEnabled:!0},h={includeRedundancyMaxStoragePrice:!0,includeRedundancyMaxUploadPrice:!0},p={maxRpcPriceMillion:void 0,maxStoragePriceTBMonth:void 0,maxContractPrice:void 0,maxDownloadPriceTB:void 0,maxUploadPriceTB:void 0,minMaxCollateral:void 0,hostBlockHeightLeeway:void 0,minPriceTableValidityMinutes:void 0,minAccountExpiryDays:void 0,minMaxEphemeralAccountBalance:void 0},m={minShards:void 0,totalShards:void 0},v={...c,...d,...f,...p,...m,...h},g={...c,downloadTBMonth:new(s())(1),uploadTBMonth:new(s())(1),periodWeeks:new(s())(6),renewWindowWeeks:new(s())(2),amountHosts:new(s())(50),autopilotContractSet:"autopilot",allowRedundantIPs:!1,maxDowntimeHours:new(s())(1440),defragThreshold:new(s())(1e3)},y={...d,defaultContractSet:"autopilot"};({...f});let b={...p};function x(e){let{isAutopilotEnabled:t,showAdvanced:n,redundancyMultiplier:i,includeRedundancyMaxStoragePrice:a,includeRedundancyMaxUploadPrice:l,storageAverage:u,uploadAverage:c,downloadAverage:d,contractAverage:f}=e;return{storageTB:{type:"number",category:"storage",title:"Expected storage",description:(0,r.jsx)(r.Fragment,{children:"The amount of storage you would like to rent in TB."}),units:"TB",hidden:!t,validation:t?{required:"required"}:{}},uploadTBMonth:{type:"number",category:"storage",title:"Expected upload",description:(0,r.jsx)(r.Fragment,{children:"The amount of upload bandwidth you plan to use each month in TB."}),units:"TB/month",hidden:!t||!n,validation:t&&n?{required:"required"}:{}},downloadTBMonth:{type:"number",category:"storage",title:"Expected download",description:(0,r.jsx)(r.Fragment,{children:"The amount of download bandwidth you plan to use each month in TB."}),units:"TB/month",hidden:!t||!n,validation:t&&n?{required:"required"}:{}},allowanceMonth:{type:"siacoin",category:"storage",title:"Allowance",description:(0,r.jsx)(r.Fragment,{children:"The amount of Siacoin you would like to spend per month."}),units:"SC/month",decimalsLimitSc:6,hidden:!t||!n,validation:t&&n?{required:"required"}:{}},periodWeeks:{type:"number",category:"storage",title:"Period",description:(0,r.jsx)(r.Fragment,{children:"The length of the storage contracts."}),units:"weeks",suggestion:g.periodWeeks,suggestionTip:"Typically ".concat(g.periodWeeks," weeks."),hidden:!t||!n,validation:t&&n?{required:"required"}:{}},renewWindowWeeks:{type:"number",category:"storage",title:"Renew window",description:(0,r.jsx)(r.Fragment,{children:"The number of weeks prior to contract expiration that Sia will attempt to renew your contracts."}),units:"weeks",decimalsLimit:6,suggestion:g.renewWindowWeeks,suggestionTip:"Typically ".concat(g.renewWindowWeeks," weeks."),hidden:!t||!n,validation:t&&n?{required:"required"}:{}},amountHosts:{type:"number",category:"storage",title:"Hosts",description:(0,r.jsx)(r.Fragment,{children:"The number of hosts to create contracts with."}),units:"hosts",decimalsLimit:0,suggestion:g.amountHosts,suggestionTip:"Typically ".concat(g.amountHosts," hosts."),hidden:!t||!n,validation:t&&n?{required:"required"}:{}},autopilotContractSet:{type:"text",category:"storage",title:"Contract set",description:(0,r.jsx)(r.Fragment,{children:"The contract set that autopilot should use. This should typically be the same as the default contract set."}),placeholder:g.autopilotContractSet,suggestion:g.autopilotContractSet,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default contract set is"," ",(0,r.jsx)(o.EKh,{children:g.autopilotContractSet}),"."]}),hidden:!t||!n,validation:t&&n?{required:"required"}:{}},allowRedundantIPs:{type:"boolean",category:"hosts",title:"Redundant IPs",description:(0,r.jsx)(r.Fragment,{children:"Whether or not to allow forming contracts with multiple hosts in the same IP subnet. The subnets used are /16 for IPv4, and /64 for IPv6."}),suggestion:g.allowRedundantIPs,suggestionTip:"Defaults to ".concat(g.allowRedundantIPs?"on":"off","."),hidden:!t||!n,validation:{}},maxDowntimeHours:{type:"number",category:"hosts",title:"Max downtime",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of host downtime that autopilot will tolerate in hours."}),units:"hours",suggestion:g.maxDowntimeHours,suggestionTip:"Defaults to ".concat(g.maxDowntimeHours.toNumber().toLocaleString()," which is ").concat((0,o.y70)(new(s())((0,o.XAn)(g.maxDowntimeHours.toNumber())),1)," days."),hidden:!t||!n,validation:t&&n?{required:"required"}:{}},defragThreshold:{type:"number",category:"wallet",title:"Defrag threshold",description:(0,r.jsx)(r.Fragment,{children:"The threshold after which autopilot will defrag wallet outputs."}),units:"outputs",suggestion:g.defragThreshold,suggestionTip:"Defaults to 1,000.",hidden:!t||!n,validation:t&&n?{required:"required"}:{}},defaultContractSet:{category:"contractset",type:"text",title:"Default contract set",placeholder:y.defaultContractSet,suggestion:y.defaultContractSet,suggestionTip:(0,r.jsx)(r.Fragment,{children:"Autopilot users will typically want to keep this the same as the autopilot contract set."}),description:(0,r.jsx)(r.Fragment,{children:"The default contract set is where data is uploaded to by default."}),hidden:!n,validation:n?{required:"required"}:{}},uploadPackingEnabled:{category:"uploadpacking",type:"boolean",title:"Upload packing",description:(0,r.jsx)(r.Fragment,{children:"Data on the Sia network is stored in 4MiB sectors. With the default 10 of 30 redundancy scheme, uploaded files are split into 40MiB chunks and encoded into 120MiB slabs. This means that storage is wasted on padding and files smaller than 40MiB still use 120MiB of space. The redundancy scheme can be configured, but unless all files are exactly 4MiB * the redundancy's minimum shards, there will always be wasted storage. Upload packing avoids this waste by buffering files and packing them together before they are uploaded to the network. This trades some performance for storage efficiency. It is also important to note that because buffered files are temporarily stored on disk they must be considered when backing up your renterd data."}),hidden:!n,validation:{}},maxStoragePriceTBMonth:{category:"gouging",type:"siacoin",title:"Max storage price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to store 1 TB per month."}),units:"SC/TB/month",average:u,averageTip:w(a,i),after:function(e){let{form:t,fields:n}=e;return(0,r.jsx)(o.ua7,{align:"start",side:"bottom",content:j(a,i),children:(0,r.jsx)("div",{children:(0,r.jsx)(o.QBj,{size:"small",form:t,fields:n,name:"includeRedundancyMaxStoragePrice",group:!1,children:(0,r.jsxs)(o.xvT,{size:"12",weight:"medium",children:["Including ",i.toFixed(1),"x redundancy"]})})})})},decimalsLimitSc:6,validation:{required:"required"}},maxUploadPriceTB:{category:"gouging",type:"siacoin",title:"Max upload price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to upload 1 TB."}),units:"SC/TB/month",average:c,averageTip:w(l,i),after:function(e){let{form:t,fields:n}=e;return(0,r.jsx)(o.ua7,{align:"start",side:"bottom",content:j(l,i),children:(0,r.jsx)("div",{children:(0,r.jsx)(o.QBj,{size:"small",form:t,fields:n,name:"includeRedundancyMaxUploadPrice",group:!1,children:(0,r.jsxs)(o.xvT,{size:"12",weight:"medium",children:["Including ",i.toFixed(1),"x redundancy"]})})})})},decimalsLimitSc:6,hidden:!n,validation:n?{required:"required"}:{}},maxDownloadPriceTB:{category:"gouging",type:"siacoin",title:"Max download price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to download 1 TB."}),units:"SC/TB/month",average:d,averageTip:"Averages provided by Sia Central.",decimalsLimitSc:6,hidden:!n,validation:n?{required:"required"}:{}},maxContractPrice:{category:"gouging",type:"siacoin",title:"Max contract price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to form a contract."}),average:f,decimalsLimitSc:6,tipsDecimalsLimitSc:3,hidden:!n,validation:n?{required:"required"}:{}},maxRpcPriceMillion:{category:"gouging",type:"siacoin",title:"Max RPC price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed base price for RPCs in siacoins per million calls."}),units:"SC/million",decimalsLimitSc:6,hidden:!n,validation:n?{required:"required"}:{}},minMaxCollateral:{category:"gouging",type:"siacoin",title:"Min max collateral",description:(0,r.jsx)(r.Fragment,{children:"The min value for max collateral in the host's price settings."}),decimalsLimitSc:6,hidden:!n,validation:n?{required:"required"}:{}},hostBlockHeightLeeway:{category:"gouging",type:"number",title:"Block height leeway",description:(0,r.jsx)(r.Fragment,{children:"The amount of blocks of leeway given to the host block height in the host's price table."}),units:"blocks",decimalsLimit:0,suggestion:b.hostBlockHeightLeeway,suggestionTip:"The recommended value is 6 blocks.",hidden:!n,validation:n?{required:"required",validate:{min:e=>new(s())(e).gte(3)||"must be at least 3 blocks"}}:{}},minPriceTableValidityMinutes:{category:"gouging",type:"number",title:"Min price table validity",units:"minutes",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `Validity` in the host's price settings."}),hidden:!n,validation:n?{required:"required",validate:{min:e=>new(s())(e).gte((0,o.GXN)(10))||"must be at least 10 seconds"}}:{}},minAccountExpiryDays:{category:"gouging",type:"number",title:"Min account expiry",units:"days",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `AccountExpiry` in the host's price settings."}),hidden:!n,validation:n?{required:"required",validate:{min:e=>new(s())(e).gte((0,o.XAn)(1))||"must be at least 1 hour"}}:{}},minMaxEphemeralAccountBalance:{category:"gouging",type:"siacoin",title:"Min max ephemeral account balance",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `MaxEphemeralAccountBalance` in the host's price settings."}),decimalsLimitSc:6,hidden:!n,validation:n?{required:"required",validate:{min:e=>new(s())(e).gte(1)||"must be at least 1 SC"}}:{}},minShards:{type:"number",category:"redundancy",title:"Min shards",description:(0,r.jsx)(r.Fragment,{children:"The min amount of shards needed to reconstruct a slab."}),units:"shards",hidden:!n,validation:n?{required:"required",validate:{min:e=>new(s())(e).gt(0)||"must be greater than 0"}}:{},trigger:["totalShards"]},totalShards:{type:"number",category:"redundancy",title:"Total shards",description:(0,r.jsx)(r.Fragment,{children:"The total amount of shards for each slab."}),units:"shards",hidden:!n,validation:n?{required:"required",validate:{gteMinShards:(e,t)=>new(s())(e).gte(t.minShards)||"must be at least equal to min shards",max:e=>new(s())(e).lt(256)||"must be less than 256"}}:{}},includeRedundancyMaxStoragePrice:{type:"boolean",title:"Include redundancy",validation:{}},includeRedundancyMaxUploadPrice:{type:"boolean",title:"Include redundancy",validation:{}}}}function w(e,t){return e?"The average price is adjusted for ".concat(t.toFixed(1),"x redundancy. Averages provided by Sia Central."):"The average price is not adjusted for redundancy. Averages provided by Sia Central."}function j(e,t){return e?(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)(o.xvT,{color:"subtle",children:["Specified max price includes the cost of"," ",t.toFixed(1),"x redundancy."]}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["Redundancy is calculated from the ratio of data shards:"," ",(0,r.jsx)(o.EKh,{children:"min shards / total shards"}),"."]})]}):"Specified max price does not include redundancy."}({...m});let E=e=>Object.fromEntries(Object.entries(e).filter(e=>{let[t,n]=e;return void 0!==n&&""!==n}));function k(e,t){let n=e.defaultContractSet||(null==t?void 0:t.default)||y.defaultContractSet;return{...t,default:n}}function S(e,t){let n=new(s())(1),r=e&&t&&!e.isZero()&&!t.isZero()&&t.gte(e);return r&&(n=t.div(e)),n}function _(e,t,n){let r=S(e,t);return n?r:new(s())(1)}function C(e,t){let n=(0,o.mvJ)(t.toNumber());return e.times(n).div((0,o.S5V)(1))}function O(e,t){let n=e.div(t);return n.times((0,o.S5V)(1))}var M=n(63955),T=n(92762),A=n(80489),P=n(2850);let N="v0-config-display-options";var R=n(34658),D=n(47025),L=n(91641);let F=(0,i.createContext)({}),z=()=>(0,i.useContext)(F);function V(e){let{children:t}=e,n=function(){var e,t,n;let a=(0,L.q)(),f="on"===a.autopilot.status,p=(0,l.e$)({disabled:!f,standalone:"configFormAutopilot",config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}}),m=(0,A.a)({standalone:"configFormContractSet",config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}}),y=(e={standalone:"configFormConfigApp",config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}},(0,l.yu)({...e,params:{key:N}})),b=(t={standalone:"configFormGouging",config:{swr:{refreshInterval:(0,o.sWj)(1)}}},(0,l.yu)({...t,params:{key:"gouging"}})),w=(0,R.w)({standalone:"configFormRedundancy",config:{swr:{refreshInterval:(0,o.sWj)(1)}}}),j=(n={standalone:"configFormUploadPacking",config:{swr:{refreshInterval:(0,o.sWj)(1)}}},(0,l.yu)({...n,params:{key:"uploadpacking"}})),F=(0,l.KJ)(),z=(0,D.BF)({config:{swr:{revalidateOnFocus:!1}}}),[V,I]=(0,T.Z)("v0/config/showAdvanced",{defaultValue:!1}),{shouldSyncDefaultContractSet:Z,setShouldSyncDefaultContractSet:B,syncDefaultContractSet:H}=function(){let[e,t]=(0,T.Z)("v0/autopilot/syncDefaultContractSet",{defaultValue:!0}),n=(0,A.a)({config:{swr:{errorRetryCount:0}}}),a=(0,l.KJ)(),s=(0,i.useCallback)(async t=>{let i=n.data||{default:""};try{e&&t!==i.default&&(await a.put({params:{key:"contractset"},payload:k({defaultContractSet:t},n.data)}),n.mutate(),(0,o.OPV)((0,r.jsxs)(o.xvT,{children:["Default contract set has been updated to:"," ",(0,r.jsx)(o.EKh,{children:t}),"."]})))}catch(e){(0,o.OHV)(e.message),console.log(e)}},[n.data,a,e]);return{shouldSyncDefaultContractSet:e,setShouldSyncDefaultContractSet:t,syncDefaultContractSet:s}}(),U=(0,l.oe)(),W=(0,M.cI)({mode:"all",defaultValues:v}),q=(0,i.useCallback)((e,t,n,r,i,a)=>{let l=function(e,t,n,r,i,a){let l=a?{includeRedundancyMaxStoragePrice:a.includeRedundancyMaxStoragePrice,includeRedundancyMaxUploadPrice:a.includeRedundancyMaxUploadPrice}:h,f={minShards:new(s())(i.minShards),totalShards:new(s())(i.totalShards)};return{...function(e){if(!e)return c;let t=e.contracts.set,n=(0,u.ll)(O(new(s())(e.contracts.allowance),e.contracts.period),6),r=new(s())(e.contracts.amount),i=new(s())((0,o.x5w)(e.contracts.period)),a=new(s())((0,o.x5w)(e.contracts.renewWindow)),l=new(s())((0,o.y70)(O((0,o.JWi)(e.contracts.download),e.contracts.period),2)),d=new(s())((0,o.y70)(O((0,o.JWi)(e.contracts.upload),e.contracts.period),2)),f=(0,o.JWi)(new(s())(e.contracts.storage));return{autopilotContractSet:t,allowanceMonth:n,amountHosts:r,periodWeeks:i,renewWindowWeeks:a,downloadTBMonth:l,uploadTBMonth:d,storageTB:f,allowRedundantIPs:e.hosts.allowRedundantIPs,maxDowntimeHours:new(s())(e.hosts.maxDowntimeHours),defragThreshold:new(s())(e.wallet.defragThreshold)}}(e),...t?{defaultContractSet:t.default}:d,uploadPackingEnabled:n.enabled,maxStoragePriceTBMonth:(0,u.ll)(new(s())(r.maxStoragePrice).times((0,o.S5V)(1)).times((0,o.xf5)(1)).times(_(f.minShards,f.totalShards,l.includeRedundancyMaxStoragePrice)),6),maxUploadPriceTB:(0,u.ll)(new(s())(r.maxUploadPrice).times(_(f.minShards,f.totalShards,l.includeRedundancyMaxUploadPrice)),6),maxDownloadPriceTB:(0,u.ll)(r.maxDownloadPrice,6),maxContractPrice:(0,u.ll)(r.maxContractPrice,6),maxRpcPriceMillion:(0,u.ll)(r.maxRPCPrice,6).times(1e6),minMaxCollateral:(0,u.ll)(r.minMaxCollateral,6),hostBlockHeightLeeway:new(s())(r.hostBlockHeightLeeway),minPriceTableValidityMinutes:new(s())((0,o.AEA)(r.minPriceTableValidity)),minAccountExpiryDays:new(s())((0,o.okB)(r.minAccountExpiry)),minMaxEphemeralAccountBalance:(0,u.ll)(r.minMaxEphemeralAccountBalance,6),...f,...l}}(e,t,n,r,i,a);return W.reset(l),l},[W]),$=(0,i.useMemo)(()=>[p.data,p.error,m.data,m.error,j.data,b.data,w.data,y.data,y.error],[p.data,p.error,m.data,m.error,j.data,b.data,w.data,y.data,y.error]),K=(0,i.useCallback)(()=>(!f||p.data||p.error)&&b.data&&w.data&&j.data&&(m.data||m.error)&&(y.data||y.error)?q(p.data,m.data,j.data,b.data,w.data,y.data):null,[f,q,p.data,p.error,m.data,m.error,j.data,b.data,w.data,y.data,y.error]),[Y,G]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if("init"!==a.autopilot.status&&!Y){let e=K();e&&G(!0)}},[Y,a.autopilot.status,K]);let X=(0,i.useCallback)(async()=>{let e=f?await p.mutate():void 0,t=await m.mutate(),n=await b.mutate(),r=await w.mutate(),i=await j.mutate(),a=await y.mutate();n&&r?q(e,t,i,n,r,a):(0,o.OHV)("Error fetching settings.")},[f,p,m,b,j,w,y,q]),J=W.watch("maxStoragePriceTBMonth"),Q=W.watch("maxDownloadPriceTB"),ee=W.watch("maxUploadPriceTB"),et=W.watch("storageTB"),en=W.watch("downloadTBMonth"),er=W.watch("uploadTBMonth"),ei=W.watch("minShards"),eo=W.watch("totalShards"),ea=W.watch("includeRedundancyMaxStoragePrice"),es=W.watch("includeRedundancyMaxUploadPrice"),el=(0,i.useMemo)(()=>S(ei,eo),[ei,eo]),eu=(0,i.useMemo)(()=>z.data?x({isAutopilotEnabled:f,showAdvanced:V,redundancyMultiplier:el,includeRedundancyMaxStoragePrice:ea,includeRedundancyMaxUploadPrice:es,storageAverage:(0,u.ll)(z.data.settings.storage_price).times((0,o.S5V)(1)).times((0,o.xf5)(1)).times(_(ei,eo,ea)),uploadAverage:(0,u.ll)(z.data.settings.upload_price).times((0,o.xf5)(1)).times(_(ei,eo,es)),downloadAverage:(0,u.ll)(z.data.settings.download_price).times((0,o.xf5)(1)),contractAverage:(0,u.ll)(z.data.settings.contract_price)}):x({isAutopilotEnabled:f,showAdvanced:V,redundancyMultiplier:el,includeRedundancyMaxStoragePrice:ea,includeRedundancyMaxUploadPrice:es}),[f,V,z.data,el,ei,eo,ea,es]),ec=(0,i.useMemo)(()=>!!f&&(null==J?void 0:J.gt(0))&&(null==et?void 0:et.gt(0))&&(null==Q?void 0:Q.gt(0))&&(null==ee?void 0:ee.gt(0)),[f,J,et,Q,ee]),ed=(0,i.useMemo)(()=>{if(!ec)return new(s())(0);let e=(null==en?void 0:en.gt(0))?en:1,t=(null==er?void 0:er.gt(0))?er:1,n=ea?J.times(et):J.times(el).times(et),r=Q.times(e),i=es?ee.times(t):ee.times(el).times(t),o=n.plus(r).plus(i);return o},[ec,ea,es,el,J,et,Q,en,ee,er]),ef=(0,i.useMemo)(()=>{if(!ec)return new(s())(0);let e=ed.div(et);return e},[ec,ed,et]),eh=(0,P.Tu)(),ep=(0,i.useCallback)(async e=>{if(b.data&&w.data)try{let t={};f&&!V&&(t.allowanceMonth=ed);let n={...e,...t},r=f&&!p.data,i=f?await U.put({payload:function(e,t){let n={...g,...E(e)};return{...t,contracts:{...null==t?void 0:t.contracts,set:n.autopilotContractSet,amount:Math.round(n.amountHosts.toNumber()),allowance:(0,u.qN)(C(n.allowanceMonth,n.periodWeeks)).toString(),period:Math.round((0,o.mvJ)(n.periodWeeks.toNumber())),renewWindow:Math.round((0,o.mvJ)(n.renewWindowWeeks.toNumber())),download:Number(C((0,o.xf5)(n.downloadTBMonth),n.periodWeeks).toFixed(0)),upload:Number(C((0,o.xf5)(n.uploadTBMonth),n.periodWeeks).toFixed(0)),storage:(0,o.xf5)(n.storageTB).toNumber()},hosts:{...null==t?void 0:t.hosts,maxDowntimeHours:n.maxDowntimeHours.toNumber(),allowRedundantIPs:n.allowRedundantIPs,scoreOverrides:(null==t?void 0:t.hosts.scoreOverrides)||null},wallet:{...null==t?void 0:t.wallet,defragThreshold:n.defragThreshold.toNumber()}}}(n,p.data)}):void 0,[a,s,c,d,h]=await Promise.all([F.put({params:{key:"contractset"},payload:k(n,m.data)}),F.put({params:{key:"uploadpacking"},payload:{...j.data,enabled:n.uploadPackingEnabled}}),F.put({params:{key:"gouging"},payload:{...b.data,maxRPCPrice:(0,u.qN)(n.maxRpcPriceMillion.div(1e6)).toString(),maxStoragePrice:(0,u.qN)(n.maxStoragePriceTBMonth.div((0,o.S5V)(1)).div((0,o.xf5)(1)).div(_(n.minShards,n.totalShards,n.includeRedundancyMaxStoragePrice))).toString(),maxUploadPrice:(0,u.qN)(n.maxUploadPriceTB.div(_(n.minShards,n.totalShards,n.includeRedundancyMaxUploadPrice))).toString(),maxDownloadPrice:(0,u.qN)(n.maxDownloadPriceTB).toString(),maxContractPrice:(0,u.qN)(n.maxContractPrice).toString(),minMaxCollateral:(0,u.qN)(n.minMaxCollateral).toString(),hostBlockHeightLeeway:Math.round(n.hostBlockHeightLeeway.toNumber()),minPriceTableValidity:Math.round((0,o.ort)(n.minPriceTableValidityMinutes.toNumber())),minAccountExpiry:Math.round((0,o.k9c)(n.minAccountExpiryDays.toNumber())),minMaxEphemeralAccountBalance:(0,u.qN)(n.minMaxEphemeralAccountBalance).toString()}}),F.put({params:{key:"redundancy"},payload:{...w.data,minShards:n.minShards.toNumber(),totalShards:n.totalShards.toNumber()}}),F.put({params:{key:N},payload:{...y.data,includeRedundancyMaxStoragePrice:n.includeRedundancyMaxStoragePrice,includeRedundancyMaxUploadPrice:n.includeRedundancyMaxUploadPrice}})]);if(null==i?void 0:i.error)throw Error(i.error);if(a.error)throw Error(a.error);if(s.error)throw Error(s.error);if(c.error)throw Error(c.error);if(d.error)throw Error(d.error);if(h.error)throw Error(h.error);if((0,o.OPV)("Configuration has been saved."),f&&H(n.autopilotContractSet),r){let e=async()=>{await (0,P.gw)(5e3),eh(e=>e.startsWith(l.pz)),await (0,P.gw)(5e3),eh(e=>e.startsWith(l.pz))};e()}await X()}catch(e){(0,o.OHV)(e.message),console.log(e)}},[ed,V,f,p,U,X,H,eh,F,m,j,w,b,y]),em=(0,o.WsO)(eu),ev=(0,i.useMemo)(()=>W.handleSubmit(ep,em),[W,ep,em]),eg=(0,i.useCallback)(()=>{let e=W.getValues(),t=K();if(t)for(let[n,r]of(W.reset(t),Object.entries(e)))W.setValue(n,r,{shouldDirty:!0})},[W,K]),{isUnlocked:ey}=(0,P.Hv)();(0,i.useEffect)(()=>{ey&&"init"!==a.autopilot.status&&X()},[ey,a.autopilot.status]),(0,i.useEffect)(()=>{W.formState.isSubmitting||eg()},[W,V,$]);let eb=Object.entries(W.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length;return{onSubmit:ev,revalidateAndResetFormData:X,form:W,fields:eu,changeCount:eb,canEstimate:ec,estimatedSpendingPerMonth:ed,estimatedSpendingPerTB:ef,redundancyMultiplier:el,storageTB:et,shouldSyncDefaultContractSet:Z,setShouldSyncDefaultContractSet:B,showAdvanced:V,setShowAdvanced:I}}();return(0,r.jsx)(F.Provider,{value:n,children:t})}},13242:function(e,t,n){"use strict";n.d(t,{x:function(){return b},G:function(){return y}});var r=n(52322),i=n(23305),o=n(5632),a=n(9969),s=n(2784),l=n(6391),u=n.n(l),c=n(56860),d=n(88242),f=n(96206),h=n(82459);let p=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{id:t,hostIp:n,hostKey:i}}=e;return(0,r.jsx)(h.F,{id:t,address:n,publicKey:i})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{id:t,isRenewed:n,renewedFrom:o}}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(t),label:"contract ID"}),n&&(0,r.jsx)(i.ua7,{content:"Renewed from",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(d.L6f,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",value:(0,i.I13)(o),label:"contract ID"})]})})]})}},{id:"hostIp",label:"host address",category:"general",render:e=>{let{data:{hostIp:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,type:"ip",label:"host address"})}},{id:"hostKey",label:"host public key",category:"general",render:e=>{let{data:{hostKey:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,label:"host public key"})}},{id:"timeline",label:"timeline",category:"time",render:e=>{let{data:{contractHeightStart:t,contractHeightEnd:n,proofWindowHeightStart:o,proofWindowHeightEnd:a,revisionHeight:s,proofHeight:l},context:{currentHeight:u,contractsTimeRange:c}}=e;return(0,r.jsx)("div",{className:"w-[400px]",children:(0,r.jsx)(i.TaT,{currentHeight:u,contractHeightStart:t,contractHeightEnd:n,proofWindowHeightStart:o,proofWindowHeightEnd:a,proofHeight:l,revisionHeight:s,range:c})})}},{id:"startTime",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{startTime:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:(0,f.rN)(t)})}},{id:"endTime",label:"end date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{endTime:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:(0,f.rN)(t)})}},{id:"size",label:"size",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{size:t}}=e;return(0,r.jsx)(i.m2c,{size:"12",value:t,variant:"value",format:e=>(0,f.vW)(e)})}},{id:"totalCost",label:"total cost",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{totalCost:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.negated()})}},{id:"spendingUploads",label:"uploads spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingUploads:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.negated()})}},{id:"spendingDownloads",label:"downloads spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingDownloads:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.negated()})}},{id:"spendingFundAccount",label:"fund account spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingFundAccount:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.negated()})}}];var m=n(47025),v=n(25573);let g=(0,s.createContext)({}),y=()=>(0,s.useContext)(g);function b(e){let{children:t}=e,n=function(){let e=(0,o.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,a.GP)({config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),l=(0,m.JL)(),d=(0,s.useMemo)(()=>{var e;return(null===(e=l.data)||void 0===e?void 0:e.hosts)||[]},[l.data]),f=(0,v.n)(),h=f.isSynced?f.nodeBlockHeight:f.estimatedBlockHeight,g=(0,s.useMemo)(()=>{var e;if(!r.data)return null;let t=(null===(e=r.data)||void 0===e?void 0:e.map(e=>{var t;let n="fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,r=(0,i.jrD)(h,e.startHeight),o=e.windowStart,a=(0,i.jrD)(h,o);return{id:e.id,contractId:e.id,hostIp:e.hostIP,hostKey:e.hostKey,location:null===(t=d.find(t=>t.public_key===e.hostKey))||void 0===t?void 0:t.location,timeline:r,startTime:r,endTime:a,contractHeightStart:e.startHeight,contractHeightEnd:o,proofWindowHeightStart:e.windowStart,proofWindowHeightEnd:e.windowEnd,proofHeight:e.proofHeight,revisionHeight:e.revisionHeight,isRenewed:n,renewedFrom:e.renewedFrom,totalCost:new(u())(e.totalCost),spendingUploads:new(u())(e.spending.uploads),spendingDownloads:new(u())(e.spending.downloads),spendingFundAccount:new(u())(e.spending.fundAccount),size:new(u())(e.size)}}))||[];return t},[r.data,d,h]),{filters:y,setFilter:b,removeFilter:x,removeLastFilter:w,resetFilters:j}=(0,i.Wdu)(),{configurableColumns:E,enabledColumns:k,sortableColumns:S,toggleColumnVisibility:_,setColumnsVisible:C,setColumnsHidden:O,toggleSort:M,setSortDirection:T,setSortField:A,sortField:P,sortDirection:N,resetDefaultColumnVisibility:R}=(0,i.oy6)("renterd/v0/contracts",{columns:p,columnsDefaultVisible:c.gd,sortOptions:c.Fo,defaultSortField:c.nw}),D=(0,i._4u)({dataset:g,filters:y,sortField:P,sortDirection:N}),L=(0,s.useMemo)(()=>D?D.slice(n,n+t):null,[D,n,t]),{range:F}=(0,s.useMemo)(()=>(0,i.EJC)(h,L||[]),[h,L]),z=(0,s.useMemo)(()=>p.filter(e=>e.fixed||k.includes(e.id)),[k]),V=(0,i.c2j)(D,r.isValidating,r.error,y),I=(0,s.useMemo)(()=>g?g.filter(e=>e.contractHeightStart{a(h)},children:h.label}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{p.push(s._.wallet.view),u()},children:"View wallet transactions"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"View wallet address"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,disabled:!(null===(t=m.data)||void 0===t?void 0:t.address),onSelect:()=>{var e;(null===(e=m.data)||void 0===e?void 0:e.address)&&((0,o.vQq)(m.data.address,"wallet address"),u())},children:"Copy wallet address to clipboard"})]})}var m=n(38617);let v={namespace:"settings",label:"Settings"};function g(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:o}=eT(),{setTheme:s}=(0,m.F)(),{settings:l,setSettings:u,lock:c,currencyOptions:f,setCurrency:h}=(0,a.Hv)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:v,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:v,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{u({siaCentral:!l.siaCentral}),o()},children:(l.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(d.o4,{currentPage:t,commandPage:v,onSelect:()=>{c(),o()},children:"Lock renterd"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("system"),o()},children:"Set theme to system preference"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("dark"),o()},children:"Set theme to dark"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("light"),o()},children:"Set theme to light"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),f.map(e=>{let{id:n,label:i}=e;return(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{h(n),o()},children:"Set currency to ".concat(i)},n)})]})}let y={namespace:"node",label:"Blockchain node"};function b(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:o,closeDialog:a}=eT(),l=(0,c.useRouter)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:y,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:y,onSelect:()=>{i(y)},children:y.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),a()},children:"View peers"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),a()},children:"View transaction pool"})]})}var x=n(17286),w=n(91641);let j={namespace:"configuration",label:"Configuration"};function E(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,c.useRouter)(),{showAdvanced:a}=(0,x.ZR)(),{closeDialog:l}=eT(),{autopilot:u}=(0,w.q)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:j,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:j,onSelect:()=>{i(j)},children:j.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.index),l()},children:"Open configuration"}),"on"===u.status&&(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.storage),l()},children:"Configure storage"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.pricing),l()},children:"Configure pricing"}),a&&(0,r.jsxs)(r.Fragment,{children:["on"===u.status&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.hosts),l()},children:"Configure hosts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.wallet),l()},children:"Configure wallet"})]}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.contracts),l()},children:"Configure contracts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.uploads),l()},children:"Configure uploads"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.redundancy),l()},children:"Configure redundancy"})]})]})}var k=n(93216);let S={namespace:"contracts",label:"Contracts"};function _(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,l=(0,c.useRouter)(),{closeDialog:u}=eT();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(S)},children:S.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:S,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:S,onSelect:()=>{l.push(s._.contracts.index),u()},children:"View contracts"})}),(0,r.jsx)(k.F,{parentPage:S,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}var C=n(13242),O=n(18006);let M={namespace:"hosts",label:"Hosts"};function T(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,l=(0,c.useRouter)(),{closeDialog:u,openDialog:f}=eT();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(M)},children:M.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:M,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:M,onSelect:()=>{l.push(s._.hosts.index),u()},children:"View hosts"})}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:M,onSelect:()=>{f("hostsManageAllowBlock")},children:"Manage filter lists: allowlist + blocklist"}),(0,r.jsx)(O.L,{parentPage:M,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}var A=n(91652),P=n(48528),N=n(88242);function R(e){let{debouncedSearch:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:[(0,r.jsx)(N.e1T,{}),(0,r.jsx)(N.JCW,{}),(0,r.jsx)(N.c_L,{})]}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No files match the query.":"Type a query to get started."})]})}let D={namespace:"files/search",label:"File search",prompt:"Search for files, eg: backups, photo_archive.zip, etc...",empty:R};function L(e){let{debouncedSearch:t,search:n,currentPage:i,beforeSelect:a,afterSelect:s}=e,{activeBucket:l,setActiveDirectory:u}=(0,P.Y)(),c=(null==i?void 0:i.namespace)===D.namespace,h=(0,f.Iy)({disabled:!c,params:{bucket:l||"default",key:t,skip:0,limit:10},config:{swr:{keepPreviousData:!0}}});return c&&h.data?(0,r.jsx)(d.fu,{currentPage:i,commandPage:D,children:h.data.map(e=>{let{name:t}=e,l=function(e,t,n){let r=Math.max(e.length-55,0);if(0===r)return e;let i=F(e),o=F(t),a=i.toLowerCase().indexOf(o.toLowerCase()),s=a+o.length-1,l=0,u=0,c=i.split("/"),d=c.map(e=>{if(l>=r)return u+=e.length,F(e);let t=u,n=u+e.length+1;return ta?(u+=e.length,F(e)):!e.includes(o)&&e.length>3?(u+=e.length,l+=e.length+1,"..."):(u+=e.length,F(e))});return d.reverse().join("/")}(t,n,0),{startIndex:c,endIndex:f}=function(e,t){let n=F(e),r=F(t),i=n.toLowerCase().indexOf(r.toLowerCase()),o=i+r.length;return{endIndex:e.length-i,startIndex:e.length-o}}(l,n);return(0,r.jsx)(d.WD,{commandPage:D,currentPage:i,onSelect:()=>{a(),u(()=>(0,A.gD)(t)),s()},value:t,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,A.IQ)(t)?(0,r.jsx)(N.ROc,{size:16}):(0,r.jsx)(N.c_L,{})}),(0,r.jsxs)(o.xvT,{className:"flex items-center",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",ellipsis:!0,children:l.slice(0,c)}),(0,r.jsx)(o.xvT,{color:"accent",ellipsis:!0,children:l.slice(c,f)}),(0,r.jsx)(o.xvT,{color:"verySubtle",ellipsis:!0,children:l.slice(f)})]})]})},t)})}):null}function F(e){return e.split("").reverse().join("")}let z={namespace:"files",label:"Files"};function V(e){let{search:t,debouncedSearch:n,currentPage:i,parentPage:o,pushPage:a,beforeSelect:l,afterSelect:u}=e,f=(0,c.useRouter)(),{closeDialog:h}=eT();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:i,parentPage:o,commandPage:o,onSelect:()=>{a(z)},children:z.label}),(0,r.jsxs)(d.fu,{currentPage:i,commandPage:z,children:[(0,r.jsx)(d.WD,{currentPage:i,commandPage:z,onSelect:()=>{f.pathname.startsWith(s._.files.index)||f.push(s._.files.index),h(),u()},children:"View files"}),(0,r.jsx)(d.WD,{currentPage:i,commandPage:z,onSelect:()=>{a(D),u()},children:"Search files"})]}),(0,r.jsx)(L,{debouncedSearch:n,search:t,currentPage:i,beforeSelect:l,afterSelect:u})]})}var I=n(19513);function Z(e,t){return e===t}function B(e){return"function"==typeof e?function(){return e}:e}function H(e,t,n){var r,o,a=n&&n.equalityFn||Z,s=(o=(r=(0,i.useState)(B(e)))[1],[r[0],(0,i.useCallback)(function(e){return o(B(e))},[])]),l=s[0],u=s[1],c=function(e,t,n){var r=this,o=(0,i.useRef)(null),a=(0,i.useRef)(0),s=(0,i.useRef)(null),l=(0,i.useRef)([]),u=(0,i.useRef)(),c=(0,i.useRef)(),d=(0,i.useRef)(e),f=(0,i.useRef)(!0);(0,i.useEffect)(function(){d.current=e},[e]);var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,v="maxWait"in n,g=v?Math.max(+n.maxWait||0,t):null;return(0,i.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,i.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,a.current=e,c.current=d.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!f.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||v&&e-a.current>=g},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},b=function e(){var r=Date.now();if(i(r))return y(r);if(f.current){var s=t-(r-o.current);n(e,v?Math.min(s,g-(r-a.current)):s)}},x=function(){var d=Date.now(),h=i(d);if(l.current=[].slice.call(arguments),u.current=r,o.current=d,h){if(!s.current&&f.current)return a.current=o.current,n(b,t),p?e(o.current):c.current;if(v)return n(b,t),e(o.current)}return s.current||n(b,t),c.current};return x.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},x.isPending=function(){return!!s.current},x.flush=function(){return s.current?y(Date.now()):c.current},x},[p,v,t,g,m,h])}((0,i.useCallback)(function(e){return u(e)},[u]),t,n),d=(0,i.useRef)(e);return a(d.current,e)||(c(e),d.current=e),[l,c]}function U(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(N.owP,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}function W(e){let{panel:t}=e,{resetFilters:n}=(0,C.G)(),{resetFilters:a}=(0,I.l)(),{closeDialog:d}=eT(),f=(0,c.useRouter)(),[h,m]=(0,i.useState)(""),[v]=H(h,500),[y,x]=(0,i.useState)([]),w=y[y.length-1],j=0===y.length,k=(0,i.useCallback)(e=>{x(t=>[...t,e])},[x]),S=(0,i.useCallback)(()=>{d()},[d]),O=(0,i.useCallback)(()=>{m("")},[m]),M=(null==w?void 0:w.empty)||U;return(0,r.jsxs)(u.mY,{label:"Command Menu",loop:!0,className:(0,l.cx)(t&&(0,o.z$)()),onKeyDown:e=>{(y.length>0&&"Escape"===e.key||"Backspace"===e.key&&!h)&&(e.preventDefault(),x(e=>e.slice(0,-1)))},children:[w&&(0,r.jsx)(o.__J,{className:"px-2",children:w.label}),(0,r.jsx)(u.mY.Input,{value:h,onValueChange:m,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==w?void 0:w.prompt)||(j?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(M,{search:h,debouncedSearch:v})}),(0,r.jsx)(g,{currentPage:w,pushPage:k}),(0,r.jsx)(V,{debouncedSearch:v,search:h,currentPage:w,pushPage:k,beforeSelect:()=>{S()},afterSelect:()=>{O()}}),(0,r.jsx)(p,{currentPage:w,pushPage:k}),(0,r.jsx)(_,{currentPage:w,pushPage:k,beforeSelect:()=>{S(),n()},afterSelect:()=>{f.pathname.startsWith(s._.contracts.index)||f.push(s._.contracts.index),O()}}),(0,r.jsx)(T,{currentPage:w,pushPage:k,beforeSelect:()=>{S(),a()},afterSelect:()=>{f.pathname.startsWith(s._.hosts.index)||f.push(s._.hosts.index),O()}}),(0,r.jsx)(E,{currentPage:w,pushPage:k}),(0,r.jsx)(b,{currentPage:w,pushPage:k})]})]})}function q(e){let{open:t,onOpenChange:n,setOpen:l}=e,{isUnlocked:u}=(0,a.Hv)(),{isConnected:c}=(0,o.Y97)({route:s.h});return(0,i.useEffect)(()=>{if(!u||!c)return;let e=e=>{"k"===e.key&&e.metaKey&&l()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[u,c,l]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.VqE,{open:t,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(W,{})})})}var $=n(9156),K=n(24511);let Y={name:""},G=K.Ry().shape({name:K.Z_().required("Required")});function X(e){let{trigger:t,open:n,onOpenChange:i}=e,{activeDirectoryPath:a}=(0,P.Y)(),s=(0,f.ZM)(),l=(0,$.TA)({initialValues:Y,validationSchema:G,onSubmit:async(e,t)=>{let n=await s.put({params:(0,A.W0)(a+e.name+"/"),payload:null});n.error?(0,o.OHV)(n.error):((0,o.RFt)("Directory created."),t.resetForm(),i(!1))}});return(0,r.jsx)(o.VqE,{trigger:t,title:"New directory",open:n,onOpenChange:e=>{e||l.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsx)("form",{onSubmit:l.handleSubmit,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.cB7,{formik:l,title:"Name",name:"name",placeholder:"photos, backups, etc",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(o.IKw,{formik:l,size:"medium",children:"Create"})]})})})})}var J=n(33571);let Q={publicKey:""},ee=K.Ry().shape({publicKey:K.Z_().required("Required")});function et(){var e;let t=(0,f.s2)({config:{swr:{refreshInterval:6e4}}}),n=(0,J.I)(),a=(0,$.TA)({initialValues:Q,validationSchema:ee,onSubmit:async(e,t)=>{let r=await n([e.publicKey],[]);r?t.resetForm():t.setStatus({error:"Error updating allowlist"})}});(0,i.useEffect)(()=>{a.setStatus(void 0)},[a.values]);let s=a.values.publicKey,l=(null===(e=t.data)||void 0===e?void 0:e.filter(e=>!a.values.publicKey||e.includes(a.values.publicKey)))||[];return(0,r.jsxs)("form",{onSubmit:a.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(o.S$c,{title:"Public key",name:"publicKey",formik:a,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.KZS,{name:"publicKey",formik:a,placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(o.IKw,{formik:a,size:"small",variant:"amber",withStatusError:!1,children:"Allow public key"})]})}),(0,r.jsxs)(o.s_4,{className:"p-2 flex gap-2 items-center",children:[(0,r.jsx)(o.xvT,{children:(0,r.jsx)(N.qdM,{})}),(0,r.jsxs)(o.nvN,{size:"12",children:[(0,r.jsx)(o.xvT,{weight:"semibold",children:"Caution:"})," Please note that because the allowlist is inclusive, as soon as there are more than zero entries, contracting will be limited to only the hosts explicitly on the allowlist - all other existing contracts will immediately abort."]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden !-m-2",children:l.length?(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"p-2",children:(0,r.jsx)(o.hmz,{options:l.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,o.vQq)(e,"allowed public key"),onRemove:e=>n([],[e])})})}):s?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.Hb6,{})}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["No existing entries match ",a.values.publicKey,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.TtX,{})}),(0,r.jsx)(o.xvT,{color:"subtle",children:"The allowlist is empty."})]})})]})}var en=n(98358);let er={address:""},ei=["45.148.30.56","51.158.108.244","siacentral.ddnsfree.com","siacentral.mooo.com"],eo=K.Ry().shape({address:K.Z_().required("Required").test("address","Invalid hostname or IP address",e=>(0,o.Ztc)().test(e||""))});function ea(){let e=(0,f.uf)({config:{swr:{refreshInterval:6e4}}}),t=(0,en.l)(),n=(0,$.TA)({initialValues:er,validationSchema:eo,onSubmit:async(e,n)=>{let r=await t([e.address],[]);r?n.resetForm():n.setStatus({error:"Error updating blocklist"})}});(0,i.useEffect)(()=>{n.setStatus(void 0)},[n.values]);let a=n.values.address,s=(0,i.useMemo)(()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.filter(e=>!n.values.address||e.includes(n.values.address)))||[]},[e.data,n.values.address]),{dataset:l}=(0,C.G)(),u=(0,i.useMemo)(()=>ei.filter(t=>{var n;return!(null===(n=e.data)||void 0===n?void 0:n.find(e=>e===t))}).map(e=>({address:e,contractCount:null==l?void 0:l.filter(t=>t.hostIp===e).length})),[e.data,l]);return(0,r.jsxs)("form",{onSubmit:n.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(o.S$c,{title:"Address",name:"address",formik:n,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.KZS,{name:"address",formik:n,placeholder:"eg: 51.258.128.144 or spam.ddnsfree.com",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(o.IKw,{formik:n,size:"small",variant:"red",withStatusError:!1,children:"Block address"})]})}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden !-m-2",children:(0,r.jsx)(o.xrM,{children:(0,r.jsxs)("div",{className:"p-2",children:[!!u.length&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex gap-1 flex-wrap",children:[(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"Suggestions:"}),u.map((e,t)=>{let{address:i,contractCount:a}=e;return(0,r.jsxs)(o.xvT,{size:"12",underline:"hover",className:"cursor-pointer",onClick:()=>n.setFieldValue("address",i),children:[i,!!a&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(o.ua7,{content:"".concat(a," active contracts"),children:(0,r.jsxs)(o.xvT,{color:"red",children:["(",a,")"]})})]}),t!==u.length-1&&(0,r.jsx)(o.xvT,{children:","})]},i)})]}),(0,r.jsx)(o.Z0O,{className:"my-2"})]}),s.length?(0,r.jsx)(o.hmz,{options:s.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,o.vQq)(e,"blocked address"),onRemove:e=>t([],[e])}):a?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.Hb6,{})}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["No existing entries match ",n.values.address,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.TtX,{})}),(0,r.jsx)(o.xvT,{color:"subtle",children:"The blocklist is empty."})]})]})})})]})}function es(e){let{trigger:t,open:n,onOpenChange:i}=e;return(0,r.jsx)(o.VqE,{trigger:t,title:"Manage host blocklist and allowlist",open:n,onOpenChange:e=>{i(e)},contentVariants:{className:"w-[500px]"},children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"12",children:"The allowlist and blocklist limit the set of hosts that renterd will consider when forming contracts. The blocklist excludes hosts with matching addresses whereas the allowlist restricts consideration to hosts with a matching public key. Each list's filtering is enabled and applied when it contains more than zero entries."}),(0,r.jsxs)(o.mQc,{defaultValue:"blocklist",children:[(0,r.jsxs)(o.drW,{"aria-label":"blocklist and allowlist tabs",children:[(0,r.jsx)(o.SPt,{value:"blocklist",children:"Block"}),(0,r.jsx)(o.SPt,{value:"allowlist",children:"Allow"})]}),(0,r.jsx)(o.nUL,{value:"blocklist",children:(0,r.jsx)(ea,{})}),(0,r.jsx)(o.nUL,{value:"allowlist",children:(0,r.jsx)(et,{})})]})]})})}var el=n(2320),eu=n(31781),ec=n(24801);function ed(e){let{panel:t}=e,{resetFilters:n}=(0,C.G)(),{closeDialog:a}=eT(),d=(0,c.useRouter)(),[f,h]=(0,i.useState)(""),[p]=H(f,500),m=(0,i.useCallback)(()=>{a()},[a]);return(0,r.jsxs)(u.mY,{label:"Files search",shouldFilter:!1,className:(0,l.cx)(t&&(0,o.z$)()),children:[(0,r.jsx)(o.__J,{className:"px-2",children:"File search"}),(0,r.jsx)(u.mY.Input,{value:f,onValueChange:h,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:D.prompt}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsx)("div",{className:"overflow-hidden",children:(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(R,{search:f,debouncedSearch:p})}),(0,r.jsx)(L,{debouncedSearch:p,search:f,currentPage:D,beforeSelect:()=>{m(),n()},afterSelect:()=>{d.pathname.startsWith(s._.files.index)||d.push(s._.files.index)}})]})})]})}function ef(e){let{open:t,onOpenChange:n}=e;return(0,r.jsx)(o.VqE,{open:t,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(ed,{})})}var eh=n(6391),ep=n.n(eh);function em(){let{dialog:e,openDialog:t,closeDialog:n}=eT(),a=(0,f.Tu)(),s=(0,f.gU)(),l=(0,f.cg)(),u=(0,f.ys)(),c=(0,f.aO)(),d=(0,i.useCallback)(async e=>{let{sc:t,address:n}=e,r=await s.post({payload:{amount:t.toString(),transaction:{siacoinOutputs:[{address:n,value:t.toString()}]}}});if(r.error)return{error:r.error};let i=await l.post({payload:{transaction:r.data.transaction,toSign:r.data.toSign,coveredFields:{WholeTransaction:!0}}});if(i.error)return c.post({payload:r.data.transaction}),{error:i.error};let o=await u.post({payload:[i.data]});return o.error?(c.post({payload:i.data}),{error:o.error}):{}},[s,l,u,c]);return(0,r.jsx)(o.weF,{balance:a.data?new(ep())(a.data.spendable):void 0,send:d,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}function ev(){let{id:e,dialog:t,openDialog:n,closeDialog:a}=eT(),s=(0,f.Qq)({params:{},config:{swr:{revalidateOnFocus:!1,refreshInterval:6e4}},disabled:"transactionDetails"!==t}),l=(0,i.useMemo)(()=>{var t;let n=null===(t=s.data)||void 0===t?void 0:t.find(t=>t.id===e);return n?{txType:(0,o.leQ)(n.raw),inflow:n.inflow,outflow:n.outflow,timestamp:n.timestamp,raw:n.raw}:null},[s,e]);return(0,r.jsx)(o.mPE,{id:e,transaction:l,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):a()})}var eg=n(82459);function ey(e){let{id:t,contentProps:n,buttonProps:i}=e,a=(0,f.cq)({params:{id:t}});return a.data?(0,r.jsx)(eg.F,{id:t,address:a.data.hostIP,publicKey:a.data.hostKey,contentProps:n,buttonProps:i}):(0,r.jsx)(o.zxk,{variant:"ghost",icon:"hover",state:"waiting",...i,children:(0,r.jsx)(N.iG7,{})})}var eb=n(848);function ex(e){let{open:t,onOpenChange:n}=e,a=(0,f.Z7)(),s=(0,f.Uy)(),l=(0,i.useCallback)(async e=>{let t=await s.post({payload:[e]});t.error?(0,o.OHV)("Error dismissing alert."):(0,o.OPV)("Alert has been dismissed.")},[s]),u=(0,i.useCallback)(async(e,t)=>{if(!a.data)return;let n=await s.post({payload:e});n.error?(0,o.OHV)(t?"Error dismissing all ".concat(t," alerts."):"Error dismissing all alerts."):(0,o.OPV)(t?"All ".concat(t," alerts have been dismissed."):"All alerts have been dismissed.")},[s,a.data]);return(0,r.jsx)(o.hcY,{open:t,onOpenChange:e=>{n(e)},alerts:a,dataFieldOrder:ew,dataFields:ej,dismissMany:u,dismissOne:l})}let ew=["hint","error","origin","hostKey","contractID","accountID","slabKey","additions","removals"],ej={contractID:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(o.PF9,{value:t,menu:(0,r.jsx)(ey,{id:t,contentProps:{align:"end"},buttonProps:{size:"none"}})})]})}},accountID:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"account ID"}),(0,r.jsx)(o.XxW,{value:t,label:"account ID"})]})}},hostKey:{render:function(e){let{value:t}=e,n=(0,f.$)({params:{hostKey:t}});return n.data?(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"host key"}),(0,r.jsx)(o.PF9,{value:t,menu:(0,r.jsx)(eb.G,{publicKey:n.data.publicKey,address:n.data.netAddress,contentProps:{align:"end"},buttonProps:{size:"none"}})})]}):null}},slabKey:{render:function(e){let{value:t}=e,{setActiveDirectory:n}=(0,P.Y)(),{closeDialog:i}=eT(),a=(0,f.og)({params:{key:t}});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"key"}),(0,r.jsx)(o.XxW,{value:t})]}),a.data&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mt-2 mb-2",children:a.data.map(e=>(0,r.jsx)(o.rUS,{color:"accent",underline:"hover",size:"12",noWrap:!0,onClick:()=>{n(()=>(0,A.gD)(e.name)),i()},children:e.name},e.name))})})]})}},additions:{render:function(e){let{value:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"additions"})}),t&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-wrap gap-2 mb-2",children:t.map(e=>(0,r.jsx)("div",{children:(0,r.jsx)(o.XxW,{value:e,label:"contract ID"})},e))})})]})}},removals:{render:function(e){let{value:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"removals"})}),t&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mb-2",children:Object.entries(t).map(e=>{let[t,n]=e;return(0,r.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,r.jsx)(o.XxW,{value:t,label:"contract ID"}),(0,r.jsx)(o.ua7,{content:n,children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:n})})]},t)})})})]})}},error:{render:e=>{let{value:t}=e;return(0,r.jsx)("div",{className:"flex flex-col w-full gap-2",children:(0,r.jsx)(o.UQy,{type:"single",children:(0,r.jsxs)(o.Qdk,{value:"error",variant:"ghost",children:[(0,r.jsx)(o.o48,{children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"error"})}),(0,r.jsx)(o.vF,{children:(0,r.jsx)(o.xvT,{color:"contrast",children:t})})]})})})}},hint:{render:e=>{let{value:t}=e;return(0,r.jsx)("div",{className:"flex flex-col w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"contrast",children:t})})}},allowance:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"allowance"}),(0,r.jsx)(o.YKL,{variant:"value",value:new(ep())(t)})]})}},balance:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"balance"}),(0,r.jsx)(o.YKL,{variant:"value",value:new(ep())(t)})]})}},address:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"address"}),(0,r.jsx)(o.XxW,{value:t,type:"address"})]})}},account:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"account"}),(0,r.jsx)(o.XxW,{value:t})]})}}};var eE=n(54155),ek=n(63955);let eS={name:""};function e_(e){let{trigger:t,open:n,onOpenChange:a}=e,{id:s,closeDialog:l}=eT(),u=(0,f.sg)(),c=(0,ek.cI)({mode:"all",defaultValues:eS}),d=(0,i.useCallback)(async e=>{let t=await u.delete({params:{name:e.name}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Bucket permanently deleted."),c.reset(),l())},[c,u,l]),h=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:s,validation:{required:"required",validate:{notDefault:()=>"default"!==s||"cannot delete default bucket",equals:e=>e===s||"bucket name does not match"}}}}),[s]),p=(0,o.WsO)(h);return(0,r.jsx)(o.VqE,{title:"Delete Bucket",trigger:t,open:n,onOpenChange:e=>{e||c.reset(eS),a(e)},contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(d,p),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Before you delete a bucket you must ensure that it is empty. Re-enter the bucket name to confirm the removal."}),(0,r.jsx)("div",{children:(0,r.jsx)(o.EKh,{color:"gray",children:s})}),(0,r.jsx)(o.yEL,{name:"name",form:c,fields:h,autoComplete:"off"}),(0,r.jsx)(o.ZqQ,{variant:"red",form:c,children:"Delete"})]})})}let eC={name:""};function eO(e){let{trigger:t,open:n,onOpenChange:a}=e,{closeDialog:s}=eT(),l=(0,f.oV)(),u=(0,ek.cI)({mode:"all",defaultValues:eC}),c=(0,i.useCallback)(async e=>{let t=await l.post({payload:{name:e.name}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Bucket created."),u.reset(),s())},[u,l,s]),d=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:"photos, backups, etc",validation:{required:"required"}}}),[]),h=(0,o.WsO)(d);return(0,r.jsx)(o.VqE,{title:"Create Bucket",trigger:t,open:n,onOpenChange:e=>{e||u.reset(eC),a(e)},contentVariants:{className:"w-[400px]"},onSubmit:u.handleSubmit(c,h),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"A bucket is an isolated collection of files."}),(0,r.jsx)(o.yEL,{name:"name",form:u,fields:d,autoComplete:"off"}),(0,r.jsx)(o.ZqQ,{form:u,children:"Create bucket"})]})})}let eM=(0,i.createContext)({}),eT=()=>(0,i.useContext)(eM);function eA(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(),o=(0,i.useCallback)((e,n)=>{t(e),r(n)},[t,r]),[a,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),s(void 0)},[t,r,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:o,confirm:a,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(eM.Provider,{value:n,children:t})}function eP(){var e;let{dialog:t,openDialog:n,onOpenChange:i,closeDialog:a,confirm:s,openConfirmDialog:l}=eT(),u=(0,f.Wl)(),c=(0,f.Tu)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(q,{open:"cmdk"===t,onOpenChange:i,setOpen:()=>n("cmdk")}),(0,r.jsx)(o.DLL,{open:"settings"===t,onOpenChange:i}),(0,r.jsx)(em,{}),(0,r.jsx)(o.YNn,{address:null===(e=c.data)||void 0===e?void 0:e.address,isValidating:c.isValidating,open:"addressDetails"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ev,{}),(0,r.jsx)(o.D_D,{open:"connectPeer"===t,connect:e=>u.post({payload:e}),onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eO,{open:"filesCreateBucket"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(e_,{open:"filesDeleteBucket"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(X,{open:"filesCreateDirectory"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ef,{open:"filesSearch"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(es,{open:"hostsManageAllowBlock"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(el.g,{open:"hostsFilterAddress"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eE.a,{open:"hostsFilterPublicKey"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eu.p,{open:"contractsFilterAddress"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ec.C,{open:"contractsFilterPublicKey"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ex,{open:"alerts"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(o.QHy,{open:"confirm"===t,params:s,onOpenChange:e=>e?l(s):a()})]})}},48528:function(e,t,n){"use strict";n.d(t,{Z:function(){return L},Y:function(){return D}});var r=n(52322),i=n(23305),o=n(5632),a=n(2784),s=n(88242),l=n(96206),u=n(86450),c=n(9969),d=n(91652);function f(e){let{path:t}=e,n=(0,c.wy)({params:(0,d.W0)(t),config:{swr:{dedupingInterval:5e3}}});return(0,r.jsxs)(i.Xiv,{disabled:!n.data,onSelect:()=>{n.data&&(0,i.vQq)(JSON.stringify(n.data.object,null,2),"object metadata")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy metadata"]})}function h(e){let{path:t}=e,{downloadFiles:n,getFileUrl:o}=D(),l=function(){let{openConfirmDialog:e}=(0,u.Rh)(),t=(0,c.xw)();return(0,a.useCallback)(n=>e({title:"Delete file",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to delete the following file:"}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",className:"break-words",children:n})]}),onConfirm:async()=>{let e=await t.delete({params:(0,d.W0)(n)});e.error&&(0,i.OHV)("Error deleting file."),(0,i.OPV)("Successfully deleted file.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.c_L,{})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:async()=>{n([t])},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.vzB,{})}),"Download file"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>l(t),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete file"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(o(t,!1),"file URL")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy URL"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.E5z)(o(t,!0),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(i.xvT,{children:"Copied authenticated file URL to clipboard."}),(0,r.jsxs)(i.xvT,{children:["The authenticated URL contains the ",(0,r.jsx)(i.EKh,{children:"renterd"})," ","password, be careful when pasting or sharing the URL."]})]}),{icon:(0,r.jsx)("div",{className:"!flex-none w-5",children:(0,r.jsx)(s.qdM,{className:"w-5 text-amber-600"})}),duration:1e4,className:"!max-w-[1200px]"})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy authenticated URL"]}),(0,r.jsx)(f,{path:t})]})}function p(e){let{path:t,size:n}=e,o=function(){let{openConfirmDialog:e}=(0,u.Rh)(),t=(0,c.xw)();return(0,a.useCallback)((n,o)=>e({title:"Delete directory",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)(i.nvN,{size:"14",children:["Are you sure you would like to delete the following directory which contains ",(0,l.vW)(o)," of data:"]}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",className:"break-words",children:n})]}),onConfirm:async()=>{let e=await t.delete({params:{...(0,d.W0)(n),batch:!0}});e.error&&(0,i.OHV)("Error deleting directory."),(0,i.OPV)("Successfully deleted directory.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.ROc,{size:16})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{o(t,n)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete directory"]})]})}var m=n(6391),v=n.n(m),g=n(82439),y=n(82851),b=n(829),x=n.n(b);function w(e){var t,n,o;let{path:a,isUploading:s,type:l,health:u,size:f}=e,h="directory"===l,p=(0,c.wy)({disabled:s||h,params:(0,d.W0)(a),config:{swr:{dedupingInterval:5e3}}}),{displayHealth:m,label:v}=(0,g.B)({health:u,size:f,isDirectory:h});if(p.isValidating)return(0,r.jsx)(j,{displayHealth:m,label:v,children:(0,r.jsx)("div",{className:"flex justify-center my-2",children:(0,r.jsx)(i.xgg,{})})});if(!(null===(t=p.data)||void 0===t?void 0:t.object))return(0,r.jsx)(j,{displayHealth:m,label:v,children:(0,r.jsx)(i.xvT,{size:"12",children:"Error fetching slab metadata."})});let y=x()(p.data.object.slabs.map(e=>({...e.slab,contractSetShards:function(e){let{totalShards:t,minShards:n,health:r}=e,i=Math.ceil(r*(t-n)),o=i+n;return o<=0?0:o>t?t:o}({totalShards:e.slab.shards.length,minShards:e.slab.minShards,health:e.slab.health})})),"contractSetShards"),{partialSlab:b}=p.data.object;return(0,r.jsx)(j,{className:y.length>15?"h-[300px]":"",displayHealth:m,label:v,minShards:b?b.minShards:null===(n=y[0])||void 0===n?void 0:n.minShards,totalShards:b?b.totalShards:null===(o=y[0])||void 0===o?void 0:o.shards.length,children:b?(0,r.jsx)(i.xvT,{size:"12",color:"verySubtle",className:"flex items-center justify-center my-2",font:"mono",children:"partial slab"}):y.map(e=>(0,r.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",className:"flex items-center",font:"mono",children:["Slab ",e.key.replace("key:","").slice(0,4),":"]}),(0,r.jsxs)(i.xvT,{size:"12",className:"flex items-center",children:[e.contractSetShards,"/",e.shards.length]})]},e.key))})}function j(e){let{className:t,displayHealth:n,label:o,children:a,minShards:s,totalShards:l}=e;return(0,r.jsxs)("div",{className:(0,y.cx)("z-10 flex flex-col pb-1 -mx-1 overflow-hidden",t),children:[(0,r.jsxs)("div",{className:"flex justify-between gap-2 pt-0.5 pb-px px-2",children:[(0,r.jsx)(i.xvT,{size:"12",children:o}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*n).toFixed(0),"%"]})]}),s&&l?(0,r.jsxs)("div",{className:"flex justify-between gap-2 pt-0.5 pb-px px-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:"redundancy"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[s," of ",l]})]}):null,(0,r.jsx)("div",{className:"px-2",children:(0,r.jsx)(i.Z0O,{className:"w-full my-1"})}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"px-2",children:a})})})]})}function E(e){let{name:t,isUploading:n,type:o,health:a,size:s}=e,l="directory"===o,{displayHealth:u,label:c,color:d,icon:f}=(0,g.B)({health:a,size:s,isDirectory:l});return l?".."===t?null:(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsx)(i.xvT,{color:d,className:"flex cursor-pointer",children:f}),children:(0,r.jsx)("div",{className:"z-10 flex flex-col -mx-1 overflow-hidden",children:(0,r.jsxs)("div",{className:"flex justify-between gap-2 py-0.5 px-2",children:[(0,r.jsx)(i.xvT,{size:"12",children:c}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*u).toFixed(0),"%"]})]})})}):n?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsx)(i.xvT,{color:d,className:"flex cursor-pointer",children:f}),children:(0,r.jsx)(w,{...e})})}function k(e){let{name:t}=e,{openDialog:n}=(0,u.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.fi8,{size:16})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{disabled:"default"===t,onSelect:()=>{n("filesDeleteBucket",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete bucket"]})]})}n(65680);let S=[{id:"type",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-2 [&+*]:!pl-0",render:function(e){let{data:{isUploading:t,type:n,name:o,path:a,size:l}}=e,{setActiveDirectory:u}=D();return t?(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(s.c_L,{})}):".."===o?(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",onClick:e=>{e.stopPropagation(),u(e=>e.slice(0,-1))},children:(0,r.jsx)(s.ROc,{size:16})}):"bucket"===n?(0,r.jsx)(k,{name:o}):"directory"===n?(0,r.jsx)(p,{path:a,size:l}):(0,r.jsx)(h,{path:a})}},{id:"name",label:"name",category:"general",contentClassName:"max-w-[600px]",render:function(e){let{data:{name:t,type:n}}=e,{setActiveDirectory:o}=D();return"bucket"===n?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(()=>[t])},children:t}):"directory"===n?".."===t?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(e=>e.slice(0,-1))},children:t}):(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(e=>e.concat(t.slice(0,-1)))},children:t}):(0,r.jsx)(i.xvT,{ellipsis:!0,weight:"semibold",children:t})}},{id:"size",label:"size",contentClassName:"justify-end",render:function(e){let{data:{type:t,name:n,size:o,isUploading:a}}=e;return"bucket"===t?null:a?(0,r.jsx)(i.xgg,{}):".."===n?null:(0,r.jsx)(i.m2c,{size:"12",value:new(v())(o),variant:"value",color:"subtle",format:e=>(0,l.vW)(e.toNumber())})}},{id:"health",label:"health",contentClassName:"justify-center",render:function(e){let{data:t}=e;return"bucket"===t.type?null:(0,r.jsx)(E,{...t})}}];var _=n(81471),C=n(12436),O=n.n(C),M=n(2850),T=n(28460),A=n.n(T),P=n(79381),N=n(13242);let R=(0,a.createContext)({}),D=()=>(0,a.useContext)(R);function L(e){let{children:t}=e,n=function(){let e=(0,o.useRouter)(),t=Number(e.query.limit||20),n=Number(e.query.offset||0),r=(0,a.useMemo)(()=>(e.query.path||[]).map(decodeURIComponent),[e.query.path]),s=(0,a.useMemo)(()=>r[0],[r]),l=(0,a.useMemo)(()=>(0,d.rd)(r)+"/",[r]),u=(0,a.useCallback)(t=>{let n=t(r);e.push("/files/"+n.map(encodeURIComponent).join("/"))},[e,r]),{uploadFiles:f,uploadsList:h,uploadCancel:p}=function(e){let{activeDirectoryPath:t}=e,n=(0,c.ZM)(),[r,o]=(0,a.useState)({}),s=(0,a.useCallback)(e=>{o(t=>({...t,[e.path]:{id:e.path,path:e.path,bucket:e.bucket,name:e.name,size:e.size,loaded:e.loaded,isUploading:!0,controller:e.controller,type:"file"}}))},[o]),l=(0,a.useCallback)(e=>{o(t=>t[e.path]?{...t,[e.path]:{...t[e.path],path:e.path,loaded:e.loaded,size:e.size}}:t)},[o]),u=(0,a.useCallback)(e=>{o(t=>(delete t[e],{...t}))},[o]),f=(0,a.useCallback)(e=>{e.controller.abort()},[]),h=async e=>{e.forEach(async e=>{let o=e.name,a=(0,d.pC)(t,o),c=(0,d.ru)(a);if(r[a]){(0,i.OHV)("Already uploading file: ".concat(a));return}let f=new AbortController,h=O()(e=>l({path:a,loaded:e.loaded,size:e.total}),2e3);s({path:a,name:o,bucket:c,loaded:0,size:1,controller:f});let p=await n.put({params:(0,d.W0)(a),payload:e,config:{axios:{onUploadProgress:h,signal:f.signal}}});p.error?("canceled"===p.error?(0,i.RFt)("File upload canceled."):(0,i.OHV)(p.error),u(a)):(u(a),(0,i.OPV)("Upload complete: ".concat(o)))})},p=(0,a.useMemo)(()=>Object.entries(r).map(e=>e[1]),[r]);return{uploadFiles:h,uploadsList:p,uploadCancel:f}}({activeDirectoryPath:l}),{downloadFiles:m,downloadsList:v,getFileUrl:g,downloadCancel:y}=function(){let e=(0,c.p$)(),[t,n]=(0,a.useState)({}),r=(0,a.useCallback)(e=>{n(t=>({...t,[e.path]:{id:e.path,path:e.path,bucket:e.bucket,name:e.name,size:e.size,loaded:e.loaded,isUploading:!1,controller:e.controller,type:"file"}}))},[n]),o=(0,a.useCallback)(e=>{n(t=>t[e.path]?{...t,[e.path]:{...t[e.path],path:e.path,loaded:e.loaded,size:e.size}}:t)},[n]),s=(0,a.useCallback)(e=>{n(t=>(delete t[e],{...t}))},[n]),l=(0,a.useCallback)(e=>{e.controller.abort()},[]),u=async n=>{n.forEach(async n=>{let a=!1,l=(0,d.ru)(n),u=(0,d.vt)(n);if(t[n]){(0,i.OHV)("Already downloading file: ".concat(n));return}let c=new AbortController,f=O()(e=>{a||o({path:n,loaded:e.loaded,size:e.total})},2e3);r({path:n,name:u,bucket:l,loaded:0,size:1,controller:c});let h=await e.get(u,{params:(0,d.W0)(n),config:{axios:{onDownloadProgress:f,signal:c.signal}}});a=!0,h.error&&("canceled"===h.error?(0,i.RFt)("File download canceled."):(0,i.OHV)(h.error)),s(n)})},f=(0,a.useMemo)(()=>Object.entries(t).map(e=>e[1]),[t]),{settings:h}=(0,M.Hv)(),p=(0,a.useCallback)((e,t)=>{let{bucket:n,key:r}=(0,d.W0)(e),i="/worker/objects/".concat(r,"?bucket=").concat(n),o=h.api||location.origin,a=o.startsWith("https")?"https":"http",s=o.replace("https://","").replace("http://","");return t?"".concat(a,"://:").concat(h.password,"@").concat(s,"/api").concat(i):"".concat(a,"://").concat(s,"/api").concat(i)},[h]);return{downloadFiles:u,downloadsList:f,getFileUrl:p,downloadCancel:l}}(),{response:b,dataset:w}=function(e){let{activeDirectoryPath:t,uploadsList:n}=e,r=(0,c.B$)(),o=(0,d.ru)(t),a=(0,c.Jv)({disabled:!o,params:(0,d.W0)(t),config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),{dataset:s}=(0,N.G)(),l=(0,P.ZP)(a.isValidating||r.isValidating?null:[a.data,n,s,r.data,o,t],()=>{var e,i;let s={};o?a.data&&(null===(i=a.data.entries)||void 0===i||i.forEach(e=>{let{name:t,size:n,health:r}=e,i=(0,d.M7)(o,t);s[i]={id:i,path:i,bucket:o,size:n,health:r,name:(0,d.vt)(t),type:(0,d.IQ)(t)?"directory":"file"}}),n.filter(e=>{let{path:n,name:r}=e;return n===(0,d.pC)(t,r)}).forEach(e=>{s[e.path]=e})):null===(e=r.data)||void 0===e||e.forEach(e=>{let{name:t}=e,n=(0,d.wv)(t,"");s[t]={id:n,path:n,bucket:t,size:0,health:0,name:t,type:"bucket"}});let l=x()(A()(s).map(e=>e[1]),"path");return l},{keepPreviousData:!0});return{response:a,dataset:l.data}}({activeDirectoryPath:l,uploadsList:h}),{configurableColumns:j,enabledColumns:E,sortableColumns:k,toggleColumnVisibility:C,setColumnsVisible:T,setColumnsHidden:R,toggleSort:D,setSortDirection:L,setSortField:F,sortField:z,sortDirection:V,resetDefaultColumnVisibility:I}=(0,i.oy6)("renterd/v0/objects",{columns:S,columnsDefaultVisible:_.gd,sortOptions:_.Fo,defaultSortField:_.nw}),{filters:Z,setFilter:B,removeFilter:H,removeLastFilter:U,resetFilters:W}=(0,i.Wdu)(),q=(0,i._4u)({dataset:w,filters:Z,sortField:z,sortDirection:V}),$=(null==q?void 0:q.length)||0,K=(0,a.useMemo)(()=>q?r.length>0&&q.length>0?[{id:"..",name:"..",path:"..",type:"directory"},...q]:q:null,[q]),Y=(0,a.useMemo)(()=>S.filter(e=>e.fixed||E.includes(e.id)),[E]),G=(0,i.c2j)(q,b.isValidating,b.error,Z),X=0===r.length,J=1===r.length,Q=r.length>0;return{isViewingBuckets:X,isViewingABucket:Q,isViewingRootOfABucket:J,activeBucket:s,activeDirectory:r,setActiveDirectory:u,activeDirectoryPath:l,dataState:G,limit:t,offset:n,datasetPage:K,pageCount:$,datasetCount:(null==q?void 0:q.length)||0,columns:Y,uploadFiles:f,uploadsList:h,uploadCancel:p,downloadFiles:m,downloadsList:v,downloadCancel:y,configurableColumns:j,enabledColumns:E,sortableColumns:k,toggleColumnVisibility:C,setColumnsVisible:T,setColumnsHidden:R,toggleSort:D,setSortDirection:L,setSortField:F,sortField:z,filters:Z,setFilter:B,removeFilter:H,removeLastFilter:U,resetFilters:W,sortDirection:V,resetDefaultColumnVisibility:I,getFileUrl:g}}();return(0,r.jsx)(R.Provider,{value:n,children:t})}},91652:function(e,t,n){"use strict";function r(e,t){let n=t.startsWith("/")?t.slice(1):t;return e+n}function i(e,t){let n=r(e,t);return n.endsWith("/")?n:n+"/"}function o(e,t){return"".concat(e).concat(t)}function a(e){return e.split("/")[0]}function s(e){return{bucket:a(e),key:(function(e){let t=e.split("/").slice(1).join("/");return"/".concat(t)})(e).slice(1).split("/").map(encodeURIComponent).join("/")}}function l(e){let t=e.split("/");return e.endsWith("/")?"".concat(t[t.length-2],"/"):t[t.length-1]}function u(e){return e.endsWith("/")}function c(e){return u(e)?e.slice(0,-1).split("/"):e.split("/").slice(0,-1)}function d(e){return e.join("/")}n.d(t,{IQ:function(){return u},M7:function(){return o},W0:function(){return s},gD:function(){return c},pC:function(){return r},rd:function(){return d},ru:function(){return a},vt:function(){return l},wv:function(){return i}})},81471:function(e,t,n){"use strict";n.d(t,{Fo:function(){return o},gd:function(){return r},nw:function(){return i}});let r=["type","name","size","health"],i="name",o=[{id:"name",label:"name",category:"general"}]},19513:function(e,t,n){"use strict";n.d(t,{x:function(){return el},l:function(){return es}});var r,i,o=n(52322),a=n(23305),s=n(9969),l=n(2784);let u=["allow","netAddress","publicKey","lastScan","knownSince","totalScans","uptime","hasContract","ap_usable","ap_scoreOverall"];var c=n(5632),d=n(88242),f=n(96206),h=n(19785),p=n(66700),m=n(88811);function v(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function g(e,t){return(0,h.Z)(2,arguments),function(e,t){(0,h.Z)(2,arguments);var n=(0,p.Z)(e).getTime(),r=v(t);return new Date(n+r)}(e,-v(t))}function y(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}function b(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=y(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=y(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function x(e,t){(0,h.Z)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:v(i),a=null==n.weekStartsOn?o:v(n.weekStartsOn);if(!(a>=0&&a<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=(0,p.Z)(e),l=s.getUTCDay();return s.setUTCDate(s.getUTCDate()-((l=1&&l<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(r+1,0,l),u.setUTCHours(0,0,0,0);var c=x(u,t),d=new Date(0);d.setUTCFullYear(r,0,l),d.setUTCHours(0,0,0,0);var f=x(d,t);return n.getTime()>=c.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function j(e,t){for(var n=Math.abs(e).toString();n.length0?n:1-n;return j("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):j(n+1,2)},d:function(e,t){return j(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return j(e.getUTCHours()%12||12,t.length)},H:function(e,t){return j(e.getUTCHours(),t.length)},m:function(e,t){return j(e.getUTCMinutes(),t.length)},s:function(e,t){return j(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return j(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}},k={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function S(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+(t||"")+j(o,2)}function _(e,t){return e%60==0?(e>0?"-":"+")+j(Math.abs(e)/60,2):C(e,t)}function C(e,t){var n=e>0?"-":"+",r=Math.abs(e);return n+j(Math.floor(r/60),2)+(t||"")+j(r%60,2)}var O={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return E.y(e,t)},Y:function(e,t,n,r){var i=w(e,r),o=i>0?i:1-i;return"YY"===t?j(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):j(o,t.length)},R:function(e,t){return j(b(e),t.length)},u:function(e,t){return j(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return j(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return j(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return E.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return j(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=function(e,t){(0,h.Z)(1,arguments);var n=(0,p.Z)(e);return Math.round((x(n,t).getTime()-(function(e,t){(0,h.Z)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:v(i),a=null==n.firstWeekContainsDate?o:v(n.firstWeekContainsDate),s=w(e,t),l=new Date(0);return l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0),x(l,t)})(n,t).getTime())/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):j(i,t.length)},I:function(e,t,n){var r=function(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e);return Math.round((y(t).getTime()-(function(e){(0,h.Z)(1,arguments);var t=b(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),y(n)})(t).getTime())/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):j(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):E.d(e,t)},D:function(e,t,n){var r=function(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):j(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return j(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return j(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return j(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?k.noon:0===i?k.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?k.evening:i>=12?k.afternoon:i>=4?k.morning:k.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return E.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):E.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):j(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):j(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):E.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):E.s(e,t)},S:function(e,t){return E.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return _(i);case"XXXX":case"XX":return C(i);default:return C(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return _(i);case"xxxx":case"xx":return C(i);default:return C(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+S(i,":");default:return"GMT"+C(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+S(i,":");default:return"GMT"+C(i,":")}},t:function(e,t,n,r){return j(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return j((r._originalDate||e).getTime(),t.length)}};function M(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function T(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var A={p:T,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return M(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",M(i,t)).replace("{{time}}",T(o,t))}},P=n(1645),N=["D","DD"],R=["YY","YYYY"];function D(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var L=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,F=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,z=/^'([^]*?)'?$/,V=/''/g,I=/[a-zA-Z]/;function Z(e,t,n){(0,h.Z)(2,arguments);var r=String(t),i=n||{},o=i.locale||m.Z,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:v(a),l=null==i.firstWeekContainsDate?s:v(i.firstWeekContainsDate);if(!(l>=1&&l<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,c=null==u?0:v(u),d=null==i.weekStartsOn?c:v(i.weekStartsOn);if(!(d>=0&&d<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw RangeError("locale must contain localize property");if(!o.formatLong)throw RangeError("locale must contain formatLong property");var f=(0,p.Z)(e);if(!function(e){return(0,h.Z)(1,arguments),(!!function(e){return(0,h.Z)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,p.Z)(e)))}(f))throw RangeError("Invalid time value");var y=(0,P.Z)(f),b=g(f,y),x={firstWeekContainsDate:l,weekStartsOn:d,locale:o,_originalDate:f};return r.match(F).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,A[t])(e,o.formatLong,x):e}).join("").match(L).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(z)[1].replace(V,"'");var a=O[r];if(a)return i.useAdditionalWeekYearTokens||-1===R.indexOf(n)||D(n,t,e),i.useAdditionalDayOfYearTokens||-1===N.indexOf(n)||D(n,t,e),a(b,n,o.localize,x);if(r.match(I))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}var B=n(29193);function H(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e);return t.setHours(0,0,0,0),t}var U=n(848),W=n(2850),q=n(6391),$=n.n(q);let K=[{id:"actions",label:"",fixed:!0,category:"general",cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,o.jsx)(U.G,{address:t.netAddress,publicKey:t.publicKey})}},{id:"allow",label:"allowed",category:"general",contentClassName:"justify-center",render:function(e){var t;let{data:n}=e,r=(0,s.s2)({config:{swr:{dedupingInterval:5e3}}}),i=!!(null===(t=r.data)||void 0===t?void 0:t.length);return(0,o.jsx)(a.ua7,{side:"right",content:(i?"Allowlist ".concat(n.isOnAllowlist?"allows this host.":"does not allow this host."):"Allowlist is inactive.")+" Blocklist ".concat(n.isOnBlocklist?"blocks this host.":"does not block this host."),children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:n.isBlocked?"red":"green",children:n.isBlocked?(0,o.jsx)(d.SmH,{}):(0,o.jsx)(d.DI$,{})})}),(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)(a.xvT,{size:"10",color:n.isOnBlocklist?"red":"verySubtle",noWrap:!0,children:"Blocklist"}),(0,o.jsx)(a.xvT,{size:"10",color:i?n.isOnAllowlist?"green":"red":"verySubtle",noWrap:!0,children:"Allowlist"})]})]})})}},{id:"ap_usable",label:"usable",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.ua7,{side:"right",content:t.usable?"Host is usable":"Host is not usable",children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t.usable?"green":"red",children:t.usable?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.SmH,{})})}),(0,o.jsx)("div",{className:"flex flex-col",children:t.unusableReasons.map(e=>(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:e},e))})]})}):(0,o.jsx)(a.ua7,{side:"right",content:"Autopilot is not configured",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:"subtle",children:(0,o.jsx)(d.I98,{})})})})}},{id:"ap_gouging",label:"gouging",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.ua7,{side:"right",content:t.gouging?"Host is price gouging":"Host is not price gouging",children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t.gouging?"red":"subtle",children:t.gouging?(0,o.jsx)(d.SmH,{}):(0,o.jsx)(d.I98,{})})}),(0,o.jsxs)("div",{className:"flex flex-col",children:[Object.entries(t.gougingBreakdown.v2).filter(e=>{let[t,n]=e;return n&&"string"==typeof n}).map(e=>{let[t,n]=e;return(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:n},"v2"+t)}),Object.entries(t.gougingBreakdown.v3).filter(e=>{let[t,n]=e;return n&&"string"==typeof n}).map(e=>{let[t,n]=e;return(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:n},"v3"+t)})]})]})}):(0,o.jsx)(a.ua7,{side:"right",content:"Autopilot is not configured",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:"subtle",children:(0,o.jsx)(d.I98,{})})})})}},{id:"lastScan",label:"last scan",category:"general",render:function(e){let{data:t}=e,{workflows:n}=(0,W.D)(),r=n.find(e=>{var n;return e.path.startsWith(s.RF)&&(null===(n=e.payload)||void 0===n?void 0:n.hostKey)===t.publicKey});if(r)return(0,o.jsx)(a.xgg,{});let i=(0,B.Z)(new Date(t.lastScan),new Date,{addSuffix:!0}),l="",u=null,c="subtle";return t.lastScan||(l="host has not been scanned",u=(0,o.jsx)(d.I98,{}),c="subtle"),t.lastScan&&!t.lastScanSuccess&&(l="host scan failed ".concat(i),u=(0,o.jsx)(d.SmH,{}),c="red"),t.lastScan&&t.lastScanSuccess&&(l="host scan succeeded ".concat(i),u=(0,o.jsx)(d.DI$,{}),c="green"),(0,o.jsx)(a.ua7,{side:"right",content:l,children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:c,children:u})}),(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)(a.xvT,{size:"12",noWrap:!0,children:i}),(0,o.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children:Z(new Date(t.lastScan),"Pp")})]})]})})}},{id:"hasContract",label:"active contract",category:"general",contentClassName:"w-[50px]",render:e=>{let{data:t}=e,n=t.activeContractsCount.gt(0);return(0,o.jsx)(a.ua7,{side:"right",content:n?"Host has active contract":"Host does not have an active contract",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:n?"green":"subtle",children:n?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.I98,{})})})})}},{id:"netAddress",label:"address",category:"general",render:e=>{let{data:t}=e;return(0,o.jsx)(a.XxW,{value:t.netAddress,type:"ip",size:"12",label:"host address"})}},{id:"publicKey",label:"public key",category:"general",render:e=>{let{data:t}=e;return(0,o.jsx)(a.XxW,{value:t.publicKey,size:"12",label:"host public key"})}},{id:"knownSince",label:"known since",category:"general",render:e=>{let{data:t}=e;return(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsxs)(a.xvT,{size:"12",noWrap:!0,children:[(0,B.Z)(new Date,new Date(t.knownSince))," old"]}),(0,o.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children:function(e,t,n){(0,h.Z)(2,arguments);var r=(0,p.Z)(e),i=(0,p.Z)(t),o={},a=o.locale,s=void 0===a?m.Z:a,l=o.weekStartsOn,u=void 0===l?0:l;if(!s.localize)throw RangeError("locale must contain localize property");if(!s.formatLong)throw RangeError("locale must contain formatLong property");if(!s.formatRelative)throw RangeError("locale must contain formatRelative property");var c=function(e,t){(0,h.Z)(2,arguments);var n=H(e),r=H(t);return Math.round((n.getTime()-(0,P.Z)(n)-(r.getTime()-(0,P.Z)(r)))/864e5)}(r,i);if(isNaN(c))throw RangeError("Invalid time value");var d=g(r,(0,P.Z)(r)),f=g(i,(0,P.Z)(i));return Z(r,s.formatRelative(c<-6?"other":c<-1?"lastWeek":c<0?"yesterday":c<1?"today":c<2?"tomorrow":c<7?"nextWeek":"other",d,f,{locale:s,weekStartsOn:u}),{locale:s,weekStartsOn:u})}(new Date(t.knownSince),new Date)})]})}},{id:"totalScans",label:"total scans",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.totalScans,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"uptime",label:"uptime",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.uptime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,f.yF)(e,{fixed:e.isZero()?0:2,units:"days"})})}},{id:"downtime",label:"downtime",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.downtime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,f.yF)(e,{fixed:e.isZero()?0:2,units:"days"})})}},{id:"totalInteractions",label:"total interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.totalInteractions,variant:"value",format:e=>(0,f.yF)(e)})}},{id:"successfulInteractions",label:"successful interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.successfulInteractions,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"failedInteractions",label:"failed interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.failedInteractions,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"contractCount",label:"contract count",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.activeContractsCount,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"ap_scoreOverall",label:"overall score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.score,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreAge",label:"age score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.age,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreCollateral",label:"collateral score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.collateral,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreInteractions",label:"interactions score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.interactions,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scorePrices",label:"prices score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.prices,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreStorageRemaining",label:"storage remaining score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.storageRemaining,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreUptime",label:"uptime score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.uptime,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreVersion",label:"version score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.version,variant:"value",format:e=>n.isAutopilotConfigured?"-":e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"hpt_accountbalancecost",label:"account balance cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","accountbalancecost")},{id:"hpt_collateralcost",label:"collateral cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","collateralcost")},{id:"hpt_contractprice",label:"contract price",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","contractprice")},{id:"hpt_downloadbandwidthcost",label:"download bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","downloadbandwidthcost")},{id:"hpt_dropsectorsbasecost",label:"drop sectors base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","dropsectorsbasecost")},{id:"hpt_dropsectorsunitcost",label:"drop sectors unit cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","dropsectorsunitcost")},{id:"hpt_expiry",label:"expiry",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","dropsectorsunitcost")},{id:"hpt_fundaccountcost",label:"fund account cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","fundaccountcost")},{id:"hpt_hassectorbasecost",label:"has sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","hassectorbasecost")},{id:"hpt_hostblockheight",label:"host block height",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","hostblockheight")},{id:"hpt_initbasecost",label:"init base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","initbasecost")},{id:"hpt_latestrevisioncost",label:"latest revision cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","latestrevisioncost")},{id:"hpt_maxcollateral",label:"max collateral",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","maxcollateral")},{id:"hpt_maxduration",label:"max duration",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","maxduration")},{id:"hpt_memorytimecost",label:"memory time cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","memorytimecost")},{id:"hpt_readbasecost",label:"read base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","readbasecost")},{id:"hpt_readlengthcost",label:"read length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","readlengthcost")},{id:"hpt_registryentriesleft",label:"registry entries left",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","registryentriesleft")},{id:"hpt_registryentriestotal",label:"registry entries total",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","registryentriestotal")},{id:"hpt_renewcontractcost",label:"renew contract cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","renewcontractcost")},{id:"hpt_revisionbasecost",label:"revision base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","renewcontractcost")},{id:"hpt_subscriptionmemorycost",label:"subscription memory cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","subscriptionmemorycost")},{id:"hpt_subscriptionnotificationcost",label:"subscription notification cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","subscriptionnotificationcost")},{id:"hpt_swapsectorcost",label:"swap sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","swapsectorcost")},{id:"hpt_txnfeemaxrecommended",label:"txn fee max recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","txnfeemaxrecommended")},{id:"hpt_txnfeeminrecommended",label:"txn fee min recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","txnfeeminrecommended")},{id:"hpt_uid",label:"UID",category:"priceTable",contentClassName:"w-[120px] justify-end",render:X("priceTable","uid")},{id:"hpt_updatepricetablecost",label:"update price table cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","updatepricetablecost")},{id:"hpt_uploadbandwidthcost",label:"upload bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","uploadbandwidthcost")},{id:"hpt_validity",label:"validity",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","validity")},{id:"hpt_windowsize",label:"window size",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","windowsize")},{id:"hpt_writebasecost",label:"write base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writebasecost")},{id:"hpt_writelengthcost",label:"write length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writelengthcost")},{id:"hpt_writestorecost",label:"write store cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writestorecost")},{id:"hs_acceptingcontracts",label:"accepting contracts",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:(r="settings",i="acceptingcontracts",function(e){let{data:t}=e;return t[r]?(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t[r][i]?"green":"red",children:t[r][i]?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.SmH,{})})}):null})},{id:"hs_baserpcprice",label:"base RPC price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","baserpcprice")},{id:"hs_collateral",label:"collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","collateral")},{id:"hs_contractprice",label:"contract price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","contractprice")},{id:"hs_downloadbandwidthprice",label:"download bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","downloadbandwidthprice")},{id:"hs_ephemeralaccountexpiry",label:"ephemeral account expiry",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","ephemeralaccountexpiry")},{id:"hs_maxcollateral",label:"max collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","maxcollateral")},{id:"hs_maxdownloadbatchsize",label:"max download batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","maxdownloadbatchsize")},{id:"hs_maxduration",label:"max duration",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","maxduration")},{id:"hs_maxephemeralaccountbalance",label:"max ephemeral account balance",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","maxephemeralaccountbalance")},{id:"hs_maxrevisebatchsize",label:"max revise batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","maxrevisebatchsize")},{id:"hs_netaddress",label:"net address",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","netaddress")},{id:"hs_remainingstorage",label:"remaining storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","remainingstorage")},{id:"hs_revisionnumber",label:"revision number",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","revisionnumber")},{id:"hs_sectoraccessprice",label:"sector access price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","sectoraccessprice")},{id:"hs_sectorsize",label:"sector size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","sectorsize")},{id:"hs_siamuxport",label:"siamux port",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","siamuxport")},{id:"hs_storageprice",label:"storage price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","storageprice")},{id:"hs_totalstorage",label:"total storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","totalstorage")},{id:"hs_unlockhash",label:"unlock hash",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","unlockhash")},{id:"hs_uploadbandwidthprice",label:"upload bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","uploadbandwidthprice")},{id:"hs_version",label:"verison",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","version")},{id:"hs_windowsize",label:"window size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","windowsize")}].map(e=>({...e,..."autopilot"===e.category?{icon:(0,o.jsx)(d.n6M,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"autopilot: ".concat(e.label)}:"hostSettings"===e.category?{icon:(0,o.jsx)(d.shL,{className:"relative top-px opacity-50 scale-75"}),label:e.label,tip:"host settings (RHPv2): ".concat(e.label)}:"priceTable"===e.category?{icon:(0,o.jsx)(d.B4q,{className:"relative top-px opacity-50 scale-75"}),label:e.label,tip:"price table (RHPv3): ".concat(e.label)}:{label:e.label,tip:e.label}}));function Y(e,t){return function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.YKL,{size:"12",value:new($())(r[e][t]||0),variant:"value"}):null}}function G(e,t,n){return function(r){let{data:i}=r;return i[e]?(0,o.jsx)(a.m2c,{size:"12",value:new($())(i[e][t]||0),variant:"value",format:e=>(0,f.yF)(e,{abbreviated:n})}):null}}function X(e,t){return function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.XxW,{value:r[e][t],size:"12"}):null}}function J(e,t){return function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.xvT,{size:"12",weight:"semibold",ellipsis:!0,children:(0,f.vW)(r[e][t])}):null}}var Q=n(13242);function ee(e,t){return{id:e.publicKey,netAddress:e.netAddress,publicKey:e.publicKey,lastScanSuccess:e.interactions.LastScanSuccess,lastScan:e.interactions.LastScan,knownSince:e.knownSince,uptime:new($())(e.interactions.Uptime||0),downtime:new($())(e.interactions.Downtime||0),successfulInteractions:new($())(e.interactions.SuccessfulInteractions||0),totalInteractions:new($())(e.interactions.SuccessfulInteractions+e.interactions.FailedInteractions||0),failedInteractions:new($())(e.interactions.FailedInteractions||0),totalScans:new($())(e.interactions.TotalScans||0),activeContractsCount:new($())((null==t?void 0:t.filter(t=>t.hostKey===e.publicKey).length)||0),activeContracts:(null==t?void 0:t.filter(t=>t.hostKey===e.publicKey))||[],priceTable:e.priceTable,settings:e.settings}}function et(e){let{host:t,allowlist:n,blocklist:r,isAllowlistActive:i}=e,o=!!(null==n?void 0:n.find(e=>e===t.publicKey)),a=!!(null==r?void 0:r.find(e=>{if(e===t.netAddress)return!0;try{let n=new URL("https://"+t.netAddress).hostname;return e===n}catch(e){return!1}}));return{isOnAllowlist:o,isOnBlocklist:a,isBlocked:a||!(!i||o)}}function en(e){return{score:new($())((null==e?void 0:e.score)||0),scoreBreakdown:{age:new($())((null==e?void 0:e.scoreBreakdown.age)||0),collateral:new($())((null==e?void 0:e.scoreBreakdown.collateral)||0),interactions:new($())((null==e?void 0:e.scoreBreakdown.interactions)||0),prices:new($())((null==e?void 0:e.scoreBreakdown.prices)||0),storageRemaining:new($())((null==e?void 0:e.scoreBreakdown.storageRemaining)||0),uptime:new($())((null==e?void 0:e.scoreBreakdown.uptime)||0),version:new($())((null==e?void 0:e.scoreBreakdown.version)||0)},gougingBreakdown:(null==e?void 0:e.gougingBreakdown)||{v2:{},v3:{}},gouging:null==e?void 0:e.gouging,unusableReasons:(null==e?void 0:e.unusableReasons)||[],usable:null==e?void 0:e.usable}}var er=n(91641),ei=n(34444),eo=n(47025);let ea=(0,l.createContext)({}),es=()=>(0,l.useContext)(ea);function el(e){let{children:t}=e,n=function(){var e,t,n,r,i,o,d;let f=(0,c.useRouter)(),[h,p]=(0,l.useState)("list"),m=Number(f.query.limit||50),v=Number(f.query.offset||0),{filters:g,setFilter:y,removeFilter:b,removeLastFilter:x,resetFilters:w}=(0,a.Uu5)(),{dataset:j}=(0,Q.G)(),{autopilot:E}=(0,er.q)(),k=(0,l.useMemo)(()=>{let e=[];g.find(e=>"hasActiveContracts"===e.id)&&j&&(e=j.map(e=>e.hostKey));let t=g.find(e=>"publicKeyEquals"===e.id);return t&&e.push(null==t?void 0:t.value),e.length?e:void 0},[g,j]),S=(0,s.S0)({disabled:g.find(e=>"hasActiveContracts"===e.id)&&!j||"on"!==E.status,payload:{limit:m,offset:v,usabilityMode:(null===(e=g.find(e=>"usabilityMode"===e.id))||void 0===e?void 0:e.value)||"all",filterMode:(null===(t=g.find(e=>"filterMode"===e.id))||void 0===t?void 0:t.value)||"all",addressContains:null===(n=g.find(e=>"addressContains"===e.id))||void 0===n?void 0:n.value,keyIn:k},config:{swr:{errorRetryInterval:2e4,refreshInterval:(0,a.sWj)(1)}}}),_=(0,s.FV)({disabled:"off"!==E.status,payload:{limit:m,offset:v,filterMode:(null===(r=g.find(e=>"filterMode"===e.id))||void 0===r?void 0:r.value)||"all",addressContains:null===(i=g.find(e=>"addressContains"===e.id))||void 0===i?void 0:i.value,keyIn:g.find(e=>"hasActiveContracts"===e.id)&&j?j.map(e=>e.hostKey):void 0},config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),C=(0,s.s2)(),O=(0,s.uf)(),M=!!(null===(o=C.data)||void 0===o?void 0:o.length),{settings:T}=(0,W.Hv)(),A=(0,eo.JL)({disabled:!T.siaCentral,config:{swr:{revalidateOnFocus:!1}}});(0,l.useEffect)(()=>{T.siaCentral||p("list")},[T.siaCentral]);let P=(0,l.useMemo)(()=>{var e;return(null===(e=A.data)||void 0===e?void 0:e.hosts)||[]},[A.data]),N=(0,l.useRef)(ei.N),R=(0,l.useCallback)(e=>{N.current=e},[N]),[D,L]=(0,l.useState)(),F=(0,l.useCallback)(e=>{let t=document.getElementById(e),n=document.getElementById("scroll-hosts");t&&n&&n.scroll({top:t.offsetTop-50,behavior:"smooth"})},[]),z=(0,l.useCallback)((e,t)=>{if(D===e){L(void 0);return}L(e),t&&N.current.moveToLocation(t),F(e)},[L,N,D,F]),V=(0,l.useCallback)((e,t)=>{if(D===e){L(void 0);return}L(e),t?N.current.moveToLocation(t):(0,a.OHV)("Geographic location is unknown for host ".concat((0,a.$Gg)(e,20))),F(e)},[L,N,D,F]),I=(0,l.useCallback)((e,t)=>null,[]),Z=function(e){let{autopilotStatus:t,regularResponse:n,autopilotResponse:r,allContracts:i,allowlist:o,blocklist:a,isAllowlistActive:s,geoHosts:u,onHostSelect:c}=e;return(0,l.useMemo)(()=>{var e,l;return"off"===t?(null===(e=n.data)||void 0===e?void 0:e.map(e=>{let t=u.find(t=>t.public_key===e.publicKey);return{onClick:()=>c(e.publicKey,null==t?void 0:t.location),...ee(e,i),...et({host:e,allowlist:o.data,blocklist:a.data,isAllowlistActive:s}),...en(),location:null==t?void 0:t.location,countryCode:null==t?void 0:t.country_code}}))||null:"on"===t&&(null===(l=r.data)||void 0===l?void 0:l.map(e=>{let t=u.find(t=>t.public_key===e.host.publicKey);return{onClick:()=>c(e.host.publicKey,null==t?void 0:t.location),...ee(e.host,i),...et({host:e.host,allowlist:o.data,blocklist:a.data,isAllowlistActive:s}),...en(e.checks),location:null==t?void 0:t.location,countryCode:null==t?void 0:t.country_code}}))||null},[c,t,n.data,r.data,i,o.data,a.data,s,u])}({autopilotStatus:E.status,autopilotResponse:S,regularResponse:_,allContracts:j,allowlist:C,blocklist:O,isAllowlistActive:M,geoHosts:P,onHostSelect:V}),B=(0,l.useMemo)(()=>"off"===E.status?["autopilot"]:[],[E.status]),{configurableColumns:H,enabledColumns:U,toggleColumnVisibility:q,setColumnsVisible:$,setColumnsHidden:Y,toggleSort:G,setSortDirection:X,setSortField:J,sortField:ea,sortDirection:es,resetDefaultColumnVisibility:el}=(0,a.oy6)("renterd/v0/hosts",{columns:K,columnsDefaultVisible:u,disabledCategories:B}),eu=(0,l.useMemo)(()=>K.filter(e=>U.includes(e.id)),[U]),ec="on"===E.status?S.isValidating:_.isValidating,ed="on"===E.status?S.error:_.error,ef=(0,a.c2j)(Z,ec,ed,g),eh=null===(d=E.state.data)||void 0===d?void 0:d.configured,ep=(0,l.useMemo)(()=>({isAutopilotConfigured:eh}),[eh]),em=(0,l.useMemo)(()=>null==Z?void 0:Z.filter(e=>e.location),[Z]),ev=(0,l.useMemo)(()=>null==Z?void 0:Z.find(e=>e.publicKey===D),[Z,D]);return{setCmd:R,viewMode:h,activeHost:ev,onHostMapHover:I,onHostMapClick:z,setViewMode:p,hostsWithLocation:em,error:ed,dataState:ef,offset:v,limit:m,pageCount:(null==Z?void 0:Z.length)||0,columns:eu,dataset:Z,tableContext:ep,configurableColumns:H,enabledColumns:U,toggleColumnVisibility:q,setColumnsVisible:$,setColumnsHidden:Y,toggleSort:G,setSortDirection:X,setSortField:J,sortField:ea,sortDirection:es,resetDefaultColumnVisibility:el,filters:g,setFilter:y,removeFilter:b,removeLastFilter:x,resetFilters:w}}();return(0,o.jsx)(ea.Provider,{value:n,children:t})}},10917:function(e,t,n){"use strict";n.d(t,{Kg:function(){return o},jY:function(){return i}});var r=n(23305);let i={activeAndUsable:{colorHex:r.O9T.green[600],colorName:"green"},activeAndUnusable:{colorHex:r.O9T.amber[600],colorName:"amber"},potentialHost:{colorHex:r.O9T.blue[600],colorName:"blue"}};function o(e){return e.activeContractsCount.gt(0)&&!e.usable?{status:"activeAndUnusable",...i.activeAndUnusable}:e.activeContractsCount.gt(0)?{status:"activeAndUsable",...i.activeAndUsable}:{status:"potentialHost",...i.potentialHost}}},33571:function(e,t,n){"use strict";n.d(t,{I:function(){return a}});var r=n(23305),i=n(9969),o=n(2784);function a(){let e=(0,i.ni)();return(0,o.useCallback)((t,n)=>{let i=async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)(i.error),!1):(t.length&&(0,r.RFt)("".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to allowlist")),n.length&&(0,r.RFt)("".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from allowlist")),!0)};return i()},[e])}},98358:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var r=n(23305),i=n(9969),o=n(2784);function a(){let e=(0,i.Os)();return(0,o.useCallback)((t,n)=>{let i=async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)(i.error),!1):(t.length&&(0,r.RFt)("".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to blocklist")),n.length&&(0,r.RFt)("".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from blocklist")),!0)};return i()},[e])}},80489:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(9969);function i(e){return(0,r.yu)({...e,params:{key:"contractset"}})}},82439:function(e,t,n){"use strict";n.d(t,{B:function(){return a},V:function(){return o}});var r=n(52322),i=n(88242);let o={excellent:1,good:.5,poor:0};function a(e){let{health:t,size:n,isDirectory:a}=e,s="excellent",l="green",u=t,c=(0,r.jsx)(i.Y3p,{});return t1&&(u=1),t<0&&(u=0),{label:s+" health",color:l,icon:c,displayHealth:u}}},34658:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});var r=n(9969);function i(e){return(0,r.yu)({...e,params:{key:"redundancy"}})}},25573:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(23305),i=n(2850),o=n(9969);function a(){var e,t,n,a;let{isUnlocked:s}=(0,i.Hv)(),l=(0,o.DQ)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?(0,r.XBW)(60):(0,r.XBW)(10)}}}),u=(0,o.nH)(),c=l.data?null===(e=l.data)||void 0===e?void 0:e.blockHeight:0,d=(0,o.Tu)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)>=c?(0,r.XBW)(60):(0,r.XBW)(10)}}}),f=s&&c&&u?Number((100*Math.min(c/u,1)).toFixed(1)):0,h=s&&c&&d.data?Number((100*Math.min(d.data.scanHeight/u,1)).toFixed(1)):0;return{isSynced:null===(t=l.data)||void 0===t?void 0:t.synced,isWalletSynced:(null===(n=l.data)||void 0===n?void 0:n.synced)&&(null===(a=d.data)||void 0===a?void 0:a.scanHeight)>=c-1,nodeBlockHeight:c,estimatedBlockHeight:u,syncPercent:f,walletScanPercent:h,moreThan100BlocksToSync:!!c&&!!u&&u-c>100,firstTimeSyncing:!!c&&!!u&&u-c>5e4}}},48201:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return C}});var r=n(52322);n(37832);var i=n(23305),o=n(86450),a=n(48528),s=n(13242),l=n(19513),u=n(2784),c=n(91641),d=n(17286),f=n(88242),h=n(25573),p=n(71930),m=n(4370),v=n(9969),g=n(6391),y=n.n(g),b=n(96206),x=n(2850),w=n(92762);function j(){var e,t,n,a;let{isUnlocked:s}=(0,x.Hv)(),l=(0,c.q)(),{openDialog:u}=(0,o.Rh)(),d=(0,v.Tu)(),g=(0,v.e$)({config:{swr:{errorRetryInterval:1e4}}}),[j,k]=(0,w.Z)("v0/renterd/onboarding/maximized",{defaultValue:!0}),S=(0,h.n)(),_=(0,m.F)();if(!s||"on"!==l.autopilot.status)return null;let C=new(y())((null===(e=d.data)||void 0===e?void 0:e.confirmed)||0),O=new(y())((null===(t=g.data)||void 0===t?void 0:t.contracts.allowance)||0),M=null===(n=l.autopilot.state.data)||void 0===n?void 0:n.configured,T=S.isSynced,A=(null===(a=l.autopilot.state.data)||void 0===a?void 0:a.configured)&&d.data&&C.gte(O),P=!_.active,N=[M,T,A,P],R=N.length,D=N.filter(e=>e).length;return R===D?null:j?(0,r.jsx)("div",{className:"z-20 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.TRl,{}),(0,r.jsx)(i.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>k(!1),children:(0,r.jsx)(f.mli,{})})]}),(0,r.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,r.jsx)(i.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, you can start uploading files."})}),(0,r.jsx)(E,{title:(0,r.jsx)(i.rUS,{href:p._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Configure your storage settings"}),description:"Specify how much data you plan to store and your target price.",action:M?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:p._.config.index,children:(0,r.jsx)(f.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.Fs9,{})})]})}),(0,r.jsx)(E,{title:(0,r.jsx)(i.rUS,{href:p._.node.index,underline:"hover",ellipsis:!0,size:"14",children:"Step 2: Wait for the blockchain to sync"}),description:"The blockchain will sync in the background, this takes some time. No user action required.",action:T?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[S.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.hzZ,{})})]})}),(0,r.jsx)(E,{title:(0,r.jsx)(i.rUS,{href:p._.wallet.view,onClick:()=>u("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Fund your wallet"}),description:"Fund your wallet with at least ".concat((0,b.Vz)(O)," siacoin to cover the required allowance.").concat(S.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:A?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!S.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(S.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[S.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:p._.wallet.view,onClick:()=>u("addressDetails"),children:(0,r.jsx)(f.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.Fs9,{})})]})}),(0,r.jsx)(E,{title:(0,r.jsx)(i.rUS,{href:p._.contracts.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 4: Wait for storage contracts to form"}),description:"Once all other steps are complete, contracts will automatically form. No user action required.",action:P?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[_.count,"/",_.required]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.hzZ,{})})]})})]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.zxk,{onClick:()=>k(!0),size:"large",className:"flex gap-3 !px-3",children:(0,r.jsxs)(i.xvT,{className:"flex items-center gap-1",children:[(0,r.jsx)(i.TRl,{}),"Setup: ",D,"/",R," steps complete"]})})})}function E(e){let{title:t,action:n,description:o}=e;return(0,r.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("div",{className:"flex-1 flex items-center",children:t}),n]}),(0,r.jsx)("div",{className:"pr-5",children:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:o})})]})})}function k(e){return void 0!==e.loaded?e.loaded/e.size:1}function S(){let{isUnlocked:e}=(0,x.Hv)(),{uploadsList:t,uploadCancel:n,downloadsList:o,downloadCancel:s}=(0,a.Y)(),[l,c]=(0,u.useState)(!0),d=t.length,h=o.length;return e&&(0!==d||0!==h)?l?(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[d>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)(i.xvT,{size:"16",weight:"semibold",children:["Active uploads (",d,")"]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(f.mli,{})})]}),t.map(e=>{let t=k(e);return(0,r.jsxs)("div",{className:"flex flex-col gap-1 border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:[(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(i.xvT,{ellipsis:!0,size:"14",className:"flex-1",children:e.path}),(0,r.jsx)(i.zxk,{tip:"Cancel file upload",variant:"ghost",size:"none",onClick:()=>n(e),children:(0,r.jsx)(f.PcV,{})})]}),(0,r.jsx)(i.kod,{variant:"accent",value:e.loaded,max:e.size,className:1===t?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex justify-between mt-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"Processing":"Uploading"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*t).toFixed(0),"%"]})]})]},e.path)})]}):null,h>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)(i.xvT,{size:"16",weight:"semibold",children:["Active downloads (",h,")"]}),0===d?(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(f.mli,{})}):null]}),o.map(e=>{let t=k(e);return(0,r.jsxs)("div",{className:"flex flex-col gap-1 border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:[(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(i.xvT,{ellipsis:!0,size:"14",className:"flex-1",children:e.path}),(0,r.jsx)(i.zxk,{tip:"Cancel file download",variant:"ghost",size:"none",onClick:()=>s(e),children:(0,r.jsx)(f.PcV,{})})]}),(0,r.jsx)(i.kod,{variant:"accent",value:e.loaded,max:e.size,className:1===t?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex justify-between mt-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"Processing":"Downloading"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*t).toFixed(0),"%"]})]})]},e.path)})]}):null]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsxs)(i.zxk,{onClick:()=>c(!0),className:"flex gap-3",children:[(0,r.jsx)(i.xgg,{}),d?(0,r.jsxs)(i.xvT,{className:"flex gap-1",children:[d,(0,r.jsx)(f.R$6,{className:"opacity-50 scale-75 relative top-px"})]}):null,h?(0,r.jsxs)(i.xvT,{className:"flex gap-1",children:[h&&h,(0,r.jsx)(f.vzB,{className:"opacity-50 scale-75"})]}):null]})}):null}function _(e){let{children:t}=e;return(0,r.jsx)(c.w,{children:(0,r.jsx)(d.iV,{children:(0,r.jsx)(o.Tu,{children:(0,r.jsx)(s.x,{children:(0,r.jsx)(l.x,{children:(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(j,{}),(0,r.jsx)(S,{}),(0,r.jsx)(o.xQ,{}),t]})})})})})})}function C(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:p._,children:(0,r.jsx)(_,{children:(0,r.jsx)(t,{...n})})})}},23305:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{UQy:function(){return ld},vF:function(){return lm},Qdk:function(){return lp},o48:function(){return lf},hcY:function(){return _a},tU3:function(){return _n},zXq:function(){return _w},juT:function(){return Sz},Z58:function(){return _3},WVB:function(){return cH},zxk:function(){return lu},EKh:function(){return lP},vRO:function(){return C_},QHy:function(){return Cp},TaT:function(){return Cl},eQh:function(){return lR},HfT:function(){return Cg},wEc:function(){return _6},ncR:function(){return Sp},VqE:function(){return ud},h_2:function(){return cK},Xiv:function(){return cY},Juw:function(){return cG},KpP:function(){return cX},fhJ:function(){return pq},XOF:function(){return Sh},S$c:function(){return SS},QBj:function(){return CC},yEL:function(){return _g},cB7:function(){return Sx},ZqQ:function(){return Sb},IKw:function(){return S_},KZS:function(){return Sw},zsw:function(){return h7},__J:function(){return dt},rUS:function(){return di},Qjf:function(){return da},xgg:function(){return Eu},TRl:function(){return dl},kFS:function(){return cU},FzK:function(){return Cd},Clw:function(){return cB},PD$:function(){return CP},Wxm:function(){return f5},uDJ:function(){return SM},wFK:function(){return ST},s_4:function(){return t3},nvN:function(){return t2},u5Q:function(){return _5},j4H:function(){return f1},hmz:function(){return f2},J2e:function(){return dT},kod:function(){return dU},xrM:function(){return ul},PhF:function(){return f3},Z0O:function(){return cF},DLL:function(){return _J},KJW:function(){return SZ},rsf:function(){return hd},D_D:function(){return _U},xf5:function(){return CU},iA_:function(){return SC},mQc:function(){return fy},nUL:function(){return fw},drW:function(){return fb},SPt:function(){return fx},t6k:function(){return Cy},xvT:function(){return t1},ua7:function(){return ls},mPE:function(){return _W},XxW:function(){return k9},PF9:function(){return Se},m2c:function(){return Sr},YKL:function(){return Sn},QUh:function(){return _0},weF:function(){return _A},YNn:function(){return _K},DmW:function(){return _Y},jrD:function(){return Ct},x5w:function(){return Ce},JWi:function(){return CH},O9T:function(){return vk},vQq:function(){return kQ},E5z:function(){return k0},HLH:function(){return C$},NrH:function(){return j8},k9c:function(){return Er},EJC:function(){return CW},leQ:function(){return k3},Ztc:function(){return _Z},XAn:function(){return Ei},Vkc:function(){return cV},sWj:function(){return j6},ort:function(){return Eo},xLV:function(){return j9},S5V:function(){return _7},okB:function(){return En},AEA:function(){return Et},z$:function(){return t4},XBW:function(){return Es},GXN:function(){return Ea},I13:function(){return k2},cEb:function(){return fj},y70:function(){return fq},OHV:function(){return kG},OPV:function(){return kY},RFt:function(){return k$},$Gg:function(){return k1},_4u:function(){return CV},Wdu:function(){return Cz},Y97:function(){return _t},c2j:function(){return _r},WsO:function(){return _v},Uu5:function(){return CI},fb0:function(){return CB},oy6:function(){return CF},BL0:function(){return j7},mvJ:function(){return _8},ivg:function(){return Ee}});var s,l,u,c,d,f,h,p,m,v,g,y=n(52322),b=n(2784),x=n.t(b,2),w=n(7896),j=n(34540),E=n(26215),k=n(99575);function S(e){let t=e+"CollectionProvider",[n,r]=(0,j.b)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=b.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=(0,E.e)(t,i.collectionRef);return b.createElement(k.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=b.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=b.useRef(null),s=(0,E.e)(t,a),c=o(l,n);return b.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),b.createElement(k.g7,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=b.useRef(null),o=b.useRef(new Map).current;return b.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=b.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}var _=n(41816),C=n(73597),O=n(72130),M=n(64680),T=n(28245),A=n(26074);let P="Collapsible",[N,R]=(0,j.b)(P),[D,L]=N(P),F=(0,b.forwardRef)((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=(0,C.T)({prop:r,defaultProp:i,onChange:a});return(0,b.createElement)(D,{scope:n,disabled:o,contentId:(0,A.M)(),open:l,onOpenToggle:(0,b.useCallback)(()=>u(e=>!e),[u])},(0,b.createElement)(O.WV.div,(0,w.Z)({"data-state":B(l),"data-disabled":o?"":void 0},s,{ref:t})))}),z=(0,b.forwardRef)((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=L("CollapsibleTrigger",n);return(0,b.createElement)(O.WV.button,(0,w.Z)({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":B(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},r,{ref:t,onClick:(0,_.M)(e.onClick,i.onOpenToggle)}))}),V="CollapsibleContent",I=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=L(V,e.__scopeCollapsible);return(0,b.createElement)(T.z,{present:n||i.open},({present:e})=>(0,b.createElement)(Z,(0,w.Z)({},r,{ref:t,present:e})))}),Z=(0,b.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,a=L(V,n),[s,l]=(0,b.useState)(r),u=(0,b.useRef)(null),c=(0,E.e)(t,u),d=(0,b.useRef)(0),f=d.current,h=(0,b.useRef)(0),p=h.current,m=a.open||s,v=(0,b.useRef)(m),g=(0,b.useRef)();return(0,b.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,M.b)(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationDuration=g.current.animationDuration,e.style.animationFillMode=g.current.animationFillMode),l(r)}},[a.open,r]),(0,b.createElement)(O.WV.div,(0,w.Z)({"data-state":B(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m},o,{ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style}}),m&&i)});function B(e){return e?"open":"closed"}let H="Accordion",U=["Home","End","ArrowDown","ArrowUp"],[W,q,$]=S(H),[K,Y]=(0,j.b)(H,[$,R]),G=R(),X=b.forwardRef((e,t)=>{let{type:n,...r}=e;return b.createElement(W.Provider,{scope:e.__scopeAccordion},"multiple"===n?b.createElement(er,(0,w.Z)({},r,{ref:t})):b.createElement(en,(0,w.Z)({},r,{ref:t})))});X.propTypes={type(e){let t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[J,Q]=K(H),[ee,et]=K(H,{collapsible:!1}),en=b.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=(0,C.T)({prop:n,defaultProp:r,onChange:i});return b.createElement(J,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:b.useCallback(()=>o&&l(""),[o,l])},b.createElement(ee,{scope:e.__scopeAccordion,collapsible:o},b.createElement(ea,(0,w.Z)({},a,{ref:t}))))}),er=b.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[a=[],s]=(0,C.T)({prop:n,defaultProp:r,onChange:i}),l=b.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=b.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return b.createElement(J,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},b.createElement(ee,{scope:e.__scopeAccordion,collapsible:!0},b.createElement(ea,(0,w.Z)({},o,{ref:t}))))}),[ei,eo]=K(H),ea=b.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,o=b.useRef(null),a=(0,E.e)(o,t),s=q(n),l=(0,_.M)(e.onKeyDown,e=>{var t;if(!U.includes(e.key))return;let n=e.target,r=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=r.findIndex(e=>e.ref.current===n),o=r.length;if(-1===i)return;e.preventDefault();let a=i;switch(e.key){case"Home":a=0;break;case"End":a=o-1;break;case"ArrowDown":a=i+1;break;case"ArrowUp":(a=i-1)<0&&(a=o-1)}let l=a%o;null===(t=r[l].ref.current)||void 0===t||t.focus()});return b.createElement(ei,{scope:n,disabled:r},b.createElement(W.Slot,{scope:n},b.createElement(O.WV.div,(0,w.Z)({},i,{ref:a,onKeyDown:r?void 0:l}))))}),es="AccordionItem",[el,eu]=K(es),ec=b.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,o=eo(es,n),a=Q(es,n),s=G(n),l=(0,A.M)(),u=r&&a.value.includes(r)||!1,c=o.disabled||e.disabled;return b.createElement(el,{scope:n,open:u,disabled:c,triggerId:l},b.createElement(F,(0,w.Z)({"data-state":u?"open":"closed"},s,i,{ref:t,disabled:c,open:u,onOpenChange:e=>{e?a.onItemOpen(r):a.onItemClose(r)}})))}),ed=b.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=eu("AccordionHeader",n);return b.createElement(O.WV.h3,(0,w.Z)({"data-state":i.open?"open":"closed","data-disabled":i.disabled?"":void 0},r,{ref:t}))}),ef="AccordionTrigger",eh=b.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=eu(ef,n),o=et(ef,n),a=G(n);return b.createElement(W.ItemSlot,{scope:n},b.createElement(z,(0,w.Z)({"aria-disabled":i.open&&!o.collapsible||void 0,id:i.triggerId},a,r,{ref:t})))}),ep=b.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=eu("AccordionContent",n),o=G(n);return b.createElement(I,(0,w.Z)({role:"region","aria-labelledby":i.triggerId},o,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});var em=n(82851),ev=n(83317);function eg(e){return e.split("-")[0]}function ey(e){return e.split("-")[1]}function eb(e){return["top","bottom"].includes(eg(e))?"x":"y"}function ex(e){return"y"===e?"height":"width"}function ew(e,t,n){let r,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=eb(t),u=ex(l),c=i[u]/2-o[u]/2,d="x"===l;switch(eg(t)){case"top":r={x:a,y:i.y-o.height};break;case"bottom":r={x:a,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:s};break;case"left":r={x:i.x-o.width,y:s};break;default:r={x:i.x,y:i.y}}switch(ey(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let ej=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=ew(l,r,s),d=r,f={},h=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==n)return{};let u=eE(r),c={x:i,y:o},d=eb(a),f=ey(a),h=ex(d),p=await l.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),x=b?"y"===d?b.clientHeight||0:b.clientWidth||0:0;0===x&&(x=s.floating[h]);let w=u[m],j=x-p[h]-u[v],E=x/2-p[h]/2+(g/2-y/2),k=eC(w,e_(E,j)),S=("start"===f?u[m]:u[v])>0&&E!==k&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(S?EeM[e])}let eA={start:"end",end:"start"};function eP(e){return e.replace(/start|end/g,e=>eA[e])}let eN=["top","right","bottom","left"];eN.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let eR=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=e,y=eg(a),b=p||(y!==u&&v?function(e){let t=eT(e);return[eP(e),t,eP(t)]}(u):[eT(u)]),x=[u,...b],w=await eS(t,g),j=[],E=(null==(n=s.flip)?void 0:n.overflows)||[];if(f&&j.push(w[y]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let r=ey(e),i=eb(e),o=ex(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=eT(a)),{main:a,cross:eT(a)}}(a,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));j.push(w[e],w[t])}if(E=[...E,{placement:a,overflows:j}],!j.every(e=>e<=0)){let e=(null!=(r=null==(i=s.flip)?void 0:i.index)?r:0)+1,t=x[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n="bottom";switch(m){case"bestFit":{let e=null==(o=E.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0].placement;e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}}};function eD(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eL(e){return eN.some(t=>e[t]>=0)}let eF=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:r}=e;switch(t){case"referenceHidden":{let t=eD(await eS(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eL(t)}}}case"escaped":{let t=eD(await eS(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:eL(t)}}}default:return{}}}}},ez=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,i=await async function(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=eg(n),s=ey(n),l="x"===eb(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function eV(e){return"x"===e?"y":"x"}let eI=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,u={x:n,y:r},c=await eS(t,l),d=eb(eg(i)),f=eV(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=eC(h+c["y"===d?"top":"left"],e_(h,h-c[e]))}a&&(p=eC(p+c["y"===f?"top":"left"],e_(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},eZ=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:n,y:r},d=eb(i),f=eV(d),h=c[d],p=c[f],m="function"==typeof s?s({...o,placement:i}):s,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+v.mainAxis,n=o.reference[d]+o.reference[e]-v.mainAxis;hn&&(h=n)}if(u){var g,y,b,x;let e="y"===d?"width":"height",t=["top","left"].includes(eg(i)),n=o.reference[f]-o.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:null!=(b=null==(x=a.offset)?void 0:x[f])?b:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function eB(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function eH(e){if(null==e)return window;if(!eB(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function eU(e){return eH(e).getComputedStyle(e)}function eW(e){return eB(e)?"":e?(e.nodeName||"").toLowerCase():""}function eq(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function e$(e){return e instanceof eH(e).HTMLElement}function eK(e){return e instanceof eH(e).Element}function eY(e){return"undefined"!=typeof ShadowRoot&&(e instanceof eH(e).ShadowRoot||e instanceof ShadowRoot)}function eG(e){let{overflow:t,overflowX:n,overflowY:r}=eU(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function eX(e){let t=/firefox/i.test(eq()),n=eU(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function eJ(){return!/^((?!chrome|android).)*safari/i.test(eq())}let eQ=Math.min,e0=Math.max,e1=Math.round;function e2(e,t,n){var r,i,o,a;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&e$(e)&&(l=e.offsetWidth>0&&e1(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&e1(s.height)/e.offsetHeight||1);let c=eK(e)?eH(e):window,d=!eJ()&&n,f=(s.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(o=null==(a=c.visualViewport)?void 0:a.offsetTop)?o:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function e4(e){return((e instanceof eH(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function e3(e){return eK(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function e5(e){return e2(e4(e)).left+e3(e).scrollLeft}function e6(e){return"html"===eW(e)?e:e.assignedSlot||e.parentNode||(eY(e)?e.host:null)||e4(e)}function e8(e){return e$(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function e7(e){let t=eH(e),n=e8(e);for(;n&&["table","td","th"].includes(eW(n))&&"static"===getComputedStyle(n).position;)n=e8(n);return n&&("html"===eW(n)||"body"===eW(n)&&"static"===getComputedStyle(n).position&&!eX(n))?t:n||function(e){let t=e6(e);for(eY(t)&&(t=t.host);e$(t)&&!["html","body"].includes(eW(t));){if(eX(t))return t;t=t.parentNode}return null}(e)||t}function e9(e){if(e$(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=e2(e);return{width:t.width,height:t.height}}function te(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=e6(t);return["html","body","#document"].includes(eW(n))?t.ownerDocument.body:e$(n)&&eG(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=eH(r),a=i?[o].concat(o.visualViewport||[],eG(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(te(a))}function tt(e,t,n){return"viewport"===t?ek(function(e,t){let n=eH(e),r=e4(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=eJ();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):eK(t)?function(e,t){let n=e2(e,!1,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):ek(function(e){var t;let n=e4(e),r=e3(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=e0(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=e0(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+e5(e),l=-r.scrollTop;return"rtl"===eU(i||n).direction&&(s+=e0(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(e4(e)))}let tn={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e){let t=te(e),n=["absolute","fixed"].includes(eU(e).position)&&e$(e)?e7(e):e;return eK(n)?t.filter(e=>eK(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&eY(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==eW(e)):[]}(t):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=tt(t,n,i);return e.top=e0(r.top,e.top),e.right=eQ(r.right,e.right),e.bottom=eQ(r.bottom,e.bottom),e.left=e0(r.left,e.left),e},tt(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=e$(n),o=e4(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==eW(n)||eG(o))&&(a=e3(n)),e$(n))){let e=e2(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:eK,getDimensions:e9,getOffsetParent:e7,getDocumentElement:e4,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=e$(t),i=e4(t),o=e2(e,r&&function(e){let t=e2(e);return e1(t.width)!==e.offsetWidth||e1(t.height)!==e.offsetHeight}(t),"fixed"===n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==eW(t)||eG(i))&&(a=e3(t)),e$(t)){let e=e2(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=e5(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,e7(n),r),floating:{...e9(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eU(e).direction};function tr(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=i&&!s,u=o&&!s,c=l||u?[...eK(e)?te(e):[],...te(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let d,f=null;if(a){let r=!0;f=new ResizeObserver(()=>{r||n(),r=!1}),eK(e)&&!s&&f.observe(e),f.observe(t)}let h=s?e2(e):null;return s&&function t(){let r=e2(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let ti=(e,t,n)=>ej(e,t,{platform:tn,...n});var to=n(28316),ta="undefined"!=typeof document?b.useLayoutEffect:b.useEffect;function ts(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=b.useRef(null),a=b.useRef(null),s=function(e){let t=b.useRef(e);return ta(()=>{t.current=e}),t}(i),l=b.useRef(null),[u,c]=b.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=b.useState(t);!function e(t,n){let r,i,o;if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&t.toString()===n.toString())return!0;if(t&&n&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){let r=o[i];if(("_owner"!==r||!t.$$typeof)&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=b.useCallback(()=>{o.current&&a.current&&ti(o.current,a.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&to.flushSync(()=>{c(e)})})},[d,n,r]);ta(()=>{p.current&&h()},[h]);let p=b.useRef(!1);ta(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=b.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current){if(s.current){let e=s.current(o.current,a.current,h);l.current=e}else h()}},[h,s]),v=b.useCallback(e=>{o.current=e,m()},[m]),g=b.useCallback(e=>{a.current=e,m()},[m]),y=b.useMemo(()=>({reference:o,floating:a}),[]);return b.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let tl=e=>{let{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return eO({element:t.current,padding:n}).fn(e)}else if(t)return eO({element:t,padding:n}).fn(e);return{}}}},tu=(0,b.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,b.createElement)(O.WV.svg,(0,w.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,b.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tc(e){let[t,n]=(0,b.useState)(void 0);return(0,M.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}let td="Popper",[tf,th]=(0,j.b)(td),[tp,tm]=tf(td),tv=(0,b.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=tm("PopperAnchor",n),a=(0,b.useRef)(null),s=(0,E.e)(t,a);return(0,b.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,b.createElement)(O.WV.div,(0,w.Z)({},i,{ref:s}))}),tg="PopperContent",[ty,tb]=tf(tg),[tx,tw]=tf(tg,{hasParent:!1,positionUpdateFns:new Set}),tj=(0,b.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:x=!1,avoidCollisions:w=!0,...j}=e,k=tm(tg,c),[S,_]=(0,b.useState)(null),C=(0,E.e)(t,e=>_(e)),[T,A]=(0,b.useState)(null),P=tc(T),N=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,R=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,D="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},L=Array.isArray(v)?v:[v],F=L.length>0,z={padding:D,boundary:L.filter(t_),altBoundary:F},{reference:V,floating:I,strategy:Z,x:B,y:H,placement:U,middlewareData:W,update:q}=ts({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tr,middleware:[ez({mainAxis:f+R,alignmentAxis:p}),w?eI({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?eZ():void 0,...z}):void 0,T?tl({element:T,padding:m}):void 0,w?eR({...z}):void 0,tC({arrowWidth:N,arrowHeight:R}),x?eF({strategy:"referenceHidden"}):void 0].filter(tS)});(0,M.b)(()=>{V(k.anchor)},[V,k.anchor]);let $=null!==B&&null!==H,[K,Y]=tO(U),G=null===(i=W.arrow)||void 0===i?void 0:i.x,X=null===(o=W.arrow)||void 0===o?void 0:o.y,J=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[Q,ee]=(0,b.useState)();(0,M.b)(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:et,positionUpdateFns:en}=tw(tg,c),er=!et;(0,b.useLayoutEffect)(()=>{if(!er)return en.add(q),()=>{en.delete(q)}},[er,en,q]),(0,b.useLayoutEffect)(()=>{er&&$&&Array.from(en).reverse().forEach(e=>requestAnimationFrame(e))},[er,$,en]);let ei={"data-side":K,"data-align":Y,...j,ref:C,style:{...j.style,animation:$?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,b.createElement)("div",{ref:I,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:$?`translate3d(${Math.round(B)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,b.createElement)(ty,{scope:c,placedSide:K,onArrowChange:A,arrowX:G,arrowY:X,shouldHideArrow:J},er?(0,b.createElement)(tx,{scope:c,hasParent:!0,positionUpdateFns:en},(0,b.createElement)(O.WV.div,ei)):(0,b.createElement)(O.WV.div,ei)))}),tE={top:"bottom",right:"left",bottom:"top",left:"right"},tk=(0,b.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tb("PopperArrow",n),o=tE[i.placedSide];return(0,b.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,b.createElement)(tu,(0,w.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function tS(e){return void 0!==e}function t_(e){return null!==e}let tC=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=tO(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function tO(e){let[t,n="center"]=e.split("-");return[t,n]}let tM=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,b.useState)(null);return(0,b.createElement)(tp,{scope:t,anchor:r,onAnchorChange:i},n)};var tT=n(6500);let tA=(0,b.forwardRef)((e,t)=>(0,b.createElement)(O.WV.span,(0,w.Z)({},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}}))),[tP,tN]=(0,j.b)("Tooltip",[th]),tR=th(),tD="tooltip.open",[tL,tF]=tP("TooltipProvider"),tz="Tooltip",[tV,tI]=tP(tz),tZ="TooltipTrigger",tB=(0,b.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=tI(tZ,n),o=tF(tZ,n),a=tR(n),s=(0,b.useRef)(null),l=(0,E.e)(t,s,i.onTriggerChange),u=(0,b.useRef)(!1),c=(0,b.useRef)(!1),d=(0,b.useCallback)(()=>u.current=!1,[]);return(0,b.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,b.createElement)(tv,(0,w.Z)({asChild:!0},a),(0,b.createElement)(O.WV.button,(0,w.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,_.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,_.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,_.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,_.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,_.M)(e.onBlur,i.onClose),onClick:(0,_.M)(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),tH="TooltipPortal",[tU,tW]=tP(tH,{forceMount:void 0}),tq="TooltipContent",t$=(0,b.forwardRef)((e,t)=>{let n=tW(tq,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=tI(tq,e.__scopeTooltip);return(0,b.createElement)(T.z,{present:r||a.open},a.disableHoverableContent?(0,b.createElement)(tX,(0,w.Z)({side:i},o,{ref:t})):(0,b.createElement)(tK,(0,w.Z)({side:i},o,{ref:t})))}),tK=(0,b.forwardRef)((e,t)=>{let n=tI(tq,e.__scopeTooltip),r=tF(tq,e.__scopeTooltip),i=(0,b.useRef)(null),o=(0,E.e)(t,i),[a,s]=(0,b.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,b.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,b.useCallback)((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:return null}}(r,n.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect()),u=function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([a,...l]);s(u),d(!0)},[d]);return(0,b.useEffect)(()=>()=>f(),[f]),(0,b.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,b.useEffect)(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,a);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,b.createElement)(tX,(0,w.Z)({},e,{ref:o}))}),[tY,tG]=tP(tz,{isInside:!1}),tX=(0,b.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=tI(tq,n),u=tR(n),{onClose:c}=l;return(0,b.useEffect)(()=>(document.addEventListener(tD,c),()=>document.removeEventListener(tD,c)),[c]),(0,b.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,b.createElement)(ev.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,b.createElement)(tj,(0,w.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,b.createElement)(k.A4,null,r),(0,b.createElement)(tY,{scope:n,isInside:!0},(0,b.createElement)(tA,{id:l.contentId,role:"tooltip"},i||r))))}),tJ=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tF(tz,e.__scopeTooltip),u=tR(t),[c,d]=(0,b.useState)(null),f=(0,A.M)(),h=(0,b.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,b.useRef)(!1),[g=!1,y]=(0,C.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(tD))):l.onClose(),null==o||o(e)}}),x=(0,b.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),w=(0,b.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),j=(0,b.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),E=(0,b.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,b.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,b.createElement)(tM,u,(0,b.createElement)(tV,{scope:t,contentId:f,open:g,stateAttribute:x,trigger:c,onTriggerChange:d,onTriggerEnter:(0,b.useCallback)(()=>{l.isOpenDelayed?E():w()},[l.isOpenDelayed,E,w]),onTriggerLeave:(0,b.useCallback)(()=>{p?j():window.clearTimeout(h.current)},[j,p]),onOpen:w,onClose:j,disableHoverableContent:p},n))},tQ=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=tI(tH,t);return(0,b.createElement)(tU,{scope:t,forceMount:n},(0,b.createElement)(T.z,{present:n||o.open},(0,b.createElement)(tT.h,{asChild:!0,container:i},r)))},t0=(0,em.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),t1=b.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,y.jsx)(n,{ref:t,className:(0,em.cx)(r,t0({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),t2=b.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,y.jsx)(t1,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,em.cx)("leading-relaxed md:leading-relaxed",e.className)})}),t4=(0,em.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),t3=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:t4({className:n}),...r})});var t5=n(34406);let t6=(void 0===t5||t5.env,"production"),t8=1/60*1e3,t7="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),t9="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(t7()),t8),ne=!0,nt=!1,nn=!1,nr={delta:0,timestamp:0},ni=["read","update","preRender","render","postRender"],no=ni.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:n;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nnt=!0),e),{}),na=ni.reduce((e,t)=>{let n=no[t];return e[t]=(e,t=!1,r=!1)=>(nt||nd(),n.schedule(e,t,r)),e},{}),ns=ni.reduce((e,t)=>(e[t]=no[t].cancel,e),{}),nl=ni.reduce((e,t)=>(e[t]=()=>no[t].process(nr),e),{}),nu=e=>no[e].process(nr),nc=e=>{nt=!1,nr.delta=ne?t8:Math.max(Math.min(e-nr.timestamp,40),1),nr.timestamp=e,nn=!0,ni.forEach(nu),nn=!1,nt&&(ne=!1,t9(nc))},nd=()=>{nt=!0,ne=!0,nn||t9(nc)},nf=()=>nr,nh="undefined"!=typeof document,np=nh?b.useLayoutEffect:b.useEffect;function nm(){let e=(0,b.useRef)(!1);return np(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nv=(0,b.createContext)(null);function ng(e){let t=(0,b.useRef)(null);return null===t.current&&(t.current=e()),t.current}class ny extends b.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function nb({children:e,isPresent:t}){let n=(0,b.useId)(),r=(0,b.useRef)(null),i=(0,b.useRef)({width:0,height:0,top:0,left:0});return(0,b.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!r.current||!e||!o)return;r.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` + */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,x=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case v:case m:case l:return e;default:return t}}case i:return t}}}function j(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return j(e)||w(e)===c},t.isConcurrentMode=j,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===x||e.$$typeof===b||e.$$typeof===g)},t.typeOf=w},73887:function(e,t,n){"use strict";e.exports=n(43459)},62333:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*m}},39515:function(e,t,n){var r=n(38761)(n(37772),"DataView");e.exports=r},89612:function(e,t,n){var r=n(52118),i=n(96909),o=n(98138),a=n(4174),s=n(7942);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1}},34893:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(d=l,f=!1,t=new r(t));t:for(;++c0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},15308:function(e,t,n){var r=n(55463)();e.exports=r},26548:function(e,t,n){var r=n(15308),i=n(90249);e.exports=function(e,t){return e&&r(e,t,i)}},13324:function(e,t,n){var r=n(17297),i=n(33812);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n=120&&g.length>=120)?new r(h&&g):void 0}g=e[0];var y=-1,x=p[0];t:for(;++yi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,p=new r}else p=t?[]:h;t:for(;++u=i?e:r(e,t,n)}},79882:function(e,t,n){var r=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},92175:function(e,t,n){e=n.nmd(e);var r=n(37772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},34727:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:function(e,t,n){var r=n(50857),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},6190:function(e,t,n){var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},27520:function(e,t,n){var r=n(4795);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},51522:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++rc))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},94769:function(e,t,n){var r=n(22218);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},92411:function(e,t,n){var r=n(89612),i=n(80235),o=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},36417:function(e,t,n){var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},79493:function(e,t,n){var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:function(e,t,n){var r=n(27937);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},75179:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},73477:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},77777:function(e,t,n){var r=n(30733);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},99191:function(e,t,n){var r=n(38761)(Object,"create");e.exports=r},54248:function(e,t,n){var r=n(60241)(Object.keys,Object);e.exports=r},62966:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:function(e,t,n){e=n.nmd(e);var r=n(51242),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},43114:function(e,t,n){var r=n(49432),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},15243:function(e,t,n){var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:function(e){e.exports=function(e){return this.__data__.get(e)}},8605:function(e){e.exports=function(e){return this.__data__.has(e)}},71418:function(e,t,n){var r=n(80235),i=n(10326),o=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},66024:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r=t||n<0||v&&r>=c}function b(){var e,n,r,o=i();if(x(o))return w(o);f=setTimeout(b,(e=o-h,n=o-p,r=t-e,v?s(r,c-n):r))}function w(e){return(f=void 0,g&&l)?y(e):(l=u=void 0,d)}function j(){var e,n=i(),r=x(n);if(l=arguments,u=this,h=n,r){if(void 0===f)return p=e=h,f=setTimeout(b,t),m?y(e):d;if(v)return clearTimeout(f),f=setTimeout(b,t),y(h)}return void 0===f&&(f=setTimeout(b,t)),d}return t=o(t)||0,r(n)&&(m=!!n.leading,c=(v="maxWait"in n)?a(o(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),j.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},j.flush=function(){return void 0===f?d:w(i())},j}},97329:function(e,t,n){var r=n(61655),i=n(66188),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},17335:function(e,t,n){var r=n(85246),i=n(62034),o=n(36060),a=n(93746),s=o(function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]});e.exports=s},45861:function(e,t,n){e.exports=n(28460)},41225:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:function(e,t,n){var r=n(62034);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},72579:function(e,t,n){var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},3440:function(e,t,n){var r=n(13940),i=n(36740),o=Object.prototype.hasOwnProperty,a=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])});e.exports=a},93352:function(e,t,n){var r=n(32726),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},95041:function(e,t,n){var r=n(20187),i=n(1369);e.exports=function(e,t){return null!=e&&i(e,t,r)}},23059:function(e){e.exports=function(e){return e}},30898:function(e,t,n){var r=n(50343),i=n(88390),o=n(36060),a=n(5642),s=o(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},79631:function(e,t,n){var r=n(15183),i=n(15125),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:function(e){var t=Array.isArray;e.exports=t},67878:function(e,t,n){var r=n(61049),i=n(61158);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},93746:function(e,t,n){var r=n(67878),i=n(15125);e.exports=function(e){return i(e)&&r(e)}},73226:function(e,t,n){e=n.nmd(e);var r=n(37772),i=n(36330),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},18149:function(e,t,n){var r=n(88746);e.exports=function(e,t){return r(e,t)}},61049:function(e,t,n){var r=n(53366),i=n(29259);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:function(e,t,n){var r=n(74511),i=n(47826),o=n(4146),a=o&&o.isMap,s=a?i(a):r;e.exports=s},29259:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},97030:function(e,t,n){var r=n(53366),i=n(47353),o=n(15125),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},43679:function(e,t,n){var r=n(8109),i=n(47826),o=n(4146),a=o&&o.isSet,s=a?i(a):r;e.exports=s},4795:function(e,t,n){var r=n(53366),i=n(15125);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},77598:function(e,t,n){var r=n(35522),i=n(47826),o=n(4146),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},90249:function(e,t,n){var r=n(1634),i=n(86411),o=n(67878);e.exports=function(e){return o(e)?r(e):i(e)}},18582:function(e,t,n){var r=n(1634),i=n(18390),o=n(67878);e.exports=function(e){return o(e)?r(e,!0):i(e)}},56974:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},19950:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,t(e,i,o),e)}),n}},34519:function(e,t,n){var r=n(13940),i=n(26548),o=n(68286);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},30733:function(e,t,n){var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},98537:function(e,t,n){var r=n(84565),i=n(97263)(function(e,t,n){r(e,t,n)});e.exports=i},65680:function(e,t,n){var r=n(2229),i=n(17606),o=n(23059);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},34291:function(e){e.exports=function(){}},61100:function(e,t,n){var r=n(37772);e.exports=function(){return r.Date.now()}},17620:function(e,t,n){var r=n(50343),i=n(18874),o=n(29078),a=n(17297),s=n(752),l=n(48642),u=n(29097),c=n(76939),d=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),s(e,c(e),n),u&&(n=i(n,7,l));for(var d=t.length;d--;)o(n,t[d]);return n});e.exports=d},65798:function(e,t,n){var r=n(20256),i=n(82952),o=n(21401),a=n(33812);e.exports=function(e){return o(e)?r(a(e)):i(e)}},57370:function(e,t,n){var r=n(34311)(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});e.exports=r},829:function(e,t,n){var r=n(62034),i=n(23813),o=n(36060),a=n(82406),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},30981:function(e){e.exports=function(){return[]}},36330:function(e){e.exports=function(){return!1}},12436:function(e,t,n){var r=n(54073),i=n(29259);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},61258:function(e,t,n){var r=n(36473),i=n(89419),o=n(38101),a=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>9007199254740991)return[];var n=4294967295,s=a(e,4294967295);t=i(t),e-=4294967295;for(var l=r(s,t);++n"+t.value+""+i[o].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},66655:function(e,t,n){"use strict";var r=n(72346);function i(e,t){for(var n=0;np.length-2?p.length-1:e.length-l;n>0;n--)if(void 0!==p[n])for(i=0;i0&&kn)s.push(e);else{for(;n>=i&&!c||c&&i1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0!==n?this.lex(e,t).toPostfix().postfixEval(n):void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t)},e.exports=r},38617:function(e,t,n){"use strict";n.d(t,{F:function(){return u},f:function(){return c}});var r=n(2784);let i=["light","dark"],o="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=(0,r.createContext)(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!==(e=(0,r.useContext)(s))&&void 0!==e?e:l},c=e=>(0,r.useContext)(s)?r.createElement(r.Fragment,null,e.children):r.createElement(f,e),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:a=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=n?"system":"light",attribute:f="data-theme",value:g,children:y,nonce:x})=>{let[b,w]=(0,r.useState)(()=>p(l,c)),[j,E]=(0,r.useState)(()=>p(l)),k=g?Object.values(g):u,S=(0,r.useCallback)(e=>{let r=e;if(!r)return;"system"===e&&n&&(r=v());let o=g?g[r]:r,s=t?m():null,l=document.documentElement;if("class"===f?(l.classList.remove(...k),o&&l.classList.add(o)):o?l.setAttribute(f,o):l.removeAttribute(f),a){let e=i.includes(c)?c:null,t=i.includes(r)?r:e;l.style.colorScheme=t}null==s||s()},[]),_=(0,r.useCallback)(e=>{w(e);try{localStorage.setItem(l,e)}catch(e){}},[e]),C=(0,r.useCallback)(t=>{let r=v(t);E(r),"system"===b&&n&&!e&&S("system")},[b,e]);(0,r.useEffect)(()=>{let e=window.matchMedia(o);return e.addListener(C),C(e),()=>e.removeListener(C)},[C]),(0,r.useEffect)(()=>{let e=e=>{e.key===l&&_(e.newValue||c)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[_]),(0,r.useEffect)(()=>{S(null!=e?e:b)},[e,b]);let O=(0,r.useMemo)(()=>({theme:b,setTheme:_,forcedTheme:e,resolvedTheme:"system"===b?j:b,themes:n?[...u,"system"]:u,systemTheme:n?j:void 0}),[b,_,e,j,n,u]);return r.createElement(s.Provider,{value:O},r.createElement(h,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:a,storageKey:l,themes:u,defaultTheme:c,attribute:f,value:g,children:y,attrs:k,nonce:x}),y)},h=(0,r.memo)(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:a,enableColorScheme:s,defaultTheme:l,value:u,attrs:c,nonce:d})=>{let f="system"===l,h="class"===n?`var d=document.documentElement,c=d.classList;c.remove(${c.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=s?i.includes(l)&&l?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${l}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",m=(e,t=!1,r=!0)=>{let o=u?u[e]:e,a=t?e+"|| ''":`'${o}'`,l="";return s&&r&&!t&&i.includes(e)&&(l+=`d.style.colorScheme = '${e}';`),"class"===n?l+=t||o?`c.add(${a})`:"null":o&&(l+=`d[s](n,${a})`),l},v=e?`!function(){${h}${m(e)}}()`:a?`!function(){try{${h}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${o}',m=window.matchMedia(t);if(m.media!==t||m.matches){${m("dark")}}else{${m("light")}}}else if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}${f?"":"else{"+m(l,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${h}var e=localStorage.getItem('${t}');if(e){${u?`var x=${JSON.stringify(u)};`:""}${m(u?"x[e]":"e",!0)}}else{${m(l,!1,!1)};}${p}}catch(t){}}();`;return r.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),p=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},v=e=>(e||(e=window.matchMedia(o)),e.matches?"dark":"light")},86570:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(48201)}])},4941:function(e,t,n){"use strict";n.d(t,{Ul:function(){return s},WD:function(){return l},fu:function(){return c},o4:function(){return u}});var r=n(52322),i=n(80446),o=n(82851),a=n(99182);function s(e){let{currentPage:t,parentPage:n,commandPage:s,className:l,...u}=e,c=(0,a.U8)(e=>e.search);if((null==n?void 0:n.namespace)===(null==t?void 0:t.namespace)&&!c)return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",l),value:"".concat(null==s?void 0:s.label," ").concat(u.children.toString()),...u})}function l(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function u(e){let{currentPage:t,commandPage:n,className:s,...l}=e,u=(0,a.U8)(e=>e.search),c=n.namespace.startsWith((null==t?void 0:t.namespace)||"");if(u&&c||!t||n.namespace===(null==t?void 0:t.namespace))return(0,r.jsx)(a.mY.Item,{className:(0,o.cx)((0,i.Vkc)(),"group",s),value:"".concat(n.label," ").concat(l.children.toString()),...l})}function c(e){let{heading:t,currentPage:n,commandPage:o,...s}=e,l=(0,a.U8)(e=>e.search);return(0,r.jsx)(a.mY.Group,{heading:l&&(null==n?void 0:n.namespace)!==o.namespace&&(0,r.jsx)(i.__J,{className:"px-1",size:"12",children:o.label}),...s})}n(2784)},82459:function(e,t,n){"use strict";n.d(t,{F:function(){return g}});var r=n(52322),i=n(80446),o=n(88242),a=n(9969),s=n(71930),l=n(5632),u=n(13242),c=n(19513),d=n(33571),f=n(98358),h=n(31781),p=n(24801),m=n(86450),v=n(2784);function g(e){var t,n;let{id:g,address:y,publicKey:x,contentProps:b,buttonProps:w}=e,j=(0,l.useRouter)(),{setFilter:E,resetFilters:k}=(0,c.l)(),{setFilter:S,resetFilters:_}=(0,u.G)(),C=(0,a.uf)(),O=(0,a.s2)(),M=(0,f.l)(),T=(0,d.I)(),A=function(){let{openConfirmDialog:e}=(0,m.Rh)(),t=(0,a.IK)();return(0,v.useCallback)(n=>e({title:"Delete contract",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to delete the following contract:"}),(0,r.jsxs)(i.nvN,{size:"14",font:"mono",children:[n.slice(0,20),"..."]})]}),onConfirm:async()=>{let e=await t.delete({params:{id:n}});e.error&&(0,i.OHV)("Error deleting contract."),(0,i.OPV)("Successfully deleted contract.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",...w,children:(0,r.jsx)(o.iG7,{})}),contentProps:{align:"start",...b,onClick:e=>{e.stopPropagation()}},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Contract ",x.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{k(),E({id:"addressContains",value:y,label:"Address contains ".concat(y)}),j.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{_(),S((0,h.e)(y)),j.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{_(),S((0,p.V)(x)),j.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(null===(t=C.data)||void 0===t?void 0:t.find(e=>e===y))?(0,r.jsxs)(i.Xiv,{onSelect:()=>M([],[y]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove host address from blocklist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>M([y],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add host address to blocklist"]}),(null===(n=O.data)||void 0===n?void 0:n.find(e=>e===x))?(0,r.jsxs)(i.Xiv,{onSelect:()=>T([],[x]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove host public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>T([x],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add host public key to allowlist"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>A(g),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.Jrl,{})}),"Delete contract"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(g,"contract ID"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Contract ID"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(x,"host public key"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host public key"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>(0,i.vQq)(y,"host address"),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.olJ,{})}),"Host address"]})]})}},93216:function(e,t,n){"use strict";n.d(t,{F:function(){return M}});var r=n(52322),i=n(80446),o=n(4941);let a={namespace:"contracts/filterExpiryDate",label:"Contracts filter by expiry date"},s=[{id:"expiry",value:"day",label:"expires today",fn:e=>{let t=new Date().getTime(),n=t+(0,i.NrH)(1);return e.endTimet}},{id:"expiry",value:"week",label:"expires this week",fn:e=>{let t=new Date().getTime(),n=t+(0,i.BL0)(1);return e.endTimet}},{id:"expiry",value:"month",label:"expires this month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xLV)(1);return e.endTimet}},{id:"expiry",value:"nextMonth",label:"expires next month",fn:e=>{let t=new Date().getTime(),n=t+(0,i.xLV)(2);return e.endTimet}},{id:"expiry",value:"year",label:"expires this year",fn:e=>{let t=new Date().getTime(),n=t+(0,i.ivg)(1);return e.endTimet}},{id:"expiry",value:"expired",label:"expired",fn:e=>{let t=new Date().getTime();return e.endTime(0,r.jsx)(o.WD,{currentPage:t,commandPage:a,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}let u={namespace:"contracts/filterFormationDate",label:"Contracts filter by formation date"},c=[{id:"formationDate",value:"day",label:"formed in the last day",fn:e=>{let t=new Date().getTime(),n=t-(0,i.NrH)(1);return e.startTime>=n}},{id:"formationDate",value:"week",label:"formed in the last week",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(1);return e.startTime>=n}},{id:"formationDate",value:"twoWeeks",label:"formed in the last two weeks",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(2);return e.startTime>=n}},{id:"formationDate",value:"month",label:"formed in the last month",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(1);return e.startTime>=n}},{id:"formationDate",value:"twoMonths",label:"formed in the last two months",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(2);return e.startTime>=n}},{id:"formationDate",value:"year",label:"formed in the last year",fn:e=>{let t=new Date().getTime(),n=t-(0,i.ivg)(1);return e.startTime>=n}}];function d(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(o.fu,{currentPage:t,commandPage:u,children:c.map(e=>(0,r.jsx)(o.WD,{currentPage:t,commandPage:u,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}let f={namespace:"contracts/filterRenewDate",label:"Contracts filter by renew date"},h=[{id:"renewDate",value:"day",label:"renewed in the last day",fn:e=>{let t=new Date().getTime(),n=t-(0,i.NrH)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"week",label:"renewed in the last week",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"twoWeeks",label:"renewed in the last two weeks",fn:e=>{let t=new Date().getTime(),n=t-(0,i.BL0)(2);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"month",label:"renewed in the last month",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(1);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"twoMonths",label:"renewed in the last two months",fn:e=>{let t=new Date().getTime(),n=t-(0,i.xLV)(2);return e.isRenewed&&e.startTime>=n}},{id:"renewDate",value:"year",label:"renewed in the last year",fn:e=>{let t=new Date().getTime(),n=t-(0,i.ivg)(1);return e.isRenewed&&e.startTime>=n}}];function p(e){let{currentPage:t,select:n}=e;return(0,r.jsx)(o.fu,{currentPage:t,commandPage:f,children:h.map(e=>(0,r.jsx)(o.WD,{currentPage:t,commandPage:f,onSelect:()=>{n(e)},children:e.label},e.id+e.value))})}var m=n(86450),v=n(31781);let g={namespace:"contracts/filterAddress",label:"Contracts filter by address"};function y(e){let{select:t,currentPage:n}=e,{openDialog:i}=(0,m.Rh)(),a=(0,v.e)("");return(0,r.jsx)(o.fu,{currentPage:n,commandPage:g,children:(0,r.jsx)(o.WD,{currentPage:n,commandPage:g,onSelect:()=>{t(),i("contractsFilterAddress")},children:a.label})})}function x(e){let{select:t,currentPage:n,parentPage:i,commandPage:a}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(o.Ul,{currentPage:n,parentPage:i,commandPage:a,onSelect:()=>{t(),s("contractsFilterAddress")},children:g.label})}var b=n(24801);let w={namespace:"contracts/filterPublicKey",label:"Contracts filter by public key"};function j(e){let{select:t,currentPage:n}=e,i=(0,b.V)(""),{openDialog:a}=(0,m.Rh)();return(0,r.jsx)(o.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(o.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),a("contractsFilterPublicKey")},children:i.label})})}function E(e){let{select:t,currentPage:n,parentPage:i,commandPage:a}=e,{openDialog:s}=(0,m.Rh)();return(0,r.jsx)(o.Ul,{currentPage:n,parentPage:i,commandPage:a,onSelect:()=>{t(),s("contractsFilterPublicKey")},children:w.label})}function k(e){let{currentPage:t,select:n}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(y,{currentPage:t,select:n}),(0,r.jsx)(j,{currentPage:t,select:n}),(0,r.jsx)(l,{currentPage:t,select:n}),(0,r.jsx)(d,{currentPage:t,select:n}),(0,r.jsx)(p,{currentPage:t,select:n})]})}let S={namespace:"contracts",label:"Contracts"};function _(e){let{currentPage:t,parentPage:n,pushPage:i,select:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x,{currentPage:t,parentPage:n,commandPage:S,select:s}),(0,r.jsx)(E,{currentPage:t,parentPage:n,commandPage:S,select:s}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(u)},children:u.label}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(a)},children:a.label}),(0,r.jsx)(o.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{i(f)},children:f.label})]})}var C=n(13242),O=n(2784);function M(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,C.G)(),l=(0,O.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(k,{currentPage:t,select:l})]})}},31781:function(e,t,n){"use strict";n.d(t,{e:function(){return u},p:function(){return f}});var r=n(52322),i=n(80446),o=n(13242),a=n(9156),s=n(24511),l=n(86450);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e),fn:t=>t.hostIp.includes(e)}}let c={address:""},d=s.Ry().shape({address:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.address)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by address",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Address",name:"address",placeholder:"Partial match against domain or IP",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},24801:function(e,t,n){"use strict";n.d(t,{C:function(){return f},V:function(){return u}});var r=n(52322),i=n(80446),o=n(13242),a=n(9156),s=n(24511),l=n(86450);function u(e){return{id:"publicKeyContains",value:e,label:"public key contains ".concat((0,i.$Gg)(e,20)),fn:t=>t.hostKey.includes(e)}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.G)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.publicKey)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by public key",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},4370:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(13242),i=n(34658);function o(){var e;let t=(0,i.w)(),{datasetConfirmedCount:n,isLoading:o}=(0,r.G)(),a=t.data&&!o&&n{e.stopPropagation()}},children:[(0,r.jsx)("div",{className:"px-1.5 py-1",children:(0,r.jsxs)(i.xvT,{size:"14",weight:"medium",color:"subtle",children:["Host ",g.slice(0,24),"..."]})}),(0,r.jsx)(i.Juw,{children:"Filters"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w({id:"addressContains",value:v,label:"Address contains ".concat((0,i.$Gg)(v,20))}),b.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{j(),w((0,m.K)(g)),b.push(s._.hosts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter hosts by public key"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{k(),E((0,h.e)(v)),b.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host address"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{k(),E((0,p.V)(g)),b.push(s._.contracts.index)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.q0D,{})}),"Filter contracts by host public key"]}),(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>M.post({payload:{hostKey:g,hostIP:v,timeout:(0,i.XBW)(30)}}),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o._Eq,{})}),"Rescan host"]}),(null===(t=S.data)||void 0===t?void 0:t.find(e=>e===v))?(0,r.jsxs)(i.Xiv,{onSelect:()=>C([],[v]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove address from blocklist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>C([v],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add address to blocklist"]}),(null===(n=_.data)||void 0===n?void 0:n.find(e=>e===g))?(0,r.jsxs)(i.Xiv,{onSelect:()=>O([],[g]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Remove public key from allowlist"]}):(0,r.jsxs)(i.Xiv,{onSelect:()=>O([g],[]),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(o.nCM,{})}),"Add public key to allowlist"]})]})}},34444:function(e,t,n){"use strict";n.d(t,{T:function(){return j},N:function(){return w}});var r=n(52322),i=n(2784),o=n(80446),a=n(96206),s=n(6391),l=n.n(s);function u(e){let{host:t,rates:n}=e,r=n?"$".concat(new(l())(t.settings.storageprice).times((0,o.xf5)(1)).times((0,o.S5V)(1)).div(1e24).times((null==n?void 0:n.usd)||1).toFixed(2),"/TB"):"".concat((0,a.Vz)(new(l())(t.settings.storageprice).times((0,o.xf5)(1)).times((0,o.S5V)(1)),{fixed:0}),"/TB"),i="".concat((0,a.vW)(t.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).toNumber())," utilized"),s="".concat((0,a.vW)(t.settings.remainingstorage)," / ").concat((0,a.vW)(t.settings.totalstorage)," available");return"".concat((0,o.HLH)(t.countryCode)," \xb7 ").concat(r," \xb7 ").concat(i," \xb7 ").concat(s)}var c=function(){let[e,t]=(0,i.useState)(null),[n,r]=(0,i.useState)({width:0,height:0}),o=(0,i.useCallback)(()=>{r({width:(null==e?void 0:e.offsetWidth)||0,height:(null==e?void 0:e.offsetHeight)||0})},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]);return d("resize",o),h(()=>{o()},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]),[t,n]},d=function(e,t,n,r){let o=(0,i.useRef)(t);h(()=>{o.current=t},[t]),(0,i.useEffect)(()=>{var t;let i=null!==(t=null==n?void 0:n.current)&&void 0!==t?t:window;if(!(i&&i.addEventListener))return;let a=e=>o.current(e);return i.addEventListener(e,a,r),()=>{i.removeEventListener(e,a,r)}},[e,n,r])};let f="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;var h=f,p=n(2850),m=n(25237),v=n.n(m);let g=v()(()=>Promise.all([n.e(546),n.e(508),n.e(167),n.e(764),n.e(17)]).then(n.bind(n,45017)),{loadableGenerated:{webpack:()=>[45017]},ssr:!1}),y=(0,i.forwardRef)(function(e,t){return(0,r.jsx)(g,{...e,forwardRef:t})});var x=n(10917),b=n(47025);let w={moveToLocation:(e,t)=>null};function j(e){let{activeHost:t,hosts:n,onMount:o,onHostClick:a,onHostHover:s}=e,d=(0,b.BW)({config:{swr:{revalidateOnFocus:!1}}}),f=(0,i.useRef)(null),h=(0,i.useRef)(w),m=(0,i.useCallback)((e,t)=>{var n;e&&(null===(n=f.current)||void 0===n||n.pointOfView({lat:e[0]-8,lng:e[1],altitude:t||1.5},700))},[]);(0,i.useEffect)(()=>{h.current.moveToLocation=m},[m]),(0,p.Q5)(()=>{var e;if(!f.current)return!1;m((null==t?void 0:t.location)||[48.8323,2.4075],1.5);let n=null===(e=f.current)||void 0===e?void 0:e.scene().children.find(e=>"DirectionalLight"===e.type);return n&&(n.intensity=10),!0}),(0,i.useEffect)(()=>{o&&o(h.current)},[]);let[v,{height:g,width:j}]=c(),E=(0,i.useMemo)(()=>n||[],[n]);return(0,r.jsx)("div",{ref:v,className:"w-full h-full",children:(0,r.jsx)(y,{ref:f,width:j,height:g,backgroundColor:"rgba(0,0,0,0)",globeImageUrl:"/_next/static/media/earth-dark-contrast.bf7081fc.png",bumpImageUrl:"/_next/static/media/earth-topology.e385a70e.png",arcsData:[],atmosphereColor:"rgba(0,0,0,0)",atmosphereAltitude:.16,animateIn:!1,arcLabel:e=>{var t;return u({host:e.dst,rates:null===(t=d.data)||void 0===t?void 0:t.rates.sc})},arcStartLat:e=>+e.src.location[0],arcStartLng:e=>+e.src.location[1],arcEndLat:e=>+e.dst.location[0],arcEndLng:e=>+e.dst.location[1],arcDashLength:.75,arcAltitude:0,arcDashGap:.1,arcDashInitialGap:()=>Math.random(),arcDashAnimateTime:5e3,arcColor:e=>t&&(e.dst.publicKey===t.publicKey||e.src.publicKey===t.publicKey)?["rgba(187, 229, 201, 0.25)","rgba(187, 229, 201, 0.25)"]:["rgba(187, 229, 201, 0.10)","rgba(187, 229, 201, 0.10)"],arcsTransitionDuration:0,pointsData:E,pointLat:e=>e.location[0],pointLng:e=>e.location[1],pointLabel:e=>{var t;return u({host:e,rates:null===(t=d.data)||void 0===t?void 0:t.rates.sc})},pointAltitude:e=>(t&&e.publicKey===(null==t?void 0:t.publicKey)||e.activeContractsCount.gt(0),.1),pointsTransitionDuration:0,pointColor:e=>{let{colorHex:n}=(0,x.Kg)(e);return t&&e.publicKey!==(null==t?void 0:t.publicKey)?function(e,t){let n=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return"rgba(".concat(n,", ").concat(r,", ").concat(i,", ").concat(.2,")")}(n,0):n},pointRadius:e=>(e.activeContractsCount.gt(0)&&e.activeContracts.reduce((e,t)=>e.plus(t.size),new(l())(0)).div(1e12).toNumber(),Math.max(e.settings.remainingstorage/1e13/3,.1)),onPointHover:e=>{e&&(null==s||s(e.publicKey,e.location))},onPointClick:e=>{e&&(null==a||a(e.publicKey,e.location))},pointsMerge:!1})})}},18006:function(e,t,n){"use strict";n.d(t,{L:function(){return M}});var r=n(52322),i=n(4941),o=n(86450),a=n(2320);let s={namespace:"hosts/filterAddress",label:"Hosts filter by address"};function l(e){let{select:t,currentPage:n}=e,{openDialog:l}=(0,o.Rh)(),u=(0,a.q)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:s,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:s,onSelect:()=>{t(),l("hostsFilterAddress")},children:u.label})})}function u(e){let{select:t,currentPage:n,parentPage:a,commandPage:l}=e,{openDialog:u}=(0,o.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:a,commandPage:l,onSelect:()=>{t(),u("hostsFilterAddress")},children:s.label})}let c={namespace:"hosts/filterAllowBlock",label:"Hosts filter by allow/block status"},d=[{id:"filterMode",value:"allowed",label:"allowed"},{id:"filterMode",value:"blocked",label:"blocked"}];function f(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:c,children:d.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:c,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}let h={namespace:"hosts/filterActiveContracts",label:"Hosts filter by contracts"},p={id:"hasActiveContracts",bool:!0,label:"has active contracts"};function m(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:h,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:h,onSelect:()=>{t(p)},children:p.label})})}let v={namespace:"hosts/filterUsable",label:"Hosts filter by usable"},g=[{id:"usabilityMode",value:"usable",label:"usable"},{id:"usabilityMode",value:"unusable",label:"unusable"}];function y(e){let{select:t,currentPage:n}=e;return(0,r.jsx)(i.fu,{currentPage:n,commandPage:v,children:g.map(e=>(0,r.jsx)(i.WD,{currentPage:n,commandPage:v,onSelect:()=>{t(e)},children:e.label},e.id+e.value))})}var x=n(91641),b=n(54155);let w={namespace:"hosts/filterPublicKey",label:"Hosts filter by public key"};function j(e){let{select:t,currentPage:n}=e,{openDialog:a}=(0,o.Rh)(),s=(0,b.K)("");return(0,r.jsx)(i.fu,{currentPage:n,commandPage:w,children:(0,r.jsx)(i.WD,{currentPage:n,commandPage:w,onSelect:()=>{t(),a("hostsFilterPublicKey")},children:s.label})})}function E(e){let{select:t,currentPage:n,parentPage:a,commandPage:s}=e,{openDialog:l}=(0,o.Rh)();return(0,r.jsx)(i.Ul,{currentPage:n,parentPage:a,commandPage:s,onSelect:()=>{t(),l("hostsFilterPublicKey")},children:w.label})}function k(e){let{currentPage:t,select:n}=e,{autopilot:i}=(0,x.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===i.status&&(0,r.jsx)(y,{currentPage:t,select:n}),(0,r.jsx)(m,{currentPage:t,select:n}),(0,r.jsx)(l,{currentPage:t,select:n}),(0,r.jsx)(j,{currentPage:t,select:n}),(0,r.jsx)(f,{currentPage:t,select:n})]})}let S={namespace:"hosts",label:"Hosts"};function _(e){let{currentPage:t,parentPage:n,pushPage:o,select:a}=e,{autopilot:s}=(0,x.q)();return(0,r.jsxs)(r.Fragment,{children:["on"===s.status&&(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(v)},children:v.label}),(0,r.jsx)(E,{currentPage:t,parentPage:n,commandPage:S,select:a}),(0,r.jsx)(u,{currentPage:t,parentPage:n,commandPage:S,select:a}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(h)},children:h.label}),(0,r.jsx)(i.Ul,{currentPage:t,parentPage:n,commandPage:S,onSelect:()=>{o(c)},children:c.label})]})}var C=n(19513),O=n(2784);function M(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,{setFilter:s}=(0,C.l)(),l=(0,O.useCallback)(e=>{o&&o(),e&&s(e),a&&a()},[s,o,a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_,{parentPage:n,currentPage:t,pushPage:i,select:l}),(0,r.jsx)(k,{currentPage:t,pushPage:i,select:l})]})}},2320:function(e,t,n){"use strict";n.d(t,{g:function(){return f},q:function(){return u}});var r=n(52322),i=n(80446),o=n(19513),a=n(9156),s=n(24511),l=n(86450);function u(e){return{id:"addressContains",value:e,label:"address contains ".concat(e)}}let c={address:""},d=s.Ry().shape({address:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.l)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.address)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by address",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Address",name:"address",placeholder:"Partial match against domain or IP",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},54155:function(e,t,n){"use strict";n.d(t,{K:function(){return u},a:function(){return f}});var r=n(52322),i=n(80446),o=n(19513),a=n(9156),s=n(24511),l=n(86450);function u(e){return{id:"publicKeyEquals",value:e,label:"public key is ".concat((0,i.$Gg)(e,20))}}let c={publicKey:""},d=s.Ry().shape({publicKey:s.Z_().required("Required")});function f(e){let{trigger:t,open:n,onOpenChange:s}=e,{closeDialog:f}=(0,l.Rh)(),{setFilter:h}=(0,o.l)(),p=(0,a.TA)({initialValues:c,validationSchema:d,onSubmit:e=>{h(u(e.publicKey)),p.resetForm(),f()}});return(0,r.jsx)(i.VqE,{trigger:t,title:"Filter by public key",open:n,onOpenChange:e=>{e||p.resetForm(),s(e)},contentVariants:{className:"w-[400px]"},onSubmit:p.handleSubmit,children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(i.cB7,{formik:p,title:"Public key",name:"publicKey",placeholder:"ed25519:b050c0c6...",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(i.IKw,{formik:p,size:"medium",children:"Filter"})]})})})}},71930:function(e,t,n){"use strict";n.d(t,{_:function(){return i},h:function(){return o}});var r=n(9969);let i={home:"/",files:{index:"/files"},config:{index:"/config",storage:"/config#storage",pricing:"/config#pricing",hosts:"/config#hosts",wallet:"/config#wallet",contracts:"/config#contracts",uploads:"/config#uploads",redundancy:"/config#redundancy"},contracts:{index:"/contracts"},hosts:{index:"/hosts"},wallet:{view:"/wallet"},node:{index:"/node"},login:"/login"},o=r.HI},91641:function(e,t,n){"use strict";n.d(t,{w:function(){return u},q:function(){return l}});var r=n(52322),i=n(2784),o=n(80446),a=n(9969);let s=(0,i.createContext)({}),l=()=>(0,i.useContext)(s);function u(e){let{children:t}=e,n=function(){let e=function(){let e=(0,a.YX)({config:{swr:{dedupingInterval:(0,o.XBW)(5),revalidateOnFocus:!1,refreshInterval:e=>e?(0,o.XBW)(60):(0,o.XBW)(1)}}}),[t,n]=(0,i.useState)("init");return(0,i.useEffect)(()=>{if(e.isLoading)n("init");else if(e.isValidating)return;else if(e.error)n("off");else if(e.data){let t="object"==typeof e.data;n(t?"on":"off")}},[e]),{status:t,state:e}}();return{autopilot:e}}();return(0,r.jsx)(s.Provider,{value:n,children:t})}},17286:function(e,t,n){"use strict";n.d(t,{iV:function(){return V},ZR:function(){return z}});var r=n(52322),i=n(2784),o=n(80446),a=n(6391),s=n.n(a),l=n(9969),u=n(96206);let c={autopilotContractSet:"",amountHosts:void 0,allowanceMonth:void 0,periodWeeks:void 0,renewWindowWeeks:void 0,downloadTBMonth:void 0,uploadTBMonth:void 0,storageTB:void 0,allowRedundantIPs:!1,maxDowntimeHours:void 0,minRecentScanFailures:void 0,defragThreshold:void 0},d={defaultContractSet:""},f={uploadPackingEnabled:!0},h={includeRedundancyMaxStoragePrice:!0,includeRedundancyMaxUploadPrice:!0},p={maxRpcPriceMillion:void 0,maxStoragePriceTBMonth:void 0,maxContractPrice:void 0,maxDownloadPriceTB:void 0,maxUploadPriceTB:void 0,minMaxCollateral:void 0,hostBlockHeightLeeway:void 0,minPriceTableValidityMinutes:void 0,minAccountExpiryDays:void 0,minMaxEphemeralAccountBalance:void 0},m={minShards:void 0,totalShards:void 0},v={...c,...d,...f,...p,...m,...h},g={...c,downloadTBMonth:new(s())(1),uploadTBMonth:new(s())(1),periodWeeks:new(s())(6),renewWindowWeeks:new(s())(2),amountHosts:new(s())(50),autopilotContractSet:"autopilot",allowRedundantIPs:!1,maxDowntimeHours:new(s())(336),minRecentScanFailures:new(s())(10),defragThreshold:new(s())(1e3)},y={...d,defaultContractSet:"autopilot"};({...f});let x={...p};function b(e){let{isAutopilotEnabled:t,showAdvanced:n,redundancyMultiplier:i,includeRedundancyMaxStoragePrice:a,includeRedundancyMaxUploadPrice:l,storageAverage:u,uploadAverage:c,downloadAverage:d,contractAverage:f}=e;return{storageTB:{type:"number",category:"storage",title:"Expected storage",description:(0,r.jsx)(r.Fragment,{children:"The amount of storage you would like to rent in TB."}),units:"TB",hidden:!t,validation:t?{required:"required"}:{}},uploadTBMonth:{type:"number",category:"storage",title:"Expected upload",description:(0,r.jsx)(r.Fragment,{children:"The amount of upload bandwidth you plan to use each month in TB."}),units:"TB/month",hidden:!t||!n,validation:t&&n?{required:"required"}:{}},downloadTBMonth:{type:"number",category:"storage",title:"Expected download",description:(0,r.jsx)(r.Fragment,{children:"The amount of download bandwidth you plan to use each month in TB."}),units:"TB/month",hidden:!t||!n,validation:t&&n?{required:"required"}:{}},allowanceMonth:{type:"siacoin",category:"storage",title:"Allowance",description:(0,r.jsx)(r.Fragment,{children:"The amount of Siacoin you would like to spend per month."}),units:"SC/month",decimalsLimitSc:6,hidden:!t||!n,validation:t&&n?{required:"required"}:{}},periodWeeks:{type:"number",category:"storage",title:"Period",description:(0,r.jsx)(r.Fragment,{children:"The length of the storage contracts."}),units:"weeks",suggestion:g.periodWeeks,suggestionTip:"Typically ".concat(g.periodWeeks," weeks."),hidden:!t||!n,validation:t&&n?{required:"required"}:{}},renewWindowWeeks:{type:"number",category:"storage",title:"Renew window",description:(0,r.jsx)(r.Fragment,{children:"The number of weeks prior to contract expiration that Sia will attempt to renew your contracts."}),units:"weeks",decimalsLimit:6,suggestion:g.renewWindowWeeks,suggestionTip:"Typically ".concat(g.renewWindowWeeks," weeks."),hidden:!t||!n,validation:t&&n?{required:"required"}:{}},amountHosts:{type:"number",category:"storage",title:"Hosts",description:(0,r.jsx)(r.Fragment,{children:"The number of hosts to create contracts with."}),units:"hosts",decimalsLimit:0,suggestion:g.amountHosts,suggestionTip:"Typically ".concat(g.amountHosts," hosts."),hidden:!t||!n,validation:t&&n?{required:"required"}:{}},autopilotContractSet:{type:"text",category:"storage",title:"Contract set",description:(0,r.jsx)(r.Fragment,{children:"The contract set that autopilot should use. This should typically be the same as the default contract set."}),placeholder:g.autopilotContractSet,suggestion:g.autopilotContractSet,suggestionTip:(0,r.jsxs)(r.Fragment,{children:["The default contract set is"," ",(0,r.jsx)(o.EKh,{children:g.autopilotContractSet}),"."]}),hidden:!t||!n,validation:t&&n?{required:"required"}:{}},allowRedundantIPs:{type:"boolean",category:"hosts",title:"Redundant IPs",description:(0,r.jsx)(r.Fragment,{children:"Whether or not to allow forming contracts with multiple hosts in the same IP subnet. The subnets used are /16 for IPv4, and /64 for IPv6."}),suggestion:g.allowRedundantIPs,suggestionTip:"Defaults to ".concat(g.allowRedundantIPs?"on":"off","."),hidden:!t||!n,validation:{}},maxDowntimeHours:{type:"number",category:"hosts",title:"Max downtime",description:(0,r.jsx)(r.Fragment,{children:"The maximum amount of host downtime that autopilot will tolerate in hours."}),units:"hours",suggestion:g.maxDowntimeHours,suggestionTip:"Defaults to ".concat(g.maxDowntimeHours.toNumber().toLocaleString()," which is ").concat((0,o.y70)(new(s())((0,o.XAn)(g.maxDowntimeHours.toNumber())),1)," days."),hidden:!t||!n,validation:t&&n?{required:"required"}:{}},minRecentScanFailures:{type:"number",category:"hosts",title:"Min recent scan failures",description:(0,r.jsx)(r.Fragment,{children:"The minimum number of recent scan failures that autopilot will tolerate."}),units:"scans",decimalsLimit:0,suggestion:g.minRecentScanFailures,suggestionTip:"Defaults to ".concat(g.minRecentScanFailures.toNumber(),"."),hidden:!t||!n,validation:t&&n?{required:"required"}:{}},defragThreshold:{type:"number",category:"wallet",title:"Defrag threshold",description:(0,r.jsx)(r.Fragment,{children:"The threshold after which autopilot will defrag wallet outputs."}),units:"outputs",suggestion:g.defragThreshold,suggestionTip:"Defaults to 1,000.",hidden:!t||!n,validation:t&&n?{required:"required"}:{}},defaultContractSet:{category:"contractset",type:"text",title:"Default contract set",placeholder:y.defaultContractSet,suggestion:y.defaultContractSet,suggestionTip:(0,r.jsx)(r.Fragment,{children:"Autopilot users will typically want to keep this the same as the autopilot contract set."}),description:(0,r.jsx)(r.Fragment,{children:"The default contract set is where data is uploaded to by default."}),hidden:!n,validation:n?{required:"required"}:{}},uploadPackingEnabled:{category:"uploadpacking",type:"boolean",title:"Upload packing",description:(0,r.jsx)(r.Fragment,{children:"Data on the Sia network is stored in 4MiB sectors. With the default 10 of 30 redundancy scheme, uploaded files are split into 40MiB chunks and encoded into 120MiB slabs. This means that storage is wasted on padding and files smaller than 40MiB still use 120MiB of space. The redundancy scheme can be configured, but unless all files are exactly 4MiB * the redundancy's minimum shards, there will always be wasted storage. Upload packing avoids this waste by buffering files and packing them together before they are uploaded to the network. This trades some performance for storage efficiency. It is also important to note that because buffered files are temporarily stored on disk they must be considered when backing up your renterd data."}),hidden:!n,validation:{}},maxStoragePriceTBMonth:{category:"gouging",type:"siacoin",title:"Max storage price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to store 1 TB per month."}),units:"SC/TB/month",average:u,averageTip:w(a,i),after:function(e){let{form:t,fields:n}=e;return(0,r.jsx)(o.ua7,{align:"start",side:"bottom",content:j(a,i),children:(0,r.jsx)("div",{children:(0,r.jsx)(o.QBj,{size:"small",form:t,fields:n,name:"includeRedundancyMaxStoragePrice",group:!1,children:(0,r.jsxs)(o.xvT,{size:"12",weight:"medium",children:["Including ",i.toFixed(1),"x redundancy"]})})})})},decimalsLimitSc:6,validation:{required:"required"}},maxUploadPriceTB:{category:"gouging",type:"siacoin",title:"Max upload price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to upload 1 TB."}),units:"SC/TB/month",average:c,averageTip:w(l,i),after:function(e){let{form:t,fields:n}=e;return(0,r.jsx)(o.ua7,{align:"start",side:"bottom",content:j(l,i),children:(0,r.jsx)("div",{children:(0,r.jsx)(o.QBj,{size:"small",form:t,fields:n,name:"includeRedundancyMaxUploadPrice",group:!1,children:(0,r.jsxs)(o.xvT,{size:"12",weight:"medium",children:["Including ",i.toFixed(1),"x redundancy"]})})})})},decimalsLimitSc:6,hidden:!n,validation:n?{required:"required"}:{}},maxDownloadPriceTB:{category:"gouging",type:"siacoin",title:"Max download price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to download 1 TB."}),units:"SC/TB/month",average:d,averageTip:"Averages provided by Sia Central.",decimalsLimitSc:6,hidden:!n,validation:n?{required:"required"}:{}},maxContractPrice:{category:"gouging",type:"siacoin",title:"Max contract price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed price to form a contract."}),average:f,decimalsLimitSc:6,tipsDecimalsLimitSc:3,hidden:!n,validation:n?{required:"required"}:{}},maxRpcPriceMillion:{category:"gouging",type:"siacoin",title:"Max RPC price",description:(0,r.jsx)(r.Fragment,{children:"The max allowed base price for RPCs in siacoins per million calls."}),units:"SC/million",decimalsLimitSc:6,hidden:!n,validation:n?{required:"required"}:{}},minMaxCollateral:{category:"gouging",type:"siacoin",title:"Min max collateral",description:(0,r.jsx)(r.Fragment,{children:"The min value for max collateral in the host's price settings."}),decimalsLimitSc:6,hidden:!n,validation:n?{required:"required"}:{}},hostBlockHeightLeeway:{category:"gouging",type:"number",title:"Block height leeway",description:(0,r.jsx)(r.Fragment,{children:"The amount of blocks of leeway given to the host block height in the host's price table."}),units:"blocks",decimalsLimit:0,suggestion:x.hostBlockHeightLeeway,suggestionTip:"The recommended value is 6 blocks.",hidden:!n,validation:n?{required:"required",validate:{min:e=>new(s())(e).gte(3)||"must be at least 3 blocks"}}:{}},minPriceTableValidityMinutes:{category:"gouging",type:"number",title:"Min price table validity",units:"minutes",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `Validity` in the host's price settings."}),hidden:!n,validation:n?{required:"required",validate:{min:e=>new(s())(e).gte((0,o.GXN)(10))||"must be at least 10 seconds"}}:{}},minAccountExpiryDays:{category:"gouging",type:"number",title:"Min account expiry",units:"days",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `AccountExpiry` in the host's price settings."}),hidden:!n,validation:n?{required:"required",validate:{min:e=>new(s())(e).gte((0,o.XAn)(1))||"must be at least 1 hour"}}:{}},minMaxEphemeralAccountBalance:{category:"gouging",type:"siacoin",title:"Min max ephemeral account balance",description:(0,r.jsx)(r.Fragment,{children:"The min accepted value for `MaxEphemeralAccountBalance` in the host's price settings."}),decimalsLimitSc:6,hidden:!n,validation:n?{required:"required",validate:{min:e=>new(s())(e).gte(1)||"must be at least 1 SC"}}:{}},minShards:{type:"number",category:"redundancy",title:"Min shards",description:(0,r.jsx)(r.Fragment,{children:"The min amount of shards needed to reconstruct a slab."}),units:"shards",hidden:!n,validation:n?{required:"required",validate:{min:e=>new(s())(e).gt(0)||"must be greater than 0"}}:{},trigger:["totalShards"]},totalShards:{type:"number",category:"redundancy",title:"Total shards",description:(0,r.jsx)(r.Fragment,{children:"The total amount of shards for each slab."}),units:"shards",hidden:!n,validation:n?{required:"required",validate:{gteMinShards:(e,t)=>new(s())(e).gte(t.minShards)||"must be at least equal to min shards",max:e=>new(s())(e).lt(256)||"must be less than 256"}}:{}},includeRedundancyMaxStoragePrice:{type:"boolean",title:"Include redundancy",validation:{}},includeRedundancyMaxUploadPrice:{type:"boolean",title:"Include redundancy",validation:{}}}}function w(e,t){return e?"The average price is adjusted for ".concat(t.toFixed(1),"x redundancy. Averages provided by Sia Central."):"The average price is not adjusted for redundancy. Averages provided by Sia Central."}function j(e,t){return e?(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)(o.xvT,{color:"subtle",children:["Specified max price includes the cost of"," ",t.toFixed(1),"x redundancy."]}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["Redundancy is calculated from the ratio of data shards:"," ",(0,r.jsx)(o.EKh,{children:"min shards / total shards"}),"."]})]}):"Specified max price does not include redundancy."}({...m});let E=e=>Object.fromEntries(Object.entries(e).filter(e=>{let[t,n]=e;return void 0!==n&&""!==n}));function k(e,t){let n=e.defaultContractSet||(null==t?void 0:t.default)||y.defaultContractSet;return{...t,default:n}}function S(e,t){let n=new(s())(1),r=e&&t&&!e.isZero()&&!t.isZero()&&t.gte(e);return r&&(n=t.div(e)),n}function _(e,t,n){let r=S(e,t);return n?r:new(s())(1)}function C(e,t){let n=(0,o.mvJ)(t.toNumber());return e.times(n).div((0,o.S5V)(1))}function O(e,t){let n=e.div(t);return n.times((0,o.S5V)(1))}var M=n(63955),T=n(92762),A=n(80489),P=n(2850);let N="v0-config-display-options";var R=n(34658),D=n(47025),L=n(91641);let F=(0,i.createContext)({}),z=()=>(0,i.useContext)(F);function V(e){let{children:t}=e,n=function(){var e,t,n;let a=(0,L.q)(),f="on"===a.autopilot.status,p=(0,l.e$)({disabled:!f,standalone:"configFormAutopilot",config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}}),m=(0,A.a)({standalone:"configFormContractSet",config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}}),y=(e={standalone:"configFormConfigApp",config:{swr:{errorRetryCount:0,refreshInterval:(0,o.sWj)(1)}}},(0,l.yu)({...e,params:{key:N}})),x=(t={standalone:"configFormGouging",config:{swr:{refreshInterval:(0,o.sWj)(1)}}},(0,l.yu)({...t,params:{key:"gouging"}})),w=(0,R.w)({standalone:"configFormRedundancy",config:{swr:{refreshInterval:(0,o.sWj)(1)}}}),j=(n={standalone:"configFormUploadPacking",config:{swr:{refreshInterval:(0,o.sWj)(1)}}},(0,l.yu)({...n,params:{key:"uploadpacking"}})),F=(0,l.KJ)(),z=(0,D.BF)({config:{swr:{revalidateOnFocus:!1}}}),[V,I]=(0,T.Z)("v0/config/showAdvanced",{defaultValue:!1}),{shouldSyncDefaultContractSet:Z,setShouldSyncDefaultContractSet:B,syncDefaultContractSet:H}=function(){let[e,t]=(0,T.Z)("v0/autopilot/syncDefaultContractSet",{defaultValue:!0}),n=(0,A.a)({config:{swr:{errorRetryCount:0}}}),a=(0,l.KJ)(),s=(0,i.useCallback)(async t=>{let i=n.data||{default:""};try{e&&t!==i.default&&(await a.put({params:{key:"contractset"},payload:k({defaultContractSet:t},n.data)}),n.mutate(),(0,o.OPV)((0,r.jsxs)(o.xvT,{children:["Default contract set has been updated to:"," ",(0,r.jsx)(o.EKh,{children:t}),"."]})))}catch(e){(0,o.OHV)(e.message),console.log(e)}},[n.data,a,e]);return{shouldSyncDefaultContractSet:e,setShouldSyncDefaultContractSet:t,syncDefaultContractSet:s}}(),U=(0,l.oe)(),W=(0,M.cI)({mode:"all",defaultValues:v}),q=(0,i.useCallback)((e,t,n,r,i,a)=>{let l=function(e,t,n,r,i,a){let l=a?{includeRedundancyMaxStoragePrice:a.includeRedundancyMaxStoragePrice,includeRedundancyMaxUploadPrice:a.includeRedundancyMaxUploadPrice}:h,f={minShards:new(s())(i.minShards),totalShards:new(s())(i.totalShards)};return{...function(e){if(!e)return c;let t=e.contracts.set,n=(0,u.ll)(O(new(s())(e.contracts.allowance),e.contracts.period),6),r=new(s())(e.contracts.amount),i=new(s())((0,o.x5w)(e.contracts.period)),a=new(s())((0,o.x5w)(e.contracts.renewWindow)),l=new(s())((0,o.y70)(O((0,o.JWi)(e.contracts.download),e.contracts.period),2)),d=new(s())((0,o.y70)(O((0,o.JWi)(e.contracts.upload),e.contracts.period),2)),f=(0,o.JWi)(new(s())(e.contracts.storage));return{autopilotContractSet:t,allowanceMonth:n,amountHosts:r,periodWeeks:i,renewWindowWeeks:a,downloadTBMonth:l,uploadTBMonth:d,storageTB:f,allowRedundantIPs:e.hosts.allowRedundantIPs,maxDowntimeHours:new(s())(e.hosts.maxDowntimeHours),minRecentScanFailures:new(s())(e.hosts.minRecentScanFailures),defragThreshold:new(s())(e.wallet.defragThreshold)}}(e),...t?{defaultContractSet:t.default}:d,uploadPackingEnabled:n.enabled,maxStoragePriceTBMonth:(0,u.ll)(new(s())(r.maxStoragePrice).times((0,o.S5V)(1)).times((0,o.xf5)(1)).times(_(f.minShards,f.totalShards,l.includeRedundancyMaxStoragePrice)),6),maxUploadPriceTB:(0,u.ll)(new(s())(r.maxUploadPrice).times(_(f.minShards,f.totalShards,l.includeRedundancyMaxUploadPrice)),6),maxDownloadPriceTB:(0,u.ll)(r.maxDownloadPrice,6),maxContractPrice:(0,u.ll)(r.maxContractPrice,6),maxRpcPriceMillion:(0,u.ll)(r.maxRPCPrice,6).times(1e6),minMaxCollateral:(0,u.ll)(r.minMaxCollateral,6),hostBlockHeightLeeway:new(s())(r.hostBlockHeightLeeway),minPriceTableValidityMinutes:new(s())((0,o.AEA)(r.minPriceTableValidity)),minAccountExpiryDays:new(s())((0,o.okB)(r.minAccountExpiry)),minMaxEphemeralAccountBalance:(0,u.ll)(r.minMaxEphemeralAccountBalance,6),...f,...l}}(e,t,n,r,i,a);return W.reset(l),l},[W]),$=(0,i.useMemo)(()=>[p.data,p.error,m.data,m.error,j.data,x.data,w.data,y.data,y.error],[p.data,p.error,m.data,m.error,j.data,x.data,w.data,y.data,y.error]),K=(0,i.useCallback)(()=>(!f||p.data||p.error)&&x.data&&w.data&&j.data&&(m.data||m.error)&&(y.data||y.error)?q(p.data,m.data,j.data,x.data,w.data,y.data):null,[f,q,p.data,p.error,m.data,m.error,j.data,x.data,w.data,y.data,y.error]),[Y,G]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if("init"!==a.autopilot.status&&!Y){let e=K();e&&G(!0)}},[Y,a.autopilot.status,K]);let X=(0,i.useCallback)(async()=>{let e=f?await p.mutate():void 0,t=await m.mutate(),n=await x.mutate(),r=await w.mutate(),i=await j.mutate(),a=await y.mutate();n&&r?q(e,t,i,n,r,a):(0,o.OHV)("Error fetching settings.")},[f,p,m,x,j,w,y,q]),J=W.watch("maxStoragePriceTBMonth"),Q=W.watch("maxDownloadPriceTB"),ee=W.watch("maxUploadPriceTB"),et=W.watch("storageTB"),en=W.watch("downloadTBMonth"),er=W.watch("uploadTBMonth"),ei=W.watch("minShards"),eo=W.watch("totalShards"),ea=W.watch("includeRedundancyMaxStoragePrice"),es=W.watch("includeRedundancyMaxUploadPrice"),el=(0,i.useMemo)(()=>S(ei,eo),[ei,eo]),eu=(0,i.useMemo)(()=>z.data?b({isAutopilotEnabled:f,showAdvanced:V,redundancyMultiplier:el,includeRedundancyMaxStoragePrice:ea,includeRedundancyMaxUploadPrice:es,storageAverage:(0,u.ll)(z.data.settings.storage_price).times((0,o.S5V)(1)).times((0,o.xf5)(1)).times(_(ei,eo,ea)),uploadAverage:(0,u.ll)(z.data.settings.upload_price).times((0,o.xf5)(1)).times(_(ei,eo,es)),downloadAverage:(0,u.ll)(z.data.settings.download_price).times((0,o.xf5)(1)),contractAverage:(0,u.ll)(z.data.settings.contract_price)}):b({isAutopilotEnabled:f,showAdvanced:V,redundancyMultiplier:el,includeRedundancyMaxStoragePrice:ea,includeRedundancyMaxUploadPrice:es}),[f,V,z.data,el,ei,eo,ea,es]),ec=(0,i.useMemo)(()=>!!f&&(null==J?void 0:J.gt(0))&&(null==et?void 0:et.gt(0))&&(null==Q?void 0:Q.gt(0))&&(null==ee?void 0:ee.gt(0)),[f,J,et,Q,ee]),ed=(0,i.useMemo)(()=>{if(!ec)return new(s())(0);let e=(null==en?void 0:en.gt(0))?en:1,t=(null==er?void 0:er.gt(0))?er:1,n=ea?J.times(et):J.times(el).times(et),r=Q.times(e),i=es?ee.times(t):ee.times(el).times(t),o=n.plus(r).plus(i);return o},[ec,ea,es,el,J,et,Q,en,ee,er]),ef=(0,i.useMemo)(()=>{if(!ec)return new(s())(0);let e=ed.div(et);return e},[ec,ed,et]),eh=(0,l.Bl)(),ep=(0,P.Tu)(),em=(0,i.useCallback)(async e=>{if(x.data&&w.data)try{let t={};f&&!V&&(t.allowanceMonth=ed);let n={...e,...t},r=f&&!p.data,i=f?await U.put({payload:function(e,t){let n={...g,...E(e)};return{...t,contracts:{...null==t?void 0:t.contracts,set:n.autopilotContractSet,amount:Math.round(n.amountHosts.toNumber()),allowance:(0,u.qN)(C(n.allowanceMonth,n.periodWeeks)).toString(),period:Math.round((0,o.mvJ)(n.periodWeeks.toNumber())),renewWindow:Math.round((0,o.mvJ)(n.renewWindowWeeks.toNumber())),download:Number(C((0,o.xf5)(n.downloadTBMonth),n.periodWeeks).toFixed(0)),upload:Number(C((0,o.xf5)(n.uploadTBMonth),n.periodWeeks).toFixed(0)),storage:(0,o.xf5)(n.storageTB).toNumber()},hosts:{...null==t?void 0:t.hosts,maxDowntimeHours:n.maxDowntimeHours.toNumber(),minRecentScanFailures:n.minRecentScanFailures.toNumber(),allowRedundantIPs:n.allowRedundantIPs,scoreOverrides:(null==t?void 0:t.hosts.scoreOverrides)||null},wallet:{...null==t?void 0:t.wallet,defragThreshold:n.defragThreshold.toNumber()}}}(n,p.data)}):void 0,[a,s,c,d,h]=await Promise.all([F.put({params:{key:"contractset"},payload:k(n,m.data)}),F.put({params:{key:"uploadpacking"},payload:{...j.data,enabled:n.uploadPackingEnabled}}),F.put({params:{key:"gouging"},payload:{...x.data,maxRPCPrice:(0,u.qN)(n.maxRpcPriceMillion.div(1e6)).toString(),maxStoragePrice:(0,u.qN)(n.maxStoragePriceTBMonth.div((0,o.S5V)(1)).div((0,o.xf5)(1)).div(_(n.minShards,n.totalShards,n.includeRedundancyMaxStoragePrice))).toString(),maxUploadPrice:(0,u.qN)(n.maxUploadPriceTB.div(_(n.minShards,n.totalShards,n.includeRedundancyMaxUploadPrice))).toString(),maxDownloadPrice:(0,u.qN)(n.maxDownloadPriceTB).toString(),maxContractPrice:(0,u.qN)(n.maxContractPrice).toString(),minMaxCollateral:(0,u.qN)(n.minMaxCollateral).toString(),hostBlockHeightLeeway:Math.round(n.hostBlockHeightLeeway.toNumber()),minPriceTableValidity:Math.round((0,o.ort)(n.minPriceTableValidityMinutes.toNumber())),minAccountExpiry:Math.round((0,o.k9c)(n.minAccountExpiryDays.toNumber())),minMaxEphemeralAccountBalance:(0,u.qN)(n.minMaxEphemeralAccountBalance).toString()}}),F.put({params:{key:"redundancy"},payload:{...w.data,minShards:n.minShards.toNumber(),totalShards:n.totalShards.toNumber()}}),F.put({params:{key:N},payload:{...y.data,includeRedundancyMaxStoragePrice:n.includeRedundancyMaxStoragePrice,includeRedundancyMaxUploadPrice:n.includeRedundancyMaxUploadPrice}})]);if(null==i?void 0:i.error)throw Error(i.error);if(a.error)throw Error(a.error);if(s.error)throw Error(s.error);if(c.error)throw Error(c.error);if(d.error)throw Error(d.error);if(h.error)throw Error(h.error);if(f&&(H(n.autopilotContractSet),eh.post({payload:{forceScan:!0}})),(0,o.OPV)("Configuration has been saved."),r){let e=async()=>{await (0,P.gw)(5e3),ep(e=>e.startsWith(l.pz)),await (0,P.gw)(5e3),ep(e=>e.startsWith(l.pz))};e()}await X()}catch(e){(0,o.OHV)(e.message),console.log(e)}},[ed,V,f,p,U,X,H,ep,F,m,j,w,x,y,eh]),ev=(0,o.WsO)(eu),eg=(0,i.useMemo)(()=>W.handleSubmit(em,ev),[W,em,ev]),ey=(0,i.useCallback)(()=>{let e=W.getValues(),t=K();if(t)for(let[n,r]of(W.reset(t),Object.entries(e)))W.setValue(n,r,{shouldDirty:!0})},[W,K]),{isUnlocked:ex}=(0,P.Hv)();(0,i.useEffect)(()=>{ex&&"init"!==a.autopilot.status&&X()},[ex,a.autopilot.status]),(0,i.useEffect)(()=>{W.formState.isSubmitting||ey()},[W,V,$]);let eb=Object.entries(W.formState.dirtyFields).filter(e=>{let[t,n]=e;return!!n}).length;return{onSubmit:eg,revalidateAndResetFormData:X,form:W,fields:eu,changeCount:eb,canEstimate:ec,estimatedSpendingPerMonth:ed,estimatedSpendingPerTB:ef,redundancyMultiplier:el,storageTB:et,shouldSyncDefaultContractSet:Z,setShouldSyncDefaultContractSet:B,showAdvanced:V,setShowAdvanced:I}}();return(0,r.jsx)(F.Provider,{value:n,children:t})}},13242:function(e,t,n){"use strict";n.d(t,{x:function(){return x},G:function(){return y}});var r=n(52322),i=n(80446),o=n(5632),a=n(9969),s=n(2784),l=n(6391),u=n.n(l),c=n(56860),d=n(88242),f=n(96206),h=n(82459);let p=[{id:"actions",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:{id:t,hostIp:n,hostKey:i}}=e;return(0,r.jsx)(h.F,{id:t,address:n,publicKey:i})}},{id:"contractId",label:"contract ID",category:"general",render:e=>{let{data:{id:t,isRenewed:n,renewedFrom:o}}=e;return(0,r.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,r.jsx)(i.XxW,{size:"12",value:(0,i.I13)(t),label:"contract ID"}),n&&(0,r.jsx)(i.ua7,{content:"Renewed from",align:"start",children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(i.xvT,{color:"subtle",children:(0,r.jsx)(d.L6f,{className:"scale-75"})}),(0,r.jsx)(i.XxW,{color:"subtle",size:"10",value:(0,i.I13)(o),label:"contract ID"})]})})]})}},{id:"hostIp",label:"host address",category:"general",render:e=>{let{data:{hostIp:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,type:"ip",label:"host address"})}},{id:"hostKey",label:"host public key",category:"general",render:e=>{let{data:{hostKey:t}}=e;return(0,r.jsx)(i.XxW,{size:"12",value:t,label:"host public key"})}},{id:"timeline",label:"timeline",category:"time",render:e=>{let{data:{contractHeightStart:t,contractHeightEnd:n,proofWindowHeightStart:o,proofWindowHeightEnd:a,revisionHeight:s,proofHeight:l},context:{currentHeight:u,contractsTimeRange:c}}=e;return(0,r.jsx)("div",{className:"w-[400px]",children:(0,r.jsx)(i.TaT,{currentHeight:u,contractHeightStart:t,contractHeightEnd:n,proofWindowHeightStart:o,proofWindowHeightEnd:a,proofHeight:l,revisionHeight:s,range:c})})}},{id:"startTime",label:"start date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{startTime:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:(0,f.rN)(t)})}},{id:"endTime",label:"end date",category:"time",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{endTime:t}}=e;return(0,r.jsx)(i.xvT,{size:"12",font:"mono",ellipsis:!0,children:(0,f.rN)(t)})}},{id:"size",label:"size",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{size:t}}=e;return(0,r.jsx)(i.m2c,{size:"12",value:t,variant:"value",format:e=>(0,f.vW)(e)})}},{id:"totalCost",label:"total cost",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{totalCost:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.negated()})}},{id:"spendingUploads",label:"uploads spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingUploads:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.negated()})}},{id:"spendingDownloads",label:"downloads spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingDownloads:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.negated()})}},{id:"spendingFundAccount",label:"fund account spending",category:"financial",contentClassName:"w-[120px] justify-end",render:e=>{let{data:{spendingFundAccount:t}}=e;return(0,r.jsx)(i.YKL,{size:"12",value:t.negated()})}}];var m=n(47025),v=n(25573);let g=(0,s.createContext)({}),y=()=>(0,s.useContext)(g);function x(e){let{children:t}=e,n=function(){let e=(0,o.useRouter)(),t=Number(e.query.limit||50),n=Number(e.query.offset||0),r=(0,a.GP)({config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),l=(0,m.JL)(),d=(0,s.useMemo)(()=>{var e;return(null===(e=l.data)||void 0===e?void 0:e.hosts)||[]},[l.data]),f=(0,v.n)(),h=f.isSynced?f.nodeBlockHeight:f.estimatedBlockHeight,g=(0,s.useMemo)(()=>{var e;if(!r.data)return null;let t=(null===(e=r.data)||void 0===e?void 0:e.map(e=>{var t;let n="fcid:0000000000000000000000000000000000000000000000000000000000000000"!==e.renewedFrom,r=(0,i.jrD)(h,e.startHeight),o=e.windowStart,a=(0,i.jrD)(h,o);return{id:e.id,contractId:e.id,hostIp:e.hostIP,hostKey:e.hostKey,location:null===(t=d.find(t=>t.public_key===e.hostKey))||void 0===t?void 0:t.location,timeline:r,startTime:r,endTime:a,contractHeightStart:e.startHeight,contractHeightEnd:o,proofWindowHeightStart:e.windowStart,proofWindowHeightEnd:e.windowEnd,proofHeight:e.proofHeight,revisionHeight:e.revisionHeight,isRenewed:n,renewedFrom:e.renewedFrom,totalCost:new(u())(e.totalCost),spendingUploads:new(u())(e.spending.uploads),spendingDownloads:new(u())(e.spending.downloads),spendingFundAccount:new(u())(e.spending.fundAccount),size:new(u())(e.size)}}))||[];return t},[r.data,d,h]),{filters:y,setFilter:x,removeFilter:b,removeLastFilter:w,resetFilters:j}=(0,i.Wdu)(),{configurableColumns:E,enabledColumns:k,sortableColumns:S,toggleColumnVisibility:_,setColumnsVisible:C,setColumnsHidden:O,toggleSort:M,setSortDirection:T,setSortField:A,sortField:P,sortDirection:N,resetDefaultColumnVisibility:R}=(0,i.oy6)("renterd/v0/contracts",{columns:p,columnsDefaultVisible:c.gd,sortOptions:c.Fo,defaultSortField:c.nw}),D=(0,i._4u)({dataset:g,filters:y,sortField:P,sortDirection:N}),L=(0,s.useMemo)(()=>D?D.slice(n,n+t):null,[D,n,t]),{range:F}=(0,s.useMemo)(()=>(0,i.EJC)(h,L||[]),[h,L]),z=(0,s.useMemo)(()=>p.filter(e=>e.fixed||k.includes(e.id)),[k]),V=(0,i.c2j)(D,r.isValidating,r.error,y),I=(0,s.useMemo)(()=>g?g.filter(e=>e.contractHeightStart{a(h)},children:h.label}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{p.push(s._.wallet.view),u()},children:"View wallet transactions"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("sendSiacoin")},children:"Send siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"Receive siacoin"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,onSelect:()=>{l("addressDetails")},children:"View wallet address"}),(0,r.jsx)(d.WD,{currentPage:n,commandPage:h,disabled:!(null===(t=m.data)||void 0===t?void 0:t.address),onSelect:()=>{var e;(null===(e=m.data)||void 0===e?void 0:e.address)&&((0,o.vQq)(m.data.address,"wallet address"),u())},children:"Copy wallet address to clipboard"})]})}var m=n(38617);let v={namespace:"settings",label:"Settings"};function g(e){let{currentPage:t,parentPage:n}=e,{openDialog:i,closeDialog:o}=eT(),{setTheme:s}=(0,m.F)(),{settings:l,setSettings:u,lock:c,currencyOptions:f,setCurrency:h}=(0,a.Hv)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:v,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:v,onSelect:()=>{i("settings")},children:"Open settings"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{u({siaCentral:!l.siaCentral}),o()},children:(l.siaCentral?"Disable":"Enable")+" external API - Sia Central exchange rates"}),(0,r.jsx)(d.o4,{currentPage:t,commandPage:v,onSelect:()=>{c(),o()},children:"Lock renterd"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{i("settings")},children:"Open interface theme menu"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("system"),o()},children:"Set theme to system preference"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("dark"),o()},children:"Set theme to dark"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{s("light"),o()},children:"Set theme to light"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{i("settings")},children:"Open currency settings menu"}),f.map(e=>{let{id:n,label:i}=e;return(0,r.jsx)(d.WD,{currentPage:t,commandPage:v,onSelect:()=>{h(n),o()},children:"Set currency to ".concat(i)},n)})]})}let y={namespace:"node",label:"Blockchain node"};function x(e){let{currentPage:t,parentPage:n,pushPage:i}=e,{openDialog:o,closeDialog:a}=eT(),l=(0,c.useRouter)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:y,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:y,onSelect:()=>{i(y)},children:y.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{o("connectPeer")},children:"Connect to a peer"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),a()},children:"View peers"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:y,onSelect:()=>{l.push(s._.node.index),a()},children:"View transaction pool"})]})}var b=n(17286),w=n(91641);let j={namespace:"configuration",label:"Configuration"};function E(e){let{currentPage:t,parentPage:n,pushPage:i}=e,o=(0,c.useRouter)(),{showAdvanced:a}=(0,b.ZR)(),{closeDialog:l}=eT(),{autopilot:u}=(0,w.q)();return(0,r.jsxs)(d.fu,{currentPage:t,commandPage:j,children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:j,onSelect:()=>{i(j)},children:j.label}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.index),l()},children:"Open configuration"}),"on"===u.status&&(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.storage),l()},children:"Configure storage"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.pricing),l()},children:"Configure pricing"}),a&&(0,r.jsxs)(r.Fragment,{children:["on"===u.status&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.hosts),l()},children:"Configure hosts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.wallet),l()},children:"Configure wallet"})]}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.contracts),l()},children:"Configure contracts"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.uploads),l()},children:"Configure uploads"}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:j,onSelect:()=>{o.push(s._.config.redundancy),l()},children:"Configure redundancy"})]})]})}var k=n(93216);let S={namespace:"contracts",label:"Contracts"};function _(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,l=(0,c.useRouter)(),{closeDialog:u}=eT();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(S)},children:S.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:S,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:S,onSelect:()=>{l.push(s._.contracts.index),u()},children:"View contracts"})}),(0,r.jsx)(k.F,{parentPage:S,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}var C=n(13242),O=n(18006);let M={namespace:"hosts",label:"Hosts"};function T(e){let{currentPage:t,parentPage:n,pushPage:i,beforeSelect:o,afterSelect:a}=e,l=(0,c.useRouter)(),{closeDialog:u,openDialog:f}=eT();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:t,parentPage:n,commandPage:n,onSelect:()=>{i(M)},children:M.label}),(0,r.jsx)(d.fu,{currentPage:t,commandPage:M,children:(0,r.jsx)(d.WD,{currentPage:t,commandPage:M,onSelect:()=>{l.push(s._.hosts.index),u()},children:"View hosts"})}),(0,r.jsx)(d.WD,{currentPage:t,commandPage:M,onSelect:()=>{f("hostsManageAllowBlock")},children:"Manage filter lists: allowlist + blocklist"}),(0,r.jsx)(O.L,{parentPage:M,currentPage:t,beforeSelect:o,afterSelect:a,pushPage:i})]})}var A=n(91652),P=n(48528),N=n(88242);function R(e){let{debouncedSearch:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:[(0,r.jsx)(N.e1T,{}),(0,r.jsx)(N.JCW,{}),(0,r.jsx)(N.c_L,{})]}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No files match the query.":"Type a query to get started."})]})}let D={namespace:"files/search",label:"File search",prompt:"Search for files, eg: backups, photo_archive.zip, etc...",empty:R};function L(e){let{debouncedSearch:t,search:n,currentPage:i,beforeSelect:a,afterSelect:s}=e,{activeBucket:l,setActiveDirectory:u}=(0,P.Y)(),c=(null==i?void 0:i.namespace)===D.namespace,h=(0,f.Iy)({disabled:!c,params:{bucket:l||"default",key:t,skip:0,limit:10},config:{swr:{keepPreviousData:!0}}});return c&&h.data?(0,r.jsx)(d.fu,{currentPage:i,commandPage:D,children:h.data.map(e=>{let{name:t}=e,l=function(e,t,n){let r=Math.max(e.length-55,0);if(0===r)return e;let i=F(e),o=F(t),a=i.toLowerCase().indexOf(o.toLowerCase()),s=a+o.length-1,l=0,u=0,c=i.split("/"),d=c.map(e=>{if(l>=r)return u+=e.length,F(e);let t=u,n=u+e.length+1;return ta?(u+=e.length,F(e)):!e.includes(o)&&e.length>3?(u+=e.length,l+=e.length+1,"..."):(u+=e.length,F(e))});return d.reverse().join("/")}(t,n,0),{startIndex:c,endIndex:f}=function(e,t){let n=F(e),r=F(t),i=n.toLowerCase().indexOf(r.toLowerCase()),o=i+r.length;return{endIndex:e.length-i,startIndex:e.length-o}}(l,n);return(0,r.jsx)(d.WD,{commandPage:D,currentPage:i,onSelect:()=>{a(),u(()=>(0,A.gD)(t)),s()},value:t,children:(0,r.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"group-data-[selected=true]:text-gray-1000 dark:group-data-[selected=true]:text-graydark-1000",children:(0,A.IQ)(t)?(0,r.jsx)(N.ROc,{size:16}):(0,r.jsx)(N.c_L,{})}),(0,r.jsxs)(o.xvT,{className:"flex items-center",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",ellipsis:!0,children:l.slice(0,c)}),(0,r.jsx)(o.xvT,{color:"accent",ellipsis:!0,children:l.slice(c,f)}),(0,r.jsx)(o.xvT,{color:"verySubtle",ellipsis:!0,children:l.slice(f)})]})]})},t)})}):null}function F(e){return e.split("").reverse().join("")}let z={namespace:"files",label:"Files"};function V(e){let{search:t,debouncedSearch:n,currentPage:i,parentPage:o,pushPage:a,beforeSelect:l,afterSelect:u}=e,f=(0,c.useRouter)(),{closeDialog:h}=eT();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.Ul,{currentPage:i,parentPage:o,commandPage:o,onSelect:()=>{a(z)},children:z.label}),(0,r.jsxs)(d.fu,{currentPage:i,commandPage:z,children:[(0,r.jsx)(d.WD,{currentPage:i,commandPage:z,onSelect:()=>{f.pathname.startsWith(s._.files.index)||f.push(s._.files.index),h(),u()},children:"View files"}),(0,r.jsx)(d.WD,{currentPage:i,commandPage:z,onSelect:()=>{a(D),u()},children:"Search files"})]}),(0,r.jsx)(L,{debouncedSearch:n,search:t,currentPage:i,beforeSelect:l,afterSelect:u})]})}var I=n(19513);function Z(e,t){return e===t}function B(e){return"function"==typeof e?function(){return e}:e}function H(e,t,n){var r,o,a=n&&n.equalityFn||Z,s=(o=(r=(0,i.useState)(B(e)))[1],[r[0],(0,i.useCallback)(function(e){return o(B(e))},[])]),l=s[0],u=s[1],c=function(e,t,n){var r=this,o=(0,i.useRef)(null),a=(0,i.useRef)(0),s=(0,i.useRef)(null),l=(0,i.useRef)([]),u=(0,i.useRef)(),c=(0,i.useRef)(),d=(0,i.useRef)(e),f=(0,i.useRef)(!0);(0,i.useEffect)(function(){d.current=e},[e]);var h=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,v="maxWait"in n,g=v?Math.max(+n.maxWait||0,t):null;return(0,i.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,i.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,a.current=e,c.current=d.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!f.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||v&&e-a.current>=g},y=function(t){return s.current=null,m&&l.current?e(t):(l.current=u.current=null,c.current)},x=function e(){var r=Date.now();if(i(r))return y(r);if(f.current){var s=t-(r-o.current);n(e,v?Math.min(s,g-(r-a.current)):s)}},b=function(){var d=Date.now(),h=i(d);if(l.current=[].slice.call(arguments),u.current=r,o.current=d,h){if(!s.current&&f.current)return a.current=o.current,n(x,t),p?e(o.current):c.current;if(v)return n(x,t),e(o.current)}return s.current||n(x,t),c.current};return b.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,l.current=o.current=u.current=s.current=null},b.isPending=function(){return!!s.current},b.flush=function(){return s.current?y(Date.now()):c.current},b},[p,v,t,g,m,h])}((0,i.useCallback)(function(e){return u(e)},[u]),t,n),d=(0,i.useRef)(e);return a(d.current,e)||(c(e),d.current=e),[l,c]}function U(e){let{search:t}=e;return(0,r.jsxs)(o.xvT,{color:"verySubtle",className:"flex flex-col gap-2 justify-center items-center mt-5 mb-3",children:[(0,r.jsx)(o.xvT,{color:"verySubtle",className:"flex gap-2 justify-center items-center",children:(0,r.jsx)(N.owP,{})}),(0,r.jsx)(o.xvT,{size:"12",color:"verySubtle",className:"flex justify-center",children:t?"No results matching query.":"Type a query to get started."})]})}function W(e){let{panel:t}=e,{resetFilters:n}=(0,C.G)(),{resetFilters:a}=(0,I.l)(),{closeDialog:d}=eT(),f=(0,c.useRouter)(),[h,m]=(0,i.useState)(""),[v]=H(h,500),[y,b]=(0,i.useState)([]),w=y[y.length-1],j=0===y.length,k=(0,i.useCallback)(e=>{b(t=>[...t,e])},[b]),S=(0,i.useCallback)(()=>{d()},[d]),O=(0,i.useCallback)(()=>{m("")},[m]),M=(null==w?void 0:w.empty)||U;return(0,r.jsxs)(u.mY,{label:"Command Menu",loop:!0,className:(0,l.cx)(t&&(0,o.z$)()),onKeyDown:e=>{(y.length>0&&"Escape"===e.key||"Backspace"===e.key&&!h)&&(e.preventDefault(),b(e=>e.slice(0,-1)))},children:[w&&(0,r.jsx)(o.__J,{className:"px-2",children:w.label}),(0,r.jsx)(u.mY.Input,{value:h,onValueChange:m,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:(null==w?void 0:w.prompt)||(j?"Search for commands, eg: theme, redundancy":"Search commands")}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(M,{search:h,debouncedSearch:v})}),(0,r.jsx)(g,{currentPage:w,pushPage:k}),(0,r.jsx)(V,{debouncedSearch:v,search:h,currentPage:w,pushPage:k,beforeSelect:()=>{S()},afterSelect:()=>{O()}}),(0,r.jsx)(p,{currentPage:w,pushPage:k}),(0,r.jsx)(_,{currentPage:w,pushPage:k,beforeSelect:()=>{S(),n()},afterSelect:()=>{f.pathname.startsWith(s._.contracts.index)||f.push(s._.contracts.index),O()}}),(0,r.jsx)(T,{currentPage:w,pushPage:k,beforeSelect:()=>{S(),a()},afterSelect:()=>{f.pathname.startsWith(s._.hosts.index)||f.push(s._.hosts.index),O()}}),(0,r.jsx)(E,{currentPage:w,pushPage:k}),(0,r.jsx)(x,{currentPage:w,pushPage:k})]})]})}function q(e){let{open:t,onOpenChange:n,setOpen:l}=e,{isUnlocked:u}=(0,a.Hv)(),{isConnected:c}=(0,o.Y97)({route:s.h});return(0,i.useEffect)(()=>{if(!u||!c)return;let e=e=>{"k"===e.key&&e.metaKey&&l()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[u,c,l]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.VqE,{open:t,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(W,{})})})}var $=n(9156),K=n(24511);let Y={name:""},G=K.Ry().shape({name:K.Z_().required("Required")});function X(e){let{trigger:t,open:n,onOpenChange:i}=e,{activeDirectoryPath:a}=(0,P.Y)(),s=(0,f.ZM)(),l=(0,$.TA)({initialValues:Y,validationSchema:G,onSubmit:async(e,t)=>{let n=await s.put({params:(0,A.W0)(a+e.name+"/"),payload:null});n.error?(0,o.OHV)(n.error):((0,o.RFt)("Directory created."),t.resetForm(),i(!1))}});return(0,r.jsx)(o.VqE,{trigger:t,title:"New directory",open:n,onOpenChange:e=>{e||l.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,r.jsx)("div",{className:"flex flex-col gap-4",children:(0,r.jsx)("form",{onSubmit:l.handleSubmit,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.cB7,{formik:l,title:"Name",name:"name",placeholder:"photos, backups, etc",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,r.jsx)(o.IKw,{formik:l,size:"medium",children:"Create"})]})})})})}var J=n(33571);let Q={publicKey:""},ee=K.Ry().shape({publicKey:K.Z_().required("Required")});function et(){var e;let t=(0,f.s2)({config:{swr:{refreshInterval:6e4}}}),n=(0,J.I)(),a=(0,$.TA)({initialValues:Q,validationSchema:ee,onSubmit:async(e,t)=>{let r=await n([e.publicKey],[]);r?t.resetForm():t.setStatus({error:"Error updating allowlist"})}});(0,i.useEffect)(()=>{a.setStatus(void 0)},[a.values]);let s=a.values.publicKey,l=(null===(e=t.data)||void 0===e?void 0:e.filter(e=>!a.values.publicKey||e.includes(a.values.publicKey)))||[];return(0,r.jsxs)("form",{onSubmit:a.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(o.S$c,{title:"Public key",name:"publicKey",formik:a,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.KZS,{name:"publicKey",formik:a,placeholder:"ed25519:02aabd26e627fd...",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(o.IKw,{formik:a,size:"small",variant:"amber",withStatusError:!1,children:"Allow public key"})]})}),(0,r.jsxs)(o.s_4,{className:"p-2 flex gap-2 items-center",children:[(0,r.jsx)(o.xvT,{children:(0,r.jsx)(N.qdM,{})}),(0,r.jsxs)(o.nvN,{size:"12",children:[(0,r.jsx)(o.xvT,{weight:"semibold",children:"Caution:"})," Please note that because the allowlist is inclusive, as soon as there are more than zero entries, contracting will be limited to only the hosts explicitly on the allowlist - all other existing contracts will immediately abort."]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden !-m-2",children:l.length?(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"p-2",children:(0,r.jsx)(o.hmz,{options:l.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,o.vQq)(e,"allowed public key"),onRemove:e=>n([],[e])})})}):s?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.Hb6,{})}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["No existing entries match ",a.values.publicKey,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.TtX,{})}),(0,r.jsx)(o.xvT,{color:"subtle",children:"The allowlist is empty."})]})})]})}var en=n(98358);let er={address:""},ei=["45.148.30.56","51.158.108.244","siacentral.ddnsfree.com","siacentral.mooo.com"],eo=K.Ry().shape({address:K.Z_().required("Required").test("address","Invalid hostname or IP address",e=>(0,o.Ztc)().test(e||""))});function ea(){let e=(0,f.uf)({config:{swr:{refreshInterval:6e4}}}),t=(0,en.l)(),n=(0,$.TA)({initialValues:er,validationSchema:eo,onSubmit:async(e,n)=>{let r=await t([e.address],[]);r?n.resetForm():n.setStatus({error:"Error updating blocklist"})}});(0,i.useEffect)(()=>{n.setStatus(void 0)},[n.values]);let a=n.values.address,s=(0,i.useMemo)(()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.filter(e=>!n.values.address||e.includes(n.values.address)))||[]},[e.data,n.values.address]),{dataset:l}=(0,C.G)(),u=(0,i.useMemo)(()=>ei.filter(t=>{var n;return!(null===(n=e.data)||void 0===n?void 0:n.find(e=>e===t))}).map(e=>({address:e,contractCount:null==l?void 0:l.filter(t=>t.hostIp===e).length})),[e.data,l]);return(0,r.jsxs)("form",{onSubmit:n.handleSubmit,className:"flex flex-col gap-2 h-[400px]",children:[(0,r.jsx)(o.S$c,{title:"Address",name:"address",formik:n,withStatusError:!0,children:(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(o.KZS,{name:"address",formik:n,placeholder:"eg: 51.258.128.144 or spam.ddnsfree.com",autoComplete:"off",variants:{size:"small"}}),(0,r.jsx)(o.IKw,{formik:n,size:"small",variant:"red",withStatusError:!1,children:"Block address"})]})}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden !-m-2",children:(0,r.jsx)(o.xrM,{children:(0,r.jsxs)("div",{className:"p-2",children:[!!u.length&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex gap-1 flex-wrap",children:[(0,r.jsx)(o.xvT,{size:"12",color:"subtle",children:"Suggestions:"}),u.map((e,t)=>{let{address:i,contractCount:a}=e;return(0,r.jsxs)(o.xvT,{size:"12",underline:"hover",className:"cursor-pointer",onClick:()=>n.setFieldValue("address",i),children:[i,!!a&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)(o.ua7,{content:"".concat(a," active contracts"),children:(0,r.jsxs)(o.xvT,{color:"red",children:["(",a,")"]})})]}),t!==u.length-1&&(0,r.jsx)(o.xvT,{children:","})]},i)})]}),(0,r.jsx)(o.Z0O,{className:"my-2"})]}),s.length?(0,r.jsx)(o.hmz,{options:s.map(e=>({value:e,label:"".concat(e.slice(0,20),"...")}))||[],onClick:e=>(0,o.vQq)(e,"blocked address"),onRemove:e=>t([],[e])}):a?(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.Hb6,{})}),(0,r.jsxs)(o.xvT,{color:"subtle",children:["No existing entries match ",n.values.address,"."]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-3 items-center justify-center h-[200px]",children:[(0,r.jsx)(o.xvT,{color:"subtle",children:(0,r.jsx)(N.TtX,{})}),(0,r.jsx)(o.xvT,{color:"subtle",children:"The blocklist is empty."})]})]})})})]})}function es(e){let{trigger:t,open:n,onOpenChange:i}=e;return(0,r.jsx)(o.VqE,{trigger:t,title:"Manage host blocklist and allowlist",open:n,onOpenChange:e=>{i(e)},contentVariants:{className:"w-[500px]"},children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"12",children:"The allowlist and blocklist limit the set of hosts that renterd will consider when forming contracts. The blocklist excludes hosts with matching addresses whereas the allowlist restricts consideration to hosts with a matching public key. Each list's filtering is enabled and applied when it contains more than zero entries."}),(0,r.jsxs)(o.mQc,{defaultValue:"blocklist",children:[(0,r.jsxs)(o.drW,{"aria-label":"blocklist and allowlist tabs",children:[(0,r.jsx)(o.SPt,{value:"blocklist",children:"Block"}),(0,r.jsx)(o.SPt,{value:"allowlist",children:"Allow"})]}),(0,r.jsx)(o.nUL,{value:"blocklist",children:(0,r.jsx)(ea,{})}),(0,r.jsx)(o.nUL,{value:"allowlist",children:(0,r.jsx)(et,{})})]})]})})}var el=n(2320),eu=n(31781),ec=n(24801);function ed(e){let{panel:t}=e,{resetFilters:n}=(0,C.G)(),{closeDialog:a}=eT(),d=(0,c.useRouter)(),[f,h]=(0,i.useState)(""),[p]=H(f,500),m=(0,i.useCallback)(()=>{a()},[a]);return(0,r.jsxs)(u.mY,{label:"Files search",shouldFilter:!1,className:(0,l.cx)(t&&(0,o.z$)()),children:[(0,r.jsx)(o.__J,{className:"px-2",children:"File search"}),(0,r.jsx)(u.mY.Input,{value:f,onValueChange:h,className:(0,o.cEb)({variant:"ghost",focus:"none"}),placeholder:D.prompt}),(0,r.jsx)(o.Z0O,{className:"my-2"}),(0,r.jsx)("div",{className:"overflow-hidden",children:(0,r.jsxs)(u.mY.List,{children:[(0,r.jsx)(u.mY.Empty,{children:(0,r.jsx)(R,{search:f,debouncedSearch:p})}),(0,r.jsx)(L,{debouncedSearch:p,search:f,currentPage:D,beforeSelect:()=>{m(),n()},afterSelect:()=>{d.pathname.startsWith(s._.files.index)||d.push(s._.files.index)}})]})})]})}function ef(e){let{open:t,onOpenChange:n}=e;return(0,r.jsx)(o.VqE,{open:t,onOpenChange:n,contentVariants:{className:"!absolute !p-1 w-[450px] top-[200px]"},bodyClassName:"!px-1 !py-1",closeClassName:"hidden",children:(0,r.jsx)(ed,{})})}var eh=n(6391),ep=n.n(eh);function em(){let{dialog:e,openDialog:t,closeDialog:n}=eT(),a=(0,f.Tu)(),s=(0,f.gU)(),l=(0,f.cg)(),u=(0,f.ys)(),c=(0,f.aO)(),d=(0,i.useCallback)(async e=>{let{sc:t,address:n}=e,r=await s.post({payload:{amount:t.toString(),transaction:{siacoinOutputs:[{address:n,value:t.toString()}]}}});if(r.error)return{error:r.error};let i=await l.post({payload:{transaction:r.data.transaction,toSign:r.data.toSign,coveredFields:{WholeTransaction:!0}}});if(i.error)return c.post({payload:r.data.transaction}),{error:i.error};let o=await u.post({payload:[i.data]});return o.error?(c.post({payload:i.data}),{error:o.error}):{}},[s,l,u,c]);return(0,r.jsx)(o.weF,{balance:a.data?new(ep())(a.data.spendable):void 0,send:d,open:"sendSiacoin"===e,onOpenChange:r=>r?t(e):n()})}function ev(){let{id:e,dialog:t,openDialog:n,closeDialog:a}=eT(),s=(0,f.Qq)({params:{},config:{swr:{revalidateOnFocus:!1,refreshInterval:6e4}},disabled:"transactionDetails"!==t}),l=(0,i.useMemo)(()=>{var t;let n=null===(t=s.data)||void 0===t?void 0:t.find(t=>t.id===e);return n?{txType:(0,o.leQ)(n.raw),inflow:n.inflow,outflow:n.outflow,timestamp:n.timestamp,raw:n.raw}:null},[s,e]);return(0,r.jsx)(o.mPE,{id:e,transaction:l,open:"transactionDetails"===t,onOpenChange:e=>e?n(t):a()})}var eg=n(82459);function ey(e){let{id:t,contentProps:n,buttonProps:i}=e,a=(0,f.cq)({params:{id:t}});return a.data?(0,r.jsx)(eg.F,{id:t,address:a.data.hostIP,publicKey:a.data.hostKey,contentProps:n,buttonProps:i}):(0,r.jsx)(o.zxk,{variant:"ghost",icon:"hover",state:"waiting",...i,children:(0,r.jsx)(N.iG7,{})})}var ex=n(848);function eb(e){let{open:t,onOpenChange:n}=e,a=(0,f.Z7)(),s=(0,f.Uy)(),l=(0,i.useCallback)(async e=>{let t=await s.post({payload:[e]});t.error?(0,o.OHV)("Error dismissing alert."):(0,o.OPV)("Alert has been dismissed.")},[s]),u=(0,i.useCallback)(async(e,t)=>{if(!a.data)return;let n=await s.post({payload:e});n.error?(0,o.OHV)(t?"Error dismissing all ".concat(t," alerts."):"Error dismissing all alerts."):(0,o.OPV)(t?"All ".concat(t," alerts have been dismissed."):"All alerts have been dismissed.")},[s,a.data]);return(0,r.jsx)(o.hcY,{open:t,onOpenChange:e=>{n(e)},alerts:a,dataFieldOrder:ew,dataFields:ej,dismissMany:u,dismissOne:l})}let ew=["hint","error","origin","hostKey","contractID","accountID","slabKey","additions","removals"],ej={contractID:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"contract ID"}),(0,r.jsx)(o.PF9,{value:t,menu:(0,r.jsx)(ey,{id:t,contentProps:{align:"end"},buttonProps:{size:"none"}})})]})}},accountID:{render:function(e){let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"account ID"}),(0,r.jsx)(o.XxW,{value:t,label:"account ID"})]})}},hostKey:{render:function(e){let{value:t}=e,n=(0,f.$)({params:{hostKey:t}});return n.data?(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"host key"}),(0,r.jsx)(o.PF9,{value:t,menu:(0,r.jsx)(ex.G,{publicKey:n.data.publicKey,address:n.data.netAddress,contentProps:{align:"end"},buttonProps:{size:"none"}})})]}):null}},slabKey:{render:function(e){let{value:t}=e,{setActiveDirectory:n}=(0,P.Y)(),{closeDialog:i}=eT(),a=(0,f.og)({params:{key:t}});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"key"}),(0,r.jsx)(o.XxW,{value:t})]}),a.data&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mt-2 mb-2",children:a.data.map(e=>(0,r.jsx)(o.rUS,{color:"accent",underline:"hover",size:"12",noWrap:!0,onClick:()=>{n(()=>(0,A.gD)(e.name)),i()},children:e.name},e.name))})})]})}},additions:{render:function(e){let{value:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"additions"})}),t&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-wrap gap-2 mb-2",children:t.map(e=>(0,r.jsx)("div",{children:(0,r.jsx)(o.XxW,{value:e,label:"contract ID"})},e))})})]})}},removals:{render:function(e){let{value:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-between w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"removals"})}),t&&(0,r.jsx)(o.xrM,{children:(0,r.jsx)("div",{className:"flex flex-col gap-2 mb-2",children:Object.entries(t).map(e=>{let[t,n]=e;return(0,r.jsxs)("div",{className:"flex gap-2 justify-between w-full",children:[(0,r.jsx)(o.XxW,{value:t,label:"contract ID"}),(0,r.jsx)(o.ua7,{content:n,children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:n})})]},t)})})})]})}},error:{render:e=>{let{value:t}=e;return(0,r.jsx)("div",{className:"flex flex-col w-full gap-2",children:(0,r.jsx)(o.UQy,{type:"single",children:(0,r.jsxs)(o.Qdk,{value:"error",variant:"ghost",children:[(0,r.jsx)(o.o48,{children:(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"error"})}),(0,r.jsx)(o.vF,{children:(0,r.jsx)(o.xvT,{color:"contrast",children:t})})]})})})}},hint:{render:e=>{let{value:t}=e;return(0,r.jsx)("div",{className:"flex flex-col w-full gap-2",children:(0,r.jsx)(o.xvT,{color:"contrast",children:t})})}},allowance:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"allowance"}),(0,r.jsx)(o.YKL,{variant:"value",value:new(ep())(t)})]})}},balance:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"balance"}),(0,r.jsx)(o.YKL,{variant:"value",value:new(ep())(t)})]})}},address:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"address"}),(0,r.jsx)(o.XxW,{value:t,type:"address"})]})}},account:{render:e=>{let{value:t}=e;return(0,r.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,r.jsx)(o.xvT,{color:"subtle",ellipsis:!0,children:"account"}),(0,r.jsx)(o.XxW,{value:t})]})}}};var eE=n(54155),ek=n(63955);let eS={name:""};function e_(e){let{trigger:t,open:n,onOpenChange:a}=e,{id:s,closeDialog:l}=eT(),u=(0,f.sg)(),c=(0,ek.cI)({mode:"all",defaultValues:eS}),d=(0,i.useCallback)(async e=>{let t=await u.delete({params:{name:e.name}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Bucket permanently deleted."),c.reset(),l())},[c,u,l]),h=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:s,validation:{required:"required",validate:{notDefault:()=>"default"!==s||"cannot delete default bucket",equals:e=>e===s||"bucket name does not match"}}}}),[s]),p=(0,o.WsO)(h);return(0,r.jsx)(o.VqE,{title:"Delete Bucket",trigger:t,open:n,onOpenChange:e=>{e||c.reset(eS),a(e)},contentVariants:{className:"w-[400px]"},onSubmit:c.handleSubmit(d,p),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"Before you delete a bucket you must ensure that it is empty. Re-enter the bucket name to confirm the removal."}),(0,r.jsx)("div",{children:(0,r.jsx)(o.EKh,{color:"gray",children:s})}),(0,r.jsx)(o.yEL,{name:"name",form:c,fields:h,autoComplete:"off"}),(0,r.jsx)(o.ZqQ,{variant:"red",form:c,children:"Delete"})]})})}let eC={name:""};function eO(e){let{trigger:t,open:n,onOpenChange:a}=e,{closeDialog:s}=eT(),l=(0,f.oV)(),u=(0,ek.cI)({mode:"all",defaultValues:eC}),c=(0,i.useCallback)(async e=>{let t=await l.post({payload:{name:e.name}});t.error?(0,o.OHV)(t.error):((0,o.OPV)("Bucket created."),u.reset(),s())},[u,l,s]),d=(0,i.useMemo)(()=>({name:{type:"text",title:"Name",placeholder:"photos, backups, etc",validation:{required:"required"}}}),[]),h=(0,o.WsO)(d);return(0,r.jsx)(o.VqE,{title:"Create Bucket",trigger:t,open:n,onOpenChange:e=>{e||u.reset(eC),a(e)},contentVariants:{className:"w-[400px]"},onSubmit:u.handleSubmit(c,h),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(o.nvN,{size:"14",children:"A bucket is an isolated collection of files."}),(0,r.jsx)(o.yEL,{name:"name",form:u,fields:d,autoComplete:"off"}),(0,r.jsx)(o.ZqQ,{form:u,children:"Create bucket"})]})})}let eM=(0,i.createContext)({}),eT=()=>(0,i.useContext)(eM);function eA(e){let{children:t}=e,n=function(){let[e,t]=(0,i.useState)(),[n,r]=(0,i.useState)(),o=(0,i.useCallback)((e,n)=>{t(e),r(n)},[t,r]),[a,s]=(0,i.useState)(),l=(0,i.useCallback)(e=>{t("confirm"),s(e)},[t,s]),u=(0,i.useCallback)(()=>{t(void 0),r(void 0),s(void 0)},[t,r,s]),c=(0,i.useCallback)(e=>{e||u()},[u]);return{dialog:e,id:n,openDialog:o,confirm:a,openConfirmDialog:l,closeDialog:u,onOpenChange:c}}();return(0,r.jsx)(eM.Provider,{value:n,children:t})}function eP(){var e;let{dialog:t,openDialog:n,onOpenChange:i,closeDialog:a,confirm:s,openConfirmDialog:l}=eT(),u=(0,f.Wl)(),c=(0,f.Tu)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(q,{open:"cmdk"===t,onOpenChange:i,setOpen:()=>n("cmdk")}),(0,r.jsx)(o.DLL,{open:"settings"===t,onOpenChange:i}),(0,r.jsx)(em,{}),(0,r.jsx)(o.YNn,{address:null===(e=c.data)||void 0===e?void 0:e.address,isValidating:c.isValidating,open:"addressDetails"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ev,{}),(0,r.jsx)(o.D_D,{open:"connectPeer"===t,connect:e=>u.post({payload:e}),onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eO,{open:"filesCreateBucket"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(e_,{open:"filesDeleteBucket"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(X,{open:"filesCreateDirectory"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ef,{open:"filesSearch"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(es,{open:"hostsManageAllowBlock"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(el.g,{open:"hostsFilterAddress"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eE.a,{open:"hostsFilterPublicKey"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eu.p,{open:"contractsFilterAddress"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(ec.C,{open:"contractsFilterPublicKey"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(eb,{open:"alerts"===t,onOpenChange:e=>e?n(t):a()}),(0,r.jsx)(o.QHy,{open:"confirm"===t,params:s,onOpenChange:e=>e?l(s):a()})]})}},48528:function(e,t,n){"use strict";n.d(t,{Z:function(){return L},Y:function(){return D}});var r=n(52322),i=n(80446),o=n(5632),a=n(2784),s=n(88242),l=n(96206),u=n(86450),c=n(9969),d=n(91652);function f(e){let{path:t}=e,n=(0,c.wy)({params:(0,d.W0)(t),config:{swr:{dedupingInterval:5e3}}});return(0,r.jsxs)(i.Xiv,{disabled:!n.data,onSelect:()=>{n.data&&(0,i.vQq)(JSON.stringify(n.data.object,null,2),"object metadata")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy metadata"]})}function h(e){let{path:t}=e,{downloadFiles:n,getFileUrl:o}=D(),l=function(){let{openConfirmDialog:e}=(0,u.Rh)(),t=(0,c.xw)();return(0,a.useCallback)(n=>e({title:"Delete file",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)(i.nvN,{size:"14",children:"Are you sure you would like to delete the following file:"}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",className:"break-words",children:n})]}),onConfirm:async()=>{let e=await t.delete({params:(0,d.W0)(n)});e.error&&(0,i.OHV)("Error deleting file."),(0,i.OPV)("Successfully deleted file.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.c_L,{})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:async()=>{n([t])},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.vzB,{})}),"Download file"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>l(t),children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete file"]}),(0,r.jsx)(i.Juw,{children:"Copy"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.vQq)(o(t,!1),"file URL")},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy URL"]}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{(0,i.E5z)(o(t,!0),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(i.xvT,{children:"Copied authenticated file URL to clipboard."}),(0,r.jsxs)(i.xvT,{children:["The authenticated URL contains the ",(0,r.jsx)(i.EKh,{children:"renterd"})," ","password, be careful when pasting or sharing the URL."]})]}),{icon:(0,r.jsx)("div",{className:"!flex-none w-5",children:(0,r.jsx)(s.qdM,{className:"w-5 text-amber-600"})}),duration:1e4,className:"!max-w-[1200px]"})},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.olJ,{})}),"Copy authenticated URL"]}),(0,r.jsx)(f,{path:t})]})}function p(e){let{path:t,size:n}=e,o=function(){let{openConfirmDialog:e}=(0,u.Rh)(),t=(0,c.xw)();return(0,a.useCallback)((n,o)=>e({title:"Delete directory",action:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Jrl,{}),"Delete"]}),variant:"red",body:(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsxs)(i.nvN,{size:"14",children:["Are you sure you would like to delete the following directory which contains ",(0,l.vW)(o)," of data:"]}),(0,r.jsx)(i.nvN,{size:"14",font:"mono",className:"break-words",children:n})]}),onConfirm:async()=>{let e=await t.delete({params:{...(0,d.W0)(n),batch:!0}});e.error&&(0,i.OHV)("Error deleting directory."),(0,i.OPV)("Successfully deleted directory.")}}),[e,t])}();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.ROc,{size:16})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{onSelect:()=>{o(t,n)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete directory"]})]})}var m=n(6391),v=n.n(m),g=n(82439),y=n(82851),x=n(829),b=n.n(x);function w(e){var t,n,o;let{path:a,isUploading:s,type:l,health:u,size:f}=e,h="directory"===l,p=(0,c.wy)({disabled:s||h,params:(0,d.W0)(a),config:{swr:{dedupingInterval:5e3}}}),{displayHealth:m,label:v}=(0,g.B)({health:u,size:f,isDirectory:h});if(p.isValidating)return(0,r.jsx)(j,{displayHealth:m,label:v,children:(0,r.jsx)("div",{className:"flex justify-center my-2",children:(0,r.jsx)(i.xgg,{})})});if(!(null===(t=p.data)||void 0===t?void 0:t.object))return(0,r.jsx)(j,{displayHealth:m,label:v,children:(0,r.jsx)(i.xvT,{size:"12",children:"Error fetching slab metadata."})});let y=b()(p.data.object.slabs.map(e=>({...e.slab,contractSetShards:function(e){let{totalShards:t,minShards:n,health:r}=e,i=Math.ceil(r*(t-n)),o=i+n;return o<=0?0:o>t?t:o}({totalShards:e.slab.shards.length,minShards:e.slab.minShards,health:e.slab.health})})),"contractSetShards"),{partialSlab:x}=p.data.object;return(0,r.jsx)(j,{className:y.length>15?"h-[300px]":"",displayHealth:m,label:v,minShards:x?x.minShards:null===(n=y[0])||void 0===n?void 0:n.minShards,totalShards:x?x.totalShards:null===(o=y[0])||void 0===o?void 0:o.shards.length,children:x?(0,r.jsx)(i.xvT,{size:"12",color:"verySubtle",className:"flex items-center justify-center my-2",font:"mono",children:"partial slab"}):y.map(e=>(0,r.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",className:"flex items-center",font:"mono",children:["Slab ",e.key.replace("key:","").slice(0,4),":"]}),(0,r.jsxs)(i.xvT,{size:"12",className:"flex items-center",children:[e.contractSetShards,"/",e.shards.length]})]},e.key))})}function j(e){let{className:t,displayHealth:n,label:o,children:a,minShards:s,totalShards:l}=e;return(0,r.jsxs)("div",{className:(0,y.cx)("z-10 flex flex-col pb-1 -mx-1 overflow-hidden",t),children:[(0,r.jsxs)("div",{className:"flex justify-between gap-2 pt-0.5 pb-px px-2",children:[(0,r.jsx)(i.xvT,{size:"12",children:o}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*n).toFixed(0),"%"]})]}),s&&l?(0,r.jsxs)("div",{className:"flex justify-between gap-2 pt-0.5 pb-px px-2",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:"redundancy"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[s," of ",l]})]}):null,(0,r.jsx)("div",{className:"px-2",children:(0,r.jsx)(i.Z0O,{className:"w-full my-1"})}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,r.jsx)(i.xrM,{children:(0,r.jsx)("div",{className:"px-2",children:a})})})]})}function E(e){let{name:t,isUploading:n,type:o,health:a,size:s}=e,l="directory"===o,{displayHealth:u,label:c,color:d,icon:f}=(0,g.B)({health:a,size:s,isDirectory:l});return l?".."===t?null:(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsx)(i.xvT,{color:d,className:"flex cursor-pointer",children:f}),children:(0,r.jsx)("div",{className:"z-10 flex flex-col -mx-1 overflow-hidden",children:(0,r.jsxs)("div",{className:"flex justify-between gap-2 py-0.5 px-2",children:[(0,r.jsx)(i.xvT,{size:"12",children:c}),(0,r.jsxs)(i.xvT,{size:"12",children:[(100*u).toFixed(0),"%"]})]})})}):n?(0,r.jsx)(i.xgg,{}):(0,r.jsx)(i.zsw,{rootProps:{openDelay:100},trigger:(0,r.jsx)(i.xvT,{color:d,className:"flex cursor-pointer",children:f}),children:(0,r.jsx)(w,{...e})})}function k(e){let{name:t}=e,{openDialog:n}=(0,u.Rh)();return(0,r.jsxs)(i.h_2,{trigger:(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",children:(0,r.jsx)(s.fi8,{size:16})}),contentProps:{align:"start"},children:[(0,r.jsx)(i.Juw,{children:"Actions"}),(0,r.jsxs)(i.Xiv,{disabled:"default"===t,onSelect:()=>{n("filesDeleteBucket",t)},children:[(0,r.jsx)(i.KpP,{children:(0,r.jsx)(s.Jrl,{})}),"Delete bucket"]})]})}n(65680);let S=[{id:"type",label:"",fixed:!0,cellClassName:"w-[50px] !pl-2 !pr-2 [&+*]:!pl-0",render:function(e){let{data:{isUploading:t,type:n,name:o,path:a,size:l}}=e,{setActiveDirectory:u}=D();return t?(0,r.jsx)(i.zxk,{variant:"ghost",state:"waiting",children:(0,r.jsx)(s.c_L,{})}):".."===o?(0,r.jsx)(i.zxk,{variant:"ghost",icon:"hover",onClick:e=>{e.stopPropagation(),u(e=>e.slice(0,-1))},children:(0,r.jsx)(s.ROc,{size:16})}):"bucket"===n?(0,r.jsx)(k,{name:o}):"directory"===n?(0,r.jsx)(p,{path:a,size:l}):(0,r.jsx)(h,{path:a})}},{id:"name",label:"name",category:"general",contentClassName:"max-w-[600px]",render:function(e){let{data:{name:t,type:n}}=e,{setActiveDirectory:o}=D();return"bucket"===n?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(()=>[t])},children:t}):"directory"===n?".."===t?(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(e=>e.slice(0,-1))},children:t}):(0,r.jsx)(i.xvT,{ellipsis:!0,color:"accent",weight:"semibold",className:"cursor-pointer",onClick:e=>{e.stopPropagation(),o(e=>e.concat(t.slice(0,-1)))},children:t}):(0,r.jsx)(i.xvT,{ellipsis:!0,weight:"semibold",children:t})}},{id:"size",label:"size",contentClassName:"justify-end",render:function(e){let{data:{type:t,name:n,size:o,isUploading:a}}=e;return"bucket"===t?null:a?(0,r.jsx)(i.xgg,{}):".."===n?null:(0,r.jsx)(i.m2c,{size:"12",value:new(v())(o),variant:"value",color:"subtle",format:e=>(0,l.vW)(e.toNumber())})}},{id:"health",label:"health",contentClassName:"justify-center",render:function(e){let{data:t}=e;return"bucket"===t.type?null:(0,r.jsx)(E,{...t})}}];var _=n(81471),C=n(12436),O=n.n(C),M=n(2850),T=n(28460),A=n.n(T),P=n(79381),N=n(13242);let R=(0,a.createContext)({}),D=()=>(0,a.useContext)(R);function L(e){let{children:t}=e,n=function(){let e=(0,o.useRouter)(),t=(0,a.useMemo)(()=>(e.query.path||[]).map(decodeURIComponent),[e.query.path]),n=(0,a.useMemo)(()=>t[0],[t]),r=(0,a.useMemo)(()=>(0,d.rd)(t)+"/",[t]),s=(0,a.useCallback)(n=>{let r=n(t);e.push("/files/"+r.map(encodeURIComponent).join("/"))},[e,t]),{uploadFiles:l,uploadsList:u,uploadCancel:f}=function(e){let{activeDirectoryPath:t}=e,n=(0,c.ZM)(),[r,o]=(0,a.useState)({}),s=(0,a.useCallback)(e=>{o(t=>({...t,[e.path]:{id:e.path,path:e.path,bucket:e.bucket,name:e.name,size:e.size,loaded:e.loaded,isUploading:!0,controller:e.controller,type:"file"}}))},[o]),l=(0,a.useCallback)(e=>{o(t=>t[e.path]?{...t,[e.path]:{...t[e.path],path:e.path,loaded:e.loaded,size:e.size}}:t)},[o]),u=(0,a.useCallback)(e=>{o(t=>(delete t[e],{...t}))},[o]),f=(0,a.useCallback)(e=>{e.controller.abort()},[]),h=async e=>{e.forEach(async e=>{let o=e.name,a=(0,d.pC)(t,o),c=(0,d.ru)(a);if(r[a]){(0,i.OHV)("Already uploading file: ".concat(a));return}let f=new AbortController,h=O()(e=>l({path:a,loaded:e.loaded,size:e.total}),2e3);s({path:a,name:o,bucket:c,loaded:0,size:1,controller:f});let p=await n.put({params:(0,d.W0)(a),payload:e,config:{axios:{onUploadProgress:h,signal:f.signal}}});p.error?("canceled"===p.error?(0,i.RFt)("File upload canceled."):(0,i.OHV)(p.error),u(a)):(u(a),(0,i.OPV)("Upload complete: ".concat(o)))})},p=(0,a.useMemo)(()=>Object.entries(r).map(e=>e[1]),[r]);return{uploadFiles:h,uploadsList:p,uploadCancel:f}}({activeDirectoryPath:r}),{downloadFiles:h,downloadsList:p,getFileUrl:m,downloadCancel:v}=function(){let e=(0,c.p$)(),[t,n]=(0,a.useState)({}),r=(0,a.useCallback)(e=>{n(t=>({...t,[e.path]:{id:e.path,path:e.path,bucket:e.bucket,name:e.name,size:e.size,loaded:e.loaded,isUploading:!1,controller:e.controller,type:"file"}}))},[n]),o=(0,a.useCallback)(e=>{n(t=>t[e.path]?{...t,[e.path]:{...t[e.path],path:e.path,loaded:e.loaded,size:e.size}}:t)},[n]),s=(0,a.useCallback)(e=>{n(t=>(delete t[e],{...t}))},[n]),l=(0,a.useCallback)(e=>{e.controller.abort()},[]),u=async n=>{n.forEach(async n=>{let a=!1,l=(0,d.ru)(n),u=(0,d.vt)(n);if(t[n]){(0,i.OHV)("Already downloading file: ".concat(n));return}let c=new AbortController,f=O()(e=>{a||o({path:n,loaded:e.loaded,size:e.total})},2e3);r({path:n,name:u,bucket:l,loaded:0,size:1,controller:c});let h=await e.get(u,{params:(0,d.W0)(n),config:{axios:{onDownloadProgress:f,signal:c.signal}}});a=!0,h.error&&("canceled"===h.error?(0,i.RFt)("File download canceled."):(0,i.OHV)(h.error)),s(n)})},f=(0,a.useMemo)(()=>Object.entries(t).map(e=>e[1]),[t]),{settings:h}=(0,M.Hv)(),p=(0,a.useCallback)((e,t)=>{let{bucket:n,key:r}=(0,d.W0)(e),i="/worker/objects/".concat(r,"?bucket=").concat(n),o=h.api||location.origin,a=o.startsWith("https")?"https":"http",s=o.replace("https://","").replace("http://","");return t?"".concat(a,"://:").concat(h.password,"@").concat(s,"/api").concat(i):"".concat(a,"://").concat(s,"/api").concat(i)},[h]);return{downloadFiles:u,downloadsList:f,getFileUrl:p,downloadCancel:l}}(),{limit:g,offset:y,response:x,dataset:w}=function(e){let{activeDirectoryPath:t,uploadsList:n}=e,r=(0,c.B$)(),a=(0,o.useRouter)(),s=Number(a.query.limit||50),l=Number(a.query.offset||0),u=(0,d.ru)(t),f=(0,c.Jv)({disabled:!u,params:{...(0,d.W0)(t),offset:l,limit:s},config:{swr:{refreshInterval:(0,i.sWj)(1)}}}),{dataset:h}=(0,N.G)(),p=(0,P.ZP)(f.isValidating||r.isValidating?null:[f.data,n,h,r.data,u,t],()=>{var e,i;let o={};u?f.data&&(null===(i=f.data.entries)||void 0===i||i.forEach(e=>{let{name:t,size:n,health:r}=e,i=(0,d.M7)(u,t);o[i]={id:i,path:i,bucket:u,size:n,health:r,name:(0,d.vt)(t),type:(0,d.IQ)(t)?"directory":"file"}}),n.filter(e=>{let{path:n,name:r}=e;return n===(0,d.pC)(t,r)}).forEach(e=>{o[e.path]=e})):null===(e=r.data)||void 0===e||e.forEach(e=>{let{name:t}=e,n=(0,d.wv)(t,"");o[t]={id:n,path:n,bucket:t,size:0,health:0,name:t,type:"bucket"}});let a=b()(A()(o).map(e=>e[1]),"path");return a},{keepPreviousData:!0});return{limit:s,offset:l,response:f,dataset:p.data}}({activeDirectoryPath:r,uploadsList:u}),{configurableColumns:j,enabledColumns:E,sortableColumns:k,toggleColumnVisibility:C,setColumnsVisible:T,setColumnsHidden:R,toggleSort:D,setSortDirection:L,setSortField:F,sortField:z,sortDirection:V,resetDefaultColumnVisibility:I}=(0,i.oy6)("renterd/v0/objects",{columns:S,columnsDefaultVisible:_.gd,sortOptions:_.Fo,defaultSortField:_.nw}),{filters:Z,setFilter:B,removeFilter:H,removeLastFilter:U,resetFilters:W}=(0,i.Wdu)(),q=(0,i._4u)({dataset:w,filters:Z,sortField:z,sortDirection:V}),$=(null==q?void 0:q.length)||0,K=(0,a.useMemo)(()=>q?t.length>0&&q.length>0?[{id:"..",name:"..",path:"..",type:"directory"},...q]:q:null,[q]),Y=(0,a.useMemo)(()=>S.filter(e=>e.fixed||E.includes(e.id)),[E]),G=(0,i.c2j)(q,x.isValidating,x.error,Z),X=0===t.length,J=1===t.length,Q=t.length>0;return{isViewingBuckets:X,isViewingABucket:Q,isViewingRootOfABucket:J,activeBucket:n,activeDirectory:t,setActiveDirectory:s,activeDirectoryPath:r,dataState:G,limit:g,offset:y,datasetPage:K,pageCount:$,datasetCount:(null==q?void 0:q.length)||0,columns:Y,uploadFiles:l,uploadsList:u,uploadCancel:f,downloadFiles:h,downloadsList:p,downloadCancel:v,configurableColumns:j,enabledColumns:E,sortableColumns:k,toggleColumnVisibility:C,setColumnsVisible:T,setColumnsHidden:R,toggleSort:D,setSortDirection:L,setSortField:F,sortField:z,filters:Z,setFilter:B,removeFilter:H,removeLastFilter:U,resetFilters:W,sortDirection:V,resetDefaultColumnVisibility:I,getFileUrl:m}}();return(0,r.jsx)(R.Provider,{value:n,children:t})}},91652:function(e,t,n){"use strict";function r(e,t){let n=t.startsWith("/")?t.slice(1):t;return e+n}function i(e,t){let n=r(e,t);return n.endsWith("/")?n:n+"/"}function o(e,t){return"".concat(e).concat(t)}function a(e){return e.split("/")[0]}function s(e){return{bucket:a(e),key:(function(e){let t=e.split("/").slice(1).join("/");return"/".concat(t)})(e).slice(1).split("/").map(encodeURIComponent).join("/")}}function l(e){let t=e.split("/");return e.endsWith("/")?"".concat(t[t.length-2],"/"):t[t.length-1]}function u(e){return e.endsWith("/")}function c(e){return u(e)?e.slice(0,-1).split("/"):e.split("/").slice(0,-1)}function d(e){return e.join("/")}n.d(t,{IQ:function(){return u},M7:function(){return o},W0:function(){return s},gD:function(){return c},pC:function(){return r},rd:function(){return d},ru:function(){return a},vt:function(){return l},wv:function(){return i}})},81471:function(e,t,n){"use strict";n.d(t,{Fo:function(){return o},gd:function(){return r},nw:function(){return i}});let r=["type","name","size","health"],i="name",o=[{id:"name",label:"name",category:"general"}]},19513:function(e,t,n){"use strict";n.d(t,{x:function(){return el},l:function(){return es}});var r,i,o=n(52322),a=n(80446),s=n(9969),l=n(2784);let u=["allow","netAddress","publicKey","lastScan","lastAnnouncement","totalScans","uptime","hasContract","ap_usable","ap_scoreOverall"];var c=n(5632),d=n(88242),f=n(96206),h=n(19785),p=n(66700),m=n(88811);function v(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function g(e,t){return(0,h.Z)(2,arguments),function(e,t){(0,h.Z)(2,arguments);var n=(0,p.Z)(e).getTime(),r=v(t);return new Date(n+r)}(e,-v(t))}function y(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}function x(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=y(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=y(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function b(e,t){(0,h.Z)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:v(i),a=null==n.weekStartsOn?o:v(n.weekStartsOn);if(!(a>=0&&a<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=(0,p.Z)(e),l=s.getUTCDay();return s.setUTCDate(s.getUTCDate()-((l=1&&l<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(r+1,0,l),u.setUTCHours(0,0,0,0);var c=b(u,t),d=new Date(0);d.setUTCFullYear(r,0,l),d.setUTCHours(0,0,0,0);var f=b(d,t);return n.getTime()>=c.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function j(e,t){for(var n=Math.abs(e).toString();n.length0?n:1-n;return j("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):j(n+1,2)},d:function(e,t){return j(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return j(e.getUTCHours()%12||12,t.length)},H:function(e,t){return j(e.getUTCHours(),t.length)},m:function(e,t){return j(e.getUTCMinutes(),t.length)},s:function(e,t){return j(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length;return j(Math.floor(e.getUTCMilliseconds()*Math.pow(10,n-3)),t.length)}},k={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function S(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+(t||"")+j(o,2)}function _(e,t){return e%60==0?(e>0?"-":"+")+j(Math.abs(e)/60,2):C(e,t)}function C(e,t){var n=e>0?"-":"+",r=Math.abs(e);return n+j(Math.floor(r/60),2)+(t||"")+j(r%60,2)}var O={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return E.y(e,t)},Y:function(e,t,n,r){var i=w(e,r),o=i>0?i:1-i;return"YY"===t?j(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):j(o,t.length)},R:function(e,t){return j(x(e),t.length)},u:function(e,t){return j(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return j(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return j(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return E.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return j(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=function(e,t){(0,h.Z)(1,arguments);var n=(0,p.Z)(e);return Math.round((b(n,t).getTime()-(function(e,t){(0,h.Z)(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:v(i),a=null==n.firstWeekContainsDate?o:v(n.firstWeekContainsDate),s=w(e,t),l=new Date(0);return l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0),b(l,t)})(n,t).getTime())/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):j(i,t.length)},I:function(e,t,n){var r=function(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e);return Math.round((y(t).getTime()-(function(e){(0,h.Z)(1,arguments);var t=x(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),y(n)})(t).getTime())/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):j(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):E.d(e,t)},D:function(e,t,n){var r=function(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e),n=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((n-t.getTime())/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):j(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return j(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return j(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return j(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?k.noon:0===i?k.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?k.evening:i>=12?k.afternoon:i>=4?k.morning:k.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return E.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):E.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):j(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):j(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):E.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):E.s(e,t)},S:function(e,t){return E.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return _(i);case"XXXX":case"XX":return C(i);default:return C(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return _(i);case"xxxx":case"xx":return C(i);default:return C(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+S(i,":");default:return"GMT"+C(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+S(i,":");default:return"GMT"+C(i,":")}},t:function(e,t,n,r){return j(Math.floor((r._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,n,r){return j((r._originalDate||e).getTime(),t.length)}};function M(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function T(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}var A={p:T,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return M(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",M(i,t)).replace("{{time}}",T(o,t))}},P=n(1645),N=["D","DD"],R=["YY","YYYY"];function D(e,t,n){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var L=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,F=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,z=/^'([^]*?)'?$/,V=/''/g,I=/[a-zA-Z]/;function Z(e,t,n){(0,h.Z)(2,arguments);var r=String(t),i=n||{},o=i.locale||m.Z,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:v(a),l=null==i.firstWeekContainsDate?s:v(i.firstWeekContainsDate);if(!(l>=1&&l<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,c=null==u?0:v(u),d=null==i.weekStartsOn?c:v(i.weekStartsOn);if(!(d>=0&&d<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw RangeError("locale must contain localize property");if(!o.formatLong)throw RangeError("locale must contain formatLong property");var f=(0,p.Z)(e);if(!function(e){return(0,h.Z)(1,arguments),(!!function(e){return(0,h.Z)(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,p.Z)(e)))}(f))throw RangeError("Invalid time value");var y=(0,P.Z)(f),x=g(f,y),b={firstWeekContainsDate:l,weekStartsOn:d,locale:o,_originalDate:f};return r.match(F).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,A[t])(e,o.formatLong,b):e}).join("").match(L).map(function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return n.match(z)[1].replace(V,"'");var a=O[r];if(a)return i.useAdditionalWeekYearTokens||-1===R.indexOf(n)||D(n,t,e),i.useAdditionalDayOfYearTokens||-1===N.indexOf(n)||D(n,t,e),a(x,n,o.localize,b);if(r.match(I))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n}).join("")}var B=n(29193);function H(e){(0,h.Z)(1,arguments);var t=(0,p.Z)(e);return t.setHours(0,0,0,0),t}var U=n(848),W=n(2850),q=n(6391),$=n.n(q);let K=[{id:"actions",label:"",fixed:!0,category:"general",cellClassName:"w-[50px] !pl-2 !pr-4 [&+*]:!pl-0",render:e=>{let{data:t}=e;return(0,o.jsx)(U.G,{address:t.netAddress,publicKey:t.publicKey})}},{id:"allow",label:"allowed",category:"general",contentClassName:"justify-center",render:function(e){var t;let{data:n}=e,r=(0,s.s2)({config:{swr:{dedupingInterval:5e3}}}),i=!!(null===(t=r.data)||void 0===t?void 0:t.length);return(0,o.jsx)(a.ua7,{side:"right",content:(i?"Allowlist ".concat(n.isOnAllowlist?"allows this host.":"does not allow this host."):"Allowlist is inactive.")+" Blocklist ".concat(n.isOnBlocklist?"blocks this host.":"does not block this host."),children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:n.isBlocked?"red":"green",children:n.isBlocked?(0,o.jsx)(d.SmH,{}):(0,o.jsx)(d.DI$,{})})}),(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)(a.xvT,{size:"10",color:n.isOnBlocklist?"red":"verySubtle",noWrap:!0,children:"Blocklist"}),(0,o.jsx)(a.xvT,{size:"10",color:i?n.isOnAllowlist?"green":"red":"verySubtle",noWrap:!0,children:"Allowlist"})]})]})})}},{id:"ap_usable",label:"usable",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.ua7,{side:"right",content:t.usable?"Host is usable":"Host is not usable",children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t.usable?"green":"red",children:t.usable?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.SmH,{})})}),(0,o.jsx)("div",{className:"flex flex-col",children:t.unusableReasons.map(e=>(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:e},e))})]})}):(0,o.jsx)(a.ua7,{side:"right",content:"Autopilot is not configured",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:"subtle",children:(0,o.jsx)(d.I98,{})})})})}},{id:"ap_gouging",label:"gouging",category:"autopilot",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.ua7,{side:"right",content:t.gouging?"Host is price gouging":"Host is not price gouging",children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t.gouging?"red":"subtle",children:t.gouging?(0,o.jsx)(d.SmH,{}):(0,o.jsx)(d.I98,{})})}),(0,o.jsxs)("div",{className:"flex flex-col",children:[Object.entries(t.gougingBreakdown.v2).filter(e=>{let[t,n]=e;return n&&"string"==typeof n}).map(e=>{let[t,n]=e;return(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:n},"v2"+t)}),Object.entries(t.gougingBreakdown.v3).filter(e=>{let[t,n]=e;return n&&"string"==typeof n}).map(e=>{let[t,n]=e;return(0,o.jsx)(a.xvT,{size:"10",noWrap:!0,children:n},"v3"+t)})]})]})}):(0,o.jsx)(a.ua7,{side:"right",content:"Autopilot is not configured",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:"subtle",children:(0,o.jsx)(d.I98,{})})})})}},{id:"lastScan",label:"last scan",category:"general",render:function(e){let{data:t}=e,{workflows:n}=(0,W.D)(),r=n.find(e=>{var n;return e.path.startsWith(s.RF)&&(null===(n=e.payload)||void 0===n?void 0:n.hostKey)===t.publicKey});if(r)return(0,o.jsx)(a.xgg,{});let i=(0,B.Z)(new Date(t.lastScan),new Date,{addSuffix:!0}),l="",u=null,c="subtle";return t.lastScan||(l="host has not been scanned",u=(0,o.jsx)(d.I98,{}),c="subtle"),t.lastScan&&!t.lastScanSuccess&&(l="host scan failed ".concat(i),u=(0,o.jsx)(d.SmH,{}),c="red"),t.lastScan&&t.lastScanSuccess&&(l="host scan succeeded ".concat(i),u=(0,o.jsx)(d.DI$,{}),c="green"),(0,o.jsx)(a.ua7,{side:"right",content:l,children:(0,o.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:c,children:u})}),t.lastScan&&(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)(a.xvT,{size:"12",noWrap:!0,children:i}),(0,o.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children:Z(new Date(t.lastScan),"Pp")})]})]})})}},{id:"hasContract",label:"active contract",category:"general",contentClassName:"w-[50px]",render:e=>{let{data:t}=e,n=t.activeContractsCount.gt(0);return(0,o.jsx)(a.ua7,{side:"right",content:n?"Host has active contract":"Host does not have an active contract",children:(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:n?"green":"subtle",children:n?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.I98,{})})})})}},{id:"netAddress",label:"address",category:"general",render:e=>{let{data:t}=e;return(0,o.jsx)(a.XxW,{value:t.netAddress,type:"ip",size:"12",label:"host address"})}},{id:"publicKey",label:"public key",category:"general",render:e=>{let{data:t}=e;return(0,o.jsx)(a.XxW,{value:t.publicKey,size:"12",label:"host public key"})}},{id:"lastAnnouncement",label:"last announcement",category:"general",render:e=>{let{data:t}=e;return(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsxs)(a.xvT,{size:"12",noWrap:!0,children:[(0,B.Z)(new Date,new Date(t.lastAnnouncement))," ago"]}),(0,o.jsx)(a.xvT,{color:"subtle",size:"10",noWrap:!0,children:function(e,t,n){(0,h.Z)(2,arguments);var r=(0,p.Z)(e),i=(0,p.Z)(t),o={},a=o.locale,s=void 0===a?m.Z:a,l=o.weekStartsOn,u=void 0===l?0:l;if(!s.localize)throw RangeError("locale must contain localize property");if(!s.formatLong)throw RangeError("locale must contain formatLong property");if(!s.formatRelative)throw RangeError("locale must contain formatRelative property");var c=function(e,t){(0,h.Z)(2,arguments);var n=H(e),r=H(t);return Math.round((n.getTime()-(0,P.Z)(n)-(r.getTime()-(0,P.Z)(r)))/864e5)}(r,i);if(isNaN(c))throw RangeError("Invalid time value");var d=g(r,(0,P.Z)(r)),f=g(i,(0,P.Z)(i));return Z(r,s.formatRelative(c<-6?"other":c<-1?"lastWeek":c<0?"yesterday":c<1?"today":c<2?"tomorrow":c<7?"nextWeek":"other",d,f,{locale:s,weekStartsOn:u}),{locale:s,weekStartsOn:u})}(new Date(t.lastAnnouncement),new Date)})]})}},{id:"totalScans",label:"total scans",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.totalScans,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"uptime",label:"uptime",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.uptime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,f.yF)(e,{fixed:e.isZero()?0:2,units:"days"})})}},{id:"downtime",label:"downtime",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.downtime.div(1e9).div(60).div(60).div(24),variant:"value",format:e=>(0,f.yF)(e,{fixed:e.isZero()?0:2,units:"days"})})}},{id:"totalInteractions",label:"total interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.totalInteractions,variant:"value",format:e=>(0,f.yF)(e)})}},{id:"successfulInteractions",label:"successful interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.successfulInteractions,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"failedInteractions",label:"failed interactions",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.failedInteractions,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"contractCount",label:"contract count",category:"general",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t}=e;return(0,o.jsx)(a.m2c,{size:"12",value:t.activeContractsCount,variant:"value",format:e=>(0,f.yF)(e.toNumber())})}},{id:"ap_scoreOverall",label:"overall score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.score,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreAge",label:"age score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.age,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreCollateral",label:"collateral score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.collateral,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreInteractions",label:"interactions score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.interactions,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scorePrices",label:"prices score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.prices,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreStorageRemaining",label:"storage remaining score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.storageRemaining,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreUptime",label:"uptime score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.uptime,variant:"value",format:e=>e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"ap_scoreVersion",label:"version score",category:"autopilot",contentClassName:"w-[120px] justify-end",render:e=>{let{data:t,context:n}=e;return n.isAutopilotConfigured?(0,o.jsx)(a.m2c,{size:"12",value:t.scoreBreakdown.version,variant:"value",format:e=>n.isAutopilotConfigured?"-":e.toPrecision(2)}):(0,o.jsx)(a.ua7,{content:"Autopilot is not configured",children:(0,o.jsx)(a.xvT,{color:"verySubtle",children:"-"})})}},{id:"hpt_accountbalancecost",label:"account balance cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","accountbalancecost")},{id:"hpt_collateralcost",label:"collateral cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","collateralcost")},{id:"hpt_contractprice",label:"contract price",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","contractprice")},{id:"hpt_downloadbandwidthcost",label:"download bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","downloadbandwidthcost")},{id:"hpt_dropsectorsbasecost",label:"drop sectors base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","dropsectorsbasecost")},{id:"hpt_dropsectorsunitcost",label:"drop sectors unit cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","dropsectorsunitcost")},{id:"hpt_expiry",label:"expiry",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","dropsectorsunitcost")},{id:"hpt_fundaccountcost",label:"fund account cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","fundaccountcost")},{id:"hpt_hassectorbasecost",label:"has sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","hassectorbasecost")},{id:"hpt_hostblockheight",label:"host block height",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","hostblockheight")},{id:"hpt_initbasecost",label:"init base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","initbasecost")},{id:"hpt_latestrevisioncost",label:"latest revision cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","latestrevisioncost")},{id:"hpt_maxcollateral",label:"max collateral",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","maxcollateral")},{id:"hpt_maxduration",label:"max duration",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","maxduration")},{id:"hpt_memorytimecost",label:"memory time cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","memorytimecost")},{id:"hpt_readbasecost",label:"read base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","readbasecost")},{id:"hpt_readlengthcost",label:"read length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","readlengthcost")},{id:"hpt_registryentriesleft",label:"registry entries left",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","registryentriesleft")},{id:"hpt_registryentriestotal",label:"registry entries total",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","registryentriestotal")},{id:"hpt_renewcontractcost",label:"renew contract cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","renewcontractcost")},{id:"hpt_revisionbasecost",label:"revision base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","renewcontractcost")},{id:"hpt_subscriptionmemorycost",label:"subscription memory cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","subscriptionmemorycost")},{id:"hpt_subscriptionnotificationcost",label:"subscription notification cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","subscriptionnotificationcost")},{id:"hpt_swapsectorcost",label:"swap sector cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","swapsectorcost")},{id:"hpt_txnfeemaxrecommended",label:"txn fee max recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","txnfeemaxrecommended")},{id:"hpt_txnfeeminrecommended",label:"txn fee min recommended",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","txnfeeminrecommended")},{id:"hpt_uid",label:"UID",category:"priceTable",contentClassName:"w-[120px] justify-end",render:X("priceTable","uid")},{id:"hpt_updatepricetablecost",label:"update price table cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","updatepricetablecost")},{id:"hpt_uploadbandwidthcost",label:"upload bandwidth cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","uploadbandwidthcost")},{id:"hpt_validity",label:"validity",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","validity")},{id:"hpt_windowsize",label:"window size",category:"priceTable",contentClassName:"w-[120px] justify-end",render:G("priceTable","windowsize")},{id:"hpt_writebasecost",label:"write base cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writebasecost")},{id:"hpt_writelengthcost",label:"write length cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writelengthcost")},{id:"hpt_writestorecost",label:"write store cost",category:"priceTable",contentClassName:"w-[120px] justify-end",render:Y("priceTable","writestorecost")},{id:"hs_acceptingcontracts",label:"accepting contracts",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:(r="settings",i="acceptingcontracts",function(e){let{data:t}=e;return t[r]?(0,o.jsx)("div",{className:"mt-[5px]",children:(0,o.jsx)(a.xvT,{color:t[r][i]?"green":"red",children:t[r][i]?(0,o.jsx)(d.DI$,{}):(0,o.jsx)(d.SmH,{})})}):null})},{id:"hs_baserpcprice",label:"base RPC price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","baserpcprice")},{id:"hs_collateral",label:"collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","collateral")},{id:"hs_contractprice",label:"contract price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","contractprice")},{id:"hs_downloadbandwidthprice",label:"download bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","downloadbandwidthprice")},{id:"hs_ephemeralaccountexpiry",label:"ephemeral account expiry",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","ephemeralaccountexpiry")},{id:"hs_maxcollateral",label:"max collateral",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","maxcollateral")},{id:"hs_maxdownloadbatchsize",label:"max download batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","maxdownloadbatchsize")},{id:"hs_maxduration",label:"max duration",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","maxduration")},{id:"hs_maxephemeralaccountbalance",label:"max ephemeral account balance",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","maxephemeralaccountbalance")},{id:"hs_maxrevisebatchsize",label:"max revise batch size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","maxrevisebatchsize")},{id:"hs_netaddress",label:"net address",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","netaddress")},{id:"hs_remainingstorage",label:"remaining storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","remainingstorage")},{id:"hs_revisionnumber",label:"revision number",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","revisionnumber")},{id:"hs_sectoraccessprice",label:"sector access price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","sectoraccessprice")},{id:"hs_sectorsize",label:"sector size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","sectorsize")},{id:"hs_siamuxport",label:"siamux port",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","siamuxport")},{id:"hs_storageprice",label:"storage price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","storageprice")},{id:"hs_totalstorage",label:"total storage",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:J("settings","totalstorage")},{id:"hs_unlockhash",label:"unlock hash",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","unlockhash")},{id:"hs_uploadbandwidthprice",label:"upload bandwidth price",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:Y("settings","uploadbandwidthprice")},{id:"hs_version",label:"verison",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:X("settings","version")},{id:"hs_windowsize",label:"window size",category:"hostSettings",contentClassName:"w-[120px] justify-end",render:G("settings","windowsize")}].map(e=>({...e,..."autopilot"===e.category?{icon:(0,o.jsx)(d.n6M,{className:"relative opacity-50 scale-75"}),label:e.label,tip:"autopilot: ".concat(e.label)}:"hostSettings"===e.category?{icon:(0,o.jsx)(d.shL,{className:"relative top-px opacity-50 scale-75"}),label:e.label,tip:"host settings (RHPv2): ".concat(e.label)}:"priceTable"===e.category?{icon:(0,o.jsx)(d.B4q,{className:"relative top-px opacity-50 scale-75"}),label:e.label,tip:"price table (RHPv3): ".concat(e.label)}:{label:e.label,tip:e.label}}));function Y(e,t){return function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.YKL,{size:"12",value:new($())(r[e][t]||0),variant:"value"}):null}}function G(e,t,n){return function(r){let{data:i}=r;return i[e]?(0,o.jsx)(a.m2c,{size:"12",value:new($())(i[e][t]||0),variant:"value",format:e=>(0,f.yF)(e,{abbreviated:n})}):null}}function X(e,t){return function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.XxW,{value:r[e][t],size:"12"}):null}}function J(e,t){return function(n){let{data:r}=n;return r[e]?(0,o.jsx)(a.xvT,{size:"12",weight:"semibold",ellipsis:!0,children:(0,f.vW)(r[e][t])}):null}}var Q=n(13242);function ee(e,t){return{id:e.publicKey,netAddress:e.netAddress,publicKey:e.publicKey,lastScanSuccess:e.interactions.LastScanSuccess,lastScan:"0001-01-01T00:00:00Z"===e.interactions.LastScan?null:e.interactions.LastScan,knownSince:"0001-01-01T00:00:00Z"===e.knownSince?null:e.knownSince,lastAnnouncement:"0001-01-01T00:00:00Z"===e.lastAnnouncement?null:e.lastAnnouncement,uptime:new($())(e.interactions.Uptime||0),downtime:new($())(e.interactions.Downtime||0),successfulInteractions:new($())(e.interactions.SuccessfulInteractions||0),totalInteractions:new($())(e.interactions.SuccessfulInteractions+e.interactions.FailedInteractions||0),failedInteractions:new($())(e.interactions.FailedInteractions||0),totalScans:new($())(e.interactions.TotalScans||0),activeContractsCount:new($())((null==t?void 0:t.filter(t=>t.hostKey===e.publicKey).length)||0),activeContracts:(null==t?void 0:t.filter(t=>t.hostKey===e.publicKey))||[],priceTable:e.priceTable,settings:e.settings}}function et(e){let{host:t,allowlist:n,blocklist:r,isAllowlistActive:i}=e,o=!!(null==n?void 0:n.find(e=>e===t.publicKey)),a=!!(null==r?void 0:r.find(e=>{if(e===t.netAddress)return!0;try{let n=new URL("https://"+t.netAddress).hostname;return e===n}catch(e){return!1}}));return{isOnAllowlist:o,isOnBlocklist:a,isBlocked:a||!(!i||o)}}function en(e){return{score:new($())((null==e?void 0:e.score)||0),scoreBreakdown:{age:new($())((null==e?void 0:e.scoreBreakdown.age)||0),collateral:new($())((null==e?void 0:e.scoreBreakdown.collateral)||0),interactions:new($())((null==e?void 0:e.scoreBreakdown.interactions)||0),prices:new($())((null==e?void 0:e.scoreBreakdown.prices)||0),storageRemaining:new($())((null==e?void 0:e.scoreBreakdown.storageRemaining)||0),uptime:new($())((null==e?void 0:e.scoreBreakdown.uptime)||0),version:new($())((null==e?void 0:e.scoreBreakdown.version)||0)},gougingBreakdown:(null==e?void 0:e.gougingBreakdown)||{v2:{},v3:{}},gouging:null==e?void 0:e.gouging,unusableReasons:(null==e?void 0:e.unusableReasons)||[],usable:null==e?void 0:e.usable}}var er=n(91641),ei=n(34444),eo=n(47025);let ea=(0,l.createContext)({}),es=()=>(0,l.useContext)(ea);function el(e){let{children:t}=e,n=function(){var e,t,n,r,i,o,d;let f=(0,c.useRouter)(),[h,p]=(0,l.useState)("list"),m=Number(f.query.limit||50),v=Number(f.query.offset||0),{filters:g,setFilter:y,removeFilter:x,removeLastFilter:b,resetFilters:w}=(0,a.Uu5)(),{dataset:j}=(0,Q.G)(),{autopilot:E}=(0,er.q)(),k=(0,l.useMemo)(()=>{let e=[];g.find(e=>"hasActiveContracts"===e.id)&&j&&(e=j.map(e=>e.hostKey));let t=g.find(e=>"publicKeyEquals"===e.id);return t&&e.push(null==t?void 0:t.value),e.length?e:void 0},[g,j]),S=(0,s.S0)({disabled:g.find(e=>"hasActiveContracts"===e.id)&&!j||"on"!==E.status,payload:{limit:m,offset:v,usabilityMode:(null===(e=g.find(e=>"usabilityMode"===e.id))||void 0===e?void 0:e.value)||"all",filterMode:(null===(t=g.find(e=>"filterMode"===e.id))||void 0===t?void 0:t.value)||"all",addressContains:null===(n=g.find(e=>"addressContains"===e.id))||void 0===n?void 0:n.value,keyIn:k},config:{swr:{errorRetryInterval:2e4,refreshInterval:(0,a.sWj)(1)}}}),_=(0,s.FV)({disabled:"off"!==E.status,payload:{limit:m,offset:v,filterMode:(null===(r=g.find(e=>"filterMode"===e.id))||void 0===r?void 0:r.value)||"all",addressContains:null===(i=g.find(e=>"addressContains"===e.id))||void 0===i?void 0:i.value,keyIn:g.find(e=>"hasActiveContracts"===e.id)&&j?j.map(e=>e.hostKey):void 0},config:{swr:{refreshInterval:(0,a.sWj)(1)}}}),C=(0,s.s2)(),O=(0,s.uf)(),M=!!(null===(o=C.data)||void 0===o?void 0:o.length),{settings:T}=(0,W.Hv)(),A=(0,eo.JL)({disabled:!T.siaCentral,config:{swr:{revalidateOnFocus:!1}}});(0,l.useEffect)(()=>{T.siaCentral||p("list")},[T.siaCentral]);let P=(0,l.useMemo)(()=>{var e;return(null===(e=A.data)||void 0===e?void 0:e.hosts)||[]},[A.data]),N=(0,l.useRef)(ei.N),R=(0,l.useCallback)(e=>{N.current=e},[N]),[D,L]=(0,l.useState)(),F=(0,l.useCallback)(e=>{let t=document.getElementById(e),n=document.getElementById("scroll-hosts");t&&n&&n.scroll({top:t.offsetTop-50,behavior:"smooth"})},[]),z=(0,l.useCallback)((e,t)=>{if(D===e){L(void 0);return}L(e),t&&N.current.moveToLocation(t),F(e)},[L,N,D,F]),V=(0,l.useCallback)((e,t)=>{if(D===e){L(void 0);return}L(e),t?N.current.moveToLocation(t):(0,a.OHV)("Geographic location is unknown for host ".concat((0,a.$Gg)(e,20))),F(e)},[L,N,D,F]),I=(0,l.useCallback)((e,t)=>null,[]),Z=function(e){let{autopilotStatus:t,regularResponse:n,autopilotResponse:r,allContracts:i,allowlist:o,blocklist:a,isAllowlistActive:s,geoHosts:u,onHostSelect:c}=e;return(0,l.useMemo)(()=>{var e,l;return"off"===t?(null===(e=n.data)||void 0===e?void 0:e.map(e=>{let t=u.find(t=>t.public_key===e.publicKey);return{onClick:()=>c(e.publicKey,null==t?void 0:t.location),...ee(e,i),...et({host:e,allowlist:o.data,blocklist:a.data,isAllowlistActive:s}),...en(),location:null==t?void 0:t.location,countryCode:null==t?void 0:t.country_code}}))||null:"on"===t&&(null===(l=r.data)||void 0===l?void 0:l.map(e=>{let t=u.find(t=>t.public_key===e.host.publicKey);return{onClick:()=>c(e.host.publicKey,null==t?void 0:t.location),...ee(e.host,i),...et({host:e.host,allowlist:o.data,blocklist:a.data,isAllowlistActive:s}),...en(e.checks),location:null==t?void 0:t.location,countryCode:null==t?void 0:t.country_code}}))||null},[c,t,n.data,r.data,i,o.data,a.data,s,u])}({autopilotStatus:E.status,autopilotResponse:S,regularResponse:_,allContracts:j,allowlist:C,blocklist:O,isAllowlistActive:M,geoHosts:P,onHostSelect:V}),B=(0,l.useMemo)(()=>"off"===E.status?["autopilot"]:[],[E.status]),{configurableColumns:H,enabledColumns:U,toggleColumnVisibility:q,setColumnsVisible:$,setColumnsHidden:Y,toggleSort:G,setSortDirection:X,setSortField:J,sortField:ea,sortDirection:es,resetDefaultColumnVisibility:el}=(0,a.oy6)("renterd/v0/hosts",{columns:K,columnsDefaultVisible:u,disabledCategories:B}),eu=(0,l.useMemo)(()=>K.filter(e=>U.includes(e.id)),[U]),ec="on"===E.status?S.isValidating:_.isValidating,ed="on"===E.status?S.error:_.error,ef=(0,a.c2j)(Z,ec,ed,g),eh=null===(d=E.state.data)||void 0===d?void 0:d.configured,ep=(0,l.useMemo)(()=>({isAutopilotConfigured:eh}),[eh]),em=(0,l.useMemo)(()=>null==Z?void 0:Z.filter(e=>e.location),[Z]),ev=(0,l.useMemo)(()=>null==Z?void 0:Z.find(e=>e.publicKey===D),[Z,D]);return{setCmd:R,viewMode:h,activeHost:ev,onHostMapHover:I,onHostMapClick:z,setViewMode:p,hostsWithLocation:em,error:ed,dataState:ef,offset:v,limit:m,pageCount:(null==Z?void 0:Z.length)||0,columns:eu,dataset:Z,tableContext:ep,configurableColumns:H,enabledColumns:U,toggleColumnVisibility:q,setColumnsVisible:$,setColumnsHidden:Y,toggleSort:G,setSortDirection:X,setSortField:J,sortField:ea,sortDirection:es,resetDefaultColumnVisibility:el,filters:g,setFilter:y,removeFilter:x,removeLastFilter:b,resetFilters:w}}();return(0,o.jsx)(ea.Provider,{value:n,children:t})}},10917:function(e,t,n){"use strict";n.d(t,{Kg:function(){return o},jY:function(){return i}});var r=n(80446);let i={activeAndUsable:{colorHex:r.O9T.green[600],colorName:"green"},activeAndUnusable:{colorHex:r.O9T.amber[600],colorName:"amber"},potentialHost:{colorHex:r.O9T.blue[600],colorName:"blue"}};function o(e){return e.activeContractsCount.gt(0)&&!e.usable?{status:"activeAndUnusable",...i.activeAndUnusable}:e.activeContractsCount.gt(0)?{status:"activeAndUsable",...i.activeAndUsable}:{status:"potentialHost",...i.potentialHost}}},33571:function(e,t,n){"use strict";n.d(t,{I:function(){return a}});var r=n(80446),i=n(9969),o=n(2784);function a(){let e=(0,i.ni)();return(0,o.useCallback)((t,n)=>{let i=async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)(i.error),!1):(t.length&&(0,r.RFt)("".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to allowlist")),n.length&&(0,r.RFt)("".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from allowlist")),!0)};return i()},[e])}},98358:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var r=n(80446),i=n(9969),o=n(2784);function a(){let e=(0,i.Os)();return(0,o.useCallback)((t,n)=>{let i=async()=>{let i=await e.put({payload:{add:t,remove:n}});return i.error?((0,r.OHV)(i.error),!1):(t.length&&(0,r.RFt)("".concat(t.map(e=>(0,r.$Gg)(e,20)).join(", ")," added to blocklist")),n.length&&(0,r.RFt)("".concat(n.map(e=>(0,r.$Gg)(e,20)).join(", ")," removed from blocklist")),!0)};return i()},[e])}},80489:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(9969);function i(e){return(0,r.yu)({...e,params:{key:"contractset"}})}},82439:function(e,t,n){"use strict";n.d(t,{B:function(){return a},V:function(){return o}});var r=n(52322),i=n(88242);let o={excellent:1,good:.5,poor:0};function a(e){let{health:t,size:n,isDirectory:a}=e,s="excellent",l="green",u=t,c=(0,r.jsx)(i.Y3p,{});return t1&&(u=1),t<0&&(u=0),{label:s+" health",color:l,icon:c,displayHealth:u}}},34658:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});var r=n(9969);function i(e){return(0,r.yu)({...e,params:{key:"redundancy"}})}},25573:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(80446),i=n(2850),o=n(9969);function a(){var e,t,n,a;let{isUnlocked:s}=(0,i.Hv)(),l=(0,o.DQ)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.synced)?(0,r.XBW)(60):(0,r.XBW)(10)}}}),u=(0,o.nH)(),c=l.data?null===(e=l.data)||void 0===e?void 0:e.blockHeight:0,d=(0,o.Tu)({config:{swr:{refreshInterval:e=>(null==e?void 0:e.scanHeight)>=c?(0,r.XBW)(60):(0,r.XBW)(10)}}}),f=s&&c&&u?Number((100*Math.min(c/u,1)).toFixed(1)):0,h=s&&c&&d.data?Number((100*Math.min(d.data.scanHeight/u,1)).toFixed(1)):0;return{isSynced:null===(t=l.data)||void 0===t?void 0:t.synced,isWalletSynced:(null===(n=l.data)||void 0===n?void 0:n.synced)&&(null===(a=d.data)||void 0===a?void 0:a.scanHeight)>=c-1,nodeBlockHeight:c,estimatedBlockHeight:u,syncPercent:f,walletScanPercent:h,moreThan100BlocksToSync:!!c&&!!u&&u-c>100,firstTimeSyncing:!!c&&!!u&&u-c>5e4}}},48201:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return C}});var r=n(52322);n(37832);var i=n(80446),o=n(86450),a=n(48528),s=n(13242),l=n(19513),u=n(2784),c=n(91641),d=n(17286),f=n(88242),h=n(25573),p=n(71930),m=n(4370),v=n(9969),g=n(6391),y=n.n(g),x=n(96206),b=n(2850),w=n(92762);function j(){var e,t;let{isUnlocked:n}=(0,b.Hv)(),a=(0,c.q)(),{openDialog:s}=(0,o.Rh)(),l=(0,v.Tu)(),u=(0,v.e$)({config:{swr:{errorRetryInterval:1e4}}}),[d,g]=(0,w.Z)("v0/renterd/onboarding/maximized",{defaultValue:!0}),j=(0,h.n)(),k=(0,m.F)();if(!n||"on"!==a.autopilot.status)return null;let S=new(y())(l.data?l.data.confirmed+l.data.unconfirmed:0),_=new(y())((null===(e=u.data)||void 0===e?void 0:e.contracts.allowance)||0),C=null===(t=a.autopilot.state.data)||void 0===t?void 0:t.configured,O=j.isSynced,M=S.gt(0),T=!k.active,A=[C,O,M,T],P=A.length,N=A.filter(e=>e).length;return P===N?null:d?(0,r.jsx)("div",{className:"z-20 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)(i.TRl,{}),(0,r.jsx)(i.xvT,{size:"20",weight:"semibold",children:"Welcome to Sia"})]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>g(!1),children:(0,r.jsx)(f.mli,{})})]}),(0,r.jsx)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:(0,r.jsx)(i.xvT,{size:"14",children:"Get set up by completing the following steps. Once they are complete, you can start uploading files."})}),(0,r.jsx)(E,{title:(0,r.jsx)(i.rUS,{href:p._.config.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 1: Configure your storage settings"}),description:"Specify how much data you plan to store and your target price.",action:C?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.rUS,{href:p._.config.index,children:(0,r.jsx)(f.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.Fs9,{})})]})}),(0,r.jsx)(E,{title:(0,r.jsx)(i.rUS,{href:p._.node.index,underline:"hover",ellipsis:!0,size:"14",children:"Step 2: Wait for the blockchain to sync"}),description:"The blockchain will sync in the background, this takes some time. No user action required.",action:O?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[j.syncPercent,"%"]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.hzZ,{})})]})}),(0,r.jsx)(E,{title:(0,r.jsx)(i.rUS,{href:p._.wallet.view,onClick:()=>s("addressDetails"),ellipsis:!0,size:"14",underline:"hover",children:"Step 3: Fund your wallet"}),description:"Fund your wallet with at least ".concat((0,x.Vz)(_)," siacoin to cover the required allowance.").concat(j.isWalletSynced?"":" Balance will not be accurate until wallet is finished scanning."),action:M?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[!j.isWalletSynced&&(0,r.jsx)(i.ua7,{content:"Wallet scanning progress ".concat(j.walletScanPercent,"%"),children:(0,r.jsxs)(i.xvT,{size:"14",children:[j.walletScanPercent,"%"]})}),(0,r.jsx)(i.rUS,{href:p._.wallet.view,onClick:()=>s("addressDetails"),children:(0,r.jsx)(f.V8Q,{})}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.Fs9,{})})]})}),(0,r.jsx)(E,{title:(0,r.jsx)(i.rUS,{href:p._.contracts.index,ellipsis:!0,size:"14",underline:"hover",children:"Step 4: Wait for storage contracts to form"}),description:"Once all other steps are complete, contracts will automatically form. No user action required.",action:T?(0,r.jsx)(i.xvT,{color:"green",children:(0,r.jsx)(f.Y3p,{})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.xvT,{ellipsis:!0,size:"14",children:[k.count,"/",k.required]}),(0,r.jsx)(i.xvT,{color:"amber",children:(0,r.jsx)(f.hzZ,{})})]})})]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.zxk,{onClick:()=>g(!0),size:"large",className:"flex gap-3 !px-3",children:(0,r.jsxs)(i.xvT,{className:"flex items-center gap-1",children:[(0,r.jsx)(i.TRl,{}),"Setup: ",N,"/",P," steps complete"]})})})}function E(e){let{title:t,action:n,description:o}=e;return(0,r.jsx)("div",{className:"border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("div",{className:"flex-1 flex items-center",children:t}),n]}),(0,r.jsx)("div",{className:"pr-5",children:(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:o})})]})})}function k(e){return void 0!==e.loaded?e.loaded/e.size:1}function S(){let{isUnlocked:e}=(0,b.Hv)(),{uploadsList:t,uploadCancel:n,downloadsList:o,downloadCancel:s}=(0,a.Y)(),[l,c]=(0,u.useState)(!0),d=t.length,h=o.length;return e&&(0!==d||0!==h)?l?(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsx)(i.s_4,{className:"w-[400px] flex flex-col max-h-[600px]",children:(0,r.jsxs)(i.xrM,{children:[d>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)(i.xvT,{size:"16",weight:"semibold",children:["Active uploads (",d,")"]}),(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(f.mli,{})})]}),t.map(e=>{let t=k(e);return(0,r.jsxs)("div",{className:"flex flex-col gap-1 border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:[(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(i.xvT,{ellipsis:!0,size:"14",className:"flex-1",children:e.path}),(0,r.jsx)(i.zxk,{tip:"Cancel file upload",variant:"ghost",size:"none",onClick:()=>n(e),children:(0,r.jsx)(f.PcV,{})})]}),(0,r.jsx)(i.kod,{variant:"accent",value:e.loaded,max:e.size,className:1===t?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex justify-between mt-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"Processing":"Uploading"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*t).toFixed(0),"%"]})]})]},e.path)})]}):null,h>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex justify-between items-center px-3 py-2 border-b border-gray-200 dark:border-graydark-300",children:[(0,r.jsxs)(i.xvT,{size:"16",weight:"semibold",children:["Active downloads (",h,")"]}),0===d?(0,r.jsx)(i.zxk,{variant:"ghost",onClick:()=>c(!1),children:(0,r.jsx)(f.mli,{})}):null]}),o.map(e=>{let t=k(e);return(0,r.jsxs)("div",{className:"flex flex-col gap-1 border-t first:border-t-0 border-gray-200 dark:border-graydark-300 px-3 py-2",children:[(0,r.jsxs)("div",{className:"flex gap-1",children:[(0,r.jsx)(i.xvT,{ellipsis:!0,size:"14",className:"flex-1",children:e.path}),(0,r.jsx)(i.zxk,{tip:"Cancel file download",variant:"ghost",size:"none",onClick:()=>s(e),children:(0,r.jsx)(f.PcV,{})})]}),(0,r.jsx)(i.kod,{variant:"accent",value:e.loaded,max:e.size,className:1===t?"animate-pulse":""}),(0,r.jsxs)("div",{className:"flex justify-between mt-1",children:[(0,r.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"Processing":"Downloading"}),(0,r.jsxs)(i.xvT,{size:"12",color:"subtle",children:[(100*t).toFixed(0),"%"]})]})]},e.path)})]}):null]})})}):(0,r.jsx)("div",{className:"z-30 fixed bottom-5 left-1/2 -translate-x-1/2 flex justify-center",children:(0,r.jsxs)(i.zxk,{onClick:()=>c(!0),className:"flex gap-3",children:[(0,r.jsx)(i.xgg,{}),d?(0,r.jsxs)(i.xvT,{className:"flex gap-1",children:[d,(0,r.jsx)(f.R$6,{className:"opacity-50 scale-75 relative top-px"})]}):null,h?(0,r.jsxs)(i.xvT,{className:"flex gap-1",children:[h&&h,(0,r.jsx)(f.vzB,{className:"opacity-50 scale-75"})]}):null]})}):null}function _(e){let{children:t}=e;return(0,r.jsx)(c.w,{children:(0,r.jsx)(d.iV,{children:(0,r.jsx)(o.Tu,{children:(0,r.jsx)(s.x,{children:(0,r.jsx)(l.x,{children:(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(j,{}),(0,r.jsx)(S,{}),(0,r.jsx)(o.xQ,{}),t]})})})})})})}function C(e){let{Component:t,pageProps:n}=e;return(0,r.jsx)(i.PD$,{fallback:n.fallback,passwordProtectRequestHooks:!0,lockRoutes:p._,children:(0,r.jsx)(_,{children:(0,r.jsx)(t,{...n})})})}},80446:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{UQy:function(){return ld},vF:function(){return lm},Qdk:function(){return lp},o48:function(){return lf},hcY:function(){return _a},tU3:function(){return _n},zXq:function(){return _w},juT:function(){return Sz},Z58:function(){return _3},WVB:function(){return cH},zxk:function(){return lu},EKh:function(){return lP},vRO:function(){return C_},QHy:function(){return Cp},TaT:function(){return Cl},eQh:function(){return lR},HfT:function(){return Cg},wEc:function(){return _6},ncR:function(){return Sp},VqE:function(){return ud},h_2:function(){return cK},Xiv:function(){return cY},Juw:function(){return cG},KpP:function(){return cX},fhJ:function(){return pq},XOF:function(){return Sh},S$c:function(){return SS},QBj:function(){return CC},yEL:function(){return _g},cB7:function(){return Sb},ZqQ:function(){return Sx},IKw:function(){return S_},KZS:function(){return Sw},zsw:function(){return h7},__J:function(){return dt},rUS:function(){return di},Qjf:function(){return da},xgg:function(){return Eu},TRl:function(){return dl},kFS:function(){return cU},FzK:function(){return Cd},Clw:function(){return cB},PD$:function(){return CP},Wxm:function(){return f5},uDJ:function(){return SM},wFK:function(){return ST},s_4:function(){return t3},nvN:function(){return t2},u5Q:function(){return _5},j4H:function(){return f1},hmz:function(){return f2},J2e:function(){return dT},kod:function(){return dU},xrM:function(){return ul},PhF:function(){return f3},Z0O:function(){return cF},DLL:function(){return _J},KJW:function(){return SZ},rsf:function(){return hd},D_D:function(){return _U},xf5:function(){return CU},iA_:function(){return SC},mQc:function(){return fy},nUL:function(){return fw},drW:function(){return fx},SPt:function(){return fb},t6k:function(){return Cy},xvT:function(){return t1},ua7:function(){return ls},mPE:function(){return _W},XxW:function(){return k9},PF9:function(){return Se},m2c:function(){return Sr},YKL:function(){return Sn},QUh:function(){return _0},weF:function(){return _A},YNn:function(){return _K},DmW:function(){return _Y},jrD:function(){return Ct},x5w:function(){return Ce},JWi:function(){return CH},O9T:function(){return vk},vQq:function(){return kQ},E5z:function(){return k0},HLH:function(){return C$},NrH:function(){return j8},k9c:function(){return Er},EJC:function(){return CW},leQ:function(){return k3},Ztc:function(){return _Z},XAn:function(){return Ei},Vkc:function(){return cV},sWj:function(){return j6},ort:function(){return Eo},xLV:function(){return j9},S5V:function(){return _7},okB:function(){return En},AEA:function(){return Et},z$:function(){return t4},XBW:function(){return Es},GXN:function(){return Ea},I13:function(){return k2},cEb:function(){return fj},y70:function(){return fq},OHV:function(){return kG},OPV:function(){return kY},RFt:function(){return k$},$Gg:function(){return k1},_4u:function(){return CV},Wdu:function(){return Cz},Y97:function(){return _t},c2j:function(){return _r},WsO:function(){return _v},Uu5:function(){return CI},fb0:function(){return CB},oy6:function(){return CF},BL0:function(){return j7},mvJ:function(){return _8},ivg:function(){return Ee}});var s,l,u,c,d,f,h,p,m,v,g,y=n(52322),x=n(2784),b=n.t(x,2),w=n(7896),j=n(34540),E=n(26215),k=n(99575);function S(e){let t=e+"CollectionProvider",[n,r]=(0,j.b)(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=x.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=(0,E.e)(t,i.collectionRef);return x.createElement(k.g7,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=x.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=x.useRef(null),s=(0,E.e)(t,a),c=o(l,n);return x.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),x.createElement(k.g7,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=x.useRef(null),o=x.useRef(new Map).current;return x.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=x.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}var _=n(41816),C=n(73597),O=n(72130),M=n(64680),T=n(28245),A=n(26074);let P="Collapsible",[N,R]=(0,j.b)(P),[D,L]=N(P),F=(0,x.forwardRef)((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:a,...s}=e,[l=!1,u]=(0,C.T)({prop:r,defaultProp:i,onChange:a});return(0,x.createElement)(D,{scope:n,disabled:o,contentId:(0,A.M)(),open:l,onOpenToggle:(0,x.useCallback)(()=>u(e=>!e),[u])},(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":B(l),"data-disabled":o?"":void 0},s,{ref:t})))}),z=(0,x.forwardRef)((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=L("CollapsibleTrigger",n);return(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":B(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},r,{ref:t,onClick:(0,_.M)(e.onClick,i.onOpenToggle)}))}),V="CollapsibleContent",I=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=L(V,e.__scopeCollapsible);return(0,x.createElement)(T.z,{present:n||i.open},({present:e})=>(0,x.createElement)(Z,(0,w.Z)({},r,{ref:t,present:e})))}),Z=(0,x.forwardRef)((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...o}=e,a=L(V,n),[s,l]=(0,x.useState)(r),u=(0,x.useRef)(null),c=(0,E.e)(t,u),d=(0,x.useRef)(0),f=d.current,h=(0,x.useRef)(0),p=h.current,m=a.open||s,v=(0,x.useRef)(m),g=(0,x.useRef)();return(0,x.useEffect)(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,M.b)(()=>{let e=u.current;if(e){g.current=g.current||{transitionDuration:e.style.transitionDuration,animationDuration:e.style.animationDuration,animationFillMode:e.style.animationFillMode},e.style.transitionDuration="0s",e.style.animationDuration="0s",e.style.animationFillMode="none";let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=g.current.transitionDuration,e.style.animationDuration=g.current.animationDuration,e.style.animationFillMode=g.current.animationFillMode),l(r)}},[a.open,r]),(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":B(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m},o,{ref:c,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":p?`${p}px`:void 0,...e.style}}),m&&i)});function B(e){return e?"open":"closed"}let H="Accordion",U=["Home","End","ArrowDown","ArrowUp"],[W,q,$]=S(H),[K,Y]=(0,j.b)(H,[$,R]),G=R(),X=x.forwardRef((e,t)=>{let{type:n,...r}=e;return x.createElement(W.Provider,{scope:e.__scopeAccordion},"multiple"===n?x.createElement(er,(0,w.Z)({},r,{ref:t})):x.createElement(en,(0,w.Z)({},r,{ref:t})))});X.propTypes={type(e){let t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"==typeof t?Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(t)?Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};let[J,Q]=K(H),[ee,et]=K(H,{collapsible:!1}),en=x.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[s,l]=(0,C.T)({prop:n,defaultProp:r,onChange:i});return x.createElement(J,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:l,onItemClose:x.useCallback(()=>o&&l(""),[o,l])},x.createElement(ee,{scope:e.__scopeAccordion,collapsible:o},x.createElement(ea,(0,w.Z)({},a,{ref:t}))))}),er=x.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...o}=e,[a=[],s]=(0,C.T)({prop:n,defaultProp:r,onChange:i}),l=x.useCallback(e=>s((t=[])=>[...t,e]),[s]),u=x.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return x.createElement(J,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u},x.createElement(ee,{scope:e.__scopeAccordion,collapsible:!0},x.createElement(ea,(0,w.Z)({},o,{ref:t}))))}),[ei,eo]=K(H),ea=x.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:r,...i}=e,o=x.useRef(null),a=(0,E.e)(o,t),s=q(n),l=(0,_.M)(e.onKeyDown,e=>{var t;if(!U.includes(e.key))return;let n=e.target,r=s().filter(e=>{var t;return!(null!==(t=e.ref.current)&&void 0!==t&&t.disabled)}),i=r.findIndex(e=>e.ref.current===n),o=r.length;if(-1===i)return;e.preventDefault();let a=i;switch(e.key){case"Home":a=0;break;case"End":a=o-1;break;case"ArrowDown":a=i+1;break;case"ArrowUp":(a=i-1)<0&&(a=o-1)}let l=a%o;null===(t=r[l].ref.current)||void 0===t||t.focus()});return x.createElement(ei,{scope:n,disabled:r},x.createElement(W.Slot,{scope:n},x.createElement(O.WV.div,(0,w.Z)({},i,{ref:a,onKeyDown:r?void 0:l}))))}),es="AccordionItem",[el,eu]=K(es),ec=x.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,o=eo(es,n),a=Q(es,n),s=G(n),l=(0,A.M)(),u=r&&a.value.includes(r)||!1,c=o.disabled||e.disabled;return x.createElement(el,{scope:n,open:u,disabled:c,triggerId:l},x.createElement(F,(0,w.Z)({"data-state":u?"open":"closed"},s,i,{ref:t,disabled:c,open:u,onOpenChange:e=>{e?a.onItemOpen(r):a.onItemClose(r)}})))}),ed=x.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=eu("AccordionHeader",n);return x.createElement(O.WV.h3,(0,w.Z)({"data-state":i.open?"open":"closed","data-disabled":i.disabled?"":void 0},r,{ref:t}))}),ef="AccordionTrigger",eh=x.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=eu(ef,n),o=et(ef,n),a=G(n);return x.createElement(W.ItemSlot,{scope:n},x.createElement(z,(0,w.Z)({"aria-disabled":i.open&&!o.collapsible||void 0,id:i.triggerId},a,r,{ref:t})))}),ep=x.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=eu("AccordionContent",n),o=G(n);return x.createElement(I,(0,w.Z)({role:"region","aria-labelledby":i.triggerId},o,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});var em=n(82851),ev=n(83317);function eg(e){return e.split("-")[0]}function ey(e){return e.split("-")[1]}function ex(e){return["top","bottom"].includes(eg(e))?"x":"y"}function eb(e){return"y"===e?"height":"width"}function ew(e,t,n){let r,{reference:i,floating:o}=e,a=i.x+i.width/2-o.width/2,s=i.y+i.height/2-o.height/2,l=ex(t),u=eb(l),c=i[u]/2-o[u]/2,d="x"===l;switch(eg(t)){case"top":r={x:a,y:i.y-o.height};break;case"bottom":r={x:a,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:s};break;case"left":r={x:i.x-o.width,y:s};break;default:r={x:i.x,y:i.y}}switch(ey(t)){case"start":r[l]-=c*(n&&d?-1:1);break;case"end":r[l]+=c*(n&&d?-1:1)}return r}let ej=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=await (null==a.isRTL?void 0:a.isRTL(t)),l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=ew(l,r,s),d=r,f={},h=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{element:n,padding:r=0}=null!=e?e:{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(null==n)return{};let u=eE(r),c={x:i,y:o},d=ex(a),f=ey(a),h=eb(d),p=await l.getDimensions(n),m="y"===d?"top":"left",v="y"===d?"bottom":"right",g=s.reference[h]+s.reference[d]-c[d]-s.floating[h],y=c[d]-s.reference[d],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(n)),b=x?"y"===d?x.clientHeight||0:x.clientWidth||0:0;0===b&&(b=s.floating[h]);let w=u[m],j=b-p[h]-u[v],E=b/2-p[h]/2+(g/2-y/2),k=eC(w,e_(E,j)),S=("start"===f?u[m]:u[v])>0&&E!==k&&s.reference[h]<=s.floating[h];return{[d]:c[d]-(S?EeM[e])}let eA={start:"end",end:"start"};function eP(e){return e.replace(/start|end/g,e=>eA[e])}let eN=["top","right","bottom","left"];eN.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let eR=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o;let{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...g}=e,y=eg(a),x=p||(y!==u&&v?function(e){let t=eT(e);return[eP(e),t,eP(t)]}(u):[eT(u)]),b=[u,...x],w=await eS(t,g),j=[],E=(null==(n=s.flip)?void 0:n.overflows)||[];if(f&&j.push(w[y]),h){let{main:e,cross:t}=function(e,t,n){void 0===n&&(n=!1);let r=ey(e),i=ex(e),o=eb(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=eT(a)),{main:a,cross:eT(a)}}(a,l,await (null==c.isRTL?void 0:c.isRTL(d.floating)));j.push(w[e],w[t])}if(E=[...E,{placement:a,overflows:j}],!j.every(e=>e<=0)){let e=(null!=(r=null==(i=s.flip)?void 0:i.index)?r:0)+1,t=b[e];if(t)return{data:{index:e,overflows:E},reset:{placement:t}};let n="bottom";switch(m){case"bestFit":{let e=null==(o=E.map(e=>[e,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0].placement;e&&(n=e);break}case"initialPlacement":n=u}if(a!==n)return{reset:{placement:n}}}return{}}}};function eD(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eL(e){return eN.some(t=>e[t]>=0)}let eF=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){let{rects:r}=e;switch(t){case"referenceHidden":{let t=eD(await eS(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:eL(t)}}}case"escaped":{let t=eD(await eS(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:eL(t)}}}default:return{}}}}},ez=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,i=await async function(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=eg(n),s=ey(n),l="x"===ex(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d="function"==typeof t?t(e):t,{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function eV(e){return"x"===e?"y":"x"}let eI=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,u={x:n,y:r},c=await eS(t,l),d=ex(eg(i)),f=eV(d),h=u[d],p=u[f];if(o){let e="y"===d?"bottom":"right";h=eC(h+c["y"===d?"top":"left"],e_(h,h-c[e]))}a&&(p=eC(p+c["y"===f?"top":"left"],e_(p,p-c["y"===f?"bottom":"right"])));let m=s.fn({...t,[d]:h,[f]:p});return{...m,data:{x:m.x-n,y:m.y-r}}}}},eZ=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:n,y:r},d=ex(i),f=eV(d),h=c[d],p=c[f],m="function"==typeof s?s({...o,placement:i}):s,v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+v.mainAxis,n=o.reference[d]+o.reference[e]-v.mainAxis;hn&&(h=n)}if(u){var g,y,x,b;let e="y"===d?"width":"height",t=["top","left"].includes(eg(i)),n=o.reference[f]-o.floating[e]+(t&&null!=(g=null==(y=a.offset)?void 0:y[f])?g:0)+(t?0:v.crossAxis),r=o.reference[f]+o.reference[e]+(t?0:null!=(x=null==(b=a.offset)?void 0:b[f])?x:0)-(t?v.crossAxis:0);pr&&(p=r)}return{[d]:h,[f]:p}}}};function eB(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function eH(e){if(null==e)return window;if(!eB(e)){let t=e.ownerDocument;return t&&t.defaultView||window}return e}function eU(e){return eH(e).getComputedStyle(e)}function eW(e){return eB(e)?"":e?(e.nodeName||"").toLowerCase():""}function eq(){let e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function e$(e){return e instanceof eH(e).HTMLElement}function eK(e){return e instanceof eH(e).Element}function eY(e){return"undefined"!=typeof ShadowRoot&&(e instanceof eH(e).ShadowRoot||e instanceof ShadowRoot)}function eG(e){let{overflow:t,overflowX:n,overflowY:r}=eU(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function eX(e){let t=/firefox/i.test(eq()),n=eU(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function eJ(){return!/^((?!chrome|android).)*safari/i.test(eq())}let eQ=Math.min,e0=Math.max,e1=Math.round;function e2(e,t,n){var r,i,o,a;void 0===t&&(t=!1),void 0===n&&(n=!1);let s=e.getBoundingClientRect(),l=1,u=1;t&&e$(e)&&(l=e.offsetWidth>0&&e1(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&e1(s.height)/e.offsetHeight||1);let c=eK(e)?eH(e):window,d=!eJ()&&n,f=(s.left+(d&&null!=(r=null==(i=c.visualViewport)?void 0:i.offsetLeft)?r:0))/l,h=(s.top+(d&&null!=(o=null==(a=c.visualViewport)?void 0:a.offsetTop)?o:0))/u,p=s.width/l,m=s.height/u;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function e4(e){return((e instanceof eH(e).Node?e.ownerDocument:e.document)||window.document).documentElement}function e3(e){return eK(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function e5(e){return e2(e4(e)).left+e3(e).scrollLeft}function e6(e){return"html"===eW(e)?e:e.assignedSlot||e.parentNode||(eY(e)?e.host:null)||e4(e)}function e8(e){return e$(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function e7(e){let t=eH(e),n=e8(e);for(;n&&["table","td","th"].includes(eW(n))&&"static"===getComputedStyle(n).position;)n=e8(n);return n&&("html"===eW(n)||"body"===eW(n)&&"static"===getComputedStyle(n).position&&!eX(n))?t:n||function(e){let t=e6(e);for(eY(t)&&(t=t.host);e$(t)&&!["html","body"].includes(eW(t));){if(eX(t))return t;t=t.parentNode}return null}(e)||t}function e9(e){if(e$(e))return{width:e.offsetWidth,height:e.offsetHeight};let t=e2(e);return{width:t.width,height:t.height}}function te(e,t){var n;void 0===t&&(t=[]);let r=function e(t){let n=e6(t);return["html","body","#document"].includes(eW(n))?t.ownerDocument.body:e$(n)&&eG(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=eH(r),a=i?[o].concat(o.visualViewport||[],eG(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(te(a))}function tt(e,t,n){return"viewport"===t?ek(function(e,t){let n=eH(e),r=e4(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=eJ();(e||!e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n)):eK(t)?function(e,t){let n=e2(e,!1,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):ek(function(e){var t;let n=e4(e),r=e3(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=e0(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=e0(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+e5(e),l=-r.scrollTop;return"rtl"===eU(i||n).direction&&(s+=e0(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}(e4(e)))}let tn={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?function(e){let t=te(e),n=["absolute","fixed"].includes(eU(e).position)&&e$(e)?e7(e):e;return eK(n)?t.filter(e=>eK(e)&&function(e,t){let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&eY(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==eW(e)):[]}(t):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=tt(t,n,i);return e.top=e0(r.top,e.top),e.right=eQ(r.right,e.right),e.bottom=eQ(r.bottom,e.bottom),e.left=e0(r.left,e.left),e},tt(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=e$(n),o=e4(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if((i||!i&&"fixed"!==r)&&(("body"!==eW(n)||eG(o))&&(a=e3(n)),e$(n))){let e=e2(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:eK,getDimensions:e9,getOffsetParent:e7,getDocumentElement:e4,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:function(e,t,n){let r=e$(t),i=e4(t),o=e2(e,r&&function(e){let t=e2(e);return e1(t.width)!==e.offsetWidth||e1(t.height)!==e.offsetHeight}(t),"fixed"===n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&"fixed"!==n){if(("body"!==eW(t)||eG(i))&&(a=e3(t)),e$(t)){let e=e2(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=e5(i))}return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}(t,e7(n),r),floating:{...e9(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===eU(e).direction};function tr(e,t,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=i&&!s,u=o&&!s,c=l||u?[...eK(e)?te(e):[],...te(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let d,f=null;if(a){let r=!0;f=new ResizeObserver(()=>{r||n(),r=!1}),eK(e)&&!s&&f.observe(e),f.observe(t)}let h=s?e2(e):null;return s&&function t(){let r=e2(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}let ti=(e,t,n)=>ej(e,t,{platform:tn,...n});var to=n(28316),ta="undefined"!=typeof document?x.useLayoutEffect:x.useEffect;function ts(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=void 0===e?{}:e,o=x.useRef(null),a=x.useRef(null),s=function(e){let t=x.useRef(e);return ta(()=>{t.current=e}),t}(i),l=x.useRef(null),[u,c]=x.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=x.useState(t);!function e(t,n){let r,i,o;if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&t.toString()===n.toString())return!0;if(t&&n&&"object"==typeof t){if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){let r=o[i];if(("_owner"!==r||!t.$$typeof)&&!e(t[r],n[r]))return!1}return!0}return t!=t&&n!=n}(null==d?void 0:d.map(e=>{let{options:t}=e;return t}),null==t?void 0:t.map(e=>{let{options:t}=e;return t}))&&f(t);let h=x.useCallback(()=>{o.current&&a.current&&ti(o.current,a.current,{middleware:d,placement:n,strategy:r}).then(e=>{p.current&&to.flushSync(()=>{c(e)})})},[d,n,r]);ta(()=>{p.current&&h()},[h]);let p=x.useRef(!1);ta(()=>(p.current=!0,()=>{p.current=!1}),[]);let m=x.useCallback(()=>{if("function"==typeof l.current&&(l.current(),l.current=null),o.current&&a.current){if(s.current){let e=s.current(o.current,a.current,h);l.current=e}else h()}},[h,s]),v=x.useCallback(e=>{o.current=e,m()},[m]),g=x.useCallback(e=>{a.current=e,m()},[m]),y=x.useMemo(()=>({reference:o,floating:a}),[]);return x.useMemo(()=>({...u,update:h,refs:y,reference:v,floating:g}),[u,h,y,v,g])}let tl=e=>{let{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){if(Object.prototype.hasOwnProperty.call(t,"current")){if(null!=t.current)return eO({element:t.current,padding:n}).fn(e)}else if(t)return eO({element:t,padding:n}).fn(e);return{}}}},tu=(0,x.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,x.createElement)(O.WV.svg,(0,w.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,x.createElement)("polygon",{points:"0,0 30,0 15,10"}))});function tc(e){let[t,n]=(0,x.useState)(void 0);return(0,M.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}let td="Popper",[tf,th]=(0,j.b)(td),[tp,tm]=tf(td),tv=(0,x.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=tm("PopperAnchor",n),a=(0,x.useRef)(null),s=(0,E.e)(t,a);return(0,x.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,x.createElement)(O.WV.div,(0,w.Z)({},i,{ref:s}))}),tg="PopperContent",[ty,tx]=tf(tg),[tb,tw]=tf(tg,{hasParent:!1,positionUpdateFns:new Set}),tj=(0,x.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u;let{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:h="center",alignOffset:p=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,avoidCollisions:w=!0,...j}=e,k=tm(tg,c),[S,_]=(0,x.useState)(null),C=(0,E.e)(t,e=>_(e)),[T,A]=(0,x.useState)(null),P=tc(T),N=null!==(n=null==P?void 0:P.width)&&void 0!==n?n:0,R=null!==(r=null==P?void 0:P.height)&&void 0!==r?r:0,D="number"==typeof g?g:{top:0,right:0,bottom:0,left:0,...g},L=Array.isArray(v)?v:[v],F=L.length>0,z={padding:D,boundary:L.filter(t_),altBoundary:F},{reference:V,floating:I,strategy:Z,x:B,y:H,placement:U,middlewareData:W,update:q}=ts({strategy:"fixed",placement:d+("center"!==h?"-"+h:""),whileElementsMounted:tr,middleware:[ez({mainAxis:f+R,alignmentAxis:p}),w?eI({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?eZ():void 0,...z}):void 0,T?tl({element:T,padding:m}):void 0,w?eR({...z}):void 0,tC({arrowWidth:N,arrowHeight:R}),b?eF({strategy:"referenceHidden"}):void 0].filter(tS)});(0,M.b)(()=>{V(k.anchor)},[V,k.anchor]);let $=null!==B&&null!==H,[K,Y]=tO(U),G=null===(i=W.arrow)||void 0===i?void 0:i.x,X=null===(o=W.arrow)||void 0===o?void 0:o.y,J=(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset)!==0,[Q,ee]=(0,x.useState)();(0,M.b)(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]);let{hasParent:et,positionUpdateFns:en}=tw(tg,c),er=!et;(0,x.useLayoutEffect)(()=>{if(!er)return en.add(q),()=>{en.delete(q)}},[er,en,q]),(0,x.useLayoutEffect)(()=>{er&&$&&Array.from(en).reverse().forEach(e=>requestAnimationFrame(e))},[er,$,en]);let ei={"data-side":K,"data-align":Y,...j,ref:C,style:{...j.style,animation:$?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,x.createElement)("div",{ref:I,"data-radix-popper-content-wrapper":"",style:{position:Z,left:0,top:0,transform:$?`translate3d(${Math.round(B)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(u=W.transformOrigin)||void 0===u?void 0:u.y].join(" ")}},(0,x.createElement)(ty,{scope:c,placedSide:K,onArrowChange:A,arrowX:G,arrowY:X,shouldHideArrow:J},er?(0,x.createElement)(tb,{scope:c,hasParent:!0,positionUpdateFns:en},(0,x.createElement)(O.WV.div,ei)):(0,x.createElement)(O.WV.div,ei)))}),tE={top:"bottom",right:"left",bottom:"top",left:"right"},tk=(0,x.forwardRef)(function(e,t){let{__scopePopper:n,...r}=e,i=tx("PopperArrow",n),o=tE[i.placedSide];return(0,x.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,x.createElement)(tu,(0,w.Z)({},r,{ref:t,style:{...r.style,display:"block"}})))});function tS(e){return void 0!==e}function t_(e){return null!==e}let tC=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=tO(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function tO(e){let[t,n="center"]=e.split("-");return[t,n]}let tM=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,x.useState)(null);return(0,x.createElement)(tp,{scope:t,anchor:r,onAnchorChange:i},n)};var tT=n(6500);let tA=(0,x.forwardRef)((e,t)=>(0,x.createElement)(O.WV.span,(0,w.Z)({},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}}))),[tP,tN]=(0,j.b)("Tooltip",[th]),tR=th(),tD="tooltip.open",[tL,tF]=tP("TooltipProvider"),tz="Tooltip",[tV,tI]=tP(tz),tZ="TooltipTrigger",tB=(0,x.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,i=tI(tZ,n),o=tF(tZ,n),a=tR(n),s=(0,x.useRef)(null),l=(0,E.e)(t,s,i.onTriggerChange),u=(0,x.useRef)(!1),c=(0,x.useRef)(!1),d=(0,x.useCallback)(()=>u.current=!1,[]);return(0,x.useEffect)(()=>()=>document.removeEventListener("pointerup",d),[d]),(0,x.createElement)(tv,(0,w.Z)({asChild:!0},a),(0,x.createElement)(O.WV.button,(0,w.Z)({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:l,onPointerMove:(0,_.M)(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:(0,_.M)(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:(0,_.M)(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:(0,_.M)(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:(0,_.M)(e.onBlur,i.onClose),onClick:(0,_.M)(e.onClick,e=>{let t=0===e.detail;t&&i.onClose()})})))}),tH="TooltipPortal",[tU,tW]=tP(tH,{forceMount:void 0}),tq="TooltipContent",t$=(0,x.forwardRef)((e,t)=>{let n=tW(tq,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=tI(tq,e.__scopeTooltip);return(0,x.createElement)(T.z,{present:r||a.open},a.disableHoverableContent?(0,x.createElement)(tX,(0,w.Z)({side:i},o,{ref:t})):(0,x.createElement)(tK,(0,w.Z)({side:i},o,{ref:t})))}),tK=(0,x.forwardRef)((e,t)=>{let n=tI(tq,e.__scopeTooltip),r=tF(tq,e.__scopeTooltip),i=(0,x.useRef)(null),o=(0,E.e)(t,i),[a,s]=(0,x.useState)(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=(0,x.useCallback)(()=>{s(null),d(!1)},[d]),h=(0,x.useCallback)((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:return null}}(r,n.getBoundingClientRect()),o="right"===i||"bottom"===i?-5:5,a="right"===i||"left"===i?{x:e.clientX+o,y:e.clientY}:{x:e.clientX,y:e.clientY+o},l=function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect()),u=function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([a,...l]);s(u),d(!0)},[d]);return(0,x.useEffect)(()=>()=>f(),[f]),(0,x.useEffect)(()=>{if(l&&c){let e=e=>h(e,c),t=e=>h(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,h,f]),(0,x.useEffect)(()=>{if(a){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,a);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,x.createElement)(tX,(0,w.Z)({},e,{ref:o}))}),[tY,tG]=tP(tz,{isInside:!1}),tX=(0,x.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=tI(tq,n),u=tR(n),{onClose:c}=l;return(0,x.useEffect)(()=>(document.addEventListener(tD,c),()=>document.removeEventListener(tD,c)),[c]),(0,x.useEffect)(()=>{if(l.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(l.trigger)&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,x.createElement)(ev.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c},(0,x.createElement)(tj,(0,w.Z)({"data-state":l.stateAttribute},u,s,{ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),(0,x.createElement)(k.A4,null,r),(0,x.createElement)(tY,{scope:n,isInside:!0},(0,x.createElement)(tA,{id:l.contentId,role:"tooltip"},i||r))))}),tJ=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=tF(tz,e.__scopeTooltip),u=tR(t),[c,d]=(0,x.useState)(null),f=(0,A.M)(),h=(0,x.useRef)(0),p=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,v=(0,x.useRef)(!1),[g=!1,y]=(0,C.T)({prop:r,defaultProp:i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(tD))):l.onClose(),null==o||o(e)}}),b=(0,x.useMemo)(()=>g?v.current?"delayed-open":"instant-open":"closed",[g]),w=(0,x.useCallback)(()=>{window.clearTimeout(h.current),v.current=!1,y(!0)},[y]),j=(0,x.useCallback)(()=>{window.clearTimeout(h.current),y(!1)},[y]),E=(0,x.useCallback)(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,y(!0)},m)},[m,y]);return(0,x.useEffect)(()=>()=>window.clearTimeout(h.current),[]),(0,x.createElement)(tM,u,(0,x.createElement)(tV,{scope:t,contentId:f,open:g,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:(0,x.useCallback)(()=>{l.isOpenDelayed?E():w()},[l.isOpenDelayed,E,w]),onTriggerLeave:(0,x.useCallback)(()=>{p?j():window.clearTimeout(h.current)},[j,p]),onOpen:w,onClose:j,disableHoverableContent:p},n))},tQ=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=tI(tH,t);return(0,x.createElement)(tU,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(tT.h,{asChild:!0,container:i},r)))},t0=(0,em.j)([],{variants:{display:{default:"inline-block",none:""},font:{mono:"font-mono",sans:"font-sans"},color:{verySubtle:"text-gray-700 dark:text-graydark-700",subtle:"text-gray-1000 dark:text-graydark-1000",contrast:"text-gray-1100 dark:text-white",lo:"text-white dark:text-graydark-50",accent:"text-accent-1100 dark:text-accentdark-1100",red:"text-red-700 dark:text-red-400",green:"text-emerald-700 dark:text-emerald-500",amber:"text-amber-600 dark:text-amber-500",none:""},weight:{extrabold:"font-extrabold",bold:"font-bold",medium:"font-medium",semibold:"font-semibold",regular:"font-normal",normal:"font-normal",light:"font-light",none:""},size:{10:"text-xxs",12:"text-xs",14:"text-sm",16:"text-base",18:"text-lg",20:"text-xl",24:"text-2xl",30:"text-3xl",36:"text-4xl",40:"text-5xl",48:"text-5xl",60:"text-6xl",64:"text-6xl"},scaleSize:{12:"text-xxs md:text-xs",14:"text-xs md:text-sm",16:"text-sm md:text-base",18:"text-base md:text-lg",20:"text-base md:text-xl",24:"text-xl md:text-2xl",30:"text-2xl md:text-3xl",36:"text-3xl md:text-4xl",40:"text-4xl md:text-5xl",48:"text-4xl md:text-5xl",60:"text-5xl md:text-6xl",64:"text-5xl md:text-6xl"},noWrap:{true:"whitespace-nowrap"},underline:{accent:"underline underline-offset-2 decoration-2 decoration-accent-900 dark:decoration-accentdark-900",show:"underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",hover:"hover:underline underline-offset-2 decoration-gray-1100 dark:decoration-gray-500",none:""},ellipsis:{true:"overflow-hidden text-ellipsis whitespace-nowrap"},wrapEllipsis:{true:"overflow-hidden text-ellipsis"}},defaultVariants:{display:"default",weight:"regular",font:"sans",color:"contrast",underline:"none"}}),t1=x.forwardRef((e,t)=>{let{tag:n="span",className:r,font:i,color:o,weight:a,size:s,scaleSize:l,noWrap:u,underline:c,ellipsis:d,wrapEllipsis:f,...h}=e;return(0,y.jsx)(n,{ref:t,className:(0,em.cx)(r,t0({font:i,color:o,weight:a,size:s,scaleSize:l,underline:c,noWrap:u,ellipsis:d,wrapEllipsis:f})),...h})}),t2=x.forwardRef((e,t)=>{let{size:n="18",...r}=e;return(0,y.jsx)(t1,{tag:"p",...r,ref:t,weight:"regular",scaleSize:n,color:"subtle",className:(0,em.cx)("leading-relaxed md:leading-relaxed",e.className)})}),t4=(0,em.j)(["bg-white dark:bg-graydark-200","transition-shadow ease-in-out duration-300","shadow-sm hover:shadow","rounded","border","border-gray-400 dark:border-graydark-400"]),t3=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:t4({className:n}),...r})});var t5=n(34406);let t6=(void 0===t5||t5.env,"production"),t8=1/60*1e3,t7="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),t9="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(t7()),t8),ne=!0,nt=!1,nn=!1,nr={delta:0,timestamp:0},ni=["read","update","preRender","render","postRender"],no=ni.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:n;return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;nnt=!0),e),{}),na=ni.reduce((e,t)=>{let n=no[t];return e[t]=(e,t=!1,r=!1)=>(nt||nd(),n.schedule(e,t,r)),e},{}),ns=ni.reduce((e,t)=>(e[t]=no[t].cancel,e),{}),nl=ni.reduce((e,t)=>(e[t]=()=>no[t].process(nr),e),{}),nu=e=>no[e].process(nr),nc=e=>{nt=!1,nr.delta=ne?t8:Math.max(Math.min(e-nr.timestamp,40),1),nr.timestamp=e,nn=!0,ni.forEach(nu),nn=!1,nt&&(ne=!1,t9(nc))},nd=()=>{nt=!0,ne=!0,nn||t9(nc)},nf=()=>nr,nh="undefined"!=typeof document,np=nh?x.useLayoutEffect:x.useEffect;function nm(){let e=(0,x.useRef)(!1);return np(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let nv=(0,x.createContext)(null);function ng(e){let t=(0,x.useRef)(null);return null===t.current&&(t.current=e()),t.current}class ny extends x.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function nx({children:e,isPresent:t}){let n=(0,x.useId)(),r=(0,x.useRef)(null),i=(0,x.useRef)({width:0,height:0,top:0,left:0});return(0,x.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!r.current||!e||!o)return;r.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${e}px !important; @@ -22,16 +22,16 @@ top: ${a}px !important; left: ${s}px !important; } - `),()=>{document.head.removeChild(l)}},[t]),b.createElement(ny,{isPresent:t,childRef:r,sizeRef:i},b.cloneElement(e,{ref:r}))}let nx=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=ng(nw),l=(0,b.useId)(),u=(0,b.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[n]);return(0,b.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),b.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===a&&(e=b.createElement(nb,{isPresent:n},e)),b.createElement(nv.Provider,{value:u},e)};function nw(){return new Map}let nj=(0,b.createContext)({});function nE(e){return(0,b.useEffect)(()=>()=>e(),[])}let nk=new Set;function nS(e,t,n){e||nk.has(t)||(console.warn(t),n&&console.warn(n),nk.add(t))}let n_=e=>e.key||"",nC=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",nS(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=nm(),[t,n]=(0,b.useState)(0),r=(0,b.useCallback)(()=>{e.current&&n(t+1)},[t]),i=(0,b.useCallback)(()=>na.postRender(r),[r]);return[i,t]}(),l=(0,b.useContext)(nj).forceRender;l&&(s=l);let u=nm(),c=function(e){let t=[];return b.Children.forEach(e,e=>{(0,b.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,b.useRef)(d),p=(0,b.useRef)(new Map).current,m=(0,b.useRef)(!0);if(np(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=n_(e);t.set(n,e)})}(c,p),h.current=d}),nE(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return b.createElement(b.Fragment,null,d.map(e=>b.createElement(nx,{key:n_(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(n_),g=c.map(n_),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let n=p.get(e);if(!n)return;let i=v.indexOf(e);d.splice(i,0,b.createElement(nx,{key:n_(n),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:o,mode:a},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:b.createElement(nx,{key:n_(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==t6&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),b.createElement(b.Fragment,null,f.size?d:d.map(e=>(0,b.cloneElement)(e)))},nO=(0,b.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nM=(0,b.createContext)({}),nT=(0,b.createContext)({strict:!1});function nA(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nP(e){return"string"==typeof e||Array.isArray(e)}function nN(e){return"object"==typeof e&&"function"==typeof e.start}let nR=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function nD(e){return nN(e.animate)||nR.some(t=>nP(e[t]))}function nL(e){return!!(nD(e)||e.variants)}function nF(e){return Array.isArray(e)?e.join(" "):e}let nz=e=>({isEnabled:t=>e.some(e=>!!t[e])}),nV={measureLayout:nz(["layout","layoutId","drag"]),animation:nz(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:nz(["exit"]),drag:nz(["drag","dragControls"]),focus:nz(["whileFocus"]),hover:nz(["whileHover","onHoverStart","onHoverEnd"]),tap:nz(["whileTap","onTap","onTapStart","onTapCancel"]),pan:nz(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:nz(["whileInView","onViewportEnter","onViewportLeave"])},nI={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nZ=1;class nB extends b.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let nH=(0,b.createContext)({}),nU=Symbol.for("motionComponentSymbol"),nW=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function nq(e){if("string"!=typeof e||e.includes("-"));else if(nW.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let n$={},nK=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nY=new Set(nK);function nG(e,{layout:t,layoutId:n}){return nY.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!n$[e]||"opacity"===e)}let nX=e=>!!(null==e?void 0:e.getVelocity),nJ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nQ=(e,t)=>nK.indexOf(e)-nK.indexOf(t);function n0(e){return e.startsWith("--")}let n1=(e,t)=>t&&"number"==typeof e?t.transform(e):e,n2=(e,t)=>n=>Math.max(Math.min(n,t),e),n4=e=>e%1?Number(e.toFixed(5)):e,n3=/(-)?([\d]*\.?[\d])+/g,n5=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,n6=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function n8(e){return"string"==typeof e}let n7=e=>({test:t=>n8(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),n9=n7("deg"),re=n7("%"),rt=n7("px"),rn=n7("vh"),rr=n7("vw"),ri=Object.assign(Object.assign({},re),{parse:e=>re.parse(e)/100,transform:e=>re.transform(100*e)}),ro={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ra=Object.assign(Object.assign({},ro),{transform:n2(0,1)}),rs=Object.assign(Object.assign({},ro),{default:1}),rl={...ro,transform:Math.round},ru={borderWidth:rt,borderTopWidth:rt,borderRightWidth:rt,borderBottomWidth:rt,borderLeftWidth:rt,borderRadius:rt,radius:rt,borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomRightRadius:rt,borderBottomLeftRadius:rt,width:rt,maxWidth:rt,height:rt,maxHeight:rt,size:rt,top:rt,right:rt,bottom:rt,left:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,rotate:n9,rotateX:n9,rotateY:n9,rotateZ:n9,scale:rs,scaleX:rs,scaleY:rs,scaleZ:rs,skew:n9,skewX:n9,skewY:n9,distance:rt,translateX:rt,translateY:rt,translateZ:rt,x:rt,y:rt,z:rt,perspective:rt,transformPerspective:rt,opacity:ra,originX:ri,originY:ri,originZ:rt,zIndex:rl,fillOpacity:ra,strokeOpacity:ra,numOctaves:rl};function rc(e,t,n,r){let{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(n0(e)){o[e]=n;continue}let r=ru[e],f=n1(n,r);if(nY.has(e)){if(u=!0,a[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";for(let n of(t.sort(nQ),t))a+=`${nJ[n]||n}(${e[n]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}(e,n,d,r):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=l;i.transformOrigin=`${e} ${t} ${n}`}}let rd=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rf(e,t,n){for(let r in t)nX(t[r])||nG(r,n)||(e[r]=t[r])}function rh(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rf(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,b.useMemo)(()=>{let r=rd();return rc(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),r.style=i,r}let rp=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function rm(e){return rp.has(e)}let rv=e=>!rm(e);try{(Em=require("@emotion/is-prop-valid").default)&&(rv=e=>e.startsWith("on")?!rm(e):Em(e))}catch(e){}function rg(e,t,n){return"string"==typeof e?e:rt.transform(t+n*e)}let ry={offset:"stroke-dashoffset",array:"stroke-dasharray"},rb={offset:"strokeDashoffset",array:"strokeDasharray"};function rx(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){rc(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){let r=rg(t,e.x,e.width),i=rg(n,e.y,e.height);return`${r} ${i}`}(h,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==o&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?ry:rb;e[o.offset]=rt.transform(-r);let a=rt.transform(t),s=rt.transform(n);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let rw=()=>({...rd(),attrs:{}});function rj(e,t){let n=(0,b.useMemo)(()=>{let n=rw();return rx(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rf(t,e.style,e),n.style={...t,...n.style}}return n}let rE=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rk(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let rS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function r_(e,t,n,r){for(let n in rk(e,t,void 0,r),t.attrs)e.setAttribute(rS.has(n)?n:rE(n),t.attrs[n])}function rC(e){let{style:t}=e,n={};for(let r in t)(nX(t[r])||nG(r,e))&&(n[r]=t[r]);return n}function rO(e){let t=rC(e);for(let n in e)if(nX(e[n])){let r="x"===n||"y"===n?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function rM(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}let rT=e=>Array.isArray(e),rA=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),rP=e=>rT(e)?e[e.length-1]||0:e;function rN(e){let t=nX(e)?e.get():e;return rA(t)?t.toValue():t}let rR=e=>(t,n)=>{let r=(0,b.useContext)(nM),i=(0,b.useContext)(nv),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let a={latestValues:function(e,t,n,r){let i={},o=r(e);for(let e in o)i[e]=rN(o[e]);let{initial:a,animate:s}=e,l=nD(e),u=nL(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!nN(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let n=rM(e,t);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]})}return i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():ng(o)},rD={useVisualState:rR({scrapeMotionValuesFromProps:rO,createRenderState:rw,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}rx(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),r_(t,n)}})},rL={useVisualState:rR({scrapeMotionValuesFromProps:rC,createRenderState:rd})};function rF(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rz(e,t,n,r){(0,b.useEffect)(()=>{let i=e.current;if(n&&i)return rF(i,t,n,r)},[e,t,n,r])}function rV(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function rI(e){let t=!!e.touches;return t}(Ev=Ew||(Ew={})).Animate="animate",Ev.Hover="whileHover",Ev.Tap="whileTap",Ev.Drag="whileDrag",Ev.Focus="whileFocus",Ev.InView="whileInView",Ev.Exit="exit";let rZ={pageX:0,pageY:0};function rB(e,t="page"){return{point:rI(e)?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0],r=n||rZ;return{x:r[t+"X"],y:r[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let rH=(e,t=!1)=>{let n=t=>e(t,rB(t));return t?e=>{let t=e instanceof MouseEvent,r=!t||t&&0===e.button;r&&n(e)}:n},rU=()=>nh&&null===window.onpointerdown,rW=()=>nh&&null===window.ontouchstart,rq=()=>nh&&null===window.onmousedown,r$={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},rK={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function rY(e){if(rU());else if(rW())return rK[e];else if(rq())return r$[e];return e}function rG(e,t,n,r){return rF(e,rY(t),rH(n,"pointerdown"===t),r)}function rX(e,t,n,r){return rz(e,rY(t),n&&rH(n,"pointerdown"===t),r)}function rJ(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let rQ=rJ("dragHorizontal"),r0=rJ("dragVertical");function r1(e){let t=!1;if("y"===e)t=r0();else if("x"===e)t=rQ();else{let e=rQ(),n=r0();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function r2(){let e=r1(!0);return!e||(e(),!1)}function r4(e,t,n){return(r,i)=>{!(!rV(r)||r2())&&(e.animationState&&e.animationState.setActive(Ew.Hover,t),n&&n(r,i))}}let r3=(e,t)=>!!t&&(e===t||r3(e,t.parentElement)),r5=(e,t)=>n=>t(e(n)),r6=(...e)=>e.reduce(r5),r8=new WeakMap,r7=new WeakMap,r9=e=>{let t=r8.get(e.target);t&&t(e)},ie=e=>{e.forEach(r9)},it={some:0,all:1};function ir(e,t,n,{root:r,margin:i,amount:o="some",once:a}){(0,b.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof o?o:it[o]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;r7.has(n)||r7.set(n,{});let r=r7.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ie,{root:e,...t})),r[i]}(t);return r8.set(e,n),r.observe(e),()=>{r8.delete(e),r.unobserve(e)}}(n.current,s,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,a&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Ew.InView,r);let i=n.getProps(),o=r?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,r,i,o])}function ii(e,t,n,{fallback:r=!0}){(0,b.useEffect)(()=>{e&&r&&("production"!==t6&&nS(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(Ew.InView,!0)}))},[e])}let io=e=>t=>(e(t),null),ia={inView:io(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let o=(0,b.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?ii:ir;s(a,o.current,e,i)}),tap:io(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let o=e||t||n||r,a=(0,b.useRef)(!1),s=(0,b.useRef)(null),l={passive:!(t||e||n||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),a.current=!1,i.animationState&&i.animationState.setActive(Ew.Tap,!1),!r2()}function d(t,r){c()&&(r3(i.current,t.target)?e&&e(t,r):n&&n(t,r))}function f(e,t){c()&&n&&n(e,t)}function h(e,n){u(),!a.current&&(a.current=!0,s.current=r6(rG(window,"pointerup",d,l),rG(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(Ew.Tap,!0),t&&t(e,n))}rX(i,"pointerdown",o?h:void 0,l),nE(u)}),focus:io(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;rz(t,"focus",e?()=>{n&&n.setActive(Ew.Focus,!0)}:void 0),rz(t,"blur",e?()=>{n&&n.setActive(Ew.Focus,!1)}:void 0)}),hover:io(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){rX(r,"pointerenter",e||n?r4(r,!0,e):void 0,{passive:!e}),rX(r,"pointerleave",t||n?r4(r,!1,t):void 0,{passive:!t})})};function is(){let e=(0,b.useContext)(nv);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,b.useId)();return(0,b.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function il(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var ic=function(){},id=function(){};let ih=(e,t,n)=>Math.min(Math.max(n,e),t);function ip(e,t){return e*Math.sqrt(1-t*t)}let im=["duration","bounce"],iv=["stiffness","damping","mass"];function ig(e,t){return t.some(t=>void 0!==e[t])}function iy(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=iu(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!ig(e,iv)&&ig(e,im)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;ic(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=ih(.05,1,a),e=ih(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e,o=ip(t,a),s=Math.exp(-i);return .001-(r-n)/o*s},o=t=>{let r=t*a,o=r*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=ip(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*n+n-s)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return -.001+r*i},o=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),h=ib,p=ib;function m(){let e=c?-(c/1e3):0,r=n-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){let t=ip(a,o);h=i=>{let s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},p=n=>{let i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)h=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{let t=a*Math.sqrt(o*o-1);h=i=>{let s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)a.done=e>=d;else{let o=1e3*p(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}iy.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let ib=e=>0,ix=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},iw=(e,t,n)=>-n*e+n*t+e,ij=(e,t)=>n=>!!(n8(n)&&n6.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),iE=(e,t,n)=>r=>{if(!n8(r))return r;let[i,o,a,s]=r.match(n3);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},ik=n2(0,255),iS=Object.assign(Object.assign({},ro),{transform:e=>Math.round(ik(e))}),i_={test:ij("rgb","red"),parse:iE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iS.transform(e)+", "+iS.transform(t)+", "+iS.transform(n)+", "+n4(ra.transform(r))+")"},iC={test:ij("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:i_.transform},iO={test:ij("hsl","hue"),parse:iE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+re.transform(n4(t))+", "+re.transform(n4(n))+", "+n4(ra.transform(r))+")"};function iM(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iT({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=iM(s,r,e+1/3),o=iM(s,r,e),a=iM(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}let iA=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},iP=[iC,i_,iO],iN=e=>iP.find(t=>t.test(e)),iR=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,iD=(e,t)=>{let n=iN(e),r=iN(t);id(!!n,iR(e)),id(!!r,iR(t));let i=n.parse(e),o=r.parse(t);n===iO&&(i=iT(i),n=i_),r===iO&&(o=iT(o),r=i_);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=iA(i[t],o[t],e));return a.alpha=iw(i.alpha,o.alpha,e),n.transform(a)}},iL={test:e=>i_.test(e)||iC.test(e)||iO.test(e),parse:e=>i_.test(e)?i_.parse(e):iO.test(e)?iO.parse(e):iC.parse(e),transform:e=>n8(e)?e:e.hasOwnProperty("red")?i_.transform(e):iO.transform(e)},iF="${c}",iz="${n}";function iV(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(n5);r&&(n=r.length,e=e.replace(n5,iF),t.push(...r.map(iL.parse)));let i=e.match(n3);return i&&(e=e.replace(n3,iz),t.push(...i.map(ro.parse))),{values:t,numColors:n,tokenised:e}}function iI(e){return iV(e).values}function iZ(e){let{values:t,numColors:n,tokenised:r}=iV(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,iH={test:function(e){var t,n,r,i;return isNaN(e)&&n8(e)&&(null!==(n=null===(t=e.match(n3))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(n5))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:iI,createTransformer:iZ,getAnimatableNone:function(e){let t=iI(e),n=iZ(e);return n(t.map(iB))}},iU=e=>"number"==typeof e;function iW(e,t){return iU(e)?n=>iw(e,t,n):iL.test(e)?iD(e,t):iY(e,t)}let iq=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>iW(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=iW(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function iK(e){let t=iH.parse(e),n=t.length,r=0,i=0,o=0;for(let e=0;e{let n=iH.createTransformer(t),r=iK(e),i=iK(t),o=r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers;return o?r6(iq(r.parsed,i.parsed),n):(ic(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},iG=(e,t)=>n=>iw(e,t,n);function iX(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;id(o===t.length,"Both input and output ranges must be the same length"),id(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,n){var r;let i=[],o=n||("number"==typeof(r=e[0])?iG:"string"==typeof r?iL.test(r)?iD:iY:Array.isArray(r)?iq:"object"==typeof r?i$:void 0),a=e.length-1;for(let n=0;nn(ix(e,t,r))}(e,a):function(e,t){let n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;ti)&&t!==r;t++);o=t-1}let s=ix(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(ih(e[0],e[o-1],t)):s}let iJ=e=>t=>1-e(1-t),iQ=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,i0=e=>t=>t*t*((e+1)*t-e),i1=4/11,i2=8/11,i4=e=>e,i3=e=>Math.pow(e,2),i5=iJ(i3),i6=iQ(i3),i8=e=>1-Math.sin(Math.acos(e)),i7=iJ(i8),i9=iQ(i7),oe=i0(1.525),ot=iJ(oe),on=iQ(oe),or=(e=>{let t=i0(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),oi=4356/361,oo=35442/1805,oa=16061/1805,os=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==n?n/(t-1):0)}(a)).map(e=>e*i);function l(){return iX(s,a,{ease:Array.isArray(n)?n:a.map(()=>n||i6).splice(0,a.length-1)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),u=l()}}}let oc={keyframes:ou,spring:iy,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=n*e,l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};function od(e,t,n=0){return e-t-n}let of=e=>{let t=({delta:t})=>e(t);return{start:()=>na.update(t,!0),stop:()=>ns.update(t)}};function oh(e){let t,n,r;var i,{from:o,autoplay:a=!0,driver:s=of,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=iu(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,b=0,x=g.duration,w=!1,j=!0,E=function(e){if(Array.isArray(e.to))return ou;if(oc[e.type])return oc[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return iy;return ou}(g);(null===(i=E.needsInterpolation)||void 0===i?void 0:i.call(E,o,y))&&(r=iX([0,100],[o,y],{clamp:!1}),o=0,y=100);let k=E(Object.assign(Object.assign({},g),{from:o,to:y}));return a&&(null==f||f(),(t=s(function(e){if(j||(e=-e),l+=e,!w){let e=k.next(Math.max(0,l));n=e.value,r&&(n=r(n)),w=j?e.done:l<=0}if(null==v||v(n),w){if(0===b&&(null!=x||(x=l)),b=o+d:i<=-d)&&(b++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?od(t+-e,t,n):t-(e-t)+n}(l,x,d,j=b%2==0):(l=od(l,x,d),"mirror"===c&&k.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let op=e=>1e3*e,om=(e,t)=>1-3*t+3*e,ov=(e,t)=>3*t-6*e,og=e=>3*e,oy=(e,t,n)=>((om(t,n)*e+ov(t,n))*e+og(t))*e,ob=(e,t,n)=>3*om(t,n)*e*e+2*ov(t,n)*e+og(t),ox={linear:i4,easeIn:i3,easeInOut:i6,easeOut:i5,circIn:i8,circInOut:i9,circOut:i7,backIn:oe,backInOut:on,backOut:ot,anticipate:or,bounceIn:ol,bounceInOut:e=>e<.5?.5*(1-os(1-2*e)):.5*os(2*e-1)+.5,bounceOut:os},ow=e=>{if(Array.isArray(e)){id(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return function(e,t,n,r){if(e===t&&n===r)return i4;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=oy(.1*t,e,n);return o=>0===o||1===o?o:oy(function(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=r+.1*a,l=ob(s,e,n);return l>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=ob(t,n,r);if(0===i)break;let o=oy(t,n,r)-e;t-=o/i}return t}(t,s,e,n):0===l?s:function(e,t,n,r,i){let o,a;let s=0;do(o=oy(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+.1,e,n)}(o),t,r)}(t,n,r,i)}return"string"==typeof e?(id(void 0!==ox[e],`Invalid easing type '${e}'`),ox[e]):e},oj=e=>Array.isArray(e)&&"number"!=typeof e[0],oE=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&iH.test(t)&&!t.startsWith("url(")),ok=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),oS=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),o_=()=>({type:"keyframes",ease:"linear",duration:.3}),oC=e=>({type:"keyframes",duration:.8,values:e}),oO={x:ok,y:ok,z:ok,rotate:ok,rotateX:ok,rotateY:ok,rotateZ:ok,scaleX:oS,scaleY:oS,scale:oS,opacity:o_,backgroundColor:o_,color:o_,default:oS},oM=(e,t)=>({to:t,...(rT(t)?oC:oO[e]||oO.default)(t)}),oT=new Set(["brightness","contrast","saturate","opacity"]);function oA(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(n3)||[];if(!r)return e;let i=n.replace(r,""),o=oT.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let oP=/([a-z-]*)\(.*?\)/g,oN=Object.assign(Object.assign({},iH),{getAnimatableNone:e=>{let t=e.match(oP);return t?t.map(oA).join(" "):e}}),oR={...ru,color:iL,backgroundColor:iL,outlineColor:iL,fill:iL,stroke:iL,borderColor:iL,borderTopColor:iL,borderRightColor:iL,borderBottomColor:iL,borderLeftColor:iL,filter:oN,WebkitFilter:oN},oD=e=>oR[e];function oL(e,t){var n;let r=oD(e);return r!==oN&&(r=iH),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let oF={current:!1};function oz(e,t){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(ns.read(r),e(o-t))};return na.read(r,!0),()=>ns.read(r)}let oV=!1;function oI(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oZ(e){return"number"==typeof e?0:oL("",e)}function oB(e,t){return e[t]||e.default||e}function oH(e,t,n,r={}){return oF.current&&(r={type:!1}),t.start(i=>{let o,a;let s=function(e,t,n,r,i){let o=oB(r,e)||{},a=void 0!==o.from?o.from:t.get(),s=oE(e,n);"none"===a&&s&&"string"==typeof n?a=oL(e,n):oI(a)&&"string"==typeof n?a=oZ(n):!Array.isArray(n)&&oI(n)&&"string"==typeof a&&(n=oZ(a));let l=oE(e,a);return ic(l===s,`You are trying to animate ${e} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),l&&s&&!1!==o.type?function(){var r;let s={from:a,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===o.type||"decay"===o.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function v(e){return void 0===n?r:void 0===r?n:Math.abs(n-e){var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:h}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r,a,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===n?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var n;r=a,a=e,t=(n=nf().delta)?(e-r)*(1e3/n):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):oh({...(r=o,Array.isArray(s.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...oM(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...o}){let a={...o};return t&&(a.offset=t),o.duration&&(a.duration=op(o.duration)),o.repeatDelay&&(a.repeatDelay=op(o.repeatDelay)),e&&(a.ease=oj(e)?e.map(ow):ow(e)),"tween"===o.type&&(a.type="keyframes"),(n||i||r)&&(ic(!oV,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oV=!0,n?a.repeatType="reverse":i?a.repeatType="loop":r&&(a.repeatType="mirror"),a.repeat=i||n||r||o.repeat),"spring"!==o.type&&(a.type="keyframes"),a}(r)}),onUpdate:e=>{s.onUpdate(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s.onComplete(),o.onComplete&&o.onComplete()}})}:function(){let e=rP(n);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),l=function(e,t){var n,r;let i=oB(e,t)||{};return null!==(r=null!==(n=i.delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=()=>o=s();return l?a=oz(u,op(l)):u(),()=>{a&&a(),o&&o.stop()}})}let oU=e=>/^\-?\d*\.?\d+$/.test(e),oW=e=>/^0[^.\s]+$/.test(e);function oq(e,t){-1===e.indexOf(t)&&e.push(t)}function o$(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class oK{constructor(){this.subscriptions=[]}add(e){return oq(this.subscriptions,e),()=>o$(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i!isNaN(parseFloat(e));class oG{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new oK,this.velocityUpdateSubscribers=new oK,this.renderSubscribers=new oK,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nf();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,na.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>na.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=oY(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?e*(1e3/t):0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function oX(e){return new oG(e)}let oJ=e=>t=>t.test(e),oQ=[ro,rt,re,n9,rr,rn,{test:e=>"auto"===e,parse:e=>e}],o0=e=>oQ.find(oJ(e)),o1=[...oQ,iL,iH],o2=e=>o1.find(oJ(e));function o4(e,t,n){let r=e.getProps();return rM(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}function o3(e){return!!(nX(e)&&e.add)}function o5(e,t,n={}){var r;let i=o4(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>o6(e,i,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(o8).forEach((e,r)=>{a.push(o5(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function o6(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(a=r);let c=[],d=i&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[i]);for(let t in l){let r=e.getValue(t),i=l[t];if(!r||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let o={delay:n,...a};e.shouldReduceMotion&&nY.has(t)&&(o={...o,type:!1,delay:0});let s=oH(t,r,i,o);o3(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=o4(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=rP(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oX(n))}}(e,s)})}function o8(e,t){return e.sortNodePosition(t)}let o7=[Ew.Animate,Ew.InView,Ew.Focus,Ew.Hover,Ew.Tap,Ew.Drag,Ew.Exit],o9=[...o7].reverse(),ae=o7.length;function at(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let an={animation:io(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){let i=t.map(t=>o5(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=o5(e,t,n);else{let i="function"==typeof t?o4(e,t,n.custom):t;r=o6(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[Ew.Animate]:at(!0),[Ew.InView]:at(),[Ew.Hover]:at(),[Ew.Tap]:at(),[Ew.Drag]:at(),[Ew.Focus]:at(),[Ew.Exit]:at()},r=!0,i=(t,n)=>{let r=o4(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,a){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,E=Array.isArray(g)?g:[g],k=E.reduce(i,{});!1===b&&(k={});let{prevResolvedValues:S={}}=v,_={...S,...k},C=e=>{j=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in _){let t=k[e],n=S[e];h.hasOwnProperty(e)||(t!==n?rT(t)&&rT(n)?!il(t,n)||w?C(e):v.protectedKeys[e]=!0:void 0!==t?C(e):f.add(e):void 0!==t&&f.has(e)?C(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=k,v.isActive&&(h={...h,...k}),r&&e.blockInitialAnimation&&(j=!1),j&&!x&&d.push(...E.map(e=>({animation:e,options:{type:m,...o}})))}if(f.size){let t={};f.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),d.push({animation:t})}let m=!!d.length;return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=o(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),nN(t)&&(0,b.useEffect)(()=>t.subscribe(e),[t])}),exit:io(e=>{let{custom:t,visualElement:n}=e,[r,i]=is(),o=(0,b.useContext)(nv);(0,b.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(Ew.Exit,!r,{custom:o&&o.custom||t});e&&!r&&e.then(i)},[r])})},ar=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),ai=e=>ar(e)&&e.hasOwnProperty("z"),ao=(e,t)=>Math.abs(e-t);function aa(e,t){if(iU(e)&&iU(t))return ao(e,t);if(ar(e)&&ar(t)){let n=ao(e.x,t.x),r=ao(e.y,t.y),i=ai(e)&&ai(t)?ao(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}class as{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=ac(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=aa(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nf();this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=al(t,this.transformPagePoint),rV(e)&&0===e.buttons){this.handlePointerUp(e,t);return}na.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=ac(al(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},rI(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=rB(e),i=al(r,this.transformPagePoint),{point:o}=i,{timestamp:a}=nf();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,ac(i,this.history)),this.removeListeners=r6(rG(window,"pointermove",this.handlePointerMove),rG(window,"pointerup",this.handlePointerUp),rG(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ns.update(this.updatePoint)}}function al(e,t){return t?{point:t(e.point)}:e}function au(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ac({point:e},t){return{point:e,delta:au(e,ad(t)),offset:au(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=ad(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>op(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function ad(e){return e[e.length-1]}function af(e){return e.max-e.min}function ah(e,t=0,n=.01){return aa(e,t)({translate:0,scale:1,origin:0,originPoint:0}),ak=()=>({x:aE(),y:aE()}),aS=()=>({min:0,max:0}),a_=()=>({x:aS(),y:aS()});function aC(e){return[e("x"),e("y")]}function aO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aM(e){return void 0===e||1===e}function aT({scale:e,scaleX:t,scaleY:n}){return!aM(e)||!aM(t)||!aM(n)}function aA(e){return aT(e)||aP(e)||e.z||e.rotate||e.rotateX||e.rotateY}function aP(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function aN(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function aR(e,t=0,n=1,r,i){e.min=aN(e.min,t,n,r,i),e.max=aN(e.max,t,n,r,i)}function aD(e,{x:t,y:n}){aR(e.x,t.translate,t.scale,t.originPoint),aR(e.y,n.translate,n.scale,n.originPoint)}function aL(e,t){e.min=e.min+t,e.max=e.max+t}function aF(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=iw(e.min,e.max,o);aR(e,t[n],t[r],a,t.scale)}let az=["x","scaleX","originX"],aV=["y","scaleY","originY"];function aI(e,t){aF(e.x,t,az),aF(e.y,t,aV)}function aZ(e,t){return aO(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let aB=new WeakMap;class aH{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=a_(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new as(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(rB(e,"page").point)},onStart:(e,t)=>{var n;let{drag:r,dragPropagation:i,onDragStart:o}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=r1(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),aC(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(re.test(r)){let i=null===(n=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(i){let e=af(i);r=e*(parseFloat(r)/100)}}this.originPoint[e]=r}),null==o||o(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(Ew.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==o||o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();null==i||i(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Ew.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!aU(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?iw(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&nA(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:ab(e.x,n,i),y:ab(e.y,t,r)}}(n.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:aw(e,"left","right"),y:aw(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&aC(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nA(t))return!1;let r=t.current;id(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=aZ(e,n),{scroll:i}=t;return i&&(aL(r.x,i.x),aL(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:ax((e=i.layout.actual).x,o.x),y:ax(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=aO(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=aC(a=>{var l;if(!aU(a,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[a])&&void 0!==l?l:{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,c)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oH(e,n,0,t)}stopAnimation(){aC(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)}snapToCursor(e){aC(t=>{let{drag:n}=this.getProps();if(!aU(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.actual[t];i.set(e[t]-iw(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nA(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};aC(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=af(e),i=af(t);return i>r?n=ix(t.min,t.max-r,e.min):r>i&&(n=ix(e.min,e.max-i,t.min)),ih(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),aC(e=>{if(!aU(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(iw(r,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;aB.set(this.visualElement,this);let t=this.visualElement.current,n=rG(t,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();nA(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();let a=rF(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(aC(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),null==s||s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function aU(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let aW={pan:io(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=e||t||n||r,a=(0,b.useRef)(null),{transformPagePoint:s}=(0,b.useContext)(nO),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,b.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),rX(i,"pointerdown",o&&function(e){a.current=new as(e,l,{transformPagePoint:s})}),nE(()=>a.current&&a.current.end())}),drag:io(function(e){let{dragControls:t,visualElement:n}=e,r=ng(()=>new aH(n));(0,b.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,b.useEffect)(()=>r.addListeners(),[r])})};function aq(e){return"string"==typeof e&&e.startsWith("var(--")}let a$=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function aK(e,t,n=1){id(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=a$.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():aq(i)?aK(i,t,n+1):i}let aY=new Set(["width","height","top","left","right","bottom","x","y"]),aG=e=>aY.has(e),aX=e=>Object.keys(e).some(aG),aJ=(e,t)=>{e.set(t,!1),e.set(t)},aQ=e=>e===ro||e===rt;(Eg=Ej||(Ej={})).width="width",Eg.height="height",Eg.left="left",Eg.right="right",Eg.top="top",Eg.bottom="bottom";let a0=(e,t)=>parseFloat(e.split(", ")[t]),a1=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return a0(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?a0(t[1],e):0}},a2=new Set(["x","y","z"]),a4=nK.filter(e=>!a2.has(e)),a3={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:a1(4,13),y:a1(5,14)},a5=(e,t,n)=>{let r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=a3[e](r,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);aJ(r,s[n]),e[n]=a3[n](l,o)}),e},a6=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(aG),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=o0(c),f=t[i];if(rT(f)){let e=f.length,t=null===f[0]?1:0;d=o0(c=f[t]);for(let n=t;n{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],aJ(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=a5(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),nh&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},a8=(e,t,n,r)=>{var i,o;let a=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!aq(t))return;let n=aK(t,r);n&&e.set(n)}),t){let e=t[i];if(!aq(e))continue;let o=aK(e,r);o&&(t[i]=o,n&&void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=a.target,r=a.transitionEnd,i=t,o=r,aX(i)?a6(e,i,n,o):{target:i,transitionEnd:o}},a7={current:null},a9={current:!1},se=Object.keys(nV),st=se.length,sn=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sr{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>na.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=nD(t),this.isVariantNode=nL(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==o[e]&&nX(t)&&(t.set(o[e],!1),o3(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==o[e]&&nX(n)&&n.set(o[e])}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),a9.current||function(){if(a9.current=!0,nh){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>a7.current=e.matches;e.addListener(t),t()}else a7.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||a7.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;for(let r in null===(e=this.projection)||void 0===e||e.unmount(),ns.update(this.notifyUpdate),ns.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[r].clear();this.current=null}bindToMotionValue(e,t){let n=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&na.update(this.notifyUpdate,!1,!0)}),r=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r,i,o){let a=[];"production"!==t6&&n&&t&&id(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):a_()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;tn.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=oX(t),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=rM(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||nX(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new oK),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let si=["initial",...o7],so=si.length;class sa extends sr{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){var r;let i={};for(let o in e){let e=function(e,t){if(!t)return;let n=t[e]||t.default||t;return n.from}(o,t);i[o]=void 0!==e?e:null===(r=n.getValue(o))||void 0===r?void 0:r.get()}return i}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;snq(e)?new sl(t,{enableHardwareAcceleration:!1}):new ss(t,{enableHardwareAcceleration:!0});function sc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sd={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rt.test(e))return e;e=parseFloat(e)}let n=sc(e,t.target.x),r=sc(e,t.target.y);return`${n}% ${r}%`}},sf="_$css",sh={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),o=[];i&&(e=e.replace(a$,e=>(o.push(e),sf)));let a=iH.parse(e);if(a.length>5)return r;let s=iH.createTransformer(e),l="number"!=typeof a[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=iw(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(i){let e=0;f=f.replace(sf,()=>{let t=o[e];return e++,t})}return f}};class sp extends b.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(n$,sm),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nI.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||na.postRender(()=>{var e;(null===(e=o.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sm={borderRadius:{...sd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sd,borderTopRightRadius:sd,borderBottomLeftRadius:sd,borderBottomRightRadius:sd,boxShadow:sh},sv=["TopLeft","TopRight","BottomLeft","BottomRight"],sg=sv.length,sy=e=>"string"==typeof e?parseFloat(e):e,sb=e=>"number"==typeof e||rt.test(e);function sx(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sw=sE(0,.5,i7),sj=sE(.5,.95,i4);function sE(e,t,n){return r=>rt?1:n(ix(e,t,r))}function sk(e,t){e.min=t.min,e.max=t.max}function sS(e,t){sk(e.x,t.x),sk(e.y,t.y)}function s_(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function sC(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(re.test(t)){t=parseFloat(t);let e=iw(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=iw(o.min,o.max,r);e===o&&(s-=t),e.min=s_(e.min,t,n,s,i),e.max=s_(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let sO=["x","scaleX","originX"],sM=["y","scaleY","originY"];function sT(e,t,n,r){sC(e.x,t,sO,null==n?void 0:n.x,null==r?void 0:r.x),sC(e.y,t,sM,null==n?void 0:n.y,null==r?void 0:r.y)}function sA(e){return 0===e.translate&&1===e.scale}function sP(e){return sA(e.x)&&sA(e.y)}function sN(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function sR(e){return af(e.x)/af(e.y)}class sD{constructor(){this.members=[]}add(e){oq(this.members,e),e.scheduleRender()}remove(e){if(o$(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var n;let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sL(e,t,n){let r=e.x.translate/t.x,i=e.y.translate/t.y,o=`translate3d(${r}px, ${i}px, 0) `;if(o+=`scale(${1/t.x}, ${1/t.y}) `,n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),r&&(o+=`rotateY(${r}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(o+=`scale(${a}, ${s})`)?"none":o}let sF=(e,t)=>e.depth-t.depth;class sz{constructor(){this.children=[],this.isDirty=!1}add(e){oq(this.children,e),this.isDirty=!0}remove(e){o$(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sF),this.isDirty=!1,this.children.forEach(e)}}let sV=["","X","Y","Z"];function sI({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e,n={},r=null==t?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(s$),this.nodes.forEach(sK)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=oz(r,250),nI.hasAnimatedSinceResize&&(nI.hasAnimatedSinceResize=!1,this.nodes.forEach(sq))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var i,o,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(o=null!==(i=this.options.transition)&&void 0!==i?i:a.getDefaultTransition())&&void 0!==o?o:s0,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!sN(this.targetLayout,r)||n,p=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...oB(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sq(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,ns.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(sY))}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked()){null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));s4(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(sQ));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;sX(a.x,e.x,f),sX(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(ay(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,sJ(r.x,d.x,s.x,f),sJ(r.y,d.y,s.y,f)),l&&(this.animationValues=o,function(e,t,n,r,i,o){var a,s,l,u;i?(e.opacity=iw(0,null!==(a=n.opacity)&&void 0!==a?a:1,sw(r)),e.opacityExit=iw(null!==(s=t.opacity)&&void 0!==s?s:1,0,sj(r))):o&&(e.opacity=iw(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{nI.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=nX(e)?e:oX(e);return oH("",r,1e3,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&s3(this.options.animationType,this.layout.actual,r.actual)){n=this.target||a_();let t=af(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=af(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sS(t,n),aI(t,i),am(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new sD);let o=this.sharedNodes.get(e);o.add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,n={};for(let r=0;r{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(sU),this.root.sharedNodes.clear()}}}function sZ(e){e.updateLayout()}function sB(e){var t,n,r;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{actual:t,measured:n}=e.layout,{animationType:r}=e.options;"size"===r?aC(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=af(n);n.min=t[e].min,n.max=n.min+r}):s3(r,i.layout,t)&&aC(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=af(t[e]);n.max=n.min+r});let o=ak();am(o,t,i.layout);let a=ak();i.isShared?am(a,e.applyTransform(n,!0),i.measured):am(a,t,i.layout);let s=!sP(o),l=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=a_();ay(n,i.layout,e.layout);let o=a_();ay(o,t,r.actual),sN(n,o)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function sH(e){e.clearSnapshot()}function sU(e){e.clearMeasurements()}function sW(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sq(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function s$(e){e.resolveTargetDelta()}function sK(e){e.calcProjection()}function sY(e){e.resetRotation()}function sG(e){e.removeLeadSnapshot()}function sX(e,t,n){e.translate=iw(t.translate,0,n),e.scale=iw(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sJ(e,t,n,r){e.min=iw(t.min,n.min,r),e.max=iw(t.max,n.max,r)}function sQ(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let s0={duration:.45,ease:[.4,0,.1,1]};function s1(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){n=e.path[t];break}let r=n&&n!==e.root?n.instance:document,i=r.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function s2(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function s4(e){s2(e.x),s2(e.y)}function s3(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return aa(e,t)<=n}(sR(t),sR(n),.2)}let s5=sI({attachResizeListener:(e,t)=>rF(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),s6={current:void 0},s8=sI({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!s6.current){let e=new s5(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),s6.current=e}return s6.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),s7={...an,...ia,...aW,measureLayout:function(e){let[t,n]=is(),r=(0,b.useContext)(nj);return b.createElement(sp,{...e,layoutGroup:r,switchLayoutGroup:(0,b.useContext)(nH),isPresent:t,safeToRemove:n})}},s9=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?nV.projectionNodeConstructor=e[t]:nV[t].Component=e[t]}(e);let a=(0,b.forwardRef)(function(a,s){var l;let u={...(0,b.useContext)(nO),...a,layoutId:function({layoutId:e}){let t=(0,b.useContext)(nj).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:n}=function(e,t){if(nD(e)){let{initial:t,animate:n}=e;return{initial:!1===t||nP(t)?t:void 0,animate:nP(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,b.useContext)(nM));return(0,b.useMemo)(()=>({initial:t,animate:n}),[nF(t),nF(n)])}(a),h=c?void 0:ng(()=>{if(nI.hasEverUpdated)return nZ++}),p=i(a,c);if(!c&&nh){f.visualElement=function(e,t,n,r){let i=(0,b.useContext)(nM).visualElement,o=(0,b.useContext)(nT),a=(0,b.useContext)(nv),s=(0,b.useContext)(nO).reducedMotion,l=(0,b.useRef)();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return np(()=>{u&&u.render()}),(0,b.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),np(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let r=(0,b.useContext)(nT).strict,i=(0,b.useContext)(nH);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||nV.projectionNodeConstructor,i))}return b.createElement(nB,{visualElement:f.visualElement,props:u},d,b.createElement(nM.Provider,{value:f},r(o,a,h,(l=f.visualElement,(0,b.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):nA(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[nU]=o,a}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r,i){let o=nq(e)?rD:rL;return{...o,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:o},a)=>{let s=nq(t)?rj:rh,l=s(n,o,a),u=function(e,t,n){let r={};for(let i in e)(rv(i)||!0===n&&rm(i)||!t&&!rm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),c={...u,...l,ref:i};return r&&(c["data-projection-id"]=r),(0,b.createElement)(t,c)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,s7,su,s8));function le(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,b.useState)(!1),o=(0,b.useMemo)(()=>n?t:r,[n,r,t]),a=(0,b.useCallback)(e=>{n?n(e):i(e)},[n]);return{open:o,onOpenChange:a}}var lt=n(35957),ln=n.n(lt),lr=n(276),li=n.n(lr);let lo=(0,em.cx)(ln().variable,li().variable),la={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}};function ls(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=le({open:i,onOpenChange:o});return(0,y.jsxs)(tJ,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,y.jsx)(tB,{asChild:!0,children:t}),(0,y.jsx)(nC,{children:n&&u?(0,y.jsx)(tQ,{forceMount:!0,children:(0,y.jsx)(t$,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,y.jsx)(s9.div,{variants:la,initial:"init",animate:"show",exit:"exit",className:(0,em.cx)(lo,"relative","z-50","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"),children:(0,y.jsx)("div",{className:(0,em.cx)("py-1 px-2","max-w-xs","overflow-hidden",t4()),children:(0,y.jsx)(t2,{size:"12",children:n})})})})}):null})]})}let ll=(0,em.j)(["inline-flex","gap-1","appearance-none","shrink-0","items-center","justify-center","select-none","leading-normal","font-sans","cursor-pointer","overflow-hidden","focus:z-10","disabled:cursor-auto","disabled:pointer-events-none","outline-none","focus:ring ring-blue-500 dark:ring-blue-200","transition-colors duration-75"],{variants:{size:{small:["text-xs","px-2","h-7"],medium:["text-base","px-4","h-10"],large:["text-lg","px-4","h-12"],none:[]},state:{waiting:["pointer-events-none"]},disabled:{true:"cursor-auto pointer-events-none"},rounded:{true:"rounded",false:""},variant:{accent:["border","text-white dark:text-white","enabled:bg-green-700 enabled:dark:bg-green-700","enabled:border-green-800/30 enabled:dark:border-green-600/70","enabled:hover:bg-green-800/90 dark:enabled:hover:bg-green-700/90","enabled:hover:border-green-800/50 enabled:hover:dark:border-green-600","disabled:text-white/50 disabled:dark:text-white/50","disabled:bg-green-700/70 disabled:dark:bg-green-600/70","disabled:border-green-600/50 disabled:dark:border-green-500/30","[&[href]]:bg-green-700 [&[href]]:dark:bg-green-700","[&[href]]:border-green-800/30 [&[href]]:dark:border-green-600/70","[&[href]]:hover:bg-green-800/90 dark:[&[href]]:hover:bg-green-700/90","[&[href]]:hover:border-green-800/50 [href]]:hover:dark:border-green-600"],red:["border","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","enabled:hover:bg-red-800/90 dark:enabled:hover:bg-red-700/90","enabled:hover:border-red-800/50 enabled:hover:dark:border-red-600","disabled:bg-red-700/70 disabled:dark:bg-red-600/70","disabled:border-red-600/50 disabled:dark:border-red-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],amber:["border","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","enabled:hover:bg-amber-800/90 dark:enabled:hover:bg-amber-700/90","enabled:hover:border-amber-800/50 enabled:hover:dark:border-amber-600","disabled:bg-amber-700/70 disabled:dark:bg-amber-600/70","disabled:border-amber-600/50 disabled:dark:border-amber-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],gray:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-gray-300","disabled:text-gray-600 disabled:dark:text-graydark-700"],active:["border","bg-gray-200 dark:bg-graydark-400","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-500 dark:border-graydark-500","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],inactive:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400/70 dark:border-graydark-400/70","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","enabled:hover:text-gray-1100 enabled:hover:dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],ghost:["appearance-none border-none bg-transparent","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],state:["open:text-gray-1100 open:dark:text-white","hover:text-gray-1000 hover:dark:text-graydark-1000","text-gray-700 dark:text-graydark-800"]},icon:{contrast:"",hover:"[&>svg]:opacity-50 hover:[&>svg]:opacity-100 transition-opacity",subtle:"[&>svg]:opacity-50"},color:{verySubtle:"!text-gray-700 dark:!text-graydark-700",subtle:"!text-gray-1000 dark:!text-graydark-1000",contrast:"!text-gray-1100 dark:!text-white",lo:"!text-white dark:!text-graydark-50",accent:"!text-accent-1100 dark:!text-accentdark-1100",red:"!text-red-700 dark:!text-red-400",green:"!text-emerald-700 dark:!text-emerald-500",amber:"!text-amber-600 dark:!text-amber-500",none:""}},defaultVariants:{variant:"gray",size:"small",rounded:!0,icon:"subtle",color:"none"}}),lu=b.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,y.jsx)(ls,{content:u,align:c,side:d,children:(0,y.jsx)("button",{ref:t,type:h,disabled:a,className:ll({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,y.jsx)("button",{ref:t,disabled:a,type:h,className:ll({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var lc=n(88242);let ld=b.forwardRef((e,t)=>{let{children:n,...r}=e;return(0,y.jsx)(X,{ref:t,...r,..."single"===r.type?{collapsible:!0}:{},children:n})}),lf=b.forwardRef((e,t)=>{let{children:n,...r}=e;return(0,y.jsx)(ed,{children:(0,y.jsx)(eh,{...r,asChild:!0,ref:t,children:(0,y.jsxs)(lu,{variant:"ghost",size:"none",className:"w-full flex gap-2 justify-between",children:[(0,y.jsx)("span",{className:"flex-1 text-left",children:n}),(0,y.jsx)("span",{className:"pr-3",children:(0,y.jsx)(lc.cRw,{})})]})})})}),lh=(0,em.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}}),lp=b.forwardRef((e,t)=>{let{variant:n,className:r,...i}=e;return(0,y.jsx)(ec,{...i,className:lh({variant:n,className:r}),ref:t})}),lm=ep,lv=(0,em.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lg=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{...r,className:lv({className:n}),ref:t})});var ly=n(86029);let lb="Avatar",[lx,lw]=(0,j.b)(lb),[lj,lE]=lx(lb),lk=(0,b.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,o]=(0,b.useState)("idle");return(0,b.createElement)(lj,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,b.createElement)(O.WV.span,(0,w.Z)({},r,{ref:t})))}),lS=(0,b.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=lE("AvatarImage",n),s=function(e){let[t,n]=(0,b.useState)("idle");return(0,b.useEffect)(()=>{if(!e){n("error");return}let t=!0,r=new window.Image,i=e=>()=>{t&&n(e)};return n("loading"),r.onload=i("loaded"),r.onerror=i("error"),r.src=e,()=>{t=!1}},[e]),t}(r),l=(0,ly.W)(e=>{i(e),a.onImageLoadingStatusChange(e)});return(0,M.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,b.createElement)(O.WV.img,(0,w.Z)({},o,{ref:t,src:r})):null}),l_=(0,b.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,o=lE("AvatarFallback",n),[a,s]=(0,b.useState)(void 0===r);return(0,b.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),a&&"loaded"!==o.imageLoadingStatus?(0,b.createElement)(O.WV.span,(0,w.Z)({},i,{ref:t})):null}),lC=(0,em.j)(["items-center justify-center align-middle flex flex-shrink-0 relative","overflow-hidden select-none outline-none","font-sans font-medium text-sm","border"],{variants:{size:{1:"w-6 h-6",2:"w-12 h-12",3:"w-16 h-16",4:"w-28 h-28"},variant:{filter:"bg-transparent",hiContrast:["bg-gray-900 dark:bg-white text-white dark:text-gray-1100","border-gray-900 dark:border-white text-white dark:text-gray-1100"],gray:["bg-gray-500 dark:bg-gray-800 text-gray-1100 dark:text-white","border-gray-500 dark:border-gray-800 text-gray-1100 dark:text-white"]},shape:{square:"rounded",circle:"rounded-full"},inactive:{true:"opacity-30"},interactive:{true:"cursor-pointer"}},defaultVariants:{size:"2",variant:"gray",shape:"circle"}}),lO=(0,em.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lM=b.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:o,variant:a,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,y.jsx)("div",{className:(0,em.cx)("relative h-fit w-fit",c),children:(0,y.jsxs)(lk,{...d,ref:t,className:lC({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,y.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,y.jsx)(lS,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,y.jsx)(l_,{className:lO({size:o}),children:i})]})})});(0,em.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular text-sm","justify-center align-middle outline-none p-0 decoration-none select-none","disabled:pointer-events-none","py-0.5 px-2"],{variants:{variant:{active:["border","bg-gray-800 text-gray-900 border-gray-900","dark:bg-transparent dark:text-white dark:border-white/10"],simple:"bg-gray-300 dark:bg-graydark-800 text-gray-900 dark:text-white",green:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],accent:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],red:["border","[&>svg]:opacity-50","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","hover:bg-red-800/90 dark:hover:bg-red-700/90","hover:border-red-800/50 hover:dark:border-red-600","text-white dark:text-white"],amber:["border","[&>svg]:opacity-50","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","hover:bg-amber-800/90 dark:hover:bg-amber-700/90","hover:border-amber-800/50 hover:dark:border-amber-600","text-white dark:text-white"],gray:["border","[&>svg]:opacity-50","bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","hover:bg-gray-50 dark:hover:bg-graydark-300","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100 dark:text-white"],inactive:["border","[&>svg]:opacity-50","bg-white dark:bg-transparent","border-gray-400 dark:border-graydark-400","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","hover:text-gray-1100/50 hover:dark:text-white/50"]},interactive:{true:"cursor-pointer"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",rounded:!0}});let lT=b.forwardRef((e,t)=>{let{className:n,size:r,color:i,...o}=e;return(0,y.jsx)("pre",{children:(0,y.jsx)("code",{className:(0,em.cx)(t0({font:"mono",size:r,color:i}),"block","w-full","overflow-auto","p-3","bg-white dark:bg-graydark-200","border border-gray-400 dark:border-graydark-400","rounded",n),...o,ref:t})})}),lA=(0,em.j)(["font-mono","whitespace-nowrap","rounded"],{variants:{color:{gray:["bg-gray-200 dark:bg-graydark-200","text-gray-1100 dark:text-graydark-1100"],accent:["bg-accent-200 dark:bg-accentdark-200","text-accent-1100 dark:text-accentdark-1100"]}},defaultVariants:{color:"accent"}}),lP=b.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,y.jsx)("code",{...i,className:lA({color:n,className:r}),ref:t})}),lN=(0,em.j)(["flex","relative","[&>*]:rounded-none [&>*:last-child]:rounded-r [&>*:first-child]:rounded-l","[&>*]:border-r-0 [&>*]:border-l [&>*:first-child]:border-l [&>*:last-child]:border-r"]),lR=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:lN({className:n}),...r})});(0,em.j)(["select-none appearance-none outline-none overflow-hidden","inline-flex items-center justify-center","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-4 h-4 rounded",medium:"w-6 h-6 rounded"}},defaultVariants:{size:"small"}});let lD=(0,em.j)(["flex-shrink-0 w-full mx-auto"],{variants:{pad:{true:"px-5 md:px-10",false:""},size:{1:"max-w-screen-sm",2:"max-w-screen-md",3:"max-w-[1145px]",4:"max-w-screen-2xl",full:"max-w-none"}},defaultVariants:{pad:!0,size:"3"}}),lL=b.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...o}=e;return(0,y.jsx)("div",{ref:t,...o,className:lD({size:i,pad:r,className:n})})});var lF=n(72331);let lz=(0,b.createContext)(void 0);function lV(e){let t=(0,b.useContext)(lz);return e||t||"ltr"}let lI="ScrollArea",[lZ,lB]=(0,j.b)(lI),[lH,lU]=lZ(lI),lW=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,b.useState)(null),[u,c]=(0,b.useState)(null),[d,f]=(0,b.useState)(null),[h,p]=(0,b.useState)(null),[m,v]=(0,b.useState)(null),[g,y]=(0,b.useState)(0),[x,j]=(0,b.useState)(0),[k,S]=(0,b.useState)(!1),[_,C]=(0,b.useState)(!1),M=(0,E.e)(t,e=>l(e)),T=lV(i);return(0,b.createElement)(lH,{scope:n,type:r,dir:T,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:k,onScrollbarXEnabledChange:S,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:_,onScrollbarYEnabledChange:C,onCornerWidthChange:y,onCornerHeightChange:j},(0,b.createElement)(O.WV.div,(0,w.Z)({dir:T},a,{ref:M,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})))}),lq=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,o=lU("ScrollAreaViewport",n),a=(0,b.useRef)(null),s=(0,E.e)(t,a,o.onViewportChange);return(0,b.createElement)(b.Fragment,null,(0,b.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,b.createElement)(O.WV.div,(0,w.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,b.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),l$="ScrollAreaScrollbar",lK=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lU(l$,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,b.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,b.createElement)(lY,(0,w.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,b.createElement)(lG,(0,w.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,b.createElement)(lX,(0,w.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,b.createElement)(lJ,(0,w.Z)({},r,{ref:t})):null}),lY=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lU(l$,e.__scopeScrollArea),[o,a]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),(0,b.createElement)(T.z,{present:n||o},(0,b.createElement)(lX,(0,w.Z)({"data-state":o?"visible":"hidden"},r,{ref:t})))}),lG=(0,b.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,o=lU(l$,e.__scopeScrollArea),a="horizontal"===e.orientation,s=ua(()=>u("SCROLL_END"),100),[l,u]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,b.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,b.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,b.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t],i=n!==r;i&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,u,s]),(0,b.createElement)(T.z,{present:r||"hidden"!==l},(0,b.createElement)(lJ,(0,w.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,_.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,_.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),lX=(0,b.forwardRef)((e,t)=>{let n=lU(l$,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=(0,b.useState)(!1),s="horizontal"===e.orientation,l=ua(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=lU(l$,e.__scopeScrollArea),o=(0,b.useRef)(null),a=(0,b.useRef)(0),[s,l]=(0,b.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ut(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:!!(u>0&&u<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function d(e,t){return function(e,t,n,r="ltr"){let i=un(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport,u=ui([a,s],"ltr"===r?[0,l]:[-1*l,0]);return u(e)}(e,a.current,s,t)}return"horizontal"===n?(0,b.createElement)(lQ,(0,w.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollLeft,t=ur(e,s,i.dir);o.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}})):"vertical"===n?(0,b.createElement)(l0,(0,w.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollTop,t=ur(e,s);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),lQ=(0,b.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lU(l$,e.__scopeScrollArea),[a,s]=(0,b.useState)(),l=(0,b.useRef)(null),u=(0,E.e)(t,l,o.onScrollbarXChange);return(0,b.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,b.createElement)(l4,(0,w.Z)({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":un(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:ue(a.paddingLeft),paddingEnd:ue(a.paddingRight)}})}}))}),l0=(0,b.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lU(l$,e.__scopeScrollArea),[a,s]=(0,b.useState)(),l=(0,b.useRef)(null),u=(0,E.e)(t,l,o.onScrollbarYChange);return(0,b.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,b.createElement)(l4,(0,w.Z)({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":un(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:ue(a.paddingTop),paddingEnd:ue(a.paddingBottom)}})}}))}),[l1,l2]=lZ(l$),l4=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:o,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=lU(l$,n),[p,m]=(0,b.useState)(null),v=(0,E.e)(t,e=>m(e)),g=(0,b.useRef)(null),y=(0,b.useRef)(""),x=h.viewport,j=r.content-r.viewport,k=(0,ly.W)(c),S=(0,ly.W)(l),C=ua(d,10);function M(e){if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;u({x:t,y:n})}}return(0,b.useEffect)(()=>{let e=e=>{let t=e.target,n=null==p?void 0:p.contains(t);n&&k(e,j)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[x,p,j,k]),(0,b.useEffect)(S,[r,S]),us(p,C),us(h.content,C),(0,b.createElement)(l1,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,ly.W)(o),onThumbPointerUp:(0,ly.W)(a),onThumbPositionChange:S,onThumbPointerDown:(0,ly.W)(s)},(0,b.createElement)(O.WV.div,(0,w.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,_.M)(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",M(e)}}),onPointerMove:(0,_.M)(e.onPointerMove,M),onPointerUp:(0,_.M)(e.onPointerUp,e=>{let t=e.target;t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),l3="ScrollAreaThumb",l5=(0,b.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=l2(l3,e.__scopeScrollArea);return(0,b.createElement)(T.z,{present:n||i.hasThumb},(0,b.createElement)(l6,(0,w.Z)({ref:t},r)))}),l6=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,o=lU(l3,n),a=l2(l3,n),{onThumbPositionChange:s}=a,l=(0,E.e)(t,e=>a.onThumbChange(e)),u=(0,b.useRef)(),c=ua(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,b.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=uo(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,b.createElement)(O.WV.div,(0,w.Z)({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,_.M)(e.onPointerDownCapture,e=>{let t=e.target,n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;a.onThumbPointerDown({x:r,y:i})}),onPointerUp:(0,_.M)(e.onPointerUp,a.onThumbPointerUp)}))}),l8="ScrollAreaCorner",l7=(0,b.forwardRef)((e,t)=>{let n=lU(l8,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY),i="scroll"!==n.type&&r;return i?(0,b.createElement)(l9,(0,w.Z)({},e,{ref:t})):null}),l9=(0,b.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=lU(l8,n),[o,a]=(0,b.useState)(0),[s,l]=(0,b.useState)(0);return us(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),us(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),o&&s?(0,b.createElement)(O.WV.div,(0,w.Z)({},r,{ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function ue(e){return e?parseInt(e,10):0}function ut(e,t){let n=e/t;return isNaN(n)?0:n}function un(e){let t=ut(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function ur(e,t,n="ltr"){let r=un(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s="ltr"===n?[0,a]:[-1*a,0],l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,s),u=ui([0,a],[0,o-r]);return u(l)}function ui(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}let uo=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function ua(e,t){let n=(0,ly.W)(e),r=(0,b.useRef)(0);return(0,b.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,b.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function us(e,t){let n=(0,ly.W)(t);(0,M.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}let ul=b.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:o,keyToResetScrollbars:a}=e;return(0,y.jsxs)(lW,{className:(0,em.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,y.jsx)(lq,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,y.jsx)(lK,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,y.jsx)(l5,{className:(0,em.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"v-".concat(a):void 0),(0,y.jsx)(lK,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1 m-px",children:(0,y.jsx)(l5,{className:(0,em.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"h-".concat(a):void 0),(0,y.jsx)(l7,{className:"bg-black/70"})]})}),uu=(0,em.j)([lo,"z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),uc={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},ud=b.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:o,onSubmit:a,title:s,description:l,containerVariants:u,contentVariants:c,controls:d,children:f,bodyClassName:h,closeClassName:p,dynamicHeight:m=!0}=e,{open:v,onOpenChange:g}=le({open:i,onOpenChange:o});return(0,y.jsxs)(lF.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,y.jsx)(lF.xz,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:v?(0,y.jsx)(lF.h_,{forceMount:!0,children:(0,y.jsx)(lF.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,y.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,y.jsx)(lF.aV,{onClick:()=>g(!1),className:"fixed z-10 top-0 right-0 bottom-0 left-0 inset-0 transition-opacity opacity-0 open:opacity-10 dark:open:opacity-20 bg-black"}),(0,y.jsx)(s9.div,{variants:uc,initial:"init",animate:"show",exit:"exit",className:uu(u),children:(0,y.jsx)(up,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function uf(e){let{className:t}=e;return(0,y.jsx)(lF.x8,{asChild:!0,type:"button",children:(0,y.jsx)("div",{className:(0,em.cx)("appearance-none",t),children:(0,y.jsx)(lu,{size:"small",variant:"ghost",type:"button",children:(0,y.jsx)(lc.QN4,{})})})})}let uh=(0,em.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[t4()],none:""}},defaultVariants:{variant:"default"}}),up=b.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:o,controls:a,contentVariants:s,closeClassName:l,bodyClassName:u,dynamicHeight:c=!0}=e,{ref:d,height:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,b.useState)(0),r=(0,b.useRef)(null);return(0,b.useLayoutEffect)(()=>{if(!r.current)return;let e=r.current,t=()=>n(e.clientHeight);t(),r.current.addEventListener("resize",t);let i=new ResizeObserver(t);return i.observe(e),()=>{e.removeEventListener("resize",t),i.unobserve(e)}},e),{ref:r,height:t}}([n,o]),[h,p]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,y.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:uh(s),children:[i&&(0,y.jsx)(lF.Dx,{className:um({showSeparator:h}),children:i}),(0,y.jsx)(ul,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,y.jsxs)("div",{ref:d,className:(0,em.cx)("p-4",u),children:[o&&(0,y.jsx)(lF.dk,{className:uv(),children:o}),n]})}),a&&(0,y.jsx)(ug,{separator:h,children:a}),(0,y.jsx)(uf,{className:l||"absolute top-3.5 right-2"})]})}),um=(0,em.j)(["pt-4 pb-2 px-4 w-full",t0({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),uv=(0,em.j)([t0({color:"subtle",size:"14"}),"py-2"]);function ug(e){let{children:t,separator:n=!0}=e;return(0,y.jsx)("div",{className:(0,em.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var uy=n(55070),ub=n(77334);let ux="rovingFocusGroup.onEntryFocus",uw={bubbles:!1,cancelable:!0},uj="RovingFocusGroup",[uE,uk,uS]=S(uj),[u_,uC]=(0,j.b)(uj,[uS]),[uO,uM]=u_(uj),uT=(0,b.forwardRef)((e,t)=>(0,b.createElement)(uE.Provider,{scope:e.__scopeRovingFocusGroup},(0,b.createElement)(uE.Slot,{scope:e.__scopeRovingFocusGroup},(0,b.createElement)(uA,(0,w.Z)({},e,{ref:t}))))),uA=(0,b.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=(0,b.useRef)(null),f=(0,E.e)(t,d),h=lV(o),[p=null,m]=(0,C.T)({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,b.useState)(!1),y=(0,ly.W)(u),x=uk(n),j=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(ux,y),()=>e.removeEventListener(ux,y)},[y]),(0,b.createElement)(uO,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,b.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,b.useCallback)(()=>g(!0),[])},(0,b.createElement)(O.WV.div,(0,w.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,_.M)(e.onMouseDown,()=>{j.current=!0}),onFocus:(0,_.M)(e.onFocus,e=>{let t=!j.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(ux,uw);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=x().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===p),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);uR(i)}}j.current=!1}),onBlur:(0,_.M)(e.onBlur,()=>g(!1))})))}),uP=(0,b.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=e,a=(0,A.M)(),s=uM("RovingFocusGroupItem",n),l=s.currentTabStopId===a,u=uk(n);return(0,b.createElement)(uE.ItemSlot,{scope:n,id:a,focusable:r,active:i},(0,b.createElement)(O.WV.span,(0,w.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:(0,_.M)(e.onMouseDown,e=>{r?s.onItemFocus(a):e.preventDefault()}),onFocus:(0,_.M)(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:(0,_.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return uN[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable),o=i.map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>uR(o))}})})))}),uN={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uR(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}var uD=n(49732),uL=n(70506);let uF=["Enter"," "],uz=["ArrowUp","PageDown","End"],uV=["ArrowDown","PageUp","Home",...uz],uI={ltr:[...uF,"ArrowRight"],rtl:[...uF,"ArrowLeft"]},uZ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},uB="Menu",[uH,uU,uW]=S(uB),[uq,u$]=(0,j.b)(uB,[uW,th,uC]),uK=th(),uY=uC(),[uG,uX]=uq(uB),[uJ,uQ]=uq(uB),u0=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=uK(n);return(0,b.createElement)(tv,(0,w.Z)({},i,r,{ref:t}))}),u1="MenuPortal",[u2,u4]=uq(u1,{forceMount:void 0}),u3="MenuContent",[u5,u6]=uq(u3),u8=(0,b.forwardRef)((e,t)=>{let n=u4(u3,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uX(u3,e.__scopeMenu),a=uQ(u3,e.__scopeMenu);return(0,b.createElement)(uH.Provider,{scope:e.__scopeMenu},(0,b.createElement)(T.z,{present:r||o.open},(0,b.createElement)(uH.Slot,{scope:e.__scopeMenu},a.modal?(0,b.createElement)(u7,(0,w.Z)({},i,{ref:t})):(0,b.createElement)(u9,(0,w.Z)({},i,{ref:t})))))}),u7=(0,b.forwardRef)((e,t)=>{let n=uX(u3,e.__scopeMenu),r=(0,b.useRef)(null),i=(0,E.e)(t,r);return(0,b.useEffect)(()=>{let e=r.current;if(e)return(0,uD.R)(e)},[]),(0,b.createElement)(ce,(0,w.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,_.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),u9=(0,b.forwardRef)((e,t)=>{let n=uX(u3,e.__scopeMenu);return(0,b.createElement)(ce,(0,w.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),ce=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=uX(u3,n),v=uQ(u3,n),g=uK(n),y=uY(n),x=uU(n),[j,S]=(0,b.useState)(null),C=(0,b.useRef)(null),O=(0,E.e)(t,C,m.onContentChange),M=(0,b.useRef)(0),T=(0,b.useRef)(""),A=(0,b.useRef)(0),P=(0,b.useRef)(null),N=(0,b.useRef)("right"),R=(0,b.useRef)(0),D=h?uL.Z:b.Fragment,L=h?{as:k.g7,allowPinchZoom:!0}:void 0,F=e=>{var t,n;let r=T.current+e,i=x().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=i.map(e=>e.textValue),l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,a=n?e.indexOf(n):-1,s=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length])),l=1===o.length;l&&(s=s.filter(e=>e!==n));let u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(s,r,a),u=null===(n=i.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){T.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};(0,b.useEffect)(()=>()=>window.clearTimeout(M.current),[]),(0,uy.EW)();let z=(0,b.useCallback)(e=>{var t,n;let r=N.current===(null===(t=P.current)||void 0===t?void 0:t.side);return r&&function(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,t)}(e,null===(n=P.current)||void 0===n?void 0:n.area)},[]);return(0,b.createElement)(u5,{scope:n,searchRef:T,onItemEnter:(0,b.useCallback)(e=>{z(e)&&e.preventDefault()},[z]),onItemLeave:(0,b.useCallback)(e=>{var t;z(e)||(null===(t=C.current)||void 0===t||t.focus(),S(null))},[z]),onTriggerLeave:(0,b.useCallback)(e=>{z(e)&&e.preventDefault()},[z]),pointerGraceTimerRef:A,onPointerGraceIntentChange:(0,b.useCallback)(e=>{P.current=e},[])},(0,b.createElement)(D,L,(0,b.createElement)(ub.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,_.M)(o,e=>{var t;e.preventDefault(),null===(t=C.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,b.createElement)(ev.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,b.createElement)(uT,(0,w.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:j,onCurrentTabStopIdChange:S,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,b.createElement)(tj,(0,w.Z)({role:"menu","aria-orientation":"vertical","data-state":cm(m.open),dir:v.dir},g,p,{ref:O,style:{outline:"none",...p.style},onKeyDown:(0,_.M)(p.onKeyDown,e=>{let t=e.target,n=t.closest('[role="menu"]')===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&i&&F(e.key));let o=C.current;if(e.target!==o||!uV.includes(e.key))return;e.preventDefault();let a=x().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);uz.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,_.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),T.current="")}),onPointerMove:(0,_.M)(e.onPointerMove,cg(e=>{let t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>R.current?"right":"left";N.current=t,R.current=e.clientX}}))})))))))}),ct=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,b.createElement)(O.WV.div,(0,w.Z)({role:"group"},r,{ref:t}))}),cn=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,b.createElement)(O.WV.div,(0,w.Z)({},r,{ref:t}))}),cr="MenuItem",ci="menu.itemSelect",co=(0,b.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,o=(0,b.useRef)(null),a=uQ(cr,e.__scopeMenu),s=u6(cr,e.__scopeMenu),l=(0,E.e)(t,o),u=(0,b.useRef)(!1);return(0,b.createElement)(ca,(0,w.Z)({},i,{ref:l,disabled:n,onClick:(0,_.M)(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(ci,{bubbles:!0,cancelable:!0});e.addEventListener(ci,e=>null==r?void 0:r(e),{once:!0}),(0,O.jH)(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:(0,_.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,_.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&uF.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),ca=(0,b.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=u6(cr,n),s=uY(n),l=(0,b.useRef)(null),u=(0,E.e)(t,l),[c,d]=(0,b.useState)(!1),[f,h]=(0,b.useState)("");return(0,b.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,b.createElement)(uH.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,b.createElement)(uP,(0,w.Z)({asChild:!0},s,{focusable:!r}),(0,b.createElement)(O.WV.div,(0,w.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:(0,_.M)(e.onPointerMove,cg(e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus()}})),onPointerLeave:(0,_.M)(e.onPointerLeave,cg(e=>a.onItemLeave(e))),onFocus:(0,_.M)(e.onFocus,()=>d(!0)),onBlur:(0,_.M)(e.onBlur,()=>d(!1))}))))}),[cs,cl]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,b.createElement)(cc,{scope:e.__scopeMenu,checked:n},(0,b.createElement)(co,(0,w.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":cv(n),onSelect:(0,_.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},uq("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),cu=((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,ly.W)(r);return(0,b.createElement)(cs,{scope:e.__scopeMenu,value:n,onValueChange:o},(0,b.createElement)(ct,(0,w.Z)({},i,{ref:t})))},"MenuItemIndicator"),[cc,cd]=uq(cu,{checked:!1}),[cf,ch]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=cd(cu,n);return(0,b.createElement)(T.z,{present:r||o.checked},(0,b.createElement)(O.WV.span,(0,w.Z)({},i,{ref:t,"data-state":cv(o.checked)})))},uq("MenuSub")),cp="MenuSubTrigger";function cm(e){return e?"open":"closed"}function cv(e){return e?"checked":"unchecked"}function cg(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=uX(cp,e.__scopeMenu),r=uQ(cp,e.__scopeMenu),i=ch(cp,e.__scopeMenu),o=u6(cp,e.__scopeMenu),a=(0,b.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,b.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,b.useEffect)(()=>c,[c]),(0,b.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,b.createElement)(u0,(0,w.Z)({asChild:!0},u),(0,b.createElement)(ca,(0,w.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cm(n.open)},e,{ref:(0,E.F)(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,_.M)(e.onPointerMove,cg(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(o.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:(0,_.M)(e.onPointerLeave,cg(e=>{var t,r;c();let i=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,a="right"===t,l=i[a?"left":"right"],u=i[a?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:l,y:i.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:(0,_.M)(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&uI[r.dir].includes(t.key)){var a;n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault()}})})))},(e,t)=>{let n=u4(u3,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uX(u3,e.__scopeMenu),a=uQ(u3,e.__scopeMenu),s=ch("MenuSubContent",e.__scopeMenu),l=(0,b.useRef)(null),u=(0,E.e)(t,l);return(0,b.createElement)(uH.Provider,{scope:e.__scopeMenu},(0,b.createElement)(T.z,{present:r||o.open},(0,b.createElement)(uH.Slot,{scope:e.__scopeMenu},(0,b.createElement)(ce,(0,w.Z)({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:u,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,_.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,_.M)(e.onEscapeKeyDown,a.onClose),onKeyDown:(0,_.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=uZ[a.dir].includes(e.key);if(t&&n){var r;o.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))};let cy=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=uK(t),[l,u]=(0,b.useState)(null),c=(0,b.useRef)(!1),d=(0,ly.W)(o),f=lV(i);return(0,b.useEffect)(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,b.createElement)(tM,s,(0,b.createElement)(uG,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,b.createElement)(uJ,{scope:t,onClose:(0,b.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},r)))},cb=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=uX(u1,t);return(0,b.createElement)(u2,{scope:t,forceMount:n},(0,b.createElement)(T.z,{present:n||o.open},(0,b.createElement)(tT.h,{asChild:!0,container:i},r)))},cx="DropdownMenu",[cw,cj]=(0,j.b)(cx,[u$]),cE=u$(),[ck,cS]=cw(cx),c_=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=cS("DropdownMenuTrigger",n),a=cE(n);return(0,b.createElement)(u0,(0,w.Z)({asChild:!0},a),(0,b.createElement)(O.WV.button,(0,w.Z)({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":!!o.open||void 0,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:(0,E.F)(t,o.triggerRef),onPointerDown:(0,_.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,_.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cC=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cS("DropdownMenuContent",n),o=cE(n),a=(0,b.useRef)(!1);return(0,b.createElement)(u8,(0,w.Z)({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:(0,_.M)(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:(0,_.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),cO=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cE(n);return(0,b.createElement)(cn,(0,w.Z)({},i,r,{ref:t}))}),cM=(0,b.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cE(n);return(0,b.createElement)(co,(0,w.Z)({},i,r,{ref:t}))}),cT=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=cE(t),u=(0,b.useRef)(null),[c=!1,d]=(0,C.T)({prop:i,defaultProp:o,onChange:a});return(0,b.createElement)(ck,{scope:t,triggerId:(0,A.M)(),triggerRef:u,contentId:(0,A.M)(),open:c,onOpenChange:d,onOpenToggle:(0,b.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,b.createElement)(cy,(0,w.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},cA=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cE(t);return(0,b.createElement)(cb,(0,w.Z)({},r,n))},cP="horizontal",cN=["horizontal","vertical"],cR=(0,b.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cP,...i}=e,o=cD(r)?r:cP;return(0,b.createElement)(O.WV.div,(0,w.Z)({"data-orientation":o},n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function cD(e){return cN.includes(e)}cR.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!cD(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: + `),()=>{document.head.removeChild(l)}},[t]),x.createElement(ny,{isPresent:t,childRef:r,sizeRef:i},x.cloneElement(e,{ref:r}))}let nb=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=ng(nw),l=(0,x.useId)(),u=(0,x.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[n]);return(0,x.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),x.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===a&&(e=x.createElement(nx,{isPresent:n},e)),x.createElement(nv.Provider,{value:u},e)};function nw(){return new Map}let nj=(0,x.createContext)({});function nE(e){return(0,x.useEffect)(()=>()=>e(),[])}let nk=new Set;function nS(e,t,n){e||nk.has(t)||(console.warn(t),n&&console.warn(n),nk.add(t))}let n_=e=>e.key||"",nC=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",nS(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=nm(),[t,n]=(0,x.useState)(0),r=(0,x.useCallback)(()=>{e.current&&n(t+1)},[t]),i=(0,x.useCallback)(()=>na.postRender(r),[r]);return[i,t]}(),l=(0,x.useContext)(nj).forceRender;l&&(s=l);let u=nm(),c=function(e){let t=[];return x.Children.forEach(e,e=>{(0,x.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=new Set,h=(0,x.useRef)(d),p=(0,x.useRef)(new Map).current,m=(0,x.useRef)(!0);if(np(()=>{m.current=!1,function(e,t){e.forEach(e=>{let n=n_(e);t.set(n,e)})}(c,p),h.current=d}),nE(()=>{m.current=!0,p.clear(),f.clear()}),m.current)return x.createElement(x.Fragment,null,d.map(e=>x.createElement(nb,{key:n_(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let v=h.current.map(n_),g=c.map(n_),y=v.length;for(let e=0;e{if(-1!==g.indexOf(e))return;let n=p.get(e);if(!n)return;let i=v.indexOf(e);d.splice(i,0,x.createElement(nb,{key:n_(n),isPresent:!1,onExitComplete:()=>{p.delete(e),f.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!f.size){if(h.current=c,!1===u.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:o,mode:a},n))}),d=d.map(e=>{let t=e.key;return f.has(t)?e:x.createElement(nb,{key:n_(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==t6&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),x.createElement(x.Fragment,null,f.size?d:d.map(e=>(0,x.cloneElement)(e)))},nO=(0,x.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nM=(0,x.createContext)({}),nT=(0,x.createContext)({strict:!1});function nA(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function nP(e){return"string"==typeof e||Array.isArray(e)}function nN(e){return"object"==typeof e&&"function"==typeof e.start}let nR=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function nD(e){return nN(e.animate)||nR.some(t=>nP(e[t]))}function nL(e){return!!(nD(e)||e.variants)}function nF(e){return Array.isArray(e)?e.join(" "):e}let nz=e=>({isEnabled:t=>e.some(e=>!!t[e])}),nV={measureLayout:nz(["layout","layoutId","drag"]),animation:nz(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:nz(["exit"]),drag:nz(["drag","dragControls"]),focus:nz(["whileFocus"]),hover:nz(["whileHover","onHoverStart","onHoverEnd"]),tap:nz(["whileTap","onTap","onTapStart","onTapCancel"]),pan:nz(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:nz(["whileInView","onViewportEnter","onViewportLeave"])},nI={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nZ=1;class nB extends x.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let nH=(0,x.createContext)({}),nU=Symbol.for("motionComponentSymbol"),nW=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function nq(e){if("string"!=typeof e||e.includes("-"));else if(nW.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let n$={},nK=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nY=new Set(nK);function nG(e,{layout:t,layoutId:n}){return nY.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!n$[e]||"opacity"===e)}let nX=e=>!!(null==e?void 0:e.getVelocity),nJ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nQ=(e,t)=>nK.indexOf(e)-nK.indexOf(t);function n0(e){return e.startsWith("--")}let n1=(e,t)=>t&&"number"==typeof e?t.transform(e):e,n2=(e,t)=>n=>Math.max(Math.min(n,t),e),n4=e=>e%1?Number(e.toFixed(5)):e,n3=/(-)?([\d]*\.?[\d])+/g,n5=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,n6=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function n8(e){return"string"==typeof e}let n7=e=>({test:t=>n8(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),n9=n7("deg"),re=n7("%"),rt=n7("px"),rn=n7("vh"),rr=n7("vw"),ri=Object.assign(Object.assign({},re),{parse:e=>re.parse(e)/100,transform:e=>re.transform(100*e)}),ro={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ra=Object.assign(Object.assign({},ro),{transform:n2(0,1)}),rs=Object.assign(Object.assign({},ro),{default:1}),rl={...ro,transform:Math.round},ru={borderWidth:rt,borderTopWidth:rt,borderRightWidth:rt,borderBottomWidth:rt,borderLeftWidth:rt,borderRadius:rt,radius:rt,borderTopLeftRadius:rt,borderTopRightRadius:rt,borderBottomRightRadius:rt,borderBottomLeftRadius:rt,width:rt,maxWidth:rt,height:rt,maxHeight:rt,size:rt,top:rt,right:rt,bottom:rt,left:rt,padding:rt,paddingTop:rt,paddingRight:rt,paddingBottom:rt,paddingLeft:rt,margin:rt,marginTop:rt,marginRight:rt,marginBottom:rt,marginLeft:rt,rotate:n9,rotateX:n9,rotateY:n9,rotateZ:n9,scale:rs,scaleX:rs,scaleY:rs,scaleZ:rs,skew:n9,skewX:n9,skewY:n9,distance:rt,translateX:rt,translateY:rt,translateZ:rt,x:rt,y:rt,z:rt,perspective:rt,transformPerspective:rt,opacity:ra,originX:ri,originY:ri,originZ:rt,zIndex:rl,fillOpacity:ra,strokeOpacity:ra,numOctaves:rl};function rc(e,t,n,r){let{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(n0(e)){o[e]=n;continue}let r=ru[e],f=n1(n,r);if(nY.has(e)){if(u=!0,a[e]=f,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=f):i[e]=f}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";for(let n of(t.sort(nQ),t))a+=`${nJ[n]||n}(${e[n]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}(e,n,d,r):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=l;i.transformOrigin=`${e} ${t} ${n}`}}let rd=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function rf(e,t,n){for(let r in t)nX(t[r])||nG(r,n)||(e[r]=t[r])}function rh(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return rf(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,x.useMemo)(()=>{let r=rd();return rc(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),r.style=i,r}let rp=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function rm(e){return rp.has(e)}let rv=e=>!rm(e);try{(Em=require("@emotion/is-prop-valid").default)&&(rv=e=>e.startsWith("on")?!rm(e):Em(e))}catch(e){}function rg(e,t,n){return"string"==typeof e?e:rt.transform(t+n*e)}let ry={offset:"stroke-dashoffset",array:"stroke-dasharray"},rx={offset:"strokeDashoffset",array:"strokeDasharray"};function rb(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c){rc(e,l,u,c),e.attrs=e.style,e.style={};let{attrs:d,style:f,dimensions:h}=e;d.transform&&(h&&(f.transform=d.transform),delete d.transform),h&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){let r=rg(t,e.x,e.width),i=rg(n,e.y,e.height);return`${r} ${i}`}(h,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==o&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?ry:rx;e[o.offset]=rt.transform(-r);let a=rt.transform(t),s=rt.transform(n);e[o.array]=`${a} ${s}`}(d,o,a,s,!1)}let rw=()=>({...rd(),attrs:{}});function rj(e,t){let n=(0,x.useMemo)(()=>{let n=rw();return rb(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rf(t,e.style,e),n.style={...t,...n.style}}return n}let rE=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rk(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let rS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function r_(e,t,n,r){for(let n in rk(e,t,void 0,r),t.attrs)e.setAttribute(rS.has(n)?n:rE(n),t.attrs[n])}function rC(e){let{style:t}=e,n={};for(let r in t)(nX(t[r])||nG(r,e))&&(n[r]=t[r]);return n}function rO(e){let t=rC(e);for(let n in e)if(nX(e[n])){let r="x"===n||"y"===n?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function rM(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}let rT=e=>Array.isArray(e),rA=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),rP=e=>rT(e)?e[e.length-1]||0:e;function rN(e){let t=nX(e)?e.get():e;return rA(t)?t.toValue():t}let rR=e=>(t,n)=>{let r=(0,x.useContext)(nM),i=(0,x.useContext)(nv),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let a={latestValues:function(e,t,n,r){let i={},o=r(e);for(let e in o)i[e]=rN(o[e]);let{initial:a,animate:s}=e,l=nD(e),u=nL(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!nN(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let n=rM(e,t);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]})}return i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():ng(o)},rD={useVisualState:rR({scrapeMotionValuesFromProps:rO,createRenderState:rw,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}rb(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),r_(t,n)}})},rL={useVisualState:rR({scrapeMotionValuesFromProps:rC,createRenderState:rd})};function rF(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rz(e,t,n,r){(0,x.useEffect)(()=>{let i=e.current;if(n&&i)return rF(i,t,n,r)},[e,t,n,r])}function rV(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function rI(e){let t=!!e.touches;return t}(Ev=Ew||(Ew={})).Animate="animate",Ev.Hover="whileHover",Ev.Tap="whileTap",Ev.Drag="whileDrag",Ev.Focus="whileFocus",Ev.InView="whileInView",Ev.Exit="exit";let rZ={pageX:0,pageY:0};function rB(e,t="page"){return{point:rI(e)?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0],r=n||rZ;return{x:r[t+"X"],y:r[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let rH=(e,t=!1)=>{let n=t=>e(t,rB(t));return t?e=>{let t=e instanceof MouseEvent,r=!t||t&&0===e.button;r&&n(e)}:n},rU=()=>nh&&null===window.onpointerdown,rW=()=>nh&&null===window.ontouchstart,rq=()=>nh&&null===window.onmousedown,r$={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},rK={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function rY(e){if(rU());else if(rW())return rK[e];else if(rq())return r$[e];return e}function rG(e,t,n,r){return rF(e,rY(t),rH(n,"pointerdown"===t),r)}function rX(e,t,n,r){return rz(e,rY(t),n&&rH(n,"pointerdown"===t),r)}function rJ(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let rQ=rJ("dragHorizontal"),r0=rJ("dragVertical");function r1(e){let t=!1;if("y"===e)t=r0();else if("x"===e)t=rQ();else{let e=rQ(),n=r0();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function r2(){let e=r1(!0);return!e||(e(),!1)}function r4(e,t,n){return(r,i)=>{!(!rV(r)||r2())&&(e.animationState&&e.animationState.setActive(Ew.Hover,t),n&&n(r,i))}}let r3=(e,t)=>!!t&&(e===t||r3(e,t.parentElement)),r5=(e,t)=>n=>t(e(n)),r6=(...e)=>e.reduce(r5),r8=new WeakMap,r7=new WeakMap,r9=e=>{let t=r8.get(e.target);t&&t(e)},ie=e=>{e.forEach(r9)},it={some:0,all:1};function ir(e,t,n,{root:r,margin:i,amount:o="some",once:a}){(0,x.useEffect)(()=>{if(!e||!n.current)return;let s={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof o?o:it[o]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;r7.has(n)||r7.set(n,{});let r=r7.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ie,{root:e,...t})),r[i]}(t);return r8.set(e,n),r.observe(e),()=>{r8.delete(e),r.unobserve(e)}}(n.current,s,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,a&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(Ew.InView,r);let i=n.getProps(),o=r?i.onViewportEnter:i.onViewportLeave;o&&o(e)})},[e,r,i,o])}function ii(e,t,n,{fallback:r=!0}){(0,x.useEffect)(()=>{e&&r&&("production"!==t6&&nS(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(Ew.InView,!0)}))},[e])}let io=e=>t=>(e(t),null),ia={inView:io(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let o=(0,x.useRef)({hasEnteredView:!1,isInView:!1}),a=!!(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1);let s="undefined"==typeof IntersectionObserver?ii:ir;s(a,o.current,e,i)}),tap:io(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let o=e||t||n||r,a=(0,x.useRef)(!1),s=(0,x.useRef)(null),l={passive:!(t||e||n||h)};function u(){s.current&&s.current(),s.current=null}function c(){return u(),a.current=!1,i.animationState&&i.animationState.setActive(Ew.Tap,!1),!r2()}function d(t,r){c()&&(r3(i.current,t.target)?e&&e(t,r):n&&n(t,r))}function f(e,t){c()&&n&&n(e,t)}function h(e,n){u(),!a.current&&(a.current=!0,s.current=r6(rG(window,"pointerup",d,l),rG(window,"pointercancel",f,l)),i.animationState&&i.animationState.setActive(Ew.Tap,!0),t&&t(e,n))}rX(i,"pointerdown",o?h:void 0,l),nE(u)}),focus:io(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;rz(t,"focus",e?()=>{n&&n.setActive(Ew.Focus,!0)}:void 0),rz(t,"blur",e?()=>{n&&n.setActive(Ew.Focus,!1)}:void 0)}),hover:io(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){rX(r,"pointerenter",e||n?r4(r,!0,e):void 0,{passive:!e}),rX(r,"pointerleave",t||n?r4(r,!1,t):void 0,{passive:!t})})};function is(){let e=(0,x.useContext)(nv);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,x.useId)();return(0,x.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function il(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var ic=function(){},id=function(){};let ih=(e,t,n)=>Math.min(Math.max(n,e),t);function ip(e,t){return e*Math.sqrt(1-t*t)}let im=["duration","bounce"],iv=["stiffness","damping","mass"];function ig(e,t){return t.some(t=>void 0!==e[t])}function iy(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=iu(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!ig(e,iv)&&ig(e,im)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;ic(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=ih(.05,1,a),e=ih(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e,o=ip(t,a),s=Math.exp(-i);return .001-(r-n)/o*s},o=t=>{let r=t*a,o=r*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=ip(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*n+n-s)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return -.001+r*i},o=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,s);if(e*=1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),h=ix,p=ix;function m(){let e=c?-(c/1e3):0,r=n-t,o=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===i&&(i=Math.min(Math.abs(n-t)/100,.4)),o<1){let t=ip(a,o);h=i=>{let s=Math.exp(-o*a*i);return n-s*((e+o*a*r)/t*Math.sin(t*i)+r*Math.cos(t*i))},p=n=>{let i=Math.exp(-o*a*n);return o*a*i*(Math.sin(t*n)*(e+o*a*r)/t+r*Math.cos(t*n))-i*(Math.cos(t*n)*(e+o*a*r)-t*r*Math.sin(t*n))}}else if(1===o)h=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{let t=a*Math.sqrt(o*o-1);h=i=>{let s=Math.exp(-o*a*i),l=Math.min(t*i,300);return n-s*((e+o*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return m(),{next:e=>{let t=h(e);if(f)a.done=e>=d;else{let o=1e3*p(e),s=Math.abs(o)<=r,l=Math.abs(n-t)<=i;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],m()}}}iy.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let ix=e=>0,ib=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},iw=(e,t,n)=>-n*e+n*t+e,ij=(e,t)=>n=>!!(n8(n)&&n6.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),iE=(e,t,n)=>r=>{if(!n8(r))return r;let[i,o,a,s]=r.match(n3);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},ik=n2(0,255),iS=Object.assign(Object.assign({},ro),{transform:e=>Math.round(ik(e))}),i_={test:ij("rgb","red"),parse:iE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+iS.transform(e)+", "+iS.transform(t)+", "+iS.transform(n)+", "+n4(ra.transform(r))+")"},iC={test:ij("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:i_.transform},iO={test:ij("hsl","hue"),parse:iE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+re.transform(n4(t))+", "+re.transform(n4(n))+", "+n4(ra.transform(r))+")"};function iM(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iT({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=iM(s,r,e+1/3),o=iM(s,r,e),a=iM(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}let iA=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},iP=[iC,i_,iO],iN=e=>iP.find(t=>t.test(e)),iR=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,iD=(e,t)=>{let n=iN(e),r=iN(t);id(!!n,iR(e)),id(!!r,iR(t));let i=n.parse(e),o=r.parse(t);n===iO&&(i=iT(i),n=i_),r===iO&&(o=iT(o),r=i_);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=iA(i[t],o[t],e));return a.alpha=iw(i.alpha,o.alpha,e),n.transform(a)}},iL={test:e=>i_.test(e)||iC.test(e)||iO.test(e),parse:e=>i_.test(e)?i_.parse(e):iO.test(e)?iO.parse(e):iC.parse(e),transform:e=>n8(e)?e:e.hasOwnProperty("red")?i_.transform(e):iO.transform(e)},iF="${c}",iz="${n}";function iV(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=e.match(n5);r&&(n=r.length,e=e.replace(n5,iF),t.push(...r.map(iL.parse)));let i=e.match(n3);return i&&(e=e.replace(n3,iz),t.push(...i.map(ro.parse))),{values:t,numColors:n,tokenised:e}}function iI(e){return iV(e).values}function iZ(e){let{values:t,numColors:n,tokenised:r}=iV(e),i=t.length;return e=>{let t=r;for(let r=0;r"number"==typeof e?0:e,iH={test:function(e){var t,n,r,i;return isNaN(e)&&n8(e)&&(null!==(n=null===(t=e.match(n3))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(i=null===(r=e.match(n5))||void 0===r?void 0:r.length)&&void 0!==i?i:0)>0},parse:iI,createTransformer:iZ,getAnimatableNone:function(e){let t=iI(e),n=iZ(e);return n(t.map(iB))}},iU=e=>"number"==typeof e;function iW(e,t){return iU(e)?n=>iw(e,t,n):iL.test(e)?iD(e,t):iY(e,t)}let iq=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>iW(e,t[n]));return e=>{for(let t=0;t{let n=Object.assign(Object.assign({},e),t),r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=iW(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}};function iK(e){let t=iH.parse(e),n=t.length,r=0,i=0,o=0;for(let e=0;e{let n=iH.createTransformer(t),r=iK(e),i=iK(t),o=r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers;return o?r6(iq(r.parsed,i.parsed),n):(ic(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},iG=(e,t)=>n=>iw(e,t,n);function iX(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;id(o===t.length,"Both input and output ranges must be the same length"),id(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,n){var r;let i=[],o=n||("number"==typeof(r=e[0])?iG:"string"==typeof r?iL.test(r)?iD:iY:Array.isArray(r)?iq:"object"==typeof r?i$:void 0),a=e.length-1;for(let n=0;nn(ib(e,t,r))}(e,a):function(e,t){let n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let t=1;for(;ti)&&t!==r;t++);o=t-1}let s=ib(e[o],e[o+1],i);return t[o](s)}}(e,a);return n?t=>s(ih(e[0],e[o-1],t)):s}let iJ=e=>t=>1-e(1-t),iQ=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,i0=e=>t=>t*t*((e+1)*t-e),i1=4/11,i2=8/11,i4=e=>e,i3=e=>Math.pow(e,2),i5=iJ(i3),i6=iQ(i3),i8=e=>1-Math.sin(Math.acos(e)),i7=iJ(i8),i9=iQ(i7),oe=i0(1.525),ot=iJ(oe),on=iQ(oe),or=(e=>{let t=i0(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),oi=4356/361,oo=35442/1805,oa=16061/1805,os=e=>{if(1===e||0===e)return e;let t=e*e;return e0!==n?n/(t-1):0)}(a)).map(e=>e*i);function l(){return iX(s,a,{ease:Array.isArray(n)?n:a.map(()=>n||i6).splice(0,a.length-1)})}let u=l();return{next:e=>(o.value=u(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),u=l()}}}let oc={keyframes:ou,spring:iy,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=n*e,l=t+s,u=void 0===o?l:o(l);return u!==l&&(s=u-t),{next:e=>{let t=-s*Math.exp(-e/r);return a.done=!(t>i||t<-i),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}};function od(e,t,n=0){return e-t-n}let of=e=>{let t=({delta:t})=>e(t);return{start:()=>na.update(t,!0),stop:()=>ns.update(t)}};function oh(e){let t,n,r;var i,{from:o,autoplay:a=!0,driver:s=of,elapsed:l=0,repeat:u=0,repeatType:c="loop",repeatDelay:d=0,onPlay:f,onStop:h,onComplete:p,onRepeat:m,onUpdate:v}=e,g=iu(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,x=0,b=g.duration,w=!1,j=!0,E=function(e){if(Array.isArray(e.to))return ou;if(oc[e.type])return oc[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return iy;return ou}(g);(null===(i=E.needsInterpolation)||void 0===i?void 0:i.call(E,o,y))&&(r=iX([0,100],[o,y],{clamp:!1}),o=0,y=100);let k=E(Object.assign(Object.assign({},g),{from:o,to:y}));return a&&(null==f||f(),(t=s(function(e){if(j||(e=-e),l+=e,!w){let e=k.next(Math.max(0,l));n=e.value,r&&(n=r(n)),w=j?e.done:l<=0}if(null==v||v(n),w){if(0===x&&(null!=b||(b=l)),x=o+d:i<=-d)&&(x++,"reverse"===c?l=function(e,t,n=0,r=!0){return r?od(t+-e,t,n):t-(e-t)+n}(l,b,d,j=x%2==0):(l=od(l,b,d),"mirror"===c&&k.flipTarget()),w=!1,m&&m())}else t.stop(),p&&p()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}let op=e=>1e3*e,om=(e,t)=>1-3*t+3*e,ov=(e,t)=>3*t-6*e,og=e=>3*e,oy=(e,t,n)=>((om(t,n)*e+ov(t,n))*e+og(t))*e,ox=(e,t,n)=>3*om(t,n)*e*e+2*ov(t,n)*e+og(t),ob={linear:i4,easeIn:i3,easeInOut:i6,easeOut:i5,circIn:i8,circInOut:i9,circOut:i7,backIn:oe,backInOut:on,backOut:ot,anticipate:or,bounceIn:ol,bounceInOut:e=>e<.5?.5*(1-os(1-2*e)):.5*os(2*e-1)+.5,bounceOut:os},ow=e=>{if(Array.isArray(e)){id(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return function(e,t,n,r){if(e===t&&n===r)return i4;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=oy(.1*t,e,n);return o=>0===o||1===o?o:oy(function(t){let r=0,o=1;for(;10!==o&&i[o]<=t;++o)r+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=r+.1*a,l=ox(s,e,n);return l>=.001?function(e,t,n,r){for(let i=0;i<8;++i){let i=ox(t,n,r);if(0===i)break;let o=oy(t,n,r)-e;t-=o/i}return t}(t,s,e,n):0===l?s:function(e,t,n,r,i){let o,a;let s=0;do(o=oy(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,r,r+.1,e,n)}(o),t,r)}(t,n,r,i)}return"string"==typeof e?(id(void 0!==ob[e],`Invalid easing type '${e}'`),ob[e]):e},oj=e=>Array.isArray(e)&&"number"!=typeof e[0],oE=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&iH.test(t)&&!t.startsWith("url(")),ok=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),oS=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),o_=()=>({type:"keyframes",ease:"linear",duration:.3}),oC=e=>({type:"keyframes",duration:.8,values:e}),oO={x:ok,y:ok,z:ok,rotate:ok,rotateX:ok,rotateY:ok,rotateZ:ok,scaleX:oS,scaleY:oS,scale:oS,opacity:o_,backgroundColor:o_,color:o_,default:oS},oM=(e,t)=>({to:t,...(rT(t)?oC:oO[e]||oO.default)(t)}),oT=new Set(["brightness","contrast","saturate","opacity"]);function oA(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(n3)||[];if(!r)return e;let i=n.replace(r,""),o=oT.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let oP=/([a-z-]*)\(.*?\)/g,oN=Object.assign(Object.assign({},iH),{getAnimatableNone:e=>{let t=e.match(oP);return t?t.map(oA).join(" "):e}}),oR={...ru,color:iL,backgroundColor:iL,outlineColor:iL,fill:iL,stroke:iL,borderColor:iL,borderTopColor:iL,borderRightColor:iL,borderBottomColor:iL,borderLeftColor:iL,filter:oN,WebkitFilter:oN},oD=e=>oR[e];function oL(e,t){var n;let r=oD(e);return r!==oN&&(r=iH),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}let oF={current:!1};function oz(e,t){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(ns.read(r),e(o-t))};return na.read(r,!0),()=>ns.read(r)}let oV=!1;function oI(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function oZ(e){return"number"==typeof e?0:oL("",e)}function oB(e,t){return e[t]||e.default||e}function oH(e,t,n,r={}){return oF.current&&(r={type:!1}),t.start(i=>{let o,a;let s=function(e,t,n,r,i){let o=oB(r,e)||{},a=void 0!==o.from?o.from:t.get(),s=oE(e,n);"none"===a&&s&&"string"==typeof n?a=oL(e,n):oI(a)&&"string"==typeof n?a=oZ(n):!Array.isArray(n)&&oI(n)&&"string"==typeof a&&(n=oZ(a));let l=oE(e,a);return ic(l===s,`You are trying to animate ${e} from "${a}" to "${n}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${n} via the \`style\` property.`),l&&s&&!1!==o.type?function(){var r;let s={from:a,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:e=>t.set(e)};return"inertia"===o.type||"decay"===o.type?function({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:h}){let p;function m(e){return void 0!==n&&er}function v(e){return void 0===n?r:void 0===r?n:Math.abs(n-e){var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:h}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(m(e))y({from:e,velocity:t,to:v(e)});else{let r,a,s=i*t+e;void 0!==u&&(s=u(s));let c=v(s),d=c===n?-1:1;g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:m(s)?e=>{var n;r=a,a=e,t=(n=nf().delta)?(e-r)*(1e3/n):0,(1===d&&e>c||-1===d&&enull==p?void 0:p.stop()}}({...s,...o}):oh({...(r=o,Array.isArray(s.to)&&void 0===r.duration&&(r.duration=.8),Array.isArray(s.to)&&null===s.to[0]&&(s.to=[...s.to],s.to[0]=s.from),!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(r)&&(r={...r,...oM(e,s.to)}),{...s,...function({ease:e,times:t,yoyo:n,flip:r,loop:i,...o}){let a={...o};return t&&(a.offset=t),o.duration&&(a.duration=op(o.duration)),o.repeatDelay&&(a.repeatDelay=op(o.repeatDelay)),e&&(a.ease=oj(e)?e.map(ow):ow(e)),"tween"===o.type&&(a.type="keyframes"),(n||i||r)&&(ic(!oV,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),oV=!0,n?a.repeatType="reverse":i?a.repeatType="loop":r&&(a.repeatType="mirror"),a.repeat=i||n||r||o.repeat),"spring"!==o.type&&(a.type="keyframes"),a}(r)}),onUpdate:e=>{s.onUpdate(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s.onComplete(),o.onComplete&&o.onComplete()}})}:function(){let e=rP(n);return t.set(e),i(),o.onUpdate&&o.onUpdate(e),o.onComplete&&o.onComplete(),{stop:()=>{}}}}(e,t,n,r,i),l=function(e,t){var n,r;let i=oB(e,t)||{};return null!==(r=null!==(n=i.delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=()=>o=s();return l?a=oz(u,op(l)):u(),()=>{a&&a(),o&&o.stop()}})}let oU=e=>/^\-?\d*\.?\d+$/.test(e),oW=e=>/^0[^.\s]+$/.test(e);function oq(e,t){-1===e.indexOf(t)&&e.push(t)}function o$(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class oK{constructor(){this.subscriptions=[]}add(e){return oq(this.subscriptions,e),()=>o$(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i!isNaN(parseFloat(e));class oG{constructor(e){this.version="7.6.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new oK,this.velocityUpdateSubscribers=new oK,this.renderSubscribers=new oK,this.canTrackVelocity=!1,this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=nf();this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,na.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),t&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>na.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=oY(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(e){return e(this.get()),this.renderSubscribers.add(e)}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?e*(1e3/t):0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function oX(e){return new oG(e)}let oJ=e=>t=>t.test(e),oQ=[ro,rt,re,n9,rr,rn,{test:e=>"auto"===e,parse:e=>e}],o0=e=>oQ.find(oJ(e)),o1=[...oQ,iL,iH],o2=e=>o1.find(oJ(e));function o4(e,t,n){let r=e.getProps();return rM(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}function o3(e){return!!(nX(e)&&e.add)}function o5(e,t,n={}){var r;let i=o4(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>o6(e,i,n):()=>Promise.resolve(),s=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(o8).forEach((e,r)=>{a.push(o5(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function o6(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(a=r);let c=[],d=i&&(null===(o=e.animationState)||void 0===o?void 0:o.getState()[i]);for(let t in l){let r=e.getValue(t),i=l[t];if(!r||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let o={delay:n,...a};e.shouldReduceMotion&&nY.has(t)&&(o={...o,type:!1,delay:0});let s=oH(t,r,i,o);o3(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=o4(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=rP(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oX(n))}}(e,s)})}function o8(e,t){return e.sortNodePosition(t)}let o7=[Ew.Animate,Ew.InView,Ew.Focus,Ew.Hover,Ew.Tap,Ew.Drag,Ew.Exit],o9=[...o7].reverse(),ae=o7.length;function at(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let an={animation:io(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){let i=t.map(t=>o5(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=o5(e,t,n);else{let i="function"==typeof t?o4(e,t,n.custom):t;r=o6(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[Ew.Animate]:at(!0),[Ew.InView]:at(),[Ew.Hover]:at(),[Ew.Tap]:at(),[Ew.Drag]:at(),[Ew.Focus]:at(),[Ew.Exit]:at()},r=!0,i=(t,n)=>{let r=o4(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function o(o,a){var s,l;let u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,h={},p=1/0;for(let t=0;tp&&y,E=Array.isArray(g)?g:[g],k=E.reduce(i,{});!1===x&&(k={});let{prevResolvedValues:S={}}=v,_={...S,...k},C=e=>{j=!0,f.delete(e),v.needsAnimating[e]=!0};for(let e in _){let t=k[e],n=S[e];h.hasOwnProperty(e)||(t!==n?rT(t)&&rT(n)?!il(t,n)||w?C(e):v.protectedKeys[e]=!0:void 0!==t?C(e):f.add(e):void 0!==t&&f.has(e)?C(e):v.protectedKeys[e]=!0)}v.prevProp=g,v.prevResolvedValues=k,v.isActive&&(h={...h,...k}),r&&e.blockInitialAnimation&&(j=!1),j&&!b&&d.push(...E.map(e=>({animation:e,options:{type:m,...o}})))}if(f.size){let t={};f.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),d.push({animation:t})}let m=!!d.length;return r&&!1===u.initial&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=o(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),nN(t)&&(0,x.useEffect)(()=>t.subscribe(e),[t])}),exit:io(e=>{let{custom:t,visualElement:n}=e,[r,i]=is(),o=(0,x.useContext)(nv);(0,x.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(Ew.Exit,!r,{custom:o&&o.custom||t});e&&!r&&e.then(i)},[r])})},ar=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),ai=e=>ar(e)&&e.hasOwnProperty("z"),ao=(e,t)=>Math.abs(e-t);function aa(e,t){if(iU(e)&&iU(t))return ao(e,t);if(ar(e)&&ar(t)){let n=ao(e.x,t.x),r=ao(e.y,t.y),i=ai(e)&&ai(t)?ao(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}class as{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=ac(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=aa(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nf();this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=al(t,this.transformPagePoint),rV(e)&&0===e.buttons){this.handlePointerUp(e,t);return}na.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=ac(al(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},rI(e)&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=rB(e),i=al(r,this.transformPagePoint),{point:o}=i,{timestamp:a}=nf();this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,ac(i,this.history)),this.removeListeners=r6(rG(window,"pointermove",this.handlePointerMove),rG(window,"pointerup",this.handlePointerUp),rG(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ns.update(this.updatePoint)}}function al(e,t){return t?{point:t(e.point)}:e}function au(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ac({point:e},t){return{point:e,delta:au(e,ad(t)),offset:au(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=ad(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>op(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function ad(e){return e[e.length-1]}function af(e){return e.max-e.min}function ah(e,t=0,n=.01){return aa(e,t)({translate:0,scale:1,origin:0,originPoint:0}),ak=()=>({x:aE(),y:aE()}),aS=()=>({min:0,max:0}),a_=()=>({x:aS(),y:aS()});function aC(e){return[e("x"),e("y")]}function aO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function aM(e){return void 0===e||1===e}function aT({scale:e,scaleX:t,scaleY:n}){return!aM(e)||!aM(t)||!aM(n)}function aA(e){return aT(e)||aP(e)||e.z||e.rotate||e.rotateX||e.rotateY}function aP(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function aN(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function aR(e,t=0,n=1,r,i){e.min=aN(e.min,t,n,r,i),e.max=aN(e.max,t,n,r,i)}function aD(e,{x:t,y:n}){aR(e.x,t.translate,t.scale,t.originPoint),aR(e.y,n.translate,n.scale,n.originPoint)}function aL(e,t){e.min=e.min+t,e.max=e.max+t}function aF(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=iw(e.min,e.max,o);aR(e,t[n],t[r],a,t.scale)}let az=["x","scaleX","originX"],aV=["y","scaleY","originY"];function aI(e,t){aF(e.x,t,az),aF(e.y,t,aV)}function aZ(e,t){return aO(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let aB=new WeakMap;class aH{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=a_(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){!1!==this.visualElement.isPresent&&(this.panSession=new as(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(rB(e,"page").point)},onStart:(e,t)=>{var n;let{drag:r,dragPropagation:i,onDragStart:o}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=r1(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),aC(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(re.test(r)){let i=null===(n=null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(i){let e=af(i);r=e*(parseFloat(r)/100)}}this.originPoint[e]=r}),null==o||o(e,t),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(Ew.Drag,!0))},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==o||o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();null==i||i(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Ew.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!aU(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&en&&(e=r?iw(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&nA(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:ax(e.x,n,i),y:ax(e.y,t,r)}}(n.actual,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:aw(e,"left","right"),y:aw(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&aC(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.actual[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nA(t))return!1;let r=t.current;id(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=aZ(e,n),{scroll:i}=t;return i&&(aL(r.x,i.x),aL(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:ab((e=i.layout.actual).x,o.x),y:ab(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=aO(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=aC(a=>{var l;if(!aU(a,t,this.currentDirection))return;let u=null!==(l=null==s?void 0:s[a])&&void 0!==l?l:{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,c)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return oH(e,n,0,t)}stopAnimation(){aC(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t,n;let r="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)}snapToCursor(e){aC(t=>{let{drag:n}=this.getProps();if(!aU(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.actual[t];i.set(e[t]-iw(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!nA(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};aC(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=af(e),i=af(t);return i>r?n=ib(t.min,t.max-r,e.min):r>i&&(n=ib(e.min,e.max-i,t.min)),ih(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null===(e=r.root)||void 0===e||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),aC(e=>{if(!aU(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(iw(r,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;aB.set(this.visualElement,this);let t=this.visualElement.current,n=rG(t,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();nA(e)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),r();let a=rF(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(aC(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),null==s||s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function aU(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let aW={pan:io(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=e||t||n||r,a=(0,x.useRef)(null),{transformPagePoint:s}=(0,x.useContext)(nO),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{a.current=null,n&&n(e,t)}};(0,x.useEffect)(()=>{null!==a.current&&a.current.updateHandlers(l)}),rX(i,"pointerdown",o&&function(e){a.current=new as(e,l,{transformPagePoint:s})}),nE(()=>a.current&&a.current.end())}),drag:io(function(e){let{dragControls:t,visualElement:n}=e,r=ng(()=>new aH(n));(0,x.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,x.useEffect)(()=>r.addListeners(),[r])})};function aq(e){return"string"==typeof e&&e.startsWith("var(--")}let a$=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function aK(e,t,n=1){id(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=a$.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():aq(i)?aK(i,t,n+1):i}let aY=new Set(["width","height","top","left","right","bottom","x","y"]),aG=e=>aY.has(e),aX=e=>Object.keys(e).some(aG),aJ=(e,t)=>{e.set(t,!1),e.set(t)},aQ=e=>e===ro||e===rt;(Eg=Ej||(Ej={})).width="width",Eg.height="height",Eg.left="left",Eg.right="right",Eg.top="top",Eg.bottom="bottom";let a0=(e,t)=>parseFloat(e.split(", ")[t]),a1=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return a0(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?a0(t[1],e):0}},a2=new Set(["x","y","z"]),a4=nK.filter(e=>!a2.has(e)),a3={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:a1(4,13),y:a1(5,14)},a5=(e,t,n)=>{let r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{s[e]=a3[e](r,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{let r=t.getValue(n);aJ(r,s[n]),e[n]=a3[n](l,o)}),e},a6=(e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(aG),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=o0(c),f=t[i];if(rT(f)){let e=f.length,t=null===f[0]?1:0;d=o0(c=f[t]);for(let n=t;n{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],aJ(u,f))}}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=a5(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),nh&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},a8=(e,t,n,r)=>{var i,o;let a=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!aq(t))return;let n=aK(t,r);n&&e.set(n)}),t){let e=t[i];if(!aq(e))continue;let o=aK(e,r);o&&(t[i]=o,n&&void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=a.target,r=a.transitionEnd,i=t,o=r,aX(i)?a6(e,i,n,o):{target:i,transitionEnd:o}},a7={current:null},a9={current:!1},se=Object.keys(nV),st=se.length,sn=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sr{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>na.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=nD(t),this.isVariantNode=nL(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==o[e]&&nX(t)&&(t.set(o[e],!1),o3(s)&&s.add(e))}if(t.values)for(let e in t.values){let n=t.values[e];void 0!==o[e]&&nX(n)&&n.set(o[e])}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null===(t=this.parent)||void 0===t?void 0:t.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),a9.current||function(){if(a9.current=!0,nh){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>a7.current=e.matches;e.addListener(t),t()}else a7.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||a7.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;for(let r in null===(e=this.projection)||void 0===e||e.unmount(),ns.update(this.notifyUpdate),ns.render(this.render),this.valueSubscriptions.forEach(e=>e()),null===(t=this.removeFromVariantTree)||void 0===t||t.call(this),null===(n=this.parent)||void 0===n||n.children.delete(this),this.events)this.events[r].clear();this.current=null}bindToMotionValue(e,t){let n=t.onChange(t=>{this.latestValues[e]=t,this.props.onUpdate&&na.update(this.notifyUpdate,!1,!0)}),r=t.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r,i,o){let a=[];"production"!==t6&&n&&t&&id(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;tthis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):a_()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;tn.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null===(t=this.valueSubscriptions.get(e))||void 0===t||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=oX(t),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=rM(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||nX(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new oK),this.events[e].add(t)}notify(e,...t){var n;null===(n=this.events[e])||void 0===n||n.notify(...t)}}let si=["initial",...o7],so=si.length;class sa extends sr{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){var r;let i={};for(let o in e){let e=function(e,t){if(!t)return;let n=t[e]||t.default||t;return n.from}(o,t);i[o]=void 0!==e?e:null===(r=n.getValue(o))||void 0===r?void 0:r.get()}return i}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;snq(e)?new sl(t,{enableHardwareAcceleration:!1}):new ss(t,{enableHardwareAcceleration:!0});function sc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let sd={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!rt.test(e))return e;e=parseFloat(e)}let n=sc(e,t.target.x),r=sc(e,t.target.y);return`${n}% ${r}%`}},sf="_$css",sh={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),o=[];i&&(e=e.replace(a$,e=>(o.push(e),sf)));let a=iH.parse(e);if(a.length>5)return r;let s=iH.createTransformer(e),l="number"!=typeof a[0]?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=iw(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(i){let e=0;f=f.replace(sf,()=>{let t=o[e];return e++,t})}return f}};class sp extends x.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(n$,sm),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nI.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||na.postRender(()=>{var e;(null===(e=o.getStack())||void 0===e?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let sm={borderRadius:{...sd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sd,borderTopRightRadius:sd,borderBottomLeftRadius:sd,borderBottomRightRadius:sd,boxShadow:sh},sv=["TopLeft","TopRight","BottomLeft","BottomRight"],sg=sv.length,sy=e=>"string"==typeof e?parseFloat(e):e,sx=e=>"number"==typeof e||rt.test(e);function sb(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}let sw=sE(0,.5,i7),sj=sE(.5,.95,i4);function sE(e,t,n){return r=>rt?1:n(ib(e,t,r))}function sk(e,t){e.min=t.min,e.max=t.max}function sS(e,t){sk(e.x,t.x),sk(e.y,t.y)}function s_(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function sC(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(re.test(t)){t=parseFloat(t);let e=iw(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=iw(o.min,o.max,r);e===o&&(s-=t),e.min=s_(e.min,t,n,s,i),e.max=s_(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let sO=["x","scaleX","originX"],sM=["y","scaleY","originY"];function sT(e,t,n,r){sC(e.x,t,sO,null==n?void 0:n.x,null==r?void 0:r.x),sC(e.y,t,sM,null==n?void 0:n.y,null==r?void 0:r.y)}function sA(e){return 0===e.translate&&1===e.scale}function sP(e){return sA(e.x)&&sA(e.y)}function sN(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function sR(e){return af(e.x)/af(e.y)}class sD{constructor(){this.members=[]}add(e){oq(this.members,e),e.scheduleRender()}remove(e){if(o$(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var n;let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,o;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(o=null===(r=e.resumingFrom)||void 0===r?void 0:(i=r.options).onExitComplete)||void 0===o||o.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sL(e,t,n){let r=e.x.translate/t.x,i=e.y.translate/t.y,o=`translate3d(${r}px, ${i}px, 0) `;if(o+=`scale(${1/t.x}, ${1/t.y}) `,n){let{rotate:e,rotateX:t,rotateY:r}=n;e&&(o+=`rotate(${e}deg) `),t&&(o+=`rotateX(${t}deg) `),r&&(o+=`rotateY(${r}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"==(o+=`scale(${a}, ${s})`)?"none":o}let sF=(e,t)=>e.depth-t.depth;class sz{constructor(){this.children=[],this.isDirty=!1}add(e){oq(this.children,e),this.isDirty=!0}remove(e){o$(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sF),this.isDirty=!1,this.children.forEach(e)}}let sV=["","X","Y","Z"];function sI({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e,n={},r=null==t?void 0:t()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(s$),this.nodes.forEach(sK)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=oz(r,250),nI.hasAnimatedSinceResize&&(nI.hasAnimatedSinceResize=!1,this.nodes.forEach(sq))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var i,o,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!==(o=null!==(i=this.options.transition)&&void 0!==i?i:a.getDefaultTransition())&&void 0!==o?o:s0,{onLayoutAnimationStart:d,onLayoutAnimationComplete:f}=a.getProps(),h=!this.targetLayout||!sN(this.targetLayout,r)||n,p=!t&&n;if((null===(s=this.resumeFrom)||void 0===s?void 0:s.instance)||p||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,p);let t={...oB(c,"layout"),onPlay:d,onComplete:f};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sq(this),this.isLead()&&(null===(u=(l=this.options).onExitComplete)||void 0===u||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,ns.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(sY))}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked()){null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;let e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));s4(t),this.snapshot={measured:e,layout:t,latestValues:{}}}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0),c=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(sQ));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,d;let f=t/1e3;sX(a.x,e.x,f),sX(a.y,e.y,f),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null===(n=this.relativeParent)||void 0===n?void 0:n.layout)&&(ay(s,this.layout.actual,this.relativeParent.layout.actual),r=this.relativeTarget,d=this.relativeTargetOrigin,sJ(r.x,d.x,s.x,f),sJ(r.y,d.y,s.y,f)),l&&(this.animationValues=o,function(e,t,n,r,i,o){var a,s,l,u;i?(e.opacity=iw(0,null!==(a=n.opacity)&&void 0!==a?a:1,sw(r)),e.opacityExit=iw(null!==(s=t.opacity)&&void 0!==s?s:1,0,sj(r))):o&&(e.opacity=iw(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(let i=0;i{nI.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=nX(e)?e:oX(e);return oH("",r,1e3,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:()=>{var t;null===(t=e.onComplete)||void 0===t||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&s3(this.options.animationType,this.layout.actual,r.actual)){n=this.target||a_();let t=af(this.layout.actual.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=af(this.layout.actual.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sS(t,n),aI(t,i),am(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new sD);let o=this.sharedNodes.get(e);o.add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(i=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(r,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,n={};for(let r=0;r{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(sU),this.root.sharedNodes.clear()}}}function sZ(e){e.updateLayout()}function sB(e){var t,n,r;let i=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{actual:t,measured:n}=e.layout,{animationType:r}=e.options;"size"===r?aC(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=af(n);n.min=t[e].min,n.max=n.min+r}):s3(r,i.layout,t)&&aC(e=>{let n=i.isShared?i.measured[e]:i.layout[e],r=af(t[e]);n.max=n.min+r});let o=ak();am(o,t,i.layout);let a=ak();i.isShared?am(a,e.applyTransform(n,!0),i.measured):am(a,t,i.layout);let s=!sP(o),l=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=a_();ay(n,i.layout,e.layout);let o=a_();ay(o,t,r.actual),sN(n,o)||(l=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:s,hasRelativeTargetChanged:l})}else e.isLead()&&(null===(r=(n=e.options).onExitComplete)||void 0===r||r.call(n));e.options.transition=void 0}function sH(e){e.clearSnapshot()}function sU(e){e.clearMeasurements()}function sW(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sq(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function s$(e){e.resolveTargetDelta()}function sK(e){e.calcProjection()}function sY(e){e.resetRotation()}function sG(e){e.removeLeadSnapshot()}function sX(e,t,n){e.translate=iw(t.translate,0,n),e.scale=iw(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sJ(e,t,n,r){e.min=iw(t.min,n.min,r),e.max=iw(t.max,n.max,r)}function sQ(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let s0={duration:.45,ease:[.4,0,.1,1]};function s1(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){n=e.path[t];break}let r=n&&n!==e.root?n.instance:document,i=r.querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function s2(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function s4(e){s2(e.x),s2(e.y)}function s3(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n=.1){return aa(e,t)<=n}(sR(t),sR(n),.2)}let s5=sI({attachResizeListener:(e,t)=>rF(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),s6={current:void 0},s8=sI({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!s6.current){let e=new s5(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),s6.current=e}return s6.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),s7={...an,...ia,...aW,measureLayout:function(e){let[t,n]=is(),r=(0,x.useContext)(nj);return x.createElement(sp,{...e,layoutGroup:r,switchLayoutGroup:(0,x.useContext)(nH),isPresent:t,safeToRemove:n})}},s9=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?nV.projectionNodeConstructor=e[t]:nV[t].Component=e[t]}(e);let a=(0,x.forwardRef)(function(a,s){var l;let u={...(0,x.useContext)(nO),...a,layoutId:function({layoutId:e}){let t=(0,x.useContext)(nj).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:c}=u,d=null,f=function(e){let{initial:t,animate:n}=function(e,t){if(nD(e)){let{initial:t,animate:n}=e;return{initial:!1===t||nP(t)?t:void 0,animate:nP(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,x.useContext)(nM));return(0,x.useMemo)(()=>({initial:t,animate:n}),[nF(t),nF(n)])}(a),h=c?void 0:ng(()=>{if(nI.hasEverUpdated)return nZ++}),p=i(a,c);if(!c&&nh){f.visualElement=function(e,t,n,r){let i=(0,x.useContext)(nM).visualElement,o=(0,x.useContext)(nT),a=(0,x.useContext)(nv),s=(0,x.useContext)(nO).reducedMotion,l=(0,x.useRef)();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return np(()=>{u&&u.render()}),(0,x.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),np(()=>()=>u&&u.notify("Unmount"),[]),u}(o,p,u,t);let r=(0,x.useContext)(nT).strict,i=(0,x.useContext)(nH);f.visualElement&&(d=f.visualElement.loadFeatures(u,r,e,h,n||nV.projectionNodeConstructor,i))}return x.createElement(nB,{visualElement:f.visualElement,props:u},d,x.createElement(nM.Provider,{value:f},r(o,a,h,(l=f.visualElement,(0,x.useCallback)(e=>{e&&p.mount&&p.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):nA(s)&&(s.current=e))},[l])),p,c,f.visualElement)))});return a[nU]=o,a}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r,i){let o=nq(e)?rD:rL;return{...o,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:o},a)=>{let s=nq(t)?rj:rh,l=s(n,o,a),u=function(e,t,n){let r={};for(let i in e)(rv(i)||!0===n&&rm(i)||!t&&!rm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),c={...u,...l,ref:i};return r&&(c["data-projection-id"]=r),(0,x.createElement)(t,c)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,s7,su,s8));function le(e){let{open:t,onOpenChange:n}=e,[r,i]=(0,x.useState)(!1),o=(0,x.useMemo)(()=>n?t:r,[n,r,t]),a=(0,x.useCallback)(e=>{n?n(e):i(e)},[n]);return{open:o,onOpenChange:a}}var lt=n(35957),ln=n.n(lt),lr=n(276),li=n.n(lr);let lo=(0,em.cx)(ln().variable,li().variable),la={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}};function ls(e){let{children:t,content:n,defaultOpen:r,open:i,onOpenChange:o,delayDuration:a=300,disableHoverableContent:s,...l}=e,{open:u,onOpenChange:c}=le({open:i,onOpenChange:o});return(0,y.jsxs)(tJ,{open:u,delayDuration:a,disableHoverableContent:s,defaultOpen:r,onOpenChange:c,children:[(0,y.jsx)(tB,{asChild:!0,children:t}),(0,y.jsx)(nC,{children:n&&u?(0,y.jsx)(tQ,{forceMount:!0,children:(0,y.jsx)(t$,{forceMount:!0,asChild:!0,side:"top",align:"center",sideOffset:l.sideOffset||5,...l,children:(0,y.jsx)(s9.div,{variants:la,initial:"init",animate:"show",exit:"exit",className:(0,em.cx)(lo,"relative","z-50","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"),children:(0,y.jsx)("div",{className:(0,em.cx)("py-1 px-2","max-w-xs","overflow-hidden",t4()),children:(0,y.jsx)(t2,{size:"12",children:n})})})})}):null})]})}let ll=(0,em.j)(["inline-flex","gap-1","appearance-none","shrink-0","items-center","justify-center","select-none","leading-normal","font-sans","cursor-pointer","overflow-hidden","focus:z-10","disabled:cursor-auto","disabled:pointer-events-none","outline-none","focus:ring ring-blue-500 dark:ring-blue-200","transition-colors duration-75"],{variants:{size:{small:["text-xs","px-2","h-7"],medium:["text-base","px-4","h-10"],large:["text-lg","px-4","h-12"],none:[]},state:{waiting:["pointer-events-none"]},disabled:{true:"cursor-auto pointer-events-none"},rounded:{true:"rounded",false:""},variant:{accent:["border","text-white dark:text-white","enabled:bg-green-700 enabled:dark:bg-green-700","enabled:border-green-800/30 enabled:dark:border-green-600/70","enabled:hover:bg-green-800/90 dark:enabled:hover:bg-green-700/90","enabled:hover:border-green-800/50 enabled:hover:dark:border-green-600","disabled:text-white/50 disabled:dark:text-white/50","disabled:bg-green-700/70 disabled:dark:bg-green-600/70","disabled:border-green-600/50 disabled:dark:border-green-500/30","[&[href]]:bg-green-700 [&[href]]:dark:bg-green-700","[&[href]]:border-green-800/30 [&[href]]:dark:border-green-600/70","[&[href]]:hover:bg-green-800/90 dark:[&[href]]:hover:bg-green-700/90","[&[href]]:hover:border-green-800/50 [href]]:hover:dark:border-green-600"],red:["border","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","enabled:hover:bg-red-800/90 dark:enabled:hover:bg-red-700/90","enabled:hover:border-red-800/50 enabled:hover:dark:border-red-600","disabled:bg-red-700/70 disabled:dark:bg-red-600/70","disabled:border-red-600/50 disabled:dark:border-red-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],amber:["border","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","enabled:hover:bg-amber-800/90 dark:enabled:hover:bg-amber-700/90","enabled:hover:border-amber-800/50 enabled:hover:dark:border-amber-600","disabled:bg-amber-700/70 disabled:dark:bg-amber-600/70","disabled:border-amber-600/50 disabled:dark:border-amber-500/30","text-white dark:text-white","disabled:text-white/50 disabled:dark:text-white/50"],gray:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-gray-300","disabled:text-gray-600 disabled:dark:text-graydark-700"],active:["border","bg-gray-200 dark:bg-graydark-400","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-500 dark:border-graydark-500","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],inactive:["border","bg-white dark:bg-graydark-200","enabled:hover:bg-gray-50 dark:enabled:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","border-gray-400/70 dark:border-graydark-400/70","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","enabled:hover:text-gray-1100 enabled:hover:dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],ghost:["appearance-none border-none bg-transparent","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-700"],state:["open:text-gray-1100 open:dark:text-white","hover:text-gray-1000 hover:dark:text-graydark-1000","text-gray-700 dark:text-graydark-800"]},icon:{contrast:"",hover:"[&>svg]:opacity-50 hover:[&>svg]:opacity-100 transition-opacity",subtle:"[&>svg]:opacity-50"},color:{verySubtle:"!text-gray-700 dark:!text-graydark-700",subtle:"!text-gray-1000 dark:!text-graydark-1000",contrast:"!text-gray-1100 dark:!text-white",lo:"!text-white dark:!text-graydark-50",accent:"!text-accent-1100 dark:!text-accentdark-1100",red:"!text-red-700 dark:!text-red-400",green:"!text-emerald-700 dark:!text-emerald-500",amber:"!text-amber-600 dark:!text-amber-500",none:""}},defaultVariants:{variant:"gray",size:"small",rounded:!0,icon:"subtle",color:"none"}}),lu=x.forwardRef((e,t)=>{let{variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,tip:u,tipAlign:c,tipSide:d,className:f,type:h="button",...p}=e;return u?(0,y.jsx)(ls,{content:u,align:c,side:d,children:(0,y.jsx)("button",{ref:t,type:h,disabled:a,className:ll({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})}):(0,y.jsx)("button",{ref:t,disabled:a,type:h,className:ll({variant:n,size:r,state:i,rounded:o,disabled:a,icon:s,color:l,className:f}),...p})});var lc=n(88242);let ld=x.forwardRef((e,t)=>{let{children:n,...r}=e;return(0,y.jsx)(X,{ref:t,...r,..."single"===r.type?{collapsible:!0}:{},children:n})}),lf=x.forwardRef((e,t)=>{let{children:n,...r}=e;return(0,y.jsx)(ed,{children:(0,y.jsx)(eh,{...r,asChild:!0,ref:t,children:(0,y.jsxs)(lu,{variant:"ghost",size:"none",className:"w-full flex gap-2 justify-between",children:[(0,y.jsx)("span",{className:"flex-1 text-left",children:n}),(0,y.jsx)("span",{className:"pr-3",children:(0,y.jsx)(lc.cRw,{})})]})})})}),lh=(0,em.j)([],{variants:{variant:{default:"border-t border-gray-500 dark:border-graydark-500 last-of-type:border-b",ghost:""}},defaultVariants:{variant:"default"}}),lp=x.forwardRef((e,t)=>{let{variant:n,className:r,...i}=e;return(0,y.jsx)(ec,{...i,className:lh({variant:n,className:r}),ref:t})}),lm=ep,lv=(0,em.j)("border border-gray-500 dark:border-graydark-500 bg-gray-100 dark:bg-graydark-100 rounded p-4"),lg=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{...r,className:lv({className:n}),ref:t})});var ly=n(86029);let lx="Avatar",[lb,lw]=(0,j.b)(lx),[lj,lE]=lb(lx),lk=(0,x.forwardRef)((e,t)=>{let{__scopeAvatar:n,...r}=e,[i,o]=(0,x.useState)("idle");return(0,x.createElement)(lj,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:o},(0,x.createElement)(O.WV.span,(0,w.Z)({},r,{ref:t})))}),lS=(0,x.forwardRef)((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...o}=e,a=lE("AvatarImage",n),s=function(e){let[t,n]=(0,x.useState)("idle");return(0,x.useEffect)(()=>{if(!e){n("error");return}let t=!0,r=new window.Image,i=e=>()=>{t&&n(e)};return n("loading"),r.onload=i("loaded"),r.onerror=i("error"),r.src=e,()=>{t=!1}},[e]),t}(r),l=(0,ly.W)(e=>{i(e),a.onImageLoadingStatusChange(e)});return(0,M.b)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,x.createElement)(O.WV.img,(0,w.Z)({},o,{ref:t,src:r})):null}),l_=(0,x.forwardRef)((e,t)=>{let{__scopeAvatar:n,delayMs:r,...i}=e,o=lE("AvatarFallback",n),[a,s]=(0,x.useState)(void 0===r);return(0,x.useEffect)(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),a&&"loaded"!==o.imageLoadingStatus?(0,x.createElement)(O.WV.span,(0,w.Z)({},i,{ref:t})):null}),lC=(0,em.j)(["items-center justify-center align-middle flex flex-shrink-0 relative","overflow-hidden select-none outline-none","font-sans font-medium text-sm","border"],{variants:{size:{1:"w-6 h-6",2:"w-12 h-12",3:"w-16 h-16",4:"w-28 h-28"},variant:{filter:"bg-transparent",hiContrast:["bg-gray-900 dark:bg-white text-white dark:text-gray-1100","border-gray-900 dark:border-white text-white dark:text-gray-1100"],gray:["bg-gray-500 dark:bg-gray-800 text-gray-1100 dark:text-white","border-gray-500 dark:border-gray-800 text-gray-1100 dark:text-white"]},shape:{square:"rounded",circle:"rounded-full"},inactive:{true:"opacity-30"},interactive:{true:"cursor-pointer"}},defaultVariants:{size:"2",variant:"gray",shape:"circle"}}),lO=(0,em.j)("uppercase",{variants:{size:{1:"text-sm",2:"text-base",3:"text-lg",4:"text-lg"}},defaultVariants:{size:"2"}}),lM=x.forwardRef((e,t)=>{let{alt:n,src:r,fallback:i,size:o,variant:a,shape:s,interactive:l,inactive:u,className:c,...d}=e;return(0,y.jsx)("div",{className:(0,em.cx)("relative h-fit w-fit",c),children:(0,y.jsxs)(lk,{...d,ref:t,className:lC({className:c,size:o,variant:a,interactive:l,inactive:u,shape:s}),children:["filter"===a&&(0,y.jsx)("div",{className:"absolute w-full h-full z-10",style:{backgroundColor:"rgba(30, 169, 76, 0.3)"}}),(0,y.jsx)(lS,{alt:n,src:r,className:"flex object-cover h-full align-middle w-full"}),(0,y.jsx)(l_,{className:lO({size:o}),children:i})]})})});(0,em.j)(["items-center appearance-none inline-flex flex-shrink-0 whitespace-nowrap","font-sans font-regular text-sm","justify-center align-middle outline-none p-0 decoration-none select-none","disabled:pointer-events-none","py-0.5 px-2"],{variants:{variant:{active:["border","bg-gray-800 text-gray-900 border-gray-900","dark:bg-transparent dark:text-white dark:border-white/10"],simple:"bg-gray-300 dark:bg-graydark-800 text-gray-900 dark:text-white",green:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],accent:["border","[&>svg]:opacity-50","bg-green-700 dark:bg-green-700","border-green-800/30 dark:border-green-600/70","hover:bg-green-800/90 dark:hover:bg-green-700/90","hover:border-green-800/50 hover:dark:border-green-600","text-white dark:text-white"],red:["border","[&>svg]:opacity-50","bg-red-700 dark:bg-red-700","border-red-800/30 dark:border-red-600/70","hover:bg-red-800/90 dark:hover:bg-red-700/90","hover:border-red-800/50 hover:dark:border-red-600","text-white dark:text-white"],amber:["border","[&>svg]:opacity-50","bg-amber-700 dark:bg-amber-700","border-amber-800/30 dark:border-amber-600/70","hover:bg-amber-800/90 dark:hover:bg-amber-700/90","hover:border-amber-800/50 hover:dark:border-amber-600","text-white dark:text-white"],gray:["border","[&>svg]:opacity-50","bg-white dark:bg-graydark-200","border-gray-400 dark:border-graydark-400","hover:bg-gray-50 dark:hover:bg-graydark-300","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100 dark:text-white"],inactive:["border","[&>svg]:opacity-50","bg-white dark:bg-transparent","border-gray-400 dark:border-graydark-400","hover:border-gray-500 hover:dark:border-graydark-500","text-gray-1100/30 dark:text-white/30","hover:text-gray-1100/50 hover:dark:text-white/50"]},interactive:{true:"cursor-pointer"},rounded:{true:"rounded",false:""}},defaultVariants:{variant:"gray",rounded:!0}});let lT=x.forwardRef((e,t)=>{let{className:n,size:r,color:i,...o}=e;return(0,y.jsx)("pre",{children:(0,y.jsx)("code",{className:(0,em.cx)(t0({font:"mono",size:r,color:i}),"block","w-full","overflow-auto","p-3","bg-white dark:bg-graydark-200","border border-gray-400 dark:border-graydark-400","rounded",n),...o,ref:t})})}),lA=(0,em.j)(["font-mono","whitespace-nowrap","rounded"],{variants:{color:{gray:["bg-gray-200 dark:bg-graydark-200","text-gray-1100 dark:text-graydark-1100"],accent:["bg-accent-200 dark:bg-accentdark-200","text-accent-1100 dark:text-accentdark-1100"]}},defaultVariants:{color:"accent"}}),lP=x.forwardRef((e,t)=>{let{color:n,className:r,...i}=e;return(0,y.jsx)("code",{...i,className:lA({color:n,className:r}),ref:t})}),lN=(0,em.j)(["flex","relative","[&>*]:rounded-none [&>*:last-child]:rounded-r [&>*:first-child]:rounded-l","[&>*]:border-r-0 [&>*]:border-l [&>*:first-child]:border-l [&>*:last-child]:border-r"]),lR=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:lN({className:n}),...r})});(0,em.j)(["select-none appearance-none outline-none overflow-hidden","inline-flex items-center justify-center","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-4 h-4 rounded",medium:"w-6 h-6 rounded"}},defaultVariants:{size:"small"}});let lD=(0,em.j)(["flex-shrink-0 w-full mx-auto"],{variants:{pad:{true:"px-5 md:px-10",false:""},size:{1:"max-w-screen-sm",2:"max-w-screen-md",3:"max-w-[1145px]",4:"max-w-screen-2xl",full:"max-w-none"}},defaultVariants:{pad:!0,size:"3"}}),lL=x.forwardRef((e,t)=>{let{className:n,pad:r,size:i,...o}=e;return(0,y.jsx)("div",{ref:t,...o,className:lD({size:i,pad:r,className:n})})});var lF=n(72331);let lz=(0,x.createContext)(void 0);function lV(e){let t=(0,x.useContext)(lz);return e||t||"ltr"}let lI="ScrollArea",[lZ,lB]=(0,j.b)(lI),[lH,lU]=lZ(lI),lW=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...a}=e,[s,l]=(0,x.useState)(null),[u,c]=(0,x.useState)(null),[d,f]=(0,x.useState)(null),[h,p]=(0,x.useState)(null),[m,v]=(0,x.useState)(null),[g,y]=(0,x.useState)(0),[b,j]=(0,x.useState)(0),[k,S]=(0,x.useState)(!1),[_,C]=(0,x.useState)(!1),M=(0,E.e)(t,e=>l(e)),T=lV(i);return(0,x.createElement)(lH,{scope:n,type:r,dir:T,scrollHideDelay:o,scrollArea:s,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:p,scrollbarXEnabled:k,onScrollbarXEnabledChange:S,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:_,onScrollbarYEnabledChange:C,onCornerWidthChange:y,onCornerHeightChange:j},(0,x.createElement)(O.WV.div,(0,w.Z)({dir:T},a,{ref:M,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})))}),lq=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,children:r,...i}=e,o=lU("ScrollAreaViewport",n),a=(0,x.useRef)(null),s=(0,E.e)(t,a,o.onViewportChange);return(0,x.createElement)(x.Fragment,null,(0,x.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,x.createElement)(O.WV.div,(0,w.Z)({"data-radix-scroll-area-viewport":""},i,{ref:s,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...e.style}}),(0,x.createElement)("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"}},r)))}),l$="ScrollAreaScrollbar",lK=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lU(l$,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:a}=i,s="horizontal"===e.orientation;return(0,x.useEffect)(()=>(s?o(!0):a(!0),()=>{s?o(!1):a(!1)}),[s,o,a]),"hover"===i.type?(0,x.createElement)(lY,(0,w.Z)({},r,{ref:t,forceMount:n})):"scroll"===i.type?(0,x.createElement)(lG,(0,w.Z)({},r,{ref:t,forceMount:n})):"auto"===i.type?(0,x.createElement)(lX,(0,w.Z)({},r,{ref:t,forceMount:n})):"always"===i.type?(0,x.createElement)(lJ,(0,w.Z)({},r,{ref:t})):null}),lY=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=lU(l$,e.__scopeScrollArea),[o,a]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},r=()=>{t=window.setTimeout(()=>a(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[i.scrollArea,i.scrollHideDelay]),(0,x.createElement)(T.z,{present:n||o},(0,x.createElement)(lX,(0,w.Z)({"data-state":o?"visible":"hidden"},r,{ref:t})))}),lG=(0,x.forwardRef)((e,t)=>{var n;let{forceMount:r,...i}=e,o=lU(l$,e.__scopeScrollArea),a="horizontal"===e.orientation,s=ua(()=>u("SCROLL_END"),100),[l,u]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},(0,x.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return(0,x.useEffect)(()=>{if("idle"===l){let e=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,o.scrollHideDelay,u]),(0,x.useEffect)(()=>{let e=o.viewport,t=a?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t],i=n!==r;i&&(u("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[o.viewport,a,u,s]),(0,x.createElement)(T.z,{present:r||"hidden"!==l},(0,x.createElement)(lJ,(0,w.Z)({"data-state":"hidden"===l?"hidden":"visible"},i,{ref:t,onPointerEnter:(0,_.M)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,_.M)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})))}),lX=(0,x.forwardRef)((e,t)=>{let n=lU(l$,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,a]=(0,x.useState)(!1),s="horizontal"===e.orientation,l=ua(()=>{if(n.viewport){let e=n.viewport.offsetWidth{let{orientation:n="vertical",...r}=e,i=lU(l$,e.__scopeScrollArea),o=(0,x.useRef)(null),a=(0,x.useRef)(0),[s,l]=(0,x.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ut(s.viewport,s.content),c={...r,sizes:s,onSizesChange:l,hasThumb:!!(u>0&&u<1),onThumbChange:e=>o.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function d(e,t){return function(e,t,n,r="ltr"){let i=un(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport,u=ui([a,s],"ltr"===r?[0,l]:[-1*l,0]);return u(e)}(e,a.current,s,t)}return"horizontal"===n?(0,x.createElement)(lQ,(0,w.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollLeft,t=ur(e,s,i.dir);o.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}})):"vertical"===n?(0,x.createElement)(l0,(0,w.Z)({},c,{ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){let e=i.viewport.scrollTop,t=ur(e,s);o.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}})):null}),lQ=(0,x.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lU(l$,e.__scopeScrollArea),[a,s]=(0,x.useState)(),l=(0,x.useRef)(null),u=(0,E.e)(t,l,o.onScrollbarXChange);return(0,x.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,x.createElement)(l4,(0,w.Z)({"data-orientation":"horizontal"},i,{ref:u,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":un(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:ue(a.paddingLeft),paddingEnd:ue(a.paddingRight)}})}}))}),l0=(0,x.forwardRef)((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,o=lU(l$,e.__scopeScrollArea),[a,s]=(0,x.useState)(),l=(0,x.useRef)(null),u=(0,E.e)(t,l,o.onScrollbarYChange);return(0,x.useEffect)(()=>{l.current&&s(getComputedStyle(l.current))},[l]),(0,x.createElement)(l4,(0,w.Z)({"data-orientation":"vertical"},i,{ref:u,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":un(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),r>0&&r{l.current&&o.viewport&&a&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:ue(a.paddingTop),paddingEnd:ue(a.paddingBottom)}})}}))}),[l1,l2]=lZ(l$),l4=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:o,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,h=lU(l$,n),[p,m]=(0,x.useState)(null),v=(0,E.e)(t,e=>m(e)),g=(0,x.useRef)(null),y=(0,x.useRef)(""),b=h.viewport,j=r.content-r.viewport,k=(0,ly.W)(c),S=(0,ly.W)(l),C=ua(d,10);function M(e){if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;u({x:t,y:n})}}return(0,x.useEffect)(()=>{let e=e=>{let t=e.target,n=null==p?void 0:p.contains(t);n&&k(e,j)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[b,p,j,k]),(0,x.useEffect)(S,[r,S]),us(p,C),us(h.content,C),(0,x.createElement)(l1,{scope:n,scrollbar:p,hasThumb:i,onThumbChange:(0,ly.W)(o),onThumbPointerUp:(0,ly.W)(a),onThumbPositionChange:S,onThumbPointerDown:(0,ly.W)(s)},(0,x.createElement)(O.WV.div,(0,w.Z)({},f,{ref:v,style:{position:"absolute",...f.style},onPointerDown:(0,_.M)(e.onPointerDown,e=>{if(0===e.button){let t=e.target;t.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",M(e)}}),onPointerMove:(0,_.M)(e.onPointerMove,M),onPointerUp:(0,_.M)(e.onPointerUp,e=>{let t=e.target;t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,g.current=null})})))}),l3="ScrollAreaThumb",l5=(0,x.forwardRef)((e,t)=>{let{forceMount:n,...r}=e,i=l2(l3,e.__scopeScrollArea);return(0,x.createElement)(T.z,{present:n||i.hasThumb},(0,x.createElement)(l6,(0,w.Z)({ref:t},r)))}),l6=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,o=lU(l3,n),a=l2(l3,n),{onThumbPositionChange:s}=a,l=(0,E.e)(t,e=>a.onThumbChange(e)),u=(0,x.useRef)(),c=ua(()=>{u.current&&(u.current(),u.current=void 0)},100);return(0,x.useEffect)(()=>{let e=o.viewport;if(e){let t=()=>{if(c(),!u.current){let t=uo(e,s);u.current=t,s()}};return s(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,c,s]),(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":a.hasThumb?"visible":"hidden"},i,{ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:(0,_.M)(e.onPointerDownCapture,e=>{let t=e.target,n=t.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top;a.onThumbPointerDown({x:r,y:i})}),onPointerUp:(0,_.M)(e.onPointerUp,a.onThumbPointerUp)}))}),l8="ScrollAreaCorner",l7=(0,x.forwardRef)((e,t)=>{let n=lU(l8,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY),i="scroll"!==n.type&&r;return i?(0,x.createElement)(l9,(0,w.Z)({},e,{ref:t})):null}),l9=(0,x.forwardRef)((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=lU(l8,n),[o,a]=(0,x.useState)(0),[s,l]=(0,x.useState)(0);return us(i.scrollbarX,()=>{var e;let t=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(t),l(t)}),us(i.scrollbarY,()=>{var e;let t=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(t),a(t)}),o&&s?(0,x.createElement)(O.WV.div,(0,w.Z)({},r,{ref:t,style:{width:o,height:s,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}})):null});function ue(e){return e?parseInt(e,10):0}function ut(e,t){let n=e/t;return isNaN(n)?0:n}function un(e){let t=ut(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function ur(e,t,n="ltr"){let r=un(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s="ltr"===n?[0,a]:[-1*a,0],l=function(e,[t,n]){return Math.min(n,Math.max(t,e))}(e,s),u=ui([0,a],[0,o-r]);return u(l)}function ui(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}let uo=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function ua(e,t){let n=(0,ly.W)(e),r=(0,x.useRef)(0);return(0,x.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,x.useCallback)(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function us(e,t){let n=(0,ly.W)(t);(0,M.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}let ul=x.forwardRef((e,t)=>{let{id:n,className:r,style:i,children:o,keyToResetScrollbars:a}=e;return(0,y.jsxs)(lW,{className:(0,em.cx)("w-full h-full overflow-hidden",r),style:i,children:[(0,y.jsx)(lq,{id:n,ref:t,className:"w-full h-full [&>div]:!block [&>div]:!h-full",children:o}),(0,y.jsx)(lK,{orientation:"vertical",className:"z-10 flex select-none touch-none transition-colors hover:bg-black/20 w-1.5 m-px",children:(0,y.jsx)(l5,{className:(0,em.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"v-".concat(a):void 0),(0,y.jsx)(lK,{orientation:"horizontal",className:"z-10 flex flex-col select-none touch-none transition-colors duration-1000 hover:bg-black/20 h-1 m-px",children:(0,y.jsx)(l5,{className:(0,em.cx)("flex-1 relative bg-gray-300 rounded",'before:content[""] before:absolute before:top-1/2 before:left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full')})},a?"h-".concat(a):void 0),(0,y.jsx)(l7,{className:"bg-black/70"})]})}),uu=(0,em.j)([lo,"z-20","overflow-hidden"],{variants:{variant:{default:"flex items-center justify-center w-full h-full",none:""}},defaultVariants:{variant:"default"}}),uc={show:{scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},ud=x.forwardRef((e,t)=>{let{trigger:n,rootProps:r,open:i,onOpenChange:o,onSubmit:a,title:s,description:l,containerVariants:u,contentVariants:c,controls:d,children:f,bodyClassName:h,closeClassName:p,dynamicHeight:m=!0}=e,{open:v,onOpenChange:g}=le({open:i,onOpenChange:o});return(0,y.jsxs)(lF.fC,{open:v,onOpenChange:g,...r,children:[n&&(0,y.jsx)(lF.xz,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:v?(0,y.jsx)(lF.h_,{forceMount:!0,children:(0,y.jsx)(lF.VY,{asChild:!0,forceMount:!0,ref:t,children:(0,y.jsxs)("div",{className:"fixed w-full h-full top-0 left-0 z-20",children:[(0,y.jsx)(lF.aV,{onClick:()=>g(!1),className:"fixed z-10 top-0 right-0 bottom-0 left-0 inset-0 transition-opacity opacity-0 open:opacity-10 dark:open:opacity-20 bg-black"}),(0,y.jsx)(s9.div,{variants:uc,initial:"init",animate:"show",exit:"exit",className:uu(u),children:(0,y.jsx)(up,{title:s,description:l,contentVariants:c,onSubmit:a,controls:d,bodyClassName:h,closeClassName:p,dynamicHeight:m,children:f})})]})})}):null})]})});function uf(e){let{className:t}=e;return(0,y.jsx)(lF.x8,{asChild:!0,type:"button",children:(0,y.jsx)("div",{className:(0,em.cx)("appearance-none",t),children:(0,y.jsx)(lu,{size:"small",variant:"ghost",type:"button",children:(0,y.jsx)(lc.QN4,{})})})})}let uh=(0,em.j)(["relative","z-40","overflow-hidden"],{variants:{variant:{default:[t4()],none:""}},defaultVariants:{variant:"default"}}),up=x.forwardRef((e,t)=>{let{children:n,onSubmit:r,title:i,description:o,controls:a,contentVariants:s,closeClassName:l,bodyClassName:u,dynamicHeight:c=!0}=e,{ref:d,height:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,x.useState)(0),r=(0,x.useRef)(null);return(0,x.useLayoutEffect)(()=>{if(!r.current)return;let e=r.current,t=()=>n(e.clientHeight);t(),r.current.addEventListener("resize",t);let i=new ResizeObserver(t);return i.observe(e),()=>{e.removeEventListener("resize",t),i.unobserve(e)}},e),{ref:r,height:t}}([n,o]),[h,p]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{p(f>.7*window.innerHeight)},[f]),(0,y.jsxs)(r?"form":"div",{onSubmit:r,ref:t,className:uh(s),children:[i&&(0,y.jsx)(lF.Dx,{className:um({showSeparator:h}),children:i}),(0,y.jsx)(ul,{style:{height:c?"".concat(f,"px"):void 0,maxHeight:c?"70vh":void 0},children:(0,y.jsxs)("div",{ref:d,className:(0,em.cx)("p-4",u),children:[o&&(0,y.jsx)(lF.dk,{className:uv(),children:o}),n]})}),a&&(0,y.jsx)(ug,{separator:h,children:a}),(0,y.jsx)(uf,{className:l||"absolute top-3.5 right-2"})]})}),um=(0,em.j)(["pt-4 pb-2 px-4 w-full",t0({size:"20",weight:"semibold",font:"sans",color:"contrast"})],{variants:{showSeparator:{true:"border-b border-gray-200 dark:border-graydark-200"}}}),uv=(0,em.j)([t0({color:"subtle",size:"14"}),"py-2"]);function ug(e){let{children:t,separator:n=!0}=e;return(0,y.jsx)("div",{className:(0,em.cx)("py-2 mx-3",n?"border-t border-gray-200 dark:border-graydark-200":""),children:t})}var uy=n(55070),ux=n(77334);let ub="rovingFocusGroup.onEntryFocus",uw={bubbles:!1,cancelable:!0},uj="RovingFocusGroup",[uE,uk,uS]=S(uj),[u_,uC]=(0,j.b)(uj,[uS]),[uO,uM]=u_(uj),uT=(0,x.forwardRef)((e,t)=>(0,x.createElement)(uE.Provider,{scope:e.__scopeRovingFocusGroup},(0,x.createElement)(uE.Slot,{scope:e.__scopeRovingFocusGroup},(0,x.createElement)(uA,(0,w.Z)({},e,{ref:t}))))),uA=(0,x.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=(0,x.useRef)(null),f=(0,E.e)(t,d),h=lV(o),[p=null,m]=(0,C.T)({prop:a,defaultProp:s,onChange:l}),[v,g]=(0,x.useState)(!1),y=(0,ly.W)(u),b=uk(n),j=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=d.current;if(e)return e.addEventListener(ub,y),()=>e.removeEventListener(ub,y)},[y]),(0,x.createElement)(uO,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:p,onItemFocus:(0,x.useCallback)(e=>m(e),[m]),onItemShiftTab:(0,x.useCallback)(()=>g(!0),[])},(0,x.createElement)(O.WV.div,(0,w.Z)({tabIndex:v?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:(0,_.M)(e.onMouseDown,()=>{j.current=!0}),onFocus:(0,_.M)(e.onFocus,e=>{let t=!j.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(ub,uw);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===p),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);uR(i)}}j.current=!1}),onBlur:(0,_.M)(e.onBlur,()=>g(!1))})))}),uP=(0,x.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=e,a=(0,A.M)(),s=uM("RovingFocusGroupItem",n),l=s.currentTabStopId===a,u=uk(n);return(0,x.createElement)(uE.ItemSlot,{scope:n,id:a,focusable:r,active:i},(0,x.createElement)(O.WV.span,(0,w.Z)({tabIndex:l?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:(0,_.M)(e.onMouseDown,e=>{r?s.onItemFocus(a):e.preventDefault()}),onFocus:(0,_.M)(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:(0,_.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){s.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return uN[i]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let i=u().filter(e=>e.focusable),o=i.map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=s.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>uR(o))}})})))}),uN={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function uR(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}var uD=n(49732),uL=n(70506);let uF=["Enter"," "],uz=["ArrowUp","PageDown","End"],uV=["ArrowDown","PageUp","Home",...uz],uI={ltr:[...uF,"ArrowRight"],rtl:[...uF,"ArrowLeft"]},uZ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},uB="Menu",[uH,uU,uW]=S(uB),[uq,u$]=(0,j.b)(uB,[uW,th,uC]),uK=th(),uY=uC(),[uG,uX]=uq(uB),[uJ,uQ]=uq(uB),u0=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e,i=uK(n);return(0,x.createElement)(tv,(0,w.Z)({},i,r,{ref:t}))}),u1="MenuPortal",[u2,u4]=uq(u1,{forceMount:void 0}),u3="MenuContent",[u5,u6]=uq(u3),u8=(0,x.forwardRef)((e,t)=>{let n=u4(u3,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uX(u3,e.__scopeMenu),a=uQ(u3,e.__scopeMenu);return(0,x.createElement)(uH.Provider,{scope:e.__scopeMenu},(0,x.createElement)(T.z,{present:r||o.open},(0,x.createElement)(uH.Slot,{scope:e.__scopeMenu},a.modal?(0,x.createElement)(u7,(0,w.Z)({},i,{ref:t})):(0,x.createElement)(u9,(0,w.Z)({},i,{ref:t})))))}),u7=(0,x.forwardRef)((e,t)=>{let n=uX(u3,e.__scopeMenu),r=(0,x.useRef)(null),i=(0,E.e)(t,r);return(0,x.useEffect)(()=>{let e=r.current;if(e)return(0,uD.R)(e)},[]),(0,x.createElement)(ce,(0,w.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,_.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),u9=(0,x.forwardRef)((e,t)=>{let n=uX(u3,e.__scopeMenu);return(0,x.createElement)(ce,(0,w.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),ce=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f,disableOutsideScroll:h,...p}=e,m=uX(u3,n),v=uQ(u3,n),g=uK(n),y=uY(n),b=uU(n),[j,S]=(0,x.useState)(null),C=(0,x.useRef)(null),O=(0,E.e)(t,C,m.onContentChange),M=(0,x.useRef)(0),T=(0,x.useRef)(""),A=(0,x.useRef)(0),P=(0,x.useRef)(null),N=(0,x.useRef)("right"),R=(0,x.useRef)(0),D=h?uL.Z:x.Fragment,L=h?{as:k.g7,allowPinchZoom:!0}:void 0,F=e=>{var t,n;let r=T.current+e,i=b().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=i.map(e=>e.textValue),l=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,a=n?e.indexOf(n):-1,s=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length])),l=1===o.length;l&&(s=s.filter(e=>e!==n));let u=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}(s,r,a),u=null===(n=i.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){T.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};(0,x.useEffect)(()=>()=>window.clearTimeout(M.current),[]),(0,uy.EW)();let z=(0,x.useCallback)(e=>{var t,n;let r=N.current===(null===(t=P.current)||void 0===t?void 0:t.side);return r&&function(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;er!=u>r&&n<(l-a)*(r-s)/(u-s)+a;c&&(i=!i)}return i}(n,t)}(e,null===(n=P.current)||void 0===n?void 0:n.area)},[]);return(0,x.createElement)(u5,{scope:n,searchRef:T,onItemEnter:(0,x.useCallback)(e=>{z(e)&&e.preventDefault()},[z]),onItemLeave:(0,x.useCallback)(e=>{var t;z(e)||(null===(t=C.current)||void 0===t||t.focus(),S(null))},[z]),onTriggerLeave:(0,x.useCallback)(e=>{z(e)&&e.preventDefault()},[z]),pointerGraceTimerRef:A,onPointerGraceIntentChange:(0,x.useCallback)(e=>{P.current=e},[])},(0,x.createElement)(D,L,(0,x.createElement)(ux.M,{asChild:!0,trapped:i,onMountAutoFocus:(0,_.M)(o,e=>{var t;e.preventDefault(),null===(t=C.current)||void 0===t||t.focus()}),onUnmountAutoFocus:a},(0,x.createElement)(ev.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,onDismiss:f},(0,x.createElement)(uT,(0,w.Z)({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:j,onCurrentTabStopIdChange:S,onEntryFocus:e=>{v.isUsingKeyboardRef.current||e.preventDefault()}}),(0,x.createElement)(tj,(0,w.Z)({role:"menu","aria-orientation":"vertical","data-state":cm(m.open),dir:v.dir},g,p,{ref:O,style:{outline:"none",...p.style},onKeyDown:(0,_.M)(p.onKeyDown,e=>{let t=e.target,n=t.closest('[role="menu"]')===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&i&&F(e.key));let o=C.current;if(e.target!==o||!uV.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled),s=a.map(e=>e.ref.current);uz.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,_.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),T.current="")}),onPointerMove:(0,_.M)(e.onPointerMove,cg(e=>{let t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>R.current?"right":"left";N.current=t,R.current=e.clientX}}))})))))))}),ct=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.createElement)(O.WV.div,(0,w.Z)({role:"group"},r,{ref:t}))}),cn=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.createElement)(O.WV.div,(0,w.Z)({},r,{ref:t}))}),cr="MenuItem",ci="menu.itemSelect",co=(0,x.forwardRef)((e,t)=>{let{disabled:n=!1,onSelect:r,...i}=e,o=(0,x.useRef)(null),a=uQ(cr,e.__scopeMenu),s=u6(cr,e.__scopeMenu),l=(0,E.e)(t,o),u=(0,x.useRef)(!1);return(0,x.createElement)(ca,(0,w.Z)({},i,{ref:l,disabled:n,onClick:(0,_.M)(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(ci,{bubbles:!0,cancelable:!0});e.addEventListener(ci,e=>null==r?void 0:r(e),{once:!0}),(0,O.jH)(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:(0,_.M)(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,_.M)(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&uF.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})}))}),ca=(0,x.forwardRef)((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=u6(cr,n),s=uY(n),l=(0,x.useRef)(null),u=(0,E.e)(t,l),[c,d]=(0,x.useState)(!1),[f,h]=(0,x.useState)("");return(0,x.useEffect)(()=>{let e=l.current;if(e){var t;h((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[o.children]),(0,x.createElement)(uH.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f},(0,x.createElement)(uP,(0,w.Z)({asChild:!0},s,{focusable:!r}),(0,x.createElement)(O.WV.div,(0,w.Z)({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},o,{ref:u,onPointerMove:(0,_.M)(e.onPointerMove,cg(e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus()}})),onPointerLeave:(0,_.M)(e.onPointerLeave,cg(e=>a.onItemLeave(e))),onFocus:(0,_.M)(e.onFocus,()=>d(!0)),onBlur:(0,_.M)(e.onBlur,()=>d(!1))}))))}),[cs,cl]=((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,x.createElement)(cc,{scope:e.__scopeMenu,checked:n},(0,x.createElement)(co,(0,w.Z)({role:"menuitemcheckbox","aria-checked":n},i,{ref:t,"data-state":cv(n),onSelect:(0,_.M)(i.onSelect,()=>null==r?void 0:r(!n),{checkForDefaultPrevented:!1})})))},uq("MenuRadioGroup",{value:void 0,onValueChange:()=>{}})),cu=((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,ly.W)(r);return(0,x.createElement)(cs,{scope:e.__scopeMenu,value:n,onValueChange:o},(0,x.createElement)(ct,(0,w.Z)({},i,{ref:t})))},"MenuItemIndicator"),[cc,cd]=uq(cu,{checked:!1}),[cf,ch]=((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=cd(cu,n);return(0,x.createElement)(T.z,{present:r||o.checked},(0,x.createElement)(O.WV.span,(0,w.Z)({},i,{ref:t,"data-state":cv(o.checked)})))},uq("MenuSub")),cp="MenuSubTrigger";function cm(e){return e?"open":"closed"}function cv(e){return e?"checked":"unchecked"}function cg(e){return t=>"mouse"===t.pointerType?e(t):void 0}(e,t)=>{let n=uX(cp,e.__scopeMenu),r=uQ(cp,e.__scopeMenu),i=ch(cp,e.__scopeMenu),o=u6(cp,e.__scopeMenu),a=(0,x.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=(0,x.useCallback)(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return(0,x.useEffect)(()=>c,[c]),(0,x.useEffect)(()=>{let e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,x.createElement)(u0,(0,w.Z)({asChild:!0},u),(0,x.createElement)(ca,(0,w.Z)({id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cm(n.open)},e,{ref:(0,E.F)(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,_.M)(e.onPointerMove,cg(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(o.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:(0,_.M)(e.onPointerLeave,cg(e=>{var t,r;c();let i=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,a="right"===t,l=i[a?"left":"right"],u=i[a?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:i.top},{x:u,y:i.top},{x:u,y:i.bottom},{x:l,y:i.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:(0,_.M)(e.onKeyDown,t=>{let i=""!==o.searchRef.current;if(!e.disabled&&(!i||" "!==t.key)&&uI[r.dir].includes(t.key)){var a;n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault()}})})))},(e,t)=>{let n=u4(u3,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=uX(u3,e.__scopeMenu),a=uQ(u3,e.__scopeMenu),s=ch("MenuSubContent",e.__scopeMenu),l=(0,x.useRef)(null),u=(0,E.e)(t,l);return(0,x.createElement)(uH.Provider,{scope:e.__scopeMenu},(0,x.createElement)(T.z,{present:r||o.open},(0,x.createElement)(uH.Slot,{scope:e.__scopeMenu},(0,x.createElement)(ce,(0,w.Z)({id:s.contentId,"aria-labelledby":s.triggerId},i,{ref:u,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,_.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:(0,_.M)(e.onEscapeKeyDown,a.onClose),onKeyDown:(0,_.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=uZ[a.dir].includes(e.key);if(t&&n){var r;o.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})))))};let cy=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=uK(t),[l,u]=(0,x.useState)(null),c=(0,x.useRef)(!1),d=(0,ly.W)(o),f=lV(i);return(0,x.useEffect)(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,x.createElement)(tM,s,(0,x.createElement)(uG,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},(0,x.createElement)(uJ,{scope:t,onClose:(0,x.useCallback)(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a},r)))},cx=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=uX(u1,t);return(0,x.createElement)(u2,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(tT.h,{asChild:!0,container:i},r)))},cb="DropdownMenu",[cw,cj]=(0,j.b)(cb,[u$]),cE=u$(),[ck,cS]=cw(cb),c_=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=cS("DropdownMenuTrigger",n),a=cE(n);return(0,x.createElement)(u0,(0,w.Z)({asChild:!0},a),(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":!!o.open||void 0,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:(0,E.F)(t,o.triggerRef),onPointerDown:(0,_.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:(0,_.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())})})))}),cC=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cS("DropdownMenuContent",n),o=cE(n),a=(0,x.useRef)(!1);return(0,x.createElement)(u8,(0,w.Z)({id:i.contentId,"aria-labelledby":i.triggerId},o,r,{ref:t,onCloseAutoFocus:(0,_.M)(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:(0,_.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}}))}),cO=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cE(n);return(0,x.createElement)(cn,(0,w.Z)({},i,r,{ref:t}))}),cM=(0,x.forwardRef)((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=cE(n);return(0,x.createElement)(co,(0,w.Z)({},i,r,{ref:t}))}),cT=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=cE(t),u=(0,x.useRef)(null),[c=!1,d]=(0,C.T)({prop:i,defaultProp:o,onChange:a});return(0,x.createElement)(ck,{scope:t,triggerId:(0,A.M)(),triggerRef:u,contentId:(0,A.M)(),open:c,onOpenChange:d,onOpenToggle:(0,x.useCallback)(()=>d(e=>!e),[d]),modal:s},(0,x.createElement)(cy,(0,w.Z)({},l,{open:c,onOpenChange:d,dir:r,modal:s}),n))},cA=e=>{let{__scopeDropdownMenu:t,...n}=e,r=cE(t);return(0,x.createElement)(cx,(0,w.Z)({},r,n))},cP="horizontal",cN=["horizontal","vertical"],cR=(0,x.forwardRef)((e,t)=>{let{decorative:n,orientation:r=cP,...i}=e,o=cD(r)?r:cP;return(0,x.createElement)(O.WV.div,(0,w.Z)({"data-orientation":o},n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},i,{ref:t}))});function cD(e){return cN.includes(e)}cR.propTypes={orientation(e,t,n){let r=e[t],i=String(r);return r&&!cD(r)?Error(`Invalid prop \`orientation\` of value \`${i}\` supplied to \`${n}\`, expected one of: - horizontal - vertical -Defaulting to \`${cP}\`.`):null}};let cL=(0,em.j)(["m-0 flex-shrink-0 cursor-default"],{variants:{variant:{vertical:"border-r",horizontal:"border-b"},color:{subtle:"border-gray-300 dark:border-graydark-300",verySubtle:"border-gray-100 dark:border-graydark-100",panel:"border-gray-100 dark:border-graydark-400/50"}},defaultVariants:{variant:"horizontal",color:"subtle"}}),cF=b.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...o}=e;return(0,y.jsx)(cR,{ref:t,className:cL({variant:n,color:r,className:i}),...o})}),cz=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,em.cx)(t0({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},cV=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,em.cx)(cz({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["group","cursor-pointer","rounded-sm","focus:outline-none","focus:text-gray-900","dark:focus:text-white","focus:bg-gray-300","dark:focus:bg-graydark-300","aria-selected:bg-gray-400","aria-selected:dark:bg-graydark-500","data-[disabled]:pointer-events-none","data-[disabled]:text-gray-700","dark:data-[disabled]:text-graydark-700"])},cI=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:o="14",scaleSize:a,noWrap:s,ellipsis:l}=e;return t0({font:n,color:r,weight:i,size:o,scaleSize:a,noWrap:s,ellipsis:l,className:t})},cZ=e=>(0,em.cx)(["h-px","my-2","mx-1.5",e]),cB=b.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,y.jsx)(cF,{ref:t,className:cZ(n),...i})}),cH=b.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:o,size:a="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,y.jsx)("div",{ref:t,className:(0,em.cx)(cz({className:n,font:r,color:i,weight:o,size:a,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),cU=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:(0,em.cx)(["ml-auto","pl-5",n]),...r})}),cW=(0,em.j)([lo,"relative","max-w-sm","z-30","py-1","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-tip","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),cq=e=>(0,em.cx)(t4(),(0,em.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),c$={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},cK=b.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o,className:a,open:s,onOpenChange:l}=e,{open:u,onOpenChange:c}=le({open:s,onOpenChange:l});return(0,y.jsxs)(cT,{open:u,onOpenChange:c,...i,children:[(0,y.jsx)(c_,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:u?(0,y.jsx)(cA,{forceMount:!0,children:(0,y.jsx)(cC,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,y.jsx)(s9.div,{variants:c$,initial:"init",animate:"show",exit:"exit",className:cW(),children:(0,y.jsx)("div",{className:cq(a),children:r})})})}):null})]})}),cY=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(cM,{ref:t,className:cV({className:n}),...r})}),cG=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(cO,{ref:t,className:(0,em.cx)("px-1.5",cI({className:n})),...r})}),cX=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:(0,em.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var cJ=n(39097),cQ=n.n(cJ);let c0={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},c1={20:"font-semibold text-base md:text-xl",24:"font-bold text-xl md:text-2xl",32:"font-semibold text-2xl md:text-3xl",40:"font-semibold text-3xl md:text-4xl",64:"font-semibold text-4xl md:text-6xl"},c2=b.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:o,anchorLink:a,showAnchor:s,...l}=e,u=c0[n];if(a){let e=i||("string"==typeof o?encodeURI(o.toLowerCase().replace(/ /g,"-")):"");return(0,y.jsxs)("div",{className:(0,em.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,y.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,y.jsxs)(cQ(),{href:"#".concat(e),className:"relative group",children:[(0,y.jsx)(t1,{className:"hidden group-hover:block",children:(0,y.jsx)(lc.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,y.jsx)(t1,{as:u,...l,ref:t,weight:"none",className:(0,em.cx)("proportional-nums inline-block",c1[n]),children:o})]})]})}return(0,y.jsx)("div",{className:(0,em.cx)("flex flex-col gap-6 items-start",r),children:(0,y.jsx)(t1,{as:u,...l,ref:t,weight:"none",className:(0,em.cx)("proportional-nums inline-block",c1[n],r),children:o})})});var c4=n(96577),c3=n.n(c4);let c5=(0,em.j)(["rounded"]);function c6(e){let{className:t,...n}=e;return(0,y.jsx)(c3(),{className:c5({className:t}),...n})}let[c8,c7]=(0,j.k)("Label",{id:void 0,controlRef:{current:null}}),c9=(0,b.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,o=(0,b.useRef)(null),a=(0,b.useRef)(null),s=(0,E.e)(t,a),l=(0,A.M)(r);return(0,b.useEffect)(()=>{if(n){let e=document.getElementById(n),t=a.current;if(t&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),o.current=e,()=>{var n;let r=null===(n=t())||void 0===n?void 0:n.replace(l,"");""===r?e.removeAttribute("aria-labelledby"):r&&e.setAttribute("aria-labelledby",r)}}}},[l,n]),(0,b.createElement)(c8,{id:l,controlRef:o},(0,b.createElement)(O.WV.span,(0,w.Z)({role:"label",id:l},i,{ref:s,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onClick:t=>{var n;if(null===(n=e.onClick)||void 0===n||n.call(e,t),!o.current||t.defaultPrevented)return;let r=o.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(o.current.click(),o.current.focus())}})))}),de=e=>{let t=c7("LabelConsumer"),{controlRef:n}=t;return(0,b.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},dt=b.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:o,color:a="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,y.jsx)(c9,{ref:t,...c,className:cI({font:n,size:r,scaleSize:i,color:a,weight:o,noWrap:s,ellipsis:l,className:u})})}),dn=(0,em.j)(["cursor-pointer"],{variants:{disabled:{true:"opacity-50 pointer-events-none"},underline:{accent:"underline underline-offset-4 decoration-2 decoration-accentdark-900 dark:decoration-accentdark-900",default:"underline underline-offset-4",hover:"hover:underline underline-offset-4",none:""}},defaultVariants:{disabled:!1,underline:"default"}}),dr=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:o,noWrap:a,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,em.cx)(t0({scaleSize:r,size:n,font:t,color:i,weight:o,noWrap:a,ellipsis:s,underline:l}),dn({disabled:u,underline:l}),c)},di=b.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:o,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,b.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,y.jsx)(cQ(),{href:n||"#",ref:t,className:dr({font:r,scaleSize:o,size:i,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),da=b.forwardRef((e,t)=>{let{href:n,disabled:r,variant:i,size:o,state:a,rounded:s,icon:l,className:u,tip:c,rel:d,target:f,onClick:h,...p}=e,m=d||("_blank"===f?"noopener":void 0),v=(0,b.useCallback)(e=>{h&&(n||e.preventDefault(),h(e))},[h,n]);return c?(0,y.jsx)(ls,{content:c,children:(0,y.jsx)(cQ(),{href:n||"#",ref:t,className:ll({variant:i,size:o,state:a,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}):(0,y.jsx)(cQ(),{href:n||"#",ref:t,className:ll({variant:i,size:o,state:a,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}),ds={src:"/_next/static/media/logo.0e2362ab.png"};function dl(e){let{size:t=30,className:n}=e;return(0,y.jsx)(c6,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let du="Popover",[dc,dd]=(0,j.b)(du,[th]),df=th(),[dh,dp]=dc(du),dm=(0,b.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=dp("PopoverTrigger",n),o=df(n),a=(0,E.e)(t,i.triggerRef),s=(0,b.createElement)(O.WV.button,(0,w.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dk(i.open)},r,{ref:a,onClick:(0,_.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,b.createElement)(tv,(0,w.Z)({asChild:!0},o),s)}),dv="PopoverPortal",[dg,dy]=dc(dv,{forceMount:void 0}),db="PopoverContent",dx=(0,b.forwardRef)((e,t)=>{let n=dy(db,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=dp(db,e.__scopePopover);return(0,b.createElement)(T.z,{present:r||o.open},o.modal?(0,b.createElement)(dw,(0,w.Z)({},i,{ref:t})):(0,b.createElement)(dj,(0,w.Z)({},i,{ref:t})))}),dw=(0,b.forwardRef)((e,t)=>{let n=dp(db,e.__scopePopover),r=(0,b.useRef)(null),i=(0,E.e)(t,r),o=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=r.current;if(e)return(0,uD.R)(e)},[]),(0,b.createElement)(uL.Z,{as:k.g7,allowPinchZoom:!0},(0,b.createElement)(dE,(0,w.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,_.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,_.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,_.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),dj=(0,b.forwardRef)((e,t)=>{let n=dp(db,e.__scopePopover),r=(0,b.useRef)(!1);return(0,b.createElement)(dE,(0,w.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let a=t.target,s=null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),dE=(0,b.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=dp(db,n),h=df(n);return(0,uy.EW)(),(0,b.createElement)(ub.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,b.createElement)(ev.XB,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,b.createElement)(tj,(0,w.Z)({"data-state":dk(f.open),role:"dialog",id:f.contentId},h,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function dk(e){return e?"open":"closed"}let dS=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=df(t),l=(0,b.useRef)(null),[u,c]=(0,b.useState)(!1),[d=!1,f]=(0,C.T)({prop:r,defaultProp:i,onChange:o});return(0,b.createElement)(tM,s,(0,b.createElement)(dh,{scope:t,contentId:(0,A.M)(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,b.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,b.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,b.useCallback)(()=>c(!1),[]),modal:a},n))},d_=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=dp(dv,t);return(0,b.createElement)(dg,{scope:t,forceMount:n},(0,b.createElement)(T.z,{present:n||o.open},(0,b.createElement)(tT.h,{asChild:!0,container:i},r)))},dC=(0,em.j)([lo,"relative","z-10","outline-none","max-w-sm","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),dO=(0,em.cx)(t4(),(0,em.j)(["py-1","px-1"])()),dM={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dT=b.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{open:a,onOpenChange:s}=le({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,y.jsxs)(dS,{open:a,onOpenChange:s,...i,children:[(0,y.jsx)(dm,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:a?(0,y.jsx)(d_,{forceMount:!0,children:(0,y.jsx)(dx,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,y.jsx)(s9.div,{variants:dM,initial:"init",animate:"show",exit:"exit",className:dC(),children:(0,y.jsx)(ul,{className:dO,children:r})})})}):null})]})}),dA="Progress",[dP,dN]=(0,j.b)(dA),[dR,dD]=dP(dA),dL=(0,b.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:o=dz,...a}=e,s=dZ(i)?i:100,l=dB(r,s)?r:null,u=dI(l)?o(l,s):void 0;return(0,b.createElement)(dR,{scope:n,value:l,max:s},(0,b.createElement)(O.WV.div,(0,w.Z)({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":dI(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":dV(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))});dL.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!dZ(r)?Error(`Invalid prop \`max\` of value \`${i}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,n){let r=e[t],i=String(r),o=dZ(e.max)?e.max:100;return null==r||dB(r,o)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${n}\`. The \`value\` prop must be: +Defaulting to \`${cP}\`.`):null}};let cL=(0,em.j)(["m-0 flex-shrink-0 cursor-default"],{variants:{variant:{vertical:"border-r",horizontal:"border-b"},color:{subtle:"border-gray-300 dark:border-graydark-300",verySubtle:"border-gray-100 dark:border-graydark-100",panel:"border-gray-100 dark:border-graydark-400/50"}},defaultVariants:{variant:"horizontal",color:"subtle"}}),cF=x.forwardRef((e,t)=>{let{variant:n,color:r,className:i,...o}=e;return(0,y.jsx)(cR,{ref:t,className:cL({variant:n,color:r,className:i}),...o})}),cz=function(){let{className:e,font:t,color:n="subtle",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,em.cx)(t0({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["relative","flex","items-center","tabular-nums","select-none","whitespace-nowrap","px-1.5","py-1.5"])},cV=function(){let{className:e,font:t,color:n="contrast",weight:r="medium",size:i="14",scaleSize:o,noWrap:a,ellipsis:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,em.cx)(cz({font:t,color:n,weight:r,size:i,scaleSize:o,noWrap:a,ellipsis:s,className:e}),["group","cursor-pointer","rounded-sm","focus:outline-none","focus:text-gray-900","dark:focus:text-white","focus:bg-gray-300","dark:focus:bg-graydark-300","aria-selected:bg-gray-400","aria-selected:dark:bg-graydark-500","data-[disabled]:pointer-events-none","data-[disabled]:text-gray-700","dark:data-[disabled]:text-graydark-700"])},cI=e=>{let{className:t,font:n,color:r="verySubtle",weight:i="medium",size:o="14",scaleSize:a,noWrap:s,ellipsis:l}=e;return t0({font:n,color:r,weight:i,size:o,scaleSize:a,noWrap:s,ellipsis:l,className:t})},cZ=e=>(0,em.cx)(["h-px","my-2","mx-1.5",e]),cB=x.forwardRef((e,t)=>{let{className:n,color:r,...i}=e;return(0,y.jsx)(cF,{ref:t,className:cZ(n),...i})}),cH=x.forwardRef((e,t)=>{let{className:n,font:r,color:i,weight:o,size:a="14",scaleSize:s,noWrap:l,ellipsis:u,...c}=e;return(0,y.jsx)("div",{ref:t,className:(0,em.cx)(cz({className:n,font:r,color:i,weight:o,size:a,scaleSize:s,noWrap:l,ellipsis:u})),...c})}),cU=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:(0,em.cx)(["ml-auto","pl-5",n]),...r})}),cW=(0,em.j)([lo,"relative","max-w-sm","z-30","py-1","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-tip","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),cq=e=>(0,em.cx)(t4(),(0,em.j)(["max-w-xs","shadow-sm","py-1","px-1"])({className:e})),c$={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},cK=x.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o,className:a,open:s,onOpenChange:l}=e,{open:u,onOpenChange:c}=le({open:s,onOpenChange:l});return(0,y.jsxs)(cT,{open:u,onOpenChange:c,...i,children:[(0,y.jsx)(c_,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:u?(0,y.jsx)(cA,{forceMount:!0,children:(0,y.jsx)(cC,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,y.jsx)(s9.div,{variants:c$,initial:"init",animate:"show",exit:"exit",className:cW(),children:(0,y.jsx)("div",{className:cq(a),children:r})})})}):null})]})}),cY=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(cM,{ref:t,className:cV({className:n}),...r})}),cG=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(cO,{ref:t,className:(0,em.cx)("px-1.5",cI({className:n})),...r})}),cX=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("div",{ref:t,className:(0,em.cx)(["pr-2","opacity-70 group-hover:opacity-100",n]),...r})});var cJ=n(39097),cQ=n.n(cJ);let c0={20:"h3",24:"h3",32:"h2",40:"h2",64:"h1"},c1={20:"font-semibold text-base md:text-xl",24:"font-bold text-xl md:text-2xl",32:"font-semibold text-2xl md:text-3xl",40:"font-semibold text-3xl md:text-4xl",64:"font-semibold text-4xl md:text-6xl"},c2=x.forwardRef((e,t)=>{let{size:n="24",className:r,id:i,children:o,anchorLink:a,showAnchor:s,...l}=e,u=c0[n];if(a){let e=i||("string"==typeof o?encodeURI(o.toLowerCase().replace(/ /g,"-")):"");return(0,y.jsxs)("div",{className:(0,em.cx)("relative flex flex-col gap-6 items-start",r),children:[(0,y.jsx)("div",{id:e,className:"absolute -top-[100px]"}),(0,y.jsxs)(cQ(),{href:"#".concat(e),className:"relative group",children:[(0,y.jsx)(t1,{className:"hidden group-hover:block",children:(0,y.jsx)(lc.POp,{className:"absolute top-1 -left-7 hidden md:block"})}),(0,y.jsx)(t1,{as:u,...l,ref:t,weight:"none",className:(0,em.cx)("proportional-nums inline-block",c1[n]),children:o})]})]})}return(0,y.jsx)("div",{className:(0,em.cx)("flex flex-col gap-6 items-start",r),children:(0,y.jsx)(t1,{as:u,...l,ref:t,weight:"none",className:(0,em.cx)("proportional-nums inline-block",c1[n],r),children:o})})});var c4=n(96577),c3=n.n(c4);let c5=(0,em.j)(["rounded"]);function c6(e){let{className:t,...n}=e;return(0,y.jsx)(c3(),{className:c5({className:t}),...n})}let[c8,c7]=(0,j.k)("Label",{id:void 0,controlRef:{current:null}}),c9=(0,x.forwardRef)((e,t)=>{let{htmlFor:n,id:r,...i}=e,o=(0,x.useRef)(null),a=(0,x.useRef)(null),s=(0,E.e)(t,a),l=(0,A.M)(r);return(0,x.useEffect)(()=>{if(n){let e=document.getElementById(n),t=a.current;if(t&&e){let t=()=>e.getAttribute("aria-labelledby"),n=[l,t()].filter(Boolean).join(" ");return e.setAttribute("aria-labelledby",n),o.current=e,()=>{var n;let r=null===(n=t())||void 0===n?void 0:n.replace(l,"");""===r?e.removeAttribute("aria-labelledby"):r&&e.setAttribute("aria-labelledby",r)}}}},[l,n]),(0,x.createElement)(c8,{id:l,controlRef:o},(0,x.createElement)(O.WV.span,(0,w.Z)({role:"label",id:l},i,{ref:s,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()},onClick:t=>{var n;if(null===(n=e.onClick)||void 0===n||n.call(e,t),!o.current||t.defaultPrevented)return;let r=o.current.contains(t.target),i=!0===t.isTrusted;!r&&i&&(o.current.click(),o.current.focus())}})))}),de=e=>{let t=c7("LabelConsumer"),{controlRef:n}=t;return(0,x.useEffect)(()=>{e&&(n.current=e)},[e,n]),t.id},dt=x.forwardRef((e,t)=>{let{font:n,size:r="14",scaleSize:i,weight:o,color:a="verySubtle",noWrap:s,ellipsis:l,className:u,...c}=e;return(0,y.jsx)(c9,{ref:t,...c,className:cI({font:n,size:r,scaleSize:i,color:a,weight:o,noWrap:s,ellipsis:l,className:u})})}),dn=(0,em.j)(["cursor-pointer"],{variants:{disabled:{true:"opacity-50 pointer-events-none"},underline:{accent:"underline underline-offset-4 decoration-2 decoration-accentdark-900 dark:decoration-accentdark-900",default:"underline underline-offset-4",hover:"hover:underline underline-offset-4",none:""}},defaultVariants:{disabled:!1,underline:"default"}}),dr=e=>{let{font:t,size:n,scaleSize:r,color:i,weight:o,noWrap:a,ellipsis:s,underline:l,disabled:u,className:c}=e;return(0,em.cx)(t0({scaleSize:r,size:n,font:t,color:i,weight:o,noWrap:a,ellipsis:s,underline:l}),dn({disabled:u,underline:l}),c)},di=x.forwardRef((e,t)=>{let{href:n,font:r,size:i,scaleSize:o,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f,rel:h,target:p,onClick:m,...v}=e,g=(0,x.useCallback)(e=>{m&&(n||e.preventDefault(),m(e))},[m,n]);return(0,y.jsx)(cQ(),{href:n||"#",ref:t,className:dr({font:r,scaleSize:o,size:i,color:a,weight:s,noWrap:l,ellipsis:u,underline:c,disabled:d,className:f}),...v,onClick:g,rel:h||("_blank"===p?"noopener":void 0),target:p})}),da=x.forwardRef((e,t)=>{let{href:n,disabled:r,variant:i,size:o,state:a,rounded:s,icon:l,className:u,tip:c,rel:d,target:f,onClick:h,...p}=e,m=d||("_blank"===f?"noopener":void 0),v=(0,x.useCallback)(e=>{h&&(n||e.preventDefault(),h(e))},[h,n]);return c?(0,y.jsx)(ls,{content:c,children:(0,y.jsx)(cQ(),{href:n||"#",ref:t,className:ll({variant:i,size:o,state:a,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}):(0,y.jsx)(cQ(),{href:n||"#",ref:t,className:ll({variant:i,size:o,state:a,rounded:s,disabled:r,icon:l,className:u}),onClick:v,...p,rel:m,target:f})}),ds={src:"/_next/static/media/logo.0e2362ab.png"};function dl(e){let{size:t=30,className:n}=e;return(0,y.jsx)(c6,{priority:!0,src:"/_next/static/media/logo.0e2362ab.png",alt:"Logo",width:t,height:t,className:n})}let du="Popover",[dc,dd]=(0,j.b)(du,[th]),df=th(),[dh,dp]=dc(du),dm=(0,x.forwardRef)((e,t)=>{let{__scopePopover:n,...r}=e,i=dp("PopoverTrigger",n),o=df(n),a=(0,E.e)(t,i.triggerRef),s=(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dk(i.open)},r,{ref:a,onClick:(0,_.M)(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?s:(0,x.createElement)(tv,(0,w.Z)({asChild:!0},o),s)}),dv="PopoverPortal",[dg,dy]=dc(dv,{forceMount:void 0}),dx="PopoverContent",db=(0,x.forwardRef)((e,t)=>{let n=dy(dx,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=dp(dx,e.__scopePopover);return(0,x.createElement)(T.z,{present:r||o.open},o.modal?(0,x.createElement)(dw,(0,w.Z)({},i,{ref:t})):(0,x.createElement)(dj,(0,w.Z)({},i,{ref:t})))}),dw=(0,x.forwardRef)((e,t)=>{let n=dp(dx,e.__scopePopover),r=(0,x.useRef)(null),i=(0,E.e)(t,r),o=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=r.current;if(e)return(0,uD.R)(e)},[]),(0,x.createElement)(uL.Z,{as:k.g7,allowPinchZoom:!0},(0,x.createElement)(dE,(0,w.Z)({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,_.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),o.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,_.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,_.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})))}),dj=(0,x.forwardRef)((e,t)=>{let n=dp(dx,e.__scopePopover),r=(0,x.useRef)(!1);return(0,x.createElement)(dE,(0,w.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,o;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var i,o;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0);let a=t.target,s=null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(a);s&&t.preventDefault()}}))}),dE=(0,x.forwardRef)((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=dp(dx,n),h=df(n);return(0,uy.EW)(),(0,x.createElement)(ux.M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,x.createElement)(ev.XB,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1)},(0,x.createElement)(tj,(0,w.Z)({"data-state":dk(f.open),role:"dialog",id:f.contentId},h,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function dk(e){return e?"open":"closed"}let dS=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!1}=e,s=df(t),l=(0,x.useRef)(null),[u,c]=(0,x.useState)(!1),[d=!1,f]=(0,C.T)({prop:r,defaultProp:i,onChange:o});return(0,x.createElement)(tM,s,(0,x.createElement)(dh,{scope:t,contentId:(0,A.M)(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:(0,x.useCallback)(()=>f(e=>!e),[f]),hasCustomAnchor:u,onCustomAnchorAdd:(0,x.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,x.useCallback)(()=>c(!1),[]),modal:a},n))},d_=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=dp(dv,t);return(0,x.createElement)(dg,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(tT.h,{asChild:!0,container:i},r)))},dC=(0,em.j)([lo,"relative","z-10","outline-none","max-w-sm","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),dO=(0,em.cx)(t4(),(0,em.j)(["py-1","px-1"])()),dM={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},dT=x.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{open:a,onOpenChange:s}=le({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,y.jsxs)(dS,{open:a,onOpenChange:s,...i,children:[(0,y.jsx)(dm,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:a?(0,y.jsx)(d_,{forceMount:!0,children:(0,y.jsx)(db,{asChild:!0,forceMount:!0,ref:t,...o,children:(0,y.jsx)(s9.div,{variants:dM,initial:"init",animate:"show",exit:"exit",className:dC(),children:(0,y.jsx)(ul,{className:dO,children:r})})})}):null})]})}),dA="Progress",[dP,dN]=(0,j.b)(dA),[dR,dD]=dP(dA),dL=(0,x.forwardRef)((e,t)=>{let{__scopeProgress:n,value:r,max:i,getValueLabel:o=dz,...a}=e,s=dZ(i)?i:100,l=dB(r,s)?r:null,u=dI(l)?o(l,s):void 0;return(0,x.createElement)(dR,{scope:n,value:l,max:s},(0,x.createElement)(O.WV.div,(0,w.Z)({"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":dI(l)?l:void 0,"aria-valuetext":u,role:"progressbar","data-state":dV(l,s),"data-value":null!=l?l:void 0,"data-max":s},a,{ref:t})))});dL.propTypes={max(e,t,n){let r=e[t],i=String(r);return r&&!dZ(r)?Error(`Invalid prop \`max\` of value \`${i}\` supplied to \`${n}\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`):null},value(e,t,n){let r=e[t],i=String(r),o=dZ(e.max)?e.max:100;return null==r||dB(r,o)?null:Error(`Invalid prop \`value\` of value \`${i}\` supplied to \`${n}\`. The \`value\` prop must be: - a positive number - less than the value passed to \`max\` (or 100 if no \`max\` prop is set) - \`null\` if the progress is indeterminate. -Defaulting to \`null\`.`)}};let dF=(0,b.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,o=dD("ProgressIndicator",r);return(0,b.createElement)(O.WV.div,(0,w.Z)({"data-state":dV(o.value,o.max),"data-value":null!==(n=o.value)&&void 0!==n?n:void 0,"data-max":o.max},i,{ref:t}))});function dz(e,t){return`${Math.round(e/t*100)}%`}function dV(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function dI(e){return"number"==typeof e}function dZ(e){return dI(e)&&!isNaN(e)&&e>0}function dB(e,t){return dI(e)&&!isNaN(e)&&e<=t&&e>=0}let dH=(0,em.j)(["relative h-1 w-full overflow-hidden rounded-lg"],{variants:{variant:{gray:"bg-gray-700 dark:bg-graydark-700",accent:"bg-green-600 dark:bg-green-500"}},defaultVariants:{variant:"gray"}}),dU=b.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:o,max:a=100,...s}=e,l=null!=o?Math.round(o/a*100):null;return(0,y.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,y.jsx)(dL,{...s,ref:t,value:o,max:a,className:dH({variant:r,className:i}),children:(0,y.jsx)(dF,{className:"absolute top-0 right-0 left-0 bottom-0 w-full bg-gray-300 dark:bg-graydark-300 transition-transform",style:{transform:"translateX(".concat(l,"%)")}})}),n&&(0,y.jsx)(t1,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function dW(e){let t=(0,b.useRef)({value:e,previous:e});return(0,b.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let dq="Radio",[d$,dK]=(0,j.b)(dq),[dY,dG]=d$(dq),dX=(0,b.forwardRef)((e,t)=>{let{__scopeRadio:n,"aria-labelledby":r,name:i,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,f]=(0,b.useState)(null),h=(0,E.e)(t,e=>f(e)),p=de(d),m=(0,b.useRef)(!1),v=!d||!!d.closest("form");return(0,b.createElement)(dY,{scope:n,checked:o,disabled:s},(0,b.createElement)(O.WV.button,(0,w.Z)({type:"button",role:"radio","aria-checked":o,"aria-labelledby":r||p,"data-state":d0(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,_.M)(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,b.createElement)(dQ,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),dJ=(0,b.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=dG("RadioIndicator",n);return(0,b.createElement)(T.z,{present:r||o.checked},(0,b.createElement)(O.WV.span,(0,w.Z)({"data-state":d0(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),dQ=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,b.useRef)(null),a=dW(n),s=tc(t);return(0,b.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,b.createElement)("input",(0,w.Z)({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function d0(e){return e?"checked":"unchecked"}let d1=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],d2="RadioGroup",[d4,d3]=(0,j.b)(d2,[uC,dK]),d5=uC(),d6=dK(),[d8,d7]=d4(d2),d9=(0,b.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,name:r,"aria-labelledby":i,defaultValue:o,value:a,required:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=de(),p=d5(n),m=lV(u),[v,g]=(0,C.T)({prop:a,defaultProp:o,onChange:d});return(0,b.createElement)(d8,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,b.createElement)(uT,(0,w.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,b.createElement)(O.WV.div,(0,w.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),fe=(0,b.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=d7("RadioGroupItem",n),a=d5(n),s=d6(n),l=(0,b.useRef)(null),u=(0,E.e)(t,l),c=o.value===i.value,d=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=e=>{d1.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,b.createElement)(uP,(0,w.Z)({asChild:!0},a,{focusable:!r,active:c}),(0,b.createElement)(dX,(0,w.Z)({disabled:r,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:(0,_.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,_.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),ft=(0,b.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=d6(n);return(0,b.createElement)(dJ,(0,w.Z)({},i,r,{ref:t}))}),fn=(0,em.j)(["relative flex items-center h-full justify-center w-full",'after:content-[""] after:block after:rounded-full after:bg-green-600 after:dark:bg-green-500'],{variants:{size:{small:"after:w-2 after:h-2 ",medium:"after:w-4 after:h-4"}},defaultVariants:{size:"small"}}),fr=(0,em.j)(["select-none","inline-flex items-center justify-center","m-0 p-0","outline-none","rounded-full","overflow-hidden","focus:ring ring-blue-500 dark:ring-blue-200","bg-white dark:bg-graydark-200","border border-gray-500 dark:border-graydark-400","enabled:hover:border-gray-700 enabled:hover:dark:border-graydark-600","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-400","disabled:bg-gray-200 disabled:dark:bg-graydark-200"],{variants:{size:{small:"w-4 h-4",medium:"w-6 h-6"}},defaultVariants:{size:"small"}}),fi=b.forwardRef((e,t)=>{let{size:n,className:r,children:i,...o}=e;return(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(fe,{...o,className:fr({size:n,className:r}),ref:t,children:(0,y.jsx)(ft,{className:fn({size:n})})}),(0,y.jsx)(t1,{size:"14",className:"relative top-px flex items-center",color:o.disabled?"verySubtle":"subtle",children:i})]})}),fo=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(d9,{...r,className:(0,em.cx)("flex gap-2",n),ref:t})}),fa="Tabs",[fs,fl]=(0,j.b)(fa,[uC]),fu=uC(),[fc,fd]=fs(fa),ff=(0,b.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:a="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=lV(s),[d,f]=(0,C.T)({prop:r,onChange:i,defaultProp:o});return(0,b.createElement)(fc,{scope:n,baseId:(0,A.M)(),value:d,onValueChange:f,orientation:a,dir:c,activationMode:l},(0,b.createElement)(O.WV.div,(0,w.Z)({dir:c,"data-orientation":a},u,{ref:t})))}),fh=(0,b.forwardRef)((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,o=fd("TabsList",n),a=fu(n);return(0,b.createElement)(uT,(0,w.Z)({asChild:!0},a,{orientation:o.orientation,dir:o.dir,loop:r}),(0,b.createElement)(O.WV.div,(0,w.Z)({role:"tablist","aria-orientation":o.orientation},i,{ref:t})))}),fp=(0,b.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,a=fd("TabsTrigger",n),s=fu(n),l=fv(a.baseId,r),u=fg(a.baseId,r),c=r===a.value;return(0,b.createElement)(uP,(0,w.Z)({asChild:!0},s,{focusable:!i,active:c}),(0,b.createElement)(O.WV.button,(0,w.Z)({type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l},o,{ref:t,onMouseDown:(0,_.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)}),onKeyDown:(0,_.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)}),onFocus:(0,_.M)(e.onFocus,()=>{let e="manual"!==a.activationMode;c||i||!e||a.onValueChange(r)})})))}),fm=(0,b.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:o,...a}=e,s=fd("TabsContent",n),l=fv(s.baseId,r),u=fg(s.baseId,r),c=r===s.value,d=(0,b.useRef)(c);return(0,b.useEffect)(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,b.createElement)(T.z,{present:i||c},({present:n})=>(0,b.createElement)(O.WV.div,(0,w.Z)({"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&o))});function fv(e,t){return`${e}-trigger-${t}`}function fg(e,t){return`${e}-content-${t}`}let fy=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(ff,{ref:t,className:(0,em.cx)("flex flex-col",n),...r})}),fb=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(fh,{ref:t,className:(0,em.cx)("flex flex-shrink-0 border-b border-gray-500 dark:border-graydark-500",n),...r})}),fx=b.forwardRef((e,t)=>{let{font:n,size:r="16",weight:i="medium",className:o,...a}=e;return(0,y.jsx)(fp,{ref:t,type:"button",className:(0,em.cx)("px-10 h-12","flex-1 flex items-center justify-center","outline-none","select-none cursor-pointer","border-b-3","text-gray-1000 dark:text-graydark-1000","hover:text-gray-1100 hover:dark:text-white","border-transparent","data-[state=active]:text-accent-1100 data-[state=active]:dark:text-accentdark-1100","data-[state=active]:border-green-600 data-[state=active]:dark:border-green-500",t0({font:n,size:r,weight:i,ellipsis:!0}),o),...a})}),fw=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(fm,{ref:t,className:(0,em.cx)("flex-grow-1 pt-6 outline-none",n),...r})});(0,em.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",t0(),"tabular-nums","resize-y","rounded","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","placeholder:text-gray-600 placeholder:dark:text-graydark-500","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},cursor:{default:"",text:"cursor-text"}},defaultVariants:{size:"small",variant:"default",cursor:"default",state:"default"}});let fj=(0,em.j)(["font-sans [type=number]:font-mono","outline-none m-0 p-0 w-full","disabled:pointer-events-none","tabular-nums","rounded","text-gray-1100 dark:text-white","autofill:text-fill-gray-1100 autofill:dark:text-fill-white","autofill:placeholder:text-fill-gray-700 autofill:placeholder:dark:text-fill-graydark-700","placeholder:text-gray-700 placeholder:dark:text-graydark-700","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-white autofill:dark:bg-graydark-50","autofill:shadow-fill-white autofill:dark:shadow-fill-graydark-50"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},focus:{default:["focus:ring ring-blue-500 dark:ring-blue-200","focus:z-10"],none:""},cursor:{default:"",text:"cursor-text"},noSpin:{true:"[&::-webkit-outer-spin-button, &::-webkit-inner-spin-button]:appearance-none"}},defaultVariants:{size:"small",focus:"default",variant:"default",cursor:"default",state:"default"}}),fE=b.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,y.jsx)("input",{ref:t,className:fj({variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});/*! ***************************************************************************** +Defaulting to \`null\`.`)}};let dF=(0,x.forwardRef)((e,t)=>{var n;let{__scopeProgress:r,...i}=e,o=dD("ProgressIndicator",r);return(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":dV(o.value,o.max),"data-value":null!==(n=o.value)&&void 0!==n?n:void 0,"data-max":o.max},i,{ref:t}))});function dz(e,t){return`${Math.round(e/t*100)}%`}function dV(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function dI(e){return"number"==typeof e}function dZ(e){return dI(e)&&!isNaN(e)&&e>0}function dB(e,t){return dI(e)&&!isNaN(e)&&e<=t&&e>=0}let dH=(0,em.j)(["relative h-1 w-full overflow-hidden rounded-lg"],{variants:{variant:{gray:"bg-gray-700 dark:bg-graydark-700",accent:"bg-green-600 dark:bg-green-500"}},defaultVariants:{variant:"gray"}}),dU=x.forwardRef((e,t)=>{let{label:n,variant:r,className:i,value:o,max:a=100,...s}=e,l=null!=o?Math.round(o/a*100):null;return(0,y.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,y.jsx)(dL,{...s,ref:t,value:o,max:a,className:dH({variant:r,className:i}),children:(0,y.jsx)(dF,{className:"absolute top-0 right-0 left-0 bottom-0 w-full bg-gray-300 dark:bg-graydark-300 transition-transform",style:{transform:"translateX(".concat(l,"%)")}})}),n&&(0,y.jsx)(t1,{color:"subtle",size:"12",ellipsis:!0,children:n})]})});function dW(e){let t=(0,x.useRef)({value:e,previous:e});return(0,x.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}let dq="Radio",[d$,dK]=(0,j.b)(dq),[dY,dG]=d$(dq),dX=(0,x.forwardRef)((e,t)=>{let{__scopeRadio:n,"aria-labelledby":r,name:i,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:u,...c}=e,[d,f]=(0,x.useState)(null),h=(0,E.e)(t,e=>f(e)),p=de(d),m=(0,x.useRef)(!1),v=!d||!!d.closest("form");return(0,x.createElement)(dY,{scope:n,checked:o,disabled:s},(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button",role:"radio","aria-checked":o,"aria-labelledby":r||p,"data-state":d0(o),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:h,onClick:(0,_.M)(e.onClick,e=>{o||null==u||u(),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})),v&&(0,x.createElement)(dQ,{control:d,bubbles:!m.current,name:i,value:l,checked:o,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),dJ=(0,x.forwardRef)((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=dG("RadioIndicator",n);return(0,x.createElement)(T.z,{present:r||o.checked},(0,x.createElement)(O.WV.span,(0,w.Z)({"data-state":d0(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),dQ=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,x.useRef)(null),a=dW(n),s=tc(t);return(0,x.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,x.createElement)("input",(0,w.Z)({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function d0(e){return e?"checked":"unchecked"}let d1=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],d2="RadioGroup",[d4,d3]=(0,j.b)(d2,[uC,dK]),d5=uC(),d6=dK(),[d8,d7]=d4(d2),d9=(0,x.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,name:r,"aria-labelledby":i,defaultValue:o,value:a,required:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,h=de(),p=d5(n),m=lV(u),[v,g]=(0,C.T)({prop:a,defaultProp:o,onChange:d});return(0,x.createElement)(d8,{scope:n,name:r,required:s,value:v,onValueChange:g},(0,x.createElement)(uT,(0,w.Z)({asChild:!0},p,{orientation:l,dir:m,loop:c}),(0,x.createElement)(O.WV.div,(0,w.Z)({role:"radiogroup","aria-required":s,"aria-orientation":l,"aria-labelledby":i||h,dir:m},f,{ref:t}))))}),fe=(0,x.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,o=d7("RadioGroupItem",n),a=d5(n),s=d6(n),l=(0,x.useRef)(null),u=(0,E.e)(t,l),c=o.value===i.value,d=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=e=>{d1.includes(e.key)&&(d.current=!0)},t=()=>d.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,x.createElement)(uP,(0,w.Z)({asChild:!0},a,{focusable:!r,active:c}),(0,x.createElement)(dX,(0,w.Z)({disabled:r,required:o.required,checked:c},s,i,{name:o.name,ref:u,onCheck:()=>o.onValueChange(i.value),onKeyDown:(0,_.M)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,_.M)(i.onFocus,()=>{var e;d.current&&(null===(e=l.current)||void 0===e||e.click())})})))}),ft=(0,x.forwardRef)((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=d6(n);return(0,x.createElement)(dJ,(0,w.Z)({},i,r,{ref:t}))}),fn=(0,em.j)(["relative flex items-center h-full justify-center w-full",'after:content-[""] after:block after:rounded-full after:bg-green-600 after:dark:bg-green-500'],{variants:{size:{small:"after:w-2 after:h-2 ",medium:"after:w-4 after:h-4"}},defaultVariants:{size:"small"}}),fr=(0,em.j)(["select-none","inline-flex items-center justify-center","m-0 p-0","outline-none","rounded-full","overflow-hidden","focus:ring ring-blue-500 dark:ring-blue-200","bg-white dark:bg-graydark-200","border border-gray-500 dark:border-graydark-400","enabled:hover:border-gray-700 enabled:hover:dark:border-graydark-600","text-gray-1100 dark:text-white","disabled:text-gray-600 disabled:dark:text-graydark-400","disabled:bg-gray-200 disabled:dark:bg-graydark-200"],{variants:{size:{small:"w-4 h-4",medium:"w-6 h-6"}},defaultVariants:{size:"small"}}),fi=x.forwardRef((e,t)=>{let{size:n,className:r,children:i,...o}=e;return(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(fe,{...o,className:fr({size:n,className:r}),ref:t,children:(0,y.jsx)(ft,{className:fn({size:n})})}),(0,y.jsx)(t1,{size:"14",className:"relative top-px flex items-center",color:o.disabled?"verySubtle":"subtle",children:i})]})}),fo=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(d9,{...r,className:(0,em.cx)("flex gap-2",n),ref:t})}),fa="Tabs",[fs,fl]=(0,j.b)(fa,[uC]),fu=uC(),[fc,fd]=fs(fa),ff=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:a="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=lV(s),[d,f]=(0,C.T)({prop:r,onChange:i,defaultProp:o});return(0,x.createElement)(fc,{scope:n,baseId:(0,A.M)(),value:d,onValueChange:f,orientation:a,dir:c,activationMode:l},(0,x.createElement)(O.WV.div,(0,w.Z)({dir:c,"data-orientation":a},u,{ref:t})))}),fh=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,o=fd("TabsList",n),a=fu(n);return(0,x.createElement)(uT,(0,w.Z)({asChild:!0},a,{orientation:o.orientation,dir:o.dir,loop:r}),(0,x.createElement)(O.WV.div,(0,w.Z)({role:"tablist","aria-orientation":o.orientation},i,{ref:t})))}),fp=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,a=fd("TabsTrigger",n),s=fu(n),l=fv(a.baseId,r),u=fg(a.baseId,r),c=r===a.value;return(0,x.createElement)(uP,(0,w.Z)({asChild:!0},s,{focusable:!i,active:c}),(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l},o,{ref:t,onMouseDown:(0,_.M)(e.onMouseDown,e=>{i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)}),onKeyDown:(0,_.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)}),onFocus:(0,_.M)(e.onFocus,()=>{let e="manual"!==a.activationMode;c||i||!e||a.onValueChange(r)})})))}),fm=(0,x.forwardRef)((e,t)=>{let{__scopeTabs:n,value:r,forceMount:i,children:o,...a}=e,s=fd("TabsContent",n),l=fv(s.baseId,r),u=fg(s.baseId,r),c=r===s.value,d=(0,x.useRef)(c);return(0,x.useEffect)(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,x.createElement)(T.z,{present:i||c},({present:n})=>(0,x.createElement)(O.WV.div,(0,w.Z)({"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&o))});function fv(e,t){return`${e}-trigger-${t}`}function fg(e,t){return`${e}-content-${t}`}let fy=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(ff,{ref:t,className:(0,em.cx)("flex flex-col",n),...r})}),fx=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(fh,{ref:t,className:(0,em.cx)("flex flex-shrink-0 border-b border-gray-500 dark:border-graydark-500",n),...r})}),fb=x.forwardRef((e,t)=>{let{font:n,size:r="16",weight:i="medium",className:o,...a}=e;return(0,y.jsx)(fp,{ref:t,type:"button",className:(0,em.cx)("px-10 h-12","flex-1 flex items-center justify-center","outline-none","select-none cursor-pointer","border-b-3","text-gray-1000 dark:text-graydark-1000","hover:text-gray-1100 hover:dark:text-white","border-transparent","data-[state=active]:text-accent-1100 data-[state=active]:dark:text-accentdark-1100","data-[state=active]:border-green-600 data-[state=active]:dark:border-green-500",t0({font:n,size:r,weight:i,ellipsis:!0}),o),...a})}),fw=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(fm,{ref:t,className:(0,em.cx)("flex-grow-1 pt-6 outline-none",n),...r})});(0,em.j)(["relative appearance-none outline-none","p-2 m-0 w-full","min-h-[80px]",t0(),"tabular-nums","resize-y","rounded","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","placeholder:text-gray-600 placeholder:dark:text-graydark-500","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},cursor:{default:"",text:"cursor-text"}},defaultVariants:{size:"small",variant:"default",cursor:"default",state:"default"}});let fj=(0,em.j)(["font-sans [type=number]:font-mono","outline-none m-0 p-0 w-full","disabled:pointer-events-none","tabular-nums","rounded","text-gray-1100 dark:text-white","autofill:text-fill-gray-1100 autofill:dark:text-fill-white","autofill:placeholder:text-fill-gray-700 autofill:placeholder:dark:text-fill-graydark-700","placeholder:text-gray-700 placeholder:dark:text-graydark-700","disabled:text-gray-400 disabled:dark:text-graydark-400"],{variants:{size:{small:"h-7 text-sm px-2",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},variant:{default:["border","bg-white dark:bg-graydark-50","autofill:bg-white autofill:dark:bg-graydark-50","autofill:shadow-fill-white autofill:dark:shadow-fill-graydark-50"],ghost:"bg-transparent"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]},focus:{default:["focus:ring ring-blue-500 dark:ring-blue-200","focus:z-10"],none:""},cursor:{default:"",text:"cursor-text"},noSpin:{true:"[&::-webkit-outer-spin-button, &::-webkit-inner-spin-button]:appearance-none"}},defaultVariants:{size:"small",focus:"default",variant:"default",cursor:"default",state:"default"}}),fE=x.forwardRef((e,t)=>{let{variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l,...u}=e;return(0,y.jsx)("input",{ref:t,className:fj({variant:n,size:r,state:i,noSpin:o,cursor:a,focus:s,className:l}),...u})});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -44,7 +44,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var fk=function(){return(fk=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1){if(e.includes(t)){var r=e.split(t),i=r[0],o=r[1];if(o.length>n)return""+i+t+o.slice(0,n)}var a=e.length>n?RegExp("(\\d+)(\\d{"+n+"})"):RegExp("(\\d)(\\d+)"),s=e.match(a);if(s){var i=s[1],o=s[2];return""+i+t+o}}return e},fN=function(e,t){var n=t.groupSeparator,r=t.decimalSeparator,i=RegExp("\\d([^"+f_(void 0===n?",":n)+f_(void 0===r?".":r)+"0-9]+)"),o=e.match(i);return o?o[1]:void 0},fR=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=RegExp("^\\d?-"+(a?f_(a)+"?":"")+"\\d").test(t),c="."!==n?fD(t,n,u):t,d=fL((r?new Intl.NumberFormat(r.locale,r.currency?{style:"currency",currency:r.currency,minimumFractionDigits:i||0,maximumFractionDigits:20}:void 0):new Intl.NumberFormat(void 0,{minimumFractionDigits:i||0,maximumFractionDigits:20})).formatToParts(Number(c)),e),f=fN(d,fk({},e)),h=t.slice(-1)===n?n:"",p=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return(void 0===i&&p&&n&&(d=d.includes(n)?d.replace(RegExp("(\\d+)("+f_(n)+")(\\d+)","g"),"$1$2"+p):f&&!l?d.replace(f,""+n+p+f):""+d+n+p),l&&h)?""+d+h+l:f&&h?d.replace(f,""+h+f):f&&l?d.replace(f,""+h+l):[d,h,l].join("")},fD=function(e,t,n){var r=e;return t&&"."!==t&&(r=r.replace(RegExp(f_(t),"g"),"."),n&&"-"===t&&(r="-"+r.slice(1))),r},fL=function(e,t){var n=t.prefix,r=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce(function(e,t,a){var l=t.type,u=t.value;return 0===a&&n?"minusSign"===l?[u,n]:"currency"===l?fS(fS([],e),[n]):[n,u]:"currency"===l?n?e:fS(fS([],e),[u]):"group"===l?s?e:fS(fS([],e),[void 0!==r?r:u]):"decimal"===l?void 0!==o&&0===o?e:fS(fS([],e),[void 0!==i?i:u]):"fraction"===l?fS(fS([],e),[void 0!==o?u.slice(0,o):u]):fS(fS([],e),[u])},[""]).join("")},fF={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},fz=function(e){var t=e||{},n=t.locale,r=t.currency;return(n?new Intl.NumberFormat(n,r?{currency:r,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce(function(e,t,n){return"currency"===t.type?0===n?fk(fk({},e),{currencySymbol:t.value,prefix:t.value}):fk(fk({},e),{currencySymbol:t.value,suffix:t.value}):"group"===t.type?fk(fk({},e),{groupSeparator:t.value}):"decimal"===t.type?fk(fk({},e),{decimalSeparator:t.value}):e},fF)},fV=function(e){return RegExp(/\d/,"gi").test(e)},fI=function(e,t,n){if(void 0===t&&(t="."),void 0===n||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var r=e.split(t),i=r[0],o=r[1];if(0===n)return i;var a=o||"";if(a.lengtht.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(C&&fV(C))throw Error("decimalSeparator cannot be a number");if(O&&fV(O))throw Error("groupSeparator cannot be a number");var L=(0,b.useMemo)(function(){return fz(x)},[x]),F=C||L.decimalSeparator||"",z=O||L.groupSeparator||"";if(F&&z&&F===z&&!1===S)throw Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:F,groupSeparator:z,disableGroupSeparators:S,intlConfig:x,prefix:g||L.prefix,suffix:y},I={decimalSeparator:F,groupSeparator:z,allowDecimals:void 0===n||n,decimalsLimit:l||p||2,allowNegativeValue:void 0===r||r,disableAbbreviations:void 0!==_&&_,prefix:g||L.prefix,transformRawValue:R},Z=null!=u?fR(fk(fk({},V),{decimalScale:v,value:String(u)})):null!=f?fR(fk(fk({},V),{decimalScale:v,value:String(f)})):"",B=(0,b.useState)(Z),H=B[0],U=B[1],W=(0,b.useState)(!1),q=W[0],$=W[1],K=(0,b.useState)(0),Y=K[0],G=K[1],X=(0,b.useState)(0),J=X[0],Q=X[1],ee=(0,b.useState)(null),et=ee[0],en=ee[1],er=t||(0,b.useRef)(null),ei=function(e,t){$(!0);var n=fZ({selectionStart:t,value:e,lastKeyStroke:et,stateValue:H,groupSeparator:z}),r=n.modifiedValue,i=n.cursorPosition,a=fA(fk({value:r},I));if(!d||!(a.replace(/-/g,"").length>d)){if(""===a||"-"===a||a===F){h&&h(void 0,o,{float:null,formatted:"",value:""}),U(a);return}var s=parseFloat(a.replace(F,".")),l=fR(fk({value:a},V));if(null!=i){var u=i+(l.length-e.length);G(u=u<=0?g?g.length:0:u),Q(J+1)}U(l),h&&h(a,o,{float:s,formatted:l,value:a})}};(0,b.useEffect)(function(){q&&"-"!==H&&er&&"object"==typeof er&&er.current&&er.current.setSelectionRange(Y,Y)},[H,Y,er,q,J]);var eo=fk({type:"text",inputMode:"decimal",id:i,name:o,className:a,onChange:function(e){var t=e.target;ei(t.value,t.selectionStart),M&&M(e)},onBlur:function(e){var t=e.target.value,n=fA(fk({value:t},I));if("-"===n||!n){U(""),A&&A(e);return}var r=fI(fP(n,F,p),F,void 0!==v?v:p),i=parseFloat(r.replace(F,".")),a=fR(fk(fk({},V),{value:r}));h&&h(r,o,{float:i,formatted:a,value:r}),U(a),A&&A(e)},onFocus:function(e){return T&&T(e),H?H.length:0},onKeyDown:function(e){var t=e.key;if(en(t),w&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),G(H.length);var n=parseFloat(null!=f?String(f).replace(F,"."):fA(fk({value:H},I)))||0,r="ArrowUp"===t?n+w:n-w;if(void 0!==j&&rE)return;var i=String(w).includes(".")?Number(String(w).split(".")[1].length):void 0;ei(String(i?r.toFixed(i):r).replace(".",F))}P&&P(e)},onKeyUp:function(e){var t=e.key,n=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==H){var r=fN(H,{groupSeparator:z,decimalSeparator:F});if(r&&n&&n>H.length-r.length&&er&&"object"==typeof er&&er.current){var i=H.length-r.length;er.current.setSelectionRange(i,i)}}N&&N(e)},placeholder:m,disabled:void 0!==c&&c,value:null==f||"-"===H||F&&H===F?H:fR(fk(fk({},V),{decimalScale:q?void 0:v,value:String(f)})),ref:er},D);return s?b.createElement(s,fk({},eo)):b.createElement("input",fk({},eo))});function fH(e){let{units:t,variant:n,size:r="small",state:i,noSpin:o,focus:a,cursor:s,className:l,decimalsLimit:u,onValueChange:c,...d}=e,[f,h]=(0,b.useState)();return(0,b.useEffect)(()=>{h(navigator.language)},[]),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(fB,{...d,decimalsLimit:u,intlConfig:f?{locale:f}:void 0,allowDecimals:!!u,autoComplete:"off",spellCheck:!1,onValueChange:c,className:(0,em.cx)(fj({variant:n,size:r,state:i,focus:a,noSpin:o,cursor:s,className:l}),t?"pr-9":"")}),t&&(0,y.jsx)("div",{className:(0,em.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,y.jsx)(t1,{size:"12",weight:"medium",color:"subtle",children:t})})]})}fB.displayName="CurrencyInput";var fU=n(6391),fW=n.n(fU);function fq(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}let f$=(0,b.forwardRef)(function(e,t){let{value:n,placeholder:r=new(fW())(100),decimalsLimit:i=6,onChange:o,size:a="small",units:s,error:l,changed:u,onBlur:c,onFocus:d,...f}=e,h=(0,b.useMemo)(()=>new(fW())(n),[n]),[p,m]=(0,b.useState)(""),v=(0,b.useMemo)(()=>fK(p),[p]),g=(0,b.useCallback)(e=>{o&&o((e=fK(e))&&!isNaN(Number(e))?new(fW())(e):void 0)},[o]),x=(0,b.useCallback)(e=>{m(e),g(e)},[m,g]);return(0,b.useEffect)(()=>{if(!h.isEqualTo(v)){let e=fq(h,i);m(e)}},[h]),(0,y.jsx)(fH,{ref:t,...f,"data-testid":"numberfield",size:a,placeholder:r.isNaN()?"":r.toFixed(i),units:s,value:"NaN"!==p?p:"",decimalsLimit:i,onBlur:e=>{c&&c(e)},onFocus:e=>{d&&d(e)},onValueChange:e=>x(e||"")})});function fK(e){return(null==e?void 0:e.replace(/,/g,"."))||""}var fY=n(2850),fG=n(47025);let fX=new(fW())(0),fJ=(0,b.forwardRef)(function(e,t){let{sc:n,placeholder:r=new(fW())(100),decimalsLimitFiat:i=6,decimalsLimitSc:o=6,onChange:a,size:s="medium",units:l="SC",showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,...m}=e,v=(0,b.useMemo)(()=>new(fW())(void 0===n?NaN:n),[n]),{settings:g}=(0,fY.Hv)(),x=(0,fG.BW)({config:{swr:{revalidateOnFocus:!1}}}),w=(0,b.useMemo)(()=>{var e;return g.siaCentral&&x.data?new(fW())((null===(e=x.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||fX):fX},[x.data,g]),[j,E]=(0,b.useState)(),[k,S]=(0,b.useState)(""),[_,C]=(0,b.useState)(""),O=(0,b.useMemo)(()=>fQ(k),[k]),M=(0,b.useMemo)(()=>fQ(_),[_]),T=(0,b.useCallback)(e=>{a&&a((e=fQ(e))&&!isNaN(Number(e))?new(fW())(e):void 0)},[a]),A=(0,b.useCallback)(e=>{let t=fq(e,i);C(t)},[C,i]),P=(0,b.useCallback)(e=>{let t=fq(e,o);return S(t),T(t),t},[S,o,T]),N=(0,b.useCallback)(e=>{S(e),T(e)},[S,T]),R=(0,b.useCallback)(e=>{let t=new(fW())(e).times(w);A(t)},[A,w]),D=(0,b.useCallback)(e=>{let t=new(fW())(e).dividedBy(w);P(t)},[P,w]),[L,F]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{if(!v.isEqualTo(O)){let e=fq(v,o);S(e),"fiat"!==j&&R(e)}L||F(!0)},[v]),(0,b.useEffect)(()=>{L&&R(O)},[w]),(0,b.useEffect)(()=>{"sc"===j&&R(O)},[O]),(0,b.useEffect)(()=>{"fiat"===j&&D(M)},[M]),(0,y.jsxs)("div",{ref:t,className:(0,em.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,y.jsx)(fH,{...m,"data-testid":"scInput",size:s,variant:"ghost",focus:"none",placeholder:r.toFixed(o),units:l,value:"NaN"!==k?k:"",decimalsLimit:o,allowNegativeValue:!1,onBlur:e=>{E(void 0),h&&h(e)},onFocus:e=>{E("sc"),p&&p(e)},onValueChange:e=>{N(e||"")}}),u&&g.siaCentral&&(0,y.jsx)(fH,{...m,"data-testid":"fiatInput",size:s,variant:"ghost",focus:"none",value:"NaN"!==_?_:"",units:g.currency.label,decimalsLimit:i,allowNegativeValue:!1,placeholder:"".concat(g.currency.prefix).concat(w?w.times(r).toFixed(i):"0.42"),prefix:f||g.currency.prefix,onFocus:e=>{E("fiat"),p&&p(e)},onBlur:e=>{E(void 0),h&&h(e)},onValueChange:e=>{C(e||"")}})]})});function fQ(e){return(null==e?void 0:e.replace(/,/g,"."))||""}function f0(e){let{children:t}=e;return(0,y.jsx)(ls,{content:t,children:(0,y.jsx)("div",{className:"relative flex items-center inline mx-1",children:(0,y.jsx)(t1,{color:"subtle",children:(0,y.jsx)(lc.RdX,{className:"scale-75"})})})})}function f1(e){let{values:t,options:n,onChange:r}=e;return(0,y.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,y.jsx)(lu,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}function f2(e){let{options:t,onClick:n,onRemove:r}=e;return(0,y.jsx)("div",{className:"flex flex-wrap gap-1",children:t.map(e=>(0,y.jsxs)(lR,{children:[(0,y.jsx)(lu,{variant:"active",onClick:()=>{n&&n(e.value)},children:e.label}),(0,y.jsx)(lu,{variant:"active",size:"small",onClick:()=>r(e.value),children:(0,y.jsx)(lc.PcV,{})})]},e.value))})}let f4=(0,em.j)(["font-sans","font-normal","tabular-nums","flex-shrink-0","rounded","flex items-center","bg-white dark:bg-graydark-200","hover:bg-gray-50 dark:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","autofill:bg-blue-100 autofill:dark:bg-blue-800","border","focus-within:z-10","focus-within:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","[&>select:disabled]:text-gray-600 [&>select:disabled]:dark:text-graydark-700"],{variants:{size:{small:"h-7 text-sm px-1",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{state:"default",size:"small"}}),f3=b.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:o,...a}=e;return(0,y.jsxs)("div",{className:f4({size:n,state:r,className:o}),children:[i,(0,y.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,y.jsx)(lc.Cp0,{className:"pointer-events-none scale-75"})]})}),f5=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("option",{ref:t,...r,className:(0,em.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),f6=(0,em.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function f8(e){let{className:t}=e;return(0,y.jsx)("div",{className:f6({className:t})})}let f7=(0,em.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),f9=b.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,y.jsx)("div",{ref:t,className:f7({size:n,className:r}),...i})}),he="Switch",[ht,hn]=(0,j.b)(he),[hr,hi]=ht(he),ho=(0,b.forwardRef)((e,t)=>{let{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:o,defaultChecked:a,required:s,disabled:l,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,b.useState)(null),p=(0,E.e)(t,e=>h(e)),m=de(f),v=(0,b.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,x]=(0,C.T)({prop:o,defaultProp:a,onChange:c});return(0,b.createElement)(hr,{scope:n,checked:y,disabled:l},(0,b.createElement)(O.WV.button,(0,w.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":hl(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,_.M)(e.onClick,e=>{x(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,b.createElement)(hs,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),ha=(0,b.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=hi("SwitchThumb",n);return(0,b.createElement)(O.WV.span,(0,w.Z)({"data-state":hl(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),hs=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,b.useRef)(null),a=dW(n),s=tc(t);return(0,b.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,b.createElement)("input",(0,w.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function hl(e){return e?"checked":"unchecked"}let hu=(0,em.j)(["absolute left-0 rounded-full","transition-transform","bg-white dark:bg-graydark-500"],{variants:{size:{small:["w-3 h-3","translate-x-px","data-[state=checked]:translate-x-[9px]"],medium:["w-5 h-5","translate-x-0.5","data-[state=checked]:translate-x-[20px]"]}},defaultVariants:{size:"small"}}),hc=(0,em.j)(["select-none outline-none","relative inline-flex items-center justify-center","m-0 rounded-full","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-6 h-4",medium:"w-11 h-6"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{size:"small",state:"default"}}),hd=(0,b.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:o,...a}=e;return(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(ho,{className:hc({size:n,state:r,className:i}),...a,ref:t,children:(0,y.jsx)(ha,{className:hu({size:n})})}),o&&(0,y.jsx)(t1,{color:a.disabled?"subtle":"contrast",children:o})]})}),hf=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(hm);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:b.Children.count(e)>1?b.Children.only(null):(0,b.isValidElement)(e)?e.props.children:null);return(0,b.createElement)(hh,(0,w.Z)({},r,{ref:t}),(0,b.isValidElement)(e)?(0,b.cloneElement)(e,void 0,n):null)}return(0,b.createElement)(hh,(0,w.Z)({},r,{ref:t}),n)});hf.displayName="Slot";let hh=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,b.isValidElement)(n)?(0,b.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,E.F)(t,n.ref)}):b.Children.count(n)>1?b.Children.only(null):null});hh.displayName="SlotClone";let hp=({children:e})=>(0,b.createElement)(b.Fragment,null,e);function hm(e){return(0,b.isValidElement)(e)&&e.type===hp}let hv=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,b.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?hf:t;return(0,b.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,b.createElement)(o,(0,w.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),hg=(0,b.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,b.createElement)(hv.svg,(0,w.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,b.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),hy="Popper",[hb,hx]=(0,j.b)(hy),[hw,hj]=hb(hy),hE=(0,b.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=hj("PopperAnchor",n),a=(0,b.useRef)(null),s=(0,E.e)(t,a);return(0,b.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,b.createElement)(hv.div,(0,w.Z)({},i,{ref:s}))}),hk="PopperContent",[hS,h_]=hb(hk),[hC,hO]=hb(hk,{hasParent:!1,positionUpdateFns:new Set}),hM=(0,b.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:x="partial",hideWhenDetached:w=!1,avoidCollisions:j=!0,onPlaced:k,...S}=e,_=hj(hk,d),[C,O]=(0,b.useState)(null),T=(0,E.e)(t,e=>O(e)),[A,P]=(0,b.useState)(null),N=tc(A),R=null!==(n=null==N?void 0:N.width)&&void 0!==n?n:0,D=null!==(r=null==N?void 0:N.height)&&void 0!==r?r:0,L="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},F=Array.isArray(g)?g:[g],z=F.length>0,V={padding:L,boundary:F.filter(hP),altBoundary:z},{reference:I,floating:Z,strategy:B,x:H,y:U,placement:W,middlewareData:q,update:$}=ts({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tr,middleware:[hN(),ez({mainAxis:h+D,alignmentAxis:m}),j?eI({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?eZ():void 0,...V}):void 0,A?tl({element:A,padding:v}):void 0,j?eR({...V}):void 0,{name:"size",options:c={...V,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},async fn(e){let t,n;let{placement:r,rects:i,platform:o,elements:a}=e,{apply:s,...l}=c,u=await eS(e,l),d=eg(r),f=ey(r);"top"===d||"bottom"===d?(t=d,n=f===(await (null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let h=eC(u.left,0),p=eC(u.right,0),m=eC(u.top,0),v=eC(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:eC(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:eC(u.left,u.right)):u[n])},y=await o.getDimensions(a.floating);null==s||s({...e,...g});let b=await o.getDimensions(a.floating);return y.width!==b.width||y.height!==b.height?{reset:{rects:!0}}:{}}},hR({arrowWidth:R,arrowHeight:D}),w?eF({strategy:"referenceHidden"}):void 0].filter(hA)});(0,M.b)(()=>{I(_.anchor)},[I,_.anchor]);let K=null!==H&&null!==U,[Y,G]=hD(W),X=(0,ly.W)(k);(0,M.b)(()=>{K&&(null==X||X())},[K,X]);let J=null===(i=q.arrow)||void 0===i?void 0:i.x,Q=null===(o=q.arrow)||void 0===o?void 0:o.y,ee=(null===(a=q.arrow)||void 0===a?void 0:a.centerOffset)!==0,[et,en]=(0,b.useState)();(0,M.b)(()=>{C&&en(window.getComputedStyle(C).zIndex)},[C]);let{hasParent:er,positionUpdateFns:ei}=hO(hk,d),eo=!er;(0,b.useLayoutEffect)(()=>{if(!eo)return ei.add($),()=>{ei.delete($)}},[eo,ei,$]),(0,M.b)(()=>{eo&&K&&Array.from(ei).reverse().forEach(e=>requestAnimationFrame(e))},[eo,K,ei]);let ea={"data-side":Y,"data-align":G,...S,ref:T,style:{...S.style,animation:K?void 0:"none",opacity:null!==(s=q.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,b.createElement)("div",{ref:Z,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:K?`translate3d(${Math.round(H)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(l=q.transformOrigin)||void 0===l?void 0:l.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,b.createElement)(hS,{scope:d,placedSide:Y,onArrowChange:P,arrowX:J,arrowY:Q,shouldHideArrow:ee},eo?(0,b.createElement)(hC,{scope:d,hasParent:!0,positionUpdateFns:ei},(0,b.createElement)(hv.div,ea)):(0,b.createElement)(hv.div,ea)))}),hT={top:"bottom",right:"left",bottom:"top",left:"right"};function hA(e){return void 0!==e}function hP(e){return null!==e}let hN=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:n}=e,{width:r,height:i}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),hR=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=hD(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===h?(y=c?m:`${v}px`,b=`${-f}px`):"top"===h?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,b=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function hD(e){let[t,n="center"]=e.split("-");return[t,n]}let hL=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,b.useState)(null);return(0,b.createElement)(hw,{scope:t,anchor:r,onAnchorChange:i},n)},hF=(0,b.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return r?to.createPortal((0,b.createElement)(hv.div,(0,w.Z)({},i,{ref:t})),r):null}),hz="dismissableLayer.update",hV=(0,b.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hI=(0,b.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,b.useContext)(hV),[f,h]=(0,b.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,b.useState)({}),v=(0,E.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(y),j=f?g.indexOf(f):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,S=j>=x,C=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,ly.W)(e),r=(0,b.useRef)(!1),i=(0,b.useRef)(()=>{});return(0,b.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hB("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!S||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),O=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,ly.W)(e),r=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hB("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,ly.W)(e);(0,b.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=j===d.layers.size-1;t&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,b.useEffect)(()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),hZ(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,b.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hZ())},[f,d]),(0,b.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hz,e),()=>document.removeEventListener(hz,e)},[]),(0,b.createElement)(hv.div,(0,w.Z)({},c,{ref:v,style:{pointerEvents:k?S?"auto":"none":void 0,...e.style},onFocusCapture:(0,_.M)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,_.M)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,_.M)(e.onPointerDownCapture,C.onPointerDownCapture)}))});function hZ(){let e=new CustomEvent(hz);document.dispatchEvent(e)}function hB(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&(0,to.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let hH="HoverCard",[hU,hW]=(0,j.b)(hH,[hx]),hq=hx(),[h$,hK]=hU(hH),hY=(0,b.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=hK("HoverCardTrigger",n),o=hq(n);return(0,b.createElement)(hE,(0,w.Z)({asChild:!0},o),(0,b.createElement)(hv.a,(0,w.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,_.M)(e.onPointerEnter,h2(i.onOpen)),onPointerLeave:(0,_.M)(e.onPointerLeave,h2(i.onClose)),onFocus:(0,_.M)(e.onFocus,i.onOpen),onBlur:(0,_.M)(e.onBlur,i.onClose),onTouchStart:(0,_.M)(e.onTouchStart,e=>e.preventDefault())})))}),hG="HoverCardPortal",[hX,hJ]=hU(hG,{forceMount:void 0}),hQ="HoverCardContent",h0=(0,b.forwardRef)((e,t)=>{let n=hJ(hQ,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,o=hK(hQ,e.__scopeHoverCard);return(0,b.createElement)(T.z,{present:r||o.open},(0,b.createElement)(h1,(0,w.Z)({"data-state":o.open?"open":"closed"},i,{onPointerEnter:(0,_.M)(e.onPointerEnter,h2(o.onOpen)),onPointerLeave:(0,_.M)(e.onPointerLeave,h2(o.onClose)),ref:t})))}),h1=(0,b.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...l}=e,u=hK(hQ,n),c=hq(n),d=(0,b.useRef)(null),f=(0,E.e)(t,d),[h,p]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{if(h){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[h]),(0,b.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(u.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}},[u.isPointerDownOnContentRef,u.hasSelectionRef]),(0,b.useEffect)(()=>{if(d.current){let e=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}(d.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,b.createElement)(hI,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:(0,_.M)(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,b.createElement)(hM,(0,w.Z)({},c,l,{onPointerDown:(0,_.M)(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:f,style:{...l.style,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)",userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0}})))});function h2(e){return t=>"touch"===t.pointerType?void 0:e()}let h4=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=hq(t),u=(0,b.useRef)(0),c=(0,b.useRef)(0),d=(0,b.useRef)(!1),f=(0,b.useRef)(!1),[h=!1,p]=(0,C.T)({prop:r,defaultProp:i,onChange:o}),m=(0,b.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,b.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,b.useCallback)(()=>p(!1),[p]);return(0,b.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,b.createElement)(h$,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,b.createElement)(hL,l,n))},h3=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=hK(hG,t);return(0,b.createElement)(hX,{scope:t,forceMount:n},(0,b.createElement)(T.z,{present:n||o.open},(0,b.createElement)(hF,{asChild:!0,container:i},r)))},h5=(0,em.j)([lo,"relative","z-10","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),h6=(0,em.cx)(t4(),"max-w-sm","py-0.5","px-1"),h8={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},h7=b.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=le({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,y.jsxs)(h4,{open:l,onOpenChange:u,...i,children:[n&&(0,y.jsx)(hY,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:l?(0,y.jsx)(h3,{forceMount:!0,children:(0,y.jsx)(h0,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,y.jsx)(s9.div,{variants:h8,initial:"init",animate:"show",exit:"exit",className:h5(),children:(0,y.jsx)("div",{className:(0,em.cx)(h6,a),children:r})})})}):null})]})});function h9(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,b.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,b.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,b.createContext)(r),o=n.length;function a(t){let{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][o])||i,l=(0,b.useMemo)(()=>a,Object.values(a));return(0,b.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){let s=(null==a?void 0:a[e][o])||i,l=(0,b.useContext)(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,b.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function pt(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function pn(...e){return(0,b.useCallback)(pt(...e),e)}let pr=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e,i=b.Children.toArray(n),o=i.find(pa);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:b.Children.count(e)>1?b.Children.only(null):(0,b.isValidElement)(e)?e.props.children:null);return(0,b.createElement)(pi,(0,w.Z)({},r,{ref:t}),(0,b.isValidElement)(e)?(0,b.cloneElement)(e,void 0,n):null)}return(0,b.createElement)(pi,(0,w.Z)({},r,{ref:t}),n)});pr.displayName="Slot";let pi=(0,b.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,b.isValidElement)(n)?(0,b.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?pt(t,n.ref):n.ref}):b.Children.count(n)>1?b.Children.only(null):null});pi.displayName="SlotClone";let po=({children:e})=>(0,b.createElement)(b.Fragment,null,e);function pa(e){return(0,b.isValidElement)(e)&&e.type===po}let ps=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,b.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?pr:t;return(0,b.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,b.createElement)(o,(0,w.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pl(e){let t=(0,b.useRef)(e);return(0,b.useEffect)(()=>{t.current=e}),(0,b.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let pu=(null==globalThis?void 0:globalThis.document)?b.useLayoutEffect:()=>{},pc=e=>{let{present:t,children:n}=e,r=function(e){var t;let[n,r]=(0,b.useState)(),i=(0,b.useRef)({}),o=(0,b.useRef)(e),a=(0,b.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,b.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},s));return(0,b.useEffect)(()=>{let e=pd(i.current);a.current="mounted"===l?e:"none"},[l]),pu(()=>{let t=i.current,n=o.current,r=n!==e;if(r){let r=a.current,i=pd(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),pu(()=>{if(n){let e=e=>{let t=pd(i.current),r=t.includes(e.animationName);e.target===n&&r&&(0,to.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=pd(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,b.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),r(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):b.Children.only(n),o=pn(r.ref,i.ref),a="function"==typeof n;return a||r.isPresent?(0,b.cloneElement)(i,{ref:o}):null};function pd(e){return(null==e?void 0:e.animationName)||"none"}pc.displayName="Presence";let pf=x["useId".toString()]||(()=>void 0),ph=0;function pp(e){let t=e+"CollectionProvider",[n,r]=h9(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=b.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=pn(t,i.collectionRef);return b.createElement(pr,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=b.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=b.useRef(null),s=pn(t,a),c=o(l,n);return b.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),b.createElement(pr,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=b.useRef(null),o=b.useRef(new Map).current;return b.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=b.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}let pm="dismissableLayer.update",pv=(0,b.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pg=(0,b.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,b.useContext)(pv),[f,h]=(0,b.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,b.useState)({}),v=pn(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=g.indexOf(y),j=f?g.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,k=j>=x,S=function(e,t=null==globalThis?void 0:globalThis.document){let n=pl(e),r=(0,b.useRef)(!1),i=(0,b.useRef)(()=>{});return(0,b.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){pb("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!k||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),_=function(e,t=null==globalThis?void 0:globalThis.document){let n=pl(e),r=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{let e=e=>{e.target&&!r.current&&pb("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=pl(e);(0,b.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=j===d.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,b.useEffect)(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(o=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),py(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=o)}},[f,p,r,d]),(0,b.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),py())},[f,d]),(0,b.useEffect)(()=>{let e=()=>m({});return document.addEventListener(pm,e),()=>document.removeEventListener(pm,e)},[]),(0,b.createElement)(ps.div,(0,w.Z)({},c,{ref:v,style:{pointerEvents:E?k?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,_.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,S.onPointerDownCapture)}))});function py(){let e=new CustomEvent(pm);document.dispatchEvent(e)}function pb(e,t,n,{discrete:r}){var i,o;let a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?(i=a,o=s,i&&(0,to.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,b.createElement)(ps.span,(0,w.Z)({},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}}));let px="NavigationMenu",[pw,pj,pE]=pp(px),[pk,pS,p_]=pp(px),[pC,pO]=h9(px,[pE,p_]),[pM,pT]=pC(px),[pA,pP]=pC(px),[pN,pR]=pC("NavigationMenuItem"),pD=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pT("NavigationMenuIndicator",n),o=pj(n),[a,s]=(0,b.useState)(null),[l,u]=(0,b.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,b.useEffect)(()=>{var e;let t=o(),n=null===(e=t.find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;n&&s(n)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return pZ(a,f),pZ(i.indicatorTrack,f),l?(0,b.createElement)(ps.div,(0,w.Z)({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null},"NavigationMenuContent"),pL=((e,t)=>{let n=pT(pD,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:i}=n;return pu(()=>{r(e.value,{ref:t,...e})},[e,t,r]),pu(()=>()=>i(e.value),[e.value,i]),null},"navigationMenu.rootContentDismiss"),pF=(0,b.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=pT(pD,n),d=(0,b.useRef)(null),f=pn(d,t),h=function(e,t){return`${e}-trigger-${t}`}(c.baseId,r),p=function(e,t){return`${e}-content-${t}`}(c.baseId,r),m=pj(n),v=(0,b.useRef)(null),{onItemDismiss:g}=c;(0,b.useEffect)(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{var t;g(),s(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(pL,t),()=>e.removeEventListener(pL,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,b.useMemo)(()=>{let e=m(),t=e.map(e=>e.value);"rtl"===c.dir&&t.reverse();let n=t.indexOf(c.value),i=t.indexOf(c.previousValue),o=r===c.value,a=i===t.indexOf(r);if(!o&&!a)return v.current;let s=(()=>{if(n!==i){if(o&&-1!==i)return n>i?"from-end":"from-start";if(a&&-1!==n)return n>i?"to-start":"to-end"}return null})();return v.current=s,s},[c.previousValue,c.value,c.dir,m,r]);return(0,b.createElement)(pz,{asChild:!0},(0,b.createElement)(pg,(0,w.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(pL,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:pe(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:pe(e.onPointerDownOutside,e=>{var t;let n=e.target,r=m().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),i=c.isRootMenu&&(null===(t=c.viewport)||void 0===t?void 0:t.contains(n));(r||i||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:pe(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey,n="Tab"===e.key&&!t;if(n){let t=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(e.currentTarget),n=document.activeElement,i=t.findIndex(e=>e===n),a=e.shiftKey,s=a?t.slice(0,i).reverse():t.slice(i+1,t.length);if(pI(s))e.preventDefault();else{var r;null===(r=o.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:pe(e.onEscapeKeyDown,e=>{a.current=!0})})))}),pz=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,o=pT("NavigationMenuViewport",n),a=pn(t,o.onViewportChange),s=pP(pD,e.__scopeNavigationMenu),[l,u]=(0,b.useState)(null),[c,d]=(0,b.useState)(null),f=l?(null==l?void 0:l.width)+"px":void 0,h=l?(null==l?void 0:l.height)+"px":void 0,p=!!o.value,m=p?o.value:o.previousValue;return pZ(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,b.createElement)(ps.div,(0,w.Z)({"data-state":function(e){return e?"open":"closed"}(p),"data-orientation":o.orientation},i,{ref:a,style:{pointerEvents:!p&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:pe(e.onPointerEnter,o.onContentEnter),onPointerLeave:pe(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(o.onContentLeave))}),Array.from(s.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,b.createElement)(pc,{key:e,present:n||i},(0,b.createElement)(pF,(0,w.Z)({},r,{ref:pt(t,e=>{i&&e&&d(e)})})))}))},(0,b.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pT("FocusGroup",n);return(0,b.createElement)(pk.Provider,{scope:n},(0,b.createElement)(pk.Slot,{scope:n},(0,b.createElement)(ps.div,(0,w.Z)({dir:i.dir},r,{ref:t}))))})),pV=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pS(n),o=pT("FocusGroupItem",n);return(0,b.createElement)(pk.ItemSlot,{scope:n},(0,b.createElement)(ps.button,(0,w.Z)({},r,{ref:t,onKeyDown:pe(e.onKeyDown,e=>{let t=["Home","End",...pV].includes(e.key);if(t){let t=i().map(e=>e.ref.current),n="rtl"===o.dir?"ArrowRight":"ArrowLeft";if([n,"ArrowUp","End"].includes(e.key)&&t.reverse(),pV.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>pI(t)),e.preventDefault()}})})))};function pI(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function pZ(e,t){let n=pl(t);pu(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var pB=n(38617);let pH=b.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(fe,{...r,ref:t,className:(0,em.cx)("select-none flex items-center rounded cursor-pointer","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-700 dark:text-graydark-700","data-[state=checked]:text-gray-1100 data-[state=checked]:dark:text-white",n)})});function pU(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:o}=(0,pB.F)();return(0,y.jsxs)(d9,{value:i,tabIndex:r,className:(0,em.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,y.jsx)(pH,{value:"system",children:(0,y.jsx)(ls,{className:n,sideOffset:16,content:"System",children:(0,y.jsx)(lc.$Iz,{})})}),(0,y.jsx)(pH,{value:"light",children:(0,y.jsx)(ls,{className:n,sideOffset:16,content:"Light",children:(0,y.jsx)(lc.JaG,{})})}),(0,y.jsx)(pH,{value:"dark",children:(0,y.jsx)(ls,{className:n,sideOffset:16,content:"Dark",children:(0,y.jsx)(lc.osk,{})})})]})}var pW=n(74424);function pq(e){let{title:t,children:n,rootClassName:r,className:i,message:o,showBorderInactive:a,...s}=e,{getRootProps:l,getInputProps:u,isDragActive:c}=(0,pW.uI)(s);return(0,y.jsxs)("div",{...l(),className:(0,em.cx)("outline-none",r),children:[(0,y.jsxs)("div",{className:(0,em.cx)(c?"z-20":"","absolute","top-0","left-0","w-full","h-full","pointer-events-none","rounded","p-4","flex justify-center items-center text-center","border-2 border-dashed",a?["border-green-600 dark:border-green-500","hover:border-green-700 hover:dark:border-green-500"]:"border-transparent",c?["border-green-500 dark:border-green-600 bg-green-100/20 dark:bg-green-100/20","hover:border-green-500 hover:dark:border-green-600 hover:bg-green-100/20 hover:dark:bg-green-100/20"]:"",i),children:[(0,y.jsx)("input",{...u()}),o&&(0,y.jsx)(t2,{size:"14",children:t||"Drop your files here or click to to open the file picker."})]}),n]})}var p$=n(14582),pK=n(63739),pY=n(13980),pG=n.n(pY),pX=n(72779),pJ=n.n(pX),pQ=n(47440),p0=n(59309),p1=n(19067),p2=n(71220),p4=n(28142);function p3(e){return"bandwidth"in e?e.bandwidth():0}var p5=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function p6(){return(p6=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,p5),g=null!=m?m:(0,p2.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+p3(r)/2,x=g.map(function(e,t){var n,o=(null!=(n=(0,p4.Z)(r(e)))?n:0)+y;return{index:t,from:new p1.Z({x:0,y:o}),to:new p1.Z({x:i,y:o})}});return b.createElement(p0.Z,{className:pJ()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:x}):x.map(function(e){var t=e.from,n=e.to,r=e.index;return b.createElement(pQ.default,p6({key:"row-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}p8.propTypes={tickValues:pG().array,width:pG().number.isRequired};var p7=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function p9(){return(p9=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,p7),g=null!=p?p:(0,p2.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+p3(r)/2,x=g.map(function(e,t){var n,o=(null!=(n=(0,p4.Z)(r(e)))?n:0)+y;return{index:t,from:new p1.Z({x:o,y:0}),to:new p1.Z({x:o,y:i})}});return b.createElement(p0.Z,{className:pJ()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:x}):x.map(function(e){var t=e.from,n=e.to,r=e.index;return b.createElement(pQ.default,p9({key:"column-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}me.propTypes={tickValues:pG().array,height:pG().number.isRequired};var mt=n(64183),mn=n(8597);function mr(e){var t=e.id,n=e.width,r=e.height,i=e.children;return b.createElement("defs",null,b.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}mr.propTypes={id:pG().string.isRequired,width:pG().number.isRequired,height:pG().number.isRequired,children:pG().node.isRequired};var mi={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function mo(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,o=e.strokeWidth,a=e.strokeDasharray,s=e.strokeLinecap,l=void 0===s?"square":s,u=e.shapeRendering,c=void 0===u?"auto":u,d=e.orientation,f=void 0===d?["vertical"]:d,h=e.background,p=e.className,m=Array.isArray(f)?f:[f];return b.createElement(mr,{id:t,width:n,height:r},!!h&&b.createElement("rect",{className:pJ()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return b.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:pJ()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case mi.horizontal:return"M 0,"+t/2+" l "+t+",0";case mi.diagonal:return"M 0,"+t+" l "+t+","+-t+" M "+-t/4+","+t/4+" l "+t/2+","+-t/2+"\n M "+3/4*t+","+5/4*t+" l "+t/2+","+-t/2;case mi.diagonalRightToLeft:return"M 0,0 l "+t+","+t+"\n M "+-t/4+","+3/4*t+" l "+t/2+","+t/2+"\n M "+3/4*t+","+-t/4+" l "+t/2+","+t/2;case mi.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}mo.propTypes={id:pG().string.isRequired,width:pG().number.isRequired,height:pG().number.isRequired,className:pG().string,background:pG().string,stroke:pG().string,strokeWidth:pG().oneOfType([pG().number,pG().string]),strokeDasharray:pG().oneOfType([pG().string,pG().number]),strokeLinecap:pG().oneOf(["square","butt","round","inherit"]),shapeRendering:pG().oneOfType([pG().string,pG().number]),orientation:pG().array};var ma=["tooltipOpen"];function ms(){return(ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ml);return b.createElement("div",mu({ref:t,className:pJ()("visx-tooltip",n),style:mu({top:null==r||null==l?r:r+l,left:null==i||null==a?i:i+a},m&&{position:"absolute"},!h&&c)},v),d)});function mf(){return(mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mg),g=!1,y=!1;if(u&&l){var x=void 0===r?0:r,w=void 0===f?0:f;if(l.width){var j=x+o+u.width-l.width,E=u.width-x-o;g=j>0&&j>E}else{var k=x+o+u.width-window.innerWidth,S=u.width-x-o;g=k>0&&k>S}if(l.height){var _=w+s+u.height-l.height,C=u.height-w-s;y=_>0&&_>C}else y=w+s+u.height>window.innerHeight;x=g?x-u.width-o:x+o,w=y?w-u.height-s:w+s,t="translate("+(x=Math.round(x))+"px, "+(w=Math.round(w))+"px)"}return b.createElement(md,my({ref:m,style:my({left:0,top:0,transform:t},!p&&d)},v),b.createElement(mv,{value:{isFlippedVertically:!y,isFlippedHorizontally:!g}},n))}mb.propTypes={nodeRef:pG().oneOfType([pG().string,pG().func,pG().object])};var mx=((Ey=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=b.createRef(),n.getRects=n.getRects.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mh(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:to.findDOMNode(this),this.setState(function(){return t.getRects()})},n.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():mp,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():mp}},n.render=function(){return b.createElement(mb,mf({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(b.PureComponent)).displayName="withBoundingRects("+(mb.displayName||"")+")",Ey),mw=n(99985);function mj(e,t){if("invert"in e&&void 0!==e.invert)return e.invert(t).valueOf();var n=e.range(),r=n[0],i=n[1],o=0,a=("step"in e&&void 0!==e.step?e.step():1)*(i-r)/Math.abs(i-r);if(a>0)for(;t>r+a*(o+1);)o+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-a):Math.max(e.dx,t.bounds.x0-r),u=e.dy>0?Math.min(e.dy,t.bounds.y1-s):Math.max(e.dy,t.bounds.y0-i);return mA({},t,{isBrushing:!0,extent:mA({},t.extent,{x0:r+l,x1:a+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=mA({},e,{isBrushing:!1,start:mA({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:mA({},e.end,{x:Math.max(e.extent.x0,e.extent.x1),y:Math.max(e.extent.y0,e.extent.y1)})});return r&&r(t),t}),i&&i()},t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mP(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.stageWidth,i=e.stageHeight,o=e.brush,a=e.disableDraggingSelection,s=e.onMouseLeave,l=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return b.createElement(mw.Z,{width:t,height:n,resetOnStart:!0,onDragStart:this.selectionDragStart,onDragMove:this.selectionDragMove,onDragEnd:this.selectionDragEnd,isDragging:f?h:void 0},function(e){var h=e.isDragging,p=e.dragStart,m=e.dragEnd,v=e.dragMove;return b.createElement("g",null,h&&b.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:mN}),b.createElement("rect",mA({x:Math.min(o.extent.x0,o.extent.x1),y:Math.min(o.extent.y0,o.extent.y1),width:t,height:n,className:"visx-brush-selection",onPointerDown:a?void 0:p,onPointerLeave:function(e){s&&s(e)},onPointerMove:function(e){v(e),l&&l(e)},onPointerUp:function(e){f||m(e),u&&u(e)},onClick:function(e){c&&c(e)},style:{pointerEvents:o.isBrushing||o.activeHandle?"none":"all",cursor:a?void 0:"move"}},d)))})},t}(b.Component);function mD(){return(mD=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(l,e.bounds.x1-o):Math.max(l,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-a):Math.max(u,e.bounds.y0-r);return mD({},e,{isBrushing:!0,extent:mD({},e.extent,{x0:n+s,y0:r+c,x1:o+s,y1:a+c})})}),"select"===i&&n.updateBrush(function(e){var t=e.start,r=t.x,i=t.y,o={x:Math.min(Math.max(r+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},a=n.getExtent(s,o);return mD({},e,{end:o,extent:a})})}},n.getExtent=function(e,t){var r=n.props,i=r.brushDirection,o=r.width,a=r.height;return{x0:"vertical"===i?0:Math.min(e.x||0,t.x||0),x1:"vertical"===i?o:Math.max(e.x||0,t.x||0),y0:"horizontal"===i?0:Math.min(e.y||0,t.y||0),y1:"horizontal"===i?a:Math.max(e.y||0,t.y||0)}},n.handleDragStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin,s=t.useWindowMoveEvents,l=null!=a&&a.left?a.left:0,u=null!=a&&a.top?a.top:0,c={x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-o-u},d=mD({},c);r&&r(c),n.updateBrush(function(t){return mD({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?mk(e.event):void 0})})},n.handleBrushStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin;if(r){var s=null!=a&&a.left?a.left:0,l=null!=a&&a.top?a.top:0;r({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-o-l})}},n.handleDragMove=function(e){var t=n.props,r=t.left,i=t.top,o=t.inheritedMargin,a=t.useWindowMoveEvents;if(e.isDragging&&!a){var s=(null==o?void 0:o.left)||0,l=(null==o?void 0:o.top)||0,u={x:(e.x||0)+e.dx-r-s,y:(e.y||0)+e.dy-i-l};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return mD({},e,{end:u,extent:r})})}},n.handleDragEnd=function(){var e=n.props,t=e.onBrushEnd,r=e.resetOnEnd;e.useWindowMoveEvents||n.updateBrush(function(e){var i=e.extent,o=mD({},e,{start:{x:i.x0,y:i.y0},end:{x:i.x1,y:i.y1},isBrushing:!1,brushingType:void 0,activeHandle:null});return t&&t(o),r&&n.reset(),o})},n.getBrushWidth=function(){var e=n.state.extent,t=e.x0,r=e.x1;return Math.max(Math.max(t,r)-Math.min(t,r),0)},n.getBrushHeight=function(){var e=n.state.extent,t=e.y1,r=e.y0;return Math.max(Math.max(r,t)-Math.min(r,t),0)},n.handles=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2,l=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-s,y:o-s,height:e,width:l+e},bottom:{x:r-s,y:a-s,height:e,width:l+e},right:{x:i-s,y:o-s,height:u+e,width:e},left:{x:r-s,y:o-s,height:u+e,width:e}}},n.corners=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2;return{topLeft:{x:Math.min(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},topRight:{x:Math.max(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},bottomLeft:{x:Math.min(r,i)-s,y:Math.max(o,a)-s,width:e,height:e},bottomRight:{x:Math.max(r,i)-s,y:Math.max(o,a)-s,width:e,height:e}}},n.updateBrush=function(e){var t=n.props.onChange;n.setState(e,function(){t&&t(n.state)})},n.reset=function(){var e=n.props,t=e.width,r=e.height;n.updateBrush(function(){return{start:{x:0,y:0},end:{x:0,y:0},extent:{x0:-1,x1:-1,y0:-1,y1:-1},bounds:{x0:0,x1:t,y0:0,y1:r},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},n.handleBrushingTypeChange=function(e,t){n.updateBrush(function(n){var r=mD({},n,{brushingType:e,isBrushing:void 0!==e});return(t||void 0===e)&&(r.brushPageOffset=t),r})};var n,r=t.initialBrushPosition,i=r?n.getExtent(r.start,r.end):{x0:-1,x1:-1,y0:-1,y1:-1};return n.state={start:{x:Math.max(0,i.x0),y:Math.max(0,i.y0)},end:{x:Math.max(0,i.x1),y:Math.max(0,i.y1)},extent:i,bounds:{x0:0,x1:n.props.width,y0:0,y1:n.props.height},isBrushing:!1,brushingType:void 0,activeHandle:null},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mL(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){var t=this;(this.props.width!==e.width||this.props.height!==e.height)&&this.setState(function(n){var r=n.start,i=n.end,o=n.extent;if(!(-1===o.x0&&-1===o.x1&&-1===o.y0&&-1===o.y1)){var a=t.props.width/e.width,s=t.props.height/e.height;r={x:a*o.x0,y:s*o.y0},i={x:a*o.x1,y:s*o.y1},o=t.getExtent(r,i)}return{start:r,end:i,extent:o,bounds:{x0:0,x1:t.props.width,y0:0,y1:t.props.height}}})},n.componentDidMount=function(){this.props.useWindowMoveEvents&&(window.addEventListener("mouseup",this.handleWindowPointerUp),window.addEventListener("mousemove",this.handleWindowPointerMove))},n.componentWillUnmount=function(){this.props.useWindowMoveEvents&&(window.removeEventListener("mouseup",this.handleWindowPointerUp),window.removeEventListener("mousemove",this.handleWindowPointerMove))},n.render=function(){var e=this,t=this.state,n=t.start,r=t.end,i=this.props,o=i.top,a=i.left,s=i.width,l=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,v=i.disableDraggingSelection,g=i.clickSensitivity,y=i.useWindowMoveEvents,x=i.renderBrushHandle,w=this.state.brushingType,j=this.handles(),E=this.corners(),k=this.getBrushWidth(),S=this.getBrushHeight(),_=new Set(p);return b.createElement(p0.Z,{className:"visx-brush",top:o,left:a},b.createElement(mw.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===w:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,o=t.dragEnd;return b.createElement(p$.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,mH),g=o,y=s,x=a,w=l;return void 0!==m&&!m||g||y||x||w||(g="0",y="0",x="0",w="1"),b.createElement("defs",null,b.createElement("linearGradient",mU({id:n,x1:g,y1:x,x2:y,y2:w,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&b.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&b.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}mW.propTypes={id:pG().string.isRequired,from:pG().string,to:pG().string,x1:pG().oneOfType([pG().string,pG().number]),x2:pG().oneOfType([pG().string,pG().number]),y1:pG().oneOfType([pG().string,pG().number]),y2:pG().oneOfType([pG().string,pG().number]),fromOffset:pG().oneOfType([pG().string,pG().number]),fromOpacity:pG().oneOfType([pG().string,pG().number]),toOffset:pG().oneOfType([pG().string,pG().number]),toOpacity:pG().oneOfType([pG().string,pG().number]),rotate:pG().oneOfType([pG().string,pG().number]),transform:pG().string,children:pG().node,vertical:pG().bool};var mq=n(78307),m$=n(74747);function mK(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}var mY=n(12436),mG=n.n(mY),mX=n(55746),mJ=n(45742),mQ=n(27266),m0=["id","markerWidth","markerHeight","markerUnits","children"];function m1(){return(m1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,m0);return b.createElement("defs",null,b.createElement("marker",m1({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}m2.propTypes={id:pG().string.isRequired,size:pG().number,markerWidth:pG().oneOfType([pG().string,pG().number]),markerHeight:pG().oneOfType([pG().string,pG().number]),markerUnits:pG().string,refX:pG().oneOfType([pG().string,pG().number]),refY:pG().oneOfType([pG().string,pG().number]),strokeWidth:pG().number,children:pG().node.isRequired};var m4=["id","size","strokeWidth"];function m3(){return(m3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,m4),s=2*r+o,l=s/2;return b.createElement(m2,m3({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),b.createElement("circle",{r:r,cx:l,cy:l}))}var m6=n(64170),m8={top:"top",left:"left",bottom:"bottom"};function m7(){return(m7=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,va),k=null!=g?g:"tickFormat"in v?v.tickFormat():vr.Z,S=h===m8.left,_=h===m8.top,C=_||h===m8.bottom,O=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var n=e.bandwidth();return"center"===t&&(n/=2),e.round()&&(n=Math.round(n)),function(t){var r=e(t);return"number"==typeof r?r+n:r}}return e}(v),M=S||_?-1:1,T=v.range(),A=(void 0===(t=m)&&(t=0),"number"==typeof t?{start:t,end:t}:vo({start:0,end:0},t)),P=vi({x:Number(T[0])+.5-A.start,y:0},C),N=vi({x:Number(T[T.length-1])+.5+A.end,y:0},C),R=(null!=w?w:(0,p2.Z)(v,d)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),D=R.map(function(e){var t=e.value,n=e.index,r=(0,p4.Z)(O(t));return{value:t,index:n,from:vi({x:r,y:0},C),to:vi({x:r,y:x*M},C),formattedValue:k(t,n,R)}});return b.createElement(p0.Z,{className:pJ()("visx-axis",i),top:void 0===j?0:j,left:void 0===u?0:u},r(vs({},E,{axisFromPoint:P,axisToPoint:N,hideAxisLine:void 0!==o&&o,hideTicks:void 0!==a&&a,hideZero:l,horizontal:C,numTicks:d,orientation:h,rangePadding:m,scale:v,tickFormat:k,tickLength:x,tickPosition:O,tickSign:M,ticks:D})))}var vu=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vc(){return(vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vu);return b.createElement(vl,vc({axisClassName:pJ()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:m8.bottom,tickLabelProps:void 0===r?vd:r,tickLength:void 0===i?8:i},o))}var vh=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vp(){return(vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vh);return b.createElement(vl,vp({axisClassName:pJ()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:m8.left,tickLabelProps:void 0===r?vm:r,tickLength:void 0===i?8:i},o))}let vg=e=>new Date((null==e?void 0:e.timestamp)||0),vy=e=>(null==e?void 0:e.value)||0,vb="var(--colors-hiContrast)",vx={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:vb},vw={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:vb};function vj(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:o,xScale:a,yScale:s,hideBottomAxis:l=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,y.jsxs)(p0.Z,{left:d||o.left,top:c||o.top,children:[(0,y.jsx)(m5,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,y.jsx)(mW,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,y.jsx)(mX.Z,{data:t,x:e=>a(vg(e))||0,y:e=>s(vy(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?mJ.ZP:mQ.Z}),!l&&(0,y.jsx)(vf,{top:i,scale:a,numTicks:r>520?10:5,stroke:vb,tickStroke:vb,tickLabelProps:()=>vx}),!u&&(0,y.jsx)(vv,{scale:s,numTicks:5,stroke:vb,tickStroke:vb,tickLabelProps:()=>vw}),h]})}var vE=n(6692);let vk={inherit:vE.inherit,current:vE.current,transparent:vE.transparent,black:vE.black,white:vE.white,slate:vE.slate,zinc:vE.zinc,neutral:vE.neutral,stone:vE.stone,red:vE.red,orange:vE.orange,amber:vE.amber,yellow:vE.yellow,lime:vE.lime,green:vE.green,emerald:vE.emerald,teal:vE.teal,cyan:vE.cyan,sky:vE.sky,blue:vE.blue,indigo:vE.indigo,violet:vE.violet,purple:vE.purple,fuchsia:vE.fuchsia,pink:vE.pink,rose:vE.rose,mask:"rgba(30, 169, 76, .3)",accent:{50:"#F6FFF9",100:"#E9FBEF",200:"#D5F2DE",300:"#C9EED4",400:"#BBE8C9",500:"#9BDAAE",600:"#71C48A",700:"#3EAA5F",800:"#05872D",900:"#056B24",1e3:"#04511B",1100:"#011F0A"},accentdark:{50:"#05150A",100:"#051C0C",200:"#062811",300:"#073515",400:"#064018",500:"#075820",600:"#056824",700:"#077A2A",800:"#05872D",900:"#069F35",1e3:"#2FA052",1100:"#D9F4E1"},gray:{50:"hsl(206, 30.0%, 98.8%)",100:"hsl(210, 16.7%, 97.6%)",200:"hsl(209, 13.3%, 95.3%)",300:"hsl(209, 12.2%, 93.2%)",400:"hsl(208, 11.7%, 91.1%)",500:"hsl(208, 11.3%, 88.9%)",600:"hsl(207, 11.1%, 85.9%)",700:"hsl(205, 10.7%, 78.0%)",800:"hsl(206, 6.0%, 56.1%)",900:"hsl(206, 5.8%, 52.3%)",1e3:"hsl(206, 6.0%, 43.5%)",1100:"hsl(206, 24.0%, 9.0%)"},graydark:{50:"hsl(200, 7.0%, 8.8%)",100:"hsl(195, 7.1%, 11.0%)",200:"hsl(197, 6.8%, 13.6%)",300:"hsl(198, 6.6%, 15.8%)",400:"hsl(199, 6.4%, 17.9%)",500:"hsl(201, 6.2%, 20.5%)",600:"hsl(203, 6.0%, 24.3%)",700:"hsl(207, 5.6%, 31.6%)",800:"hsl(206, 6.0%, 43.9%)",900:"hsl(206, 5.2%, 49.5%)",1e3:"hsl(206, 6.0%, 63.0%)",1100:"hsl(210, 6.0%, 93.0%)"}};var vS=n(96206);let v_={top:10,bottom:15,left:10,right:10},vC="brush_pattern",vO="brush_gradient",vM=mG()(e=>e(),15),vT=(0,mq.Z)(e=>new Date((null==e?void 0:e.timestamp)||0)).left;void 0===Eb&&(Eb={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===Ex&&(Ex=function(e,t){return b.createElement("div",t,e)});var vA=n(70390),vP=n(3440),vN=n.n(vP);function vR(e){let{id:t,width:n,height:r,accessors:i,animationTrajectory:o,curve:a,data:s,config:l,scales:u,enabledGraph:c,enabledTip:d,isStack:f,todayOffset:h,numTicks:p,renderAreaSeries:m,renderAreaStack:v,renderBarGroup:g,renderBarStack:x,enableTooltipGlyph:w,renderTooltipGlyph:j,renderLineSeries:E,sharedTooltip:k,showHorizontalCrosshair:S,showTooltip:_,showVerticalCrosshair:C,snapTooltipToDatum:O,stackOffset:M,margin:T,theme:A,xAxisOrientation:P,yAxisOrientation:N,AreaSeries:R,AreaStack:D,Axis:L,BarGroup:F,BarSeries:z,BarStack:V,Grid:I,LineSeries:Z,Tooltip:B,XYChart:H}=e;return(0,y.jsxs)(H,{theme:A.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:T,captureEvents:!0,children:[(0,y.jsx)("g",{children:(0,y.jsx)("rect",{className:"fill-gray-600 dark:fill-graydark-600 h-full w-px y-0",style:{left:"".concat(100*h,"%")}})},"today-line-".concat(n,"-").concat(r)),(0,y.jsx)(mW,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(l.data).map(e=>{let[n,r]=e,i=r.color;return(0,y.jsxs)(b.Fragment,{children:[(0,y.jsx)(mo,{id:"pattern-".concat(vD(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,y.jsx)(mW,{id:"gradient-".concat(vD(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,y.jsx)(I,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:o,numTicks:p},"grid-".concat(o)),x&&(0,y.jsx)(V,{offset:M,children:c.map(e=>(0,y.jsx)(z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vL(t,e,l)},e))}),g&&(0,y.jsx)(F,{children:c.map(e=>(0,y.jsx)(z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vL(t,e,l)},e))}),m&&(0,y.jsx)(y.Fragment,{children:c.map(e=>(0,y.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vL(t,e,l),fill:vL(t,e,l),curve:a},e))}),v&&(0,y.jsx)(D,{curve:a,offset:M,renderLine:"wiggle"!==M,children:c.map(e=>(0,y.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vL(t,e,l),fill:vL(t,e,l)},e))}),E&&(0,y.jsx)(y.Fragment,{children:c.map(e=>{var t,n;return(0,y.jsx)(Z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:a},e)})}),(0,y.jsx)(L,{orientation:P,numTicks:p,animationTrajectory:o,tickFormat:e=>(0,vS.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:A.labels.color,fontFamily:A.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(o)),(0,y.jsx)(L,{label:null==M?"SC":"expand"===M?"Fraction of total":"",orientation:N,numTicks:p,tickLength:0,rangePadding:0,animationTrajectory:o,tickFormat:()=>""},"temp-axis-".concat(o)),_&&(0,y.jsx)(B,{showHorizontalCrosshair:S,showVerticalCrosshair:C,snapTooltipToDatumX:O,snapTooltipToDatumY:O,showDatumGlyph:O&&!g,showSeriesGlyphs:k&&!g,renderGlyph:w?j:void 0,renderTooltip:e=>{var t,n;let{tooltipData:r}=e,o=null==r?void 0:null===(t=r.nearestDatum)||void 0===t?void 0:t.datum,a=null==r?void 0:null===(n=r.nearestDatum)||void 0===n?void 0:n.key,s=k?d:a?[a]:[],u=l.formatTimestamp||(e=>(0,vS.rN)(e,{timeStyle:"short",hour12:!1})),c=s.map(e=>{var t,n;return{key:e,category:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),h=vN()(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,y.jsxs)("div",{className:(0,em.cx)(lo,"flex flex-col gap-2 py-1"),children:[(0,y.jsx)(t1,{font:"mono",size:"12",color:"contrast",className:"text-end",children:o?u(i.date(o)):"No date"}),(0,y.jsx)(cF,{color:"panel",className:"w-full"}),(0,y.jsx)("div",{className:(0,em.cx)("grid gap-x-6 gap-y-4",p.length>1?"grid-cols-2":"grid-cols-1"),children:p.map(e=>{let[t,n]=e,r=o?n.reduce((e,t)=>{let{key:n}=t,r=i.y[n](o);return null==r||Number.isNaN(r)?e:e+r},0):0;return(0,y.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,y.jsx)(t1,{weight:"semibold",children:t}),(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,s;let{key:u}=e,c=o&&i.y[u](o);return(0,y.jsxs)(b.Fragment,{children:[(0,y.jsx)(t1,{color:"accent",style:{color:null===(n=l.data)||void 0===n?void 0:null===(t=n[u])||void 0===t?void 0:t.color},className:(0,em.cx)(a===u?"underline":""),children:(null===(s=l.data)||void 0===s?void 0:null===(r=s[u])||void 0===r?void 0:r.label)||u}),(0,y.jsx)(t1,{size:"12",style:{textAlign:"end"},className:(0,em.cx)(a===u?"underline":""),children:null==c||Number.isNaN(c)?"–":l.format(c)})]},u)}),n.length>1&&f&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{className:"pt-2",children:"total"}),(0,y.jsx)(t1,{size:"12",weight:"bold",className:"pt-2 text-end",children:l.format(r)})]})]})]},t)})})]})}})]})}function vD(e,t){return"".concat(e,"-").concat(t)}function vL(e,t,n){var r;let i=vD(e,t);return(null===(r=n.data)||void 0===r?void 0:r[t])?n.data[t].pattern?"url(#pattern-".concat(i,")"):"url(#gradient-".concat(i,")"):"url(#gradient-default)"}var vF=n(24037),vz=n(86707);function vV(e){var t=e.top,n=e.left,r=e.className,i=e.children;return b.createElement(p0.Z,{className:pJ()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}vV.propTypes={top:pG().number,left:pG().number,className:pG().string,children:pG().node};var vI=["children","className","top","left","size"];function vZ(){return(vZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vI),s=(0,vF.Z)();return(s.type(vz.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?b.createElement(b.Fragment,null,t({path:s})):b.createElement(vV,{top:r,left:i},b.createElement("path",vZ({className:pJ()("visx-glyph-star",n),d:s()||""},a)))}vB.propTypes={children:pG().func,className:pG().string,top:pG().number,left:pG().number,size:pG().oneOfType([pG().number,pG().func])};var vH=["top","left","className"];function vU(){return(vU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vH);return b.createElement(vV,{top:void 0===t?0:t,left:void 0===n?0:n},b.createElement("circle",vU({className:pJ()("visx-glyph-dot",r)},i)))}vW.propTypes={className:pG().string,top:pG().number,left:pG().number,r:pG().number,cx:pG().number,cy:pG().number};var vq=n(9135),v$=["children","className","top","left","size"];function vK(){return(vK=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v$),s=(0,vF.Z)();return(s.type(vq.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?b.createElement(b.Fragment,null,t({path:s})):b.createElement(vV,{top:r,left:i},b.createElement("path",vK({className:pJ()("visx-glyph-cross",n),d:s()||""},a)))}vY.propTypes={children:pG().func,className:pG().string,top:pG().number,left:pG().number,size:pG().oneOfType([pG().number,pG().func])};var vG=n(46385),vX=n(20651),vJ={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},vQ=vJ.gray,v0=vQ[7],v1=[vJ.cyan[9],vJ.cyan[3],vJ.yellow[5],vJ.red[4],vJ.grape[8],vJ.grape[5],vJ.pink[9]];function v2(){return(v2=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)v8(e,n,{get:t[n],enumerable:!0})})(v7,{assign:()=>gT,colors:()=>gC,createStringInterpolator:()=>EE,skipAnimation:()=>gO,to:()=>Ek,willAdvance:()=>gM});var v9=gm(),ge=e=>gd(e,v9),gt=gm();ge.write=e=>gd(e,gt);var gn=gm();ge.onStart=e=>gd(e,gn);var gr=gm();ge.onFrame=e=>gd(e,gr);var gi=gm();ge.onFinish=e=>gd(e,gi);var go=[];ge.setTimeout=(e,t)=>{let n=ge.now()+t,r=()=>{let e=go.findIndex(e=>e.cancel==r);~e&&go.splice(e,1),gu-=~e?1:0},i={time:n,handler:e,cancel:r};return go.splice(ga(n),0,i),gu+=1,gf(),i};var ga=e=>~(~go.findIndex(t=>t.time>e)||~go.length);ge.cancel=e=>{gn.delete(e),gr.delete(e),gi.delete(e),v9.delete(e),gt.delete(e)},ge.sync=e=>{gc=!0,ge.batchedUpdates(e),gc=!1},ge.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,ge.onStart(n)}return r.handler=e,r.cancel=()=>{gn.delete(n),t=null},r};var gs="undefined"!=typeof window?window.requestAnimationFrame:()=>{};ge.use=e=>gs=e,ge.now="undefined"!=typeof performance?()=>performance.now():Date.now,ge.batchedUpdates=e=>e(),ge.catch=console.error,ge.frameLoop="always",ge.advance=()=>{"demand"!==ge.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):gp()};var gl=-1,gu=0,gc=!1;function gd(e,t){gc?(t.delete(e),e(0)):(t.add(e),gf())}function gf(){gl<0&&(gl=0,"demand"!==ge.frameLoop&&gs(gh))}function gh(){~gl&&(gs(gh),ge.batchedUpdates(gp))}function gp(){let e=gl;gl=ge.now();let t=ga(gl);if(t&&(gv(go.splice(0,t),e=>e.handler()),gu-=t),!gu){gl=-1;return}gn.flush(),v9.flush(e?Math.min(64,gl-e):16.667),gr.flush(),gt.flush(),gi.flush()}function gm(){let e=new Set,t=e;return{add(n){gu+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(gu-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,gu-=t.size,gv(t,t=>t(n)&&e.add(t)),gu+=e.size,t=e)}}}function gv(e,t){e.forEach(e=>{try{t(e)}catch(e){ge.catch(e)}})}function gg(){}var gy=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),gb={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function gx(e,t){if(gb.arr(e)){if(!gb.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function gj(e,t,n){if(gb.arr(e)){for(let r=0;rgb.und(e)?[]:gb.arr(e)?e:[e];function gk(e,t){if(e.size){let n=Array.from(e);e.clear(),gw(n,t)}}var gS=(e,...t)=>gk(e,e=>e(...t)),g_=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),gC=null,gO=!1,gM=gg,gT=e=>{e.to&&(Ek=e.to),e.now&&(ge.now=e.now),void 0!==e.colors&&(gC=e.colors),null!=e.skipAnimation&&(gO=e.skipAnimation),e.createStringInterpolator&&(EE=e.createStringInterpolator),e.requestAnimationFrame&&ge.use(e.requestAnimationFrame),e.batchedUpdates&&(ge.batchedUpdates=e.batchedUpdates),e.willAdvance&&(gM=e.willAdvance),e.frameLoop&&(ge.frameLoop=e.frameLoop)},gA=new Set,gP=[],gN=[],gR=0,gD={get idle(){return!gA.size&&!gP.length},start(e){gR>e.priority?(gA.add(e),ge.onStart(gL)):(gF(e),ge(gV))},advance:gV,sort(e){if(gR)ge.onFrame(()=>gD.sort(e));else{let t=gP.indexOf(e);~t&&(gP.splice(t,1),gz(e))}},clear(){gP=[],gA.clear()}};function gL(){gA.forEach(gF),gA.clear(),ge(gV)}function gF(e){gP.includes(e)||gz(e)}function gz(e){gP.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(gP,t=>t.priority>e.priority),0,e)}function gV(e){let t=gN;for(let n=0;n0}var gI="[-+]?\\d*\\.?\\d+",gZ=gI+"%";function gB(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var gH=RegExp("rgb"+gB(gI,gI,gI)),gU=RegExp("rgba"+gB(gI,gI,gI,gI)),gW=RegExp("hsl"+gB(gI,gZ,gZ)),gq=RegExp("hsla"+gB(gI,gZ,gZ,gI)),g$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gK=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gY=/^#([0-9a-fA-F]{6})$/,gG=/^#([0-9a-fA-F]{8})$/;function gX(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gJ(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=gX(i,r,e+1/3),a=gX(i,r,e),s=gX(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function gQ(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function g0(e){let t=parseFloat(e);return(t%360+360)%360/360}function g1(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function g2(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function g4(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gY.exec(e))?parseInt(t[1]+"ff",16)>>>0:gC&&void 0!==gC[e]?gC[e]:(t=gH.exec(e))?(gQ(t[1])<<24|gQ(t[2])<<16|gQ(t[3])<<8|255)>>>0:(t=gU.exec(e))?(gQ(t[1])<<24|gQ(t[2])<<16|gQ(t[3])<<8|g1(t[4]))>>>0:(t=g$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=gG.exec(e))?parseInt(t[1],16)>>>0:(t=gK.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=gW.exec(e))?(255|gJ(g0(t[1]),g2(t[2]),g2(t[3])))>>>0:(t=gq.exec(e))?(gJ(g0(t[1]),g2(t[2]),g2(t[3]))|g1(t[4]))>>>0:null;if(null===n)return e;n=n||0;let r=(4278190080&n)>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}var g3=(e,t,n)=>{if(gb.fun(e))return e;if(gb.arr(e))return g3({range:e,output:t,extrapolate:n});if(gb.str(e.output[0]))return EE(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},g5=Symbol.for("FluidValue.get"),g6=Symbol.for("FluidValue.observers"),g8=e=>!!(e&&e[g5]),g7=e=>e&&e[g5]?e[g5]():e,g9=e=>e[g6]||null;function ye(e,t){let n=e[g6];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var yt=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");yn(this,e)}},yn=(e,t)=>yo(e,g5,t);function yr(e,t){if(e[g5]){let n=e[g6];n||yo(e,g6,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function yi(e,t){let n=e[g6];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[g6]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var yo=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ya=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ys=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,yl=RegExp(`(${ya.source})(%|[a-z]+)`,"i"),yu=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,yc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,yd=e=>{let[t,n]=yf(e);if(!t||g_())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&yc.test(n))return yd(n);else if(n)return n;return e},yf=e=>{let t=yc.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},yh=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,yp=e=>{ES||(ES=gC?RegExp(`(${Object.keys(gC).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>g7(e).replace(yc,yd).replace(ys,g4).replace(ES,g4)),n=t.map(e=>e.match(ya).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})),i=r.map(t=>g3({...e,output:t}));return e=>{let n=!yl.test(t[0])&&t.find(e=>yl.test(e))?.replace(ya,""),r=0;return t[0].replace(ya,()=>`${i[r++](e)}${n||""}`).replace(yu,yh)}},ym="react-spring: ",yv=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${ym}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},yg=yv(console.warn),yy=yv(console.warn);function yb(e){return gb.str(e)&&("#"==e[0]||/\d/.test(e)||!g_()&&yc.test(e)||e in(gC||{}))}var yx=g_()?b.useEffect:b.useLayoutEffect,yw=()=>{let e=(0,b.useRef)(!1);return yx(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function yj(){let e=(0,b.useState)()[1],t=yw();return()=>{t.current&&e(Math.random())}}var yE=e=>(0,b.useEffect)(e,yk),yk=[];function yS(e){let t=(0,b.useRef)();return(0,b.useEffect)(()=>{t.current=e}),t.current}var y_=Symbol.for("Animated:node"),yC=e=>!!e&&e[y_]===e,yO=e=>e&&e[y_],yM=(e,t)=>gy(e,y_,t),yT=e=>e&&e[y_]&&e[y_].getPayload(),yA=class{constructor(){yM(this,this)}getPayload(){return this.payload||[]}},yP=class extends yA{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,gb.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new yP(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return gb.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,gb.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},yN=class extends yP{constructor(e){super(0),this._string=null,this._toString=g3({output:[e,e]})}static create(e){return new yN(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(gb.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=g3({output:[this.getValue(),e]})),this._value=0,super.reset()}},yR={dependencies:null},yD=class extends yA{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return gj(this.source,(n,r)=>{yC(n)?t[r]=n.getValue(e):g8(n)?t[r]=g7(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&gw(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return gj(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){yR.dependencies&&g8(e)&&yR.dependencies.add(e);let t=yT(e);t&&gw(t,e=>this.add(e))}},yL=class extends yD{constructor(e){super(e)}static create(e){return new yL(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(yF)),!0)}};function yF(e){let t=yb(e)?yN:yP;return t.create(e)}function yz(e){let t=yO(e);return t?t.constructor:gb.arr(e)?yL:yb(e)?yN:yP}var yV=(e,t)=>{let n=!gb.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,b.forwardRef)((r,i)=>{let o=(0,b.useRef)(null),a=n&&(0,b.useCallback)(e=>{o.current=(i&&(gb.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return yR.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new yD(e),yR.dependencies=null,[e,n]}(r,t),u=yj(),c=()=>{let e=o.current;if(n&&!e)return;let r=!!e&&t.applyAnimatedValues(e,s.getValue(!0));!1===r&&u()},d=new yI(c,l),f=(0,b.useRef)();yx(()=>(f.current=d,gw(l,e=>yr(e,d)),()=>{f.current&&(gw(f.current.deps,e=>yi(e,f.current)),ge.cancel(f.current.update))})),(0,b.useEffect)(c,[]),yE(()=>()=>{let e=f.current;gw(e.deps,t=>yi(t,e))});let h=t.getComponentProps(s.getValue());return b.createElement(e,{...h,ref:a})})},yI=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&ge.write(this.update)}},yZ=Symbol.for("AnimatedComponent"),yB=e=>gb.str(e)?e:e&&gb.str(e.displayName)?e.displayName:gb.fun(e)&&e.name||null;function yH(e,...t){return gb.fun(e)?e(...t):e}var yU=(e,t)=>!0===e||!!(t&&e&&(gb.fun(e)?e(t):gE(e).includes(t))),yW=(e,t)=>gb.obj(e)?t&&e[t]:e,yq=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,y$=e=>e,yK=(e,t=y$)=>{let n=yY;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);gb.und(n)||(r[i]=n)}return r},yY=["config","onProps","onStart","onChange","onPause","onResume","onRest"],yG={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function yX(e){let t=function(e){let t={},n=0;if(gj(e,(e,r)=>{!yG[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return gj(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function yJ(e){return e=g7(e),gb.arr(e)?e.map(yJ):yb(e)?v7.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yQ(e){for(let t in e)return!0;return!1}function y0(e){return gb.fun(e)||gb.arr(e)&&gb.obj(e[0])}function y1(e,t){e.ref?.delete(e),t?.delete(e)}function y2(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var y4={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},y3=class{constructor(){this.velocity=0,Object.assign(this,y4)}};function y5(e,t){if(gb.und(t.decay)){let n=!gb.und(t.tension)||!gb.und(t.friction);!n&&gb.und(t.frequency)&&gb.und(t.damping)&&gb.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var y6=[],y8=class{constructor(){this.changed=!1,this.values=y6,this.toValues=null,this.fromValues=y6,this.config=new y3,this.immediate=!1}};function y7(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u;let c=yU(n.cancel??r?.cancel,t);if(c)h();else{gb.und(n.pause)||(i.paused=yU(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||yU(e,t)),l=yH(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-ge.now()}function f(){l>0&&!v7.skipAnimation?(i.delayed=!0,u=ge.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var y9=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?bn(e.get()):t.every(e=>e.noop)?be(e.get()):bt(e.get(),t.every(e=>e.finished)),be=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),bt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),bn=e=>({value:e,cancelled:!0,finished:!1});function br(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=yK(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>(u=e,c=t)),p=e=>{let t=i<=(n.cancelId||0)&&bn(r)||i!==n.asyncId&&bt(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let o=new bo,a=new ba;return(async()=>{if(v7.skipAnimation)throw bi(n),a.result=bt(r,!1),c(a),a;p(o);let s=gb.obj(e)?{...e}:{...t,to:e};s.parentId=i,gj(f,(e,t)=>{gb.und(s[t])&&(s[t]=e)});let l=await r.start(s);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(v7.skipAnimation)return bi(n),bt(r,!1);try{let t;t=gb.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),h]),d=bt(r.get(),!0,!1)}catch(e){if(e instanceof bo)d=e.result;else if(e instanceof ba)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return gb.fun(a)&&ge.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function bi(e,t){gk(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var bo=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ba=class extends Error{constructor(){super("SkipAnimationSignal")}},bs=e=>e instanceof bu,bl=1,bu=class extends yt{constructor(){super(...arguments),this.id=bl++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=yO(this);return e&&e.getValue()}to(...e){return v7.to(this,e)}interpolate(...e){return yg(`${ym}The "interpolate" function is deprecated in v9 (use "to" instead)`),v7.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){ye(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||gD.sort(this),ye(this,{type:"priority",parent:this,priority:e})}},bc=Symbol.for("SpringPhase"),bd=e=>(1&e[bc])>0,bf=e=>(2&e[bc])>0,bh=e=>(4&e[bc])>0,bp=(e,t)=>t?e[bc]|=3:e[bc]&=-3,bm=(e,t)=>t?e[bc]|=4:e[bc]&=-5,bv=class extends bu{constructor(e,t){if(super(),this.animation=new y8,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!gb.und(e)||!gb.und(t)){let n=gb.obj(e)?{...e}:{...t,from:e};gb.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(bf(this)||this._state.asyncTo)||bh(this)}get goal(){return g7(this.animation.to)}get velocity(){let e=yO(this);return e instanceof yP?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return bd(this)}get isAnimating(){return bf(this)}get isPaused(){return bh(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=yT(r.to);!a&&g8(r.to)&&(i=gE(g7(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==yN?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,i=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=gb.arr(o.velocity)?o.velocity[l]:o.velocity,f=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(gb.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*n);d=i+a/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,t=a*r}else{t=null==s.lastVelocity?a:s.lastVelocity;let n=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!gb.und(r),h=i==u?s.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=-(1e-6*o.tension)*(d-u),n=-(.001*o.friction)*t,i=(e+n)/o.mass;t+=1*i,d+=1*t}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(r=(o.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),t=((d=i+o.easing(r)*(u-i))-s.lastPosition)/e,c=1==r}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=yO(this),l=s.getValue();if(t){let e=g7(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return ge.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(bf(this)){let{to:e,config:t}=this.animation;ge.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){let t=this.queue||(this.queue=[]);return t.push(e),this}start(e,t){let n;return gb.und(e)?(n=this.queue||[],this.queue=[]):n=[gb.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>{let t=this._update(e);return t})).then(e=>y9(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),bi(this._state,e&&this._lastCallId),ge.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=gb.obj(n)?n[t]:n)||y0(n))&&(n=void 0),null==(r=gb.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return bd(this)||(e.reverse&&([n,r]=[r,n]),r=g7(r),gb.und(r)?yO(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,yK(e,(e,t)=>/^on/.test(t)?yW(e,n):e)),bj(this,e,"onProps"),bE(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return y7(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{bh(this)||(bm(this,!0),gS(o.pauseQueue),bE(this,"onPause",bt(this,bg(this,this.animation.to)),this))},resume:()=>{bh(this)&&(bm(this,!1),bf(this)&&this._resume(),gS(o.resumeQueue),bE(this,"onResume",bt(this,bg(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=by(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(bn(this));let r=!gb.und(e.to),i=!gb.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(bn(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||gb.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!gx(d,u);f&&(s.from=d),d=g7(d);let h=!gx(c,l);h&&this._focus(c);let p=y0(t.to),{config:m}=s,{decay:v,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(y5(n={...n},t),t={...n,...t}),y5(e,t),Object.assign(e,t),y4)null==e[r]&&(e[r]=y4[r]);let{frequency:r,damping:i}=e,{mass:o}=e;gb.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,yH(t.config,o),t.config!==a.config?yH(a.config,o):void 0);let y=yO(this);if(!y||gb.und(c))return n(bt(this,!0));let b=gb.und(t.reset)?i&&!t.default:!gb.und(d)&&yU(t.reset,o),x=b?d:this.get(),w=yJ(c),j=gb.num(w)||gb.arr(w)||yb(w),E=!p&&(!j||yU(a.immediate||t.immediate,o));if(h){let e=yz(c);if(e!==y.constructor){if(E)y=this._set(w);else throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let k=y.constructor,S=g8(c),_=!1;if(!S){let e=b||!bd(this)&&f;(h||e)&&(S=!(_=gx(yJ(x),w))),(gx(s.immediate,E)||E)&&gx(m.decay,v)&&gx(m.velocity,g)||(S=!0)}if(_&&bf(this)&&(s.changed&&!b?S=!0:S||this._stop(l)),!p&&((S||g8(l))&&(s.values=y.getPayload(),s.toValues=g8(c)?null:k==yN?[1]:gE(w)),s.immediate==E||(s.immediate=E,E||b||this._set(l)),S)){let{onRest:e}=s;gw(bw,e=>bj(this,t,e));let r=bt(this,bg(this,l));gS(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&ge.batchedUpdates(()=>{s.changed=!b,e?.(r,this),b?yH(a.onRest,r):s.onStart?.(r,this)})}b&&this._set(x),p?n(br(t.to,t,this._state,this)):S?this._start():bf(this)&&!h?this._pendingCalls.add(n):n(be(x))}_focus(e){let t=this.animation;e!==t.to&&(g9(this)&&this._detach(),t.to=e,g9(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;g8(t)&&(yr(t,this),bs(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;g8(e)&&yi(e,this)}_set(e,t=!0){let n=g7(e);if(!gb.und(n)){let e=yO(this);if(!e||!gx(n,e.getValue())){let r=yz(n);e&&e.constructor==r?e.setValue(n):yM(this,r.create(n)),e&&ge.batchedUpdates(()=>{this._onChange(n,t)})}}return yO(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,bE(this,"onStart",bt(this,bg(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yH(this.animation.onChange,e,this)),yH(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;yO(this).reset(g7(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),bf(this)||(bp(this,!0),bh(this)||this._resume())}_resume(){v7.skipAnimation?this.finish():gD.start(this)}_stop(e,t){if(bf(this)){bp(this,!1);let n=this.animation;gw(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),ye(this,{type:"idle",parent:this});let r=t?bn(this.get()):bt(this.get(),bg(this,e??n.to));gS(this._pendingCalls,r),n.changed&&(n.changed=!1,bE(this,"onRest",r,this))}}};function bg(e,t){let n=yJ(t),r=yJ(e.get());return gx(r,n)}function by(e,t=e.loop,n=e.to){let r=yH(t);if(r){let i=!0!==r&&yX(r),o=(i||e).reverse,a=!i||i.reset;return bb({...e,loop:t,default:!1,pause:void 0,to:!o||y0(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function bb(e){let{to:t,from:n}=e=yX(e),r=new Set;return gb.obj(t)&&bx(t,r),gb.obj(n)&&bx(n,r),e.keys=r.size?Array.from(r):null,e}function bx(e,t){gj(e,(e,n)=>null!=e&&t.add(n))}var bw=["onStart","onRest","onChange","onPause","onResume"];function bj(e,t,n){e.animation[n]=t[n]!==yq(t,n)?yW(t[n],e.key):void 0}function bE(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var bk=["onStart","onChange","onRest"],bS=1,b_=class{constructor(e,t){this.id=bS++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];gb.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(bb(e)),this}start(e){let{queue:t}=this;return(e?t=gE(e).map(bb):this.queue=[],this._flush)?this._flush(this,t):(bN(this,t),bC(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;gw(gE(t),t=>n[t].stop(!!e))}else bi(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(gb.und(e))this.start({pause:!0});else{let t=this.springs;gw(gE(e),e=>t[e].pause())}return this}resume(e){if(gb.und(e))this.start({pause:!1});else{let t=this.springs;gw(gE(e),e=>t[e].resume())}return this}each(e){gj(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,gk(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&gk(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,gk(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}ge.onFrame(this._onFrame)}};function bC(e,t){return Promise.all(t.map(t=>bO(e,t))).then(t=>y9(e,t))}async function bO(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=gb.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=gb.arr(i)||gb.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):gw(bk,n=>{let r=t[n];if(gb.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,gS(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===yq(t,"cancel");(c||h&&d.asyncId)&&f.push(y7(++e._lastAsyncId,{props:t,state:d,actions:{pause:gg,resume:gg,start(t,n){h?(bi(d,e._lastAsyncId),n(bn(e))):(t.onRest=s,n(br(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=y9(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=by(t,a,i);if(n)return bN(e,[n]),bO(e,n,!0)}return l&&ge.batchedUpdates(()=>l(p,e,e.item)),p}function bM(e,t){let n={...e.springs};return t&&gw(gE(t),e=>{gb.und(e.keys)&&(e=bb(e)),gb.obj(e.to)||(e={...e,to:void 0}),bP(n,e,e=>bA(e))}),bT(e,n),n}function bT(e,t){gj(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,yr(t,e))})}function bA(e,t){let n=new bv;return n.key=e,t&&yr(n,t),n}function bP(e,t,n){t.keys&&gw(t.keys,r=>{let i=e[r]||(e[r]=n(r));i._prepareNode(t)})}function bN(e,t){gw(t,t=>{bP(e.springs,t,t=>bA(t,e))})}var bR=({children:e,...t})=>{let n=(0,b.useContext)(bD),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,b.useState)(()=>({inputs:t,result:e()})),r=(0,b.useRef)(),i=r.current,o=i;if(o){let n=!!(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=bD;return b.createElement(o,{value:t},e)},bD=(Object.assign(bR,b.createContext({})),bR.Provider._context=bR,bR.Consumer._context=bR,bR);bR.Provider=bD.Provider,bR.Consumer=bD.Consumer;var bL=()=>{let e=[],t=function(t){yy(`${ym}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let r=[];return gw(e,(e,i)=>{if(gb.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return gw(e,e=>e.pause(...arguments)),this},t.resume=function(){return gw(e,e=>e.resume(...arguments)),this},t.set=function(t){gw(e,(e,n)=>{let r=gb.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return gw(e,(e,r)=>{if(gb.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return gw(e,e=>e.stop(...arguments)),this},t.update=function(t){return gw(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return gb.fun(e)?e(n,t):e};return t._getProps=n,t};function bF(e,t){let n=gb.fun(e),[[r],i]=function(e,t,n){let r=gb.fun(t)&&t;r&&!n&&(n=[]);let i=(0,b.useMemo)(()=>r||3==arguments.length?bL():void 0,[]),o=(0,b.useRef)(0),a=yj(),s=(0,b.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=bM(e,t),r=o.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t]);return r?bC(e,t):new Promise(r=>{bT(e,n),s.queue.push(()=>{r(bC(e,t))}),a()})}}),[]),l=(0,b.useRef)([...s.ctrls]),u=[],c=yS(e)||0;function d(e,n){for(let i=e;i{gw(l.current.slice(e,c),e=>{y1(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,b.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>bM(e,u[t])),h=(0,b.useContext)(bR),p=yS(h),m=h!==p&&yQ(h);yx(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],gw(e,e=>e())),gw(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(y2(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),yE(()=>()=>{gw(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function bz(e,t,n){let r=gb.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,b.useMemo)(()=>r||3==arguments.length?bL():void 0,[]),h=gE(e),p=[],m=(0,b.useRef)(null),v=i?null:m.current;yx(()=>{m.current=p}),yE(()=>(gw(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{gw(m.current,e=>{e.expired&&clearTimeout(e.expirationId),y1(e.ctrl,f),e.ctrl.stop(!0)})}));let g=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):bV++})}return gb.und(n)?e:gb.fun(n)?e.map(n):gE(n)}(h,r?r():t,v),y=i&&m.current||[];yx(()=>gw(y,({ctrl:e,item:t,key:n})=>{y1(e,f),yH(u,t,n)}));let x=[];if(v&&gw(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=x[t]=g.indexOf(e.key))&&(p[t]=e)}),gw(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new b_},p[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;gw(x,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}gb.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let w=-a,j=yj(),E=yK(t),k=new Map,S=(0,b.useRef)(new Map),_=(0,b.useRef)(!1);gw(p,(e,n)=>{let i,o;let u=e.key,f=e.phase,h=r?r():t,p=yH(h.delay||0,u);if("mount"==f)i=h.enter,o="enter";else{let e=0>g.indexOf(u);if("leave"!=f){if(e)i=h.leave,o="leave";else{if(!(i=h.update))return;o="update"}}else{if(e)return;i=h.enter,o="enter"}}if(i=yH(i,e.item,n),!(i=gb.obj(i)?yX(i):{to:i}).config){let t=d||E.config;i.config=yH(t,e.item,n,o)}w+=a;let y={...E,delay:p+w,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==o&&gb.und(y.from)){let i=r?r():t,o=gb.und(i.initial)||v?i.from:i.initial;y.from=yH(o,e.item,n)}let{onResolve:b}=y;y.onResolve=e=>{yH(b,e);let t=m.current,n=t.find(e=>e.key===u);if(n){if(e.cancelled&&"update"!=n.phase)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=yH(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(j,r));return}}}e&&t.some(e=>e.expired)&&(S.current.delete(n),l&&(_.current=!0),j())}}};let x=bM(e.ctrl,y);"leave"===o&&l?S.current.set(e,{phase:o,springs:x,payload:y}):k.set(e,{phase:o,springs:x,payload:y})});let C=(0,b.useContext)(bR),O=yS(C),M=C!==O&&yQ(C);yx(()=>{M&&gw(p,e=>{e.ctrl.start({default:C})})},[C]),gw(k,(e,t)=>{if(S.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),yx(()=>{gw(S.current.size?S.current:k,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),M&&"enter"==e&&r.start({default:C}),t&&(y2(r,t.ref),(r.ref||f)&&!_.current?r.update(t):(r.start(t),_.current&&(_.current=!1)))})},i?void 0:n);let T=e=>b.createElement(b.Fragment,null,p.map((t,n)=>{let{springs:r}=k.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?b.createElement(i.type,{...i.props,key:gb.str(t.key)||gb.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[T,f]:T}var bV=1,bI=class extends bu{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=g3(...t);let n=this._get(),r=yz(n);yM(this,r.create(n))}advance(e){let t=this._get(),n=this.get();gx(t,n)||(yO(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&bB(this._active)&&bH(this)}_get(){let e=gb.arr(this.source)?this.source.map(g7):gE(g7(this.source));return this.calc(...e)}_start(){this.idle&&!bB(this._active)&&(this.idle=!1,gw(yT(this),e=>{e.done=!1}),v7.skipAnimation?(ge.batchedUpdates(()=>this.advance()),bH(this)):gD.start(this))}_attach(){let e=1;gw(gE(this.source),t=>{g8(t)&&yr(t,this),bs(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){gw(gE(this.source),e=>{g8(e)&&yi(e,this)}),this._active.clear(),bH(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=gE(this.source).reduce((e,t)=>Math.max(e,(bs(t)?t.priority:0)+1),0))}};function bZ(e){return!1!==e.idle}function bB(e){return!e.size||Array.from(e).every(bZ)}function bH(e){e.idle||(e.idle=!0,gw(yT(e),e=>{e.done=!0}),ye(e,{type:"idle",parent:e}))}var bU=(e,...t)=>new bI(e,t);v7.assign({createStringInterpolator:yp,to:(e,t)=>new bI(e,t)}),gD.advance;var bW=/^--/,bq={},b$={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bK=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),bY=["Webkit","Ms","Moz","O"];b$=Object.keys(b$).reduce((e,t)=>(bY.forEach(n=>e[bK(n,t)]=e[t]),e),b$);var bG=/^(matrix|translate|scale|rotate|skew)/,bX=/^(translate)/,bJ=/^(rotate|skew)/,bQ=(e,t)=>gb.num(e)&&0!==e?e+t:e,b0=(e,t)=>gb.arr(e)?e.every(e=>b0(e,t)):gb.num(e)?e===t:parseFloat(e)===t,b1=class extends yD{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>bQ(e,"px")).join(",")})`,b0(e,0)])),gj(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(bG.test(t)){if(delete r[t],gb.und(e))return;let n=bX.test(t)?"px":bJ.test(t)?"deg":"";i.push(gE(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${bQ(i,n)})`,b0(i,0)]:e=>[`${t}(${e.map(e=>bQ(e,n)).join(",")})`,b0(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new b2(i,o)),super(r)}},b2=class extends yt{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return gw(this.inputs,(n,r)=>{let i=g7(n[0]),[o,a]=this.transforms[r](gb.arr(i)?i:n.map(g7));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&gw(this.inputs,e=>gw(e,e=>g8(e)&&yr(e,this)))}observerRemoved(e){0==e&&gw(this.inputs,e=>gw(e,e=>g8(e)&&yi(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),ye(this,e)}};v7.assign({batchedUpdates:to.unstable_batchedUpdates,createStringInterpolator:yp,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var b4=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new yD(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=yB(e)||"Anonymous";return(e=gb.str(e)?o[e]||(o[e]=yV(e,i)):e[yZ]||(e[yZ]=yV(e,i))).displayName=`Animated(${t})`,e};return gj(e,(t,n)=>{gb.arr(e)&&(n=yB(t)),o[n]=o(t)}),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:bq[t]||(bq[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||bW.test(t)||b$.hasOwnProperty(t)&&b$[t]?(""+d).trim():d+"px";bW.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new b1(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,b3=n(23442),b5=(0,b.createContext)({});function b6(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,o=e.children,a=(0,b.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return b.createElement(b5.Provider,{value:a},o)}function b8(){return(b8=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,xr),p=(0,b.useContext)(xe)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,x=p.yScale,w=p.dataRegistry,j=(0,b.useMemo)(function(){return y?xt(y):0},[y]),E=(0,b.useMemo)(function(){return x?xt(x):0},[x]);if((!s||!l)&&!a)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var k=s&&l||null==a?null:null==w?void 0:w.get(a),S=s||(null==k?void 0:k.xAccessor),_=l||(null==k?void 0:k.yAccessor);if(!y||!x||!v||!m||!S||!_||!g)return null;var C=(null!=(t=(0,p4.Z)(y(S(o))))?t:NaN)+j/2,O=(null!=(n=(0,p4.Z)(x(_(o))))?n:NaN)+E/2,M=C+c+16>g.left+v?-c:c,T=O+f+16>g.top+m?-f:f;return xn(C)&&xn(O)?b.createElement(r,xi({width:v,height:m},h,{x:C,y:O,dx:M,dy:T}),i):null}xo.propTypes={dataKey:pG().string,xAccessor:pG().func,yAccessor:pG().func};var xa=["x","y","AnnotationComponent"],xs=["editable"];function xl(){return(xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function xc(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,o=e.AnnotationComponent,a=xu(e,xa),s=(0,b.useRef)({x:n,y:i}),l=bF({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,b.useEffect)(function(){s.current={x:n,y:i}},[n,i]),b.createElement(b4.g,{transform:bU([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},b.createElement(o,xl({x:n,y:i},a)))}function xd(e){var t=e.editable,n=xu(e,xs),r=(0,b.useCallback)(function(e){return b.createElement(xc,xl({AnnotationComponent:t?b9:b6},e))},[t]);return b.createElement(xo,xl({AnnotationComponent:r},n))}xd.propTypes={editable:pG().bool};var xf=n(12766),xh=n(54073),xp=n.n(xh),xm=["d","stroke","fill"];function xv(){return(xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,xm),o=(0,b.useRef)(t),a=(0,b.useCallback)(xp()(function(e){o.current=e},50),[]),s=(0,xf.interpolatePath)(o.current,t);a(t);var l=bF({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=bF({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return b.createElement(b4.path,xv({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var xy=n(12935),xb=n(12151);function xx(){return(xx=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function xA(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>xT(e(t),n)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}let xP=xA(xT);xP.right;let xN=xP.left;function xR(e){var t,n,r=e.scale,i=e.accessor,o=e.scaledValue,a=e.data;if("invert"in r&&"function"==typeof r.invert){var s=xA(i).left,l=Number(r.invert(o)),u=s(a,l),c=a[u-1],d=a[u];n=(t=!c||Math.abs(l-i(c))>Math.abs(l-i(d))?d:c)===c?u-1:u}else{if(!("step"in r)||void 0===r.step)return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;var f=r.domain(),h=r.range().map(Number),p=[].concat(h).sort(function(e,t){return e-t}),m=xN(function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=Array(i);++r=0||(i[n]=e[n]);return i}(e,xq),C=(0,b.useContext)(xe),O=C.colorScale,M=C.theme,T=C.horizontal,A=(0,b.useMemo)(function(){return w?xj(j,w):void 0},[j,w]),P=(0,b.useMemo)(function(){return xj(j,x)},[j,x]),N=(0,b.useMemo)(function(){return k?xj(S,k):void 0},[S,k]),R=(0,b.useMemo)(function(){return xj(S,E)},[S,E]),D=(0,b.useCallback)(function(e){return xn(j(x(e)))&&xn(S(E(e)))},[j,x,S,E]),L=null!=(t=null!=(n=null==O?void 0:O(l))?n:null==M?void 0:null==(r=M.colors)?void 0:r[0])?t:"#222",F="AREASERIES_EVENT_SOURCE-"+l,z=xZ({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:F,allowedSources:[xk,F]}),V=(0,b.useMemo)(function(){var e=xE(T?j:S);return T?{x0:null!=A?A:e,x1:P,y:R}:{x:P,y0:null!=N?N:e,y1:R}},[j,S,T,P,R,A,N]),I=!!(d||c),Z=(0,b.useCallback)(function(e){var t=e.glyphs;return I?t.map(function(e){return b.createElement(b.Fragment,{key:e.key},xW(x$({},e,{color:"transparent",onFocus:z.onFocus,onBlur:z.onBlur})))}):null},[I,z.onFocus,z.onBlur]);return b.createElement(b.Fragment,null,b.createElement(xy.Z,x$({},V,_,{curve:a,defined:D}),function(e){var t=e.path;return b.createElement(o,x$({className:"visx-area",stroke:"transparent",fill:L,strokeLinecap:"round"},_,{d:t(s)||""},z))}),y&&b.createElement(xb.Z,x$({x:P,y:R,defined:D,curve:a},u),function(e){var t=e.path;return b.createElement(o,x$({className:"visx-line",fill:"transparent",stroke:L,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),I&&b.createElement(xH,{dataKey:l,data:s,xAccessor:x,yAccessor:E,xScale:j,yScale:S,renderGlyphs:Z}))}xK.propTypes={renderLine:pG().bool};var xY=xw(xK);function xG(){return(xG=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n}function x4(e,t){return e[t]}function x3(e){let t=[];return t.key=e,t}Array.prototype.slice;var x5=n(74322),x6=n(58543);function x8(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=0?"positiveSum":"negativeSum"]+=i})}}),Object.values(e)},[o,l]),d=(0,b.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=x0([]),t=x2,n=x1,r=x4;function i(i){var o,a,s,l=Array.from(e.apply(this,arguments),x3),u=l.length,c=-1;for(let e of i)for(a=0,++c;a0&&0===r&&(o?i.xScale=function(e){return e.domain(x8(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(x8(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return s(u)}},[u,f,o,d,a,s,l]),{seriesChildren:l,dataKeys:u,stackedData:d}}function wr(e,t,n){var r,i,o,a,s=e.xScale,l=e.yScale,u=e.point,c=(n?xL:xD)(e),d=(null==c?void 0:c.index)==null?null:t[c.index];return c&&d&&u?{index:c.index,datum:d,distanceX:n&&u.x>=(null!=(r=s((0,xQ.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,xQ.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(o=l((0,xQ.l8)(c.datum)))?o:-1/0)&&u.y>=(null!=(a=l((0,xQ.xf)(c.datum)))?a:1/0)?0:c.distanceY}:null}var wi=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function wo(){return(wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(a,wi)),u=wo({fill:null!=(n=null!=(r=null==g?void 0:g(e.key))?r:null==E?void 0:null==(i=E.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:O,data:e,areaProps:u,lineProps:s}})},[C,O,g,_,E]),T=(0,b.useCallback)(function(e){var t,n,r=null==(t=_.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?wr(e,r,x):null},[_,x]),A="AREASTACK_EVENT_SOURCE-"+S.join("-"),P=xZ({dataKey:S,enableEvents:void 0===o||o,findNearestDatum:T,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:A,allowedSources:[xk,A]}),N=!!(l||s),R=(0,b.useCallback)(function(e){var t=e.glyphs;return N?t.map(function(e){return b.createElement(b.Fragment,{key:e.key},xW(wo({},e,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur})))}):null},[N,P.onFocus,P.onBlur]);return!S.some(function(e){return null==y.get(e)})&&w&&j&&g?b.createElement("g",{className:"visx-area-stack"},M.map(function(e){return b.createElement(xy.Z,wo({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return b.createElement(n,wo({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,P))})}),m&&M.map(function(e){return b.createElement(xJ.Z,wo({key:"line-"+e.key,x:e.accessors.x||e.accessors.x1,y:e.accessors.y||e.accessors.y1,defined:e.accessors.defined,curve:i},e.lineProps),function(t){var r=t.path;return b.createElement(n,wo({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),N&&M.map(function(e,t){var n=M[M.length-t-1];return b.createElement(xH,{key:"glyphs-"+n.key,dataKey:n.key,data:n.data,xAccessor:n.accessors.x||n.accessors.x1,yAccessor:n.accessors.y||n.accessors.y1,xScale:wa,yScale:wa,renderGlyphs:R})})):null}function wl(){return(wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wd),c=(0,b.useContext)(xe),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,b.useMemo)(function(){var e,t,n,r;return"left"===g||"right"===g?null==d?void 0:null==(e=d.axisStyles)?void 0:null==(t=e.y)?void 0:t[g]:null==d?void 0:null==(n=d.axisStyles)?void 0:null==(r=n.x)?void 0:r[g]},[d,g]),x=u.tickLabelProps,w=(0,b.useMemo)(function(){return x||y?function(e,t,n){return wf({},null==y?void 0:y.tickLabel,{width:"left"===g||"right"===g?null==p?void 0:p[g]:void 0},null==x?void 0:x(e,t,n))}:void 0},[x,y,g,p]),j="bottom"===g?(null!=v?v:0)-(null!=(t=null==p?void 0:p.bottom)?t:0):"top"===g&&null!=(n=null==p?void 0:p.top)?n:0,E="left"===g?null!=(r=null==p?void 0:p.left)?r:0:"right"===g?(null!=m?m:0)-(null!=(i=null==p?void 0:p.right)?i:0):0,k="left"===g||"right"===g?h:f;return k?b.createElement(l,wf({top:j,left:E,labelProps:null==y?void 0:y.axisLabel,stroke:null==y?void 0:null==(o=y.axisLine)?void 0:o.stroke,strokeWidth:null==y?void 0:null==(a=y.axisLine)?void 0:a.strokeWidth,tickLength:null==y?void 0:y.tickLength,tickStroke:null==y?void 0:null==(s=y.tickLine)?void 0:s.stroke},u,{tickLabelProps:w,scale:k})):null}function wp(){return(wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return wg({},u,{distanceX:0,distanceY:m?0:Math.abs(l.y-(h+p)/2)})}var v=a(i(u.datum)),g=(null!=v?v:1/0)+(null!=c?c:1/0),y=g+d,b=l.x>=g&&l.x<=y;return wg({},u,{distanceY:0,distanceX:b?0:Math.abs(l.x-(g+y)/2)})}(e,k,v)},[k,v]),_="BARGROUP_EVENT_SOURCE-"+E.join("-")+"}",C=xZ({dataKey:E,enableEvents:void 0===f||f,findNearestDatum:S,onBlur:a,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:_,allowedSources:[xk,_]}),O=(0,b.useMemo)(function(){return x?xE(x):0},[x]),M=(0,b.useMemo)(function(){return w?xE(w):0},[w]),T=E.map(function(e){return m.get(e)});if(T.some(function(e){return null==e})||!x||!w||!p)return null;var A=xt(k),P=T.map(function(e){var t,n=e.xAccessor,r=e.yAccessor,i=e.data,o=e.key,a=function(e){var t,i;return v?(null!=(t=x(n(e)))?t:NaN)-O:(null!=(i=w(r(e)))?i:NaN)-M},s=v?function(e){var t;return null!=(t=w(r(e)))?t:NaN}:function(e){var t;return null!=(t=x(n(e)))?t:NaN},l=null!=(t=k(o))?t:0,u=v?function(e){return O+Math.min(0,a(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return M+Math.min(0,a(e))},d=v?function(e){return Math.abs(a(e))}:function(){return A},f=v?function(){return A}:function(e){return Math.abs(a(e))},h=j.find(function(e){return e.props.dataKey===o}),m=(null==h?void 0:h.props)||{},g=m.colorAccessor;return{key:o,radius:m.radius,radiusAll:m.radiusAll,radiusBottom:m.radiusBottom,radiusLeft:m.radiusLeft,radiusRight:m.radiusRight,radiusTop:m.radiusTop,bars:i.map(function(e,t){var n,r=u(e);if(!xn(r))return null;var i=c(e);if(!xn(i))return null;var a=d(e);if(!xn(a))return null;var s=f(e);return xn(s)?{key:o+"-"+t,x:r,y:i,width:a,height:s,fill:null!=(n=null==g?void 0:g(e,t))?n:p(o)}:null}).filter(function(e){return e})}});return b.createElement("g",{className:"visx-bar-group"},P.map(function(e){return e&&b.createElement(o,wy({horizontal:v,xScale:x,yScale:w},e,C,{key:e.key}))}))}wb.propTypes={children:pG().node.isRequired,padding:pG().number,sortBars:pG().func};var wx=n(10897),ww=function(e){return!!(null==e?void 0:e.includes("url("))},wj=function(e){return ww(e)?"rgba(0,0,0,0.1)":e},wE=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],wk=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function wS(){return(wS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function wC(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:wj(e.fill),opacity:1}}function wO(e){var t=e.bars,n=(e.xScale,e.yScale,e.horizontal,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=w_(e,wE);return b.createElement(b.Fragment,null,t.map(function(e){var t=e.key,u=e.fill,c=e.x,d=e.y,f=e.width,h=e.height;return b.createElement(wx.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:o,bottom:a,left:s},function(e){var t=e.path;return b.createElement(xg,wS({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function wM(e){var t,n,r,i=e.bars,o=e.xScale,a=e.yScale,s=e.horizontal,l=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,w_(e,wk)),u=bz(i,wS({},(n=(t={horizontal:s,scale:s?o:a}).scale,r=!!t.horizontal,(0,b.useMemo)(function(){var e=xE(n);function t(t){var n=t.x,i=t.y,o=t.width,a=t.height;return{x:r?null!=e?e:0:n,y:r?i:null!=e?e:0,width:r?0:o,height:r?a:0,fill:wj(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:wC,update:wC,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return b.createElement(b.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,o=e.width,a=e.height,s=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:b.createElement(b4.rect,wS({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:o,height:a,fill:ww(t.fill)?t.fill:s,opacity:u},l))}))}function wT(e){return null==e.radius?b.createElement(wM,e):b.createElement(wO,wS({},e,{radius:e.radius}))}function wA(){return(wA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wN),j=(0,b.useContext)(xe),E=j.colorScale,k=j.horizontal,S=j.theme,_=j.innerWidth,C=j.innerHeight,O=(0,b.useMemo)(function(){return xj(g,v)},[g,v]),M=(0,b.useMemo)(function(){return xj(x,y)},[x,y]),T=xt(k?x:g)||(k?void 0===C?0:C:void 0===_?0:_)/s.length*(1-Math.min(1,Math.max(0,void 0===o?.1:o))),A=(0,b.useMemo)(function(){return g?xE(g):0},[g]),P=(0,b.useMemo)(function(){return x?xE(x):0},[x]),N=null!=(t=null!=(n=null==E?void 0:E(l))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",R=(0,b.useMemo)(function(){var e=k?0:-T/2,t=k?-T/2:0;return s.map(function(n,r){var i,o=O(n)+e;if(!xn(o))return null;var s=M(n)+t;if(!xn(s))return null;var l=k?o-A:s-P;return xn(l)?{key:""+r,x:k?A+Math.min(0,l):o,y:k?s:P+Math.min(0,l),width:k?Math.abs(l):T,height:k?T:Math.abs(l),fill:null!=(i=null==a?void 0:a(n,r))?i:N}:null}).filter(function(e){return e})},[T,N,a,s,O,M,k,A,P]),D="BARSERIES_EVENT_SOURCE-"+l,L=xZ({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:D,allowedSources:[xk,D]});return b.createElement("g",{className:"vx-bar-series"},b.createElement(i,wR({bars:R,horizontal:k,xScale:g,yScale:x},L,w)))}wD.propTypes={barPadding:pG().number,colorAccessor:pG().func};var wL=xw(wD),wF=["colorAccessor"];function wz(){return(wz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wF);return b.createElement(wL,wz({},n,{colorAccessor:t,BarsComponent:wT}))}var wI=n(15590);function wZ(){return(wZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w$),i=(0,b.useCallback)(function(e){return b.createElement(wq,wK({},e,{renderGlyph:n}))},[n]);return b.createElement(xU,wK({},r,{renderGlyphs:i}))}var wG=n(93353),wX=n(63962),wJ=["rows","columns","GridRowsComponent","GridColumnsComponent"];function wQ(){return(wQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wJ),l=(0,b.useContext)(xe),u=l.theme,c=l.xScale,d=l.yScale,f=l.margin,h=l.innerWidth,p=l.innerHeight,m=null==u?void 0:u.gridStyles;return b.createElement(b.Fragment,null,n&&d&&null!=h&&b.createElement(o,wQ({left:null==f?void 0:f.left,lineStyle:m,width:h,scale:d},s)),i&&c&&null!=p&&b.createElement(a,wQ({top:null==f?void 0:f.top,lineStyle:m,height:p,scale:c},s)))}w0.propTypes={rows:pG().bool,columns:pG().bool};var w1=["animationTrajectory"];function w2(){return(w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w1),r=(0,b.useMemo)(function(){return function(e){return b.createElement(wG.Z,w2({},e,{animationTrajectory:t}))}},[t]),i=(0,b.useMemo)(function(){return function(e){return b.createElement(wX.Z,w2({},e,{animationTrajectory:t}))}},[t]);return b.createElement(w0,w2({GridRowsComponent:r,GridColumnsComponent:i},n))}var w3=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function w5(){return(w5=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w3),E=(0,b.useContext)(xe),k=E.colorScale,S=E.theme,_=(0,b.useMemo)(function(){return xj(v,m)},[v,m]),C=(0,b.useMemo)(function(){return xj(y,g)},[y,g]),O=(0,b.useCallback)(function(e){return xn(v(m(e)))&&xn(y(g(e)))},[v,m,y,g]),M=null!=(t=null!=(n=null==k?void 0:k(s))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",T="LINESERIES_EVENT_SOURCE-"+s,A=xZ({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:T,allowedSources:[xk,T]}),P=!!(u||l),N=(0,b.useCallback)(function(e){var t=e.glyphs;return P?t.map(function(e){return b.createElement(b.Fragment,{key:e.key},xW(w5({},e,{color:"transparent",onFocus:A.onFocus,onBlur:A.onBlur})))}):null},[P,A.onFocus,A.onBlur]);return b.createElement(b.Fragment,null,b.createElement(xb.Z,w5({x:_,y:C,defined:O,curve:o},j),function(e){var t,n=e.path;return b.createElement(w,w5({stroke:null!=(t=null==i?void 0:i(s))?t:M,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},j,{d:n(a)||""},A))}),P&&b.createElement(xH,{dataKey:s,data:a,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:N}))}w6.propTypes={colorAccessor:pG().func};var w8=xw(w6);function w7(){return(w7=Object.assign?Object.assign.bind():function(e){for(var t=1;tjn.every(n=>e[n]===t[n]);function ji(e,t){return(ji=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var jo=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ji(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return(this.node||"undefined"==typeof document||(this.node=document.createElement("div"),null!=this.props.zIndex&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node)?to.createPortal(this.props.children,this.node):null},t}(b.PureComponent);jo.propTypes={zIndex:pG().oneOfType([pG().number,pG().string])};var ja=["detectBounds","zIndex"],js=["left","top","detectBounds","zIndex"];function jl(){return(jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var jc=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],jd=["x","y"];function jf(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function jh(){return(jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,b.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c};u.current.element instanceof HTMLElement&&o&&(d.height=u.current.element.offsetHeight,d.width=u.current.element.offsetWidth),Object.freeze(d),f.current&&!jr(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?jt()(e,d):e,c?jt()(e,c):e]},[l,o,c,d]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",m,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){u.current.element&&(u.current.resizeObserver=new a(m),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(e=>e.addEventListener("scroll",m,{capture:!0,passive:!0})))}return t=!!r,(0,b.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,b.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,b.useEffect)(()=>{v(),g()},[r,m,p]),(0,b.useEffect)(()=>v,[]),[e=>{e&&e!==u.current.element&&(v(),u.current.element=e,u.current.scrollContainers=function e(t){let n=[];if(!t||t===document.body)return n;let{overflow:r,overflowX:i,overflowY:o}=window.getComputedStyle(t);return[r,i,o].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),g())},s,h]}(ju(ei,ja)))[0],ec=el[1],ed=el[2],ef=(0,b.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,o=ju(e,js),a=null==i?es:i,s=(null==r?ea:r)?mx:md,l=(void 0===t?0:t)+(ec.left||0)+window.scrollX,u=(void 0===n?0:n)+(ec.top||0)+window.scrollY;return b.createElement(jo,{zIndex:a},b.createElement(s,jl({left:l,top:u},o)))}},[ea,es,ec.left,ec.top]),{containerRef:eu,containerBounds:ec,forceRefreshBounds:ed,TooltipInPortal:ef}),L=D.containerRef,F=D.TooltipInPortal,z=D.forceRefreshBounds,V=(0,b.useCallback)(function(e){var t;L(null!=(t=null==e?void 0:e.parentElement)?t:null)},[L]),I=null!=R&&R.tooltipOpen?o(jh({},R,{colorScale:_})):null,Z=(null==R?void 0:R.tooltipOpen)&&null!=I,B=(0,b.useRef)(!1);(0,b.useEffect)(function(){Z&&!B.current&&z(),B.current=Z},[Z,z]);var H=null==R?void 0:R.tooltipLeft,U=null==R?void 0:R.tooltipTop,W=A?xt(A):0,q=P?xt(P):0,$=(0,b.useCallback)(function(e,t){var n,r,i=null==N?void 0:N.get(e),o=null==i?void 0:i.xAccessor,a=null==i?void 0:i.yAccessor;return{left:A&&o?null!=(n=Number(A(o(t)))+W/2)?n:0:void 0,top:P&&a?null!=(r=Number(P(a(t)))+q/2)?r:0:void 0}},[N,W,q,A,P]),K=null==R?void 0:null==(eh=R.tooltipData)?void 0:eh.nearestDatum,Y=null!=(ep=null==K?void 0:K.key)?ep:"";if(Z&&K&&(y||w)){var G=$(Y,K.datum),X=G.left,J=G.top;H=y&&xn(X)?X:H,U=w&&xn(J)?J:U}var Q=[];if(Z&&(void 0!==c&&c||p)){var ee=Number(null!=(e_=null==i?void 0:i.radius)?e_:4);if(p)Object.values(null!=(eC=null==R?void 0:null==(eO=R.tooltipData)?void 0:eO.datumByKey)?eC:{}).forEach(function(e){var t,n,r,o=e.key,a=e.datum,s=e.index,l=null!=(t=null!=(n=null==_?void 0:_(o))?n:null==C?void 0:null==(r=C.htmlLabel)?void 0:r.color)?t:"#222",u=$(o,a),c=u.left,d=u.top;xn(c)&&xn(d)&&Q.push({key:o,color:l,datum:a,index:s,size:ee,x:c,y:d,glyphStyle:i,isNearestDatum:!!K&&K.key===o})});else if(K){var et=$(Y,K.datum),en=et.left,er=et.top;if(xn(en)&&xn(er)){var ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,ej,eE,ek,eS,e_,eC,eO,eM,eT,eA,eP,eN,eR,eD=null!=(eM=null!=(eT=null!=(eA=null!=(eP=Y&&(null==_?void 0:_(Y)))?eP:null)?eA:null==C?void 0:null==(eN=C.gridStyles)?void 0:eN.stroke)?eT:null==C?void 0:null==(eR=C.htmlLabel)?void 0:eR.color)?eM:"#222";Q.push({key:Y,color:eD,datum:K.datum,index:K.index,size:ee,x:en,y:er,glyphStyle:i,isNearestDatum:!0})}}}return b.createElement(b.Fragment,null,b.createElement("svg",{ref:V,style:jm}),Z&&b.createElement(b.Fragment,null,v&&b.createElement(F,{className:"visx-crosshair visx-crosshair-vertical",left:H,top:null==T?void 0:T.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jp},b.createElement("svg",{width:"1",height:O,overflow:"visible"},b.createElement("line",jh({x1:0,x2:0,y1:0,y2:O,strokeWidth:1.5,stroke:null!=(em=null!=(ev=null==C?void 0:null==(eg=C.gridStyles)?void 0:eg.stroke)?ev:null==C?void 0:null==(ey=C.htmlLabel)?void 0:ey.color)?em:"#222"},j)))),f&&b.createElement(F,{className:"visx-crosshair visx-crosshair-horizontal",left:null==T?void 0:T.left,top:U,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jp},b.createElement("svg",{width:M,height:"1",overflow:"visible"},b.createElement("line",jh({x1:0,x2:M,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(eb=null!=(ex=null==C?void 0:null==(ew=C.gridStyles)?void 0:ew.stroke)?ex:null==C?void 0:null==(ej=C.htmlLabel)?void 0:ej.color)?eb:"#222"},r)))),Q.map(function(e,t){var n=e.x,r=e.y,i=jf(e,jd);return b.createElement(F,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jp},b.createElement("svg",{overflow:"visible"},s(jh({x:0,y:0},i))))}),b.createElement(F,jh({left:H,top:U,style:jh({},mc,{background:null!=(eE=null==C?void 0:C.backgroundColor)?eE:"white",boxShadow:"0 1px 2px "+(null!=C&&null!=(ek=C.htmlLabel)&&ek.color?(null==C?void 0:null==(eS=C.htmlLabel)?void 0:eS.color)+"55":"#22222255")},null==C?void 0:C.htmlLabel)},k),I)))}function jb(e){var t=(0,b.useContext)(xS);return null!=t&&t.tooltipOpen?b.createElement(jy,e):null}function jx(e){var t=e.children,n=(0,b.useMemo)(function(){var e;return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get("*")||[]).slice().map(function(e){e(t,n)})}}},[]);return b.createElement(x_.Provider,{value:n},t)}function jw(){return(jw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,ma);return ms({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),o=(0,b.useCallback)(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]),{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:o}),c=u.tooltipOpen,d=u.tooltipLeft,f=u.tooltipTop,h=u.tooltipData,p=u.updateTooltip,m=u.hideTooltip,v=(0,b.useRef)(null),g=(0,b.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,o=e.distanceX,a=e.distanceY;v.current&&(v.current.cancel(),v.current=null);var s=Math.sqrt(Math.pow(xn(o)?o:1/0,2)+Math.pow(xn(a)?a:1/0,2));p(function(e){var o,a,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&xn(u.nearestDatum.distance)?u.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:null==t?void 0:t.x,tooltipTop:null==t?void 0:t.y,tooltipData:{nearestDatum:(null!=(o=null==u?void 0:null==(a=u.nearestDatum)?void 0:a.key)?o:"")!==r&&c0&&o>0&&y({width:m,height:o,margin:l})},[y,m,o,l]);var j=xO({source:xk});return(xI({dataKey:"nearest"===(void 0===h?"nearest":h)?xV:xz,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,allowedSources:jD}),y)?null==m||null==o?b.createElement(vA.Z,null,function(t){return b.createElement(jL,jN({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==x?b.createElement(jj,null,b.createElement(jL,e)):null==w?b.createElement(jx,null,b.createElement(jL,e)):m>0&&o>0?b.createElement("svg",{width:m,height:o,"aria-label":void 0===t?"XYChart":t},i,r&&b.createElement("rect",jN({x:l.left,y:l.top,width:m-l.left-l.right,height:o-l.top-l.bottom,fill:"transparent"},j))):null:v&&g?b.createElement(jP,{xScale:v,yScale:g,theme:p,initialDimensions:{width:m,height:o,margin:l},horizontal:a},b.createElement(jL,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function jF(e){return b.createElement(xY,e)}function jz(e){return b.createElement(ws,e)}function jV(){return(jV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function jW(e){var t=e.bars,n=(e.horizontal,e.xScale,e.yScale,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=jU(e,jZ),u=!!(l.onFocus||l.onBlur);return b.createElement(b.Fragment,null,t.map(function(e){var t=e.key,c=jU(e,jB);return null==n?b.createElement("rect",jH({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):b.createElement(wx.Z,jH({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:o,bottom:a,left:s},c,l))}))}function jq(){return(jq=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jK);return b.createElement(wL,jY({},n,{colorAccessor:t,BarsComponent:jW}))};function jX(){return(jX=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,y.jsx)(fi,{value:"line",children:"Line"}),(0,y.jsx)(fi,{disabled:f||h,value:"areastack",children:"Area Stack"}),(0,y.jsx)(fi,{disabled:f||h,value:"barstack",children:"Bar Stack"}),(0,y.jsx)(fi,{disabled:f,value:"area",children:"Area"}),(0,y.jsx)(fi,{disabled:f,value:"bargroup",children:"Bar Group"})]})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{weight:"semibold",children:"Stack series offset"}),(0,y.jsxs)(fo,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,y.jsxs)(fi,{disabled:!s,value:"none",children:["Auto",(0,y.jsx)(f0,{children:"zero-baseline"})]}),(0,y.jsxs)(fi,{disabled:!s,value:"expand",children:["Expand",(0,y.jsx)(f0,{children:"values sum to 1"})]}),(0,y.jsxs)(fi,{disabled:!s,value:"wiggle",children:["Wiggle",(0,y.jsx)(f0,{children:"stream graph"})]})]})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{weight:"semibold",children:"Curve shape"}),(0,y.jsxs)(fo,{value:i,onValueChange:e=>o(e),className:"flex flex-col gap-1",children:[(0,y.jsx)(fi,{disabled:!a,value:"linear",children:"Linear"}),(0,y.jsx)(fi,{disabled:!a,value:"cardinal",children:"Cardinal"}),(0,y.jsx)(fi,{disabled:!a,value:"step",children:"Step"})]})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{weight:"semibold",children:"Axes"}),(0,y.jsx)("div",{className:"flex flex-col gap-6",children:(0,y.jsxs)(fo,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,y.jsx)(fi,{value:"bottom",children:"Bottom"}),(0,y.jsx)(fi,{value:"top",children:"Top"})]})})]})]})})}let Eu=(0,b.forwardRef)((e,t)=>{let{className:n}=e;return(0,y.jsxs)("div",{ref:t,className:(0,em.cx)("flex gap-1 items-center",n),children:[(0,y.jsx)(Ec,{}),(0,y.jsx)(Ec,{}),(0,y.jsx)(Ec,{})]})});function Ec(){return(0,y.jsx)("div",{className:"w-1 h-1 bg-slate-400 dark:bg-slate-200 rounded-full animate-pulselight [&:nth-child(2)]:animation-delay-500 [&:nth-child(3)]:animation-delay-1000"})}function Ed(e){let{id:t,height:n,data:r,config:i,actionsLeft:o,isLoading:a,actionsRight:s,chartType:l="areastack",curveType:u="linear",stackOffset:c="none",variant:d="panel",allowConfiguration:f=!0}=e,h=function(e,t,n,r,i,o){let a=(0,b.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return[...t,{...e,timestamp:e.timestamp+j8(1)}]},[t]),s=(0,b.useMemo)(()=>{if(a.length<2)return 0;let e=[a[0].timestamp,a[a.length-1].timestamp],t=new Date().getTime();return t>e[0]&&t"dark"===c?v6:v5,[c]),[f,h]=(0,b.useState)("center"),[p,m]=(0,b.useState)([!1,!1]),[v,g]=p,[x,w]=(0,b.useState)("bottom"),[j,E]=(0,b.useState)("right"),[k,S]=(0,b.useState)(!0),[_,C]=(0,b.useState)(!0),[O,M]=(0,b.useState)(!1),[T,A]=(0,b.useState)(!0),[P,N]=(0,b.useState)(!0),[R,D]=(0,b.useState)(r),[L,F]=(0,b.useState)(i),[z,V]=(0,b.useState)(o),I=d.xyChartTheme.gridStyles.stroke,[Z,B]=(0,b.useState)(!1),[H,U]=(0,b.useState)("star"),W=(0,b.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:o,onPointerOut:a,onPointerUp:s,isNearestDatum:l}=e,u={onPointerMove:o,onPointerOut:a,onPointerUp:s};return"star"===H?(0,y.jsx)(vB,{left:t,top:n,stroke:I,fill:i,size:10*r,...u}):"circle"===H?(0,y.jsx)(vW,{left:t,top:n,stroke:I,fill:i,r:r,...u}):"cross"===H?(0,y.jsx)(vY,{left:t,top:n,stroke:I,fill:i,size:10*r,...u}):(0,y.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[H,I]),q=(0,b.useMemo)(()=>Object.keys(j5()(t[0],"timestamp")),[t]),$=(0,b.useMemo)(()=>n.enabledGraph||q,[q,n]),K=(0,b.useMemo)(()=>n.enabledTip||q,[q,n]),Y=(0,b.useMemo)(()=>({x:q.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:q.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[q]),G=["line","area","areastack"].includes(R),X=["barstack","areastack"].includes(R),J=(0,b.useMemo)(()=>({x:{type:"band",paddingInner:G?1:.3},y:{type:"linear"}}),[G]),Q=(0,b.useMemo)(()=>"cardinal"===L&&vG.ZP||"step"===L&&mJ.ZP||vX.Z,[L]),ee=(0,b.useMemo)(()=>({top:30,bottom:"top"===x?0:20,left:0,right:0}),[x]);return{id:e,accessors:Y,animationTrajectory:f,config:n,scales:J,data:a,curve:Q,chartData:t,numTicks:4,isLine:G,isStack:X,todayOffset:s,initialChartType:r,chartType:R,curveType:L,keys:q,enabledGraph:$,enabledTip:K,renderBarGroup:"bargroup"===R,renderBarStack:"barstack"===R,enableTooltipGlyph:Z,renderTooltipGlyph:W,renderAreaSeries:"area"===R,renderAreaStack:"areastack"===R,renderLineSeries:"line"===R,sharedTooltip:P,showGridColumns:g,showGridRows:v,showHorizontalCrosshair:O,showTooltip:k,showVerticalCrosshair:_,snapTooltipToDatum:!X&&T,stackOffset:z,theme:d,margin:ee,xAxisOrientation:x,yAxisOrientation:j,setUseAnimatedComponents:u,setAnimationTrajectory:h,setGridProps:m,setXAxisOrientation:w,setYAxisOrientation:E,setShowTooltip:S,setShowVerticalCrosshair:C,setShowHorizontalCrosshair:M,setSnapTooltipToDatum:A,setSharedTooltip:N,setChartType:D,setCurveType:F,setStackOffset:V,setEnableTooltipGlyph:B,setTooltipGlyphComponent:U,...l?{Annotation:xd,AreaSeries:xX,AreaStack:wu,Axis:wm,BarGroup:wP,BarSeries:wV,BarStack:wU,GlyphSeries:wY,Grid:w4,LineSeries:w9,Tooltip:jb,XYChart:jL}:{AreaSeries:jF,AreaStack:jz,Axis:jI,BarGroup:j$,BarSeries:jG,BarStack:jJ,Grid:j2,LineSeries:j4,Tooltip:jb,XYChart:jL}}}(t,r,i,l,u,c),p=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===d&&f&&(0,y.jsx)(El,{...h})]}),(0,y.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:o}),(0,y.jsx)(vA.Z,{children:e=>{let{width:t,height:n}=e;return a?(0,y.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,y.jsx)(Eu,{className:"scale-150"})}):(0,y.jsx)(vR,{...h,width:t,height:n})}})]});return"panel"===d?(0,y.jsx)(t3,{className:"relative p-px",style:{height:n},children:p}):(0,y.jsx)("div",{className:"relative p-px",style:{height:n},children:p})}/*! ***************************************************************************** +***************************************************************************** */var fk=function(){return(fk=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1){if(e.includes(t)){var r=e.split(t),i=r[0],o=r[1];if(o.length>n)return""+i+t+o.slice(0,n)}var a=e.length>n?RegExp("(\\d+)(\\d{"+n+"})"):RegExp("(\\d)(\\d+)"),s=e.match(a);if(s){var i=s[1],o=s[2];return""+i+t+o}}return e},fN=function(e,t){var n=t.groupSeparator,r=t.decimalSeparator,i=RegExp("\\d([^"+f_(void 0===n?",":n)+f_(void 0===r?".":r)+"0-9]+)"),o=e.match(i);return o?o[1]:void 0},fR=function(e){var t=e.value,n=e.decimalSeparator,r=e.intlConfig,i=e.decimalScale,o=e.prefix,a=void 0===o?"":o,s=e.suffix,l=void 0===s?"":s;if(""===t||void 0===t)return"";if("-"===t)return"-";var u=RegExp("^\\d?-"+(a?f_(a)+"?":"")+"\\d").test(t),c="."!==n?fD(t,n,u):t,d=fL((r?new Intl.NumberFormat(r.locale,r.currency?{style:"currency",currency:r.currency,minimumFractionDigits:i||0,maximumFractionDigits:20}:void 0):new Intl.NumberFormat(void 0,{minimumFractionDigits:i||0,maximumFractionDigits:20})).formatToParts(Number(c)),e),f=fN(d,fk({},e)),h=t.slice(-1)===n?n:"",p=(c.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return(void 0===i&&p&&n&&(d=d.includes(n)?d.replace(RegExp("(\\d+)("+f_(n)+")(\\d+)","g"),"$1$2"+p):f&&!l?d.replace(f,""+n+p+f):""+d+n+p),l&&h)?""+d+h+l:f&&h?d.replace(f,""+h+f):f&&l?d.replace(f,""+h+l):[d,h,l].join("")},fD=function(e,t,n){var r=e;return t&&"."!==t&&(r=r.replace(RegExp(f_(t),"g"),"."),n&&"-"===t&&(r="-"+r.slice(1))),r},fL=function(e,t){var n=t.prefix,r=t.groupSeparator,i=t.decimalSeparator,o=t.decimalScale,a=t.disableGroupSeparators,s=void 0!==a&&a;return e.reduce(function(e,t,a){var l=t.type,u=t.value;return 0===a&&n?"minusSign"===l?[u,n]:"currency"===l?fS(fS([],e),[n]):[n,u]:"currency"===l?n?e:fS(fS([],e),[u]):"group"===l?s?e:fS(fS([],e),[void 0!==r?r:u]):"decimal"===l?void 0!==o&&0===o?e:fS(fS([],e),[void 0!==i?i:u]):"fraction"===l?fS(fS([],e),[void 0!==o?u.slice(0,o):u]):fS(fS([],e),[u])},[""]).join("")},fF={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},fz=function(e){var t=e||{},n=t.locale,r=t.currency;return(n?new Intl.NumberFormat(n,r?{currency:r,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce(function(e,t,n){return"currency"===t.type?0===n?fk(fk({},e),{currencySymbol:t.value,prefix:t.value}):fk(fk({},e),{currencySymbol:t.value,suffix:t.value}):"group"===t.type?fk(fk({},e),{groupSeparator:t.value}):"decimal"===t.type?fk(fk({},e),{decimalSeparator:t.value}):e},fF)},fV=function(e){return RegExp(/\d/,"gi").test(e)},fI=function(e,t,n){if(void 0===t&&(t="."),void 0===n||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";var r=e.split(t),i=r[0],o=r[1];if(0===n)return i;var a=o||"";if(a.lengtht.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}(e,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(C&&fV(C))throw Error("decimalSeparator cannot be a number");if(O&&fV(O))throw Error("groupSeparator cannot be a number");var L=(0,x.useMemo)(function(){return fz(b)},[b]),F=C||L.decimalSeparator||"",z=O||L.groupSeparator||"";if(F&&z&&F===z&&!1===S)throw Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:F,groupSeparator:z,disableGroupSeparators:S,intlConfig:b,prefix:g||L.prefix,suffix:y},I={decimalSeparator:F,groupSeparator:z,allowDecimals:void 0===n||n,decimalsLimit:l||p||2,allowNegativeValue:void 0===r||r,disableAbbreviations:void 0!==_&&_,prefix:g||L.prefix,transformRawValue:R},Z=null!=u?fR(fk(fk({},V),{decimalScale:v,value:String(u)})):null!=f?fR(fk(fk({},V),{decimalScale:v,value:String(f)})):"",B=(0,x.useState)(Z),H=B[0],U=B[1],W=(0,x.useState)(!1),q=W[0],$=W[1],K=(0,x.useState)(0),Y=K[0],G=K[1],X=(0,x.useState)(0),J=X[0],Q=X[1],ee=(0,x.useState)(null),et=ee[0],en=ee[1],er=t||(0,x.useRef)(null),ei=function(e,t){$(!0);var n=fZ({selectionStart:t,value:e,lastKeyStroke:et,stateValue:H,groupSeparator:z}),r=n.modifiedValue,i=n.cursorPosition,a=fA(fk({value:r},I));if(!d||!(a.replace(/-/g,"").length>d)){if(""===a||"-"===a||a===F){h&&h(void 0,o,{float:null,formatted:"",value:""}),U(a);return}var s=parseFloat(a.replace(F,".")),l=fR(fk({value:a},V));if(null!=i){var u=i+(l.length-e.length);G(u=u<=0?g?g.length:0:u),Q(J+1)}U(l),h&&h(a,o,{float:s,formatted:l,value:a})}};(0,x.useEffect)(function(){q&&"-"!==H&&er&&"object"==typeof er&&er.current&&er.current.setSelectionRange(Y,Y)},[H,Y,er,q,J]);var eo=fk({type:"text",inputMode:"decimal",id:i,name:o,className:a,onChange:function(e){var t=e.target;ei(t.value,t.selectionStart),M&&M(e)},onBlur:function(e){var t=e.target.value,n=fA(fk({value:t},I));if("-"===n||!n){U(""),A&&A(e);return}var r=fI(fP(n,F,p),F,void 0!==v?v:p),i=parseFloat(r.replace(F,".")),a=fR(fk(fk({},V),{value:r}));h&&h(r,o,{float:i,formatted:a,value:r}),U(a),A&&A(e)},onFocus:function(e){return T&&T(e),H?H.length:0},onKeyDown:function(e){var t=e.key;if(en(t),w&&("ArrowUp"===t||"ArrowDown"===t)){e.preventDefault(),G(H.length);var n=parseFloat(null!=f?String(f).replace(F,"."):fA(fk({value:H},I)))||0,r="ArrowUp"===t?n+w:n-w;if(void 0!==j&&rE)return;var i=String(w).includes(".")?Number(String(w).split(".")[1].length):void 0;ei(String(i?r.toFixed(i):r).replace(".",F))}P&&P(e)},onKeyUp:function(e){var t=e.key,n=e.currentTarget.selectionStart;if("ArrowUp"!==t&&"ArrowDown"!==t&&"-"!==H){var r=fN(H,{groupSeparator:z,decimalSeparator:F});if(r&&n&&n>H.length-r.length&&er&&"object"==typeof er&&er.current){var i=H.length-r.length;er.current.setSelectionRange(i,i)}}N&&N(e)},placeholder:m,disabled:void 0!==c&&c,value:null==f||"-"===H||F&&H===F?H:fR(fk(fk({},V),{decimalScale:q?void 0:v,value:String(f)})),ref:er},D);return s?x.createElement(s,fk({},eo)):x.createElement("input",fk({},eo))});function fH(e){let{units:t,variant:n,size:r="small",state:i,noSpin:o,focus:a,cursor:s,className:l,decimalsLimit:u,onValueChange:c,...d}=e,[f,h]=(0,x.useState)();return(0,x.useEffect)(()=>{h(navigator.language)},[]),(0,y.jsxs)("div",{className:"relative",children:[(0,y.jsx)(fB,{...d,decimalsLimit:u,intlConfig:f?{locale:f}:void 0,allowDecimals:!!u,autoComplete:"off",spellCheck:!1,onValueChange:c,className:(0,em.cx)(fj({variant:n,size:r,state:i,focus:a,noSpin:o,cursor:s,className:l}),t?"pr-9":"")}),t&&(0,y.jsx)("div",{className:(0,em.cx)("flex items-center absolute top-0 h-full","small"===r?"right-2":"","medium"===r?"right-3":"","large"===r?"right-3":""),children:(0,y.jsx)(t1,{size:"12",weight:"medium",color:"subtle",children:t})})]})}fB.displayName="CurrencyInput";var fU=n(6391),fW=n.n(fU);function fq(e,t){return e.decimalPlaces()>t?e.toFixed(t):e.toString()}let f$=(0,x.forwardRef)(function(e,t){let{value:n,placeholder:r=new(fW())(100),decimalsLimit:i=6,onChange:o,size:a="small",units:s,error:l,changed:u,onBlur:c,onFocus:d,...f}=e,h=(0,x.useMemo)(()=>new(fW())(n),[n]),[p,m]=(0,x.useState)(""),v=(0,x.useMemo)(()=>fK(p),[p]),g=(0,x.useCallback)(e=>{o&&o((e=fK(e))&&!isNaN(Number(e))?new(fW())(e):void 0)},[o]),b=(0,x.useCallback)(e=>{m(e),g(e)},[m,g]);return(0,x.useEffect)(()=>{if(!h.isEqualTo(v)){let e=fq(h,i);m(e)}},[h]),(0,y.jsx)(fH,{ref:t,...f,"data-testid":"numberfield",size:a,placeholder:r.isNaN()?"":fq(r,i),units:s,value:"NaN"!==p?p:"",decimalsLimit:i,onBlur:e=>{c&&c(e)},onFocus:e=>{d&&d(e)},onValueChange:e=>b(e||"")})});function fK(e){return(null==e?void 0:e.replace(/,/g,"."))||""}var fY=n(2850),fG=n(47025);let fX=new(fW())(0),fJ=(0,x.forwardRef)(function(e,t){let{sc:n,placeholder:r=new(fW())(100),decimalsLimitFiat:i=6,decimalsLimitSc:o=6,onChange:a,size:s="medium",units:l="SC",showFiat:u=!0,error:c,changed:d,prefix:f,onBlur:h,onFocus:p,...m}=e,v=(0,x.useMemo)(()=>new(fW())(void 0===n?NaN:n),[n]),{settings:g}=(0,fY.Hv)(),b=(0,fG.BW)({config:{swr:{revalidateOnFocus:!1}}}),w=(0,x.useMemo)(()=>{var e;return g.siaCentral&&b.data?new(fW())((null===(e=b.data)||void 0===e?void 0:e.rates.sc[g.currency.id])||fX):fX},[b.data,g]),[j,E]=(0,x.useState)(),[k,S]=(0,x.useState)(""),[_,C]=(0,x.useState)(""),O=(0,x.useMemo)(()=>fQ(k),[k]),M=(0,x.useMemo)(()=>fQ(_),[_]),T=(0,x.useCallback)(e=>{a&&a((e=fQ(e))&&!isNaN(Number(e))?new(fW())(e):void 0)},[a]),A=(0,x.useCallback)(e=>{let t=fq(e,i);C(t)},[C,i]),P=(0,x.useCallback)(e=>{let t=fq(e,o);return S(t),T(t),t},[S,o,T]),N=(0,x.useCallback)(e=>{S(e),T(e)},[S,T]),R=(0,x.useCallback)(e=>{let t=new(fW())(e).times(w);A(t)},[A,w]),D=(0,x.useCallback)(e=>{let t=new(fW())(e).dividedBy(w);P(t)},[P,w]),[L,F]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{if(!v.isEqualTo(O)){let e=fq(v,o);S(e),"fiat"!==j&&R(e)}L||F(!0)},[v]),(0,x.useEffect)(()=>{L&&R(O)},[w]),(0,x.useEffect)(()=>{"sc"===j&&R(O)},[O]),(0,x.useEffect)(()=>{"fiat"===j&&D(M)},[M]),(0,y.jsxs)("div",{ref:t,className:(0,em.cx)("flex flex-col bg-white dark:bg-graydark-50","focus-within:ring ring-blue-500 dark:ring-blue-200","border",c?"border-red-500 dark:border-red-400":d?"border-green-500 dark:border-green-400":"border-gray-200 dark:border-graydark-200","rounded"),children:[(0,y.jsx)(fH,{...m,"data-testid":"scInput",size:s,variant:"ghost",focus:"none",placeholder:fq(r,o),units:l,value:"NaN"!==k?k:"",decimalsLimit:o,allowNegativeValue:!1,onBlur:e=>{E(void 0),h&&h(e)},onFocus:e=>{E("sc"),p&&p(e)},onValueChange:e=>{N(e||"")}}),u&&g.siaCentral&&(0,y.jsx)(fH,{...m,"data-testid":"fiatInput",size:s,variant:"ghost",focus:"none",value:"NaN"!==_?_:"",units:g.currency.label,decimalsLimit:i,allowNegativeValue:!1,placeholder:"".concat(g.currency.prefix).concat(w?w.times(r).toFixed(i):"0.42"),prefix:f||g.currency.prefix,onFocus:e=>{E("fiat"),p&&p(e)},onBlur:e=>{E(void 0),h&&h(e)},onValueChange:e=>{C(e||"")}})]})});function fQ(e){return(null==e?void 0:e.replace(/,/g,"."))||""}function f0(e){let{children:t}=e;return(0,y.jsx)(ls,{content:t,children:(0,y.jsx)("div",{className:"relative flex items-center inline mx-1",children:(0,y.jsx)(t1,{color:"subtle",children:(0,y.jsx)(lc.RdX,{className:"scale-75"})})})})}function f1(e){let{values:t,options:n,onChange:r}=e;return(0,y.jsx)("div",{className:"flex flex-wrap gap-1",children:n.map(e=>(0,y.jsx)(lu,{variant:t.includes(e.value)?"active":"inactive",onClick:()=>{r(e.value)},children:e.label},e.value))})}function f2(e){let{options:t,onClick:n,onRemove:r}=e;return(0,y.jsx)("div",{className:"flex flex-wrap gap-1",children:t.map(e=>(0,y.jsxs)(lR,{children:[(0,y.jsx)(lu,{variant:"active",onClick:()=>{n&&n(e.value)},children:e.label}),(0,y.jsx)(lu,{variant:"active",size:"small",onClick:()=>r(e.value),children:(0,y.jsx)(lc.PcV,{})})]},e.value))})}let f4=(0,em.j)(["font-sans","font-normal","tabular-nums","flex-shrink-0","rounded","flex items-center","bg-white dark:bg-graydark-200","hover:bg-gray-50 dark:hover:bg-graydark-300","disabled:bg-gray-200 disabled:dark:bg-graydark-200","autofill:bg-blue-100 autofill:dark:bg-blue-800","border","focus-within:z-10","focus-within:ring ring-blue-500 dark:ring-blue-200","text-gray-1100 dark:text-white","[&>select:disabled]:text-gray-600 [&>select:disabled]:dark:text-graydark-700"],{variants:{size:{small:"h-7 text-sm px-1",medium:"h-10 text-base px-3",large:"h-12 text-lg px-3"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{state:"default",size:"small"}}),f3=x.forwardRef((e,t)=>{let{size:n,state:r,icon:i,className:o,...a}=e;return(0,y.jsxs)("div",{className:f4({size:n,state:r,className:o}),children:[i,(0,y.jsx)("select",{ref:t,...a,className:"appearance-none flex-1 bg-transparent outline-none w-full h-full pl-1 pr-1"}),(0,y.jsx)(lc.Cp0,{className:"pointer-events-none scale-75"})]})}),f5=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)("option",{ref:t,...r,className:(0,em.cx)("bg-white dark:bg-graydark-200","text-gray-1100 dark:text-white",n)})}),f6=(0,em.j)(["bg-gray-300 dark:bg-graydark-300","relative","overflow-hidden","animate-pulse","rounded"]);function f8(e){let{className:t}=e;return(0,y.jsx)("div",{className:f6({className:t})})}let f7=(0,em.j)(["rounded-full flex-shrink-0"],{variants:{size:{default:"w-2 h-2"}},defaultVariants:{size:"default"}}),f9=x.forwardRef((e,t)=>{let{size:n,className:r,...i}=e;return(0,y.jsx)("div",{ref:t,className:f7({size:n,className:r}),...i})}),he="Switch",[ht,hn]=(0,j.b)(he),[hr,hi]=ht(he),ho=(0,x.forwardRef)((e,t)=>{let{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:o,defaultChecked:a,required:s,disabled:l,value:u="on",onCheckedChange:c,...d}=e,[f,h]=(0,x.useState)(null),p=(0,E.e)(t,e=>h(e)),m=de(f),v=(0,x.useRef)(!1),g=!f||!!f.closest("form"),[y=!1,b]=(0,C.T)({prop:o,defaultProp:a,onChange:c});return(0,x.createElement)(hr,{scope:n,checked:y,disabled:l},(0,x.createElement)(O.WV.button,(0,w.Z)({type:"button",role:"switch","aria-checked":y,"aria-labelledby":r||m,"aria-required":s,"data-state":hl(y),"data-disabled":l?"":void 0,disabled:l,value:u},d,{ref:p,onClick:(0,_.M)(e.onClick,e=>{b(e=>!e),g&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})),g&&(0,x.createElement)(hs,{control:f,bubbles:!v.current,name:i,value:u,checked:y,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),ha=(0,x.forwardRef)((e,t)=>{let{__scopeSwitch:n,...r}=e,i=hi("SwitchThumb",n);return(0,x.createElement)(O.WV.span,(0,w.Z)({"data-state":hl(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),hs=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,o=(0,x.useRef)(null),a=dW(n),s=tc(t);return(0,x.useEffect)(()=>{let e=o.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,"checked"),s=i.set;if(a!==n&&s){let t=new Event("click",{bubbles:r});s.call(e,n),e.dispatchEvent(t)}},[a,n,r]),(0,x.createElement)("input",(0,w.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function hl(e){return e?"checked":"unchecked"}let hu=(0,em.j)(["absolute left-0 rounded-full","transition-transform","bg-white dark:bg-graydark-500"],{variants:{size:{small:["w-3 h-3","translate-x-px","data-[state=checked]:translate-x-[9px]"],medium:["w-5 h-5","translate-x-0.5","data-[state=checked]:translate-x-[20px]"]}},defaultVariants:{size:"small"}}),hc=(0,em.j)(["select-none outline-none","relative inline-flex items-center justify-center","m-0 rounded-full","focus:ring ring-blue-500 dark:ring-blue-200","border","bg-gray-300 dark:bg-graydark-50","autofill:bg-blue-100 autofill:dark:bg-blue-800","border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500","disabled:cursor-default","enabled:data-[state=checked]:bg-green-600 dark:enabled:data-[state=checked]:bg-green-500","disabled:data-[state=checked]:bg-green-600/50 dark:disabled:data-[state=checked]:bg-green-500/50"],{variants:{size:{small:"w-6 h-4",medium:"w-11 h-6"},state:{default:["border-gray-400 dark:border-graydark-400","enabled:hover:border-gray-500 enabled:hover:dark:border-graydark-500"],invalid:["border-red-500 dark:border-red-400"],valid:["border-green-500 dark:border-green-400"]}},defaultVariants:{size:"small",state:"default"}}),hd=(0,x.forwardRef)((e,t)=>{let{size:n,state:r,className:i,children:o,...a}=e;return(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(ho,{className:hc({size:n,state:r,className:i}),...a,ref:t,children:(0,y.jsx)(ha,{className:hu({size:n})})}),o&&(0,y.jsx)(t1,{color:a.disabled?"subtle":"contrast",children:o})]})}),hf=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e,i=x.Children.toArray(n),o=i.find(hm);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:x.Children.count(e)>1?x.Children.only(null):(0,x.isValidElement)(e)?e.props.children:null);return(0,x.createElement)(hh,(0,w.Z)({},r,{ref:t}),(0,x.isValidElement)(e)?(0,x.cloneElement)(e,void 0,n):null)}return(0,x.createElement)(hh,(0,w.Z)({},r,{ref:t}),n)});hf.displayName="Slot";let hh=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,x.isValidElement)(n)?(0,x.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:(0,E.F)(t,n.ref)}):x.Children.count(n)>1?x.Children.only(null):null});hh.displayName="SlotClone";let hp=({children:e})=>(0,x.createElement)(x.Fragment,null,e);function hm(e){return(0,x.isValidElement)(e)&&e.type===hp}let hv=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,x.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?hf:t;return(0,x.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,x.createElement)(o,(0,w.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),hg=(0,x.forwardRef)((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,x.createElement)(hv.svg,(0,w.Z)({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,x.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),hy="Popper",[hx,hb]=(0,j.b)(hy),[hw,hj]=hx(hy),hE=(0,x.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=hj("PopperAnchor",n),a=(0,x.useRef)(null),s=(0,E.e)(t,a);return(0,x.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||a.current)}),r?null:(0,x.createElement)(hv.div,(0,w.Z)({},i,{ref:s}))}),hk="PopperContent",[hS,h_]=hx(hk),[hC,hO]=hx(hk,{hasParent:!1,positionUpdateFns:new Set}),hM=(0,x.forwardRef)((e,t)=>{var n,r,i,o,a,s,l,u,c;let{__scopePopper:d,side:f="bottom",sideOffset:h=0,align:p="center",alignOffset:m=0,arrowPadding:v=0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,avoidCollisions:j=!0,onPlaced:k,...S}=e,_=hj(hk,d),[C,O]=(0,x.useState)(null),T=(0,E.e)(t,e=>O(e)),[A,P]=(0,x.useState)(null),N=tc(A),R=null!==(n=null==N?void 0:N.width)&&void 0!==n?n:0,D=null!==(r=null==N?void 0:N.height)&&void 0!==r?r:0,L="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},F=Array.isArray(g)?g:[g],z=F.length>0,V={padding:L,boundary:F.filter(hP),altBoundary:z},{reference:I,floating:Z,strategy:B,x:H,y:U,placement:W,middlewareData:q,update:$}=ts({strategy:"fixed",placement:f+("center"!==p?"-"+p:""),whileElementsMounted:tr,middleware:[hN(),ez({mainAxis:h+D,alignmentAxis:m}),j?eI({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?eZ():void 0,...V}):void 0,A?tl({element:A,padding:v}):void 0,j?eR({...V}):void 0,{name:"size",options:c={...V,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}},async fn(e){let t,n;let{placement:r,rects:i,platform:o,elements:a}=e,{apply:s,...l}=c,u=await eS(e,l),d=eg(r),f=ey(r);"top"===d||"bottom"===d?(t=d,n=f===(await (null==o.isRTL?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let h=eC(u.left,0),p=eC(u.right,0),m=eC(u.top,0),v=eC(u.bottom,0),g={availableHeight:i.floating.height-(["left","right"].includes(r)?2*(0!==m||0!==v?m+v:eC(u.top,u.bottom)):u[t]),availableWidth:i.floating.width-(["top","bottom"].includes(r)?2*(0!==h||0!==p?h+p:eC(u.left,u.right)):u[n])},y=await o.getDimensions(a.floating);null==s||s({...e,...g});let x=await o.getDimensions(a.floating);return y.width!==x.width||y.height!==x.height?{reset:{rects:!0}}:{}}},hR({arrowWidth:R,arrowHeight:D}),w?eF({strategy:"referenceHidden"}):void 0].filter(hA)});(0,M.b)(()=>{I(_.anchor)},[I,_.anchor]);let K=null!==H&&null!==U,[Y,G]=hD(W),X=(0,ly.W)(k);(0,M.b)(()=>{K&&(null==X||X())},[K,X]);let J=null===(i=q.arrow)||void 0===i?void 0:i.x,Q=null===(o=q.arrow)||void 0===o?void 0:o.y,ee=(null===(a=q.arrow)||void 0===a?void 0:a.centerOffset)!==0,[et,en]=(0,x.useState)();(0,M.b)(()=>{C&&en(window.getComputedStyle(C).zIndex)},[C]);let{hasParent:er,positionUpdateFns:ei}=hO(hk,d),eo=!er;(0,x.useLayoutEffect)(()=>{if(!eo)return ei.add($),()=>{ei.delete($)}},[eo,ei,$]),(0,M.b)(()=>{eo&&K&&Array.from(ei).reverse().forEach(e=>requestAnimationFrame(e))},[eo,K,ei]);let ea={"data-side":Y,"data-align":G,...S,ref:T,style:{...S.style,animation:K?void 0:"none",opacity:null!==(s=q.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,x.createElement)("div",{ref:Z,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:K?`translate3d(${Math.round(H)}px, ${Math.round(U)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(l=q.transformOrigin)||void 0===l?void 0:l.x,null===(u=q.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:e.dir},(0,x.createElement)(hS,{scope:d,placedSide:Y,onArrowChange:P,arrowX:J,arrowY:Q,shouldHideArrow:ee},eo?(0,x.createElement)(hC,{scope:d,hasParent:!0,positionUpdateFns:ei},(0,x.createElement)(hv.div,ea)):(0,x.createElement)(hv.div,ea)))}),hT={top:"bottom",right:"left",bottom:"top",left:"right"};function hA(e){return void 0!==e}function hP(e){return null!==e}let hN=()=>({name:"anchorCssProperties",fn(e){let{rects:t,elements:n}=e,{width:r,height:i}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),hR=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=hD(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,g=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2,y="",x="";return"bottom"===h?(y=c?m:`${v}px`,x=`${-f}px`):"top"===h?(y=c?m:`${v}px`,x=`${l.floating.height+f}px`):"right"===h?(y=`${-f}px`,x=c?m:`${g}px`):"left"===h&&(y=`${l.floating.width+f}px`,x=c?m:`${g}px`),{data:{x:y,y:x}}}});function hD(e){let[t,n="center"]=e.split("-");return[t,n]}let hL=e=>{let{__scopePopper:t,children:n}=e,[r,i]=(0,x.useState)(null);return(0,x.createElement)(hw,{scope:t,anchor:r,onAnchorChange:i},n)},hF=(0,x.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=e;return r?to.createPortal((0,x.createElement)(hv.div,(0,w.Z)({},i,{ref:t})),r):null}),hz="dismissableLayer.update",hV=(0,x.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hI=(0,x.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,x.useContext)(hV),[f,h]=(0,x.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,x.useState)({}),v=(0,E.e)(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),j=f?g.indexOf(f):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,S=j>=b,C=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,ly.W)(e),r=(0,x.useRef)(!1),i=(0,x.useRef)(()=>{});return(0,x.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){hB("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!S||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),O=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,ly.W)(e),r=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=e=>{e.target&&!r.current&&hB("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,ly.W)(e);(0,x.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=j===d.layers.size-1;t&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,x.useEffect)(()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),hZ(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=r)}},[f,p,i,d]),(0,x.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),hZ())},[f,d]),(0,x.useEffect)(()=>{let e=()=>m({});return document.addEventListener(hz,e),()=>document.removeEventListener(hz,e)},[]),(0,x.createElement)(hv.div,(0,w.Z)({},c,{ref:v,style:{pointerEvents:k?S?"auto":"none":void 0,...e.style},onFocusCapture:(0,_.M)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,_.M)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,_.M)(e.onPointerDownCapture,C.onPointerDownCapture)}))});function hZ(){let e=new CustomEvent(hz);document.dispatchEvent(e)}function hB(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&(0,to.flushSync)(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}let hH="HoverCard",[hU,hW]=(0,j.b)(hH,[hb]),hq=hb(),[h$,hK]=hU(hH),hY=(0,x.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...r}=e,i=hK("HoverCardTrigger",n),o=hq(n);return(0,x.createElement)(hE,(0,w.Z)({asChild:!0},o),(0,x.createElement)(hv.a,(0,w.Z)({"data-state":i.open?"open":"closed"},r,{ref:t,onPointerEnter:(0,_.M)(e.onPointerEnter,h2(i.onOpen)),onPointerLeave:(0,_.M)(e.onPointerLeave,h2(i.onClose)),onFocus:(0,_.M)(e.onFocus,i.onOpen),onBlur:(0,_.M)(e.onBlur,i.onClose),onTouchStart:(0,_.M)(e.onTouchStart,e=>e.preventDefault())})))}),hG="HoverCardPortal",[hX,hJ]=hU(hG,{forceMount:void 0}),hQ="HoverCardContent",h0=(0,x.forwardRef)((e,t)=>{let n=hJ(hQ,e.__scopeHoverCard),{forceMount:r=n.forceMount,...i}=e,o=hK(hQ,e.__scopeHoverCard);return(0,x.createElement)(T.z,{present:r||o.open},(0,x.createElement)(h1,(0,w.Z)({"data-state":o.open?"open":"closed"},i,{onPointerEnter:(0,_.M)(e.onPointerEnter,h2(o.onOpen)),onPointerLeave:(0,_.M)(e.onPointerLeave,h2(o.onClose)),ref:t})))}),h1=(0,x.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,...l}=e,u=hK(hQ,n),c=hq(n),d=(0,x.useRef)(null),f=(0,E.e)(t,d),[h,p]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{if(h){let e=document.body;return i=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=i,e.style.webkitUserSelect=i}}},[h]),(0,x.useEffect)(()=>{if(d.current){let e=()=>{p(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(u.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}},[u.isPointerDownOnContentRef,u.hasSelectionRef]),(0,x.useEffect)(()=>{if(d.current){let e=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}(d.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,x.createElement)(hI,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:(0,_.M)(a,e=>{e.preventDefault()}),onDismiss:u.onDismiss},(0,x.createElement)(hM,(0,w.Z)({},c,l,{onPointerDown:(0,_.M)(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:f,style:{...l.style,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)",userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0}})))});function h2(e){return t=>"touch"===t.pointerType?void 0:e()}let h4=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:i,onOpenChange:o,openDelay:a=700,closeDelay:s=300}=e,l=hq(t),u=(0,x.useRef)(0),c=(0,x.useRef)(0),d=(0,x.useRef)(!1),f=(0,x.useRef)(!1),[h=!1,p]=(0,C.T)({prop:r,defaultProp:i,onChange:o}),m=(0,x.useCallback)(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>p(!0),a)},[a,p]),v=(0,x.useCallback)(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>p(!1),s))},[s,p]),g=(0,x.useCallback)(()=>p(!1),[p]);return(0,x.useEffect)(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),(0,x.createElement)(h$,{scope:t,open:h,onOpenChange:p,onOpen:m,onClose:v,onDismiss:g,hasSelectionRef:d,isPointerDownOnContentRef:f},(0,x.createElement)(hL,l,n))},h3=e=>{let{__scopeHoverCard:t,forceMount:n,children:r,container:i}=e,o=hK(hG,t);return(0,x.createElement)(hX,{scope:t,forceMount:n},(0,x.createElement)(T.z,{present:n||o.open},(0,x.createElement)(hF,{asChild:!0,container:i},r)))},h5=(0,em.j)([lo,"relative","z-10","data-[side=top]:bottom-1","data-[side=top]:origin-bottom","data-[side=bottom]:top-1","data-[side=bottom]:origin-top","data-[side=left]:right-1","data-[side=left]:origin-right","data-[side=right]:left-1","data-[side=right]:origin-left"]),h6=(0,em.cx)(t4(),"max-w-sm","py-0.5","px-1"),h8={show:{opacity:[0,1],scale:[.95,1],transition:{duration:.1,ease:"easeOut"}},exit:{opacity:[1,0],scale:[1,.95],transition:{duration:.1,ease:"easeIn"}}},h7=x.forwardRef((e,t)=>{let{trigger:n,children:r,rootProps:i,contentProps:o}=e,{className:a,...s}=o||{},{open:l,onOpenChange:u}=le({open:null==i?void 0:i.open,onOpenChange:null==i?void 0:i.onOpenChange});return(0,y.jsxs)(h4,{open:l,onOpenChange:u,...i,children:[n&&(0,y.jsx)(hY,{asChild:!0,children:n}),(0,y.jsx)(nC,{children:l?(0,y.jsx)(h3,{forceMount:!0,children:(0,y.jsx)(h0,{asChild:!0,forceMount:!0,ref:t,...s,children:(0,y.jsx)(s9.div,{variants:h8,initial:"init",animate:"show",exit:"exit",className:h5(),children:(0,y.jsx)("div",{className:(0,em.cx)(h6,a),children:r})})})}):null})]})});function h9(e,t=[]){let n=[],r=()=>{let t=n.map(e=>(0,x.createContext)(e));return function(n){let r=(null==n?void 0:n[e])||t;return(0,x.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=(0,x.createContext)(r),o=n.length;function a(t){let{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][o])||i,l=(0,x.useMemo)(()=>a,Object.values(a));return(0,x.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){let s=(null==a?void 0:a[e][o])||i,l=(0,x.useContext)(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e),o=i[`__scope${r}`];return{...t,...o}},{});return(0,x.useMemo)(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function pe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function pt(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function pn(...e){return(0,x.useCallback)(pt(...e),e)}let pr=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e,i=x.Children.toArray(n),o=i.find(pa);if(o){let e=o.props.children,n=i.map(t=>t!==o?t:x.Children.count(e)>1?x.Children.only(null):(0,x.isValidElement)(e)?e.props.children:null);return(0,x.createElement)(pi,(0,w.Z)({},r,{ref:t}),(0,x.isValidElement)(e)?(0,x.cloneElement)(e,void 0,n):null)}return(0,x.createElement)(pi,(0,w.Z)({},r,{ref:t}),n)});pr.displayName="Slot";let pi=(0,x.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,x.isValidElement)(n)?(0,x.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r],a=/^on[A-Z]/.test(r);a?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?pt(t,n.ref):n.ref}):x.Children.count(n)>1?x.Children.only(null):null});pi.displayName="SlotClone";let po=({children:e})=>(0,x.createElement)(x.Fragment,null,e);function pa(e){return(0,x.isValidElement)(e)&&e.type===po}let ps=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,x.forwardRef)((e,n)=>{let{asChild:r,...i}=e,o=r?pr:t;return(0,x.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,x.createElement)(o,(0,w.Z)({},i,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function pl(e){let t=(0,x.useRef)(e);return(0,x.useEffect)(()=>{t.current=e}),(0,x.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}let pu=(null==globalThis?void 0:globalThis.document)?x.useLayoutEffect:()=>{},pc=e=>{let{present:t,children:n}=e,r=function(e){var t;let[n,r]=(0,x.useState)(),i=(0,x.useRef)({}),o=(0,x.useRef)(e),a=(0,x.useRef)("none"),s=e?"mounted":"unmounted",[l,u]=(t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,x.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},s));return(0,x.useEffect)(()=>{let e=pd(i.current);a.current="mounted"===l?e:"none"},[l]),pu(()=>{let t=i.current,n=o.current,r=n!==e;if(r){let r=a.current,i=pd(t);e?u("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),pu(()=>{if(n){let e=e=>{let t=pd(i.current),r=t.includes(e.animationName);e.target===n&&r&&(0,to.flushSync)(()=>u("ANIMATION_END"))},t=e=>{e.target===n&&(a.current=pd(i.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")},[n,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:(0,x.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),r(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):x.Children.only(n),o=pn(r.ref,i.ref),a="function"==typeof n;return a||r.isPresent?(0,x.cloneElement)(i,{ref:o}):null};function pd(e){return(null==e?void 0:e.animationName)||"none"}pc.displayName="Presence";let pf=b["useId".toString()]||(()=>void 0),ph=0;function pp(e){let t=e+"CollectionProvider",[n,r]=h9(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=x.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(a,n),s=pn(t,i.collectionRef);return x.createElement(pr,{ref:s},r)}),l=e+"CollectionItemSlot",u="data-radix-collection-item",c=x.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=x.useRef(null),s=pn(t,a),c=o(l,n);return x.useEffect(()=>(c.itemMap.set(a,{ref:a,...i}),()=>void c.itemMap.delete(a))),x.createElement(pr,{[u]:"",ref:s},r)});return[{Provider:e=>{let{scope:t,children:n}=e,r=x.useRef(null),o=x.useRef(new Map).current;return x.createElement(i,{scope:t,itemMap:o,collectionRef:r},n)},Slot:s,ItemSlot:c},function(t){let n=o(e+"CollectionConsumer",t),r=x.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()),i=r.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[n.collectionRef,n.itemMap]);return r},r]}let pm="dismissableLayer.update",pv=(0,x.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pg=(0,x.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=(0,x.useContext)(pv),[f,h]=(0,x.useState)(null),p=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,m]=(0,x.useState)({}),v=pn(t,e=>h(e)),g=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(y),j=f?g.indexOf(f):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,k=j>=b,S=function(e,t=null==globalThis?void 0:globalThis.document){let n=pl(e),r=(0,x.useRef)(!1),i=(0,x.useRef)(()=>{});return(0,x.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function o(){px("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=o,t.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!k||n||(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},p),_=function(e,t=null==globalThis?void 0:globalThis.document){let n=pl(e),r=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{let e=e=>{e.target&&!r.current&&px("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));n||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},p);return!function(e,t=null==globalThis?void 0:globalThis.document){let n=pl(e);(0,x.useEffect)(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},[n,t])}(e=>{let t=j===d.layers.size-1;t&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},p),(0,x.useEffect)(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(o=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),py(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=o)}},[f,p,r,d]),(0,x.useEffect)(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),py())},[f,d]),(0,x.useEffect)(()=>{let e=()=>m({});return document.addEventListener(pm,e),()=>document.removeEventListener(pm,e)},[]),(0,x.createElement)(ps.div,(0,w.Z)({},c,{ref:v,style:{pointerEvents:E?k?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,_.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,S.onPointerDownCapture)}))});function py(){let e=new CustomEvent(pm);document.dispatchEvent(e)}function px(e,t,n,{discrete:r}){var i,o;let a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?(i=a,o=s,i&&(0,to.flushSync)(()=>i.dispatchEvent(o))):a.dispatchEvent(s)}(e,t)=>(0,x.createElement)(ps.span,(0,w.Z)({},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}}));let pb="NavigationMenu",[pw,pj,pE]=pp(pb),[pk,pS,p_]=pp(pb),[pC,pO]=h9(pb,[pE,p_]),[pM,pT]=pC(pb),[pA,pP]=pC(pb),[pN,pR]=pC("NavigationMenuItem"),pD=((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pT("NavigationMenuIndicator",n),o=pj(n),[a,s]=(0,x.useState)(null),[l,u]=(0,x.useState)(null),c="horizontal"===i.orientation,d=!!i.value;(0,x.useEffect)(()=>{var e;let t=o(),n=null===(e=t.find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;n&&s(n)},[o,i.value]);let f=()=>{a&&u({size:c?a.offsetWidth:a.offsetHeight,offset:c?a.offsetLeft:a.offsetTop})};return pZ(a,f),pZ(i.indicatorTrack,f),l?(0,x.createElement)(ps.div,(0,w.Z)({"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":i.orientation},r,{ref:t,style:{position:"absolute",...c?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}})):null},"NavigationMenuContent"),pL=((e,t)=>{let n=pT(pD,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:i}=n;return pu(()=>{r(e.value,{ref:t,...e})},[e,t,r]),pu(()=>()=>i(e.value),[e.value,i]),null},"navigationMenu.rootContentDismiss"),pF=(0,x.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,value:r,triggerRef:i,focusProxyRef:o,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...u}=e,c=pT(pD,n),d=(0,x.useRef)(null),f=pn(d,t),h=function(e,t){return`${e}-trigger-${t}`}(c.baseId,r),p=function(e,t){return`${e}-content-${t}`}(c.baseId,r),m=pj(n),v=(0,x.useRef)(null),{onItemDismiss:g}=c;(0,x.useEffect)(()=>{let e=d.current;if(c.isRootMenu&&e){let t=()=>{var t;g(),s(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(pL,t),()=>e.removeEventListener(pL,t)}},[c.isRootMenu,e.value,i,g,s]);let y=(0,x.useMemo)(()=>{let e=m(),t=e.map(e=>e.value);"rtl"===c.dir&&t.reverse();let n=t.indexOf(c.value),i=t.indexOf(c.previousValue),o=r===c.value,a=i===t.indexOf(r);if(!o&&!a)return v.current;let s=(()=>{if(n!==i){if(o&&-1!==i)return n>i?"from-end":"from-start";if(a&&-1!==n)return n>i?"to-start":"to-end"}return null})();return v.current=s,s},[c.previousValue,c.value,c.dir,m,r]);return(0,x.createElement)(pz,{asChild:!0},(0,x.createElement)(pg,(0,w.Z)({id:p,"aria-labelledby":h,"data-motion":y,"data-orientation":c.orientation},u,{ref:f,onDismiss:()=>{var e;let t=new Event(pL,{bubbles:!0,cancelable:!0});null===(e=d.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:pe(e.onFocusOutside,e=>{var t;l();let n=e.target;null!==(t=c.rootNavigationMenu)&&void 0!==t&&t.contains(n)&&e.preventDefault()}),onPointerDownOutside:pe(e.onPointerDownOutside,e=>{var t;let n=e.target,r=m().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),i=c.isRootMenu&&(null===(t=c.viewport)||void 0===t?void 0:t.contains(n));(r||i||!c.isRootMenu)&&e.preventDefault()}),onKeyDown:pe(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey,n="Tab"===e.key&&!t;if(n){let t=function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(e.currentTarget),n=document.activeElement,i=t.findIndex(e=>e===n),a=e.shiftKey,s=a?t.slice(0,i).reverse():t.slice(i+1,t.length);if(pI(s))e.preventDefault();else{var r;null===(r=o.current)||void 0===r||r.focus()}}}),onEscapeKeyDown:pe(e.onEscapeKeyDown,e=>{a.current=!0})})))}),pz=((e,t)=>{let{__scopeNavigationMenu:n,children:r,...i}=e,o=pT("NavigationMenuViewport",n),a=pn(t,o.onViewportChange),s=pP(pD,e.__scopeNavigationMenu),[l,u]=(0,x.useState)(null),[c,d]=(0,x.useState)(null),f=l?(null==l?void 0:l.width)+"px":void 0,h=l?(null==l?void 0:l.height)+"px":void 0,p=!!o.value,m=p?o.value:o.previousValue;return pZ(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,x.createElement)(ps.div,(0,w.Z)({"data-state":function(e){return e?"open":"closed"}(p),"data-orientation":o.orientation},i,{ref:a,style:{pointerEvents:!p&&o.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:pe(e.onPointerEnter,o.onContentEnter),onPointerLeave:pe(e.onPointerLeave,function(e){return t=>"mouse"===t.pointerType?e(t):void 0}(o.onContentLeave))}),Array.from(s.items).map(([e,{ref:t,forceMount:n,...r}])=>{let i=m===e;return(0,x.createElement)(pc,{key:e,present:n||i},(0,x.createElement)(pF,(0,w.Z)({},r,{ref:pt(t,e=>{i&&e&&d(e)})})))}))},(0,x.forwardRef)((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pT("FocusGroup",n);return(0,x.createElement)(pk.Provider,{scope:n},(0,x.createElement)(pk.Slot,{scope:n},(0,x.createElement)(ps.div,(0,w.Z)({dir:i.dir},r,{ref:t}))))})),pV=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"];(e,t)=>{let{__scopeNavigationMenu:n,...r}=e,i=pS(n),o=pT("FocusGroupItem",n);return(0,x.createElement)(pk.ItemSlot,{scope:n},(0,x.createElement)(ps.button,(0,w.Z)({},r,{ref:t,onKeyDown:pe(e.onKeyDown,e=>{let t=["Home","End",...pV].includes(e.key);if(t){let t=i().map(e=>e.ref.current),n="rtl"===o.dir?"ArrowRight":"ArrowLeft";if([n,"ArrowUp","End"].includes(e.key)&&t.reverse(),pV.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>pI(t)),e.preventDefault()}})})))};function pI(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function pZ(e,t){let n=pl(t);pu(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var pB=n(38617);let pH=x.forwardRef((e,t)=>{let{className:n,...r}=e;return(0,y.jsx)(fe,{...r,ref:t,className:(0,em.cx)("select-none flex items-center rounded cursor-pointer","focus:ring ring-blue-500 dark:ring-blue-200","text-gray-700 dark:text-graydark-700","data-[state=checked]:text-gray-1100 data-[state=checked]:dark:text-white",n)})});function pU(e){let{className:t,tooltipClassName:n,tabIndex:r}=e,{theme:i,setTheme:o}=(0,pB.F)();return(0,y.jsxs)(d9,{value:i,tabIndex:r,className:(0,em.cx)("flex gap-4",t),onValueChange:e=>o(e),children:[(0,y.jsx)(pH,{value:"system",children:(0,y.jsx)(ls,{className:n,sideOffset:16,content:"System",children:(0,y.jsx)(lc.$Iz,{})})}),(0,y.jsx)(pH,{value:"light",children:(0,y.jsx)(ls,{className:n,sideOffset:16,content:"Light",children:(0,y.jsx)(lc.JaG,{})})}),(0,y.jsx)(pH,{value:"dark",children:(0,y.jsx)(ls,{className:n,sideOffset:16,content:"Dark",children:(0,y.jsx)(lc.osk,{})})})]})}var pW=n(74424);function pq(e){let{title:t,children:n,rootClassName:r,className:i,message:o,showBorderInactive:a,...s}=e,{getRootProps:l,getInputProps:u,isDragActive:c}=(0,pW.uI)(s);return(0,y.jsxs)("div",{...l(),className:(0,em.cx)("outline-none",r),children:[(0,y.jsxs)("div",{className:(0,em.cx)(c?"z-20":"","absolute","top-0","left-0","w-full","h-full","pointer-events-none","rounded","p-4","flex justify-center items-center text-center","border-2 border-dashed",a?["border-green-600 dark:border-green-500","hover:border-green-700 hover:dark:border-green-500"]:"border-transparent",c?["border-green-500 dark:border-green-600 bg-green-100/20 dark:bg-green-100/20","hover:border-green-500 hover:dark:border-green-600 hover:bg-green-100/20 hover:dark:bg-green-100/20"]:"",i),children:[(0,y.jsx)("input",{...u()}),o&&(0,y.jsx)(t2,{size:"14",children:t||"Drop your files here or click to to open the file picker."})]}),n]})}var p$=n(14582),pK=n(63739),pY=n(13980),pG=n.n(pY),pX=n(72779),pJ=n.n(pX),pQ=n(47440),p0=n(59309),p1=n(19067),p2=n(71220),p4=n(28142);function p3(e){return"bandwidth"in e?e.bandwidth():0}var p5=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function p6(){return(p6=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,p5),g=null!=m?m:(0,p2.Z)(r,void 0===f?10:f),y=(null!=p?p:0)+p3(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,p4.Z)(r(e)))?n:0)+y;return{index:t,from:new p1.Z({x:0,y:o}),to:new p1.Z({x:i,y:o})}});return x.createElement(p0.Z,{className:pJ()("visx-rows",c),top:void 0===t?0:t,left:void 0===n?0:n},d?d({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return x.createElement(pQ.default,p6({key:"row-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:h},v))}))}p8.propTypes={tickValues:pG().array,width:pG().number.isRequired};var p7=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function p9(){return(p9=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,p7),g=null!=p?p:(0,p2.Z)(r,void 0===d?10:d),y=(null!=h?h:0)+p3(r)/2,b=g.map(function(e,t){var n,o=(null!=(n=(0,p4.Z)(r(e)))?n:0)+y;return{index:t,from:new p1.Z({x:o,y:0}),to:new p1.Z({x:o,y:i})}});return x.createElement(p0.Z,{className:pJ()("visx-columns",c),top:void 0===t?0:t,left:void 0===n?0:n},m?m({lines:b}):b.map(function(e){var t=e.from,n=e.to,r=e.index;return x.createElement(pQ.default,p9({key:"column-line-"+r,from:t,to:n,stroke:a,strokeWidth:l,strokeDasharray:u,style:f},v))}))}me.propTypes={tickValues:pG().array,height:pG().number.isRequired};var mt=n(64183),mn=n(8597);function mr(e){var t=e.id,n=e.width,r=e.height,i=e.children;return x.createElement("defs",null,x.createElement("pattern",{id:t,width:n,height:r,patternUnits:"userSpaceOnUse"},i))}mr.propTypes={id:pG().string.isRequired,width:pG().number.isRequired,height:pG().number.isRequired,children:pG().node.isRequired};var mi={horizontal:"horizontal",vertical:"vertical",diagonal:"diagonal",diagonalRightToLeft:"diagonalRightToLeft"};function mo(e){var t=e.id,n=e.width,r=e.height,i=e.stroke,o=e.strokeWidth,a=e.strokeDasharray,s=e.strokeLinecap,l=void 0===s?"square":s,u=e.shapeRendering,c=void 0===u?"auto":u,d=e.orientation,f=void 0===d?["vertical"]:d,h=e.background,p=e.className,m=Array.isArray(f)?f:[f];return x.createElement(mr,{id:t,width:n,height:r},!!h&&x.createElement("rect",{className:pJ()("visx-pattern-line-background"),width:n,height:r,fill:h}),m.map(function(e,n){return x.createElement("path",{key:"visx-"+t+"-line-"+e+"-"+n,className:pJ()("visx-pattern-line",p),d:function(e){var t=e.height;switch(e.orientation){case mi.horizontal:return"M 0,"+t/2+" l "+t+",0";case mi.diagonal:return"M 0,"+t+" l "+t+","+-t+" M "+-t/4+","+t/4+" l "+t/2+","+-t/2+"\n M "+3/4*t+","+5/4*t+" l "+t/2+","+-t/2;case mi.diagonalRightToLeft:return"M 0,0 l "+t+","+t+"\n M "+-t/4+","+3/4*t+" l "+t/2+","+t/2+"\n M "+3/4*t+","+-t/4+" l "+t/2+","+t/2;case mi.vertical:default:return"M "+t/2+", 0 l 0, "+t}}({orientation:e,height:r}),stroke:i,strokeWidth:o,strokeDasharray:a,strokeLinecap:l,shapeRendering:c})}))}mo.propTypes={id:pG().string.isRequired,width:pG().number.isRequired,height:pG().number.isRequired,className:pG().string,background:pG().string,stroke:pG().string,strokeWidth:pG().oneOfType([pG().number,pG().string]),strokeDasharray:pG().oneOfType([pG().string,pG().number]),strokeLinecap:pG().oneOf(["square","butt","round","inherit"]),shapeRendering:pG().oneOfType([pG().string,pG().number]),orientation:pG().array};var ma=["tooltipOpen"];function ms(){return(ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,ml);return x.createElement("div",mu({ref:t,className:pJ()("visx-tooltip",n),style:mu({top:null==r||null==l?r:r+l,left:null==i||null==a?i:i+a},m&&{position:"absolute"},!h&&c)},v),d)});function mf(){return(mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,mg),g=!1,y=!1;if(u&&l){var b=void 0===r?0:r,w=void 0===f?0:f;if(l.width){var j=b+o+u.width-l.width,E=u.width-b-o;g=j>0&&j>E}else{var k=b+o+u.width-window.innerWidth,S=u.width-b-o;g=k>0&&k>S}if(l.height){var _=w+s+u.height-l.height,C=u.height-w-s;y=_>0&&_>C}else y=w+s+u.height>window.innerHeight;b=g?b-u.width-o:b+o,w=y?w-u.height-s:w+s,t="translate("+(b=Math.round(b))+"px, "+(w=Math.round(w))+"px)"}return x.createElement(md,my({ref:m,style:my({left:0,top:0,transform:t},!p&&d)},v),x.createElement(mv,{value:{isFlippedVertically:!y,isFlippedHorizontally:!g}},n))}mx.propTypes={nodeRef:pG().oneOfType([pG().string,pG().func,pG().object])};var mb=((Ey=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={rect:void 0,parentRect:void 0},n.nodeRef=x.createRef(),n.getRects=n.getRects.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mh(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t=this;this.node=null!=(e=this.nodeRef)&&e.current?this.nodeRef.current:to.findDOMNode(this),this.setState(function(){return t.getRects()})},n.getRects=function(){if(!this.node)return this.state;var e=this.node,t=e.parentNode;return{rect:e.getBoundingClientRect?e.getBoundingClientRect():mp,parentRect:null!=t&&t.getBoundingClientRect?t.getBoundingClientRect():mp}},n.render=function(){return x.createElement(mx,mf({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},t}(x.PureComponent)).displayName="withBoundingRects("+(mx.displayName||"")+")",Ey),mw=n(99985);function mj(e,t){if("invert"in e&&void 0!==e.invert)return e.invert(t).valueOf();var n=e.range(),r=n[0],i=n[1],o=0,a=("step"in e&&void 0!==e.step?e.step():1)*(i-r)/Math.abs(i-r);if(a>0)for(;t>r+a*(o+1);)o+=1;else for(;t0?Math.min(e.dx,t.bounds.x1-a):Math.max(e.dx,t.bounds.x0-r),u=e.dy>0?Math.min(e.dy,t.bounds.y1-s):Math.max(e.dy,t.bounds.y0-i);return mA({},t,{isBrushing:!0,extent:mA({},t.extent,{x0:r+l,x1:a+l,y0:i+u,y1:s+u})})})},t.selectionDragEnd=function(){var e=t.props,n=e.updateBrush,r=e.onBrushEnd,i=e.onMoveSelectionChange;e.isControlled||n(function(e){var t=mA({},e,{isBrushing:!1,start:mA({},e.start,{x:Math.min(e.extent.x0,e.extent.x1),y:Math.min(e.extent.y0,e.extent.y1)}),end:mA({},e.end,{x:Math.max(e.extent.x0,e.extent.x1),y:Math.max(e.extent.y0,e.extent.y1)})});return r&&r(t),t}),i&&i()},t}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mP(t,e),t.prototype.render=function(){var e=this.props,t=e.width,n=e.height,r=e.stageWidth,i=e.stageHeight,o=e.brush,a=e.disableDraggingSelection,s=e.onMouseLeave,l=e.onMouseMove,u=e.onMouseUp,c=e.onClick,d=e.selectedBoxStyle,f=e.isControlled,h=e.isDragInProgress;return x.createElement(mw.Z,{width:t,height:n,resetOnStart:!0,onDragStart:this.selectionDragStart,onDragMove:this.selectionDragMove,onDragEnd:this.selectionDragEnd,isDragging:f?h:void 0},function(e){var h=e.isDragging,p=e.dragStart,m=e.dragEnd,v=e.dragMove;return x.createElement("g",null,h&&x.createElement("rect",{width:r,height:i,fill:"transparent",onPointerUp:f?void 0:m,onPointerMove:v,onPointerLeave:f?void 0:m,style:mN}),x.createElement("rect",mA({x:Math.min(o.extent.x0,o.extent.x1),y:Math.min(o.extent.y0,o.extent.y1),width:t,height:n,className:"visx-brush-selection",onPointerDown:a?void 0:p,onPointerLeave:function(e){s&&s(e)},onPointerMove:function(e){v(e),l&&l(e)},onPointerUp:function(e){f||m(e),u&&u(e)},onClick:function(e){c&&c(e)},style:{pointerEvents:o.isBrushing||o.activeHandle?"none":"all",cursor:a?void 0:"move"}},d)))})},t}(x.Component);function mD(){return(mD=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?Math.min(l,e.bounds.x1-o):Math.max(l,e.bounds.x0-n),c=u>0?Math.min(u,e.bounds.y1-a):Math.max(u,e.bounds.y0-r);return mD({},e,{isBrushing:!0,extent:mD({},e.extent,{x0:n+s,y0:r+c,x1:o+s,y1:a+c})})}),"select"===i&&n.updateBrush(function(e){var t=e.start,r=t.x,i=t.y,o={x:Math.min(Math.max(r+l,e.bounds.x0),e.bounds.x1),y:Math.min(Math.max(i+u,e.bounds.y0),e.bounds.y1)},a=n.getExtent(s,o);return mD({},e,{end:o,extent:a})})}},n.getExtent=function(e,t){var r=n.props,i=r.brushDirection,o=r.width,a=r.height;return{x0:"vertical"===i?0:Math.min(e.x||0,t.x||0),x1:"vertical"===i?o:Math.max(e.x||0,t.x||0),y0:"horizontal"===i?0:Math.min(e.y||0,t.y||0),y1:"horizontal"===i?a:Math.max(e.y||0,t.y||0)}},n.handleDragStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin,s=t.useWindowMoveEvents,l=null!=a&&a.left?a.left:0,u=null!=a&&a.top?a.top:0,c={x:(e.x||0)+e.dx-i-l,y:(e.y||0)+e.dy-o-u},d=mD({},c);r&&r(c),n.updateBrush(function(t){return mD({},t,{start:c,end:d,extent:{x0:-1,x1:-1,y0:-1,y1:-1},isBrushing:!0,brushingType:"select",brushPageOffset:s?mk(e.event):void 0})})},n.handleBrushStart=function(e){var t=n.props,r=t.onBrushStart,i=t.left,o=t.top,a=t.inheritedMargin;if(r){var s=null!=a&&a.left?a.left:0,l=null!=a&&a.top?a.top:0;r({x:(e.x||0)+e.dx-i-s,y:(e.y||0)+e.dy-o-l})}},n.handleDragMove=function(e){var t=n.props,r=t.left,i=t.top,o=t.inheritedMargin,a=t.useWindowMoveEvents;if(e.isDragging&&!a){var s=(null==o?void 0:o.left)||0,l=(null==o?void 0:o.top)||0,u={x:(e.x||0)+e.dx-r-s,y:(e.y||0)+e.dy-i-l};n.updateBrush(function(e){var t=e.start,r=n.getExtent(t,u);return mD({},e,{end:u,extent:r})})}},n.handleDragEnd=function(){var e=n.props,t=e.onBrushEnd,r=e.resetOnEnd;e.useWindowMoveEvents||n.updateBrush(function(e){var i=e.extent,o=mD({},e,{start:{x:i.x0,y:i.y0},end:{x:i.x1,y:i.y1},isBrushing:!1,brushingType:void 0,activeHandle:null});return t&&t(o),r&&n.reset(),o})},n.getBrushWidth=function(){var e=n.state.extent,t=e.x0,r=e.x1;return Math.max(Math.max(t,r)-Math.min(t,r),0)},n.getBrushHeight=function(){var e=n.state.extent,t=e.y1,r=e.y0;return Math.max(Math.max(r,t)-Math.min(r,t),0)},n.handles=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2,l=n.getBrushWidth(),u=n.getBrushHeight();return{top:{x:r-s,y:o-s,height:e,width:l+e},bottom:{x:r-s,y:a-s,height:e,width:l+e},right:{x:i-s,y:o-s,height:u+e,width:e},left:{x:r-s,y:o-s,height:u+e,width:e}}},n.corners=function(){var e=n.props.handleSize,t=n.state.extent,r=t.x0,i=t.x1,o=t.y0,a=t.y1,s=e/2;return{topLeft:{x:Math.min(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},topRight:{x:Math.max(r,i)-s,y:Math.min(o,a)-s,width:e,height:e},bottomLeft:{x:Math.min(r,i)-s,y:Math.max(o,a)-s,width:e,height:e},bottomRight:{x:Math.max(r,i)-s,y:Math.max(o,a)-s,width:e,height:e}}},n.updateBrush=function(e){var t=n.props.onChange;n.setState(e,function(){t&&t(n.state)})},n.reset=function(){var e=n.props,t=e.width,r=e.height;n.updateBrush(function(){return{start:{x:0,y:0},end:{x:0,y:0},extent:{x0:-1,x1:-1,y0:-1,y1:-1},bounds:{x0:0,x1:t,y0:0,y1:r},isBrushing:!1,brushPageOffset:void 0,activeHandle:null,brushingType:void 0}})},n.handleBrushingTypeChange=function(e,t){n.updateBrush(function(n){var r=mD({},n,{brushingType:e,isBrushing:void 0!==e});return(t||void 0===e)&&(r.brushPageOffset=t),r})};var n,r=t.initialBrushPosition,i=r?n.getExtent(r.start,r.end):{x0:-1,x1:-1,y0:-1,y1:-1};return n.state={start:{x:Math.max(0,i.x0),y:Math.max(0,i.y0)},end:{x:Math.max(0,i.x1),y:Math.max(0,i.y1)},extent:i,bounds:{x0:0,x1:n.props.width,y0:0,y1:n.props.height},isBrushing:!1,brushingType:void 0,activeHandle:null},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,mL(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){var t=this;(this.props.width!==e.width||this.props.height!==e.height)&&this.setState(function(n){var r=n.start,i=n.end,o=n.extent;if(!(-1===o.x0&&-1===o.x1&&-1===o.y0&&-1===o.y1)){var a=t.props.width/e.width,s=t.props.height/e.height;r={x:a*o.x0,y:s*o.y0},i={x:a*o.x1,y:s*o.y1},o=t.getExtent(r,i)}return{start:r,end:i,extent:o,bounds:{x0:0,x1:t.props.width,y0:0,y1:t.props.height}}})},n.componentDidMount=function(){this.props.useWindowMoveEvents&&(window.addEventListener("mouseup",this.handleWindowPointerUp),window.addEventListener("mousemove",this.handleWindowPointerMove))},n.componentWillUnmount=function(){this.props.useWindowMoveEvents&&(window.removeEventListener("mouseup",this.handleWindowPointerUp),window.removeEventListener("mousemove",this.handleWindowPointerMove))},n.render=function(){var e=this,t=this.state,n=t.start,r=t.end,i=this.props,o=i.top,a=i.left,s=i.width,l=i.height,u=i.onMouseLeave,c=i.onMouseUp,d=i.onMouseMove,f=i.onBrushEnd,h=i.onClick,p=i.resizeTriggerAreas,m=i.selectedBoxStyle,v=i.disableDraggingSelection,g=i.clickSensitivity,y=i.useWindowMoveEvents,b=i.renderBrushHandle,w=this.state.brushingType,j=this.handles(),E=this.corners(),k=this.getBrushWidth(),S=this.getBrushHeight(),_=new Set(p);return x.createElement(p0.Z,{className:"visx-brush",top:o,left:a},x.createElement(mw.Z,{width:s,height:l,resetOnStart:!0,onDragStart:this.handleDragStart,onDragMove:this.handleDragMove,onDragEnd:this.handleDragEnd,isDragging:y?"select"===w:void 0},function(t){var n=t.dragStart,r=t.isDragging,i=t.dragMove,o=t.dragEnd;return x.createElement(p$.Z,{className:"visx-brush-overlay",fill:"transparent",x:0,y:0,width:s,height:l,onDoubleClick:function(){return e.reset()},onClick:function(t){var n=e.mouseUpTime-e.mouseDownTime;h&&n=0||(i[n]=e[n]);return i}(e,mH),g=o,y=s,b=a,w=l;return void 0!==m&&!m||g||y||b||w||(g="0",y="0",b="0",w="1"),x.createElement("defs",null,x.createElement("linearGradient",mU({id:n,x1:g,y1:b,x2:y,y2:w,gradientTransform:h?"rotate("+h+")":p},v),!!t&&t,!t&&x.createElement("stop",{offset:void 0===u?"0%":u,stopColor:r,stopOpacity:void 0===c?1:c}),!t&&x.createElement("stop",{offset:void 0===d?"100%":d,stopColor:i,stopOpacity:void 0===f?1:f})))}mW.propTypes={id:pG().string.isRequired,from:pG().string,to:pG().string,x1:pG().oneOfType([pG().string,pG().number]),x2:pG().oneOfType([pG().string,pG().number]),y1:pG().oneOfType([pG().string,pG().number]),y2:pG().oneOfType([pG().string,pG().number]),fromOffset:pG().oneOfType([pG().string,pG().number]),fromOpacity:pG().oneOfType([pG().string,pG().number]),toOffset:pG().oneOfType([pG().string,pG().number]),toOpacity:pG().oneOfType([pG().string,pG().number]),rotate:pG().oneOfType([pG().string,pG().number]),transform:pG().string,children:pG().node,vertical:pG().bool};var mq=n(78307),m$=n(74747);function mK(e,t){let n;if(void 0===t)for(let t of e)null!=t&&(n=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n=i)&&(n=i)}return n}var mY=n(12436),mG=n.n(mY),mX=n(55746),mJ=n(45742),mQ=n(27266),m0=["id","markerWidth","markerHeight","markerUnits","children"];function m1(){return(m1=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,m0);return x.createElement("defs",null,x.createElement("marker",m1({id:t,markerWidth:void 0===n?3:n,markerHeight:void 0===r?3:r,markerUnits:void 0===i?"userSpaceOnUse":i},a),o))}m2.propTypes={id:pG().string.isRequired,size:pG().number,markerWidth:pG().oneOfType([pG().string,pG().number]),markerHeight:pG().oneOfType([pG().string,pG().number]),markerUnits:pG().string,refX:pG().oneOfType([pG().string,pG().number]),refY:pG().oneOfType([pG().string,pG().number]),strokeWidth:pG().number,children:pG().node.isRequired};var m4=["id","size","strokeWidth"];function m3(){return(m3=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,m4),s=2*r+o,l=s/2;return x.createElement(m2,m3({id:t,markerWidth:s,markerHeight:s,refX:0,refY:l,orient:"auto-start-reverse",markerUnits:"strokeWidth",strokeWidth:o},a),x.createElement("circle",{r:r,cx:l,cy:l}))}var m6=n(64170),m8={top:"top",left:"left",bottom:"bottom"};function m7(){return(m7=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,va),k=null!=g?g:"tickFormat"in v?v.tickFormat():vr.Z,S=h===m8.left,_=h===m8.top,C=_||h===m8.bottom,O=function(e,t){if(void 0===t&&(t="center"),"start"!==t&&"bandwidth"in e){var n=e.bandwidth();return"center"===t&&(n/=2),e.round()&&(n=Math.round(n)),function(t){var r=e(t);return"number"==typeof r?r+n:r}}return e}(v),M=S||_?-1:1,T=v.range(),A=(void 0===(t=m)&&(t=0),"number"==typeof t?{start:t,end:t}:vo({start:0,end:0},t)),P=vi({x:Number(T[0])+.5-A.start,y:0},C),N=vi({x:Number(T[T.length-1])+.5+A.end,y:0},C),R=(null!=w?w:(0,p2.Z)(v,d)).filter(function(e){return!l||0!==e&&"0"!==e}).map(function(e,t){return{value:e,index:t}}),D=R.map(function(e){var t=e.value,n=e.index,r=(0,p4.Z)(O(t));return{value:t,index:n,from:vi({x:r,y:0},C),to:vi({x:r,y:b*M},C),formattedValue:k(t,n,R)}});return x.createElement(p0.Z,{className:pJ()("visx-axis",i),top:void 0===j?0:j,left:void 0===u?0:u},r(vs({},E,{axisFromPoint:P,axisToPoint:N,hideAxisLine:void 0!==o&&o,hideTicks:void 0!==a&&a,hideZero:l,horizontal:C,numTicks:d,orientation:h,rangePadding:m,scale:v,tickFormat:k,tickLength:b,tickPosition:O,tickSign:M,ticks:D})))}var vu=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vc(){return(vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vu);return x.createElement(vl,vc({axisClassName:pJ()("visx-axis-bottom",t),labelOffset:void 0===n?8:n,orientation:m8.bottom,tickLabelProps:void 0===r?vd:r,tickLength:void 0===i?8:i},o))}var vh=["axisClassName","labelOffset","tickLabelProps","tickLength"];function vp(){return(vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vh);return x.createElement(vl,vp({axisClassName:pJ()("visx-axis-left",t),labelOffset:void 0===n?36:n,orientation:m8.left,tickLabelProps:void 0===r?vm:r,tickLength:void 0===i?8:i},o))}let vg=e=>new Date((null==e?void 0:e.timestamp)||0),vy=e=>(null==e?void 0:e.value)||0,vx="var(--colors-hiContrast)",vb={textAnchor:"middle",fontFamily:"var(--fonts-sans)",fontSize:10,fill:vx},vw={dx:"-0.25em",dy:"0.25em",fontFamily:"var(--fonts-sans)",fontSize:10,textAnchor:"end",fill:vx};function vj(e){let{data:t,gradientColor:n,width:r,yMax:i,margin:o,xScale:a,yScale:s,hideBottomAxis:l=!1,hideLeftAxis:u=!1,top:c,left:d,curve:f="step",children:h}=e;return r<10?null:(0,y.jsxs)(p0.Z,{left:d||o.left,top:c||o.top,children:[(0,y.jsx)(m5,{id:"marker-circle",fill:"var(--colors-accent11)",size:1.5,refX:1.5}),(0,y.jsx)(mW,{id:"gradient",from:n,fromOpacity:1,to:n,toOpacity:.2}),(0,y.jsx)(mX.Z,{data:t,x:e=>a(vg(e))||0,y:e=>s(vy(e))||0,yScale:s,strokeWidth:1,stroke:"url(#gradient)",fill:"url(#gradient)",markerMid:"url(#marker-circle)",curve:"step"===f?mJ.ZP:mQ.Z}),!l&&(0,y.jsx)(vf,{top:i,scale:a,numTicks:r>520?10:5,stroke:vx,tickStroke:vx,tickLabelProps:()=>vb}),!u&&(0,y.jsx)(vv,{scale:s,numTicks:5,stroke:vx,tickStroke:vx,tickLabelProps:()=>vw}),h]})}var vE=n(6692);let vk={inherit:vE.inherit,current:vE.current,transparent:vE.transparent,black:vE.black,white:vE.white,slate:vE.slate,zinc:vE.zinc,neutral:vE.neutral,stone:vE.stone,red:vE.red,orange:vE.orange,amber:vE.amber,yellow:vE.yellow,lime:vE.lime,green:vE.green,emerald:vE.emerald,teal:vE.teal,cyan:vE.cyan,sky:vE.sky,blue:vE.blue,indigo:vE.indigo,violet:vE.violet,purple:vE.purple,fuchsia:vE.fuchsia,pink:vE.pink,rose:vE.rose,mask:"rgba(30, 169, 76, .3)",accent:{50:"#F6FFF9",100:"#E9FBEF",200:"#D5F2DE",300:"#C9EED4",400:"#BBE8C9",500:"#9BDAAE",600:"#71C48A",700:"#3EAA5F",800:"#05872D",900:"#056B24",1e3:"#04511B",1100:"#011F0A"},accentdark:{50:"#05150A",100:"#051C0C",200:"#062811",300:"#073515",400:"#064018",500:"#075820",600:"#056824",700:"#077A2A",800:"#05872D",900:"#069F35",1e3:"#2FA052",1100:"#D9F4E1"},gray:{50:"hsl(206, 30.0%, 98.8%)",100:"hsl(210, 16.7%, 97.6%)",200:"hsl(209, 13.3%, 95.3%)",300:"hsl(209, 12.2%, 93.2%)",400:"hsl(208, 11.7%, 91.1%)",500:"hsl(208, 11.3%, 88.9%)",600:"hsl(207, 11.1%, 85.9%)",700:"hsl(205, 10.7%, 78.0%)",800:"hsl(206, 6.0%, 56.1%)",900:"hsl(206, 5.8%, 52.3%)",1e3:"hsl(206, 6.0%, 43.5%)",1100:"hsl(206, 24.0%, 9.0%)"},graydark:{50:"hsl(200, 7.0%, 8.8%)",100:"hsl(195, 7.1%, 11.0%)",200:"hsl(197, 6.8%, 13.6%)",300:"hsl(198, 6.6%, 15.8%)",400:"hsl(199, 6.4%, 17.9%)",500:"hsl(201, 6.2%, 20.5%)",600:"hsl(203, 6.0%, 24.3%)",700:"hsl(207, 5.6%, 31.6%)",800:"hsl(206, 6.0%, 43.9%)",900:"hsl(206, 5.2%, 49.5%)",1e3:"hsl(206, 6.0%, 63.0%)",1100:"hsl(210, 6.0%, 93.0%)"}};var vS=n(96206);let v_={top:10,bottom:15,left:10,right:10},vC="brush_pattern",vO="brush_gradient",vM=mG()(e=>e(),15),vT=(0,mq.Z)(e=>new Date((null==e?void 0:e.timestamp)||0)).left;void 0===Ex&&(Ex={style:{position:"relative",width:"inherit",height:"inherit"}}),void 0===Eb&&(Eb=function(e,t){return x.createElement("div",t,e)});var vA=n(70390),vP=n(3440),vN=n.n(vP);function vR(e){let{id:t,width:n,height:r,accessors:i,animationTrajectory:o,curve:a,data:s,config:l,scales:u,enabledGraph:c,enabledTip:d,isStack:f,todayOffset:h,numTicks:p,renderAreaSeries:m,renderAreaStack:v,renderBarGroup:g,renderBarStack:b,enableTooltipGlyph:w,renderTooltipGlyph:j,renderLineSeries:E,sharedTooltip:k,showHorizontalCrosshair:S,showTooltip:_,showVerticalCrosshair:C,snapTooltipToDatum:O,stackOffset:M,margin:T,theme:A,xAxisOrientation:P,yAxisOrientation:N,AreaSeries:R,AreaStack:D,Axis:L,BarGroup:F,BarSeries:z,BarStack:V,Grid:I,LineSeries:Z,Tooltip:B,XYChart:H}=e;return(0,y.jsxs)(H,{theme:A.xyChartTheme,xScale:u.x,yScale:u.y,height:Math.min(400,r),margin:T,captureEvents:!0,children:[(0,y.jsx)("g",{children:(0,y.jsx)("rect",{className:"fill-gray-600 dark:fill-graydark-600 h-full w-px y-0",style:{left:"".concat(100*h,"%")}})},"today-line-".concat(n,"-").concat(r)),(0,y.jsx)(mW,{id:"gradient-default",from:"gray",fromOpacity:1,to:"gray",toOpacity:.4}),Object.entries(l.data).map(e=>{let[n,r]=e,i=r.color;return(0,y.jsxs)(x.Fragment,{children:[(0,y.jsx)(mo,{id:"pattern-".concat(vD(t,n)),height:6,width:6,stroke:i,strokeWidth:.5,orientation:["diagonal"]}),(0,y.jsx)(mW,{id:"gradient-".concat(vD(t,n)),from:i,fromOpacity:1,to:i,toOpacity:f?.4:1})]},n)}),(0,y.jsx)(I,{rows:!1,columns:!0,strokeDasharray:"1,3",animationTrajectory:o,numTicks:p},"grid-".concat(o)),b&&(0,y.jsx)(V,{offset:M,children:c.map(e=>(0,y.jsx)(z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vL(t,e,l)},e))}),g&&(0,y.jsx)(F,{children:c.map(e=>(0,y.jsx)(z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],colorAccessor:()=>vL(t,e,l)},e))}),m&&(0,y.jsx)(y.Fragment,{children:c.map(e=>(0,y.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vL(t,e,l),fill:vL(t,e,l),curve:a},e))}),v&&(0,y.jsx)(D,{curve:a,offset:M,renderLine:"wiggle"!==M,children:c.map(e=>(0,y.jsx)(R,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:vL(t,e,l),fill:vL(t,e,l)},e))}),E&&(0,y.jsx)(y.Fragment,{children:c.map(e=>{var t,n;return(0,y.jsx)(Z,{dataKey:e,data:s,xAccessor:i.x[e],yAccessor:i.y[e],stroke:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.color)||"gray",curve:a},e)})}),(0,y.jsx)(L,{orientation:P,numTicks:p,animationTrajectory:o,tickFormat:e=>(0,vS.rN)(e),tickLength:12,tickLabelProps:e=>({...e,fill:A.labels.color,fontFamily:A.labels.fontFamily,y:"14px",fontWeight:"500",fontSize:"8"})},"time-axis-".concat(o)),(0,y.jsx)(L,{label:null==M?"SC":"expand"===M?"Fraction of total":"",orientation:N,numTicks:p,tickLength:0,rangePadding:0,animationTrajectory:o,tickFormat:()=>""},"temp-axis-".concat(o)),_&&(0,y.jsx)(B,{showHorizontalCrosshair:S,showVerticalCrosshair:C,snapTooltipToDatumX:O,snapTooltipToDatumY:O,showDatumGlyph:O&&!g,showSeriesGlyphs:k&&!g,renderGlyph:w?j:void 0,renderTooltip:e=>{var t,n;let{tooltipData:r}=e,o=null==r?void 0:null===(t=r.nearestDatum)||void 0===t?void 0:t.datum,a=null==r?void 0:null===(n=r.nearestDatum)||void 0===n?void 0:n.key,s=k?d:a?[a]:[],u=l.formatTimestamp||(e=>(0,vS.rN)(e,{timeStyle:"short",hour12:!1})),c=s.map(e=>{var t,n;return{key:e,category:(null===(n=l.data)||void 0===n?void 0:null===(t=n[e])||void 0===t?void 0:t.category)||""}}),h=vN()(c,"category"),p=l.categories?l.categories.map(e=>[e,h[e]]):Object.entries(h);return(0,y.jsxs)("div",{className:(0,em.cx)(lo,"flex flex-col gap-2 py-1"),children:[(0,y.jsx)(t1,{font:"mono",size:"12",color:"contrast",className:"text-end",children:o?u(i.date(o)):"No date"}),(0,y.jsx)(cF,{color:"panel",className:"w-full"}),(0,y.jsx)("div",{className:(0,em.cx)("grid gap-x-6 gap-y-4",p.length>1?"grid-cols-2":"grid-cols-1"),children:p.map(e=>{let[t,n]=e,r=o?n.reduce((e,t)=>{let{key:n}=t,r=i.y[n](o);return null==r||Number.isNaN(r)?e:e+r},0):0;return(0,y.jsxs)("div",{className:"flex flex-col gap-2 w-[250px]",children:[t&&(0,y.jsx)(t1,{weight:"semibold",children:t}),(0,y.jsxs)("div",{className:"grid grid-cols-2 gap-x-2 gap-y-1 items-center",children:[n.map(e=>{var t,n,r,s;let{key:u}=e,c=o&&i.y[u](o);return(0,y.jsxs)(x.Fragment,{children:[(0,y.jsx)(t1,{color:"accent",style:{color:null===(n=l.data)||void 0===n?void 0:null===(t=n[u])||void 0===t?void 0:t.color},className:(0,em.cx)(a===u?"underline":""),children:(null===(s=l.data)||void 0===s?void 0:null===(r=s[u])||void 0===r?void 0:r.label)||u}),(0,y.jsx)(t1,{size:"12",style:{textAlign:"end"},className:(0,em.cx)(a===u?"underline":""),children:null==c||Number.isNaN(c)?"–":l.format(c)})]},u)}),n.length>1&&f&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{className:"pt-2",children:"total"}),(0,y.jsx)(t1,{size:"12",weight:"bold",className:"pt-2 text-end",children:l.format(r)})]})]})]},t)})})]})}})]})}function vD(e,t){return"".concat(e,"-").concat(t)}function vL(e,t,n){var r;let i=vD(e,t);return(null===(r=n.data)||void 0===r?void 0:r[t])?n.data[t].pattern?"url(#pattern-".concat(i,")"):"url(#gradient-".concat(i,")"):"url(#gradient-default)"}var vF=n(24037),vz=n(86707);function vV(e){var t=e.top,n=e.left,r=e.className,i=e.children;return x.createElement(p0.Z,{className:pJ()("visx-glyph",r),top:void 0===t?0:t,left:void 0===n?0:n},i)}vV.propTypes={top:pG().number,left:pG().number,className:pG().string,children:pG().node};var vI=["children","className","top","left","size"];function vZ(){return(vZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vI),s=(0,vF.Z)();return(s.type(vz.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?x.createElement(x.Fragment,null,t({path:s})):x.createElement(vV,{top:r,left:i},x.createElement("path",vZ({className:pJ()("visx-glyph-star",n),d:s()||""},a)))}vB.propTypes={children:pG().func,className:pG().string,top:pG().number,left:pG().number,size:pG().oneOfType([pG().number,pG().func])};var vH=["top","left","className"];function vU(){return(vU=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,vH);return x.createElement(vV,{top:void 0===t?0:t,left:void 0===n?0:n},x.createElement("circle",vU({className:pJ()("visx-glyph-dot",r)},i)))}vW.propTypes={className:pG().string,top:pG().number,left:pG().number,r:pG().number,cx:pG().number,cy:pG().number};var vq=n(9135),v$=["children","className","top","left","size"];function vK(){return(vK=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,v$),s=(0,vF.Z)();return(s.type(vq.Z),"number"==typeof o?s.size(o):o&&s.size(o),t)?x.createElement(x.Fragment,null,t({path:s})):x.createElement(vV,{top:r,left:i},x.createElement("path",vK({className:pJ()("visx-glyph-cross",n),d:s()||""},a)))}vY.propTypes={children:pG().func,className:pG().string,top:pG().number,left:pG().number,size:pG().oneOfType([pG().number,pG().func])};var vG=n(46385),vX=n(20651),vJ={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},vQ=vJ.gray,v0=vQ[7],v1=[vJ.cyan[9],vJ.cyan[3],vJ.yellow[5],vJ.red[4],vJ.grape[8],vJ.grape[5],vJ.pink[9]];function v2(){return(v2=Object.assign?Object.assign.bind():function(e){for(var t=1;t{for(var n in t)v8(e,n,{get:t[n],enumerable:!0})})(v7,{assign:()=>gT,colors:()=>gC,createStringInterpolator:()=>EE,skipAnimation:()=>gO,to:()=>Ek,willAdvance:()=>gM});var v9=gm(),ge=e=>gd(e,v9),gt=gm();ge.write=e=>gd(e,gt);var gn=gm();ge.onStart=e=>gd(e,gn);var gr=gm();ge.onFrame=e=>gd(e,gr);var gi=gm();ge.onFinish=e=>gd(e,gi);var go=[];ge.setTimeout=(e,t)=>{let n=ge.now()+t,r=()=>{let e=go.findIndex(e=>e.cancel==r);~e&&go.splice(e,1),gu-=~e?1:0},i={time:n,handler:e,cancel:r};return go.splice(ga(n),0,i),gu+=1,gf(),i};var ga=e=>~(~go.findIndex(t=>t.time>e)||~go.length);ge.cancel=e=>{gn.delete(e),gr.delete(e),gi.delete(e),v9.delete(e),gt.delete(e)},ge.sync=e=>{gc=!0,ge.batchedUpdates(e),gc=!1},ge.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,ge.onStart(n)}return r.handler=e,r.cancel=()=>{gn.delete(n),t=null},r};var gs="undefined"!=typeof window?window.requestAnimationFrame:()=>{};ge.use=e=>gs=e,ge.now="undefined"!=typeof performance?()=>performance.now():Date.now,ge.batchedUpdates=e=>e(),ge.catch=console.error,ge.frameLoop="always",ge.advance=()=>{"demand"!==ge.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):gp()};var gl=-1,gu=0,gc=!1;function gd(e,t){gc?(t.delete(e),e(0)):(t.add(e),gf())}function gf(){gl<0&&(gl=0,"demand"!==ge.frameLoop&&gs(gh))}function gh(){~gl&&(gs(gh),ge.batchedUpdates(gp))}function gp(){let e=gl;gl=ge.now();let t=ga(gl);if(t&&(gv(go.splice(0,t),e=>e.handler()),gu-=t),!gu){gl=-1;return}gn.flush(),v9.flush(e?Math.min(64,gl-e):16.667),gr.flush(),gt.flush(),gi.flush()}function gm(){let e=new Set,t=e;return{add(n){gu+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(gu-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,gu-=t.size,gv(t,t=>t(n)&&e.add(t)),gu+=e.size,t=e)}}}function gv(e,t){e.forEach(e=>{try{t(e)}catch(e){ge.catch(e)}})}function gg(){}var gy=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),gx={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function gb(e,t){if(gx.arr(e)){if(!gx.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function gj(e,t,n){if(gx.arr(e)){for(let r=0;rgx.und(e)?[]:gx.arr(e)?e:[e];function gk(e,t){if(e.size){let n=Array.from(e);e.clear(),gw(n,t)}}var gS=(e,...t)=>gk(e,e=>e(...t)),g_=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),gC=null,gO=!1,gM=gg,gT=e=>{e.to&&(Ek=e.to),e.now&&(ge.now=e.now),void 0!==e.colors&&(gC=e.colors),null!=e.skipAnimation&&(gO=e.skipAnimation),e.createStringInterpolator&&(EE=e.createStringInterpolator),e.requestAnimationFrame&&ge.use(e.requestAnimationFrame),e.batchedUpdates&&(ge.batchedUpdates=e.batchedUpdates),e.willAdvance&&(gM=e.willAdvance),e.frameLoop&&(ge.frameLoop=e.frameLoop)},gA=new Set,gP=[],gN=[],gR=0,gD={get idle(){return!gA.size&&!gP.length},start(e){gR>e.priority?(gA.add(e),ge.onStart(gL)):(gF(e),ge(gV))},advance:gV,sort(e){if(gR)ge.onFrame(()=>gD.sort(e));else{let t=gP.indexOf(e);~t&&(gP.splice(t,1),gz(e))}},clear(){gP=[],gA.clear()}};function gL(){gA.forEach(gF),gA.clear(),ge(gV)}function gF(e){gP.includes(e)||gz(e)}function gz(e){gP.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(gP,t=>t.priority>e.priority),0,e)}function gV(e){let t=gN;for(let n=0;n0}var gI="[-+]?\\d*\\.?\\d+",gZ=gI+"%";function gB(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var gH=RegExp("rgb"+gB(gI,gI,gI)),gU=RegExp("rgba"+gB(gI,gI,gI,gI)),gW=RegExp("hsl"+gB(gI,gZ,gZ)),gq=RegExp("hsla"+gB(gI,gZ,gZ,gI)),g$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gK=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gY=/^#([0-9a-fA-F]{6})$/,gG=/^#([0-9a-fA-F]{8})$/;function gX(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gJ(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=gX(i,r,e+1/3),a=gX(i,r,e),s=gX(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function gQ(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function g0(e){let t=parseFloat(e);return(t%360+360)%360/360}function g1(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function g2(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function g4(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gY.exec(e))?parseInt(t[1]+"ff",16)>>>0:gC&&void 0!==gC[e]?gC[e]:(t=gH.exec(e))?(gQ(t[1])<<24|gQ(t[2])<<16|gQ(t[3])<<8|255)>>>0:(t=gU.exec(e))?(gQ(t[1])<<24|gQ(t[2])<<16|gQ(t[3])<<8|g1(t[4]))>>>0:(t=g$.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=gG.exec(e))?parseInt(t[1],16)>>>0:(t=gK.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=gW.exec(e))?(255|gJ(g0(t[1]),g2(t[2]),g2(t[3])))>>>0:(t=gq.exec(e))?(gJ(g0(t[1]),g2(t[2]),g2(t[3]))|g1(t[4]))>>>0:null;if(null===n)return e;n=n||0;let r=(4278190080&n)>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}var g3=(e,t,n)=>{if(gx.fun(e))return e;if(gx.arr(e))return g3({range:e,output:t,extrapolate:n});if(gx.str(e.output[0]))return EE(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},g5=Symbol.for("FluidValue.get"),g6=Symbol.for("FluidValue.observers"),g8=e=>!!(e&&e[g5]),g7=e=>e&&e[g5]?e[g5]():e,g9=e=>e[g6]||null;function ye(e,t){let n=e[g6];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var yt=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");yn(this,e)}},yn=(e,t)=>yo(e,g5,t);function yr(e,t){if(e[g5]){let n=e[g6];n||yo(e,g6,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function yi(e,t){let n=e[g6];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[g6]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var yo=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ya=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ys=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,yl=RegExp(`(${ya.source})(%|[a-z]+)`,"i"),yu=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,yc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,yd=e=>{let[t,n]=yf(e);if(!t||g_())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&yc.test(n))return yd(n);else if(n)return n;return e},yf=e=>{let t=yc.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},yh=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,yp=e=>{ES||(ES=gC?RegExp(`(${Object.keys(gC).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>g7(e).replace(yc,yd).replace(ys,g4).replace(ES,g4)),n=t.map(e=>e.match(ya).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})),i=r.map(t=>g3({...e,output:t}));return e=>{let n=!yl.test(t[0])&&t.find(e=>yl.test(e))?.replace(ya,""),r=0;return t[0].replace(ya,()=>`${i[r++](e)}${n||""}`).replace(yu,yh)}},ym="react-spring: ",yv=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${ym}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},yg=yv(console.warn),yy=yv(console.warn);function yx(e){return gx.str(e)&&("#"==e[0]||/\d/.test(e)||!g_()&&yc.test(e)||e in(gC||{}))}var yb=g_()?x.useEffect:x.useLayoutEffect,yw=()=>{let e=(0,x.useRef)(!1);return yb(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function yj(){let e=(0,x.useState)()[1],t=yw();return()=>{t.current&&e(Math.random())}}var yE=e=>(0,x.useEffect)(e,yk),yk=[];function yS(e){let t=(0,x.useRef)();return(0,x.useEffect)(()=>{t.current=e}),t.current}var y_=Symbol.for("Animated:node"),yC=e=>!!e&&e[y_]===e,yO=e=>e&&e[y_],yM=(e,t)=>gy(e,y_,t),yT=e=>e&&e[y_]&&e[y_].getPayload(),yA=class{constructor(){yM(this,this)}getPayload(){return this.payload||[]}},yP=class extends yA{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,gx.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new yP(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return gx.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,gx.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},yN=class extends yP{constructor(e){super(0),this._string=null,this._toString=g3({output:[e,e]})}static create(e){return new yN(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(gx.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=g3({output:[this.getValue(),e]})),this._value=0,super.reset()}},yR={dependencies:null},yD=class extends yA{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return gj(this.source,(n,r)=>{yC(n)?t[r]=n.getValue(e):g8(n)?t[r]=g7(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&gw(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return gj(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){yR.dependencies&&g8(e)&&yR.dependencies.add(e);let t=yT(e);t&&gw(t,e=>this.add(e))}},yL=class extends yD{constructor(e){super(e)}static create(e){return new yL(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(yF)),!0)}};function yF(e){let t=yx(e)?yN:yP;return t.create(e)}function yz(e){let t=yO(e);return t?t.constructor:gx.arr(e)?yL:yx(e)?yN:yP}var yV=(e,t)=>{let n=!gx.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,x.forwardRef)((r,i)=>{let o=(0,x.useRef)(null),a=n&&(0,x.useCallback)(e=>{o.current=(i&&(gx.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return yR.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new yD(e),yR.dependencies=null,[e,n]}(r,t),u=yj(),c=()=>{let e=o.current;if(n&&!e)return;let r=!!e&&t.applyAnimatedValues(e,s.getValue(!0));!1===r&&u()},d=new yI(c,l),f=(0,x.useRef)();yb(()=>(f.current=d,gw(l,e=>yr(e,d)),()=>{f.current&&(gw(f.current.deps,e=>yi(e,f.current)),ge.cancel(f.current.update))})),(0,x.useEffect)(c,[]),yE(()=>()=>{let e=f.current;gw(e.deps,t=>yi(t,e))});let h=t.getComponentProps(s.getValue());return x.createElement(e,{...h,ref:a})})},yI=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&ge.write(this.update)}},yZ=Symbol.for("AnimatedComponent"),yB=e=>gx.str(e)?e:e&&gx.str(e.displayName)?e.displayName:gx.fun(e)&&e.name||null;function yH(e,...t){return gx.fun(e)?e(...t):e}var yU=(e,t)=>!0===e||!!(t&&e&&(gx.fun(e)?e(t):gE(e).includes(t))),yW=(e,t)=>gx.obj(e)?t&&e[t]:e,yq=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,y$=e=>e,yK=(e,t=y$)=>{let n=yY;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);gx.und(n)||(r[i]=n)}return r},yY=["config","onProps","onStart","onChange","onPause","onResume","onRest"],yG={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function yX(e){let t=function(e){let t={},n=0;if(gj(e,(e,r)=>{!yG[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return gj(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function yJ(e){return e=g7(e),gx.arr(e)?e.map(yJ):yx(e)?v7.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function yQ(e){for(let t in e)return!0;return!1}function y0(e){return gx.fun(e)||gx.arr(e)&&gx.obj(e[0])}function y1(e,t){e.ref?.delete(e),t?.delete(e)}function y2(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var y4={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},y3=class{constructor(){this.velocity=0,Object.assign(this,y4)}};function y5(e,t){if(gx.und(t.decay)){let n=!gx.und(t.tension)||!gx.und(t.friction);!n&&gx.und(t.frequency)&&gx.und(t.damping)&&gx.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var y6=[],y8=class{constructor(){this.changed=!1,this.values=y6,this.toValues=null,this.fromValues=y6,this.config=new y3,this.immediate=!1}};function y7(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u;let c=yU(n.cancel??r?.cancel,t);if(c)h();else{gx.und(n.pause)||(i.paused=yU(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||yU(e,t)),l=yH(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-ge.now()}function f(){l>0&&!v7.skipAnimation?(i.delayed=!0,u=ge.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var y9=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?xn(e.get()):t.every(e=>e.noop)?xe(e.get()):xt(e.get(),t.every(e=>e.finished)),xe=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),xt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),xn=e=>({value:e,cancelled:!0,finished:!1});function xr(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=yK(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>(u=e,c=t)),p=e=>{let t=i<=(n.cancelId||0)&&xn(r)||i!==n.asyncId&&xt(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let o=new xo,a=new xa;return(async()=>{if(v7.skipAnimation)throw xi(n),a.result=xt(r,!1),c(a),a;p(o);let s=gx.obj(e)?{...e}:{...t,to:e};s.parentId=i,gj(f,(e,t)=>{gx.und(s[t])&&(s[t]=e)});let l=await r.start(s);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(v7.skipAnimation)return xi(n),xt(r,!1);try{let t;t=gx.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),h]),d=xt(r.get(),!0,!1)}catch(e){if(e instanceof xo)d=e.result;else if(e instanceof xa)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return gx.fun(a)&&ge.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function xi(e,t){gk(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var xo=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},xa=class extends Error{constructor(){super("SkipAnimationSignal")}},xs=e=>e instanceof xu,xl=1,xu=class extends yt{constructor(){super(...arguments),this.id=xl++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=yO(this);return e&&e.getValue()}to(...e){return v7.to(this,e)}interpolate(...e){return yg(`${ym}The "interpolate" function is deprecated in v9 (use "to" instead)`),v7.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){ye(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||gD.sort(this),ye(this,{type:"priority",parent:this,priority:e})}},xc=Symbol.for("SpringPhase"),xd=e=>(1&e[xc])>0,xf=e=>(2&e[xc])>0,xh=e=>(4&e[xc])>0,xp=(e,t)=>t?e[xc]|=3:e[xc]&=-3,xm=(e,t)=>t?e[xc]|=4:e[xc]&=-5,xv=class extends xu{constructor(e,t){if(super(),this.animation=new y8,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!gx.und(e)||!gx.und(t)){let n=gx.obj(e)?{...e}:{...t,from:e};gx.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(xf(this)||this._state.asyncTo)||xh(this)}get goal(){return g7(this.animation.to)}get velocity(){let e=yO(this);return e instanceof yP?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return xd(this)}get isAnimating(){return xf(this)}get isPaused(){return xh(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=yT(r.to);!a&&g8(r.to)&&(i=gE(g7(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==yN?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,i=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=gx.arr(o.velocity)?o.velocity[l]:o.velocity,f=o.precision||(i==u?.005:Math.min(1,.001*Math.abs(u-i)));if(gx.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*n);d=i+a/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,t=a*r}else{t=null==s.lastVelocity?a:s.lastVelocity;let n=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!gx.und(r),h=i==u?s.v0>0:in)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(t=-t*r,d=u);let e=-(1e-6*o.tension)*(d-u),n=-(.001*o.friction)*t,i=(e+n)/o.mass;t+=1*i,d+=1*t}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(r=(o.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),t=((d=i+o.easing(r)*(u-i))-s.lastPosition)/e,c=1==r}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=yO(this),l=s.getValue();if(t){let e=g7(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return ge.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(xf(this)){let{to:e,config:t}=this.animation;ge.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){let t=this.queue||(this.queue=[]);return t.push(e),this}start(e,t){let n;return gx.und(e)?(n=this.queue||[],this.queue=[]):n=[gx.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>{let t=this._update(e);return t})).then(e=>y9(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),xi(this._state,e&&this._lastCallId),ge.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=gx.obj(n)?n[t]:n)||y0(n))&&(n=void 0),null==(r=gx.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return xd(this)||(e.reverse&&([n,r]=[r,n]),r=g7(r),gx.und(r)?yO(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,yK(e,(e,t)=>/^on/.test(t)?yW(e,n):e)),xj(this,e,"onProps"),xE(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return y7(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{xh(this)||(xm(this,!0),gS(o.pauseQueue),xE(this,"onPause",xt(this,xg(this,this.animation.to)),this))},resume:()=>{xh(this)&&(xm(this,!1),xf(this)&&this._resume(),gS(o.resumeQueue),xE(this,"onResume",xt(this,xg(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=xy(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(xn(this));let r=!gx.und(e.to),i=!gx.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(xn(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||gx.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!gb(d,u);f&&(s.from=d),d=g7(d);let h=!gb(c,l);h&&this._focus(c);let p=y0(t.to),{config:m}=s,{decay:v,velocity:g}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(y5(n={...n},t),t={...n,...t}),y5(e,t),Object.assign(e,t),y4)null==e[r]&&(e[r]=y4[r]);let{frequency:r,damping:i}=e,{mass:o}=e;gx.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,yH(t.config,o),t.config!==a.config?yH(a.config,o):void 0);let y=yO(this);if(!y||gx.und(c))return n(xt(this,!0));let x=gx.und(t.reset)?i&&!t.default:!gx.und(d)&&yU(t.reset,o),b=x?d:this.get(),w=yJ(c),j=gx.num(w)||gx.arr(w)||yx(w),E=!p&&(!j||yU(a.immediate||t.immediate,o));if(h){let e=yz(c);if(e!==y.constructor){if(E)y=this._set(w);else throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let k=y.constructor,S=g8(c),_=!1;if(!S){let e=x||!xd(this)&&f;(h||e)&&(S=!(_=gb(yJ(b),w))),(gb(s.immediate,E)||E)&&gb(m.decay,v)&&gb(m.velocity,g)||(S=!0)}if(_&&xf(this)&&(s.changed&&!x?S=!0:S||this._stop(l)),!p&&((S||g8(l))&&(s.values=y.getPayload(),s.toValues=g8(c)?null:k==yN?[1]:gE(w)),s.immediate==E||(s.immediate=E,E||x||this._set(l)),S)){let{onRest:e}=s;gw(xw,e=>xj(this,t,e));let r=xt(this,xg(this,l));gS(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&ge.batchedUpdates(()=>{s.changed=!x,e?.(r,this),x?yH(a.onRest,r):s.onStart?.(r,this)})}x&&this._set(b),p?n(xr(t.to,t,this._state,this)):S?this._start():xf(this)&&!h?this._pendingCalls.add(n):n(xe(b))}_focus(e){let t=this.animation;e!==t.to&&(g9(this)&&this._detach(),t.to=e,g9(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;g8(t)&&(yr(t,this),xs(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;g8(e)&&yi(e,this)}_set(e,t=!0){let n=g7(e);if(!gx.und(n)){let e=yO(this);if(!e||!gb(n,e.getValue())){let r=yz(n);e&&e.constructor==r?e.setValue(n):yM(this,r.create(n)),e&&ge.batchedUpdates(()=>{this._onChange(n,t)})}}return yO(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,xE(this,"onStart",xt(this,xg(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yH(this.animation.onChange,e,this)),yH(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;yO(this).reset(g7(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),xf(this)||(xp(this,!0),xh(this)||this._resume())}_resume(){v7.skipAnimation?this.finish():gD.start(this)}_stop(e,t){if(xf(this)){xp(this,!1);let n=this.animation;gw(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),ye(this,{type:"idle",parent:this});let r=t?xn(this.get()):xt(this.get(),xg(this,e??n.to));gS(this._pendingCalls,r),n.changed&&(n.changed=!1,xE(this,"onRest",r,this))}}};function xg(e,t){let n=yJ(t),r=yJ(e.get());return gb(r,n)}function xy(e,t=e.loop,n=e.to){let r=yH(t);if(r){let i=!0!==r&&yX(r),o=(i||e).reverse,a=!i||i.reset;return xx({...e,loop:t,default:!1,pause:void 0,to:!o||y0(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function xx(e){let{to:t,from:n}=e=yX(e),r=new Set;return gx.obj(t)&&xb(t,r),gx.obj(n)&&xb(n,r),e.keys=r.size?Array.from(r):null,e}function xb(e,t){gj(e,(e,n)=>null!=e&&t.add(n))}var xw=["onStart","onRest","onChange","onPause","onResume"];function xj(e,t,n){e.animation[n]=t[n]!==yq(t,n)?yW(t[n],e.key):void 0}function xE(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var xk=["onStart","onChange","onRest"],xS=1,x_=class{constructor(e,t){this.id=xS++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];gx.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(xx(e)),this}start(e){let{queue:t}=this;return(e?t=gE(e).map(xx):this.queue=[],this._flush)?this._flush(this,t):(xN(this,t),xC(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;gw(gE(t),t=>n[t].stop(!!e))}else xi(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(gx.und(e))this.start({pause:!0});else{let t=this.springs;gw(gE(e),e=>t[e].pause())}return this}resume(e){if(gx.und(e))this.start({pause:!1});else{let t=this.springs;gw(gE(e),e=>t[e].resume())}return this}each(e){gj(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,gk(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&gk(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,gk(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}ge.onFrame(this._onFrame)}};function xC(e,t){return Promise.all(t.map(t=>xO(e,t))).then(t=>y9(e,t))}async function xO(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=gx.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=gx.arr(i)||gx.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):gw(xk,n=>{let r=t[n];if(gx.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,gS(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===yq(t,"cancel");(c||h&&d.asyncId)&&f.push(y7(++e._lastAsyncId,{props:t,state:d,actions:{pause:gg,resume:gg,start(t,n){h?(xi(d,e._lastAsyncId),n(xn(e))):(t.onRest=s,n(xr(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=y9(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=xy(t,a,i);if(n)return xN(e,[n]),xO(e,n,!0)}return l&&ge.batchedUpdates(()=>l(p,e,e.item)),p}function xM(e,t){let n={...e.springs};return t&&gw(gE(t),e=>{gx.und(e.keys)&&(e=xx(e)),gx.obj(e.to)||(e={...e,to:void 0}),xP(n,e,e=>xA(e))}),xT(e,n),n}function xT(e,t){gj(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,yr(t,e))})}function xA(e,t){let n=new xv;return n.key=e,t&&yr(n,t),n}function xP(e,t,n){t.keys&&gw(t.keys,r=>{let i=e[r]||(e[r]=n(r));i._prepareNode(t)})}function xN(e,t){gw(t,t=>{xP(e.springs,t,t=>xA(t,e))})}var xR=({children:e,...t})=>{let n=(0,x.useContext)(xD),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,x.useState)(()=>({inputs:t,result:e()})),r=(0,x.useRef)(),i=r.current,o=i;if(o){let n=!!(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=xD;return x.createElement(o,{value:t},e)},xD=(Object.assign(xR,x.createContext({})),xR.Provider._context=xR,xR.Consumer._context=xR,xR);xR.Provider=xD.Provider,xR.Consumer=xD.Consumer;var xL=()=>{let e=[],t=function(t){yy(`${ym}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let r=[];return gw(e,(e,i)=>{if(gx.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return gw(e,e=>e.pause(...arguments)),this},t.resume=function(){return gw(e,e=>e.resume(...arguments)),this},t.set=function(t){gw(e,(e,n)=>{let r=gx.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return gw(e,(e,r)=>{if(gx.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return gw(e,e=>e.stop(...arguments)),this},t.update=function(t){return gw(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return gx.fun(e)?e(n,t):e};return t._getProps=n,t};function xF(e,t){let n=gx.fun(e),[[r],i]=function(e,t,n){let r=gx.fun(t)&&t;r&&!n&&(n=[]);let i=(0,x.useMemo)(()=>r||3==arguments.length?xL():void 0,[]),o=(0,x.useRef)(0),a=yj(),s=(0,x.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=xM(e,t),r=o.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t]);return r?xC(e,t):new Promise(r=>{xT(e,n),s.queue.push(()=>{r(xC(e,t))}),a()})}}),[]),l=(0,x.useRef)([...s.ctrls]),u=[],c=yS(e)||0;function d(e,n){for(let i=e;i{gw(l.current.slice(e,c),e=>{y1(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,x.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>xM(e,u[t])),h=(0,x.useContext)(xR),p=yS(h),m=h!==p&&yQ(h);yb(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],gw(e,e=>e())),gw(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(y2(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),yE(()=>()=>{gw(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function xz(e,t,n){let r=gx.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,x.useMemo)(()=>r||3==arguments.length?xL():void 0,[]),h=gE(e),p=[],m=(0,x.useRef)(null),v=i?null:m.current;yb(()=>{m.current=p}),yE(()=>(gw(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{gw(m.current,e=>{e.expired&&clearTimeout(e.expirationId),y1(e.ctrl,f),e.ctrl.stop(!0)})}));let g=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):xV++})}return gx.und(n)?e:gx.fun(n)?e.map(n):gE(n)}(h,r?r():t,v),y=i&&m.current||[];yb(()=>gw(y,({ctrl:e,item:t,key:n})=>{y1(e,f),yH(u,t,n)}));let b=[];if(v&&gw(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=g.indexOf(e.key))&&(p[t]=e)}),gw(h,(e,t)=>{p[t]||(p[t]={key:g[t],item:e,phase:"mount",ctrl:new x_},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;gw(b,(t,r)=>{let i=v[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}gx.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let w=-a,j=yj(),E=yK(t),k=new Map,S=(0,x.useRef)(new Map),_=(0,x.useRef)(!1);gw(p,(e,n)=>{let i,o;let u=e.key,f=e.phase,h=r?r():t,p=yH(h.delay||0,u);if("mount"==f)i=h.enter,o="enter";else{let e=0>g.indexOf(u);if("leave"!=f){if(e)i=h.leave,o="leave";else{if(!(i=h.update))return;o="update"}}else{if(e)return;i=h.enter,o="enter"}}if(i=yH(i,e.item,n),!(i=gx.obj(i)?yX(i):{to:i}).config){let t=d||E.config;i.config=yH(t,e.item,n,o)}w+=a;let y={...E,delay:p+w,ref:c,immediate:h.immediate,reset:!1,...i};if("enter"==o&&gx.und(y.from)){let i=r?r():t,o=gx.und(i.initial)||v?i.from:i.initial;y.from=yH(o,e.item,n)}let{onResolve:x}=y;y.onResolve=e=>{yH(x,e);let t=m.current,n=t.find(e=>e.key===u);if(n){if(e.cancelled&&"update"!=n.phase)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=yH(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(j,r));return}}}e&&t.some(e=>e.expired)&&(S.current.delete(n),l&&(_.current=!0),j())}}};let b=xM(e.ctrl,y);"leave"===o&&l?S.current.set(e,{phase:o,springs:b,payload:y}):k.set(e,{phase:o,springs:b,payload:y})});let C=(0,x.useContext)(xR),O=yS(C),M=C!==O&&yQ(C);yb(()=>{M&&gw(p,e=>{e.ctrl.start({default:C})})},[C]),gw(k,(e,t)=>{if(S.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),yb(()=>{gw(S.current.size?S.current:k,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),M&&"enter"==e&&r.start({default:C}),t&&(y2(r,t.ref),(r.ref||f)&&!_.current?r.update(t):(r.start(t),_.current&&(_.current=!1)))})},i?void 0:n);let T=e=>x.createElement(x.Fragment,null,p.map((t,n)=>{let{springs:r}=k.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?x.createElement(i.type,{...i.props,key:gx.str(t.key)||gx.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[T,f]:T}var xV=1,xI=class extends xu{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=g3(...t);let n=this._get(),r=yz(n);yM(this,r.create(n))}advance(e){let t=this._get(),n=this.get();gb(t,n)||(yO(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&xB(this._active)&&xH(this)}_get(){let e=gx.arr(this.source)?this.source.map(g7):gE(g7(this.source));return this.calc(...e)}_start(){this.idle&&!xB(this._active)&&(this.idle=!1,gw(yT(this),e=>{e.done=!1}),v7.skipAnimation?(ge.batchedUpdates(()=>this.advance()),xH(this)):gD.start(this))}_attach(){let e=1;gw(gE(this.source),t=>{g8(t)&&yr(t,this),xs(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){gw(gE(this.source),e=>{g8(e)&&yi(e,this)}),this._active.clear(),xH(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=gE(this.source).reduce((e,t)=>Math.max(e,(xs(t)?t.priority:0)+1),0))}};function xZ(e){return!1!==e.idle}function xB(e){return!e.size||Array.from(e).every(xZ)}function xH(e){e.idle||(e.idle=!0,gw(yT(e),e=>{e.done=!0}),ye(e,{type:"idle",parent:e}))}var xU=(e,...t)=>new xI(e,t);v7.assign({createStringInterpolator:yp,to:(e,t)=>new xI(e,t)}),gD.advance;var xW=/^--/,xq={},x$={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xK=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),xY=["Webkit","Ms","Moz","O"];x$=Object.keys(x$).reduce((e,t)=>(xY.forEach(n=>e[xK(n,t)]=e[t]),e),x$);var xG=/^(matrix|translate|scale|rotate|skew)/,xX=/^(translate)/,xJ=/^(rotate|skew)/,xQ=(e,t)=>gx.num(e)&&0!==e?e+t:e,x0=(e,t)=>gx.arr(e)?e.every(e=>x0(e,t)):gx.num(e)?e===t:parseFloat(e)===t,x1=class extends yD{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>xQ(e,"px")).join(",")})`,x0(e,0)])),gj(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(xG.test(t)){if(delete r[t],gx.und(e))return;let n=xX.test(t)?"px":xJ.test(t)?"deg":"";i.push(gE(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${xQ(i,n)})`,x0(i,0)]:e=>[`${t}(${e.map(e=>xQ(e,n)).join(",")})`,x0(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new x2(i,o)),super(r)}},x2=class extends yt{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return gw(this.inputs,(n,r)=>{let i=g7(n[0]),[o,a]=this.transforms[r](gx.arr(i)?i:n.map(g7));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&gw(this.inputs,e=>gw(e,e=>g8(e)&&yr(e,this)))}observerRemoved(e){0==e&&gw(this.inputs,e=>gw(e,e=>g8(e)&&yi(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),ye(this,e)}};v7.assign({batchedUpdates:to.unstable_batchedUpdates,createStringInterpolator:yp,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var x4=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new yD(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=yB(e)||"Anonymous";return(e=gx.str(e)?o[e]||(o[e]=yV(e,i)):e[yZ]||(e[yZ]=yV(e,i))).displayName=`Animated(${t})`,e};return gj(e,(t,n)=>{gx.arr(e)&&(n=yB(t)),o[n]=o(t)}),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:xq[t]||(xq[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||xW.test(t)||x$.hasOwnProperty(t)&&x$[t]?(""+d).trim():d+"px";xW.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new x1(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,x3=n(23442),x5=(0,x.createContext)({});function x6(e){var t=e.x,n=e.y,r=e.dx,i=e.dy,o=e.children,a=(0,x.useMemo)(function(){return{x:t,y:n,dx:r,dy:i}},[t,n,r,i]);return x.createElement(x5.Provider,{value:a},o)}function x8(){return(x8=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,br),p=(0,x.useContext)(be)||{},m=p.innerHeight,v=p.innerWidth,g=p.margin,y=p.xScale,b=p.yScale,w=p.dataRegistry,j=(0,x.useMemo)(function(){return y?bt(y):0},[y]),E=(0,x.useMemo)(function(){return b?bt(b):0},[b]);if((!s||!l)&&!a)return console.warn("[@visx/xychart/BaseAnnotation]: dataKey or x/yAccessors must be specified."),null;var k=s&&l||null==a?null:null==w?void 0:w.get(a),S=s||(null==k?void 0:k.xAccessor),_=l||(null==k?void 0:k.yAccessor);if(!y||!b||!v||!m||!S||!_||!g)return null;var C=(null!=(t=(0,p4.Z)(y(S(o))))?t:NaN)+j/2,O=(null!=(n=(0,p4.Z)(b(_(o))))?n:NaN)+E/2,M=C+c+16>g.left+v?-c:c,T=O+f+16>g.top+m?-f:f;return bn(C)&&bn(O)?x.createElement(r,bi({width:v,height:m},h,{x:C,y:O,dx:M,dy:T}),i):null}bo.propTypes={dataKey:pG().string,xAccessor:pG().func,yAccessor:pG().func};var ba=["x","y","AnnotationComponent"],bs=["editable"];function bl(){return(bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function bc(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,o=e.AnnotationComponent,a=bu(e,ba),s=(0,x.useRef)({x:n,y:i}),l=xF({from:{x:s.current.x-n,y:s.current.y-i},to:{x:0,y:0},reset:!0});return(0,x.useEffect)(function(){s.current={x:n,y:i}},[n,i]),x.createElement(x4.g,{transform:xU([l.x,l.y],function(e,t){return"translate("+e+", "+t+")"})},x.createElement(o,bl({x:n,y:i},a)))}function bd(e){var t=e.editable,n=bu(e,bs),r=(0,x.useCallback)(function(e){return x.createElement(bc,bl({AnnotationComponent:t?x9:x6},e))},[t]);return x.createElement(bo,bl({AnnotationComponent:r},n))}bd.propTypes={editable:pG().bool};var bf=n(12766),bh=n(54073),bp=n.n(bh),bm=["d","stroke","fill"];function bv(){return(bv=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,bm),o=(0,x.useRef)(t),a=(0,x.useCallback)(bp()(function(e){o.current=e},50),[]),s=(0,bf.interpolatePath)(o.current,t);a(t);var l=xF({from:{t:0},to:{t:1},reset:!0,delay:0}).t,u=xF({stroke:void 0===n?"transparent":n,fill:void 0===r?"transparent":r});return x.createElement(x4.path,bv({className:"visx-path",d:l.to(s),stroke:u.stroke,fill:u.fill},i))}var by=n(12935),bx=n(12151);function bb(){return(bb=Object.assign?Object.assign.bind():function(e){for(var t=1;tt?1:e>=t?0:NaN}function bA(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>bT(e(t),n)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}let bP=bA(bT);bP.right;let bN=bP.left;function bR(e){var t,n,r=e.scale,i=e.accessor,o=e.scaledValue,a=e.data;if("invert"in r&&"function"==typeof r.invert){var s=bA(i).left,l=Number(r.invert(o)),u=s(a,l),c=a[u-1],d=a[u];n=(t=!c||Math.abs(l-i(c))>Math.abs(l-i(d))?d:c)===c?u-1:u}else{if(!("step"in r)||void 0===r.step)return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;var f=r.domain(),h=r.range().map(Number),p=[].concat(h).sort(function(e,t){return e-t}),m=bN(function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=Array(i);++r=0||(i[n]=e[n]);return i}(e,bq),C=(0,x.useContext)(be),O=C.colorScale,M=C.theme,T=C.horizontal,A=(0,x.useMemo)(function(){return w?bj(j,w):void 0},[j,w]),P=(0,x.useMemo)(function(){return bj(j,b)},[j,b]),N=(0,x.useMemo)(function(){return k?bj(S,k):void 0},[S,k]),R=(0,x.useMemo)(function(){return bj(S,E)},[S,E]),D=(0,x.useCallback)(function(e){return bn(j(b(e)))&&bn(S(E(e)))},[j,b,S,E]),L=null!=(t=null!=(n=null==O?void 0:O(l))?n:null==M?void 0:null==(r=M.colors)?void 0:r[0])?t:"#222",F="AREASERIES_EVENT_SOURCE-"+l,z=bZ({dataKey:l,enableEvents:void 0===v||v,onBlur:c,onFocus:d,onPointerMove:f,onPointerOut:h,onPointerUp:p,onPointerDown:m,source:F,allowedSources:[bk,F]}),V=(0,x.useMemo)(function(){var e=bE(T?j:S);return T?{x0:null!=A?A:e,x1:P,y:R}:{x:P,y0:null!=N?N:e,y1:R}},[j,S,T,P,R,A,N]),I=!!(d||c),Z=(0,x.useCallback)(function(e){var t=e.glyphs;return I?t.map(function(e){return x.createElement(x.Fragment,{key:e.key},bW(b$({},e,{color:"transparent",onFocus:z.onFocus,onBlur:z.onBlur})))}):null},[I,z.onFocus,z.onBlur]);return x.createElement(x.Fragment,null,x.createElement(by.Z,b$({},V,_,{curve:a,defined:D}),function(e){var t=e.path;return x.createElement(o,b$({className:"visx-area",stroke:"transparent",fill:L,strokeLinecap:"round"},_,{d:t(s)||""},z))}),y&&x.createElement(bx.Z,b$({x:P,y:R,defined:D,curve:a},u),function(e){var t=e.path;return x.createElement(o,b$({className:"visx-line",fill:"transparent",stroke:L,strokeWidth:2,pointerEvents:"none",strokeLinecap:"round"},u,{d:t(s)||""}))}),I&&x.createElement(bH,{dataKey:l,data:s,xAccessor:b,yAccessor:E,xScale:j,yScale:S,renderGlyphs:Z}))}bK.propTypes={renderLine:pG().bool};var bY=bw(bK);function bG(){return(bG=Object.assign?Object.assign.bind():function(e){for(var t=1;t1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o=0;)n[t]=t;return n}function b4(e,t){return e[t]}function b3(e){let t=[];return t.key=e,t}Array.prototype.slice;var b5=n(74322),b6=n(58543);function b8(e,t){let n,r;if(void 0===t)for(let t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r=0?"positiveSum":"negativeSum"]+=i})}}),Object.values(e)},[o,l]),d=(0,x.useMemo)(function(){var e=r?null:c.some(function(e){return e.negativeSum<0}),t=function(){var e=b0([]),t=b2,n=b1,r=b4;function i(i){var o,a,s,l=Array.from(e.apply(this,arguments),b3),u=l.length,c=-1;for(let e of i)for(a=0,++c;a0&&0===r&&(o?i.xScale=function(e){return e.domain(b8(e.domain().concat(f)))}:i.yScale=function(e){return e.domain(b8(e.domain().concat(f)))}),i}).filter(function(e){return e}))),function(){return s(u)}},[u,f,o,d,a,s,l]),{seriesChildren:l,dataKeys:u,stackedData:d}}function wr(e,t,n){var r,i,o,a,s=e.xScale,l=e.yScale,u=e.point,c=(n?bL:bD)(e),d=(null==c?void 0:c.index)==null?null:t[c.index];return c&&d&&u?{index:c.index,datum:d,distanceX:n&&u.x>=(null!=(r=s((0,bQ.l8)(c.datum)))?r:1/0)&&u.x<=(null!=(i=s((0,bQ.xf)(c.datum)))?i:-1/0)?0:c.distanceX,distanceY:n?c.distanceY:u.y<=(null!=(o=l((0,bQ.l8)(c.datum)))?o:-1/0)&&u.y>=(null!=(a=l((0,bQ.xf)(c.datum)))?a:1/0)?0:c.distanceY}:null}var wi=["data","dataKey","xAccessor","yAccessor","curve","PathComponent","lineProps","renderLine"];function wo(){return(wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(a,wi)),u=wo({fill:null!=(n=null!=(r=null==g?void 0:g(e.key))?r:null==E?void 0:null==(i=E.colors)?void 0:i[0])?n:"#222"},l);return{key:t+"-"+e.key,accessors:O,data:e,areaProps:u,lineProps:s}})},[C,O,g,_,E]),T=(0,x.useCallback)(function(e){var t,n,r=null==(t=_.find(function(t){return t.props.dataKey===e.dataKey}))?void 0:null==(n=t.props)?void 0:n.data;return r?wr(e,r,b):null},[_,b]),A="AREASTACK_EVENT_SOURCE-"+S.join("-"),P=bZ({dataKey:S,enableEvents:void 0===o||o,findNearestDatum:T,onBlur:s,onFocus:l,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,source:A,allowedSources:[bk,A]}),N=!!(l||s),R=(0,x.useCallback)(function(e){var t=e.glyphs;return N?t.map(function(e){return x.createElement(x.Fragment,{key:e.key},bW(wo({},e,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur})))}):null},[N,P.onFocus,P.onBlur]);return!S.some(function(e){return null==y.get(e)})&&w&&j&&g?x.createElement("g",{className:"visx-area-stack"},M.map(function(e){return x.createElement(by.Z,wo({key:e.key,curve:i},e.accessors),function(t){var r=t.path;return x.createElement(n,wo({className:"visx-area",stroke:"transparent",d:r(e.data)||""},e.areaProps,P))})}),m&&M.map(function(e){return x.createElement(bJ.Z,wo({key:"line-"+e.key,x:e.accessors.x||e.accessors.x1,y:e.accessors.y||e.accessors.y1,defined:e.accessors.defined,curve:i},e.lineProps),function(t){var r=t.path;return x.createElement(n,wo({className:"visx-line",fill:"transparent",stroke:e.areaProps.fill,strokeWidth:2,pointerEvents:"none"},e.lineProps,{d:r(e.data)||""}))})}),N&&M.map(function(e,t){var n=M[M.length-t-1];return x.createElement(bH,{key:"glyphs-"+n.key,dataKey:n.key,data:n.data,xAccessor:n.accessors.x||n.accessors.x1,yAccessor:n.accessors.y||n.accessors.y1,xScale:wa,yScale:wa,renderGlyphs:R})})):null}function wl(){return(wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wd),c=(0,x.useContext)(be),d=c.theme,f=c.xScale,h=c.yScale,p=c.margin,m=c.width,v=c.height,g=u.orientation,y=(0,x.useMemo)(function(){var e,t,n,r;return"left"===g||"right"===g?null==d?void 0:null==(e=d.axisStyles)?void 0:null==(t=e.y)?void 0:t[g]:null==d?void 0:null==(n=d.axisStyles)?void 0:null==(r=n.x)?void 0:r[g]},[d,g]),b=u.tickLabelProps,w=(0,x.useMemo)(function(){return b||y?function(e,t,n){return wf({},null==y?void 0:y.tickLabel,{width:"left"===g||"right"===g?null==p?void 0:p[g]:void 0},null==b?void 0:b(e,t,n))}:void 0},[b,y,g,p]),j="bottom"===g?(null!=v?v:0)-(null!=(t=null==p?void 0:p.bottom)?t:0):"top"===g&&null!=(n=null==p?void 0:p.top)?n:0,E="left"===g?null!=(r=null==p?void 0:p.left)?r:0:"right"===g?(null!=m?m:0)-(null!=(i=null==p?void 0:p.right)?i:0):0,k="left"===g||"right"===g?h:f;return k?x.createElement(l,wf({top:j,left:E,labelProps:null==y?void 0:y.axisLabel,stroke:null==y?void 0:null==(o=y.axisLine)?void 0:o.stroke,strokeWidth:null==y?void 0:null==(a=y.axisLine)?void 0:a.strokeWidth,tickLength:null==y?void 0:y.tickLength,tickStroke:null==y?void 0:null==(s=y.tickLine)?void 0:s.stroke},u,{tickLabelProps:w,scale:k})):null}function wp(){return(wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=h&&l.y<=p;return wg({},u,{distanceX:0,distanceY:m?0:Math.abs(l.y-(h+p)/2)})}var v=a(i(u.datum)),g=(null!=v?v:1/0)+(null!=c?c:1/0),y=g+d,x=l.x>=g&&l.x<=y;return wg({},u,{distanceY:0,distanceX:x?0:Math.abs(l.x-(g+y)/2)})}(e,k,v)},[k,v]),_="BARGROUP_EVENT_SOURCE-"+E.join("-")+"}",C=bZ({dataKey:E,enableEvents:void 0===f||f,findNearestDatum:S,onBlur:a,onFocus:s,onPointerMove:l,onPointerOut:u,onPointerUp:c,onPointerDown:d,source:_,allowedSources:[bk,_]}),O=(0,x.useMemo)(function(){return b?bE(b):0},[b]),M=(0,x.useMemo)(function(){return w?bE(w):0},[w]),T=E.map(function(e){return m.get(e)});if(T.some(function(e){return null==e})||!b||!w||!p)return null;var A=bt(k),P=T.map(function(e){var t,n=e.xAccessor,r=e.yAccessor,i=e.data,o=e.key,a=function(e){var t,i;return v?(null!=(t=b(n(e)))?t:NaN)-O:(null!=(i=w(r(e)))?i:NaN)-M},s=v?function(e){var t;return null!=(t=w(r(e)))?t:NaN}:function(e){var t;return null!=(t=b(n(e)))?t:NaN},l=null!=(t=k(o))?t:0,u=v?function(e){return O+Math.min(0,a(e))}:function(e){return s(e)+l},c=v?function(e){return s(e)+l}:function(e){return M+Math.min(0,a(e))},d=v?function(e){return Math.abs(a(e))}:function(){return A},f=v?function(){return A}:function(e){return Math.abs(a(e))},h=j.find(function(e){return e.props.dataKey===o}),m=(null==h?void 0:h.props)||{},g=m.colorAccessor;return{key:o,radius:m.radius,radiusAll:m.radiusAll,radiusBottom:m.radiusBottom,radiusLeft:m.radiusLeft,radiusRight:m.radiusRight,radiusTop:m.radiusTop,bars:i.map(function(e,t){var n,r=u(e);if(!bn(r))return null;var i=c(e);if(!bn(i))return null;var a=d(e);if(!bn(a))return null;var s=f(e);return bn(s)?{key:o+"-"+t,x:r,y:i,width:a,height:s,fill:null!=(n=null==g?void 0:g(e,t))?n:p(o)}:null}).filter(function(e){return e})}});return x.createElement("g",{className:"visx-bar-group"},P.map(function(e){return e&&x.createElement(o,wy({horizontal:v,xScale:b,yScale:w},e,C,{key:e.key}))}))}wx.propTypes={children:pG().node.isRequired,padding:pG().number,sortBars:pG().func};var wb=n(10897),ww=function(e){return!!(null==e?void 0:e.includes("url("))},wj=function(e){return ww(e)?"rgba(0,0,0,0.1)":e},wE=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"],wk=["bars","xScale","yScale","horizontal","radius","radiusAll","radiusTop","radiusRight","radiusBottom","radiusLeft"];function wS(){return(wS=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function wC(e){return{x:e.x,y:e.y,width:e.width,height:e.height,fill:wj(e.fill),opacity:1}}function wO(e){var t=e.bars,n=(e.xScale,e.yScale,e.horizontal,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=w_(e,wE);return x.createElement(x.Fragment,null,t.map(function(e){var t=e.key,u=e.fill,c=e.x,d=e.y,f=e.width,h=e.height;return x.createElement(wb.Z,{key:t,x:c,y:d,width:f,height:h,radius:n,all:r,top:i,right:o,bottom:a,left:s},function(e){var t=e.path;return x.createElement(bg,wS({className:"visx-bar visx-bar-rounded",d:t,fill:u},l))})}))}function wM(e){var t,n,r,i=e.bars,o=e.xScale,a=e.yScale,s=e.horizontal,l=(e.radius,e.radiusAll,e.radiusTop,e.radiusRight,e.radiusBottom,e.radiusLeft,w_(e,wk)),u=xz(i,wS({},(n=(t={horizontal:s,scale:s?o:a}).scale,r=!!t.horizontal,(0,x.useMemo)(function(){var e=bE(n);function t(t){var n=t.x,i=t.y,o=t.width,a=t.height;return{x:r?null!=e?e:0:n,y:r?i:null!=e?e:0,width:r?0:o,height:r?a:0,fill:wj(t.fill),opacity:0}}return{unique:!0,from:t,leave:t,enter:wC,update:wC,keys:function(e){return e.key}}},[n,r])))),c=!!(l.onFocus||l.onBlur);return x.createElement(x.Fragment,null,u(function(e,t,n){var r=e.x,i=e.y,o=e.width,a=e.height,s=e.fill,u=e.opacity,d=n.key;return null==t||null==d?null:x.createElement(x4.rect,wS({key:d,tabIndex:c?0:void 0,className:"visx-bar",x:r,y:i,width:o,height:a,fill:ww(t.fill)?t.fill:s,opacity:u},l))}))}function wT(e){return null==e.radius?x.createElement(wM,e):x.createElement(wO,wS({},e,{radius:e.radius}))}function wA(){return(wA=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wN),j=(0,x.useContext)(be),E=j.colorScale,k=j.horizontal,S=j.theme,_=j.innerWidth,C=j.innerHeight,O=(0,x.useMemo)(function(){return bj(g,v)},[g,v]),M=(0,x.useMemo)(function(){return bj(b,y)},[b,y]),T=bt(k?b:g)||(k?void 0===C?0:C:void 0===_?0:_)/s.length*(1-Math.min(1,Math.max(0,void 0===o?.1:o))),A=(0,x.useMemo)(function(){return g?bE(g):0},[g]),P=(0,x.useMemo)(function(){return b?bE(b):0},[b]),N=null!=(t=null!=(n=null==E?void 0:E(l))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",R=(0,x.useMemo)(function(){var e=k?0:-T/2,t=k?-T/2:0;return s.map(function(n,r){var i,o=O(n)+e;if(!bn(o))return null;var s=M(n)+t;if(!bn(s))return null;var l=k?o-A:s-P;return bn(l)?{key:""+r,x:k?A+Math.min(0,l):o,y:k?s:P+Math.min(0,l),width:k?Math.abs(l):T,height:k?T:Math.abs(l),fill:null!=(i=null==a?void 0:a(n,r))?i:N}:null}).filter(function(e){return e})},[T,N,a,s,O,M,k,A,P]),D="BARSERIES_EVENT_SOURCE-"+l,L=bZ({dataKey:l,enableEvents:void 0===m||m,onBlur:u,onFocus:c,onPointerMove:d,onPointerOut:f,onPointerUp:h,onPointerDown:p,source:D,allowedSources:[bk,D]});return x.createElement("g",{className:"vx-bar-series"},x.createElement(i,wR({bars:R,horizontal:k,xScale:g,yScale:b},L,w)))}wD.propTypes={barPadding:pG().number,colorAccessor:pG().func};var wL=bw(wD),wF=["colorAccessor"];function wz(){return(wz=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wF);return x.createElement(wL,wz({},n,{colorAccessor:t,BarsComponent:wT}))}var wI=n(15590);function wZ(){return(wZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w$),i=(0,x.useCallback)(function(e){return x.createElement(wq,wK({},e,{renderGlyph:n}))},[n]);return x.createElement(bU,wK({},r,{renderGlyphs:i}))}var wG=n(93353),wX=n(63962),wJ=["rows","columns","GridRowsComponent","GridColumnsComponent"];function wQ(){return(wQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,wJ),l=(0,x.useContext)(be),u=l.theme,c=l.xScale,d=l.yScale,f=l.margin,h=l.innerWidth,p=l.innerHeight,m=null==u?void 0:u.gridStyles;return x.createElement(x.Fragment,null,n&&d&&null!=h&&x.createElement(o,wQ({left:null==f?void 0:f.left,lineStyle:m,width:h,scale:d},s)),i&&c&&null!=p&&x.createElement(a,wQ({top:null==f?void 0:f.top,lineStyle:m,height:p,scale:c},s)))}w0.propTypes={rows:pG().bool,columns:pG().bool};var w1=["animationTrajectory"];function w2(){return(w2=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w1),r=(0,x.useMemo)(function(){return function(e){return x.createElement(wG.Z,w2({},e,{animationTrajectory:t}))}},[t]),i=(0,x.useMemo)(function(){return function(e){return x.createElement(wX.Z,w2({},e,{animationTrajectory:t}))}},[t]);return x.createElement(w0,w2({GridRowsComponent:r,GridColumnsComponent:i},n))}var w3=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function w5(){return(w5=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,w3),E=(0,x.useContext)(be),k=E.colorScale,S=E.theme,_=(0,x.useMemo)(function(){return bj(v,m)},[v,m]),C=(0,x.useMemo)(function(){return bj(y,g)},[y,g]),O=(0,x.useCallback)(function(e){return bn(v(m(e)))&&bn(y(g(e)))},[v,m,y,g]),M=null!=(t=null!=(n=null==k?void 0:k(s))?n:null==S?void 0:null==(r=S.colors)?void 0:r[0])?t:"#222",T="LINESERIES_EVENT_SOURCE-"+s,A=bZ({dataKey:s,enableEvents:void 0===p||p,onBlur:l,onFocus:u,onPointerMove:c,onPointerOut:d,onPointerUp:f,onPointerDown:h,source:T,allowedSources:[bk,T]}),P=!!(u||l),N=(0,x.useCallback)(function(e){var t=e.glyphs;return P?t.map(function(e){return x.createElement(x.Fragment,{key:e.key},bW(w5({},e,{color:"transparent",onFocus:A.onFocus,onBlur:A.onBlur})))}):null},[P,A.onFocus,A.onBlur]);return x.createElement(x.Fragment,null,x.createElement(bx.Z,w5({x:_,y:C,defined:O,curve:o},j),function(e){var t,n=e.path;return x.createElement(w,w5({stroke:null!=(t=null==i?void 0:i(s))?t:M,strokeWidth:2,fill:"transparent",strokeLinecap:"round"},j,{d:n(a)||""},A))}),P&&x.createElement(bH,{dataKey:s,data:a,xAccessor:m,yAccessor:g,xScale:v,yScale:y,renderGlyphs:N}))}w6.propTypes={colorAccessor:pG().func};var w8=bw(w6);function w7(){return(w7=Object.assign?Object.assign.bind():function(e){for(var t=1;tjn.every(n=>e[n]===t[n]);function ji(e,t){return(ji=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var jo=function(e){function t(){return e.apply(this,arguments)||this}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,ji(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return(this.node||"undefined"==typeof document||(this.node=document.createElement("div"),null!=this.props.zIndex&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node)?to.createPortal(this.props.children,this.node):null},t}(x.PureComponent);jo.propTypes={zIndex:pG().oneOfType([pG().number,pG().string])};var ja=["detectBounds","zIndex"],js=["left","top","detectBounds","zIndex"];function jl(){return(jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var jc=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],jd=["x","y"];function jf(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function jh(){return(jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t(f.current=!0,()=>void(f.current=!1)));let[h,p,m]=(0,x.useMemo)(()=>{let e=()=>{if(!u.current.element)return;let{left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c}=u.current.element.getBoundingClientRect(),d={left:e,top:t,width:n,height:r,bottom:i,right:a,x:s,y:c};u.current.element instanceof HTMLElement&&o&&(d.height=u.current.element.offsetHeight,d.width=u.current.element.offsetWidth),Object.freeze(d),f.current&&!jr(u.current.lastBounds,d)&&l(u.current.lastBounds=d)};return[e,d?jt()(e,d):e,c?jt()(e,c):e]},[l,o,c,d]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(e=>e.removeEventListener("scroll",m,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){u.current.element&&(u.current.resizeObserver=new a(m),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(e=>e.addEventListener("scroll",m,{capture:!0,passive:!0})))}return t=!!r,(0,x.useEffect)(()=>{if(t)return window.addEventListener("scroll",m,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",m,!0)},[m,t]),(0,x.useEffect)(()=>(window.addEventListener("resize",p),()=>void window.removeEventListener("resize",p)),[p]),(0,x.useEffect)(()=>{v(),g()},[r,m,p]),(0,x.useEffect)(()=>v,[]),[e=>{e&&e!==u.current.element&&(v(),u.current.element=e,u.current.scrollContainers=function e(t){let n=[];if(!t||t===document.body)return n;let{overflow:r,overflowX:i,overflowY:o}=window.getComputedStyle(t);return[r,i,o].some(e=>"auto"===e||"scroll"===e)&&n.push(t),[...n,...e(t.parentElement)]}(e),g())},s,h]}(ju(ei,ja)))[0],ec=el[1],ed=el[2],ef=(0,x.useMemo)(function(){return function(e){var t=e.left,n=e.top,r=e.detectBounds,i=e.zIndex,o=ju(e,js),a=null==i?es:i,s=(null==r?ea:r)?mb:md,l=(void 0===t?0:t)+(ec.left||0)+window.scrollX,u=(void 0===n?0:n)+(ec.top||0)+window.scrollY;return x.createElement(jo,{zIndex:a},x.createElement(s,jl({left:l,top:u},o)))}},[ea,es,ec.left,ec.top]),{containerRef:eu,containerBounds:ec,forceRefreshBounds:ed,TooltipInPortal:ef}),L=D.containerRef,F=D.TooltipInPortal,z=D.forceRefreshBounds,V=(0,x.useCallback)(function(e){var t;L(null!=(t=null==e?void 0:e.parentElement)?t:null)},[L]),I=null!=R&&R.tooltipOpen?o(jh({},R,{colorScale:_})):null,Z=(null==R?void 0:R.tooltipOpen)&&null!=I,B=(0,x.useRef)(!1);(0,x.useEffect)(function(){Z&&!B.current&&z(),B.current=Z},[Z,z]);var H=null==R?void 0:R.tooltipLeft,U=null==R?void 0:R.tooltipTop,W=A?bt(A):0,q=P?bt(P):0,$=(0,x.useCallback)(function(e,t){var n,r,i=null==N?void 0:N.get(e),o=null==i?void 0:i.xAccessor,a=null==i?void 0:i.yAccessor;return{left:A&&o?null!=(n=Number(A(o(t)))+W/2)?n:0:void 0,top:P&&a?null!=(r=Number(P(a(t)))+q/2)?r:0:void 0}},[N,W,q,A,P]),K=null==R?void 0:null==(eh=R.tooltipData)?void 0:eh.nearestDatum,Y=null!=(ep=null==K?void 0:K.key)?ep:"";if(Z&&K&&(y||w)){var G=$(Y,K.datum),X=G.left,J=G.top;H=y&&bn(X)?X:H,U=w&&bn(J)?J:U}var Q=[];if(Z&&(void 0!==c&&c||p)){var ee=Number(null!=(e_=null==i?void 0:i.radius)?e_:4);if(p)Object.values(null!=(eC=null==R?void 0:null==(eO=R.tooltipData)?void 0:eO.datumByKey)?eC:{}).forEach(function(e){var t,n,r,o=e.key,a=e.datum,s=e.index,l=null!=(t=null!=(n=null==_?void 0:_(o))?n:null==C?void 0:null==(r=C.htmlLabel)?void 0:r.color)?t:"#222",u=$(o,a),c=u.left,d=u.top;bn(c)&&bn(d)&&Q.push({key:o,color:l,datum:a,index:s,size:ee,x:c,y:d,glyphStyle:i,isNearestDatum:!!K&&K.key===o})});else if(K){var et=$(Y,K.datum),en=et.left,er=et.top;if(bn(en)&&bn(er)){var ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,ej,eE,ek,eS,e_,eC,eO,eM,eT,eA,eP,eN,eR,eD=null!=(eM=null!=(eT=null!=(eA=null!=(eP=Y&&(null==_?void 0:_(Y)))?eP:null)?eA:null==C?void 0:null==(eN=C.gridStyles)?void 0:eN.stroke)?eT:null==C?void 0:null==(eR=C.htmlLabel)?void 0:eR.color)?eM:"#222";Q.push({key:Y,color:eD,datum:K.datum,index:K.index,size:ee,x:en,y:er,glyphStyle:i,isNearestDatum:!0})}}}return x.createElement(x.Fragment,null,x.createElement("svg",{ref:V,style:jm}),Z&&x.createElement(x.Fragment,null,v&&x.createElement(F,{className:"visx-crosshair visx-crosshair-vertical",left:H,top:null==T?void 0:T.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jp},x.createElement("svg",{width:"1",height:O,overflow:"visible"},x.createElement("line",jh({x1:0,x2:0,y1:0,y2:O,strokeWidth:1.5,stroke:null!=(em=null!=(ev=null==C?void 0:null==(eg=C.gridStyles)?void 0:eg.stroke)?ev:null==C?void 0:null==(ey=C.htmlLabel)?void 0:ey.color)?em:"#222"},j)))),f&&x.createElement(F,{className:"visx-crosshair visx-crosshair-horizontal",left:null==T?void 0:T.left,top:U,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jp},x.createElement("svg",{width:M,height:"1",overflow:"visible"},x.createElement("line",jh({x1:0,x2:M,y1:0,y2:0,strokeWidth:1.5,stroke:null!=(ex=null!=(eb=null==C?void 0:null==(ew=C.gridStyles)?void 0:ew.stroke)?eb:null==C?void 0:null==(ej=C.htmlLabel)?void 0:ej.color)?ex:"#222"},r)))),Q.map(function(e,t){var n=e.x,r=e.y,i=jf(e,jd);return x.createElement(F,{key:t,className:"visx-tooltip-glyph",left:n,top:r,offsetLeft:0,offsetTop:0,detectBounds:!1,style:jp},x.createElement("svg",{overflow:"visible"},s(jh({x:0,y:0},i))))}),x.createElement(F,jh({left:H,top:U,style:jh({},mc,{background:null!=(eE=null==C?void 0:C.backgroundColor)?eE:"white",boxShadow:"0 1px 2px "+(null!=C&&null!=(ek=C.htmlLabel)&&ek.color?(null==C?void 0:null==(eS=C.htmlLabel)?void 0:eS.color)+"55":"#22222255")},null==C?void 0:C.htmlLabel)},k),I)))}function jx(e){var t=(0,x.useContext)(bS);return null!=t&&t.tooltipOpen?x.createElement(jy,e):null}function jb(e){var t=e.children,n=(0,x.useMemo)(function(){var e;return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get("*")||[]).slice().map(function(e){e(t,n)})}}},[]);return x.createElement(b_.Provider,{value:n},t)}function jw(){return(jw=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(t,ma);return ms({},e(n),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:e.tooltipLeft,tooltipTop:e.tooltipTop,tooltipData:e.tooltipData})},[r]),o=(0,x.useCallback)(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]),{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:o}),c=u.tooltipOpen,d=u.tooltipLeft,f=u.tooltipTop,h=u.tooltipData,p=u.updateTooltip,m=u.hideTooltip,v=(0,x.useRef)(null),g=(0,x.useRef)(function(e){var t=e.svgPoint,n=e.index,r=e.key,i=e.datum,o=e.distanceX,a=e.distanceY;v.current&&(v.current.cancel(),v.current=null);var s=Math.sqrt(Math.pow(bn(o)?o:1/0,2)+Math.pow(bn(a)?a:1/0,2));p(function(e){var o,a,l,u=e.tooltipData,c=null!=u&&u.nearestDatum&&bn(u.nearestDatum.distance)?u.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:null==t?void 0:t.x,tooltipTop:null==t?void 0:t.y,tooltipData:{nearestDatum:(null!=(o=null==u?void 0:null==(a=u.nearestDatum)?void 0:a.key)?o:"")!==r&&c0&&o>0&&y({width:m,height:o,margin:l})},[y,m,o,l]);var j=bO({source:bk});return(bI({dataKey:"nearest"===(void 0===h?"nearest":h)?bV:bz,onPointerMove:u,onPointerOut:c,onPointerUp:d,onPointerDown:f,allowedSources:jD}),y)?null==m||null==o?x.createElement(vA.Z,null,function(t){return x.createElement(jL,jN({},e,{width:null==e.width?t.width:e.width,height:null==e.height?t.height:e.height}))}):null==b?x.createElement(jj,null,x.createElement(jL,e)):null==w?x.createElement(jb,null,x.createElement(jL,e)):m>0&&o>0?x.createElement("svg",{width:m,height:o,"aria-label":void 0===t?"XYChart":t},i,r&&x.createElement("rect",jN({x:l.left,y:l.top,width:m-l.left-l.right,height:o-l.top-l.bottom,fill:"transparent"},j))):null:v&&g?x.createElement(jP,{xScale:v,yScale:g,theme:p,initialDimensions:{width:m,height:o,margin:l},horizontal:a},x.createElement(jL,e)):(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null)}function jF(e){return x.createElement(bY,e)}function jz(e){return x.createElement(ws,e)}function jV(){return(jV=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function jW(e){var t=e.bars,n=(e.horizontal,e.xScale,e.yScale,e.radius),r=e.radiusAll,i=e.radiusTop,o=e.radiusRight,a=e.radiusBottom,s=e.radiusLeft,l=jU(e,jZ),u=!!(l.onFocus||l.onBlur);return x.createElement(x.Fragment,null,t.map(function(e){var t=e.key,c=jU(e,jB);return null==n?x.createElement("rect",jH({key:t,className:"visx-bar",tabIndex:u?0:void 0},c,l)):x.createElement(wb.Z,jH({key:t,className:"visx-bar",tabIndex:u?0:void 0,radius:n,all:r,top:i,right:o,bottom:a,left:s},c,l))}))}function jq(){return(jq=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,jK);return x.createElement(wL,jY({},n,{colorAccessor:t,BarsComponent:jW}))};function jX(){return(jX=Object.assign?Object.assign.bind():function(e){for(var t=1;tr(e),className:"flex flex-col gap-1",children:[(0,y.jsx)(fi,{value:"line",children:"Line"}),(0,y.jsx)(fi,{disabled:f||h,value:"areastack",children:"Area Stack"}),(0,y.jsx)(fi,{disabled:f||h,value:"barstack",children:"Bar Stack"}),(0,y.jsx)(fi,{disabled:f,value:"area",children:"Area"}),(0,y.jsx)(fi,{disabled:f,value:"bargroup",children:"Bar Group"})]})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{weight:"semibold",children:"Stack series offset"}),(0,y.jsxs)(fo,{value:l,onValueChange:e=>u(e),className:"flex flex-col gap-1",children:[(0,y.jsxs)(fi,{disabled:!s,value:"none",children:["Auto",(0,y.jsx)(f0,{children:"zero-baseline"})]}),(0,y.jsxs)(fi,{disabled:!s,value:"expand",children:["Expand",(0,y.jsx)(f0,{children:"values sum to 1"})]}),(0,y.jsxs)(fi,{disabled:!s,value:"wiggle",children:["Wiggle",(0,y.jsx)(f0,{children:"stream graph"})]})]})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{weight:"semibold",children:"Curve shape"}),(0,y.jsxs)(fo,{value:i,onValueChange:e=>o(e),className:"flex flex-col gap-1",children:[(0,y.jsx)(fi,{disabled:!a,value:"linear",children:"Linear"}),(0,y.jsx)(fi,{disabled:!a,value:"cardinal",children:"Cardinal"}),(0,y.jsx)(fi,{disabled:!a,value:"step",children:"Step"})]})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{weight:"semibold",children:"Axes"}),(0,y.jsx)("div",{className:"flex flex-col gap-6",children:(0,y.jsxs)(fo,{value:c,onValueChange:e=>d(e),className:"flex flex-col gap-1",children:[(0,y.jsx)(fi,{value:"bottom",children:"Bottom"}),(0,y.jsx)(fi,{value:"top",children:"Top"})]})})]})]})})}let Eu=(0,x.forwardRef)((e,t)=>{let{className:n}=e;return(0,y.jsxs)("div",{ref:t,className:(0,em.cx)("flex gap-1 items-center",n),children:[(0,y.jsx)(Ec,{}),(0,y.jsx)(Ec,{}),(0,y.jsx)(Ec,{})]})});function Ec(){return(0,y.jsx)("div",{className:"w-1 h-1 bg-slate-400 dark:bg-slate-200 rounded-full animate-pulselight [&:nth-child(2)]:animation-delay-500 [&:nth-child(3)]:animation-delay-1000"})}function Ed(e){let{id:t,height:n,data:r,config:i,actionsLeft:o,isLoading:a,actionsRight:s,chartType:l="areastack",curveType:u="linear",stackOffset:c="none",variant:d="panel",allowConfiguration:f=!0}=e,h=function(e,t,n,r,i,o){let a=(0,x.useMemo)(()=>{if(t.sort((e,t)=>e.timestamp>t.timestamp?1:-1),0===t.length)return[];let e=t[t.length-1];return[...t,{...e,timestamp:e.timestamp+j8(1)}]},[t]),s=(0,x.useMemo)(()=>{if(a.length<2)return 0;let e=[a[0].timestamp,a[a.length-1].timestamp],t=new Date().getTime();return t>e[0]&&t"dark"===c?v6:v5,[c]),[f,h]=(0,x.useState)("center"),[p,m]=(0,x.useState)([!1,!1]),[v,g]=p,[b,w]=(0,x.useState)("bottom"),[j,E]=(0,x.useState)("right"),[k,S]=(0,x.useState)(!0),[_,C]=(0,x.useState)(!0),[O,M]=(0,x.useState)(!1),[T,A]=(0,x.useState)(!0),[P,N]=(0,x.useState)(!0),[R,D]=(0,x.useState)(r),[L,F]=(0,x.useState)(i),[z,V]=(0,x.useState)(o),I=d.xyChartTheme.gridStyles.stroke,[Z,B]=(0,x.useState)(!1),[H,U]=(0,x.useState)("star"),W=(0,x.useCallback)(e=>{let{x:t,y:n,size:r,color:i,onPointerMove:o,onPointerOut:a,onPointerUp:s,isNearestDatum:l}=e,u={onPointerMove:o,onPointerOut:a,onPointerUp:s};return"star"===H?(0,y.jsx)(vB,{left:t,top:n,stroke:I,fill:i,size:10*r,...u}):"circle"===H?(0,y.jsx)(vW,{left:t,top:n,stroke:I,fill:i,r:r,...u}):"cross"===H?(0,y.jsx)(vY,{left:t,top:n,stroke:I,fill:i,size:10*r,...u}):(0,y.jsx)("text",{x:t,y:n,dx:"-0.75em",dy:"0.25em",fontSize:14,...u,children:l?"\uD83C\uDF4D":"\uD83C\uDF4C"})},[H,I]),q=(0,x.useMemo)(()=>Object.keys(j5()(t[0],"timestamp")),[t]),$=(0,x.useMemo)(()=>n.enabledGraph||q,[q,n]),K=(0,x.useMemo)(()=>n.enabledTip||q,[q,n]),Y=(0,x.useMemo)(()=>({x:q.reduce((e,t)=>({...e,[t]:e=>e.timestamp}),{}),y:q.reduce((e,t)=>({...e,[t]:e=>e[t]}),{}),date:e=>e.timestamp}),[q]),G=["line","area","areastack"].includes(R),X=["barstack","areastack"].includes(R),J=(0,x.useMemo)(()=>({x:{type:"band",paddingInner:G?1:.3},y:{type:"linear"}}),[G]),Q=(0,x.useMemo)(()=>"cardinal"===L&&vG.ZP||"step"===L&&mJ.ZP||vX.Z,[L]),ee=(0,x.useMemo)(()=>({top:30,bottom:"top"===b?0:20,left:0,right:0}),[b]);return{id:e,accessors:Y,animationTrajectory:f,config:n,scales:J,data:a,curve:Q,chartData:t,numTicks:4,isLine:G,isStack:X,todayOffset:s,initialChartType:r,chartType:R,curveType:L,keys:q,enabledGraph:$,enabledTip:K,renderBarGroup:"bargroup"===R,renderBarStack:"barstack"===R,enableTooltipGlyph:Z,renderTooltipGlyph:W,renderAreaSeries:"area"===R,renderAreaStack:"areastack"===R,renderLineSeries:"line"===R,sharedTooltip:P,showGridColumns:g,showGridRows:v,showHorizontalCrosshair:O,showTooltip:k,showVerticalCrosshair:_,snapTooltipToDatum:!X&&T,stackOffset:z,theme:d,margin:ee,xAxisOrientation:b,yAxisOrientation:j,setUseAnimatedComponents:u,setAnimationTrajectory:h,setGridProps:m,setXAxisOrientation:w,setYAxisOrientation:E,setShowTooltip:S,setShowVerticalCrosshair:C,setShowHorizontalCrosshair:M,setSnapTooltipToDatum:A,setSharedTooltip:N,setChartType:D,setCurveType:F,setStackOffset:V,setEnableTooltipGlyph:B,setTooltipGlyphComponent:U,...l?{Annotation:bd,AreaSeries:bX,AreaStack:wu,Axis:wm,BarGroup:wP,BarSeries:wV,BarStack:wU,GlyphSeries:wY,Grid:w4,LineSeries:w9,Tooltip:jx,XYChart:jL}:{AreaSeries:jF,AreaStack:jz,Axis:jI,BarGroup:j$,BarSeries:jG,BarStack:jJ,Grid:j2,LineSeries:j4,Tooltip:jx,XYChart:jL}}}(t,r,i,l,u,c),p=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"flex gap-2 absolute top-3 right-4",children:[s,"panel"===d&&f&&(0,y.jsx)(El,{...h})]}),(0,y.jsx)("div",{className:"flex gap-2 absolute top-3 left-4",children:o}),(0,y.jsx)(vA.Z,{children:e=>{let{width:t,height:n}=e;return a?(0,y.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,y.jsx)(Eu,{className:"scale-150"})}):(0,y.jsx)(vR,{...h,width:t,height:n})}})]});return"panel"===d?(0,y.jsx)(t3,{className:"relative p-px",style:{height:n},children:p}):(0,y.jsx)("div",{className:"relative p-px",style:{height:n},children:p})}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -57,7 +57,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function Ef(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function Eh(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1?(Ep('UA "Edge" => assuming success'),[2,!0]):Ez(document.body,e)?(Ep("copyUsingTempSelection worked"),[2,!0]):((i=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),i.textContent="temporary element",document.body.appendChild(i),o=Ez(i,e),document.body.removeChild(i),o)?(Ep("copyUsingTempElem worked"),[2,!0]):(a=e["text/plain"],Ep("copyTextUsingDOM"),(s=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),l=s,s.attachShadow&&(Ep("Using shadow DOM."),l=s.attachShadow({mode:"open"})),(u=document.createElement("span")).innerText=a,l.appendChild(u),document.body.appendChild(s),EV(u),c=document.execCommand("copy"),EI(),document.body.removeChild(s),c)?(Ep("copyTextUsingDOM worked"),[2,!0]):[2,!1]})})}(((n={})["text/plain"]=e,n)))throw Error("writeText() failed");return[2]})})}let EB={data:""},EH=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||EB,EU=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,EW=/\/\*[^]*?\*\/|\s\s+|\n/g,Eq=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?Eq(a,o):o+"{"+Eq(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=Eq(a,t?t.replace(/([^,])+/g,e=>o.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Eq.p?Eq.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},E$={},EK=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+EK(e[n]);return t}return e},EY=(e,t,n,r,i)=>{var o;let a=EK(e),s=E$[a]||(E$[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!E$[s]){let t=a!==e?e:(e=>{let t,n=[{}];for(;t=EU.exec(e.replace(EW,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);E$[s]=Eq(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return o=E$[s],-1==t.data.indexOf(o)&&(t.data=r?o+t.data:t.data+o),s},EG=(e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":Eq(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"");function EX(e){let t=this||{},n=e.call?e(t.p):e;return EY(n.unshift?n.raw?EG(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,EH(t.target),t.g,t.o,t.k)}EX.bind({g:1});let EJ,EQ,E0,E1=EX.bind({k:1});function E2(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:EQ&&EQ()},s),n.o=/ *go\d+/.test(l),s.className=EX.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),E0&&u[0]&&E0(s),EJ(u,s)}return t?t(i):i}}function E4(){return(E4=Object.assign||function(e){for(var t=1;t-1&&kn.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return E4({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||ko[t.type],style:E4({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return E4({},n,{toasts:i})},ks=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),E4({createdAt:Date.now(),visible:!0,type:r,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},n,{id:(null==n?void 0:n.id)||E6()}));return ki({type:g.UPSERT_TOAST,toast:i}),i.id}},kl=function(e,t){return ks("blank")(e,t)};kl.error=ks("error"),kl.success=ks("success"),kl.loading=ks("loading"),kl.custom=ks("custom"),kl.dismiss=function(e){ki({type:g.DISMISS_TOAST,toastId:e})},kl.remove=function(e){return ki({type:g.REMOVE_TOAST,toastId:e})},kl.promise=function(e,t,n){var r=kl.loading(t.loading,E4({},n,null==n?void 0:n.loading));return e.then(function(e){return kl.success(E5(t.success,e),E4({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){kl.error(E5(t.error,e),E4({id:r},n,null==n?void 0:n.error))}),e};var ku=function(e){var t=ka(e),n=t.toasts,r=t.pausedAt;(0,b.useEffect)(function(){if(!r){var e=Date.now(),t=n.map(function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&kl.dismiss(t.id);return}return setTimeout(function(){return kl.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,b.useMemo)(function(){return{startPause:function(){ki({type:g.START_PAUSE,time:Date.now()})},endPause:function(){r&&ki({type:g.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return ki({type:g.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=n.filter(function(t){return(t.position||u)===(e.position||u)&&t.height}),d=c.findIndex(function(t){return t.id===e.id}),f=c.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return kH=function(){return e},e}c=b.createElement,Eq.p=void 0,EJ=c,EQ=void 0,E0=void 0;var kU=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return E4({left:0,right:0,display:"flex",position:"absolute",transition:E8()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},kW=EX(kH()),kq=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,o=e.gutter,a=e.children,s=e.containerStyle,l=e.containerClassName,u=ku(i),c=u.toasts,d=u.handlers;return(0,b.createElement)("div",{style:E4({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(function(e){var n,i=e.position||r,s=kU(i,d.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:r})),l=e.height?void 0:(n=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){n(e.getBoundingClientRect())})});return(0,b.createElement)("div",{ref:l,className:e.visible?kW:"",key:e.id,style:s},"custom"===e.type?E5(e.message,e):a?a(e):(0,b.createElement)(kB,{toast:e,position:i}))}))};let k$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kl((0,y.jsx)(t1,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200)):e}),kX(t))},kK=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kl(e,kX(t))},kY=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kl.success((0,y.jsx)(t1,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),kX(t))},kG=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kl.error((0,y.jsx)(t1,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),kX(t))};function kX(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,em.cx)(lo,t4(),"font-sans font-normal","text-gray-1100 dark:text-white","max-w-[800px] overflow-hidden text-ellipsis","[&>div]:overflow-hidden","[&>div]:flex-1",e),success:{icon:(0,y.jsx)("div",{className:"!flex-none w-5",children:(0,y.jsx)(lc.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,y.jsx)("div",{className:"!flex-none w-5",children:(0,y.jsx)(lc.Jsc,{className:"w-5 text-red-600"})})},...t}}function kJ(){return(0,y.jsx)(kq,{toastOptions:kX()})}let kQ=(e,t)=>{let n=t?"Copied ".concat(t," to clipboard"):"Copied to clipboard";k$(n),EZ(e)},k0=(e,t,n)=>{kK(t,n),EZ(e)};function k1(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function k2(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^key:/,"")}function k4(e,t,n){return t?"".concat(e," ").concat(k1(t,n)):"".concat(e)}function k3(e,t){return"miner"===t?"minerPayout":"siafundClaim"===t?"siafundClaim":"contract"===t?"contractPayout":"foundation"===t?"foundationSubsidy":e.storageProofs&&e.storageProofs.length>0?"storageProof":e.fileContracts&&e.fileContracts.length>0&&e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRenewal":e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRevision":e.fileContracts&&e.fileContracts.length>0?"contractFormation":e.arbitraryData&&e.arbitraryData.length>0&&0===atob(e.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":void 0}let k5={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",ip:"IP"},k6={siacoin:"siacoin transfer",siafund:"siafund transfer",contractFormation:"contract formation",contractRenewal:"contract renewal",contractRevision:"contract revision",contractPayout:"contract payout",storageProof:"storage proof",minerPayout:"miner payout",siafundClaim:"siafund claim",foundationSubsidy:"foundation subsidy",hostAnnouncement:"host announcement"};function k8(e){return e?k5[e]:void 0}function k7(e){return e?k6[e]:void 0}function k9(e){let{value:t,displayValue:n,type:r,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,color:c="contrast",className:d}=e,f=i||k8(r),h=a||("ip"===r?20:12),p=k2(t),m=n||p,v="".concat(null==m?void 0:m.slice(0,h)).concat(((null==m?void 0:m.length)||0)>h?"...":"");return(0,y.jsxs)("div",{className:(0,em.cx)("flex items-center",d),children:[o?(0,y.jsx)(di,{href:o,underline:"hover",size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}):(0,y.jsx)(t1,{size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}),(0,y.jsx)("div",{className:"ml-1 flex items-center",children:(0,y.jsx)(lu,{variant:"ghost",size:"none",onClick:e=>{e.stopPropagation(),kQ(p,f)},children:(0,y.jsx)(t1,{color:c,children:(0,y.jsx)(lc.olJ,{className:"10"===s?"scale-75":"scale-90"})})})})]})}function Se(e){let{value:t,displayValue:n,type:r,href:i,maxLength:o,size:a,scaleSize:s,color:l="contrast",menu:u,className:c}=e,d=o||("ip"===r?20:12),f=k2(t),h=n||f,p="".concat(null==h?void 0:h.slice(0,d)).concat(((null==h?void 0:h.length)||0)>d?"...":"");return(0,y.jsxs)("div",{className:(0,em.cx)("flex items-center",c),children:[i?(0,y.jsx)(di,{href:i,underline:"hover",size:a,scaleSize:s,color:l,ellipsis:!0,children:p}):(0,y.jsx)(t1,{size:a,scaleSize:s,color:l,ellipsis:!0,children:p}),(0,y.jsx)("div",{className:"ml-1 flex items-center",children:u})]})}function St(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change"}=e,a=(0,vS.yF)(String(t),{units:"SF"});return(0,y.jsx)(ls,{content:(i?"".concat(i," "):"")+a,children:(0,y.jsxs)(t1,{size:n,scaleSize:r,weight:"medium",font:"mono",color:"change"===o?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===o&&t>0?"+":"",a]})})}function Sn(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",fixed:a=3,dynamicUnits:s=!0,extendedSuffix:l,showTooltip:u=!0}=e,c=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",d="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast",f=(0,y.jsxs)(t1,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:d,children:["change"===o?"".concat(c).concat((0,vS.Vz)(t.absoluteValue(),{fixed:a,dynamicUnits:s})):(0,vS.Vz)(t,{fixed:a,dynamicUnits:s}),(0,y.jsx)(t1,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:l?"".concat(l):""})]});return u?(0,y.jsx)(ls,{content:(i?"".concat(i," "):"")+(0,vS.Vz)(t,{fixed:16,dynamicUnits:!1}),children:f}):f}function Sr(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",variant:o="change",color:a,format:s}=e,l=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",u="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,y.jsx)(ls,{content:(i?"".concat(i," "):"")+s(t),children:(0,y.jsx)(t1,{size:n,weight:r,font:"mono",ellipsis:!0,color:a||u,children:"change"===o?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var Si=n(61258),So=n.n(Si);function Sa(e){let{skeletonCount:t=10}=e;return(0,y.jsx)(y.Fragment,{children:So()(t,e=>(0,y.jsxs)("div",{className:(0,em.cx)("relative flex gap-4 p-3.5",(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,y.jsx)(f8,{className:"w-[60px] h-[50px]"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,y.jsx)(f8,{className:"w-[90%] h-[20px]"}),(0,y.jsx)(f8,{className:"w-[140px] h-[14px]"})]})]},e))})}var Ss=n(29193),Sl=n(23779),Su=n.n(Sl);function Sc(e){let{type:t,label:n,initials:r,href:i,src:o,shape:a}=e,s=(0,y.jsx)(lM,{interactive:!!i,fallback:r||t&&(t||n||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:o,shape:a||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,y.jsx)(di,{href:i,underline:"none",children:s}),u=l||s;return t?(0,y.jsx)(ls,{content:n||k8(t),children:(0,y.jsx)("div",{className:"",children:u})}):u}function Sd(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,y.jsxs)("div",{className:(0,em.cx)("flex gap-4 p-4",(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,y.jsx)(Sc,{label:t,type:n,shape:i,src:r,initials:o||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function Sf(e){let t=e.sc,n=e.sf,r=e.hash&&(0,y.jsx)(k9,{value:e.hash,type:e.type,label:e.label,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&k7(e.txType)||k8(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?Su()(i):i;return(0,y.jsx)(Sd,{...e,children:(0,y.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[e.height&&e.blockHref&&(0,y.jsx)(t1,{color:"subtle",weight:"semibold",children:(0,y.jsx)(di,{href:e.blockHref,underline:"none",children:(0,vS.yF)(e.height)})}),(0,y.jsx)(t1,{weight:"medium",children:o||r})]}),(0,y.jsx)("div",{className:"flex-1"}),!!t&&(0,y.jsx)(Sn,{variant:e.scVariant,value:t}),!!n&&(0,y.jsx)(St,{variant:e.sfVariant,value:n})]}),(0,y.jsxs)("div",{className:"flex justify-between w-full",children:[(0,y.jsx)("div",{className:"flex gap-1",children:!!o&&r}),(0,y.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,y.jsx)(t1,{color:"verySubtle",children:(0,y.jsx)(lc.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,y.jsx)(t1,{color:"subtle",children:(0,Ss.Z)(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function Sh(e){let{title:t,actions:n,entities:r,emptyMessage:i,skeletonCount:o=10,children:a}=e;return(0,y.jsx)(t3,{children:(0,y.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(t||n)&&(0,y.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,y.jsx)(c2,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,y.jsx)("div",{className:"flex-1"}),n]}),(0,y.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(null==r?void 0:r.length)===0&&(0,y.jsx)("div",{className:(0,em.cx)("flex items-center justify-center h-[84px]",(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,y.jsx)(t1,{size:"18",color:"subtle",children:i||"No results"})}),a||(null==r?void 0:r.map((e,t)=>(0,y.jsx)(Sf,{...e},e.hash||e.label||t)))||(0,y.jsx)(Sa,{skeletonCount:o})]})]})})}function Sp(e){let{label:t,entityType:n,entityValue:r,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,sf:c,comment:d,commentTip:f,scaleSize:h="40",isLoading:p,onClick:m}=e,v=(0,y.jsx)(t1,{color:"subtle",size:"12",className:"h-6",children:d});return(0,y.jsx)(t3,{children:(0,y.jsx)("div",{className:(0,em.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",m?"cursor-pointer":""),onClick:m,children:(0,y.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,y.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,y.jsx)(t1,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?Su()(t):t}),i]}),(0,y.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[p?(0,y.jsx)(f8,{className:"h-12 w-[150px]"}):(0,y.jsxs)(y.Fragment,{children:[void 0!==u&&(0,y.jsx)(Sn,{extendedSuffix:s,scaleSize:h,variant:"value",value:u,fixed:0}),void 0!==c&&(0,y.jsx)(St,{scaleSize:h,variant:"value",value:c}),n&&(r?(0,y.jsx)(k9,{scaleSize:h,label:k8(n),href:o,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,y.jsx)(t1,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),l&&(0,y.jsx)(k9,{scaleSize:h,label:"hash",value:l}),void 0!==a&&(0,y.jsx)(t1,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:a})]}),v?(0,y.jsx)("div",{className:"mt-1",children:p?(0,y.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,y.jsx)(f8,{className:"h-4 w-[100px]"})}):f?(0,y.jsx)(ls,{content:f,children:v}):v}):null]})]})})})}function Sm(e){let{title:t,actions:n,name:r}=e;return(0,y.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,y.jsx)(dt,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function Sv(e){var t;let{form:n,name:r}=e,i=n.formState.errors[r],o=null===(t=n.formState.errors[r])||void 0===t?void 0:t.message;return i?(0,y.jsx)(t1,{size:"14",color:"red",children:o}):null}function Sg(e){let{form:t,title:n,actions:r,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return n||s?(0,y.jsxs)("div",{className:(0,em.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,y.jsx)(Sm,{name:i,title:n,actions:r}),(0,y.jsx)(Sv,{form:t,name:i})]}):null}function Sy(e){let{children:t,...n}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsx)(Sg,{...n}),t]})}function Sb(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(lu,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,y.jsx)(Eu,{}):i})})}function Sx(e){let{formik:t,title:n,name:r,placeholder:i,disabled:o,readOnly:a,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:v,type:g,variants:b}=e;return(0,y.jsx)(SS,{formik:t,title:n,name:r,children:"number"===g?(0,y.jsx)(Sj,{formik:t,name:r,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:b}):"siacoin"===g?(0,y.jsx)(SE,{formik:t,name:r,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:b}):(0,y.jsx)(Sw,{formik:t,name:r,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:b})})}function Sw(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:o,readOnly:a,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,y.jsx)(fE,{id:n,name:n,autoComplete:i,disabled:o,spellCheck:l,placeholder:r,tabIndex:s,readOnly:a||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function Sj(e){let{formik:t,name:n,units:r,disabled:i,readOnly:o,tabIndex:a,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,y.jsx)(f$,{id:n,units:r,name:n,placeholder:new(fW())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:o||t.isSubmitting,tabIndex:a,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function SE(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:o,placeholder:a,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,y.jsx)(fJ,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(n),sc:new(fW())(t.values[n]),placeholder:new(fW())(a),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function Sk(e){var t,n;let{formik:r,title:i,name:o,withStatusError:a=!1,className:s}=e,l=r.errors[o]&&r.touched[o]||a&&(null===(t=r.status)||void 0===t?void 0:t.error),u=r.errors[o]||a&&(null===(n=r.status)||void 0===n?void 0:n.error);return(i||l)&&(0,y.jsxs)("div",{className:(0,em.cx)("flex justify-between items-center gap-4",s),children:[i?(0,y.jsx)(dt,{htmlFor:o,children:i}):(0,y.jsx)("div",{}),l&&(0,y.jsx)(t1,{size:"14",color:"red",children:u})]})}function SS(e){let{children:t,...n}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsx)(Sk,{...n}),t]})}function S_(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,y.jsxs)(y.Fragment,{children:[o&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,y.jsx)(t1,{color:"red",children:n.status.error}),(0,y.jsx)(lu,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,y.jsx)(Eu,{}):a})]})}function SC(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,summary:l,rowSize:u="default",pageSize:c,isLoading:d,emptyState:f,focusId:h,focusColor:p="default"}=e,m="emptyState";!d||(null==n?void 0:n.length)||(m="skeleton"),(null==n?void 0:n.length)&&(m="currentData");let v=(0,b.useCallback)((e,n,r)=>(0,em.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",r?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",n),[t]),g=(0,b.useCallback)((e,t)=>(0,em.cx)("flex items-center",t),[]);return(0,y.jsxs)(t3,{children:[(0,y.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,y.jsx)("thead",{className:(0,em.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,y.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:r,label:l,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==a?void 0:a.includes(n))&&!!s,h=i===n;return(0,y.jsx)("th",{className:(0,em.cx)(v(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,y.jsx)("div",{className:(0,em.cx)("overflow-hidden","py-3"),children:(0,y.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,em.cx)(g(t,d),f?"cursor-pointer":""),children:[(0,y.jsx)(ls,{content:u,children:(0,y.jsxs)(t1,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,y.jsx)("div",{children:r}):null,(0,y.jsx)(t1,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,y.jsx)(t1,{color:"contrast",children:"asc"===o?(0,y.jsx)(lc.kqg,{className:"scale-75"}):(0,y.jsx)(lc.EMN,{className:"scale-75"})}),f&&!h&&(0,y.jsx)(t1,{color:"verySubtle",children:(0,y.jsx)(lc.kqg,{className:"scale-75"})})]})})},n)})})}),(0,y.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:[l&&(0,y.jsx)("tr",{className:"bg-gray-50 dark:bg-graydark-50 border-l border-r border-b border-gray-200 dark:border-graydark-200",children:t.map((e,t)=>{let{id:n,summary:r,contentClassName:i,cellClassName:o}=e;return(0,y.jsx)("td",{className:v(t,o,!1),children:(0,y.jsx)("div",{className:g(t,i),children:r&&r()})},n)})}),"currentData"===m&&(null==n?void 0:n.map(e=>(0,y.jsx)("tr",{id:e.id,onClick:e.onClick,className:(0,em.cx)("border-b border-gray-200/50 dark:border-graydark-100",e.onClick?"cursor-pointer":""),children:t.map((t,n)=>{let{id:i,render:o,contentClassName:a,cellClassName:s}=t;return(0,y.jsx)("td",{className:(0,em.cx)(v(n,s,!1),h===e.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===p?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===p?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===p?"!shadow-red-500 dark:!shadow-red-400":"","amber"===p?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===p?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,y.jsx)("div",{className:(0,em.cx)(g(n,a),"dense"===u?"h-[50px]":"h-[100px]"),children:(0,y.jsx)(o,{data:e,context:r})})},"".concat(i,"/").concat(e.id))})},e.id))),"skeleton"===m&&So()(c).map(e=>(0,y.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:n,contentClassName:r,cellClassName:i}=e;return(0,y.jsx)("td",{className:v(t,i,!1),children:(0,y.jsx)("div",{className:(0,em.cx)(g(t,r),"dense"===u?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===m&&f]})}var SO=n(5632);function SM(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,o=(0,SO.useRouter)();return(0,y.jsxs)(lR,{children:[(0,y.jsx)(lu,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,y.jsx)("div",{className:"flex scale-[0.65]",children:(0,y.jsx)(lc.XJM,{})})}),(0,y.jsx)(lu,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,y.jsx)(lc.bdU,{})}),(0,y.jsx)(lu,{state:"waiting",className:"rounded-none px-3",children:r>0?"".concat(t+1," - ").concat(Math.min(t+n,r)," of ").concat(r?r.toLocaleString():""):i?(0,y.jsx)(Eu,{className:"px-2"}):"No results"}),(0,y.jsx)(lu,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.min(t+n,r)}}),children:(0,y.jsx)(lc.VUy,{})}),(0,y.jsx)(lu,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>o.push({query:{...o.query,offset:Math.floor(r/n)*n}}),children:(0,y.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,y.jsx)(lc.RRj,{})})})]})}function ST(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,o=(0,SO.useRouter)(),a=Math.min(t+n,t+r);return(0,y.jsxs)(lR,{children:[(0,y.jsx)(lu,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,y.jsx)("div",{className:"flex scale-[0.65]",children:(0,y.jsx)(lc.XJM,{})})}),(0,y.jsx)(lu,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,y.jsx)(lc.bdU,{})}),i?(0,y.jsx)(lu,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,y.jsx)(Eu,{className:"px-2"})}):r?(0,y.jsxs)(lu,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",a]}):(0,y.jsx)(lu,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,y.jsx)(lu,{icon:"contrast",disabled:r!==n,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:t+n}}),children:(0,y.jsx)(lc.VUy,{})})]})}function SA(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[t?"string"==typeof t?(0,y.jsx)(t1,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,y.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,y.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 overflow-x-hidden",children:n}),(0,y.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,y.jsx)("div",{className:"flex items-center gap-2 px-6 py-3 h-10 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:r})]})}let SP=("string"==typeof(d={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAZEAADAAMAAAAAAAAAAAAAAAAAAQISIpH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8ArRbxWi6AAP/Z",blurWidth:3,blurHeight:8})?{src:d}:d).src;function SN(e){let{children:t}=e;return(0,y.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,y.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,y.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(SP,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,y.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}var SR=n(97729),SD=n.n(SR);function SL(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,y.jsxs)(SD(),{children:[(0,y.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,y.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,y.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,y.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,y.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,y.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,y.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,y.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,y.jsx)("title",{children:i})]})}function SF(e){let{appName:t,title:n,children:r}=e;return(0,y.jsxs)("div",{className:"h-screen",children:[(0,y.jsx)(SL,{appName:t,title:n}),r]})}function Sz(e){let{appName:t,title:n,children:r,filters:i,actions:o}=e;return(0,y.jsxs)(SF,{appName:t,title:n,children:[(0,y.jsx)(SN,{}),(0,y.jsx)("div",{className:"flex h-full",children:(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(SA,{nav:i,actions:o}),(0,y.jsx)("div",{className:"flex-1",children:(0,y.jsx)(lL,{className:"h-full",children:r})})]})})]})}function SV(e){let{size:t="12",wallet:{sc:n,sf:r}}=e;return(0,y.jsx)(t1,{size:t,weight:"medium",children:"".concat((0,vS.Vz)(n,{fixed:0})," ").concat(r&&r>0?" | ".concat((0,vS.ES)(r)):"")})}var SI=n(82876);function SZ(e){let{title:t,children:n,route:r,onClick:i}=e,o=(0,SI.usePathname)(),a=r&&("/"===r?o===r:null==o?void 0:o.startsWith(r));return r?(0,y.jsx)(di,{href:r,className:"no-underline",children:(0,y.jsx)(ls,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,y.jsx)(lu,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}):(0,y.jsx)(ls,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,y.jsx)(lu,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}function SB(e){let{walletBalance:t,isSynced:n,routes:r}=e;return(0,y.jsx)(SZ,{title:"Wallet",route:r.wallet.view,children:(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,y.jsx)(lc.oaN,{}),n&&t&&(0,y.jsx)(SV,{wallet:{sc:t}})]})})}function SH(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalance:o,lock:a,openSettings:s,children:l}=e;return(0,y.jsx)(t3,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,y.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,y.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,y.jsx)(dl,{size:30})}),(0,y.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,y.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,y.jsx)("div",{className:"flex-1"}),(0,y.jsx)(cF,{className:"w-full"}),i&&(0,y.jsx)(SB,{routes:t,isSynced:r,walletBalance:o}),(0,y.jsx)(SZ,{title:"Blockchain node",route:t.node.index,children:(0,y.jsx)(lc.kBK,{})}),(0,y.jsx)(SZ,{title:"App preferences",onClick:()=>s(),children:(0,y.jsx)(lc.UG6,{})}),(0,y.jsx)(SZ,{title:"Lock app",onClick:a,children:(0,y.jsx)(lc.mBM,{})})]})]})})}var SU=Object.create,SW=Object.defineProperty,Sq=Object.getOwnPropertyDescriptor,S$=Object.getOwnPropertyNames,SK=Object.getPrototypeOf,SY=Object.prototype.hasOwnProperty,SG=(m=null!=(p=(f=(e,t)=>{var r,i;r=e,i=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=2*536870912,i=new WeakMap,o=(t=function(e,t){return i.set(e,t),t},function(e){var o=i.get(e),a=void 0===o?e.size:on)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(a);)a=Math.floor(Math.random()*n);return t(e,a)});e.addUniqueNumber=function(e){var t=o(e);return e.add(t),t},e.generateUniqueNumber=o},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&n.amdO?define(["exports"],i):i((r="u">typeof globalThis?globalThis:r||self).fastUniqueNumbers={})},()=>(h||f((h={exports:{}}).exports,h),h.exports))())?SU(SK(p)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of S$(t))SY.call(e,n)||void 0===n||SW(e,n,{get:()=>t[n],enumerable:!(r=Sq(t,n))||r.enumerable});return e})(p&&p.__esModule?m:SW(m,"default",{value:p,enumerable:!0}),p)),SX=e=>void 0!==e.method&&"call"===e.method,SJ=e=>null===e.error&&"number"==typeof e.id;v=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(SX(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),n.delete(i);else throw Error("The timer is in an undefined state.")}}else if(SJ(e)){let{id:i}=e,o=r.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;r.delete(i),"interval"===s?t.delete(a):n.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,SG.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),i.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,SG.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{let r=(0,SG.generateUniqueNumber)(t);return t.set(r,()=>{e(),"function"==typeof t.get(r)&&i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{let r=(0,SG.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},a=null,()=>{if(null!==a)return a;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return a=v(t),setTimeout(()=>URL.revokeObjectURL(t)),a};var SQ=(typeof window>"u"?"undefined":typeof window)=="object",S0={setTimeout:SQ?setTimeout.bind(window):setTimeout,clearTimeout:SQ?clearTimeout.bind(window):clearTimeout,setInterval:SQ?setInterval.bind(window):setInterval,clearInterval:SQ?clearInterval.bind(window):clearInterval},S1={},S2=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,S1[e]=S1[e]||[],S1[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),S0.setTimeout(()=>{window.localStorage.removeItem(n)},500),S1[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=S1[this.name].indexOf(this);S1[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},S4=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:S2;function S3(){return Math.random().toString(36).substring(2)}var S5=class{options;channel;token=S3();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>S0.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(n=>{let r=()=>{if(e)return;e=!0;try{S0.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=S0.setInterval(()=>{this.apply().then(()=>{this.isLeader&&r()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&r()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>S0.clearInterval(e))}catch{}}}},S6=class{channel;options;elector;token=S3();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new S4(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new S5(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},S8=SQ?document:null,S7=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function S9(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function _t(e){let{route:t}=e,n=(0,fY.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function _n(e){let{appName:t,title:n,navTitle:r,profile:i,size:o="4",banner:a,nav:s,actions:l,stats:u,children:c,sidenav:d,connectivityRoute:f,isSynced:h,showWallet:p,walletBalance:m,routes:v,scroll:g=!0,openSettings:x}=e,{lock:w,settings:j}=(0,fY.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:o}=_t({route:n}),{settings:a}=(0,fY.Hv)(),s=(0,SO.useRouter)();(0,b.useEffect)(()=>{if(o)return;let e=!s.asPath.startsWith(r.login),n=!a.password||!i;if(e&&n){t();return}},[s,a.password,i,o])}({lock:w,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e,i=(0,b.useCallback)(()=>{n()},[n]);!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=S8,events:i=S7,timers:o,immediateEvents:a=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:v=!0,startManually:g=!1,stopOnIdle:y=!1,crossTab:x=!1,name:w="idle-timer",syncTimers:j=0,leaderElection:E=!1,disabled:k=!1}={}){let S=(0,b.useRef)(_e()),_=(0,b.useRef)(_e()),C=(0,b.useRef)(null),O=(0,b.useRef)(null),M=(0,b.useRef)(0),T=(0,b.useRef)(0),A=(0,b.useRef)(0),P=(0,b.useRef)(0),N=(0,b.useRef)(!1),R=(0,b.useRef)(!1),D=(0,b.useRef)(!1),L=(0,b.useRef)(!0),F=(0,b.useRef)(!1),z=(0,b.useRef)(null),V=(0,b.useRef)(null),I=(0,b.useRef)(e),Z=(0,b.useRef)(0);(0,b.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(n>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(n>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(I.current=e-n,Z.current=n):(I.current=e,Z.current=t),!L.current){if(g||k)return;N.current&&(G.current(null,eA),V.current&&V.current.active()),ed()}},[e,t,n,g,k]);let B=(0,b.useRef)(y);(0,b.useEffect)(()=>{B.current=y},[y]);let H=(0,b.useRef)(a),U=(0,b.useRef)(r),W=(0,b.useRef)([...new Set([...i,...a]).values()]),q=(0,b.useRef)(k);(0,b.useEffect)(()=>{q.current=k,!L.current&&(k?ep():g||ed())},[k]);let $=(0,b.useRef)(s);(0,b.useEffect)(()=>{$.current=s},[s]);let K=(0,b.useRef)(l);(0,b.useEffect)(()=>{K.current=l},[l]);let Y=(0,b.useRef)(u);(0,b.useEffect)(()=>{Y.current=u},[u]);let G=(0,b.useRef)(c);(0,b.useEffect)(()=>{G.current=c},[c]);let X=(0,b.useRef)(d);(0,b.useEffect)(()=>{X.current=d},[d]);let J=(0,b.useRef)(f);(0,b.useEffect)(()=>{J.current=f},[f]);let Q=(0,b.useMemo)(()=>{let e=(e,t)=>X.current(e,t);return h>0?function(e,t){let n;function r(...i){n&&clearTimeout(n),n=setTimeout(()=>{e(...i),n=null},t)}return r.cancel=function(){clearTimeout(n)},r}(e,h):p>0?S9(e,p):e},[p,h]),ee=(0,b.useRef)();(0,b.useEffect)(()=>{x&&j&&(ee.current=S9(()=>{V.current.active()},j))},[x,j]);let et=()=>{null!==z.current&&(S0.clearTimeout(z.current),z.current=null)},en=(e,t=!0)=>{et(),z.current=S0.setTimeout(ea,e||I.current),t&&(O.current=_e())},er=e=>{R.current||N.current||(K.current(e,eA),$.current({type:"active",prompted:!0},eA)),P.current=0,A.current=_e(),R.current=!0,en(Z.current,!1)},ei=()=>{et(),N.current||(Y.current(null,eA),$.current({type:"idle"},eA)),N.current=!0,C.current=_e(),B.current?ec():R.current&&(A.current=0,R.current=!1)},eo=e=>{et(),(N.current||R.current)&&(G.current(e,eA),$.current({type:"active",prompted:!1},eA)),R.current=!1,A.current=0,N.current=!1,M.current+=_e()-C.current,T.current+=_e()-C.current,eu(),en()},ea=e=>{if(!N.current){Q.cancel&&Q.cancel();let t=_e()-O.current;if(!(I.current+Z.current0&&!R.current){V.current?V.current.prompt():er(e);return}V.current?V.current.idle():ei();return}V.current?V.current.active():eo(e)},es=e=>{if(v||O.current||(O.current=_e(),G.current(null,eA)),Q(e,eA),R.current)return;if(et(),!N.current&&H.current.includes(e.type)){ea(e);return}let t=_e()-O.current;if(N.current&&!y||!N.current&&t>=I.current){ea(e);return}D.current=!1,P.current=0,A.current=0,en(),x&&j&&ee.current()},el=(0,b.useRef)(es);(0,b.useEffect)(()=>{let e=F.current;e&&ec(),m>0?el.current=S9(es,m):el.current=es,e&&eu()},[m,p,h,X,x,j]);let eu=()=>{SQ&&U.current&&(F.current||(W.current.forEach(e=>{U.current.addEventListener(e,el.current,{capture:!0,passive:!0})}),F.current=!0))},ec=(e=!1)=>{SQ&&U.current&&(F.current||e)&&(W.current.forEach(e=>{U.current.removeEventListener(e,el.current,{capture:!0})}),F.current=!1)},ed=(0,b.useCallback)(e=>!q.current&&(et(),eu(),N.current=!1,R.current=!1,D.current=!1,P.current=0,A.current=0,V.current&&!e&&V.current.start(),en(),!0),[z,N,q,I,V]),ef=(0,b.useCallback)(e=>!q.current&&(et(),eu(),_.current=_e(),M.current+=_e()-C.current,T.current+=_e()-C.current,M.current=0,N.current=!1,R.current=!1,D.current=!1,P.current=0,A.current=0,V.current&&!e&&V.current.reset(),g||en(),!0),[z,N,I,g,q,V]),eh=(0,b.useCallback)(e=>!q.current&&(et(),eu(),(N.current||R.current)&&eo(),N.current=!1,R.current=!1,D.current=!1,P.current=0,A.current=0,_.current=_e(),V.current&&!e&&V.current.activate(),en(),!0),[z,N,R,q,I,V]),ep=(0,b.useCallback)((e=!1)=>!q.current&&!D.current&&(P.current=ej(),D.current=!0,ec(),et(),V.current&&!e&&V.current.pause(),!0),[z,q,V]),em=(0,b.useCallback)((e=!1)=>!q.current&&!!D.current&&(D.current=!1,R.current||eu(),N.current||en(P.current),A.current&&(A.current=_e()),V.current&&!e&&V.current.resume(),!0),[z,I,q,P,V]),ev=(0,b.useCallback)((e,t)=>(V.current?(t&&J.current(e,eA),V.current.message(e)):t&&J.current(e,eA),!0),[f]),eg=(0,b.useCallback)(()=>N.current,[N]),ey=(0,b.useCallback)(()=>R.current,[R]),eb=(0,b.useCallback)(()=>V.current?V.current.isLeader:null,[V]),ex=(0,b.useCallback)(()=>V.current?V.current.isLastActive:null,[V]),ew=(0,b.useCallback)(()=>V.current?V.current.token:null,[V]),ej=(0,b.useCallback)(()=>{if(D.current)return P.current;let e=Math.floor((P.current?P.current:Z.current+I.current)-(O.current?_e()-O.current:0));return e<0?0:Math.abs(e)},[I,Z,R,P,O]),eE=(0,b.useCallback)(()=>Math.round(_e()-_.current),[_]),ek=(0,b.useCallback)(()=>Math.round(_e()-S.current),[S]),eS=(0,b.useCallback)(()=>C.current?new Date(C.current):null,[C]),e_=(0,b.useCallback)(()=>O.current?new Date(O.current):null,[O]),eC=(0,b.useCallback)(()=>N.current?Math.round(_e()-C.current+M.current):Math.round(M.current),[C,M]),eO=(0,b.useCallback)(()=>N.current?Math.round(_e()-C.current+T.current):Math.round(T.current),[C,T]),eM=(0,b.useCallback)(()=>{let e=Math.round(eE()-eC());return e>=0?e:0},[C,M]),eT=(0,b.useCallback)(()=>{let e=Math.round(ek()-eO());return e>=0?e:0},[C,M]);(0,b.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(S0.setTimeout=o.setTimeout,S0.clearTimeout=o.clearTimeout,S0.setInterval=o.setInterval,S0.clearInterval=o.clearInterval);let e=()=>{V.current&&V.current.close(),Q.cancel&&Q.cancel(),et(),ec(!0)};return SQ&&window.addEventListener("beforeunload",e),()=>{SQ&&window.removeEventListener("beforeunload",e),V.current&&V.current.close(),Q.cancel&&Q.cancel(),et(),ec(!0)}},[]),(0,b.useEffect)(()=>{V.current&&V.current.close(),x?V.current=new S6({channelName:w,leaderElection:E,onPrompt:()=>{er()},onIdle:()=>{ei()},onActive:()=>{eo()},onMessage:e=>{J.current(e,eA)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):V.current=null},[x,w,E,K,Y,G,J,ed,ef,ep,em]),(0,b.useEffect)(()=>{L.current||(et(),ec(!0)),g||k||(v?ed():eu())},[g,v,k,L]),(0,b.useEffect)(()=>{if(!L.current){let e=[...new Set([...i,...a]).values()];ec(),W.current=e,U.current=r,H.current=a,g||k||(v?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(a),L,k,g,v]),(0,b.useEffect)(()=>{L.current&&(L.current=!1)},[L]);let eA={message:ev,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:eb,isLastActiveTab:ex,getTabId:ew,getRemainingTime:ej,getElapsedTime:eE,getTotalElapsedTime:ek,getLastIdleTime:eS,getLastActiveTime:e_,getIdleTime:eC,getTotalIdleTime:eO,getActiveTime:eM,getTotalActiveTime:eT,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,K.current=e},setOnIdle:e=>{u=e,Y.current=e},setOnActive:e=>{c=e,G.current=e},setOnAction:e=>{d=e,X.current=e},setOnMessage:e=>{f=e,J.current=e}}}({disabled:!t,onIdle:i,timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!j.autoLock,lockTimeout:j.autoLockTimeout,lock:w}),(0,y.jsxs)(SF,{appName:t,title:n,children:[(0,y.jsx)(SN,{}),(0,y.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,y.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,y.jsx)(SH,{routes:v,profile:i,openSettings:x,lock:w,showWallet:p,walletBalance:m,isSynced:h,children:d}),(0,y.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,y.jsx)(SA,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,y.jsx)(ul,{className:"z-0",children:(0,y.jsx)(lL,{size:o,pad:!1,children:(0,y.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,y.jsx)(lL,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function _r(e,t,n,r){let[i,o]=(0,b.useState)();return(0,b.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,b.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}function _i(e){let{filtered:t}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.Hb6,{className:"scale-[200%]"})}),(0,y.jsx)(t1,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}(0,b.createContext)(null).Consumer;let _o=[];function _a(e){let{open:t,onOpenChange:n,dismissOne:r,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=_r(o.data,o.isValidating,o.error,_o),[u,c]=(0,b.useState)(),d=(0,b.useMemo)(()=>{var e;return(null===(e=o.data)||void 0===e?void 0:e.filter(e=>!u||e.severity===u))||[]},[o.data,u]),f=(0,b.useCallback)(e=>{let t=Object.keys(e).sort((e,t)=>{let n=a.indexOf(e),r=a.indexOf(t);return -1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r});return t},[a]);return(0,y.jsx)(ud,{open:t,onOpenChange:e=>{n(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsxs)(c2,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,y.jsxs)("div",{className:"flex gap-1",children:[(0,y.jsx)(lu,{variant:"info"===u?"accent":"gray",onClick:()=>"info"===u?c(void 0):c("info"),children:"info"}),(0,y.jsx)(lu,{variant:"warning"===u?"accent":"gray",onClick:()=>"warning"===u?c(void 0):c("warning"),children:"warning"}),(0,y.jsx)(lu,{variant:"error"===u?"accent":"gray",onClick:()=>"error"===u?c(void 0):c("error"),children:"error"}),(0,y.jsx)(lu,{variant:"critical"===u?"accent":"gray",onClick:()=>"critical"===u?c(void 0):c("critical"),children:"critical"}),(0,y.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,y.jsxs)(lu,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,y.jsx)(lc.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,y.jsxs)("div",{className:(0,em.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,y.jsx)(_i,{filtered:!1}),"error"===l&&(0,y.jsx)("div",{className:(0,em.cx)("flex items-center justify-center h-[100px]",_u()),children:(0,y.jsx)(t1,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,y.jsx)(_l,{}),!l&&(0,y.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,y.jsxs)("div",{className:(0,em.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,y.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,y.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,y.jsxs)(t1,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,y.jsx)(lu,{tip:"Dismiss alert",onClick:()=>r(e.id),children:(0,y.jsx)(lc.NlZ,{})})]}),(0,y.jsxs)("div",{className:"flex justify-between w-full",children:[(0,y.jsx)(t1,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,y.jsx)(t1,{color:"contrast",ellipsis:!0,children:(0,vS.rN)(e.timestamp,{timeStyle:"medium"})})]}),f(e.data).map(t=>{var n;let r=e.data[t];if(null==r||"object"==typeof r&&!Object.keys(r).length)return null;let i=(null==s?void 0:null===(n=s[t])||void 0===n?void 0:n.render)||_s;return(0,y.jsx)(i,{label:t,value:r},t)})]},e.id)):(0,y.jsx)(_i,{filtered:!!u})})]})})}function _s(e){let{label:t,value:n}=e;return(0,y.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,y.jsx)(t1,{color:"subtle",children:t}),(0,y.jsx)(t1,{color:"contrast",ellipsis:!0,children:String(n)})]})}function _l(){return(0,y.jsx)(y.Fragment,{children:So()(10,e=>(0,y.jsx)("div",{className:(0,em.cx)("relative flex gap-4 p-3.5",_u()),children:(0,y.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,y.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,y.jsx)(f8,{className:"w-[160px] h-[20px]"}),(0,y.jsx)(f8,{className:"w-[160px] h-[20px]"})]}),(0,y.jsx)(f8,{className:"w-[100px] h-[20px]"}),(0,y.jsx)(f8,{className:"w-full h-[120px]"})]})},e))})}function _u(){return(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}var _c=n(89644),_d=n.n(_c),_f=n(63955),_h=n(45861),_p=n.n(_h);function _m(e){let{form:t,field:n,name:r}=e,i=t.watch(r),o=t.formState.touchedFields[r]&&!!t.formState.errors[r],{ref:a,onChange:s,onBlur:l}=t.register(r,n.validation),u=(0,b.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,b.useCallback)((e,i)=>{var o;t.setValue(r,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(o=n.trigger)||void 0===o||o.forEach(e=>t.trigger(e))},[r,t,n]);return{ref:a,name:r,value:i,error:o,onBlur:l,onChange:u,setValue:c}}function _v(e){return(0,b.useCallback)(t=>{kG(_p()(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", "))},[e])}function _g(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:o,spellCheck:a,state:s=!0,group:l=!0}=e,u=r[t],{ref:c,onChange:d,onBlur:f,error:h}=_m({name:t,form:n,field:u}),p=(0,y.jsx)(fE,{ref:c,name:t,placeholder:u.placeholder,size:i,autoComplete:o,type:u.type,readOnly:u.readOnly,spellCheck:a,onClick:u.onClick,state:s?h?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:d,onBlur:f});return l?(0,y.jsx)(Sy,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var _y=n(829),_b=n.n(_y);async function _x(e){let{api:t,route:n,password:r}=e;try{return await _d().get("".concat(t,"/api").concat(n),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(r))},timeout:1e4}),{}}catch(n){let e=n.code,t=n.response;if((null==t?void 0:t.status)===504)return{error:"Error, check that daemon is running"};if((null==t?void 0:t.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===e)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function _w(e){let{appName:t,route:n,routes:r}=e,i=(0,SO.useRouter)(),{settings:o,setSettings:a}=(0,fY.Hv)(),{allowCustomApi:s}=o,l=(0,b.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,_f.cI)({mode:"onBlur",defaultValues:l});(0,b.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,b.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await _x({api:t,route:n,password:e.password});c?u.setError("password",{message:c}):(a({api:t,password:e.password,recentApis:{...o.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):r.home),u.reset(l))},[s,u,i,r,o,a,l,n]),d=function(e){let{allowCustomApi:t}=e;return{api:{type:"text",title:"API",placeholder:"http://127.0.0.1:9980",validation:{validate:{required:e=>!t||!!e||"API is required",url:e=>{try{let t=new URL(e);return!!t.protocol&&!!t.host||"invalid API URL"}catch(e){return"invalid API URL"}},https:e=>{let t="https:"===window.location.protocol;return!t||t&&e.startsWith("https")||"API must use HTTPS"}}}},password:{type:"password",title:"Password",placeholder:"Enter password",validation:{required:"password is required"}}}}({allowCustomApi:s}),f=_v(d),h=u.formState.errors.api||u.formState.errors.password,p=_b()(Object.entries(o.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,y.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,y.jsx)(t3,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,y.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(t1,{font:"mono",weight:"bold",size:"20",children:t}),(0,y.jsx)(cK,{trigger:(0,y.jsx)(lu,{icon:"hover",variant:"ghost",children:(0,y.jsx)(lc.shL,{})}),children:(0,y.jsx)(cY,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,y.jsx)(cF,{className:"w-full mt-2 mb-3"}),(0,y.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,y.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,y.jsxs)(lR,{children:[(0,y.jsx)(_g,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,y.jsx)(cK,{trigger:(0,y.jsx)(lu,{type:"button",children:(0,y.jsx)(lc.wGX,{})}),children:p.map(e=>(0,y.jsx)(cY,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,y.jsx)(_g,{name:"password",form:u,fields:d,group:!1}),h&&(0,y.jsx)(t1,{size:"14",color:"red",children:h.message}),(0,y.jsx)(Sb,{size:"small",form:u,children:"Unlock"})]})})]})})})}var _j=n(9156),_E=n(24511);let _k={address:"",siacoin:void 0,includeFee:!1},_S=_E.Ry().shape({address:_E.Z_().required("Required"),siacoin:_E.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(fW())(e||0).isZero())});function __(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,o=n.plus(r);return(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,y.jsx)(k9,{value:t,type:"address"})]}),(0,y.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,y.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,y.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,y.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,y.jsx)(k9,{value:i,type:"transaction"})]})]})}function _C(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),o=n.length-1;return(0,y.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,y.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,y.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/o*100,"%")}}),n.map((e,n)=>{let{id:a,label:s}=e,l=t===a,u=i>=n,c=n===o,d=0===n,f=u&&i!==o;return(0,y.jsxs)("div",{className:(0,em.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(n/o*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&r(a)},children:[(0,y.jsx)(t1,{color:l?"contrast":"verySubtle",className:(0,em.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,y.jsx)("div",{className:(0,em.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,y.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},a)})]})}function _O(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(__,{address:t,siacoin:n,fee:r,transactionId:i}),(0,y.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.Z$8,{})}),(0,y.jsx)(t1,{children:"Transaction successfully broadcasted."})]})]})}let _M=(0,vS.qN)(.00393),_T={address:"",siacoin:new(fW())(0),includeFee:!1};function _A(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:o}=e,[a,s]=(0,b.useState)("setup"),[l,u]=(0,b.useState)(),[c,d]=(0,b.useState)(_T),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,_j.TA)({initialValues:_k,validationSchema:_S,onSubmit:async e=>{if(!e.siacoin)return;let o=e.includeFee?(0,vS.qN)(e.siacoin).minus(n):(0,vS.qN)(e.siacoin);if(t){if(t.isLessThan((0,vS.qN)(e.siacoin).plus(n))){i.setStatus({error:"Not enough funds in wallet."});return}i.setStatus({}),r({includeFee:e.includeFee,address:e.address,siacoin:o})}}}),o=(0,vS.qN)(i.values.siacoin||0),a=(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(Sx,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,y.jsx)(Sx,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,y.jsxs)("div",{className:"flex items-center",children:[(0,y.jsx)(hd,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,y.jsx)(f0,{children:"Include or exclude the network fee from the above transaction value."}),(0,y.jsx)("div",{className:"flex flex-1"})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,y.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",children:"Network fee"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,y.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",children:"Total"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:i.values.includeFee?o:o.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:a}}({balance:i,fee:_M,onComplete:e=>{d(e),s("confirm")}}),h=function(e){let{send:t,formData:n,fee:r,onConfirm:i}=e,{address:o,siacoin:a}=n||{},s=(0,_j.TA)({initialValues:{},onSubmit:async()=>{let{transactionId:e,error:n}=await t({address:o,sc:a});if(n){s.setStatus({error:n});return}i({transactionId:e})}}),l=(0,y.jsx)("div",{className:"flex flex-col gap-4",children:(0,y.jsx)(__,{address:o,siacoin:a,fee:r})});return{form:l,formik:s}}({fee:_M,formData:c,send:o,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,b.useMemo)(()=>"setup"===a?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===a?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[a,f,h]);return(0,y.jsx)(ud,{trigger:t,open:n,onOpenChange:e=>{e||(f.formik.resetForm(),h.formik.resetForm(),s("setup")),r(e)},title:"Send siacoin",onSubmit:p?p.formik.handleSubmit:void 0,controls:p&&(0,y.jsx)("div",{className:"flex flex-col gap-1",children:(0,y.jsx)(S_,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(_C,{onChange:e=>s(e),activeStep:a,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,y.jsx)(cF,{className:"w-full mt-4"}),"setup"===a&&f.form,"confirm"===a&&h.form,"done"===a&&(0,y.jsx)(_O,{data:c,fee:_M,transactionId:l})]})})}let _P="[a-fA-F\\d:]",_N=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(_P,")|(?<=").concat(_P,")(?=\\s|$))"):"",_R="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",_D="[a-fA-F\\d]{1,4}",_L="\n(?:\n(?:".concat(_D,":){7}(?:").concat(_D,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(_D,":){6}(?:").concat(_R,"|:").concat(_D,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(_D,":){5}(?::").concat(_R,"|(?::").concat(_D,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(_D,":){4}(?:(?::").concat(_D,"){0,1}:").concat(_R,"|(?::").concat(_D,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(_D,":){3}(?:(?::").concat(_D,"){0,2}:").concat(_R,"|(?::").concat(_D,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(_D,":){2}(?:(?::").concat(_D,"){0,3}:").concat(_R,"|(?::").concat(_D,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(_D,":){1}(?:(?::").concat(_D,"){0,4}:").concat(_R,"|(?::").concat(_D,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(_D,"){0,5}:").concat(_R,"|(?::").concat(_D,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),_F=new RegExp("(?:^".concat(_R,"$)|(?:^").concat(_L,"$)")),_z=new RegExp("^".concat(_R,"$")),_V=new RegExp("^".concat(_L,"$")),_I=e=>e&&e.exact?_F:RegExp("(?:".concat(_N(e)).concat(_R).concat(_N(e),")|(?:").concat(_N(e)).concat(_L).concat(_N(e),")"),"g");_I.v4=e=>e&&e.exact?_z:RegExp("".concat(_N(e)).concat(_R).concat(_N(e)),"g"),_I.v6=e=>e&&e.exact?_V:RegExp("".concat(_N(e)).concat(_L).concat(_N(e)),"g");let _Z=()=>RegExp("^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|((([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]).)+([A-Za-z|[A-Za-z][A-Za-z0-9‌​-]*[A-Za-z0-9])))$","g"),_B={port:9981,ip:""},_H=_E.Ry().shape({port:_E.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:_E.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>_Z().test(e||""))});function _U(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,o=(0,_j.TA)({initialValues:_B,validationSchema:_H,onSubmit:async(e,t)=>{let n="".concat(e.ip,":").concat(e.port),o=await r(n);if(o.error){let e=o.error.replace("invalid peer address: address ".concat(n,":"),"");t.setStatus({error:e})}else k$("Connected to peer"),t.resetForm(),i(!1)}});return(0,y.jsx)(ud,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||o.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Connect to a peer by IP address."}),(0,y.jsx)("form",{onSubmit:o.handleSubmit,children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(Sx,{formik:o,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,y.jsx)(Sx,{formik:o,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,y.jsx)(S_,{formik:o,size:"medium",children:"Connect"})]})})]})})}function _W(e){var t;let{id:n,transaction:r,trigger:i,open:o,onOpenChange:a}=e;return(0,y.jsx)(ud,{title:k4((null==r?void 0:r.txType)?Su()(k7(r.txType)):"Transaction",n,16),trigger:i,open:o,onOpenChange:a,contentVariants:{className:"w-[800px]"},children:r?(0,y.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,y.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Inflow"}),(0,y.jsx)(Sn,{value:new(fW())((null==r?void 0:r.inflow)||0)})]}),(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Outflow"}),(0,y.jsx)(Sn,{value:new(fW())((null==r?void 0:r.outflow)||0).negated()})]}),(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Miner fee"}),(0,y.jsx)(Sn,{value:new(fW())((null==r?void 0:null===(t=r.raw.minerFees)||void 0===t?void 0:t.reduce((e,t)=>e.plus(t),new(fW())(0)))||0)})]}),(0,y.jsx)("div",{className:"flex-1"}),(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Timestamp"}),(0,y.jsx)(t1,{children:(0,vS.rN)((null==r?void 0:r.timestamp)||0,{timeStyle:"short"})})]})]}),(0,y.jsx)(lT,{children:JSON.stringify(null==r?void 0:r.raw,null,2)})]}):(0,y.jsx)(t1,{children:"Could not find transaction in wallet"})})}_E.Ry().shape({address:_E.Z_().required("Required"),description:_E.Z_().required("Required"),index:_E.Rx().integer().required("Required")});var _q=n(38001);function _$(e){let{title:t,description:n,address:r}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,y.jsx)(c2,{size:"20",font:"mono",children:t}),n&&(0,y.jsx)(t1,{children:n}),(0,y.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,y.jsx)("div",{className:"absolute",children:(0,y.jsx)(_q.Z,{size:200,value:r})})}),(0,y.jsx)(k9,{type:"address",value:r})]})}function _K(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:o}=e;return(0,y.jsx)(ud,{title:k4("Address",k2(t)||"",16),trigger:r,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,y.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,y.jsx)(_$,{address:t||""}):(0,y.jsx)(t1,{children:"Could not retreive wallet address"})})})}function _Y(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{color:"amber",children:(0,y.jsx)(lc.qdM,{})}),(0,y.jsxs)(t1,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{color:"amber",children:(0,y.jsx)(lc.qdM,{})}),(0,y.jsxs)(t1,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let _G={docs:{index:"https://docs.sia.tech",sia101:"https://docs.sia.tech/get-started-with-sia/sia101",renting:"https://docs.sia.tech/renting/about-renting",wallet:"https://docs.sia.tech/your-sia-wallet/wallet-overview",hosting:"https://docs.sia.tech/hosting/about-hosting-on-sia",mining:"https://docs.sia.tech/mining/about-mining-on-sia",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://api.sia.tech",siaui:"https://docs.sia.tech/your-sia-wallet/sia-ui-faqs",brand:"https://docs.sia.tech/sia-integrations/sia-brand-guidelines"},website:{index:"https://sia.tech",tos:"https://sia.tech/terms-of-service",privacy:"https://sia.tech/privacy-policy"},github:{index:"https://github.com/SiaFoundation",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://github.com/SiaFoundation/siad",renterd:"https://github.com/SiaFoundation/renterd",walletd:"https://github.com/SiaFoundation/walletd",hostd:"https://github.com/SiaFoundation/hostd",siaui:"https://gitlab.com/NebulousLabs/Sia-UI"},discord:"https://sia.tech/discord"};function _X(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,fY.Hv)();return(0,y.jsx)(f3,{disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:n.map(e=>{let{id:t,label:n}=e;return(0,y.jsx)(f5,{value:t,children:n},t)})})}function _J(e){let{open:t,onOpenChange:n,securityEl:r}=e,{settings:i,setSettings:o,gpu:a}=(0,fY.Hv)();return(0,y.jsx)(ud,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,y.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,y.jsx)("div",{className:"flex flex-col gap-4",children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Display"}),(0,y.jsx)(t2,{size:"14",children:"Configure visual and locale display preferences."}),(0,y.jsx)(lg,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(c2,{size:"20",className:"flex-1",children:"Currency"}),(0,y.jsx)(_X,{})]}),(0,y.jsx)(t2,{size:"14",children:"Select a currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,y.jsx)(lg,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(c2,{size:"20",className:"flex-1",children:"Theme"}),(0,y.jsx)(pU,{})]}),(0,y.jsx)(t2,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),(0,y.jsx)(lg,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(c2,{size:"20",className:"flex-1",children:"GPU"}),(0,y.jsx)(hd,{disabled:!a.canGpuRender,checked:a.canGpuRender&&a.isGpuEnabled,onCheckedChange:a.setIsGpuEnabled,size:"medium"})]}),(0,y.jsxs)(t2,{size:"14",children:["Enable features that require a GPU."," ",a.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,y.jsx)(cF,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Security"}),(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Configure security preferences."}),(0,y.jsx)(lg,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(c2,{size:"20",className:"flex-1",children:"Lock app"}),(0,y.jsx)(hd,{size:"medium",checked:i.autoLock,onCheckedChange:e=>o({autoLock:e})}),(0,y.jsxs)(f3,{disabled:!i.autoLock,value:String(i.autoLockTimeout),onChange:e=>{o({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,y.jsx)(f5,{value:j6(5),children:"5 minutes"}),(0,y.jsx)(f5,{value:j6(10),children:"10 minutes"}),(0,y.jsx)(f5,{value:j6(20),children:"20 minutes"}),(0,y.jsx)(f5,{value:j6(30),children:"30 minutes"}),(0,y.jsx)(f5,{value:j6(60),children:"1 hour"})]})]}),(0,y.jsx)(t2,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,y.jsx)(cF,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Privacy"}),(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. All third-party APIs are optional and can be toggled on or off."}),(0,y.jsx)(lg,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(c2,{size:"20",className:"flex-1",children:"Sia Central"}),(0,y.jsx)(hd,{size:"medium",checked:i.siaCentral,onCheckedChange:e=>o({siaCentral:e})})]}),(0,y.jsx)(t2,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,y.jsx)(cF,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Help"}),(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Find information about the Sia software at our website, documentation site, and on Github. Join our active Discord community for discussion and help troubleshooting issues."}),(0,y.jsxs)("div",{className:"flex gap-4",children:[(0,y.jsxs)(di,{href:_G.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lc.lq1,{}),"Website"]}),(0,y.jsxs)(di,{href:_G.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lc.RdX,{}),"Docs"]}),(0,y.jsxs)(di,{href:_G.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lc.Sfn,{}),"About"]}),(0,y.jsxs)(di,{href:_G.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lc.b47,{}),"Discord"]})]})]})]})]})})}function _Q(e){let{sc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,y.jsx)(t3,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,y.jsx)(t1,{size:"12",weight:"semibold",children:(0,vS.Vz)(t)})}):(0,y.jsx)(ls,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,y.jsxs)(t3,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,y.jsx)(t1,{color:"amber",children:(0,y.jsx)(lc.qdM,{className:""})}),(0,y.jsx)(t1,{size:"12",weight:"semibold",children:(0,vS.Vz)(t)})]})}):null}function _0(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,sc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(_Q,{isSynced:t&&n,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(r,"%), balance may be incorrect."),sc:o}),s&&(0,y.jsxs)(lu,{size:"small",onClick:s,children:[(0,y.jsx)(lc.xHM,{}),"Receive"]}),(0,y.jsxs)(lu,{size:"small",variant:"accent",onClick:a,children:[(0,y.jsx)(lc.rW0,{}),"Send"]})]})}let _1={default:e=>"".concat((0,vS.rN)(e))};function _2(e){let{total:t,start:n,end:r,count:i}=e,o=r-n;return{total:t,diff:o,change:0===n?void 0:o/n*100,latest:r,average:t/i}}function _4(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function _3(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,pB.F)(),o=(0,b.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:vk.accent[800]}}:{sc:{label:"siacoin",color:vk.accentdark[800]}},[i]),a=(0,b.useMemo)(()=>{let e=function(e,t){if(!e||!e.length)return[];let n=Object.keys(j5()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let r=[];return"delta"===t?e.forEach((t,i)=>{let o={...t};0!==i&&(n.forEach(n=>{let r=t[n],a=e[i-1][n];o[n]=r-a}),r.push(o))}):r=e.slice(1),r}(t,"none"),i=function(e){if(!e||!e.length)return{};let t=Object.keys(j5()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let n=t.reduce((t,n)=>({...t,[n]:function(e,t){var n,r;let i=(null===(n=t[0])||void 0===n?void 0:n[e])||0,o=(null===(r=t[t.length-1])||void 0===r?void 0:r[e])||0,a=t.reduce((t,n)=>t+(n[e]||0),0);return _2({total:a,start:i,end:o,count:t.length})}(n,e)}),{});return{...n,total:function(e,t){let n=_4(e,t[0]),r=_4(e,t[t.length-1]),i=t.reduce((t,n)=>t+_4(e,n),0);return _2({total:i,start:n,end:r,count:t.length})}(t,e)}}(t);return{data:e,stats:i,config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,vS.Vz)(e),formatTimestamp:_1.default||_1.default,disableAnimations:!0},chartType:r,isLoading:n}},[t,n,o,r]);return(0,y.jsx)("div",{className:"relative",children:(0,y.jsx)(Ed,{id:"balance",height:200,allowConfiguration:!1,data:a.data,config:a.config,chartType:a.chartType})})}function _5(e){let{peers:t,connectPeer:n}=e;return(0,y.jsx)(Sh,{title:"Peers",actions:(0,y.jsx)(lu,{onClick:n,children:"Connect"}),entities:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function _6(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:o}=e;return(0,y.jsxs)("div",{className:(0,em.cx)("flex gap-1.5 items-center",r?"opacity-100":"opacity-50",i?"cursor-pointer":"cursor-auto",i&&(r?"hover:opacity-90":"hover:opacity-60")),onClick:()=>i&&i(!r),children:[o&&(0,y.jsx)("div",{className:"relative top-px",children:(0,y.jsx)(f9,{style:{backgroundColor:o}})}),(0,y.jsx)(t1,{size:t,children:n})]})}function _8(e){return 1008*e}function _7(e){return 4320*e}function _9(e){return e/16666666666666669e-22}function Ce(e){return e/1008}function Ct(e,t){return new Date().getTime()+_9(t-e)}function Cn(e){let{children:t,variant:n,align:r}=e;return(0,y.jsx)("div",{className:"relative",style:{top:"primary"===n?"6px":void 0,left:"start"===r?"0px":void 0,right:"end"===r?"0px":void 0},children:(0,y.jsx)(t1,{size:"10",color:"primary"===n?"contrast":"verySubtle",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function Cr(e){let{date:t,align:n,variant:r}=e;return t?(0,y.jsx)(Cn,{variant:r,align:n,children:(0,vS.rN)(t)}):null}function Ci(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,y.jsx)(Cn,{variant:r,align:n,children:t.toLocaleString()}):null}function Co(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:o,color:a,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!o)return null;let d=r.endHeight-r.startHeight,f=_9(d),h=Ct(n,r.startHeight),p=Ct(n,i),m=Ct(n,o),v=(p-h)/f,g=(m-h)/f;return(0,y.jsxs)("div",{className:(0,em.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:Ca(v),width:Ca(g-v)},children:[(0,y.jsx)("div",{className:(0,em.cx)("z-0 absolute w-full h-full","rounded-md","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10"),style:{width:"calc(100% + 8px)",left:"-4px"}}),(0,y.jsx)("div",{className:(0,em.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-blue-500/50 dark:border-blue-500/50"]:[],"green"===a?["bg-green-300 dark:bg-green-300","group-hover:bg-green-400 dark:group-hover:bg-green-400","border-green-500/50 dark:border-green-500/50"]:[],"amber"===a?["bg-amber-300 dark:bg-amber-300","group-hover:bg-amber-400 dark:group-hover:bg-amber-400","border-amber-500/50 dark:border-amber-500/50"]:[])}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Ca(1-g)}:{left:Ca(v)},children:[(0,y.jsx)(Ci,{blockHeight:i,align:"start",variant:"primary"}),(0,y.jsx)(Cn,{variant:"primary",children:t}),(0,y.jsx)(Ci,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,y.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Ca(1-g)}:{left:Ca(v)},children:[(0,y.jsx)(Cr,{date:p,align:"start",variant:"secondary"}),(0,y.jsx)(Cr,{date:m,align:"start",variant:"secondary"})]}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Ca(1-g)}:{left:Ca(v)},children:[(0,y.jsx)(Cr,{date:p,align:"start",variant:"secondary"}),(0,y.jsx)(Cr,{date:m,align:"start",variant:"secondary"})]})]})}function Ca(e){return"".concat(100*e,"%")}function Cs(e){let{currentHeight:t,eventHeight:n,range:r,label:i,bottomLabel:o,color:a,className:s,unconfirmedPing:l=!0}=e,u=!!n&&n>t,c=n&&!u&&t-n<6,d=r.endHeight-r.startHeight,f=_9(d),h=Ct(t,r.startHeight),p=n?Ct(t,n):0;return n?(0,y.jsx)("div",{className:(0,em.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",s),style:{left:"".concat(100*(p?(p-h)/f:0),"%")},children:(0,y.jsxs)("div",{className:(0,em.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[l&&c&&(0,y.jsx)("div",{className:(0,em.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,y.jsx)("div",{className:(0,em.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,y.jsx)("div",{className:(0,em.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===a?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===a?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===a?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,y.jsx)(Ci,{blockHeight:n,align:"start",variant:"primary"}),(0,y.jsx)(Cn,{variant:"primary",children:i})]}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,y.jsx)(Cr,{date:p,align:"start",variant:"secondary"}),o&&(0,y.jsx)(Cn,{variant:"secondary",children:o})]})]})}):null}function Cl(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:o,revisionHeight:a,proofHeight:s,range:l}=e,u=t-n<6;return(0,y.jsx)("div",{className:"group/main relative w-full",children:(0,y.jsx)("div",{className:"relative py-6",children:(0,y.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,y.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,y.jsxs)("div",{className:"group/segments",children:[(0,y.jsx)(Co,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,y.jsx)(Co,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,y.jsx)(Cs,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,y.jsx)(Cs,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,y.jsx)(Cs,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,y.jsx)(Cs,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var Cu=n(17335),Cc=n.n(Cu);function Cd(e){let{label:t,columns:n,enabled:r,setColumnsVisible:i,setColumnsHidden:o}=e,a=0===Cc()(n,r).length,s=Cc()(n,r).length===n.length;return(0,y.jsxs)(cH,{children:[(0,y.jsx)(dt,{children:t}),(0,y.jsxs)(cU,{children:[(0,y.jsx)(lu,{tip:"".concat(t,": show all"),icon:a?"contrast":"hover",variant:"ghost",onClick:e=>{e.stopPropagation(),i(n)},children:(0,y.jsx)(lc.xVB,{})}),(0,y.jsx)(lu,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(n)},children:(0,y.jsx)(lc.pHg,{})})]})]})}function Cf(e){let{title:t,children:n}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,y.jsx)(c2,{anchorLink:!0,size:"24",children:t}),(0,y.jsx)(t3,{className:"p-6",children:(0,y.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function Ch(e){let{title:t,description:n,control:r}=e;return(0,y.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,y.jsx)(c2,{size:"20",children:t}),(0,y.jsx)(t2,{size:"14",children:n})]}),(0,y.jsx)("div",{className:"",children:r})]})}function Cp(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=n||{},c=(0,_f.cI)(),d=(0,b.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,y.jsx)(ud,{title:a,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,y.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,y.jsx)("div",{className:"flex gap-1 justify-end",children:(0,y.jsx)(Sb,{variant:s,form:c,size:"small",children:l})})]})})})}function Cm(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:o}=e;return(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(t1,{font:"mono",weight:"bold",size:"20",children:t}),(0,y.jsxs)("div",{className:"flex items-center",children:[n?(0,y.jsxs)(lu,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(n," connected peers"),children:[(0,y.jsx)(t1,{color:"subtle",children:n.toLocaleString()}),(0,y.jsx)(lc.RK4,{})]}):null,i&&r?(0,y.jsx)(ls,{content:"Blockchain is synced",children:(0,y.jsx)("div",{className:"relative left-2",children:(0,y.jsxs)(lu,{variant:"ghost",state:"waiting",children:[(0,y.jsx)(t1,{color:"subtle",children:i.toLocaleString()}),(0,y.jsx)(t1,{color:"green",children:(0,y.jsx)(lc.Y3p,{})})]})})}):null]})]})}function Cv(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,y.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,y.jsx)(dU,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,y.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,y.jsx)(t1,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,y.jsx)(t1,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,y.jsx)(t1,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function Cg(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:o,nodeBlockHeight:a,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,y.jsx)(h7,{rootProps:{openDelay:100},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,y.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,y.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,y.jsxs)(t1,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,y.jsx)(dl,{size:30})]}),children:(0,y.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[300px]",children:[(0,y.jsx)(Cm,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,y.jsx)(cF,{className:"w-full mb-0.5"}):(0,y.jsx)(Cv,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{color:"contrast",size:"14",children:"Welcome to Sia! The blockchain is syncing to the current network height. Depending on your system this process may take a while."}),(0,y.jsx)(cF,{className:"w-full mb-1"})]}),c]})})}function Cy(e){let{testnetName:t}=e;return(0,y.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,y.jsx)(t1,{color:"lo",children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsxs)(t1,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function Cb(e){let{type:t,label:n,link:r,tip:i,icon:o,value:a,onClick:s,decimalsLimit:l,units:u}=e;return(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(ls,{align:"start",side:"bottom",content:i,children:(0,y.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,y.jsx)(t1,{className:"flex relative",children:o||(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(t1,{size:"12",ellipsis:!0,children:r?(0,y.jsx)(di,{href:r,target:"_blank",children:n}):n})]})}),(0,y.jsx)("div",{className:(0,em.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,y.jsx)(Sn,{value:a,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,y.jsx)(Sr,{value:a,variant:"value",size:"12",format:e=>"".concat(fq(e,l)," ").concat(u)})})]})}function Cx(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,suggestion:a,units:s,suggestionTip:l,averageTip:u,after:c,decimalsLimitSc:d=6,decimalsLimitFiat:f=6,tipsDecimalsLimitSc:h=0}=i,{setValue:p,value:m,error:v}=_m({name:t,field:i,form:n}),g=c||(()=>null);return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)(fJ,{name:t,size:"small",sc:m,units:s,decimalsLimitSc:d,decimalsLimitFiat:f,error:v,changed:n.formState.dirtyFields[t],placeholder:a||o,onChange:e=>{p(e,!0)},onBlur:()=>{p(m,!0)}}),(0,y.jsx)(g,{name:t,form:n,fields:r}),o&&(0,y.jsx)(Cb,{type:"siacoin",label:"Network average",tip:u||"Averages provided by Sia Central.",decimalsLimit:h,value:(0,vS.qN)(o),onClick:()=>{p(o,!0)}}),a&&l&&(0,y.jsx)(Cb,{type:"siacoin",label:"Suggestion",tip:l,decimalsLimit:h,value:(0,vS.qN)(a),onClick:()=>{p(a,!0)}})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function Cw(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,averageTip:a,suggestion:s,suggestionTip:l,decimalsLimit:u=2,placeholder:c,units:d}=i,{setValue:f,value:h,error:p}=_m({form:n,field:i,name:t});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)(f$,{name:t,value:h,units:d,decimalsLimit:u,placeholder:c?new(fW())(c):void 0,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{let t=void 0!==e?new(fW())(e):void 0;f(t,!0)},onBlur:()=>{f(h,!0)}}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,y.jsx)(Cb,{type:"number",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:u,value:o,units:d,onClick:()=>{f(o,!0)}}),s&&l&&(0,y.jsx)(Cb,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function Cj(e){let{label:t,link:n,tip:r,value:i,onClick:o}=e;return(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(ls,{align:"start",side:"bottom",content:r,children:(0,y.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,y.jsx)(t1,{className:"flex relative",children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(t1,{size:"12",children:n?(0,y.jsx)(di,{href:n,target:"_blank",children:t}):t})]})}),(0,y.jsx)("div",{className:"flex cursor-pointer items-center",onClick:o,children:(0,y.jsx)(t1,{size:"12",children:(0,y.jsx)(lP,{children:i})})})]})}function CE(e){let{name:t,form:n,fields:r,type:i}=e,o=r[t],{placeholder:a,suggestion:s,suggestionTip:l}=o,{ref:u,onChange:c,setValue:d,onBlur:f,error:h}=_m({name:t,form:n,field:o});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)(fE,{ref:u,name:t,placeholder:a,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,y.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,y.jsx)(Cj,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function Ck(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:o,suggestionTip:a}=i,{setValue:s,value:l,error:u}=_m({name:t,field:i,form:n});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)("div",{className:"flex justify-end w-full",children:(0,y.jsx)(hd,{name:t,size:"medium",checked:l,state:u?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{s(e,!0)},onBlur:()=>{s(l,!0)}})}),(0,y.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&a&&(0,y.jsx)(Cj,{label:"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function CS(e){let{name:t,form:n,fields:r}=e,i=r[t],{options:o,suggestion:a,suggestionTip:s}=i,{ref:l,onChange:u,setValue:c,onBlur:d,value:f,error:h}=_m({name:t,form:n,field:i});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)("div",{className:"flex justify-end w-full",children:(0,y.jsx)(f3,{ref:l,name:t,size:"small",value:f,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:d,children:null==o?void 0:o.map(e=>(0,y.jsx)(f5,{value:e.value,children:e.label},e.value))})}),(0,y.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&s&&(0,y.jsx)(Cj,{label:"Suggestion",tip:s,value:a?"on":"off",onClick:()=>{c(a,!0)}})})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function C_(e){let{title:t,category:n,form:r,fields:i}=e,o=Object.entries(i).filter(e=>{let[t,i]=e;return i.category===n&&!i.hidden&&(!i.show||i.show(r.getValues()))});return 0===o.length?null:(0,y.jsx)(Cf,{title:t,children:o.map((e,t)=>{let[n,a]=e;return(0,y.jsxs)(b.Fragment,{children:[(0,y.jsx)(Ch,{title:a.title,description:a.description,control:"number"===a.type?(0,y.jsx)(Cw,{form:r,name:n,fields:i}):"siacoin"===a.type?(0,y.jsx)(Cx,{form:r,name:n,fields:i}):"text"===a.type?(0,y.jsx)(CE,{form:r,name:n,fields:i}):"password"===a.type?(0,y.jsx)(CE,{form:r,type:"password",fields:i,name:n}):"boolean"===a.type?(0,y.jsx)(Ck,{form:r,name:n,fields:i}):"select"===a.type?(0,y.jsx)(CS,{form:r,name:n,fields:i}):null}),t{l(e,!0)},onBlur:()=>{l(u,!0)}}),a]});return o?(0,y.jsx)(Sy,{title:s.title,name:t,form:n,children:d}):d}var CO=n(75652),CM=n.n(CO);lc.lg1,lc.eHR,lc.I$H,lc.KiD,lc.P5r,lc.CCF,lc.w9S,lc.EL$,lc.aPl,lc.wEY,lc.EOT,lc.kSc,lc.W$S,lc.lJ7,lc.ORH,lc.ka0,lc.BdP,lc.d19,lc.Mes,lc.VUg,lc.U_S,lc.T85;let CT=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,b.useState)(!0),l=(0,b.useRef)(!1),u=(0,b.useRef)(0);return(0,b.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,b.createElement)(tL,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,b.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,b.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,b.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function CA(e){let{children:t}=e,[n,r]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{r(!0)},[]),(0,y.jsx)("div",{children:n?t:null})}function CP(e){let{passwordProtectRequestHooks:t,fallback:n,children:r,lockRoutes:i}=e;return(0,y.jsx)(CA,{children:(0,y.jsx)(fY.kl,{fallback:n,children:(0,y.jsx)(pB.f,{attribute:"class",children:(0,y.jsx)(CT,{children:(0,y.jsx)(fY.bW,{lockRoutes:i,passwordProtectRequestHooks:t,children:(0,y.jsxs)("div",{id:"root",className:lo,children:[(0,y.jsx)(kJ,{}),r]})})})})})})}n(331);var CN=n(30898),CR=n.n(CN),CD=n(92762);let CL=[];function CF(e,t){let{columns:n,columnsDefaultVisible:r,defaultSortField:i,sortOptions:o,disabledCategories:a}={disabledCategories:CL,...t},[s,l]=(0,CD.Z)("".concat(e,"/enabledColumns"),{defaultValue:r}),[u,c]=(0,CD.Z)("".concat(e,"/sortField"),{defaultValue:i}),[d,f]=(0,CD.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"}),h=(0,b.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),p=(0,b.useCallback)(e=>{l(t=>CM()([...t,...e]))},[l]),m=(0,b.useCallback)(e=>{l(t=>Cc()(t,e))},[l]),v=(0,b.useCallback)(()=>{l(r)},[l,r]),g=(0,b.useCallback)(e=>{if(u!==e){c(e),f("asc");return}f(e=>"desc"===e?"asc":"desc")},[u,c,f]),y=(0,b.useMemo)(()=>n.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[n,a]),x=(0,b.useMemo)(()=>n.filter(e=>{let t=e.fixed||s.includes(e.id),n=null==a?void 0:a.includes(e.category||"");return t&&!n}).map(e=>e.id),[n,s,a]),w=(0,b.useMemo)(()=>{if(!o)return[];let e=o.map(e=>e.id);return CR()(e,x)},[o,x]);return{configurableColumns:y,enabledColumns:x,toggleColumnVisibility:h,toggleSort:g,setSortDirection:f,setSortField:c,sortableColumns:w,sortField:u,setColumnsVisible:p,setColumnsHidden:m,sortDirection:d,resetDefaultColumnVisibility:v}}function Cz(){let e=(0,SO.useRouter)(),[t,n]=(0,b.useState)([]),r=(0,b.useCallback)(t=>{n(e=>{let n=e.filter(e=>e.id!==t.id);return n.concat(t)}),e.replace({query:{}})},[e,n]),i=(0,b.useCallback)(()=>{n([]),e.replace({query:{}})},[e,n]),o=(0,b.useCallback)(t=>{n(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,n]),a=(0,b.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,n,t]);return{filters:t,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}function CV(e){let{dataset:t,filters:n,sortField:r,sortDirection:i}=e;return(0,b.useMemo)(()=>{if(!t)return null;let e=Object.entries(n).map(e=>{let[t,n]=e;return n}),o=e.length?t.filter(t=>{for(let n of e)if(!n.fn(t))return!1;return!0}):t;return[...o=o.sort((e,t)=>{let n=e[r],o=t[r];return"desc"===i?n instanceof fW()&&o instanceof fW()?n.lte(o)?1:-1:n<=o?1:-1:n instanceof fW()&&o instanceof fW()?n.gte(o)?1:-1:n>=o?1:-1})]},[t,n,r,i])}function CI(){let e=(0,SO.useRouter)(),[t,n]=(0,b.useState)([]),r=(0,b.useCallback)(t=>{n(e=>{let n=e.filter(e=>e.id!==t.id);return n.concat(t)}),e.replace({query:{}})},[e,n]),i=(0,b.useCallback)(()=>{n([]),e.replace({query:{}})},[e,n]),o=(0,b.useCallback)(t=>{n(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,n]),a=(0,b.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,n,t]);return{filters:t,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}let CZ=new(fW())(0);function CB(e){let{sc:t}=e,{settings:n}=(0,fY.Hv)(),r=(0,fG.BW)({config:{swr:{revalidateOnFocus:!1}}}),i=(0,b.useMemo)(()=>{var e;return n.siaCentral&&r.data?new(fW())((null===(e=r.data)||void 0===e?void 0:e.rates.sc[n.currency.id])||CZ):CZ},[r.data,n]),o=(0,b.useMemo)(()=>new(fW())(t).times(i),[t,i]);return i.isZero()?{}:{fiat:o,currency:n.currency}}function CH(e){return new(fW())(e).div(1e3).div(1e3).div(1e3).div(1e3)}function CU(e){return new(fW())(e).times(1e3).times(1e3).times(1e3).times(1e3)}function CW(e,t){let n=t.reduce((e,t)=>{let n=e.startHeight,r=e.endHeight;return t.contractHeightStartr&&(r=t.contractHeightEnd),{startHeight:n,endHeight:r}},{startHeight:e,endHeight:0});n.endHeight=Math.max(n.endHeight,e)+720,n.startHeight=n.startHeight-720;let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=j8(1);let o=r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{});return{allDatesMap:o,range:n}}let Cq=/^[a-z]{2}$/i;function C$(e){if(!Cq.test(e)){let t=typeof e;throw TypeError("cc argument must be an ISO 3166-1 alpha-2 string, but got '".concat("string"===t?e:t,"' instead."))}let t=[...e.toUpperCase()].map(e=>e.codePointAt()+127397);return String.fromCodePoint(...t)}},2850:function(e,t,n){"use strict";n.d(t,{bW:function(){return L},kl:function(){return $},gw:function(){return i},Tc:function(){return U},du:function(){return W},Hv:function(){return D},iv:function(){return Z},rB:function(){return B},Nf:function(){return I},Tu:function(){return q},mw:function(){return z},q0:function(){return F},Tb:function(){return O},V1:function(){return V},Q5:function(){return H},D:function(){return T}});var r=n(79381);function i(e){return new Promise(t=>setTimeout(t,e))}var o=n(89644),a=n.n(o),s=n(2784);function l(e){return{...e,config:{...null==e?void 0:e.config}}}function u(e){return{...e,config:{...null==e?void 0:e.config}}}function c(e){return{...e,config:{...null==e?void 0:e.config}}}function d(e,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function f(e,t,n){var r,i;let o=function(e,t,n){var r,i,o,a;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(r=i.axios)||void 0===r?void 0:r.headers,...null==n?void 0:null===(a=n.config)||void 0===a?void 0:null===(o=a.axios)||void 0===o?void 0:o.headers},l=d(e,t,n);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,n);return{responseType:"json",...null===(r=t.config)||void 0===r?void 0:r.axios,...null==n?void 0:null===(i=n.config)||void 0===i?void 0:i.axios,headers:o}}function h(e,t,n,r){if(!t)return null;let i=(null==n?void 0:n.params)||{};if(r&&r.params&&(i={...i,...r.params}),!(t=function(e,t){if(e&&t){let n=Object.keys(t);for(let r of n){let n=String(t[r]);e.includes(":".concat(r))?e=e.replace(":".concat(r),n):e.includes("?")?e+="&".concat(r,"=").concat(encodeURIComponent(n)):e+="?".concat(r,"=").concat(encodeURIComponent(n))}}return e}(t,i)))return null;let o=d(e,n,r);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function p(e,t,n,r){let i=d(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var m=n(52322),v=n(82876),g=n(92762);function y(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}let b=["geforce 320m","geforce 8600","geforce 8600m gt","geforce 8800 gs","geforce 8800 gt","geforce 9400","geforce 9400m g","geforce 9400m","geforce 9600m gt","geforce 9600m","geforce fx go5200","geforce gt 120","geforce gt 130","geforce gt 330m","geforce gtx 285","google swiftshader","intel g41","intel g45","intel gma 4500mhd","intel gma x3100","intel hd 3000","intel q45","legacy","mali-2","mali-3","mali-4","quadro fx 1500","quadro fx 4","quadro fx 5","radeon hd 2400","radeon hd 2600","radeon hd 4670","radeon hd 4850","radeon hd 4870","radeon hd 5670","radeon hd 5750","radeon hd 6290","radeon hd 6300","radeon hd 6310","radeon hd 6320","radeon hd 6490m","radeon hd 6630m","radeon hd 6750m","radeon hd 6770m","radeon hd 6970m","sgx 543","sgx543"];function x(e){return e=e.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i,"$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g,"").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/,"$1")}let w="undefined"==typeof window,j=(()=>{if(w)return;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,r=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&n>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||r||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class E extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let k=[],S=[];function _(e){return null!=e}let C=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:n={},glContext:r,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:o="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>y(void 0,void 0,void 0,function*(){let a={};if(w)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==j?void 0:j.isIpad),isMobile:l=!!(null==j?void 0:j.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>y(void 0,void 0,void 0,function*(){let t=yield fetch(`${o}/${e}`).then(e=>e.json());if(4>parseInt(t.shift().split(".")[0],10))throw new E("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=n,{renderer:d}=n,f=(e,t,n,r,i)=>({device:i,fps:r,gpu:n,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=x(d)];else{var m;let e=r||function(e,t=!1){let n={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete n.powerPreference;let r=window.document.createElement("canvas"),i=r.getContext("webgl",n)||r.getContext("experimental-webgl",n);return null!=i?i:void 0}(null==j?void 0:j.isSafari12,i);if(!e)return f(0,"WEBGL_UNSUPPORTED");let t=e.getExtension("WEBGL_debug_renderer_info");if(t&&(d=e.getParameter(t.UNMASKED_RENDERER_WEBGL)),!d)return f(1,"FALLBACK");p=d,h="apple gpu"===(m=d=x(d))?function(e,t,n){let r;if(!n)return[t];let i=function(e){let t=e.createShader(35633),n=e.createShader(35632),r=e.createProgram();if(!(n&&t&&r))return;e.shaderSource(t,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),e.shaderSource(n,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),e.compileShader(t),e.compileShader(n),e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),e.detachShader(r,t),e.detachShader(r,n),e.deleteShader(t),e.deleteShader(n),e.useProgram(r);let i=e.createBuffer();e.bindBuffer(34962,i),e.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let o=e.getAttribLocation(r,"aPosition");e.vertexAttribPointer(o,3,5126,!1,0,0),e.enableVertexAttribArray(o),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let a=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,a),e.deleteProgram(r),e.deleteBuffer(i),a.join("")}(e),o="801621810",a="8016218135",s="80162181161",l=(null==j?void 0:j.isIpad)?[["a7",s,12],["a8",a,15],["a8x",a,15],["a9",a,15],["a9x",a,15],["a10",a,15],["a10x",a,15],["a12",o,15],["a12x",o,15],["a12z",o,15],["a14",o,15],["m1",o,15]]:[["a7",s,12],["a8",a,12],["a9",a,15],["a10",a,15],["a11",o,15],["a12",o,15],["a13",o,15],["a14",o,15]];return"80162181255"===i?r=l.filter(([,,e])=>e>=14):(r=l.filter(([,e])=>e===i)).length||(r=l),r.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return y(this,void 0,void 0,function*(){let n;let r=(e=>{let t=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];for(let n of t)if(e.includes(n))return n})(e);if(!r)return;let i=`${l?"m":"d"}-${r}${s?"-ipad":""}.json`,o=a[i]=null!==(t=a[i])&&void 0!==t?t:c(i);try{n=yield o}catch(e){if(e instanceof E)throw e;return}let d=function(e){var t;let n=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==n?void 0:n.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=n.filter(([,e])=>e===d);f.length||(f=n.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,n)=>0===t||e!==n[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o,a=0;for(;au?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:b}=window,x=u.width*b*u.height*b;for(let e of g){let[t,n]=e,r=t*n,i=Math.abs(x-r);ie===n?t-r:e-n);if(!v.length){let e=b.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,C,O]=v[0];if(-1===g)return f(0,"BLOCKLISTED",C,g,O);let M=l?e:t,T=0;for(let e=0;e=M[e]&&(T=e);return f(T,"BENCHMARK",C,g,O)});function O(){var e,t;let n=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!n||!!n.matches}let M=(0,s.createContext)({}),T=()=>(0,s.useContext)(M);function A(e){let{children:t}=e,n=function(){let[e,t]=(0,s.useState)({}),n=(0,s.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]),r=(0,s.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),i=(0,s.useCallback)(()=>{t({})},[t]),o=(0,s.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e]);return{setWorkflow:n,removeWorkflow:r,resetWorkflows:i,workflows:o}}();return(0,m.jsx)(M.Provider,{value:n,children:t})}let P=[{id:"usd",label:"USD",prefix:"$",fixed:2},{id:"cad",label:"CAD",prefix:"$",fixed:2},{id:"eur",label:"EUR",prefix:"€",fixed:2},{id:"gbp",label:"GBP",prefix:"\xa3",fixed:2},{id:"jpy",label:"JPY",prefix:"\xa5",fixed:2},{id:"aud",label:"AUD",prefix:"$",fixed:2},{id:"rub",label:"RUB",prefix:"₽",fixed:2},{id:"cny",label:"CNY",prefix:"\xa5",fixed:2},{id:"btc",label:"BTC",prefix:"₿",fixed:6},{id:"eth",label:"ETH",prefix:"Ξ",fixed:6}],N={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:P[0],recentApis:{},autoLock:!1,autoLockTimeout:6e5},R=(0,s.createContext)({}),D=()=>(0,s.useContext)(R);function L(e){let{children:t,...n}=e,i=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:i}=e,o=(0,s.useMemo)(()=>({...N,...i}),[i]),[a,l]=(0,g.Z)("v0/settings",{defaultValue:o});(0,s.useEffect)(()=>{l(e=>({...o,...e}))},[]);let u=(0,s.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=T(),d=(0,s.useCallback)(e=>{l(t=>({...t,...e}))},[l]),f=(0,s.useCallback)(e=>{let t=P.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,v.useRouter)(),p=(0,v.usePathname)(),[m,y]=(0,s.useState)({}),b=(0,s.useCallback)((e,t)=>{y(n=>({...n,[e]:t}))},[y]),x=(0,s.useCallback)(()=>{for(let[e,t]of(n&&h.push("".concat(n.login,"?prev=").concat([n.login].includes(p)?n.home:p)),d({password:""}),c(),(0,r.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=(0,s.useMemo)(()=>!!u.password,[u]),j=function(){let e=O(),[t,n]=(0,s.useState)(!1),[r,i]=(0,s.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},l]=(0,g.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),u=(0,s.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];l(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[l]),c=(0,s.useCallback)(async()=>{let e=!1;{let t=await C();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&u(!1,!1)}i(e),n(!0)},[i,u,a]);return(0,s.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:o,shouldRender:r&&o,setCanGpuRender:i,setIsGpuEnabled:u}}();return{settings:u,setSettings:d,setCurrency:f,currencyOptions:P,gpu:j,lock:x,isUnlocked:w,passwordProtectRequestHooks:t,setOnLockCallback:b}}(n);return(0,m.jsx)(R.Provider,{value:i,children:t})}function F(e){var t;let n=(0,s.useMemo)(()=>u(e),[e]),{settings:i,passwordProtectRequestHooks:o}=D(),l=h(i,n.route,n,void 0),c=(0,s.useMemo)(()=>{var t,r;return t=l?"".concat(l).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,r=n.disabled||o&&!i.password,!t||r?null:t},[l,e,n,o,i]);return(0,r.ZP)(c,async()=>{if(!n.route)throw Error("No route");let t=f(i,n,void 0);if(!l)throw Error("No route");try{let n=await a().post(l,e.payload,t);return n.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function z(e,t){let{setWorkflow:n,removeWorkflow:i}=T(),{mutate:o}=(0,r.kY)(),{settings:s}=D(),u=l(e);return{post:async e=>{let r=c(e);try{let l;let c=f(s,u,r),d=h(s,u.route,u,r);if(!d)throw Error("No route");"payload"in r&&(l=r.payload);let m="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=p(s,d,e,r);n(m,{path:v,payload:l});let g=await a().post(d,l,c);return t&&await t(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,i=arguments.length>2?arguments[2]:void 0;return o(n=>{if("string"!=typeof n)return!1;let i=p(s,n,e,r);return t(i)},n,i)},r,g),i(m),{status:g.status,data:g.data}}catch(e){var l,d;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function V(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=D(),{setWorkflow:o,removeWorkflow:s}=T(),u=l(e);return{put:async e=>{let r=c(e);try{let l;let c=f(i,u,r),d=h(i,u.route,u,r);if(!d)throw Error("No route");"payload"in r&&(l=r.payload);let m="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=p(i,d,e,r);o(m,{path:v,payload:l});let g=await a().put(d,l,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=p(i,n,e,r);return t(o)},o,a)},r,g),s(m),{status:g.status,data:g.data}}catch(e){var l,d;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function I(e){var t,n,i;let o=(0,s.useMemo)(()=>u(e),[e]),{settings:l,passwordProtectRequestHooks:c}=D(),d=h(l,o.route,o,void 0);return(0,r.ZP)((n=e.standalone?"".concat(e.standalone,"/").concat(d):d,i=o.disabled||c&&!l.password,!n||i?null:n),async()=>{if(!o.route)throw Error("No route");let e=f(l,o,void 0);if(!d)throw Error("No route");try{let t=await a().get(d,e);return t.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=o.config)||void 0===t?void 0:t.swr)}function Z(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=D(),{setWorkflow:o,removeWorkflow:s}=T(),u=l(e);return{delete:async e=>{let r=c(e);try{let l=f(i,u,r),c=h(i,u.route,u,r);if(!c)throw Error("No route");let d=p(i,c,e,r);o(c,{path:d});let m=await a().delete(c,l);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=p(i,n,e,r);return t(o)},o,a)},r,m),s(c),{status:m.status,data:m.data}}catch(e){var l,d;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function B(e){var t;let{get:n}=function(e){let{settings:t}=D(),n=l(e);return{get:async e=>{let r=c(e);try{let e=f(t,n,r),i=h(t,n.route,n,r);if(!i)throw Error("No route");let o=await a().get(i,e);return{status:o.status,data:o.data}}catch(t){var i,o,s,l;let e=(null===(i=t.response)||void 0===i?void 0:i.data)instanceof Blob?await (null===(o=t.response)||void 0===o?void 0:o.data.text()):(null===(s=t.response)||void 0===s?void 0:s.data)||t.message;return{status:null===(l=t.response)||void 0===l?void 0:l.status,error:e}}}}}({...e,config:{...e.config,axios:{...null===(t=e.config)||void 0===t?void 0:t.axios,responseType:"blob"}}});return{get:async(e,t)=>{let r=await n(t);return r.data&&function(e,t){let n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,document.body.appendChild(r),r.click(),setTimeout(()=>{document.body.removeChild(r),URL.revokeObjectURL(n)},100)}(e,r.data),r}}}function H(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[n,r]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{if(n)return;let i=setInterval(()=>{e()&&(r(!0),clearInterval(i))},t);return()=>clearInterval(i)},[e,n,t]),n}function U(){return Math.round((new Date().getTime()-14336e8)/6e5)}function W(){return Math.round((new Date().getTime()-16736e8)/6e5)}function q(e){let{settings:t}=D();return(0,s.useMemo)(()=>function(n,i,o){return(0,r.JG)(r=>{if("string"!=typeof r)return!1;let i=p(t,r,e,void 0);return n(i)},i,o)},[t,e])}function $(e){let{fallback:t,cacheProvider:n,children:i}=e;return(0,m.jsx)(A,{children:(0,m.jsx)(r.J$,{value:{fallback:t||{},provider:n},children:i})})}},88242:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{aXP:function(){return tQ},eHR:function(){return t6},xHM:function(){return t8},L6f:function(){return t7},rW0:function(){return t9},osk:function(){return ne},JaG:function(){return nt},wWN:function(){return iq},Dkj:function(){return i2},fi8:function(){return iW},EMN:function(){return nl},bdU:function(){return nu},VUy:function(){return nc},Cp0:function(){return nd},kqg:function(){return nf},Mes:function(){return nh},DI$:function(){return nm},NlZ:function(){return nC},Y3p:function(){return nM},Z$8:function(){return nO},tEK:function(){return nT},cRw:function(){return nA},F3j:function(){return nP},PcV:function(){return nR},QN4:function(){return nN},Jsc:function(){return nD},bQp:function(){return nF},Y9T:function(){return nL},wEY:function(){return nI},olJ:function(){return nZ},KiD:function(){return nU},B4q:function(){return nY},_Eq:function(){return nW},VHe:function(){return iQ},Jrl:function(){return nG},aPl:function(){return nX},kBK:function(){return iX},c_L:function(){return n1},Bpb:function(){return n2},vzB:function(){return n4},iG7:function(){return n7},nDH:function(){return n9},d19:function(){return re},w9S:function(){return rt},VBo:function(){return i$},q0D:function(){return ra},Hb6:function(){return ro},CCF:function(){return rs},L37:function(){return rc},ROc:function(){return i0},UG6:function(){return iJ},lq1:function(){return rd},zvn:function(){return iK},EL$:function(){return rh},BdP:function(){return rb},e1T:function(){return rx},P5r:function(){return rw},RdX:function(){return rj},U_S:function(){return rE},V8Q:function(){return rM},POp:function(){return rT},nCM:function(){return rN},kSc:function(){return rP},TtX:function(){return rA},mBM:function(){return iG},b47:function(){return rL},Sfn:function(){return rF},W$S:function(){return rH},T85:function(){return rU},c6N:function(){return rW},Ckx:function(){return rq},EOT:function(){return r$},RK4:function(){return rY},XJM:function(){return rQ},RRj:function(){return r0},ka0:function(){return r1},hzZ:function(){return r3},n6M:function(){return r5},VUg:function(){return ie},owP:function(){return it},Fs9:function(){return ir},wGX:function(){return ii},Wet:function(){return is},ZEk:function(){return il},$Iz:function(){return ip},UBs:function(){return im},shL:function(){return iv},hiv:function(){return ig},mli:function(){return ib},lJ7:function(){return i1},ORH:function(){return iE},I98:function(){return ik},R$6:function(){return iS},JCW:function(){return iP},xVB:function(){return iN},pHg:function(){return iR},I$H:function(){return iD},oaN:function(){return iY},qdM:function(){return iL},Gu6:function(){return iF},SmH:function(){return iZ},RFr:function(){return iB},lg1:function(){return iH}});var a,s,l,u,c,d,f,h,p,m,v,g,y,b,x,w,j,E,k,S,_,C,O,M,T,A,P,N,R,D,L,F,z,V,I,Z,B,H,U,W,q,$,K,Y,G,X,J,Q,ee,et,en,er,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,eb,ex,ew,ej,eE,ek,eS,e_,eC,eO,eM,eT,eA,eP,eN,eR,eD,eL,eF,ez,eV,eI,eZ,eB,eH,eU,eW,eq,e$,eK,eY,eG,eX,eJ,eQ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,to,ta,ts,tl,tu,tc,td,tf,th,tp,tm,tv,tg,ty,tb,tx,tw,tj,tE,tk,tS,t_,tC,tO,tM,tT,tA,tP,tN,tR,tD,tL,tF,tz,tV=["width","height","viewBox"],tI=["tabindex"],tZ={focusable:"false",preserveAspectRatio:"xMidYMid meet"},tB=n(13980),tH=n.n(tB),tU=n(2784);function tW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tq(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var tY=["className","children","tabIndex"],tG=["tabindex"],tX=tU.forwardRef(function(e,t){var n=e.className,r=e.children,a=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,a=void 0===r?"0 0 ".concat(t," ").concat(n):r,s=o(e,tV),l=s.tabindex,u=o(s,tI),c=i(i(i({},tZ),u),{},{width:t,height:n,viewBox:a});return c["aria-label"]||c["aria-labelledby"]||c.title?(c.role="img",null!=l&&(c.focusable="true",c.tabindex=l)):c["aria-hidden"]=!0,c}(tq(tq({},tK(e,tY)),{},{tabindex:a})),l=s.tabindex,u=tK(s,tG);return n&&(u.className=n),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tU.createElement("svg",u,r)});tX.displayName="Icon",tX.propTypes={"aria-hidden":tH().string,"aria-label":tH().string,"aria-labelledby":tH().string,children:tH().node,className:tH().string,height:tH().oneOfType([tH().number,tH().string]),preserveAspectRatio:tH().string,tabIndex:tH().string,viewBox:tH().string,width:tH().oneOfType([tH().number,tH().string]),xmlns:tH().string},tX.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var tJ=["children"],tQ=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,tJ);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=tU.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),n)}),t0=["children"],t1=["children"],t2=["children"],t4=["children"],t3=["children"],t5=["children"],t6=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,t0);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=tU.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tU.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),t8=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,t1);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=tU.createElement("path",{d:"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z"})),n)}),t7=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,t2);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=tU.createElement("path",{d:"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z"})),n)}),t9=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,t4);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=tU.createElement("path",{d:"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z"})),n)}),ne=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,t3);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=tU.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),n)}),nt=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,t5);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=tU.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),p||(p=tU.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),m||(m=tU.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),v||(v=tU.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),g||(g=tU.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),y||(y=tU.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),b||(b=tU.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),x||(x=tU.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),w||(w=tU.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),n)}),nn=["children"],nr=["children"],ni=["children"],no=["children"],na=["children"],ns=["children"],nl=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nn);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=tU.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),nu=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nr);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),E||(E=tU.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),nc=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,ni);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=tU.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),nd=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,no);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=tU.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),nf=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,na);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=tU.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),nh=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,ns);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=tU.createElement("path",{d:"M30,15H27.9492A12.0071,12.0071,0,0,0,17,4.0508V2H15V4.0508A12.0071,12.0071,0,0,0,4.0508,15H2v2H4.0508A12.0071,12.0071,0,0,0,15,27.9492V30h2V27.9492A12.0071,12.0071,0,0,0,27.9492,17H30ZM17,25.9492V22H15v3.9492A10.0166,10.0166,0,0,1,6.0508,17H10V15H6.0508A10.0166,10.0166,0,0,1,15,6.0508V10h2V6.0508A10.0166,10.0166,0,0,1,25.9492,15H22v2h3.9492A10.0166,10.0166,0,0,1,17,25.9492Z"})),n)}),np=["children"],nm=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,np);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=tU.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),M||(M=tU.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),n)}),nv=["children"],ng=["children"],ny=["children"],nb=["children"],nx=["children"],nw=["children"],nj=["children"],nE=["children"],nk=["children"],nS=["children"],n_=["children"],nC=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nv);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),T||(T=tU.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),nO=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,ng);return tU.createElement(tX,t$({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=tU.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),P||(P=tU.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),n)}),nM=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,ny);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=tU.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),R||(R=tU.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),n)}),nT=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nb);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),D||(D=tU.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),L||(L=tU.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),nA=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nx);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),F||(F=tU.createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),n)}),nP=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nw);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),z||(z=tU.createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),n)}),nN=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nj);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),V||(V=tU.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),nR=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nE);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),I||(I=tU.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),nD=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nk);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=tU.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),B||(B=tU.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),nL=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nS);return tU.createElement(tX,t$({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),H||(H=tU.createElement("path",{d:"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z"})),U||(U=tU.createElement("path",{d:"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z"})),n)}),nF=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,n_);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),W||(W=tU.createElement("path",{d:"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z"})),q||(q=tU.createElement("path",{d:"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z"})),n)}),nz=["children"],nV=["children"],nI=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nz);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),$||($=tU.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),K||(K=tU.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),nZ=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nV);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=tU.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),G||(G=tU.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),nB=["children"],nH=["children"],nU=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nB);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),X||(X=tU.createElement("path",{d:"M21,12V10H17V7H15v3H13a2.002,2.002,0,0,0-2,2v3a2.002,2.002,0,0,0,2,2h6v3H11v2h4v3h2V22h2a2.0023,2.0023,0,0,0,2-2V17a2.002,2.002,0,0,0-2-2H13V12Z"})),J||(J=tU.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12.0353,12.0353,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14.0412,14.0412,0,0,0,16,2Z"})),n)}),nW=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nH);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Q||(Q=tU.createElement("circle",{cx:"22",cy:"24",r:"2"})),ee||(ee=tU.createElement("path",{d:"M29.7769,23.4785A8.64,8.64,0,0,0,22,18a8.64,8.64,0,0,0-7.7769,5.4785L14,24l.2231.5215A8.64,8.64,0,0,0,22,30a8.64,8.64,0,0,0,7.7769-5.4785L30,24ZM22,28a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,22,28Z"})),et||(et=tU.createElement("circle",{cx:"8",cy:"8",r:"1"})),en||(en=tU.createElement("circle",{cx:"8",cy:"16",r:"1"})),er||(er=tU.createElement("circle",{cx:"8",cy:"24",r:"1"})),ei||(ei=tU.createElement("path",{d:"M5,21h7V19H5V13H21v3h2V5a2,2,0,0,0-2-2H5A2,2,0,0,0,3,5V27a2,2,0,0,0,2,2h7V27H5ZM5,5H21v6H5Z"})),n)}),nq=["children"],n$=["children"],nK=["children"],nY=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nq);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eo||(eo=tU.createElement("path",{d:"M8 18H12V20H8zM14 18H18V20H14zM8 14H12V16H8zM14 22H18V24H14zM20 14H24V16H20zM20 22H24V24H20z"})),ea||(ea=tU.createElement("path",{d:"M27,3H5A2.0025,2.0025,0,0,0,3,5V27a2.0025,2.0025,0,0,0,2,2H27a2.0025,2.0025,0,0,0,2-2V5A2.0025,2.0025,0,0,0,27,3Zm0,2,0,4H5V5ZM5,27V11H27l0,16Z"})),n)}),nG=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,n$);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=tU.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),el||(el=tU.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),nX=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nK);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eu||(eu=tU.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ec||(ec=tU.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),nJ=["children"],nQ=["children"],n0=["children"],n1=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nJ);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=tU.createElement("path",{d:"M25.7,9.3l-7-7C18.5,2.1,18.3,2,18,2H8C6.9,2,6,2.9,6,4v24c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V10C26,9.7,25.9,9.5,25.7,9.3 z M18,4.4l5.6,5.6H18V4.4z M24,28H8V4h8v6c0,1.1,0.9,2,2,2h6V28z"})),ef||(ef=tU.createElement("path",{d:"M10 22H22V24H10zM10 16H22V18H10z"})),n)}),n2=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,nQ);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=tU.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),n4=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,n0);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=tU.createElement("path",{d:"M13 7L12.3 6.3 8.5 10.1 8.5 1 7.5 1 7.5 10.1 3.7 6.3 3 7 8 12zM13 12v2H3v-2H2v2l0 0c0 .6.4 1 1 1h10c.6 0 1-.4 1-1l0 0v-2H13z"})),n)}),n3=["children"],n5=["children"],n6=["children"],n8=["children"],n7=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,n3);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=tU.createElement("path",{d:"M10 6H14V10H10zM18 6H22V10H18zM10 14H14V18H10zM18 14H22V18H18zM10 22H14V26H10zM18 22H22V26H18z"})),n)}),n9=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,n5);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ev||(ev=tU.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm5,3.1055a12.0136,12.0136,0,0,1,2.9158,1.8994L23.5034,8H21ZM13.3784,27.7026A11.9761,11.9761,0,0,1,8.1157,6.9761L9.4648,9h3.3423l-1.5,4H7.2793L5.8967,17.1475,8.4648,21h5l1.4319,2.1475ZM16,28c-.2034,0-.4016-.02-.6025-.03l1.3967-4.19a1.9876,1.9876,0,0,0-.2334-1.7412l-1.4319-2.1475A1.9962,1.9962,0,0,0,13.4648,19h-3.93L8.1033,16.8525,8.7207,15H11v2h2V14.1812l2.9363-7.83-1.8726-.7022L13.5571,7H10.5352L9.728,5.7891A11.7941,11.7941,0,0,1,19,4.395V8a2.0025,2.0025,0,0,0,2,2h2.5857A1.9865,1.9865,0,0,0,25,9.4141l.1406-.1407.2818-.68A11.9813,11.9813,0,0,1,27.3,12H22.5986a1.9927,1.9927,0,0,0-1.9719,1.665L20.03,17.1064a1.99,1.99,0,0,0,.991,2.086l2.1647,1.4638,1.4585,3.646A11.9577,11.9577,0,0,1,16,28Zm8.8145-8.6563L22.1,17.5088l-.1-.06L22.5986,14h5.2207a11.743,11.743,0,0,1-1.7441,8.4951Z"})),n)}),re=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,n6);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=tU.createElement("path",{d:"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z"})),ey||(ey=tU.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),eb||(eb=tU.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),rt=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,n8);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ex||(ex=tU.createElement("path",{d:"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z"})),n)}),rn=["children"],rr=["children"],ri=["children"],ro=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rn);return tU.createElement(tX,t$({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ew||(ew=tU.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),ra=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rr);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=tU.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),rs=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,ri);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=tU.createElement("path",{d:"M2 28H30V30H2zM27 11a1 1 0 001-1V7a1 1 0 00-.66-.94l-11-4a1 1 0 00-.68 0l-11 4A1 1 0 004 7v3a1 1 0 001 1H6V24H4v2H28V24H26V11zM6 7.7L16 4.06 26 7.7V9H6zM18 24H14V11h4zM8 11h4V24H8zM24 24H20V11h4z"})),n)}),rl=["children"],ru=["children"],rc=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rl);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ek||(ek=tU.createElement("path",{d:"M26 20L24 20 24 24 20 24 20 26 24 26 24 30 26 30 26 26 30 26 30 24 26 24z"})),eS||(eS=tU.createElement("path",{d:"M28,8H16l-3.4-3.4C12.2,4.2,11.7,4,11.2,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h14v-2H4V6h7.2l3.4,3.4l0.6,0.6H28v8h2v-8 C30,8.9,29.1,8,28,8z"})),n)}),rd=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,ru);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e_||(e_=tU.createElement("path",{d:"M14,4a7,7,0,1,1-7,7,7,7,0,0,1,7-7m0-2a9,9,0,1,0,9,9A9,9,0,0,0,14,2Z"})),eC||(eC=tU.createElement("path",{d:"M28,11a13.9563,13.9563,0,0,0-4.1051-9.8949L22.4813,2.5187A11.9944,11.9944,0,0,1,5.5568,19.5194l-.0381-.0381L4.1051,20.8949A13.9563,13.9563,0,0,0,14,25v3H10v2H20V28H16V24.84A14.0094,14.0094,0,0,0,28,11Z"})),n)}),rf=["children"],rh=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rf);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eO||(eO=tU.createElement("path",{d:"M16,.0005,4,5.9784V20.0443a12,12,0,0,0,24,0V5.9784Zm6.83,27.3138L16,23.9119V26.14l5.0361,2.5088A10.0025,10.0025,0,0,1,6,20.0443V7.21L16,2.2284,26,7.21v3.75L16,5.9783V8.2062l10,4.9816v3.75L16,11.9562v2.2279l10,4.9815v.8787a9.9045,9.9045,0,0,1-.37,2.6871L16,17.934v2.2279l8.8952,4.4313A10.0252,10.0252,0,0,1,22.83,27.3143Z"})),n)}),rp=["children"],rm=["children"],rv=["children"],rg=["children"],ry=["children"],rb=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rp);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eM||(eM=tU.createElement("path",{d:"M11 24H21V26H11zM13 28H19V30H13zM16 2A10 10 0 006 12a9.19 9.19 0 003.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 018 12a8 8 0 0116 0 7.2 7.2 0 01-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0026 12 10 10 0 0016 2z"})),n)}),rx=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rm);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=tU.createElement("path",{d:"M19,14a3,3,0,1,0-3-3A3,3,0,0,0,19,14Zm0-4a1,1,0,1,1-1,1A1,1,0,0,1,19,10Z"})),eA||(eA=tU.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4Zm0,22H6V20l5-5,5.59,5.59a2,2,0,0,0,2.82,0L21,19l5,5Zm0-4.83-3.59-3.59a2,2,0,0,0-2.82,0L18,19.17l-5.59-5.59a2,2,0,0,0-2.82,0L6,17.17V6H26Z"})),n)}),rw=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rv);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=tU.createElement("path",{d:"M29.53,6.15a1,1,0,0,0-1,0L20,10.38V7a1,1,0,0,0-1.45-.89L10,10.38V3A1,1,0,0,0,9,2H3A1,1,0,0,0,2,3V28H30V7A1,1,0,0,0,29.53,6.15ZM22,26H18V19h4Zm6,0H24V18a1,1,0,0,0-1-1H17a1,1,0,0,0-1,1v8H4V4H8v9.62l10-5v5l10-5Z"})),n)}),rj=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rg);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eN||(eN=tU.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"})),eR||(eR=tU.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"})),n)}),rE=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,ry);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=tU.createElement("path",{d:"M29.88,15.52l-6-11A1,1,0,0,0,23,4H9a1,1,0,0,0-.88.52l-6,11a1,1,0,0,0,0,1l6,11A1,1,0,0,0,9,28H23a1,1,0,0,0,.88-.52l6-11A1,1,0,0,0,29.88,15.52ZM22.93,7l4.39,8h-9.5ZM16,14.14,10.82,6H21.18ZM9.07,7l5.11,8H4.68ZM4.68,17h9.5L9.07,25ZM16,17.86,21.18,26H10.82ZM22.93,25l-5.11-8h9.5Z"})),n)}),rk=["children"],rS=["children"],r_=["children"],rC=["children"],rO=["children"],rM=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rk);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eL||(eL=tU.createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),eF||(eF=tU.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n)}),rT=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rS);return tU.createElement(tX,t$({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ez||(ez=tU.createElement("path",{d:"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"})),eV||(eV=tU.createElement("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"})),n)}),rA=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,r_);return tU.createElement(tX,t$({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eI||(eI=tU.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),rP=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rC);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eZ||(eZ=tU.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),rN=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rO);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=tU.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),rR=["children"],rD=["children"],rL=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rR);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eH||(eH=tU.createElement("path",{d:"M13.647,14.907a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,13.647,14.907Zm4.745,0a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,18.392,14.907Z"})),eU||(eU=tU.createElement("path",{d:"M24.71,4H7.29A2.6714,2.6714,0,0,0,4.625,6.678V24.254A2.6714,2.6714,0,0,0,7.29,26.932H22.032l-.689-2.405,1.664,1.547L24.58,27.53,27.375,30V6.678A2.6714,2.6714,0,0,0,24.71,4ZM19.692,20.978s-.468-.559-.858-1.053a4.1021,4.1021,0,0,0,2.353-1.547,7.4391,7.4391,0,0,1-1.495.767,8.5564,8.5564,0,0,1-1.885.559,9.1068,9.1068,0,0,1-3.367-.013,10.9127,10.9127,0,0,1-1.911-.559,7.6184,7.6184,0,0,1-.949-.442c-.039-.026-.078-.039-.117-.065a.18.18,0,0,1-.052-.039c-.234-.13-.364-.221-.364-.221a4.0432,4.0432,0,0,0,2.275,1.534c-.39.494-.871,1.079-.871,1.079a4.7134,4.7134,0,0,1-3.965-1.976,17.409,17.409,0,0,1,1.872-7.579,6.4285,6.4285,0,0,1,3.653-1.365l.13.156a8.77,8.77,0,0,0-3.419,1.703s.286-.156.767-.377a9.7625,9.7625,0,0,1,2.951-.819,1.2808,1.2808,0,0,1,.221-.026,11,11,0,0,1,2.626-.026A10.5971,10.5971,0,0,1,21.2,11.917a8.6518,8.6518,0,0,0-3.237-1.651l.182-.208a6.4285,6.4285,0,0,1,3.653,1.365,17.409,17.409,0,0,1,1.872,7.579A4.752,4.752,0,0,1,19.692,20.978Z"})),n)}),rF=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rD);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eW||(eW=tU.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),n)}),rz=["children"],rV=["children"],rI=["children"],rZ=["children"],rB=["children"],rH=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rz);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eq||(eq=tU.createElement("path",{d:"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z"})),e$||(e$=tU.createElement("path",{d:"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z"})),n)}),rU=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rV);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eK||(eK=tU.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),n)}),rW=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rI);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=tU.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2 l2.7-2.7l0.8,0.8L8.8,8l2.7,2.7L10.7,11.5z"})),eG||(eG=tU.createElement("path",{d:"M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2l2.7-2.7l0.8,0.8L8.8,8 l2.7,2.7L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),n)}),rq=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rZ);return tU.createElement(tX,t$({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eX||(eX=tU.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),eJ||(eJ=tU.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),r$=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rB);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eQ||(eQ=tU.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),e0||(e0=tU.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),rK=["children"],rY=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rK);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e1||(e1=tU.createElement("circle",{cx:"21",cy:"26",r:"2"})),e2||(e2=tU.createElement("circle",{cx:"21",cy:"6",r:"2"})),e4||(e4=tU.createElement("circle",{cx:"4",cy:"16",r:"2"})),e3||(e3=tU.createElement("path",{d:"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z"})),n)}),rG=["children"],rX=["children"],rJ=["children"],rQ=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rG);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e5||(e5=tU.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),r0=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rX);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e6||(e6=tU.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),r1=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,rJ);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e8||(e8=tU.createElement("path",{d:"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z"})),e7||(e7=tU.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),r2=["children"],r4=["children"],r3=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,r2);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=tU.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM8,18a2,2,0,1,1,2-2A2,2,0,0,1,8,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,16,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,24,18Z"})),te||(te=tU.createElement("path",{fill:"none",d:"M10,16a2,2,0,1,1-2-2A2,2,0,0,1,10,16Zm6-2a2,2,0,1,0,2,2A2,2,0,0,0,16,14Zm8,0a2,2,0,1,0,2,2A2,2,0,0,0,24,14Z","data-icon-path":"inner-path"})),n)}),r5=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,r4);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tt||(tt=tU.createElement("path",{d:"M29.37,14.75,20,10V6a4,4,0,0,0-8,0v4L2.63,14.75a1,1,0,0,0-.63.93v5a1,1,0,0,0,1,1,1,1,0,0,0,.29-.05L12,18v5L8.55,24.72a1,1,0,0,0-.55.9V29a1,1,0,0,0,1,1,.9.9,0,0,0,.28,0L16,28l6.72,2A.9.9,0,0,0,23,30a1,1,0,0,0,1-1V25.62a1,1,0,0,0-.55-.9L20,23V18l8.71,3.61a1,1,0,0,0,.29.05,1,1,0,0,0,1-1v-5A1,1,0,0,0,29.37,14.75ZM28,19.15,18,15v9.24l4,2v1.43l-6-1.75-6,1.75V26.24l4-2V15L4,19.15V16.3l10-5.07V6a2,2,0,0,1,4,0v5.23L28,16.3Z"})),n)}),r6=["children"],r8=["children"],r7=["children"],r9=["children"],ie=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,r6);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=tU.createElement("path",{d:"M30 18A6 6 0 1020 22.46v7.54l4-1.8926 4 1.8926V22.46A5.98 5.98 0 0030 18zm-4 8.84l-2-.9467L22 26.84V23.65a5.8877 5.8877 0 004 0zM24 22a4 4 0 114-4A4.0045 4.0045 0 0124 22zM9 14H16V16H9zM9 8H19V10H9z"})),tr||(tr=tU.createElement("path",{d:"M6,30a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,6,2H22a2.0021,2.0021,0,0,1,2,2V8H22V4H6V28H16v2Z"})),n)}),it=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,r8);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=tU.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),to||(to=tU.createElement("path",{d:"M12,12H10V8h2a2,2,0,0,0,0-4H10A2.0023,2.0023,0,0,0,8,6v.5H6V6a4.0045,4.0045,0,0,1,4-4h2a4,4,0,0,1,0,8Z"})),ta||(ta=tU.createElement("path",{d:"M22.4479,21.0337A10.971,10.971,0,0,0,19.9211,4.7446l-.999,1.73A8.9967,8.9967,0,1,1,5,14H3a10.9916,10.9916,0,0,0,18.0338,8.4478L28.5859,30,30,28.5859Z"})),n)}),ir=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,r7);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=tU.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),ii=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,r9);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tl||(tl=tU.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),tu||(tu=tU.createElement("path",{d:"M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"})),n)}),io=["children"],ia=["children"],is=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,io);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tc||(tc=tU.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),n)}),il=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,ia);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=tU.createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),n)}),iu=["children"],ic=["children"],id=["children"],ih=["children"],ip=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,iu);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tf||(tf=tU.createElement("path",{d:"M28,4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM18,28H14V24h4Zm10-6H4V6H28Z"})),n)}),im=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,ic);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=tU.createElement("path",{d:"M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5 C2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z"})),n)}),iv=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,id);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tp||(tp=tU.createElement("path",{d:"M13.5,8.4c0-0.1,0-0.3,0-0.4c0-0.1,0-0.3,0-0.4l1-0.8c0.4-0.3,0.4-0.9,0.2-1.3l-1.2-2C13.3,3.2,13,3,12.6,3 c-0.1,0-0.2,0-0.3,0.1l-1.2,0.4c-0.2-0.1-0.4-0.3-0.7-0.4l-0.3-1.3C10.1,1.3,9.7,1,9.2,1H6.8c-0.5,0-0.9,0.3-1,0.8L5.6,3.1 C5.3,3.2,5.1,3.3,4.9,3.4L3.7,3C3.6,3,3.5,3,3.4,3C3,3,2.7,3.2,2.5,3.5l-1.2,2C1.1,5.9,1.2,6.4,1.6,6.8l0.9,0.9c0,0.1,0,0.3,0,0.4 c0,0.1,0,0.3,0,0.4L1.6,9.2c-0.4,0.3-0.5,0.9-0.2,1.3l1.2,2C2.7,12.8,3,13,3.4,13c0.1,0,0.2,0,0.3-0.1l1.2-0.4 c0.2,0.1,0.4,0.3,0.7,0.4l0.3,1.3c0.1,0.5,0.5,0.8,1,0.8h2.4c0.5,0,0.9-0.3,1-0.8l0.3-1.3c0.2-0.1,0.4-0.2,0.7-0.4l1.2,0.4 c0.1,0,0.2,0.1,0.3,0.1c0.4,0,0.7-0.2,0.9-0.5l1.1-2c0.2-0.4,0.2-0.9-0.2-1.3L13.5,8.4z M12.6,12l-1.7-0.6c-0.4,0.3-0.9,0.6-1.4,0.8 L9.2,14H6.8l-0.4-1.8c-0.5-0.2-0.9-0.5-1.4-0.8L3.4,12l-1.2-2l1.4-1.2c-0.1-0.5-0.1-1.1,0-1.6L2.2,6l1.2-2l1.7,0.6 C5.5,4.2,6,4,6.5,3.8L6.8,2h2.4l0.4,1.8c0.5,0.2,0.9,0.5,1.4,0.8L12.6,4l1.2,2l-1.4,1.2c0.1,0.5,0.1,1.1,0,1.6l1.4,1.2L12.6,12z"})),tm||(tm=tU.createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),n)}),ig=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,ih);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tv||(tv=tU.createElement("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zM21 12c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3S22.7 12 21 12zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2V24zM11 20c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3S9.3 20 11 20z"})),n)}),iy=["children"],ib=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,iy);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=tU.createElement("path",{d:"M8 15H24V17H8z"})),n)}),ix=["children"],iw=["children"],ij=["children"],iE=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,ix);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ty||(ty=tU.createElement("path",{d:"M23,9h6a2,2,0,0,0,2-2V3a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2V4H11V3A2,2,0,0,0,9,1H3A2,2,0,0,0,1,3V7A2,2,0,0,0,3,9H9a2,2,0,0,0,2-2V6h4V26a2.0023,2.0023,0,0,0,2,2h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V25a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V17h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V6h4V7A2,2,0,0,0,23,9Zm0-6h6V7H23ZM9,7H3V3H9ZM23,25h6v4H23Zm0-11h6v4H23Z",transform:"translate(0 .005)"})),n)}),ik=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,iw);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tb||(tb=tU.createElement("path",{d:"M29.391,14.527L17.473,2.609C17.067,2.203,16.533,2,16,2s-1.067,0.203-1.473,0.609L2.609,14.527C2.203,14.933,2,15.466,2,16 s0.203,1.067,0.609,1.473l11.917,11.917C14.933,29.797,15.467,30,16,30s1.067-0.203,1.473-0.609l11.917-11.917 C29.797,17.067,30,16.534,30,16S29.797,14.933,29.391,14.527z M21,18H11v-4h10V18z"})),tx||(tx=tU.createElement("path",{fill:"none",d:"M11 14H21V18H11z","data-icon-path":"inner-path"})),n)}),iS=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,ij);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tw||(tw=tU.createElement("path",{d:"M3 9L3.7 9.7 7.5 5.9 7.5 15 8.5 15 8.5 5.9 12.3 9.7 13 9 8 4zM3 4V2h10v2h1V2c0-.6-.4-1-1-1H3C2.4 1 2 1.4 2 2v2H3z"})),n)}),i_=["children"],iC=["children"],iO=["children"],iM=["children"],iT=["children"],iA=["children"],iP=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,i_);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tj||(tj=tU.createElement("path",{d:"M21,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H21a2,2,0,0,1,2,2v4.06l5.42-3.87A1,1,0,0,1,30,9V23a1,1,0,0,1-1.58.81L23,19.94V24A2,2,0,0,1,21,26ZM4,8V24H21V18a1,1,0,0,1,1.58-.81L28,21.06V10.94l-5.42,3.87A1,1,0,0,1,21,14V8Z"})),n)}),iN=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,iC);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tE||(tE=tU.createElement("path",{d:"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z"})),tk||(tk=tU.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),n)}),iR=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,iO);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tS||(tS=tU.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),t_||(t_=tU.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),n)}),iD=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,iM);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tC||(tC=tU.createElement("path",{d:"M22 17H24V19H22z"})),tO||(tO=tU.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),iL=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,iT);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tM||(tM=tU.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"})),tT||(tT=tU.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),n)}),iF=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,iA);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tA||(tA=tU.createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),tP||(tP=tU.createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),n)}),iz=["children"],iV=["children"],iI=["children"],iZ=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,iz);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tN||(tN=tU.createElement("path",{d:"M26.0022,4H5.998A1.998,1.998,0,0,0,4,5.998V26.002A1.998,1.998,0,0,0,5.998,28H26.0022A1.9979,1.9979,0,0,0,28,26.002V5.998A1.9979,1.9979,0,0,0,26.0022,4ZM14.8752,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z"})),tR||(tR=tU.createElement("path",{fill:"none",d:"M14.8751,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z","data-icon-path":"inner-path"})),n)}),iB=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,iV);return tU.createElement(tX,t$({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tD||(tD=tU.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM28,15H22A24.26,24.26,0,0,0,19.21,4.45,12,12,0,0,1,28,15ZM16,28a5,5,0,0,1-.67,0A21.85,21.85,0,0,1,12,17H20a21.85,21.85,0,0,1-3.3,11A5,5,0,0,1,16,28ZM12,15a21.85,21.85,0,0,1,3.3-11,6,6,0,0,1,1.34,0A21.85,21.85,0,0,1,20,15Zm.76-10.55A24.26,24.26,0,0,0,10,15h-6A12,12,0,0,1,12.79,4.45ZM4.05,17h6a24.26,24.26,0,0,0,2.75,10.55A12,12,0,0,1,4.05,17ZM19.21,27.55A24.26,24.26,0,0,0,22,17h6A12,12,0,0,1,19.21,27.55Z"})),n)}),iH=tU.forwardRef(function(e,t){var n=e.children,r=tK(e,iI);return tU.createElement(tX,t$({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tL||(tL=tU.createElement("path",{d:"M29.3164,8.0513l-18-6A1,1,0,0,0,10.4,2.2L4,7V2H2V30H4V11l6.4,4.8a1,1,0,0,0,.9165.1489l18-6a1,1,0,0,0,0-1.8974ZM10,13,4.6665,9,10,5Zm4-.0542-2,.667V4.3872l2,.667Zm4-1.333-2,.6665V5.7207l2,.6665Zm2-.667V7.0542L25.8379,9Z"})),tF||(tF=tU.createElement("path",{d:"M20,22a4,4,0,0,0-8,0h2a2,2,0,1,1,2,2H8v2h8A4.0045,4.0045,0,0,0,20,22Z"})),tz||(tz=tU.createElement("path",{d:"M26,22a4.0045,4.0045,0,0,0-4,4h2a2,2,0,1,1,2,2H12v2H26a4,4,0,0,0,0-8Z"})),n)}),iU=n(52322);function iW(e){let{size:t=24}=e;return(0,iU.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iU.jsx)("path",{d:"M96 152v8H48v-8C48 68.1 116.1 0 200 0h48c83.9 0 152 68.1 152 152v8H352v-8c0-57.4-46.6-104-104-104H200C142.6 48 96 94.6 96 152zM0 224c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32h-5.1L388.5 469c-2.6 24.4-23.2 43-47.7 43H107.2c-24.6 0-45.2-18.5-47.7-43L37.1 256H32c-17.7 0-32-14.3-32-32z"})})}function iq(e){let{size:t=24}=e;return(0,iU.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,iU.jsx)("path",{d:"M464 64C490.5 64 512 85.49 512 112V176C512 202.5 490.5 224 464 224H48C21.49 224 0 202.5 0 176V112C0 85.49 21.49 64 48 64H464zM448 128H320V160H448V128zM464 288C490.5 288 512 309.5 512 336V400C512 426.5 490.5 448 464 448H48C21.49 448 0 426.5 0 400V336C0 309.5 21.49 288 48 288H464zM192 352V384H448V352H192z"})})}function i$(e){let{size:t=24,className:n}=e;return(0,iU.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,iU.jsx)("path",{d:"M256 0v128h128L256 0zM224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM64 72C64 67.63 67.63 64 72 64h80C156.4 64 160 67.63 160 72v16C160 92.38 156.4 96 152 96h-80C67.63 96 64 92.38 64 88V72zM64 136C64 131.6 67.63 128 72 128h80C156.4 128 160 131.6 160 136v16C160 156.4 156.4 160 152 160h-80C67.63 160 64 156.4 64 152V136zM304 384c8.875 0 16 7.125 16 16S312.9 416 304 416h-47.25c-16.38 0-31.25-9.125-38.63-23.88c-2.875-5.875-8-6.5-10.12-6.5s-7.25 .625-10 6.125l-7.75 15.38C187.6 412.6 181.1 416 176 416H174.9c-6.5-.5-12-4.75-14-11L144 354.6L133.4 386.5C127.5 404.1 111 416 92.38 416H80C71.13 416 64 408.9 64 400S71.13 384 80 384h12.38c4.875 0 9.125-3.125 10.62-7.625l18.25-54.63C124.5 311.9 133.6 305.3 144 305.3s19.5 6.625 22.75 16.5l13.88 41.63c19.75-16.25 54.13-9.75 66 14.12c2 4 6 6.5 10.12 6.5H304z"})})}function iK(e){let{size:t=24,className:n}=e;return(0,iU.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,iU.jsx)("path",{d:"M464 288h-416C21.5 288 0 309.5 0 336v96C0 458.5 21.5 480 48 480h416c26.5 0 48-21.5 48-48v-96C512 309.5 490.5 288 464 288zM320 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S337.6 416 320 416zM416 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S433.6 416 416 416zM464 32h-416C21.5 32 0 53.5 0 80v192.4C13.41 262.3 29.92 256 48 256h416c18.08 0 34.59 6.254 48 16.41V80C512 53.5 490.5 32 464 32z"})})}function iY(e){let{size:t=24,className:n}=e;return(0,iU.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,iU.jsx)("path",{d:"M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"})})}function iG(e){let{size:t=24}=e;return(0,iU.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iU.jsx)("path",{d:"M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"})})}function iX(e){let{size:t=24}=e;return(0,iU.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iU.jsx)("path",{d:"M7.994 153.5c1.326 0 2.687 .3508 3.975 1.119L208 271.5v223.8c0 9.741-7.656 16.71-16.01 16.71c-2.688 0-5.449-.7212-8.05-2.303l-152.2-92.47C12.13 405.3 0 383.3 0 359.5v-197.7C0 156.1 3.817 153.5 7.994 153.5zM426.2 117.2c0 2.825-1.352 5.647-4.051 7.248L224 242.6L25.88 124.4C23.19 122.8 21.85 119.1 21.85 117.2c0-2.8 1.32-5.603 3.965-7.221l165.1-100.9C201.7 3.023 212.9 0 224 0s22.27 3.023 32.22 9.07l165.1 100.9C424.8 111.6 426.2 114.4 426.2 117.2zM440 153.5C444.2 153.5 448 156.1 448 161.8v197.7c0 23.75-12.12 45.75-31.78 57.69l-152.2 92.5C261.5 511.3 258.7 512 256 512C247.7 512 240 505 240 495.3V271.5l196-116.9C437.3 153.8 438.7 153.5 440 153.5z"})})}function iJ(e){let{size:t=24}=e;return(0,iU.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,iU.jsx)("path",{d:"M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"})})}function iQ(e){let{size:t=24}=e;return(0,iU.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,width:t,fill:"currentColor",children:(0,iU.jsx)("path",{d:"M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432V346.1z"})})}function i0(e){let{size:t=24}=e;return(0,iU.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,iU.jsx)("path",{d:"M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"})})}function i1(e){let{size:t=24}=e;return(0,iU.jsxs)("svg",{version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t,height:t,fill:"currentColor",viewBox:"0 0 32 32",children:[(0,iU.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,iU.jsx)("polygon",{points:"12,5.4 10.6,4 8,6.6 5.4,4 4,5.4 6.6,8 4,10.6 5.4,12 8,9.4 10.6,12 12,10.6 9.4,8 "}),(0,iU.jsx)("polygon",{points:"12,21.4 10.6,20 8,22.6 5.4,20 4,21.4 6.6,24 4,26.6 5.4,28 8,25.4 10.6,28 12,26.6 9.4,24 "}),(0,iU.jsx)("polygon",{points:"17,15 17,2 15,2 15,15 2,15 2,17 15,17 15,30 17,30 17,17 30,17 30,15 "}),(0,iU.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function i2(e){let{size:t=24}=e;return(0,iU.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iU.jsx)("path",{d:"M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"})})}},9969:function(e,t,n){"use strict";n.d(t,{pz:function(){return ee},HI:function(){return o},Z7:function(){return q},Uy:function(){return $},e$:function(){return J},oe:function(){return Q},S0:function(){return et},YX:function(){return G},oV:function(){return L},sg:function(){return F},B$:function(){return D},d_:function(){return a},DQ:function(){return s},cq:function(){return N},IK:function(){return R},GP:function(){return P},nH:function(){return l},$:function(){return k},s2:function(){return O},ni:function(){return M},uf:function(){return _},Os:function(){return T},FV:function(){return E},wy:function(){return V},xw:function(){return Z},Jv:function(){return z},p$:function(){return ei},Iy:function(){return I},Q5:function(){return B},ZM:function(){return eo},f$:function(){return el},yu:function(){return H},KJ:function(){return U},og:function(){return K},Wl:function(){return d},cQ:function(){return c},ys:function(){return p},QL:function(){return h},Tu:function(){return m},aO:function(){return b},gU:function(){return g},a0:function(){return w},cg:function(){return y},Qq:function(){return v},RF:function(){return es}});var r=n(79381),i=n(2850);let o="/bus/state";function a(e){return(0,i.Nf)({...e,route:o})}function s(e){return(0,i.Nf)({...e,route:"/bus/consensus/state"})}function l(){let e=a({config:{swr:{revalidateOnFocus:!1}}}),t=(0,r.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.network)==="Zen Testnet"?(0,i.du)():(0,i.Tc)()},{refreshInterval:6e4,keepPreviousData:!0});return t.data||0}let u="/bus/syncer/peers";function c(e){return(0,i.Nf)({...e,route:u})}function d(e){return(0,i.mw)({...e,route:"/bus/syncer/connect"},async e=>{e(e=>e===u)})}let f="/bus/txpool/transactions";function h(e){return(0,i.Nf)({...e,route:f})}function p(e){return(0,i.mw)({...e,route:"/bus/txpool/broadcast"},async e=>{await (0,i.gw)(2e3),e(e=>e.startsWith(f)||e.startsWith(x))})}function m(e){return(0,i.Nf)({...e,route:"/bus/wallet"})}function v(e){return(0,i.Nf)({...e,route:"/bus/wallet/transactions"})}function g(e){return(0,i.mw)({...e,route:"/bus/wallet/fund"})}function y(e){return(0,i.mw)({...e,route:"/bus/wallet/sign"})}function b(e){return(0,i.mw)({...e,route:"/bus/wallet/discard"})}let x="/bus/wallet/pending";function w(e){return(0,i.Nf)({...e,route:x})}let j="/bus/search/hosts";function E(e){return(0,i.q0)({...e,route:j})}function k(e){return(0,i.Nf)({...e,route:"/bus/host/:hostKey"})}let S="/bus/hosts/blocklist";function _(e){return(0,i.Nf)({...e,route:S})}let C="/bus/hosts/allowlist";function O(e){return(0,i.Nf)({...e,route:C})}function M(e){return(0,i.V1)({...e,route:"/bus/hosts/allowlist"},async e=>{e(e=>!![j,C,A].find(t=>e.startsWith(t)))})}function T(e){return(0,i.V1)({...e,route:"/bus/hosts/blocklist"},async e=>{e(e=>!![j,S,A].find(t=>e.startsWith(t)))})}let A="/bus/contracts";function P(e){return(0,i.Nf)({...e,route:A})}function N(e){return(0,i.Nf)({...e,route:"/bus/contract/:id"})}function R(e){return(0,i.iv)({...e,route:"/bus/contracts/:id/delete"})}function D(e){return(0,i.Nf)({...e,route:"/bus/buckets"})}function L(e){return(0,i.mw)({...e,route:"/bus/buckets"},async e=>{e(e=>e.startsWith("/bus/buckets"))})}function F(e){return(0,i.iv)({...e,route:"/bus/buckets/:name"},async e=>{e(e=>e.startsWith("/bus/buckets"))})}function z(e){return(0,i.Nf)({...e,route:"/bus/objects/:key"})}function V(e){return(0,i.Nf)({...e,route:"/bus/objects/:key"})}function I(e){return(0,i.Nf)({...e,route:"/bus/search/objects"})}function Z(e){return(0,i.iv)({...e,route:"/bus/objects/:key"},async e=>{e(e=>e.startsWith("/bus/objects/"))})}function B(e){return(0,i.Nf)({...e,route:"/bus/stats/objects"})}function H(e){return(0,i.Nf)({...e,route:"/bus/setting/:key"})}function U(e){return(0,i.V1)({...e,route:"/bus/setting/:key"},async(e,t)=>{e(e=>e.startsWith("/bus/setting/".concat(t.params.key)))})}let W="/bus/alerts";function q(e){return(0,i.Nf)({...e,route:W})}function $(e){return(0,i.mw)({...e,route:"/bus/alerts/dismiss"},async e=>{e(e=>e.startsWith(W))})}function K(e){return(0,i.Nf)({...e,route:"/bus/slab/:key/objects"})}let Y="/autopilot/state";function G(e){return(0,i.Nf)({...e,route:Y})}let X="/autopilot/config";function J(e){return(0,i.Nf)({...e,route:X})}function Q(e){return(0,i.V1)({...e,route:X},async e=>{e(e=>e===X);let t=async()=>{await (0,i.gw)(1e3),e(e=>e===Y)};t()})}let ee="/autopilot/hosts";function et(e){return(0,i.q0)({...e,route:ee})}var en=n(54073),er=n.n(en);function ei(e){return(0,i.rB)({...e,route:"/worker/objects/:key"})}function eo(e){var t;return(0,i.V1)({...e,config:{...null==e?void 0:e.config,axios:{...null==e?void 0:null===(t=e.config)||void 0===t?void 0:t.axios,headers:{"Content-Type":"multipart/form-data"}}},route:"/worker/objects/:key"},async e=>{e(e=>e.startsWith("/bus/objects"))})}let ea=er()(e=>e(),5e3),es="/worker/rhp/scan";function el(e){return(0,i.mw)({...e,route:es},async(e,t,n)=>{let{payload:{hostKey:r}}=t;e(e=>e.startsWith("/autopilot/hosts"),e=>null==e?void 0:e.map(e=>e.host.publicKey===r?{...e,host:{...e.host,interactions:{...e.host.interactions,LastScan:new Date().toISOString(),LastScanSuccess:!n.data.scanError},settings:n.data.settings}}:e),!1),e(e=>e.startsWith("/bus/search/hosts"),e=>null==e?void 0:e.map(e=>e.publicKey===r?{...e,interactions:{...e.interactions,LastScan:new Date().toISOString(),LastScanSuccess:!n.data.scanError},settings:n.data.settings}:e),!1),ea(()=>{e(e=>e.startsWith("/autopilot/hosts")||e.startsWith("/bus/search/hosts"),e=>e,!0)})})}},47025:function(e,t,n){"use strict";n.d(t,{BW:function(){return s},JL:function(){return o},BF:function(){return a}});var r=n(2850);let i="https://api.siacentral.com/v2";function o(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/hosts/list?showinactive=false&sort=download_speed&dir=desc&protocol=rhp3&page=0&limit=1000",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}function a(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/hosts/network/averages",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}function s(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/market/exchange-rate?currencies=sc",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}n(98537)},96206:function(e,t,n){"use strict";n.d(t,{vW:function(){return o},rN:function(){return s},yF:function(){return a},Vz:function(){return f},ES:function(){return h},qN:function(){return c},ll:function(){return u}}),n(81395),n(18149);var r=n(6391),i=n.n(r);function o(e,t){let n="number"==typeof e?e:e instanceof i()?e.toNumber():Number(e),{fixed:r=2}=t||{};if(!n)return"0 B";if(n<1e3)return"".concat(n," B");let o=Math.floor(Math.log10(n)/Math.log10(1e3)),a=n/Math.pow(1e3,o);return a.toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function a(e,t){let{fixed:n=0,units:r="",abbreviated:o=!1}=t||{},a=new(i())(e||0);if(o){let e=a.toNumber();if(e<1e3)return a.toString();let t=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],i=Math.floor(Math.log10(e)/Math.log10(1e3)),o=e/Math.pow(1e3,i);return"".concat(o.toFixed(n)).concat(t[i]?" ".concat(t[i]):"").concat(r?" ".concat(r):"")}return"".concat(a.toFormat(n)).concat(r?" ".concat(r):"")}function s(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let l=new r.BigNumber("10").exponentiatedBy(24);function u(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(l).toFixed(t)):new r.BigNumber(e).dividedBy(l)}function c(e){return new r.BigNumber(new r.BigNumber(e).times(l).toFixed(0))}let d={fixed:3,dynamicUnits:!0,hastingUnits:!1};function f(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:o}={...d,...t},a=new r.BigNumber(1e12),s=new r.BigNumber(1e3),l=new r.BigNumber(e),c=new r.BigNumber(e).abs(),f=l.isNegative()?"-":"";if(!i)return"".concat(f).concat(u(c).toFormat(n)," SC");if(c.dividedBy(a).isLessThan(1))return o?"".concat(f).concat(c," H"):"".concat(f,"0 SC");let h=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(s),new r.BigNumber(1)),i=c.dividedBy(a.multipliedBy(t));if(i.isLessThan(s)||e===h.length-1)return"".concat(f).concat(i.toFormat(n)," ").concat(h[e])}return""}function h(e){return e.toLocaleString()+" SF"}},2271:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26252:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(43219),n(2784),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55046:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return p},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return g},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return b},redirect:function(){return u.redirect},permanentRedirect:function(){return u.permanentRedirect},RedirectType:function(){return u.RedirectType},notFound:function(){return c.notFound}});let r=n(2784),i=n(60587),o=n(58839),a=n(26252),s=n(4424),l=n(44673),u=n(75903),c=n(47067),d=Symbol("internal for urlsearchparams readonly");function f(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw f()}delete(){throw f()}set(){throw f()}sort(){throw f()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function p(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(o.SearchParamsContext),t=(0,r.useMemo)(()=>e?new h(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(o.PathnameContext)}function v(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function g(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(i.GlobalLayoutRouterContext),t=(0,r.useContext)(o.PathParamsContext);return e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],i=Array.isArray(r),o=i?r[1]:r;if(!o||o.startsWith("__PAGE__"))continue;let a=i&&("c"===r[2]||"oc"===r[2]);a?n[r[0]]=r[1].split("/"):i&&(n[r[0]]=r[1]),n=e(t,n)}return n}(e.tree):t}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(i.LayoutRouterContext);return function e(t,n,r,i){let o;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)o=t[1][n];else{var a;let e=t[1];o=null!=(a=e.children)?a:Object.values(e)[0]}if(!o)return i;let l=o[0],u=(0,s.getSegmentValue)(l);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(o,n,!1,i))}(t,e)}function b(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47067:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return i}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75903:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return s},redirect:function(){return l},permanentRedirect:function(){return u},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return f}});let o=n(7552),a="NEXT_REDIRECT";function s(e,t,n){void 0===n&&(n=!1);let r=Error(a);r.digest=a+";"+t+";"+e+";"+n;let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function u(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r&&("true"===i||"false"===i)}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(i=r||(r={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let r=n(2271),i=(0,r.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4424:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23116:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25146:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(67858),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(43219),i=n(16794),o=i._(n(2784)),a=r._(n(28316)),s=r._(n(37412)),l=n(31918),u=n(97686),c=n(45802);n(84759);let d=n(54365),f=r._(n(2088)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,n,r,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}})}function m(e){let[t,n]=o.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:h,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:b,setBlurComplete:x,setShowAltText:w,onLoad:j,onError:E,...k}=e;return o.default.createElement("img",{...k,...m(d),loading:h,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(E&&(e.src=e.src),e.complete&&p(e,f,y,b,x,v))},[n,f,y,b,x,E,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,f,y,b,x,v)},onError:e=>{w(!0),"empty"!==f&&x(!0),E&&E(e)}})});function g(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...m(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let y=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(d.RouterContext),r=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||r||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:a,onLoadingComplete:s}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,b]=(0,o.useState)(!1),[x,w]=(0,o.useState)(!1),{props:j,meta:E}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:x});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...j,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:b,setShowAltText:w,ref:t}),E.priority?o.default.createElement(g,{isAppRouter:!n,imgAttributes:j}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return x}});let r=n(43219),i=r._(n(2784)),o=n(31068),a=n(33134),s=n(39585),l=n(51570),u=n(19868),c=n(54365),d=n(60587),f=n(93629),h=n(25146),p=n(10694),m=n(23116),v=new Set;function g(e,t,n,r,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let i=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,o=t+"%"+n+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,n,r);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let b=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:v,children:b,prefetch:x=null,passHref:w,replace:j,shallow:E,scroll:k,locale:S,onClick:_,onMouseEnter:C,onTouchStart:O,legacyBehavior:M=!1,...T}=e;n=b,M&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let A=i.default.useContext(c.RouterContext),P=i.default.useContext(d.AppRouterContext),N=null!=A?A:P,R=!A,D=!1!==x,L=null===x?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:F,as:z}=i.default.useMemo(()=>{if(!A){let e=y(s);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(A,s,!0);return{href:e,as:v?(0,o.resolveHref)(A,v):t||e}},[A,s,v]),V=i.default.useRef(F),I=i.default.useRef(z);M&&(r=i.default.Children.only(n));let Z=M?r&&"object"==typeof r&&r.ref:t,[B,H,U]=(0,f.useIntersection)({rootMargin:"200px"}),W=i.default.useCallback(e=>{(I.current!==z||V.current!==F)&&(U(),I.current=z,V.current=F),B(e),Z&&("function"==typeof Z?Z(e):"object"==typeof Z&&(Z.current=e))},[z,Z,F,U,B]);i.default.useEffect(()=>{N&&H&&D&&g(N,F,z,{locale:S},{kind:L},R)},[z,F,H,S,D,null==A?void 0:A.locale,N,R,L]);let q={ref:W,onClick(e){M||"function"!=typeof _||_(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,o,s,l,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(p):p()}(e,N,F,z,j,E,k,S,R,D)},onMouseEnter(e){M||"function"!=typeof C||C(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(D||!R)&&g(N,F,z,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){M||"function"!=typeof O||O(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(D||!R)&&g(N,F,z,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)}};if((0,l.isAbsoluteUrl)(z))q.href=z;else if(!M||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,h.getDomainLocale)(z,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(z,e,null==A?void 0:A.defaultLocale))}return M?i.default.cloneElement(r,q):i.default.createElement("a",{...T,...q},n)}),x=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),i=n(30857),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:o,elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]);let p=(0,r.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31256:function(e,t,n){"use strict";var r=n(48834).lW;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Head:function(){return y},NextScript:function(){return b},Html:function(){return x},Main:function(){return w},default:function(){return j}});let i=c(n(2784)),o=n(13150),a=n(95383),s=n(82809),l=c(n(10274)),u=n(15333);function c(e){return e&&e.__esModule?e:{default:e}}let d=new Set;function f(e,t,n){let r=(0,a.getPageFiles)(e,"/_app"),i=n?[]:(0,a.getPageFiles)(e,t);return{sharedFiles:r,pageFiles:i,allFiles:[...new Set([...r,...i])]}}function h(e,t){let{assetPrefix:n,buildManifest:r,assetQueryString:o,disableOptimizedLoading:a,crossOrigin:s}=e;return r.polyfillFiles.filter(e=>e.endsWith(".js")&&!e.endsWith(".module.js")).map(e=>i.default.createElement("script",{key:e,defer:!a,nonce:t.nonce,crossOrigin:t.crossOrigin||s,noModule:!0,src:"".concat(n,"/_next/").concat(e).concat(o)}))}function p(e){let{styles:t}=e;if(!t)return null;let n=Array.isArray(t)?t:[];if(t.props&&Array.isArray(t.props.children)){let e=e=>{var t,n;return null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html};t.props.children.forEach(t=>{Array.isArray(t)?t.forEach(t=>e(t)&&n.push(t)):e(t)&&n.push(t)})}return i.default.createElement("style",{"amp-custom":"",dangerouslySetInnerHTML:{__html:n.map(e=>e.props.dangerouslySetInnerHTML.__html).join("").replace(/\/\*# sourceMappingURL=.*\*\//g,"").replace(/\/\*@ sourceURL=.*?\*\//g,"")}})}function m(e,t,n){let{dynamicImports:r,assetPrefix:o,isDevelopment:a,assetQueryString:s,disableOptimizedLoading:l,crossOrigin:u}=e;return r.map(e=>!e.endsWith(".js")||n.allFiles.includes(e)?null:i.default.createElement("script",{async:!a&&l,defer:!l,key:e,src:"".concat(o,"/_next/").concat(encodeURI(e)).concat(s),nonce:t.nonce,crossOrigin:t.crossOrigin||u}))}function v(e,t,n){var r;let{assetPrefix:o,buildManifest:a,isDevelopment:s,assetQueryString:l,disableOptimizedLoading:u,crossOrigin:c}=e,d=n.allFiles.filter(e=>e.endsWith(".js")),f=null==(r=a.lowPriorityFiles)?void 0:r.filter(e=>e.endsWith(".js"));return[...d,...f].map(e=>i.default.createElement("script",{key:e,src:"".concat(o,"/_next/").concat(encodeURI(e)).concat(l),nonce:t.nonce,async:!s&&u,defer:!u,crossOrigin:t.crossOrigin||c}))}function g(e,t){let{scriptLoader:n,disableOptimizedLoading:r,crossOrigin:o}=e,a=function(e,t){let{assetPrefix:n,scriptLoader:r,crossOrigin:o,nextScriptWorkers:a}=e;if(!a)return null;try{let{partytownSnippet:e}=require("@builder.io/partytown/integration"),a=Array.isArray(t.children)?t.children:[t.children],s=a.find(e=>{var t,n;return!!e&&!!e.props&&(null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html.length)&&"data-partytown-config"in e.props});return i.default.createElement(i.default.Fragment,null,!s&&i.default.createElement("script",{"data-partytown-config":"",dangerouslySetInnerHTML:{__html:'\n partytown = {\n lib: "'.concat(n,'/_next/static/~partytown/"\n };\n ')}}),i.default.createElement("script",{"data-partytown":"",dangerouslySetInnerHTML:{__html:e()}}),(r.worker||[]).map((e,n)=>{let{strategy:r,src:a,children:s,dangerouslySetInnerHTML:l,...u}=e,c={};if(a)c.src=a;else if(l&&l.__html)c.dangerouslySetInnerHTML={__html:l.__html};else if(s)c.dangerouslySetInnerHTML={__html:"string"==typeof s?s:Array.isArray(s)?s.join(""):""};else throw Error("Invalid usage of next/script. Did you forget to include a src attribute or an inline script? https://nextjs.org/docs/messages/invalid-script");return i.default.createElement("script",{...c,...u,type:"text/partytown",key:a||n,nonce:t.nonce,"data-nscript":"worker",crossOrigin:t.crossOrigin||o})}))}catch(e){return(0,l.default)(e)&&"MODULE_NOT_FOUND"!==e.code&&console.warn("Warning: ".concat(e.message)),null}}(e,t),s=(n.beforeInteractive||[]).filter(e=>e.src).map((e,n)=>{var a;let{strategy:s,...l}=e;return i.default.createElement("script",{...l,key:l.src||n,defer:null!==(a=l.defer)&&void 0!==a?a:!r,nonce:t.nonce,"data-nscript":"beforeInteractive",crossOrigin:t.crossOrigin||o})});return i.default.createElement(i.default.Fragment,null,a,s)}class y extends i.default.Component{getCssLinks(e){let{assetPrefix:t,assetQueryString:n,dynamicImports:r,crossOrigin:o,optimizeCss:a,optimizeFonts:s}=this.context,l=e.allFiles.filter(e=>e.endsWith(".css")),u=new Set(e.sharedFiles),c=new Set([]),d=Array.from(new Set(r.filter(e=>e.endsWith(".css"))));if(d.length){let e=new Set(l);d=d.filter(t=>!(e.has(t)||u.has(t))),c=new Set(d),l.push(...d)}let f=[];return l.forEach(e=>{let r=u.has(e);a||f.push(i.default.createElement("link",{key:"".concat(e,"-preload"),nonce:this.props.nonce,rel:"preload",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"style",crossOrigin:this.props.crossOrigin||o}));let s=c.has(e);f.push(i.default.createElement("link",{key:e,nonce:this.props.nonce,rel:"stylesheet",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),crossOrigin:this.props.crossOrigin||o,"data-n-g":s?void 0:r?"":void 0,"data-n-p":s?void 0:r?void 0:""}))}),s&&(f=this.makeStylesheetInert(f)),0===f.length?null:f}getPreloadDynamicChunks(){let{dynamicImports:e,assetPrefix:t,assetQueryString:n,crossOrigin:r}=this.context;return e.map(e=>e.endsWith(".js")?i.default.createElement("link",{rel:"preload",key:e,href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"script",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||r}):null).filter(Boolean)}getPreloadMainLinks(e){let{assetPrefix:t,assetQueryString:n,scriptLoader:r,crossOrigin:o}=this.context,a=e.allFiles.filter(e=>e.endsWith(".js"));return[...(r.beforeInteractive||[]).map(e=>i.default.createElement("link",{key:e.src,nonce:this.props.nonce,rel:"preload",href:e.src,as:"script",crossOrigin:this.props.crossOrigin||o})),...a.map(e=>i.default.createElement("link",{key:e,nonce:this.props.nonce,rel:"preload",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"script",crossOrigin:this.props.crossOrigin||o}))]}getBeforeInteractiveInlineScripts(){let{scriptLoader:e}=this.context,{nonce:t,crossOrigin:n}=this.props;return(e.beforeInteractive||[]).filter(e=>!e.src&&(e.dangerouslySetInnerHTML||e.children)).map((e,r)=>{let{strategy:o,children:a,dangerouslySetInnerHTML:s,src:l,...u}=e,c="";return s&&s.__html?c=s.__html:a&&(c="string"==typeof a?a:Array.isArray(a)?a.join(""):""),i.default.createElement("script",{...u,dangerouslySetInnerHTML:{__html:c},key:u.id||r,nonce:t,"data-nscript":"beforeInteractive",crossOrigin:n||void 0})})}getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}makeStylesheetInert(e){return i.default.Children.map(e,e=>{var t,n;if((null==e?void 0:e.type)==="link"&&(null==e?void 0:null==(t=e.props)?void 0:t.href)&&o.OPTIMIZED_FONT_PROVIDERS.some(t=>{var n,r;let{url:i}=t;return null==e?void 0:null==(r=e.props)?void 0:null==(n=r.href)?void 0:n.startsWith(i)})){let t={...e.props||{},"data-href":e.props.href,href:void 0};return i.default.cloneElement(e,t)}if(null==e?void 0:null==(n=e.props)?void 0:n.children){let t={...e.props||{},children:this.makeStylesheetInert(e.props.children)};return i.default.cloneElement(e,t)}return e}).filter(Boolean)}render(){var e,t;let{styles:r,ampPath:o,inAmpMode:a,hybridAmp:s,canonicalBase:l,__NEXT_DATA__:u,dangerousAsPath:c,headTags:d,unstable_runtimeJS:h,unstable_JsPreload:m,disableOptimizedLoading:v,optimizeCss:g,optimizeFonts:y,assetPrefix:b,nextFontManifest:x}=this.context,w=!1===h,j=!1===m||!v;this.context.docComponentsRendered.Head=!0;let{head:E}=this.context,k=[],S=[];E&&(E.forEach(e=>{let t;this.context.strictNextHead&&(t=i.default.createElement("meta",{name:"next-head",content:"1"})),e&&"link"===e.type&&"preload"===e.props.rel&&"style"===e.props.as?(t&&k.push(t),k.push(e)):e&&(t&&("meta"!==e.type||!e.props.charSet)&&S.push(t),S.push(e))}),E=k.concat(S));let _=i.default.Children.toArray(this.props.children).filter(Boolean);y&&!a&&(_=this.makeStylesheetInert(_));let C=!1,O=!1;E=i.default.Children.map(E||[],e=>{if(!e)return e;let{type:t,props:n}=e;if(a){let r="";if("meta"===t&&"viewport"===n.name?r='name="viewport"':"link"===t&&"canonical"===n.rel?O=!0:"script"===t&&(n.src&&-1>n.src.indexOf("ampproject")||n.dangerouslySetInnerHTML&&(!n.type||"text/javascript"===n.type))&&(r="{r+=" ".concat(e,'="').concat(n[e],'"')}),r+="/>"),r)return console.warn('Found conflicting amp tag "'.concat(e.type,'" with conflicting prop ').concat(r," in ").concat(u.page,". https://nextjs.org/docs/messages/conflicting-amp-tag")),null}else"link"===t&&"amphtml"===n.rel&&(C=!0);return e});let M=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,a),T=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return{preconnect:null,preload:null};let r=e.pages["/_app"],o=e.pages[t],a=[...null!=r?r:[],...null!=o?o:[]],s=!!(0===a.length&&(r||o));return{preconnect:s?i.default.createElement("link",{"data-next-font":e.pagesUsingSizeAdjust?"size-adjust":"",rel:"preconnect",href:"/",crossOrigin:"anonymous"}):null,preload:a?a.map(e=>{let t=/\.(woff|woff2|eot|ttf|otf)$/.exec(e)[1];return i.default.createElement("link",{key:e,rel:"preload",href:"".concat(n,"/_next/").concat(encodeURI(e)),as:"font",type:"font/".concat(t),crossOrigin:"anonymous","data-next-font":e.includes("-s")?"size-adjust":""})}):null}}(x,c,b);return i.default.createElement("head",function(e){let{crossOrigin:t,nonce:n,...r}=e;return r}(this.props),this.context.isDevelopment&&i.default.createElement(i.default.Fragment,null,i.default.createElement("style",{"data-next-hide-fouc":!0,"data-ampdevmode":a?"true":void 0,dangerouslySetInnerHTML:{__html:"body{display:none}"}}),i.default.createElement("noscript",{"data-next-hide-fouc":!0,"data-ampdevmode":a?"true":void 0},i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body{display:block}"}}))),E,this.context.strictNextHead?null:i.default.createElement("meta",{name:"next-head-count",content:i.default.Children.count(E||[]).toString()}),_,y&&i.default.createElement("meta",{name:"next-font-preconnect"}),T.preconnect,T.preload,a&&i.default.createElement(i.default.Fragment,null,i.default.createElement("meta",{name:"viewport",content:"width=device-width,minimum-scale=1,initial-scale=1"}),!O&&i.default.createElement("link",{rel:"canonical",href:l+n(79505).cleanAmpPath(c)}),i.default.createElement("link",{rel:"preload",as:"script",href:"https://cdn.ampproject.org/v0.js"}),i.default.createElement(p,{styles:r}),i.default.createElement("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}"}}),i.default.createElement("noscript",null,i.default.createElement("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}"}})),i.default.createElement("script",{async:!0,src:"https://cdn.ampproject.org/v0.js"})),!a&&i.default.createElement(i.default.Fragment,null,!C&&s&&i.default.createElement("link",{rel:"amphtml",href:l+(o||"".concat(c).concat(c.includes("?")?"&":"?","amp=1"))}),this.getBeforeInteractiveInlineScripts(),!g&&this.getCssLinks(M),!g&&i.default.createElement("noscript",{"data-n-css":null!==(e=this.props.nonce)&&void 0!==e?e:""}),!w&&!j&&this.getPreloadDynamicChunks(),!w&&!j&&this.getPreloadMainLinks(M),!v&&!w&&this.getPolyfillScripts(),!v&&!w&&this.getPreNextScripts(),!v&&!w&&this.getDynamicChunks(M),!v&&!w&&this.getScripts(M),g&&this.getCssLinks(M),g&&i.default.createElement("noscript",{"data-n-css":null!==(t=this.props.nonce)&&void 0!==t?t:""}),this.context.isDevelopment&&i.default.createElement("noscript",{id:"__next_css__DO_NOT_USE__"}),r||null),i.default.createElement(i.default.Fragment,{},...d||[]))}}y.contextType=u.HtmlContext;class b extends i.default.Component{getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}static getInlineScriptSource(e){let{__NEXT_DATA__:t,largePageDataBytes:i}=e;try{let o=JSON.stringify(t);if(d.has(t.page))return(0,s.htmlEscapeJsonString)(o);let a=r.from(o).byteLength,l=n(16549).Z;return i&&a>i&&(d.add(t.page),console.warn('Warning: data for page "'.concat(t.page,'"').concat(t.page===e.dangerousAsPath?"":' (path "'.concat(e.dangerousAsPath,'")')," is ").concat(l(a)," which exceeds the threshold of ").concat(l(i),", this amount of data can reduce performance.\nSee more info here: https://nextjs.org/docs/messages/large-page-data"))),(0,s.htmlEscapeJsonString)(o)}catch(e){if((0,l.default)(e)&&-1!==e.message.indexOf("circular structure"))throw Error('Circular structure in "getInitialProps" result of page "'.concat(t.page,'". https://nextjs.org/docs/messages/circular-structure'));throw e}}render(){let{assetPrefix:e,inAmpMode:t,buildManifest:n,unstable_runtimeJS:r,docComponentsRendered:o,assetQueryString:a,disableOptimizedLoading:s,crossOrigin:l}=this.context,u=!1===r;if(o.NextScript=!0,t)return null;let c=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,t);return i.default.createElement(i.default.Fragment,null,!u&&n.devFiles?n.devFiles.map(t=>i.default.createElement("script",{key:t,src:"".concat(e,"/_next/").concat(encodeURI(t)).concat(a),nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l})):null,u?null:i.default.createElement("script",{id:"__NEXT_DATA__",type:"application/json",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l,dangerouslySetInnerHTML:{__html:b.getInlineScriptSource(this.context)}}),s&&!u&&this.getPolyfillScripts(),s&&!u&&this.getPreNextScripts(),s&&!u&&this.getDynamicChunks(c),s&&!u&&this.getScripts(c))}}function x(e){let{inAmpMode:t,docComponentsRendered:n,locale:r,scriptLoader:o,__NEXT_DATA__:a}=(0,u.useHtmlContext)();return n.Html=!0,!function(e,t,n){var r,o,a,s;if(!n.children)return;let l=[],u=Array.isArray(n.children)?n.children:[n.children],c=null==(o=u.find(e=>e.type===y))?void 0:null==(r=o.props)?void 0:r.children,d=null==(s=u.find(e=>"body"===e.type))?void 0:null==(a=s.props)?void 0:a.children,f=[...Array.isArray(c)?c:[c],...Array.isArray(d)?d:[d]];i.default.Children.forEach(f,t=>{var n;if(t&&(null==(n=t.type)?void 0:n.__nextScript)){if("beforeInteractive"===t.props.strategy){e.beforeInteractive=(e.beforeInteractive||[]).concat([{...t.props}]);return}if(["lazyOnload","afterInteractive","worker"].includes(t.props.strategy)){l.push(t.props);return}}}),t.scriptLoader=l}(o,a,e),i.default.createElement("html",{...e,lang:e.lang||r||void 0,amp:t?"":void 0,"data-ampdevmode":void 0})}function w(){let{docComponentsRendered:e}=(0,u.useHtmlContext)();return e.Main=!0,i.default.createElement("next-js-internal-body-render-target",null)}b.contextType=u.HtmlContext;class j extends i.default.Component{static getInitialProps(e){return e.defaultGetInitialProps(e)}render(){return i.default.createElement(x,null,i.default.createElement(y,null),i.default.createElement("body",null,i.default.createElement(w,null),i.default.createElement(b,null)))}}j[o.NEXT_BUILTIN_DOCUMENT]=function(){return i.default.createElement(x,null,i.default.createElement(y,null),i.default.createElement("body",null,i.default.createElement(w,null),i.default.createElement(b,null)))}},22698:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{noSSR:function(){return a},default:function(){return s}});let r=n(43219),i=(n(2784),r._(n(94780)));function o(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let n=i.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e}),r={...r,...t};let s=r.loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().then(o):Promise.resolve(o(()=>null))}):(delete r.webpack,delete r.modules,a(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(84759);let r=n(69933),i=n(97686);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:v,width:g,height:y,fill:b=!1,style:x,onLoad:w,onLoadingComplete:j,placeholder:E="empty",blurDataURL:k,fetchPriority:S,layout:_,objectFit:C,objectPosition:O,lazyBoundary:M,lazyRoot:T,...A}=e,{imgConf:P,showAltText:N,blurComplete:R,defaultLoader:D}=t,L=P||i.imageConfigDefault;if("allSizes"in L)s=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);s={...L,allSizes:e,deviceSizes:t}}let F=A.loader||D;delete A.loader,delete A.srcSet;let z="__next_img_default"in F;if(z){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=F;F=t=>{let{config:n,...r}=t;return e(r)}}if(_){"fill"===_&&(b=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[_];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[_];t&&!d&&(d=t)}let V="",I=a(g),Z=a(y);if("object"==typeof(n=c)&&(o(n)||void 0!==n.src)){let e=o(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,k=k||e.blurDataURL,V=e.src,!b){if(I||Z){if(I&&!Z){let t=I/e.width;Z=Math.round(e.height*t)}else if(!I&&Z){let t=Z/e.height;I=Math.round(e.width*t)}}else I=e.width,Z=e.height}}let B=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:V)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,B=!1),s.unoptimized&&(f=!0),z&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let H=a(v),U=Object.assign(b?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:O}:{},N?{}:{color:"transparent"},x),W=R||"empty"===E?null:"blur"===E?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:I,heightInt:Z,blurWidth:l,blurHeight:u,blurDataURL:k||"",objectFit:U.objectFit})+'")':'url("'+E+'")',q=W?{backgroundSize:U.objectFit||"cover",backgroundPosition:U.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},$=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:I,quality:H,sizes:d,loader:F}),K={...A,loading:B?"lazy":p,fetchPriority:S,width:I,height:Z,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},Y={unoptimized:f,priority:h,placeholder:E,fill:b};return{props:K,meta:Y}}},15333:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{HtmlContext:function(){return i},useHtmlContext:function(){return o}});let r=n(2784),i=(0,r.createContext)(void 0);function o(){let e=(0,r.useContext)(i);if(!e)throw Error(" should not be imported outside of pages/_document.\nRead more: https://nextjs.org/docs/messages/no-document-import-in-page");return e}},69933:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},81963:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return u},unstable_getImgProps:function(){return l}});let r=n(43219),i=n(31918),o=n(84759),a=n(80920),s=r._(n(2088)),l=e=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},u=a.Image},2088:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},49306:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return o}});let r=n(43219),i=r._(n(2784)),o=i.default.createContext(null)},94780:function(e,t,n){"use strict";/** +***************************************************************************** */function Ef(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function Eh(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1?(Ep('UA "Edge" => assuming success'),[2,!0]):Ez(document.body,e)?(Ep("copyUsingTempSelection worked"),[2,!0]):((i=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),i.textContent="temporary element",document.body.appendChild(i),o=Ez(i,e),document.body.removeChild(i),o)?(Ep("copyUsingTempElem worked"),[2,!0]):(a=e["text/plain"],Ep("copyTextUsingDOM"),(s=document.createElement("div")).setAttribute("style","-webkit-user-select: text !important"),l=s,s.attachShadow&&(Ep("Using shadow DOM."),l=s.attachShadow({mode:"open"})),(u=document.createElement("span")).innerText=a,l.appendChild(u),document.body.appendChild(s),EV(u),c=document.execCommand("copy"),EI(),document.body.removeChild(s),c)?(Ep("copyTextUsingDOM worked"),[2,!0]):[2,!1]})})}(((n={})["text/plain"]=e,n)))throw Error("writeText() failed");return[2]})})}let EB={data:""},EH=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||EB,EU=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,EW=/\/\*[^]*?\*\/|\s\s+|\n/g,Eq=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?Eq(a,o):o+"{"+Eq(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=Eq(a,t?t.replace(/([^,])+/g,e=>o.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Eq.p?Eq.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},E$={},EK=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+EK(e[n]);return t}return e},EY=(e,t,n,r,i)=>{var o;let a=EK(e),s=E$[a]||(E$[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!E$[s]){let t=a!==e?e:(e=>{let t,n=[{}];for(;t=EU.exec(e.replace(EW,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);E$[s]=Eq(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}return o=E$[s],-1==t.data.indexOf(o)&&(t.data=r?o+t.data:t.data+o),s},EG=(e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":Eq(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"");function EX(e){let t=this||{},n=e.call?e(t.p):e;return EY(n.unshift?n.raw?EG(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,EH(t.target),t.g,t.o,t.k)}EX.bind({g:1});let EJ,EQ,E0,E1=EX.bind({k:1});function E2(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:EQ&&EQ()},s),n.o=/ *go\d+/.test(l),s.className=EX.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),E0&&u[0]&&E0(s),EJ(u,s)}return t?t(i):i}}function E4(){return(E4=Object.assign||function(e){for(var t=1;t-1&&kn.splice(e,1)}},[n]);var i=n.toasts.map(function(t){var n,r,i;return E4({},e,e[t.type],t,{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==(r=e)?void 0:r.duration)||ko[t.type],style:E4({},e.style,null==(i=e[t.type])?void 0:i.style,t.style)})});return E4({},n,{toasts:i})},ks=function(e){return function(t,n){var r,i=(void 0===(r=e)&&(r="blank"),E4({createdAt:Date.now(),visible:!0,type:r,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},n,{id:(null==n?void 0:n.id)||E6()}));return ki({type:g.UPSERT_TOAST,toast:i}),i.id}},kl=function(e,t){return ks("blank")(e,t)};kl.error=ks("error"),kl.success=ks("success"),kl.loading=ks("loading"),kl.custom=ks("custom"),kl.dismiss=function(e){ki({type:g.DISMISS_TOAST,toastId:e})},kl.remove=function(e){return ki({type:g.REMOVE_TOAST,toastId:e})},kl.promise=function(e,t,n){var r=kl.loading(t.loading,E4({},n,null==n?void 0:n.loading));return e.then(function(e){return kl.success(E5(t.success,e),E4({id:r},n,null==n?void 0:n.success)),e}).catch(function(e){kl.error(E5(t.error,e),E4({id:r},n,null==n?void 0:n.error))}),e};var ku=function(e){var t=ka(e),n=t.toasts,r=t.pausedAt;(0,x.useEffect)(function(){if(!r){var e=Date.now(),t=n.map(function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(n<0){t.visible&&kl.dismiss(t.id);return}return setTimeout(function(){return kl.dismiss(t.id)},n)}});return function(){t.forEach(function(e){return e&&clearTimeout(e)})}}},[n,r]);var i=(0,x.useMemo)(function(){return{startPause:function(){ki({type:g.START_PAUSE,time:Date.now()})},endPause:function(){r&&ki({type:g.END_PAUSE,time:Date.now()})},updateHeight:function(e,t){return ki({type:g.UPDATE_TOAST,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,l=void 0===s?8:s,u=i.defaultPosition,c=n.filter(function(t){return(t.position||u)===(e.position||u)&&t.height}),d=c.findIndex(function(t){return t.id===e.id}),f=c.filter(function(e,t){return t * {\n pointer-events: auto;\n }\n"]);return kH=function(){return e},e}c=x.createElement,Eq.p=void 0,EJ=c,EQ=void 0,E0=void 0;var kU=function(e,t){var n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return E4({left:0,right:0,display:"flex",position:"absolute",transition:E8()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY("+t*(n?1:-1)+"px)"},n?{top:0}:{bottom:0},r)},kW=EX(kH()),kq=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,o=e.gutter,a=e.children,s=e.containerStyle,l=e.containerClassName,u=ku(i),c=u.toasts,d=u.handlers;return(0,x.createElement)("div",{style:E4({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:l,onMouseEnter:d.startPause,onMouseLeave:d.endPause},c.map(function(e){var n,i=e.position||r,s=kU(i,d.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:r})),l=e.height?void 0:(n=function(t){d.updateHeight(e.id,t.height)},function(e){e&&setTimeout(function(){n(e.getBoundingClientRect())})});return(0,x.createElement)("div",{ref:l,className:e.visible?kW:"",key:e.id,style:s},"custom"===e.type?E5(e.message,e):a?a(e):(0,x.createElement)(kB,{toast:e,position:i}))}))};let k$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kl((0,y.jsx)(t1,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200)):e}),kX(t))},kK=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kl(e,kX(t))},kY=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kl.success((0,y.jsx)(t1,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),kX(t))},kG=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kl.error((0,y.jsx)(t1,{wrapEllipsis:!0,children:"string"==typeof e&&e.length>200?"".concat(e.slice(0,200),"..."):e}),kX(t))};function kX(){let{className:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{position:"top-center",duration:6e3,className:(0,em.cx)(lo,t4(),"font-sans font-normal","text-gray-1100 dark:text-white","max-w-[800px] overflow-hidden text-ellipsis","[&>div]:overflow-hidden","[&>div]:flex-1",e),success:{icon:(0,y.jsx)("div",{className:"!flex-none w-5",children:(0,y.jsx)(lc.tEK,{className:"w-5 text-green-600"})})},error:{icon:(0,y.jsx)("div",{className:"!flex-none w-5",children:(0,y.jsx)(lc.Jsc,{className:"w-5 text-red-600"})})},...t}}function kJ(){return(0,y.jsx)(kq,{toastOptions:kX()})}let kQ=(e,t)=>{let n=t?"Copied ".concat(t," to clipboard"):"Copied to clipboard";k$(n),EZ(e)},k0=(e,t,n)=>{kK(t,n),EZ(e)};function k1(e,t){return e?t&&e.length>t?"".concat(e.slice(0,t),"..."):"".concat(e.slice(0,t)):""}function k2(e){return(e||"").replace(/^addr:/,"").replace(/^txid:/,"").replace(/^fcid:/,"").replace(/^h:/,"").replace(/^scoid:/,"").replace(/^key:/,"")}function k4(e,t,n){return t?"".concat(e," ").concat(k1(t,n)):"".concat(e)}function k3(e,t){return"miner"===t?"minerPayout":"siafundClaim"===t?"siafundClaim":"contract"===t?"contractPayout":"foundation"===t?"foundationSubsidy":e.storageProofs&&e.storageProofs.length>0?"storageProof":e.fileContracts&&e.fileContracts.length>0&&e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRenewal":e.fileContractRevisions&&e.fileContractRevisions.length>0?"contractRevision":e.fileContracts&&e.fileContracts.length>0?"contractFormation":e.arbitraryData&&e.arbitraryData.length>0&&0===atob(e.arbitraryData[0]).indexOf("HostAnnouncement")?"hostAnnouncement":e.siafundOutputs&&e.siafundOutputs.length>0?"siafund":e.siacoinOutputs&&e.siacoinOutputs.length>0?"siacoin":void 0}let k5={transaction:"transaction",contract:"contract",block:"block",output:"output",address:"address",ip:"IP"},k6={siacoin:"siacoin transfer",siafund:"siafund transfer",contractFormation:"contract formation",contractRenewal:"contract renewal",contractRevision:"contract revision",contractPayout:"contract payout",storageProof:"storage proof",minerPayout:"miner payout",siafundClaim:"siafund claim",foundationSubsidy:"foundation subsidy",hostAnnouncement:"host announcement"};function k8(e){return e?k5[e]:void 0}function k7(e){return e?k6[e]:void 0}function k9(e){let{value:t,displayValue:n,type:r,label:i,href:o,maxLength:a,size:s,scaleSize:l,weight:u,color:c="contrast",className:d}=e,f=i||k8(r),h=a||("ip"===r?20:12),p=k2(t),m=n||p,v="".concat(null==m?void 0:m.slice(0,h)).concat(((null==m?void 0:m.length)||0)>h?"...":"");return(0,y.jsxs)("div",{className:(0,em.cx)("flex items-center",d),children:[o?(0,y.jsx)(di,{href:o,underline:"hover",size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}):(0,y.jsx)(t1,{size:s,scaleSize:l,color:c,weight:u,ellipsis:!0,children:v}),(0,y.jsx)("div",{className:"ml-1 flex items-center",children:(0,y.jsx)(lu,{variant:"ghost",size:"none",onClick:e=>{e.stopPropagation(),kQ(p,f)},children:(0,y.jsx)(t1,{color:c,children:(0,y.jsx)(lc.olJ,{className:"10"===s?"scale-75":"scale-90"})})})})]})}function Se(e){let{value:t,displayValue:n,type:r,href:i,maxLength:o,size:a,scaleSize:s,color:l="contrast",menu:u,className:c}=e,d=o||("ip"===r?20:12),f=k2(t),h=n||f,p="".concat(null==h?void 0:h.slice(0,d)).concat(((null==h?void 0:h.length)||0)>d?"...":"");return(0,y.jsxs)("div",{className:(0,em.cx)("flex items-center",c),children:[i?(0,y.jsx)(di,{href:i,underline:"hover",size:a,scaleSize:s,color:l,ellipsis:!0,children:p}):(0,y.jsx)(t1,{size:a,scaleSize:s,color:l,ellipsis:!0,children:p}),(0,y.jsx)("div",{className:"ml-1 flex items-center",children:u})]})}function St(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change"}=e,a=(0,vS.yF)(String(t),{units:"SF"});return(0,y.jsx)(ls,{content:(i?"".concat(i," "):"")+a,children:(0,y.jsxs)(t1,{size:n,scaleSize:r,weight:"medium",font:"mono",color:"change"===o?t>0?"green":t<0?"red":"subtle":"contrast",children:["change"===o&&t>0?"+":"",a]})})}function Sn(e){let{value:t,size:n,scaleSize:r,tooltip:i="",variant:o="change",fixed:a=3,dynamicUnits:s=!0,hastingUnits:l=!0,extendedSuffix:u,showTooltip:c=!0}=e,d=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",f="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast",h=(0,y.jsxs)(t1,{size:n,scaleSize:r,weight:"medium",font:"mono",ellipsis:!0,color:f,children:["change"===o?"".concat(d).concat((0,vS.Vz)(t.absoluteValue(),{fixed:a,dynamicUnits:s})):(0,vS.Vz)(t,{fixed:a,dynamicUnits:s,hastingUnits:l}),(0,y.jsx)(t1,{size:"20",weight:"medium",font:"mono",ellipsis:!0,color:"subtle",children:u?"".concat(u):""})]});return c?(0,y.jsx)(ls,{content:(i?"".concat(i," "):"")+(0,vS.Vz)(t,{fixed:16,dynamicUnits:!1}),children:h}):h}function Sr(e){let{value:t,size:n="14",weight:r="semibold",tooltip:i="",variant:o="change",color:a,format:s}=e,l=t.isGreaterThan(0)?"+":t.isLessThan(0)?"-":"",u="change"===o?t.isGreaterThan(0)?"green":t.isLessThan(0)?"red":"subtle":"contrast";return(0,y.jsx)(ls,{content:(i?"".concat(i," "):"")+s(t),children:(0,y.jsx)(t1,{size:n,weight:r,font:"mono",ellipsis:!0,color:a||u,children:"change"===o?"".concat(l).concat(s(t.absoluteValue())):s(t)})})}var Si=n(61258),So=n.n(Si);function Sa(e){let{skeletonCount:t=10}=e;return(0,y.jsx)(y.Fragment,{children:So()(t,e=>(0,y.jsxs)("div",{className:(0,em.cx)("relative flex gap-4 p-3.5",(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:[(0,y.jsx)(f8,{className:"w-[60px] h-[50px]"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,y.jsx)(f8,{className:"w-[90%] h-[20px]"}),(0,y.jsx)(f8,{className:"w-[140px] h-[14px]"})]})]},e))})}var Ss=n(29193),Sl=n(23779),Su=n.n(Sl);function Sc(e){let{type:t,label:n,initials:r,href:i,src:o,shape:a}=e,s=(0,y.jsx)(lM,{interactive:!!i,fallback:r||t&&(t||n||"").split(" ").map(e=>e.charAt(0).toUpperCase).join(""),src:o,shape:a||(t&&"address"!==t&&"block"!==t?"circle":"square")}),l=i&&(0,y.jsx)(di,{href:i,underline:"none",children:s}),u=l||s;return t?(0,y.jsx)(ls,{content:n||k8(t),children:(0,y.jsx)("div",{className:"",children:u})}):u}function Sd(e){let{label:t,type:n,avatar:r,avatarShape:i,initials:o,href:a,onClick:s,children:l}=e;return(0,y.jsxs)("div",{className:(0,em.cx)("flex gap-4 p-4",(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),onClick:s,children:[(0,y.jsx)(Sc,{label:t,type:n,shape:i,src:r,initials:o||(n||t||"").split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),href:a}),l]})}function Sf(e){let t=e.sc,n=e.sf,r=e.hash&&(0,y.jsx)(k9,{value:e.hash,type:e.type,label:e.label,href:e.href,color:"subtle"}),i=e.label||"transaction"===e.type&&e.txType&&k7(e.txType)||k8(e.type),o=!function(e){if(!e)return!1;try{return new URL(e),!0}catch(e){return!1}}(i)?Su()(i):i;return(0,y.jsx)(Sd,{...e,children:(0,y.jsxs)("div",{className:"flex flex-col items-center gap-1 w-full",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[e.height&&e.blockHref&&(0,y.jsx)(t1,{color:"subtle",weight:"semibold",children:(0,y.jsx)(di,{href:e.blockHref,underline:"none",children:(0,vS.yF)(e.height)})}),(0,y.jsx)(t1,{weight:"medium",children:o||r})]}),(0,y.jsx)("div",{className:"flex-1"}),!!t&&(0,y.jsx)(Sn,{variant:e.scVariant,value:t}),!!n&&(0,y.jsx)(St,{variant:e.sfVariant,value:n})]}),(0,y.jsxs)("div",{className:"flex justify-between w-full",children:[(0,y.jsx)("div",{className:"flex gap-1",children:!!o&&r}),(0,y.jsxs)("div",{className:"flex gap-1 items-center",children:[e.unconfirmed?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{color:"verySubtle",children:"unconfirmed"}),e.timestamp?(0,y.jsx)(t1,{color:"verySubtle",children:(0,y.jsx)(lc.Bpb,{className:"scale-50"})}):null]}):null,e.timestamp&&(0,y.jsx)(t1,{color:"subtle",children:(0,Ss.Z)(new Date(e.timestamp),new Date,{addSuffix:!0})})]})]})]})})}function Sh(e){let{title:t,actions:n,entities:r,emptyState:i,emptyMessage:o,skeletonCount:a=10,children:s}=e;return(0,y.jsx)(t3,{children:(0,y.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(t||n)&&(0,y.jsxs)("div",{className:"flex items-center p-4 border-b border-gray-200 dark:border-graydark-300",children:[t&&(0,y.jsx)(c2,{size:"20",font:"mono",ellipsis:!0,children:t}),(0,y.jsx)("div",{className:"flex-1"}),n]}),(0,y.jsxs)("div",{className:"flex flex-col rounded overflow-hidden",children:[(null==r?void 0:r.length)===0&&(i||(0,y.jsx)("div",{className:(0,em.cx)("flex items-center justify-center h-[84px]",(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")),children:(0,y.jsx)(t1,{size:"18",color:"subtle",children:o||"No results"})})),s||(null==r?void 0:r.map((e,t)=>(0,y.jsx)(Sf,{...e},e.hash||e.label||t)))||(0,y.jsx)(Sa,{skeletonCount:a})]})]})})}function Sp(e){let{label:t,entityType:n,entityValue:r,actions:i,href:o,value:a,extendedSuffix:s,hash:l,sc:u,sf:c,comment:d,commentTip:f,scaleSize:h="40",isLoading:p,onClick:m}=e,v=(0,y.jsx)(t1,{color:"subtle",size:"12",className:"h-6",children:d});return(0,y.jsx)(t3,{children:(0,y.jsx)("div",{className:(0,em.cx)("flex items-center py-2 px-4 h-full min-w-[250px]",m?"cursor-pointer":""),onClick:m,children:(0,y.jsxs)("div",{className:"flex flex-col gap-4 flex-wrap items-start w-full",children:[(0,y.jsxs)("div",{className:"flex relative top-px flex-1 w-full gap-6 items-center justify-between",children:[(0,y.jsx)(t1,{color:"subtle",ellipsis:!0,scaleSize:"14",children:"string"==typeof t?Su()(t):t}),i]}),(0,y.jsxs)("div",{className:"flex flex-col items-end md:items-start gap-2 md:flex-2",children:[p?(0,y.jsx)(f8,{className:"h-12 w-[150px]"}):(0,y.jsxs)(y.Fragment,{children:[void 0!==u&&(0,y.jsx)(Sn,{extendedSuffix:s,scaleSize:h,variant:"value",value:u,fixed:0}),void 0!==c&&(0,y.jsx)(St,{scaleSize:h,variant:"value",value:c}),n&&(r?(0,y.jsx)(k9,{scaleSize:h,label:k8(n),href:o,value:r,displayValue:"block"===n&&r?Number(r).toLocaleString():r,className:"relative top-0.5"}):(0,y.jsx)(t1,{font:"mono",weight:"medium",scaleSize:h,children:"-"})),l&&(0,y.jsx)(k9,{scaleSize:h,label:"hash",value:l}),void 0!==a&&(0,y.jsx)(t1,{font:"mono",weight:"medium",scaleSize:h,ellipsis:!0,children:a})]}),v?(0,y.jsx)("div",{className:"mt-1",children:p?(0,y.jsx)("div",{className:"mt-1 h-6 justify-center",children:(0,y.jsx)(f8,{className:"h-4 w-[100px]"})}):f?(0,y.jsx)(ls,{content:f,children:v}):v}):null]})]})})})}function Sm(e){let{title:t,actions:n,name:r}=e;return(0,y.jsxs)("div",{className:"flex gap-0.5 items-center",children:[t?(0,y.jsx)(dt,{htmlFor:r,noWrap:!0,children:t}):null,n]})}function Sv(e){var t;let{form:n,name:r}=e,i=n.formState.errors[r],o=null===(t=n.formState.errors[r])||void 0===t?void 0:t.message;return i?(0,y.jsx)(t1,{size:"14",color:"red",children:o}):null}function Sg(e){let{form:t,title:n,actions:r,name:i,className:o,wrap:a}=e,s=t.formState.errors[i];return n||s?(0,y.jsxs)("div",{className:(0,em.cx)("flex justify-between items-center gap-x-4 overflow-hidden",a?"flex-wrap":"",o),children:[(0,y.jsx)(Sm,{name:i,title:n,actions:r}),(0,y.jsx)(Sv,{form:t,name:i})]}):null}function Sy(e){let{children:t,...n}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsx)(Sg,{...n}),t]})}function Sx(e){let{form:t,size:n="medium",variant:r="accent",children:i}=e;return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(lu,{size:n,variant:r,state:t.formState.isSubmitting?"waiting":void 0,type:"submit",children:t.formState.isSubmitting?(0,y.jsx)(Eu,{}):i})})}function Sb(e){let{formik:t,title:n,name:r,placeholder:i,disabled:o,readOnly:a,autoComplete:s="off",spellCheck:l=!1,tabIndex:u,allowDecimals:c=!1,decimalsLimitFiat:d=3,decimalsLimitSc:f=3,decimalsLimit:h=2,disableGroupSeparators:p=!1,showFiat:m=!0,units:v,type:g,variants:x}=e;return(0,y.jsx)(SS,{formik:t,title:n,name:r,children:"number"===g?(0,y.jsx)(Sj,{formik:t,name:r,units:v,disabled:o,readOnly:a,tabIndex:u,decimalsLimit:h,allowDecimals:c,disableGroupSeparators:p,placeholder:i,variants:x}):"siacoin"===g?(0,y.jsx)(SE,{formik:t,name:r,disabled:o,readOnly:a,placeholder:i,tabIndex:u,showFiat:m,decimalsLimitFiat:d,decimalsLimitSc:f,variants:x}):(0,y.jsx)(Sw,{formik:t,name:r,autoComplete:s,disabled:o,readOnly:a,placeholder:i,tabIndex:u,spellCheck:l,type:g,variants:x})})}function Sw(e){let{formik:t,name:n,placeholder:r,autoComplete:i="off",disabled:o,readOnly:a,tabIndex:s,spellCheck:l=!1,type:u,variants:c}=e;return(0,y.jsx)(fE,{id:n,name:n,autoComplete:i,disabled:o,spellCheck:l,placeholder:r,tabIndex:s,readOnly:a||t.isSubmitting,type:u,onBlur:t.handleBlur,onChange:t.handleChange,value:t.values[n]||"",...c})}function Sj(e){let{formik:t,name:n,units:r,disabled:i,readOnly:o,tabIndex:a,placeholder:s,decimalsLimit:l,allowDecimals:u=!1,disableGroupSeparators:c=!1,variants:d}=e;return(0,y.jsx)(f$,{id:n,units:r,name:n,placeholder:new(fW())(s),disabled:i,allowDecimals:u,decimalsLimit:l,disableGroupSeparators:c,readOnly:o||t.isSubmitting,tabIndex:a,onBlur:t.handleBlur,onChange:e=>t.setFieldValue(n,e),value:t.values[n],...d})}function SE(e){let{formik:t,name:n,disabled:r,readOnly:i,tabIndex:o,placeholder:a,showFiat:s,decimalsLimitFiat:l=3,decimalsLimitSc:u=3,variants:c}=e;return(0,y.jsx)(fJ,{id:n,name:n,disabled:r,showFiat:s,decimalsLimitFiat:l,decimalsLimitSc:u,readOnly:i||t.isSubmitting,tabIndex:o,onFocus:()=>t.setFieldTouched(n),sc:new(fW())(t.values[n]),placeholder:new(fW())(a),onChange:e=>t.setFieldValue(n,null==e?void 0:e.toString()),...c})}function Sk(e){var t,n;let{formik:r,title:i,name:o,withStatusError:a=!1,className:s}=e,l=r.errors[o]&&r.touched[o]||a&&(null===(t=r.status)||void 0===t?void 0:t.error),u=r.errors[o]||a&&(null===(n=r.status)||void 0===n?void 0:n.error);return(i||l)&&(0,y.jsxs)("div",{className:(0,em.cx)("flex justify-between items-center gap-4",s),children:[i?(0,y.jsx)(dt,{htmlFor:o,children:i}):(0,y.jsx)("div",{}),l&&(0,y.jsx)(t1,{size:"14",color:"red",children:u})]})}function SS(e){let{children:t,...n}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsx)(Sk,{...n}),t]})}function S_(e){var t;let{formik:n,size:r="medium",variant:i="accent",withStatusError:o=!0,children:a}=e;return(0,y.jsxs)(y.Fragment,{children:[o&&(null===(t=n.status)||void 0===t?void 0:t.error)&&(0,y.jsx)(t1,{color:"red",children:n.status.error}),(0,y.jsx)(lu,{size:r,variant:i,state:n.isSubmitting?"waiting":void 0,type:"submit",children:n.isSubmitting?(0,y.jsx)(Eu,{}):a})]})}function SC(e){let{columns:t,data:n,context:r,sortField:i,sortDirection:o,sortableColumns:a,toggleSort:s,summary:l,rowSize:u="default",pageSize:c,isLoading:d,emptyState:f,focusId:h,focusColor:p="default"}=e,m="emptyState";!d||(null==n?void 0:n.length)||(m="skeleton"),(null==n?void 0:n.length)&&(m="currentData");let v=(0,x.useCallback)((e,n,r)=>(0,em.cx)(0===e?"pl-6":"pl-4",e===t.length-1?"pr-6":"pr-4",r?[0===e?"rounded-tl-lg":"",e===t.length-1?"rounded-tr-lg":""]:"",n),[t]),g=(0,x.useCallback)((e,t)=>(0,em.cx)("flex items-center",t),[]);return(0,y.jsxs)(t3,{children:[(0,y.jsxs)("table",{className:"relative z-10 table-auto border-collapse w-full",children:[(0,y.jsx)("thead",{className:(0,em.cx)("sticky top-0 z-20 bg-white dark:bg-graydark-100","shadow-border-b shadow-gray-400 dark:shadow-graydark-300"),children:(0,y.jsx)("tr",{children:t.map((e,t)=>{let{id:n,icon:r,label:l,tip:u,cellClassName:c,contentClassName:d}=e,f=(null==a?void 0:a.includes(n))&&!!s,h=i===n;return(0,y.jsx)("th",{className:(0,em.cx)(v(t,c,!1),"border-b border-gray-400 dark:border-graydark-400"),children:(0,y.jsx)("div",{className:(0,em.cx)("overflow-hidden","py-3"),children:(0,y.jsxs)("div",{onClick:()=>{f&&s(n)},className:(0,em.cx)(g(t,d),f?"cursor-pointer":""),children:[(0,y.jsx)(ls,{content:u,children:(0,y.jsxs)(t1,{color:"subtle",className:"relative flex gap-1",ellipsis:!0,children:[r?(0,y.jsx)("div",{children:r}):null,(0,y.jsx)(t1,{ellipsis:!0,size:"12",weight:"medium",children:l})]})}),h&&(0,y.jsx)(t1,{color:"contrast",children:"asc"===o?(0,y.jsx)(lc.kqg,{className:"scale-75"}):(0,y.jsx)(lc.EMN,{className:"scale-75"})}),f&&!h&&(0,y.jsx)(t1,{color:"verySubtle",children:(0,y.jsx)(lc.kqg,{className:"scale-75"})})]})})},n)})})}),(0,y.jsxs)("tbody",{className:"bg-gray-50 dark:bg-graydark-50",children:[l&&(0,y.jsx)("tr",{className:"bg-gray-50 dark:bg-graydark-50 border-l border-r border-b border-gray-200 dark:border-graydark-200",children:t.map((e,t)=>{let{id:n,summary:r,contentClassName:i,cellClassName:o}=e;return(0,y.jsx)("td",{className:v(t,o,!1),children:(0,y.jsx)("div",{className:g(t,i),children:r&&r()})},n)})}),"currentData"===m&&(null==n?void 0:n.map(e=>(0,y.jsx)("tr",{id:e.id,onClick:e.onClick,className:(0,em.cx)("border-b border-gray-200/50 dark:border-graydark-100",e.onClick?"cursor-pointer":""),children:t.map((t,n)=>{let{id:i,render:o,contentClassName:a,cellClassName:s}=t;return(0,y.jsx)("td",{className:(0,em.cx)(v(n,s,!1),h===e.id?["shadow-border-y","first:shadow-border-tlb","last:shadow-border-trb"]:"","default"===p?"!shadow-blue-900 dark:!shadow-blue-200":"","blue"===p?"!shadow-blue-500 dark:!shadow-blue-400":"","red"===p?"!shadow-red-500 dark:!shadow-red-400":"","amber"===p?"!shadow-amber-500 dark:!shadow-amber-500":"","green"===p?"!shadow-green-500 dark:!shadow-green-400":""),children:(0,y.jsx)("div",{className:(0,em.cx)(g(n,a),"dense"===u?"h-[50px]":"h-[100px]"),children:(0,y.jsx)(o,{data:e,context:r})})},"".concat(i,"/").concat(e.id))})},e.id))),"skeleton"===m&&So()(c).map(e=>(0,y.jsx)("tr",{className:"border-b border-gray-200/50 dark:border-graydark-100",children:t.map((e,t)=>{let{id:n,contentClassName:r,cellClassName:i}=e;return(0,y.jsx)("td",{className:v(t,i,!1),children:(0,y.jsx)("div",{className:(0,em.cx)(g(t,r),"dense"===u?"h-[50px]":"h-[100px]")})},"".concat(t,"/").concat(n))})},e))]})]}),"emptyState"===m&&f]})}var SO=n(5632);function SM(e){let{offset:t,limit:n,datasetTotal:r,isLoading:i}=e,o=(0,SO.useRouter)();return(0,y.jsxs)(lR,{children:[(0,y.jsx)(lu,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,y.jsx)("div",{className:"flex scale-[0.65]",children:(0,y.jsx)(lc.XJM,{})})}),(0,y.jsx)(lu,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,y.jsx)(lc.bdU,{})}),(0,y.jsx)(lu,{state:"waiting",className:"rounded-none px-3",children:r>0?"".concat(t+1," - ").concat(Math.min(t+n,r)," of ").concat(r?r.toLocaleString():""):i?(0,y.jsx)(Eu,{className:"px-2"}):"No results"}),(0,y.jsx)(lu,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.min(t+n,r)}}),children:(0,y.jsx)(lc.VUy,{})}),(0,y.jsx)(lu,{icon:"contrast",disabled:t+n>=r,size:"small",variant:"gray",className:"rounded-l-none",onClick:()=>o.push({query:{...o.query,offset:Math.floor(r/n)*n}}),children:(0,y.jsx)("div",{className:"flex",style:{transform:"scale(0.65)"},children:(0,y.jsx)(lc.RRj,{})})})]})}function ST(e){let{offset:t,limit:n,pageTotal:r,isLoading:i}=e,o=(0,SO.useRouter)(),a=Math.min(t+n,t+r);return(0,y.jsxs)(lR,{children:[(0,y.jsx)(lu,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-r-none",onClick:()=>o.push({query:{...o.query,offset:0}}),children:(0,y.jsx)("div",{className:"flex scale-[0.65]",children:(0,y.jsx)(lc.XJM,{})})}),(0,y.jsx)(lu,{icon:"contrast",disabled:t<=0,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:Math.max(t-n,0)}}),children:(0,y.jsx)(lc.bdU,{})}),i?(0,y.jsx)(lu,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:(0,y.jsx)(Eu,{className:"px-2"})}):r?(0,y.jsxs)(lu,{className:"rounded-none px-3",state:"waiting",children:[t+1," - ",a]}):(0,y.jsx)(lu,{className:"rounded-none px-3",state:"waiting",color:"subtle",children:"none"}),(0,y.jsx)(lu,{icon:"contrast",disabled:r!==n,size:"small",variant:"gray",className:"rounded-none",onClick:()=>o.push({query:{...o.query,offset:t+n}}),children:(0,y.jsx)(lc.VUy,{})})]})}function SA(e){let{title:t,nav:n,stats:r,actions:i}=e;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"flex items-center gap-2 px-6 h-14 z-10 bg-white dark:bg-graydark-50 border-b border-gray-500 dark:border-graydark-500",children:[t?"string"==typeof t?(0,y.jsx)(t1,{font:"mono",size:"18",weight:"bold",className:"hidden lg:block relative -top-px",children:t}):t:null,(0,y.jsxs)("div",{className:"flex-1 flex gap-4 items-center justify-between h-full px-1 -mx-1 overflow-x-hidden",children:[(0,y.jsx)("div",{className:"flex gap-2 items-center h-full flex-1 overflow-x-hidden",children:n}),(0,y.jsx)("div",{className:"flex gap-2 items-center h-full",children:i})]})]}),r&&(0,y.jsx)("div",{className:"flex items-center gap-2 px-6 py-3 h-10 z-10 bg-gray-50 dark:bg-graydark-50 border-b border-gray-300 dark:border-graydark-300",children:r})]})}let SP=("string"==typeof(d={src:"/_next/static/media/background-pattern.b997b25c.jpg",height:104,width:34,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAARCAAIAAMDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAZEAADAAMAAAAAAAAAAAAAAAAAAQISIpH/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/8QAFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8ArRbxWi6AAP/Z",blurWidth:3,blurHeight:8})?{src:d}:d).src;function SN(e){let{children:t}=e;return(0,y.jsxs)("div",{className:"relative -z-10 opacity-100 pointer-events-none",children:[(0,y.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-10 bg-white dark:bg-graydark-50"}),(0,y.jsx)("div",{className:"fixed top-0 left-0 right-0 w-[200vw] h-[200vh] opacity-30 z-30 translate-x[-50vw] translate-y[-100vh]",style:{backgroundImage:"url(".concat(SP,")"),backgroundPositionY:"bottom",backgroundSize:"auto"}}),(0,y.jsx)("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-95 z-40 bg-white dark:bg-graydark-50"}),t]})}var SR=n(97729),SD=n.n(SR);function SL(e){let{appName:t,title:n,children:r}=e,i=n?"".concat(t," - ").concat(n):t;return(0,y.jsxs)(SD(),{children:[(0,y.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),(0,y.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,y.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/favicon-32x32.png"}),(0,y.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/favicon-16x16.png"}),(0,y.jsx)("link",{rel:"manifest",href:"/site.webmanifest"}),(0,y.jsx)("link",{rel:"mask-icon",href:"/safari-pinned-tab.svg",color:"#1ed660"}),(0,y.jsx)("meta",{name:"msapplication-TileColor",content:"#2b5797"}),(0,y.jsx)("meta",{name:"theme-color",content:"#ffffff"}),r,(0,y.jsx)("title",{children:i})]})}function SF(e){let{appName:t,title:n,children:r}=e;return(0,y.jsxs)("div",{className:"h-screen",children:[(0,y.jsx)(SL,{appName:t,title:n}),r]})}function Sz(e){let{appName:t,title:n,children:r,filters:i,actions:o}=e;return(0,y.jsxs)(SF,{appName:t,title:n,children:[(0,y.jsx)(SN,{}),(0,y.jsx)("div",{className:"flex h-full",children:(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(SA,{nav:i,actions:o}),(0,y.jsx)("div",{className:"flex-1",children:(0,y.jsx)(lL,{className:"h-full",children:r})})]})})]})}function SV(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,y.jsx)(ls,{side:"right",content:(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"spendable"}),(0,y.jsx)(t1,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(Sn,{variant:"value",value:t.spendable})})]}),(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"confirmed"}),(0,y.jsx)(t1,{color:"subtle",children:"All confirmed outputs."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(Sn,{variant:"value",value:t.confirmed})})]}),(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"unconfirmed"}),(0,y.jsx)(t1,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(Sn,{variant:"value",value:t.unconfirmed})})]})]}),children:(0,y.jsx)(t1,{size:"12",weight:"medium",children:(0,vS.Vz)(t.spendable.plus(t.unconfirmed),{fixed:0})})}):(0,y.jsx)(ls,{side:"right",content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,y.jsx)(t1,{size:"12",weight:"medium",children:(0,vS.Vz)(t.spendable.plus(t.unconfirmed),{fixed:0})})}):null}var SI=n(82876);function SZ(e){let{title:t,children:n,route:r,onClick:i}=e,o=(0,SI.usePathname)(),a=r&&("/"===r?o===r:null==o?void 0:o.startsWith(r));return r?(0,y.jsx)(di,{href:r,className:"no-underline",children:(0,y.jsx)(ls,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,y.jsx)(lu,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}):(0,y.jsx)(ls,{side:"right",align:"center",delayDuration:0,sideOffset:5,content:t,children:(0,y.jsx)(lu,{icon:"contrast",size:"none",variant:"state","data-state":a?"open":"closed",onClick:i,children:n})})}function SB(e){let{walletBalanceSc:t,isSynced:n,routes:r}=e;return(0,y.jsx)(SZ,{title:"Wallet",route:r.wallet.view,children:(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,y.jsx)(lc.oaN,{}),n&&t&&(0,y.jsx)(SV,{isSynced:n,balanceSc:t})]})})}function SH(e){let{routes:t,profile:n,isSynced:r,showWallet:i=!0,walletBalanceSc:o,lock:a,openSettings:s,children:l}=e;return(0,y.jsx)(t3,{className:"relative overflow-hidden z-10 h-full w-[75px] rounded-none border-y-0",children:(0,y.jsxs)("div",{className:"flex flex-col items-center h-full",children:[(0,y.jsx)("div",{className:"flex items-center justify-center",style:{height:"".concat(60,"px")},children:n||(0,y.jsx)(dl,{size:30})}),(0,y.jsxs)("div",{className:"flex flex-col gap-6 items-center pt-4 pb-6 h-full",children:[(0,y.jsx)("div",{className:"flex flex-col gap-6 items-center",children:l}),(0,y.jsx)("div",{className:"flex-1"}),(0,y.jsx)(cF,{className:"w-full"}),i&&(0,y.jsx)(SB,{routes:t,isSynced:r,walletBalanceSc:o}),(0,y.jsx)(SZ,{title:"Blockchain node",route:t.node.index,children:(0,y.jsx)(lc.kBK,{})}),(0,y.jsx)(SZ,{title:"App preferences",onClick:()=>s(),children:(0,y.jsx)(lc.UG6,{})}),(0,y.jsx)(SZ,{title:"Lock app",onClick:a,children:(0,y.jsx)(lc.mBM,{})})]})]})})}var SU=Object.create,SW=Object.defineProperty,Sq=Object.getOwnPropertyDescriptor,S$=Object.getOwnPropertyNames,SK=Object.getPrototypeOf,SY=Object.prototype.hasOwnProperty,SG=(m=null!=(p=(f=(e,t)=>{var r,i;r=e,i=function(e){var t,n=void 0===Number.MAX_SAFE_INTEGER?9007199254740991:Number.MAX_SAFE_INTEGER,r=2*536870912,i=new WeakMap,o=(t=function(e,t){return i.set(e,t),t},function(e){var o=i.get(e),a=void 0===o?e.size:on)throw Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;e.has(a);)a=Math.floor(Math.random()*n);return t(e,a)});e.addUniqueNumber=function(e){var t=o(e);return e.add(t),t},e.generateUniqueNumber=o},"object"==typeof e&&"u">typeof t?i(e):"function"==typeof define&&n.amdO?define(["exports"],i):i((r="u">typeof globalThis?globalThis:r||self).fastUniqueNumbers={})},()=>(h||f((h={exports:{}}).exports,h),h.exports))())?SU(SK(p)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of S$(t))SY.call(e,n)||void 0===n||SW(e,n,{get:()=>t[n],enumerable:!(r=Sq(t,n))||r.enumerable});return e})(p&&p.__esModule?m:SW(m,"default",{value:p,enumerable:!0}),p)),SX=e=>void 0!==e.method&&"call"===e.method,SJ=e=>null===e.error&&"number"==typeof e.id;v=e=>{let t=new Map([[0,()=>{}]]),n=new Map([[0,()=>{}]]),r=new Map,i=new Worker(e);return i.addEventListener("message",({data:e})=>{if(SX(e)){let{params:{timerId:i,timerType:o}}=e;if("interval"===o){let e=t.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e();else throw Error("The timer is in an undefined state.")}else if("timeout"===o){let e=n.get(i);if("number"==typeof e){let t=r.get(e);if(void 0===t||t.timerId!==i||t.timerType!==o)throw Error("The timer is in an undefined state.")}else if("u">typeof e)e(),n.delete(i);else throw Error("The timer is in an undefined state.")}}else if(SJ(e)){let{id:i}=e,o=r.get(i);if(void 0===o)throw Error("The timer is in an undefined state.");let{timerId:a,timerType:s}=o;r.delete(i),"interval"===s?t.delete(a):n.delete(a)}else{let{error:{message:t}}=e;throw Error(t)}}),{clearInterval:e=>{let n=(0,SG.generateUniqueNumber)(r);r.set(n,{timerId:e,timerType:"interval"}),t.set(e,n),i.postMessage({id:n,method:"clear",params:{timerId:e,timerType:"interval"}})},clearTimeout:e=>{let t=(0,SG.generateUniqueNumber)(r);r.set(t,{timerId:e,timerType:"timeout"}),n.set(e,t),i.postMessage({id:t,method:"clear",params:{timerId:e,timerType:"timeout"}})},setInterval:(e,n)=>{let r=(0,SG.generateUniqueNumber)(t);return t.set(r,()=>{e(),"function"==typeof t.get(r)&&i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}})}),i.postMessage({id:null,method:"set",params:{delay:n,now:performance.now(),timerId:r,timerType:"interval"}}),r},setTimeout:(e,t)=>{let r=(0,SG.generateUniqueNumber)(n);return n.set(r,e),i.postMessage({id:null,method:"set",params:{delay:t,now:performance.now(),timerId:r,timerType:"timeout"}}),r}}},a=null,()=>{if(null!==a)return a;let e=new Blob(['(()=>{"use strict";const e=new Map,t=new Map,r=(e,t)=>{let r,o;const i=performance.now();r=i,o=e-Math.max(0,i-t);return{expected:r+o,remainingDelay:o}},o=(e,t,r,i)=>{const s=performance.now();s>r?postMessage({id:null,method:"call",params:{timerId:t,timerType:i}}):e.set(t,setTimeout(o,r-s,e,t,r,i))};addEventListener("message",(i=>{let{data:s}=i;try{if("clear"===s.method){const{id:r,params:{timerId:o,timerType:i}}=s;if("interval"===i)(t=>{const r=e.get(t);if(void 0===r)throw new Error(\'There is no interval scheduled with the given id "\'.concat(t,\'".\'));clearTimeout(r),e.delete(t)})(o),postMessage({error:null,id:r});else{if("timeout"!==i)throw new Error(\'The given type "\'.concat(i,\'" is not supported\'));(e=>{const r=t.get(e);if(void 0===r)throw new Error(\'There is no timeout scheduled with the given id "\'.concat(e,\'".\'));clearTimeout(r),t.delete(e)})(o),postMessage({error:null,id:r})}}else{if("set"!==s.method)throw new Error(\'The given method "\'.concat(s.method,\'" is not supported\'));{const{params:{delay:i,now:n,timerId:a,timerType:d}}=s;if("interval"===d)((t,i,s)=>{const{expected:n,remainingDelay:a}=r(t,s);e.set(i,setTimeout(o,a,e,i,n,"interval"))})(i,a,n);else{if("timeout"!==d)throw new Error(\'The given type "\'.concat(d,\'" is not supported\'));((e,i,s)=>{const{expected:n,remainingDelay:a}=r(e,s);t.set(i,setTimeout(o,a,t,i,n,"timeout"))})(i,a,n)}}}}catch(e){postMessage({error:{message:e.message},id:s.id,result:null})}}))})();'],{type:"application/javascript; charset=utf-8"}),t=URL.createObjectURL(e);return a=v(t),setTimeout(()=>URL.revokeObjectURL(t)),a};var SQ=(typeof window>"u"?"undefined":typeof window)=="object",S0={setTimeout:SQ?setTimeout.bind(window):setTimeout,clearTimeout:SQ?clearTimeout.bind(window):clearTimeout,setInterval:SQ?setInterval.bind(window):setInterval,clearInterval:SQ?clearInterval.bind(window):clearInterval},S1={},S2=class{name;closed=!1;mc=new MessageChannel;constructor(e){this.name=e,S1[e]=S1[e]||[],S1[e].push(this),this.mc.port1.start(),this.mc.port2.start(),this.onStorage=this.onStorage.bind(this),window.addEventListener("storage",this.onStorage)}onStorage(e){if(e.storageArea!==window.localStorage||e.key.substring(0,this.name.length)!==this.name||null===e.newValue)return;let t=JSON.parse(e.newValue);this.mc.port2.postMessage(t)}postMessage(e){if(this.closed)throw Error("InvalidStateError");let t=JSON.stringify(e),n=`${this.name}:${String(Date.now())}${String(Math.random())}`;window.localStorage.setItem(n,t),S0.setTimeout(()=>{window.localStorage.removeItem(n)},500),S1[this.name].forEach(e=>{e!==this&&e.mc.port2.postMessage(JSON.parse(t))})}close(){if(this.closed)return;this.closed=!0,this.mc.port1.close(),this.mc.port2.close(),window.removeEventListener("storage",this.onStorage);let e=S1[this.name].indexOf(this);S1[this.name].splice(e,1)}get onmessage(){return this.mc.port1.onmessage}set onmessage(e){this.mc.port1.onmessage=e}get onmessageerror(){return this.mc.port1.onmessageerror}set onmessageerror(e){this.mc.port1.onmessageerror=e}addEventListener(e,t){return this.mc.port1.addEventListener(e,t)}removeEventListener(e,t){return this.mc.port1.removeEventListener(e,t)}dispatchEvent(e){return this.mc.port1.dispatchEvent(e)}},S4=typeof window>"u"?void 0:"function"==typeof window.BroadcastChannel?window.BroadcastChannel:S2;function S3(){return Math.random().toString(36).substring(2)}var S5=class{options;channel;token=S3();isLeader=!1;isDead=!1;isApplying=!1;reApply=!1;intervals=[];listeners=[];deferred;constructor(e,t){this.channel=e,this.options=t,this.apply=this.apply.bind(this),this.awaitLeadership=this.awaitLeadership.bind(this),this.sendAction=this.sendAction.bind(this)}async apply(){if(this.isLeader||this.isDead)return!1;if(this.isApplying)return this.reApply=!0,!1;this.isApplying=!0;let e=!1,t=t=>{let{token:n,action:r}=t.data;n!==this.token&&(0===r&&n>this.token&&(e=!0),1===r&&(e=!0))};this.channel.addEventListener("message",t);try{return this.sendAction(0),await function(e=0){return new Promise(t=>S0.setTimeout(t,e))}(this.options.responseTime),this.channel.removeEventListener("message",t),this.isApplying=!1,e?!!this.reApply&&this.apply():(this.assumeLead(),!0)}catch{return!1}}awaitLeadership(){if(this.isLeader)return Promise.resolve();let e=!1,t=null;return new Promise(n=>{let r=()=>{if(e)return;e=!0;try{S0.clearInterval(t)}catch{}let r=this.intervals.indexOf(t);r>=0&&this.intervals.splice(r,1),this.channel.removeEventListener("message",i),n()};t=S0.setInterval(()=>{this.apply().then(()=>{this.isLeader&&r()})},this.options.fallbackInterval),this.intervals.push(t);let i=e=>{let{action:t}=e.data;2===t&&this.apply().then(()=>{this.isLeader&&r()})};this.channel.addEventListener("message",i)})}sendAction(e){this.channel.postMessage({action:e,token:this.token})}assumeLead(){this.isLeader=!0;let e=e=>{let{action:t}=e.data;0===t&&this.sendAction(1)};return this.channel.addEventListener("message",e),this.listeners.push(e),this.sendAction(1)}waitForLeadership(){return this.deferred||(this.deferred=this.awaitLeadership()),this.deferred}close(){if(!this.isDead){this.isDead=!0,this.isLeader=!1,this.sendAction(2);try{this.listeners.forEach(e=>this.channel.removeEventListener("message",e)),this.intervals.forEach(e=>S0.clearInterval(e))}catch{}}}},S6=class{channel;options;elector;token=S3();registry=new Map;allIdle=!1;isLastActive=!1;constructor(e){let{channelName:t}=e;this.options=e,this.channel=new S4(t),this.registry.set(this.token,1),e.leaderElection&&(this.elector=new S5(this.channel,{fallbackInterval:2e3,responseTime:100}),this.elector.waitForLeadership()),this.channel.addEventListener("message",e=>{let{action:t,token:n,data:r}=e.data;switch(t){case 3:this.registry.set(n,2);break;case 4:this.registry.delete(n);break;case 5:this.idle(n);break;case 6:this.active(n);break;case 7:this.prompt(n);break;case 8:this.start(n);break;case 9:this.reset(n);break;case 10:this.activate(n);break;case 11:this.pause(n);break;case 12:this.resume(n);break;case 13:this.options.onMessage(r)}}),this.send(3)}get isLeader(){if(!this.elector)throw Error('❌ Leader election is not enabled. To Enable it set the "leaderElection" property to true.');return this.elector.isLeader}prompt(e=this.token){this.registry.set(e,0);let t=[...this.registry.values()].every(e=>0===e);e===this.token&&this.send(7),t&&this.options.onPrompt()}idle(e=this.token){this.registry.set(e,2);let t=[...this.registry.values()].every(e=>2===e);e===this.token&&this.send(5),!this.allIdle&&t&&(this.allIdle=!0,this.options.onIdle())}active(e=this.token){this.allIdle=!1,this.registry.set(e,1);let t=[...this.registry.values()].some(e=>1===e);e===this.token&&this.send(6),t&&this.options.onActive(),this.isLastActive=e===this.token}start(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(8):this.options.start(!0),this.isLastActive=e===this.token}reset(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(9):this.options.reset(!0),this.isLastActive=e===this.token}activate(e=this.token){this.allIdle=!1,this.registry.set(e,1),e===this.token?this.send(10):this.options.activate(!0),this.isLastActive=e===this.token}pause(e=this.token){e===this.token?this.send(11):this.options.pause(!0)}resume(e=this.token){e===this.token?this.send(12):this.options.resume(!0)}message(e){try{this.channel.postMessage({action:13,token:this.token,data:e})}catch{}}send(e){try{this.channel.postMessage({action:e,token:this.token})}catch{}}close(){this.options.leaderElection&&this.elector.close(),this.send(4),this.channel.close()}},S8=SQ?document:null,S7=["mousemove","keydown","wheel","DOMMouseScroll","mousewheel","mousedown","touchstart","touchmove","MSPointerDown","MSPointerMove","visibilitychange","focus"];function S9(e,t){let n=0;return function(...r){let i=new Date().getTime();if(!(i-nDate.now();function _t(e){let{route:t}=e,n=(0,fY.Nf)({route:t,config:{swr:{refreshInterval:3e4}}});return{isConnected:!n.error,isValidating:n.isValidating}}function _n(e){let{appName:t,title:n,navTitle:r,profile:i,size:o="4",banner:a,nav:s,actions:l,stats:u,children:c,sidenav:d,connectivityRoute:f,isSynced:h,showWallet:p,walletBalanceSc:m,routes:v,scroll:g=!0,openSettings:b}=e,{lock:w,settings:j}=(0,fY.Hv)();return!function(e){let{lock:t,route:n,routes:r}=e,{isConnected:i,isValidating:o}=_t({route:n}),{settings:a}=(0,fY.Hv)(),s=(0,SO.useRouter)();(0,x.useEffect)(()=>{if(o)return;let e=!s.asPath.startsWith(r.login),n=!a.password||!i;if(e&&n){t();return}},[s,a.password,i,o])}({lock:w,route:f,routes:v}),!function(e){let{enabled:t,lock:n,lockTimeout:r}=e,i=(0,x.useCallback)(()=>{n()},[n]);!function({timeout:e=12e5,promptTimeout:t=0,promptBeforeIdle:n=0,element:r=S8,events:i=S7,timers:o,immediateEvents:a=[],onPresenceChange:s=()=>{},onPrompt:l=()=>{},onIdle:u=()=>{},onActive:c=()=>{},onAction:d=()=>{},onMessage:f=()=>{},debounce:h=0,throttle:p=0,eventsThrottle:m=200,startOnMount:v=!0,startManually:g=!1,stopOnIdle:y=!1,crossTab:b=!1,name:w="idle-timer",syncTimers:j=0,leaderElection:E=!1,disabled:k=!1}={}){let S=(0,x.useRef)(_e()),_=(0,x.useRef)(_e()),C=(0,x.useRef)(null),O=(0,x.useRef)(null),M=(0,x.useRef)(0),T=(0,x.useRef)(0),A=(0,x.useRef)(0),P=(0,x.useRef)(0),N=(0,x.useRef)(!1),R=(0,x.useRef)(!1),D=(0,x.useRef)(!1),L=(0,x.useRef)(!0),F=(0,x.useRef)(!1),z=(0,x.useRef)(null),V=(0,x.useRef)(null),I=(0,x.useRef)(e),Z=(0,x.useRef)(0);(0,x.useEffect)(()=>{if(t&&console.warn("⚠️ IdleTimer -- The `promptTimeout` property has been deprecated in favor of `promptBeforeIdle`. It will be removed in the next major release."),n&&t)throw Error("❌ Both promptTimeout and promptBeforeIdle can not be set. The promptTimeout property will be deprecated in a future version.");if(e>=2147483647)throw Error(`\u274C The value for the timeout property must fit in a 32 bit signed integer, 2147483647.`);if(t>=2147483647)throw Error(`\u274C The value for the promptTimeout property must fit in a 32 bit signed integer, 2147483647.`);if(n>=2147483647)throw Error(`\u274C The value for the promptBeforeIdle property must fit in a 32 bit signed integer, 2147483647.`);if(n>=e)throw Error(`\u274C The value for the promptBeforeIdle property must be less than the timeout property, ${e}.`);if(n?(I.current=e-n,Z.current=n):(I.current=e,Z.current=t),!L.current){if(g||k)return;N.current&&(G.current(null,eA),V.current&&V.current.active()),ed()}},[e,t,n,g,k]);let B=(0,x.useRef)(y);(0,x.useEffect)(()=>{B.current=y},[y]);let H=(0,x.useRef)(a),U=(0,x.useRef)(r),W=(0,x.useRef)([...new Set([...i,...a]).values()]),q=(0,x.useRef)(k);(0,x.useEffect)(()=>{q.current=k,!L.current&&(k?ep():g||ed())},[k]);let $=(0,x.useRef)(s);(0,x.useEffect)(()=>{$.current=s},[s]);let K=(0,x.useRef)(l);(0,x.useEffect)(()=>{K.current=l},[l]);let Y=(0,x.useRef)(u);(0,x.useEffect)(()=>{Y.current=u},[u]);let G=(0,x.useRef)(c);(0,x.useEffect)(()=>{G.current=c},[c]);let X=(0,x.useRef)(d);(0,x.useEffect)(()=>{X.current=d},[d]);let J=(0,x.useRef)(f);(0,x.useEffect)(()=>{J.current=f},[f]);let Q=(0,x.useMemo)(()=>{let e=(e,t)=>X.current(e,t);return h>0?function(e,t){let n;function r(...i){n&&clearTimeout(n),n=setTimeout(()=>{e(...i),n=null},t)}return r.cancel=function(){clearTimeout(n)},r}(e,h):p>0?S9(e,p):e},[p,h]),ee=(0,x.useRef)();(0,x.useEffect)(()=>{b&&j&&(ee.current=S9(()=>{V.current.active()},j))},[b,j]);let et=()=>{null!==z.current&&(S0.clearTimeout(z.current),z.current=null)},en=(e,t=!0)=>{et(),z.current=S0.setTimeout(ea,e||I.current),t&&(O.current=_e())},er=e=>{R.current||N.current||(K.current(e,eA),$.current({type:"active",prompted:!0},eA)),P.current=0,A.current=_e(),R.current=!0,en(Z.current,!1)},ei=()=>{et(),N.current||(Y.current(null,eA),$.current({type:"idle"},eA)),N.current=!0,C.current=_e(),B.current?ec():R.current&&(A.current=0,R.current=!1)},eo=e=>{et(),(N.current||R.current)&&(G.current(e,eA),$.current({type:"active",prompted:!1},eA)),R.current=!1,A.current=0,N.current=!1,M.current+=_e()-C.current,T.current+=_e()-C.current,eu(),en()},ea=e=>{if(!N.current){Q.cancel&&Q.cancel();let t=_e()-O.current;if(!(I.current+Z.current0&&!R.current){V.current?V.current.prompt():er(e);return}V.current?V.current.idle():ei();return}V.current?V.current.active():eo(e)},es=e=>{if(v||O.current||(O.current=_e(),G.current(null,eA)),Q(e,eA),R.current)return;if(et(),!N.current&&H.current.includes(e.type)){ea(e);return}let t=_e()-O.current;if(N.current&&!y||!N.current&&t>=I.current){ea(e);return}D.current=!1,P.current=0,A.current=0,en(),b&&j&&ee.current()},el=(0,x.useRef)(es);(0,x.useEffect)(()=>{let e=F.current;e&&ec(),m>0?el.current=S9(es,m):el.current=es,e&&eu()},[m,p,h,X,b,j]);let eu=()=>{SQ&&U.current&&(F.current||(W.current.forEach(e=>{U.current.addEventListener(e,el.current,{capture:!0,passive:!0})}),F.current=!0))},ec=(e=!1)=>{SQ&&U.current&&(F.current||e)&&(W.current.forEach(e=>{U.current.removeEventListener(e,el.current,{capture:!0})}),F.current=!1)},ed=(0,x.useCallback)(e=>!q.current&&(et(),eu(),N.current=!1,R.current=!1,D.current=!1,P.current=0,A.current=0,V.current&&!e&&V.current.start(),en(),!0),[z,N,q,I,V]),ef=(0,x.useCallback)(e=>!q.current&&(et(),eu(),_.current=_e(),M.current+=_e()-C.current,T.current+=_e()-C.current,M.current=0,N.current=!1,R.current=!1,D.current=!1,P.current=0,A.current=0,V.current&&!e&&V.current.reset(),g||en(),!0),[z,N,I,g,q,V]),eh=(0,x.useCallback)(e=>!q.current&&(et(),eu(),(N.current||R.current)&&eo(),N.current=!1,R.current=!1,D.current=!1,P.current=0,A.current=0,_.current=_e(),V.current&&!e&&V.current.activate(),en(),!0),[z,N,R,q,I,V]),ep=(0,x.useCallback)((e=!1)=>!q.current&&!D.current&&(P.current=ej(),D.current=!0,ec(),et(),V.current&&!e&&V.current.pause(),!0),[z,q,V]),em=(0,x.useCallback)((e=!1)=>!q.current&&!!D.current&&(D.current=!1,R.current||eu(),N.current||en(P.current),A.current&&(A.current=_e()),V.current&&!e&&V.current.resume(),!0),[z,I,q,P,V]),ev=(0,x.useCallback)((e,t)=>(V.current?(t&&J.current(e,eA),V.current.message(e)):t&&J.current(e,eA),!0),[f]),eg=(0,x.useCallback)(()=>N.current,[N]),ey=(0,x.useCallback)(()=>R.current,[R]),ex=(0,x.useCallback)(()=>V.current?V.current.isLeader:null,[V]),eb=(0,x.useCallback)(()=>V.current?V.current.isLastActive:null,[V]),ew=(0,x.useCallback)(()=>V.current?V.current.token:null,[V]),ej=(0,x.useCallback)(()=>{if(D.current)return P.current;let e=Math.floor((P.current?P.current:Z.current+I.current)-(O.current?_e()-O.current:0));return e<0?0:Math.abs(e)},[I,Z,R,P,O]),eE=(0,x.useCallback)(()=>Math.round(_e()-_.current),[_]),ek=(0,x.useCallback)(()=>Math.round(_e()-S.current),[S]),eS=(0,x.useCallback)(()=>C.current?new Date(C.current):null,[C]),e_=(0,x.useCallback)(()=>O.current?new Date(O.current):null,[O]),eC=(0,x.useCallback)(()=>N.current?Math.round(_e()-C.current+M.current):Math.round(M.current),[C,M]),eO=(0,x.useCallback)(()=>N.current?Math.round(_e()-C.current+T.current):Math.round(T.current),[C,T]),eM=(0,x.useCallback)(()=>{let e=Math.round(eE()-eC());return e>=0?e:0},[C,M]),eT=(0,x.useCallback)(()=>{let e=Math.round(ek()-eO());return e>=0?e:0},[C,M]);(0,x.useEffect)(()=>{if(h>0&&p>0)throw Error("❌ onAction can either be throttled or debounced, not both.");o&&(S0.setTimeout=o.setTimeout,S0.clearTimeout=o.clearTimeout,S0.setInterval=o.setInterval,S0.clearInterval=o.clearInterval);let e=()=>{V.current&&V.current.close(),Q.cancel&&Q.cancel(),et(),ec(!0)};return SQ&&window.addEventListener("beforeunload",e),()=>{SQ&&window.removeEventListener("beforeunload",e),V.current&&V.current.close(),Q.cancel&&Q.cancel(),et(),ec(!0)}},[]),(0,x.useEffect)(()=>{V.current&&V.current.close(),b?V.current=new S6({channelName:w,leaderElection:E,onPrompt:()=>{er()},onIdle:()=>{ei()},onActive:()=>{eo()},onMessage:e=>{J.current(e,eA)},start:ed,reset:ef,activate:eh,pause:ep,resume:em}):V.current=null},[b,w,E,K,Y,G,J,ed,ef,ep,em]),(0,x.useEffect)(()=>{L.current||(et(),ec(!0)),g||k||(v?ed():eu())},[g,v,k,L]),(0,x.useEffect)(()=>{if(!L.current){let e=[...new Set([...i,...a]).values()];ec(),W.current=e,U.current=r,H.current=a,g||k||(v?ed():eu())}},[r,JSON.stringify(i),JSON.stringify(a),L,k,g,v]),(0,x.useEffect)(()=>{L.current&&(L.current=!1)},[L]);let eA={message:ev,start:ed,reset:ef,activate:eh,pause:ep,resume:em,isIdle:eg,isPrompted:ey,isLeader:ex,isLastActiveTab:eb,getTabId:ew,getRemainingTime:ej,getElapsedTime:eE,getTotalElapsedTime:ek,getLastIdleTime:eS,getLastActiveTime:e_,getIdleTime:eC,getTotalIdleTime:eO,getActiveTime:eM,getTotalActiveTime:eT,setOnPresenceChange:e=>{s=e,$.current=e},setOnPrompt:e=>{l=e,K.current=e},setOnIdle:e=>{u=e,Y.current=e},setOnActive:e=>{c=e,G.current=e},setOnAction:e=>{d=e,X.current=e},setOnMessage:e=>{f=e,J.current=e}}}({disabled:!t,onIdle:i,timeout:r,throttle:5e3,eventsThrottle:5e3})}({enabled:!!j.autoLock,lockTimeout:j.autoLockTimeout,lock:w}),(0,y.jsxs)(SF,{appName:t,title:n,children:[(0,y.jsx)(SN,{}),(0,y.jsxs)("div",{className:"flex flex-col h-full w-full",children:[a,(0,y.jsxs)("div",{className:"flex flex-1 w-full overflow-hidden",children:[(0,y.jsx)(SH,{routes:v,profile:i,openSettings:b,lock:w,showWallet:p,walletBalanceSc:m,isSynced:h,children:d}),(0,y.jsxs)("div",{className:"flex flex-col flex-1 overflow-hidden",children:[(0,y.jsx)(SA,{title:void 0===r?n:r,nav:s,actions:l,stats:u}),g?(0,y.jsx)(ul,{className:"z-0",children:(0,y.jsx)(lL,{size:o,pad:!1,children:(0,y.jsx)("div",{className:"flex flex-col gap-5",children:c})})}):(0,y.jsx)(lL,{size:o,pad:!1,className:"flex-1 flex flex-col gap-5 overflow-hidden",children:c})]})]})]})]})}function _r(e,t,n,r){let[i,o]=(0,x.useState)();return(0,x.useEffect)(()=>{!t&&e&&o(e.length)},[t,e,o]),(0,x.useMemo)(()=>n?"error":void 0===i||i>0&&!e?"loading":0===i?0===r.length?"noneYet":"noneMatchingFilters":void 0,[e,i,n,r])}function _i(e){let{filtered:t}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-8 justify-center items-center h-[300px]",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.Hb6,{className:"scale-[200%]"})}),(0,y.jsx)(t1,{color:"subtle",className:"text-center max-w-[500px]",children:t?"No matching alerts.":"There are currently no alerts."})]})}(0,x.createContext)(null).Consumer;let _o=[];function _a(e){let{open:t,onOpenChange:n,dismissOne:r,dismissMany:i,alerts:o,dataFieldOrder:a,dataFields:s}=e,l=_r(o.data,o.isValidating,o.error,_o),[u,c]=(0,x.useState)(),d=(0,x.useMemo)(()=>{var e;return(null===(e=o.data)||void 0===e?void 0:e.filter(e=>!u||e.severity===u))||[]},[o.data,u]),f=(0,x.useCallback)(e=>{let t=Object.keys(e).sort((e,t)=>{let n=a.indexOf(e),r=a.indexOf(t);return -1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r});return t},[a]);return(0,y.jsx)(ud,{open:t,onOpenChange:e=>{n(e)},contentVariants:{className:"w-[500px] h-[80vh]"},title:(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsxs)(c2,{size:"20",children:["Alerts ",o.data?"(".concat(o.data.length,")"):""]}),(0,y.jsxs)("div",{className:"flex gap-1",children:[(0,y.jsx)(lu,{variant:"info"===u?"accent":"gray",onClick:()=>"info"===u?c(void 0):c("info"),children:"info"}),(0,y.jsx)(lu,{variant:"warning"===u?"accent":"gray",onClick:()=>"warning"===u?c(void 0):c("warning"),children:"warning"}),(0,y.jsx)(lu,{variant:"error"===u?"accent":"gray",onClick:()=>"error"===u?c(void 0):c("error"),children:"error"}),(0,y.jsx)(lu,{variant:"critical"===u?"accent":"gray",onClick:()=>"critical"===u?c(void 0):c("critical"),children:"critical"}),(0,y.jsx)("div",{className:"flex-1"}),!l&&!!d.length&&(0,y.jsxs)(lu,{tip:u?"dismiss ".concat(d.length):"dismiss all",onClick:()=>i(d.map(e=>e.id),u),children:[(0,y.jsx)(lc.NlZ,{}),d.length>0?" ".concat(d.length):""]})]})]}),children:(0,y.jsxs)("div",{className:(0,em.cx)("flex flex-col overflow-hidden -m-4","border-t border-gray-200 dark:border-graydark-300"),children:["noneYet"===l&&(0,y.jsx)(_i,{filtered:!1}),"error"===l&&(0,y.jsx)("div",{className:(0,em.cx)("flex items-center justify-center h-[100px]",_u()),children:(0,y.jsx)(t1,{size:"18",color:"subtle",children:o.error.message})}),"loading"===l&&(0,y.jsx)(_l,{}),!l&&(0,y.jsx)("div",{className:"flex flex-col",children:d.length?d.map(e=>(0,y.jsxs)("div",{className:(0,em.cx)("flex flex-col gap-1 w-full p-4","border-t border-gray-200 dark:border-graydark-300","first:border-none"),children:[(0,y.jsxs)("div",{className:"flex justify-between gap-1 w-full",children:[(0,y.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,y.jsxs)(t1,{weight:"medium",className:"w-full",children:[e.severity,": ",e.message]})}),(0,y.jsx)(lu,{tip:"Dismiss alert",onClick:()=>r(e.id),children:(0,y.jsx)(lc.NlZ,{})})]}),(0,y.jsxs)("div",{className:"flex justify-between w-full",children:[(0,y.jsx)(t1,{color:"subtle",ellipsis:!0,children:"timestamp"}),(0,y.jsx)(t1,{color:"contrast",ellipsis:!0,children:(0,vS.rN)(e.timestamp,{timeStyle:"medium"})})]}),f(e.data).map(t=>{var n;let r=e.data[t];if(null==r||"object"==typeof r&&!Object.keys(r).length)return null;let i=(null==s?void 0:null===(n=s[t])||void 0===n?void 0:n.render)||_s;return(0,y.jsx)(i,{label:t,value:r},t)})]},e.id)):(0,y.jsx)(_i,{filtered:!!u})})]})})}function _s(e){let{label:t,value:n}=e;return(0,y.jsxs)("div",{className:"flex justify-between w-full gap-2",children:[(0,y.jsx)(t1,{color:"subtle",children:t}),(0,y.jsx)(t1,{color:"contrast",ellipsis:!0,children:String(n)})]})}function _l(){return(0,y.jsx)(y.Fragment,{children:So()(10,e=>(0,y.jsx)("div",{className:(0,em.cx)("relative flex gap-4 p-3.5",_u()),children:(0,y.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,y.jsxs)("div",{className:"flex justify-between gap-2 w-full",children:[(0,y.jsx)(f8,{className:"w-[160px] h-[20px]"}),(0,y.jsx)(f8,{className:"w-[160px] h-[20px]"})]}),(0,y.jsx)(f8,{className:"w-[100px] h-[20px]"}),(0,y.jsx)(f8,{className:"w-full h-[120px]"})]})},e))})}function _u(){return(0,em.cx)("border-t border-gray-200 dark:border-graydark-300","first:border-none")}var _c=n(89644),_d=n.n(_c),_f=n(63955),_h=n(45861),_p=n.n(_h);function _m(e){let{form:t,field:n,name:r}=e,i=t.watch(r),o=t.formState.touchedFields[r]&&!!t.formState.errors[r],{ref:a,onChange:s,onBlur:l}=t.register(r,n.validation),u=(0,x.useCallback)(e=>{var r;s(e),null===(r=n.trigger)||void 0===r||r.forEach(e=>t.trigger(e))},[s,t,n]),c=(0,x.useCallback)((e,i)=>{var o;t.setValue(r,e,"boolean"==typeof i?i?{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0}:void 0:i),null===(o=n.trigger)||void 0===o||o.forEach(e=>t.trigger(e))},[r,t,n]);return{ref:a,name:r,value:i,error:o,onBlur:l,onChange:u,setValue:c}}function _v(e){return(0,x.useCallback)(t=>{kG(_p()(t).map(t=>{let[n,r]=t;return"".concat(e[n].title||n,": ").concat(null==r?void 0:r.message)}).join(", "))},[e])}function _g(e){let{name:t,form:n,fields:r,size:i="small",autoComplete:o,spellCheck:a,state:s=!0,group:l=!0}=e,u=r[t],{ref:c,onChange:d,onBlur:f,error:h}=_m({name:t,form:n,field:u}),p=(0,y.jsx)(fE,{ref:c,name:t,placeholder:u.placeholder,size:i,autoComplete:o,type:u.type,readOnly:u.readOnly,spellCheck:a,onClick:u.onClick,state:s?h?"invalid":n.formState.dirtyFields[t]?"valid":"default":"default",onChange:d,onBlur:f});return l?(0,y.jsx)(Sy,{title:u.title,actions:u.actions,name:t,form:n,children:p}):p}var _y=n(829),_x=n.n(_y);async function _b(e){let{api:t,route:n,password:r}=e;try{return await _d().get("".concat(t,"/api").concat(n),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(":".concat(r))},timeout:1e4}),{}}catch(n){let e=n.code,t=n.response;if((null==t?void 0:t.status)===504)return{error:"Error, check that daemon is running"};if((null==t?void 0:t.status)===401)return{error:"Error, wrong password"};if("ECONNABORTED"===e)return{error:"Error, daemon did not respond"};return{error:"Error, something went wrong"}}}function _w(e){let{appName:t,route:n,routes:r}=e,i=(0,SO.useRouter)(),{settings:o,setSettings:a}=(0,fY.Hv)(),{allowCustomApi:s}=o,l=(0,x.useMemo)(()=>({api:o.api,password:""}),[o.api]),u=(0,_f.cI)({mode:"onBlur",defaultValues:l});(0,x.useEffect)(()=>{u.clearErrors()},[s]);let c=(0,x.useCallback)(async e=>{let t="";if(s){let n=new URL(e.api);t="".concat(n.protocol,"//").concat(n.host)}let{error:c}=await _b({api:t,route:n,password:e.password});c?u.setError("password",{message:c}):(a({api:t,password:e.password,recentApis:{...o.recentApis,[t]:{lastUsed:new Date().getTime()}}}),i.push(i.query.prev?decodeURIComponent(i.query.prev):r.home),u.reset(l))},[s,u,i,r,o,a,l,n]),d=function(e){let{allowCustomApi:t}=e;return{api:{type:"text",title:"API",placeholder:"http://127.0.0.1:9980",validation:{validate:{required:e=>!t||!!e||"API is required",url:e=>{try{let t=new URL(e);return!!t.protocol&&!!t.host||"invalid API URL"}catch(e){return"invalid API URL"}},https:e=>{let t="https:"===window.location.protocol;return!t||t&&e.startsWith("https")||"API must use HTTPS"}}}},password:{type:"password",title:"Password",placeholder:"Enter password",validation:{required:"password is required"}}}}({allowCustomApi:s}),f=_v(d),h=u.formState.errors.api||u.formState.errors.password,p=_x()(Object.entries(o.recentApis),e=>{let[t,{lastUsed:n}]=e;return-n}).map(e=>{let[t]=e;return t});return(0,y.jsx)("div",{className:"flex flex-col items-center justify-center gap-6 h-full",children:(0,y.jsx)(t3,{className:"relative top-[-50px] w-[300px] p-2.5",children:(0,y.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(t1,{font:"mono",weight:"bold",size:"20",children:t}),(0,y.jsx)(cK,{trigger:(0,y.jsx)(lu,{icon:"hover",variant:"ghost",children:(0,y.jsx)(lc.shL,{})}),children:(0,y.jsx)(cY,{onSelect:()=>a({allowCustomApi:!s}),children:s?"Hide custom API":"Show custom API"})})]}),(0,y.jsx)(cF,{className:"w-full mt-2 mb-3"}),(0,y.jsx)("form",{onSubmit:u.handleSubmit(c,f),children:(0,y.jsxs)("div",{className:"flex flex-col gap-1.5",children:[s?(0,y.jsxs)(lR,{children:[(0,y.jsx)(_g,{name:"api",form:u,fields:d,group:!1}),p.length>1&&(0,y.jsx)(cK,{trigger:(0,y.jsx)(lu,{type:"button",children:(0,y.jsx)(lc.wGX,{})}),children:p.map(e=>(0,y.jsx)(cY,{onSelect:()=>u.setValue("api",e),children:e},e))})]}):null,(0,y.jsx)(_g,{name:"password",form:u,fields:d,group:!1}),h&&(0,y.jsx)(t1,{size:"14",color:"red",children:h.message}),(0,y.jsx)(Sx,{size:"small",form:u,children:"Unlock"})]})})]})})})}var _j=n(9156),_E=n(24511);let _k={address:"",siacoin:void 0,includeFee:!1},_S=_E.Ry().shape({address:_E.Z_().required("Required"),siacoin:_E.Z_().required("Required").test("greater than zero","Must be greater than zero",e=>!new(fW())(e||0).isZero())});function __(e){let{address:t,siacoin:n,fee:r,transactionId:i}=e,o=n.plus(r);return(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsxs)("div",{className:"flex gap-6 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Address"}),(0,y.jsx)(k9,{value:t,type:"address"})]}),(0,y.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Amount"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,y.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Network fee"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:r,variant:"value",dynamicUnits:!1})})]}),(0,y.jsxs)("div",{className:"flex items-center gap-2 justify-between",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Total"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:o,variant:"value",dynamicUnits:!1})})]}),i&&(0,y.jsxs)("div",{className:"flex gap-6 items-center justify-between",children:[(0,y.jsx)(t1,{color:"verySubtle",noWrap:!0,children:"Transaction ID"}),(0,y.jsx)(k9,{value:i,type:"transaction"})]})]})}function _C(e){let{activeStep:t,steps:n,onChange:r}=e,i=n.findIndex(e=>e.id===t),o=n.length-1;return(0,y.jsxs)("div",{className:"relative w-full mt-8 mb-3",children:[(0,y.jsx)("div",{className:"absolute w-full h-1 bg-gray-500 dark:bg-graydark-500 rounded-lg"}),(0,y.jsx)("div",{className:"absolute h-1 bg-accent-800 dark:bg-accentdark-800 rounded-lg",style:{width:"".concat(i/o*100,"%")}}),n.map((e,n)=>{let{id:a,label:s}=e,l=t===a,u=i>=n,c=n===o,d=0===n,f=u&&i!==o;return(0,y.jsxs)("div",{className:(0,em.cx)("absolute h-2 w-2 -top-0.5",f?"cursor-pointer":"cursor-default"),style:{left:"calc(".concat(n/o*100,"% - ").concat(c?8:d?0:4,"px)")},onClick:()=>{f&&r(a)},children:[(0,y.jsx)(t1,{color:l?"contrast":"verySubtle",className:(0,em.cx)("absolute top-[-30px]",d?"left-0":"",c?"right-0":"",d||c?"":"-translate-x-1/2"),noWrap:!0,children:s}),(0,y.jsx)("div",{className:(0,em.cx)("absolute left-0 top-0 h-full w-full rounded-lg border",u?"bg-accent-800 dark-accentdark-800":"bg-gray-500 dark:bg-graydark-500",u?"border-accent-900 dark:border-accentdark-900":"border-gray-600 dark:border-graydark-600")}),l&&(0,y.jsx)("div",{className:"absolute left-0 top-0 h-full w-full rounded-lg bg-accent-800 dark:bg-accentdark-800 animate-pingslow"})]},a)})]})}function _O(e){let{data:{address:t,siacoin:n},fee:r,transactionId:i}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(__,{address:t,siacoin:n,fee:r,transactionId:i}),(0,y.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 my-4",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.Z$8,{})}),(0,y.jsx)(t1,{children:"Transaction successfully broadcasted."})]})]})}let _M=(0,vS.qN)(.00393),_T={address:"",siacoin:new(fW())(0),includeFee:!1};function _A(e){let{trigger:t,open:n,onOpenChange:r,balance:i,send:o}=e,[a,s]=(0,x.useState)("setup"),[l,u]=(0,x.useState)(),[c,d]=(0,x.useState)(_T),f=function(e){let{balance:t,fee:n,onComplete:r}=e,i=(0,_j.TA)({initialValues:_k,validationSchema:_S,onSubmit:async e=>{if(!e.siacoin)return;let o=e.includeFee?(0,vS.qN)(e.siacoin).minus(n):(0,vS.qN)(e.siacoin);if(t){if(t.isLessThan((0,vS.qN)(e.siacoin).plus(n))){i.setStatus({error:"Not enough funds in wallet."});return}i.setStatus({}),r({includeFee:e.includeFee,address:e.address,siacoin:o})}}}),o=(0,vS.qN)(i.values.siacoin||0),a=(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(Sb,{formik:i,variants:{size:"medium"},title:"Address",name:"address",placeholder:"e3b1050aef388438668b52983cf78f40925af8f0aa8b9de80c18eadcefce8388d168a313e3f2",autoComplete:"off",type:"text"}),(0,y.jsx)(Sb,{formik:i,title:"Siacoin",name:"siacoin",placeholder:"100",type:"siacoin"}),(0,y.jsxs)("div",{className:"flex items-center",children:[(0,y.jsx)(hd,{name:"includeFee",onCheckedChange:e=>i.setFieldValue("includeFee",e),children:"Include fee"}),(0,y.jsx)(f0,{children:"Include or exclude the network fee from the above transaction value."}),(0,y.jsx)("div",{className:"flex flex-1"})]}),(0,y.jsxs)("div",{className:"flex flex-col gap-2 my-1",children:[(0,y.jsxs)("div",{className:"flex gap-2 justify-between items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",children:"Network fee"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:n,variant:"value",dynamicUnits:!1})})]}),(0,y.jsxs)("div",{className:"flex justify-between gap-2 items-center",children:[(0,y.jsx)(t1,{color:"verySubtle",children:"Total"}),(0,y.jsx)("div",{className:"flex relative top-[-0.5px]",children:(0,y.jsx)(Sn,{size:"14",value:i.values.includeFee?o:o.plus(n),variant:"value",dynamicUnits:!1})})]})]})]});return{formik:i,form:a}}({balance:i,fee:_M,onComplete:e=>{d(e),s("confirm")}}),h=function(e){let{send:t,formData:n,fee:r,onConfirm:i}=e,{address:o,siacoin:a}=n||{},s=(0,_j.TA)({initialValues:{},onSubmit:async()=>{let{transactionId:e,error:n}=await t({address:o,sc:a});if(n){s.setStatus({error:n});return}i({transactionId:e})}}),l=(0,y.jsx)("div",{className:"flex flex-col gap-4",children:(0,y.jsx)(__,{address:o,siacoin:a,fee:r})});return{form:l,formik:s}}({fee:_M,formData:c,send:o,onConfirm:e=>{let{transactionId:t}=e;u(t),s("done")}}),p=(0,x.useMemo)(()=>"setup"===a?{submitLabel:"Generate transaction",formik:f.formik}:"confirm"===a?{submitLabel:"Broadcast transaction",formik:h.formik}:void 0,[a,f,h]);return(0,y.jsx)(ud,{trigger:t,open:n,onOpenChange:e=>{e||(f.formik.resetForm(),h.formik.resetForm(),s("setup")),r(e)},title:"Send siacoin",onSubmit:p?p.formik.handleSubmit:void 0,controls:p&&(0,y.jsx)("div",{className:"flex flex-col gap-1",children:(0,y.jsx)(S_,{formik:p.formik,children:p.submitLabel})}),contentVariants:{className:"w-[400px]"},children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(_C,{onChange:e=>s(e),activeStep:a,steps:[{id:"setup",label:"Setup"},{id:"confirm",label:"Confirm"},{id:"done",label:"Complete"}]}),(0,y.jsx)(cF,{className:"w-full mt-4"}),"setup"===a&&f.form,"confirm"===a&&h.form,"done"===a&&(0,y.jsx)(_O,{data:c,fee:_M,transactionId:l})]})})}let _P="[a-fA-F\\d:]",_N=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(_P,")|(?<=").concat(_P,")(?=\\s|$))"):"",_R="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",_D="[a-fA-F\\d]{1,4}",_L="\n(?:\n(?:".concat(_D,":){7}(?:").concat(_D,"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:").concat(_D,":){6}(?:").concat(_R,"|:").concat(_D,"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:").concat(_D,":){5}(?::").concat(_R,"|(?::").concat(_D,"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:").concat(_D,":){4}(?:(?::").concat(_D,"){0,1}:").concat(_R,"|(?::").concat(_D,"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:").concat(_D,":){3}(?:(?::").concat(_D,"){0,2}:").concat(_R,"|(?::").concat(_D,"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:").concat(_D,":){2}(?:(?::").concat(_D,"){0,3}:").concat(_R,"|(?::").concat(_D,"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:").concat(_D,":){1}(?:(?::").concat(_D,"){0,4}:").concat(_R,"|(?::").concat(_D,"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::").concat(_D,"){0,5}:").concat(_R,"|(?::").concat(_D,"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),_F=new RegExp("(?:^".concat(_R,"$)|(?:^").concat(_L,"$)")),_z=new RegExp("^".concat(_R,"$")),_V=new RegExp("^".concat(_L,"$")),_I=e=>e&&e.exact?_F:RegExp("(?:".concat(_N(e)).concat(_R).concat(_N(e),")|(?:").concat(_N(e)).concat(_L).concat(_N(e),")"),"g");_I.v4=e=>e&&e.exact?_z:RegExp("".concat(_N(e)).concat(_R).concat(_N(e)),"g"),_I.v6=e=>e&&e.exact?_V:RegExp("".concat(_N(e)).concat(_L).concat(_N(e)),"g");let _Z=()=>RegExp("^(((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))|((([a-zA-Z]|[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]).)+([A-Za-z|[A-Za-z][A-Za-z0-9‌​-]*[A-Za-z0-9])))$","g"),_B={port:9981,ip:""},_H=_E.Ry().shape({port:_E.Rx().required("Required").min(0,"Out of valid range").max(65535,"Out of valid range"),ip:_E.Z_().required("Required").test("ip","Invalid hostname or IP address",e=>_Z().test(e||""))});function _U(e){let{trigger:t,open:n,connect:r,onOpenChange:i}=e,o=(0,_j.TA)({initialValues:_B,validationSchema:_H,onSubmit:async(e,t)=>{let n="".concat(e.ip,":").concat(e.port),o=await r(n);if(o.error){let e=o.error.replace("invalid peer address: address ".concat(n,":"),"");t.setStatus({error:e})}else k$("Connected to peer"),t.resetForm(),i(!1)}});return(0,y.jsx)(ud,{trigger:t,title:"Connect peer",open:n,onOpenChange:e=>{e||o.resetForm(),i(e)},contentVariants:{className:"w-[400px]"},children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Connect to a peer by IP address."}),(0,y.jsx)("form",{onSubmit:o.handleSubmit,children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(Sb,{formik:o,title:"Address",name:"ip",placeholder:"host.acme.com or 127.0.0.1",autoComplete:"off",type:"text",variants:{size:"medium"}}),(0,y.jsx)(Sb,{formik:o,title:"Port",name:"port",disableGroupSeparators:!0,placeholder:"9981",autoComplete:"off",type:"number",variants:{size:"medium"}}),(0,y.jsx)(S_,{formik:o,size:"medium",children:"Connect"})]})})]})})}function _W(e){var t;let{id:n,transaction:r,trigger:i,open:o,onOpenChange:a}=e;return(0,y.jsx)(ud,{title:k4((null==r?void 0:r.txType)?Su()(k7(r.txType)):"Transaction",n,16),trigger:i,open:o,onOpenChange:a,contentVariants:{className:"w-[800px]"},children:r?(0,y.jsxs)("div",{className:"flex flex-col gap-4 pb-10 w-full overflow-hidden",children:[(0,y.jsxs)("div",{className:"flex flex-wrap gap-4",children:[(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Inflow"}),(0,y.jsx)(Sn,{value:new(fW())((null==r?void 0:r.inflow)||0)})]}),(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Outflow"}),(0,y.jsx)(Sn,{value:new(fW())((null==r?void 0:r.outflow)||0).negated()})]}),(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Miner fee"}),(0,y.jsx)(Sn,{value:new(fW())((null==r?void 0:null===(t=r.raw.minerFees)||void 0===t?void 0:t.reduce((e,t)=>e.plus(t),new(fW())(0)))||0)})]}),(0,y.jsx)("div",{className:"flex-1"}),(0,y.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,y.jsx)(t1,{children:"Timestamp"}),(0,y.jsx)(t1,{children:(0,vS.rN)((null==r?void 0:r.timestamp)||0,{timeStyle:"short"})})]})]}),(0,y.jsx)(lT,{children:JSON.stringify(null==r?void 0:r.raw,null,2)})]}):(0,y.jsx)(t1,{children:"Could not find transaction in wallet"})})}_E.Ry().shape({address:_E.Z_().required("Required"),description:_E.Z_().required("Required"),index:_E.Rx().integer().required("Required")});var _q=n(38001);function _$(e){let{title:t,description:n,address:r}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-4 items-center justify-center",children:[t&&(0,y.jsx)(c2,{size:"20",font:"mono",children:t}),n&&(0,y.jsx)(t1,{children:n}),(0,y.jsx)("div",{className:"relative p-[5px] bg-white h-[210px] w-[210px]",children:(0,y.jsx)("div",{className:"absolute",children:(0,y.jsx)(_q.Z,{size:200,value:r})})}),(0,y.jsx)(k9,{type:"address",value:r})]})}function _K(e){let{address:t,isValidating:n,trigger:r,open:i,onOpenChange:o}=e;return(0,y.jsx)(ud,{title:k4("Address",k2(t)||"",16),trigger:r,open:i,onOpenChange:o,contentVariants:{className:"w-[400px]"},children:(0,y.jsx)("div",{className:"flex flex-col gap-4",children:t||n?(0,y.jsx)(_$,{address:t||""}):(0,y.jsx)(t1,{children:"Could not retreive wallet address"})})})}function _Y(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i}=e;return t?n?null:(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{color:"amber",children:(0,y.jsx)(lc.qdM,{})}),(0,y.jsxs)(t1,{size:"14",children:["Wallet is scanning (",i,"%), transaction data may be incomplete."]})]}):(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{color:"amber",children:(0,y.jsx)(lc.qdM,{})}),(0,y.jsxs)(t1,{size:"14",children:["Blockchain is syncing (",r,"%), transaction data may be incomplete."]})]})}let _G={docs:{index:"https://docs.sia.tech",sia101:"https://docs.sia.tech/get-started-with-sia/sia101",renterd:"https://docs.sia.tech/renting/about-renting",hostd:"https://docs.sia.tech/hosting/about-hosting-on-sia",walletd:"https://docs.sia.tech/wallet/wallet-overview",renting:"https://docs.sia.tech/renting/about-renting",wallet:"https://docs.sia.tech/wallet/wallet-overview",hosting:"https://docs.sia.tech/hosting/about-hosting-on-sia",mining:"https://docs.sia.tech/mining/about-mining-on-sia",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://api.sia.tech",siaui:"https://docs.sia.tech/your-sia-wallet/sia-ui-faqs",brand:"https://docs.sia.tech/sia-integrations/sia-brand-guidelines"},website:{index:"https://sia.tech",tos:"https://sia.tech/terms-of-service",privacy:"https://sia.tech/privacy-policy"},github:{index:"https://github.com/SiaFoundation",embarcadero:"https://github.com/SiaFoundation/embarcadero",siad:"https://github.com/SiaFoundation/siad",renterd:"https://github.com/SiaFoundation/renterd",walletd:"https://github.com/SiaFoundation/walletd",hostd:"https://github.com/SiaFoundation/hostd",siaui:"https://gitlab.com/NebulousLabs/Sia-UI"},discord:"https://sia.tech/discord"};function _X(){let{settings:e,setCurrency:t,currencyOptions:n}=(0,fY.Hv)();return(0,y.jsx)(f3,{disabled:!e.siaCentral,value:e.currency.id,onChange:e=>t(e.currentTarget.value),children:n.map(e=>{let{id:t,label:n}=e;return(0,y.jsx)(f5,{value:t,children:n},t)})})}function _J(e){let{open:t,onOpenChange:n,securityEl:r}=e,{settings:i,setSettings:o,gpu:a}=(0,fY.Hv)();return(0,y.jsx)(ud,{open:t,title:"App preferences",onOpenChange:n,contentVariants:{className:"w-[450px]"},children:(0,y.jsxs)("div",{className:"flex flex-col gap-6 mb-2",children:[(0,y.jsx)("div",{className:"flex flex-col gap-4",children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Display"}),(0,y.jsx)(t2,{size:"14",children:"Configure visual and locale display preferences."}),(0,y.jsx)(lg,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(c2,{size:"20",className:"flex-1",children:"Currency"}),(0,y.jsx)(_X,{})]}),(0,y.jsx)(t2,{size:"14",children:"Select a currency for price conversions from Siacoin. Requires Sia Central third-party data enabled under Privacy."})]})}),(0,y.jsx)(lg,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(c2,{size:"20",className:"flex-1",children:"Theme"}),(0,y.jsx)(pU,{})]}),(0,y.jsx)(t2,{size:"14",children:"Switch between a dark or light mode, or follow your system's settings."})]})}),(0,y.jsx)(lg,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(c2,{size:"20",className:"flex-1",children:"GPU"}),(0,y.jsx)(hd,{disabled:!a.canGpuRender,checked:a.canGpuRender&&a.isGpuEnabled,onCheckedChange:a.setIsGpuEnabled,size:"medium"})]}),(0,y.jsxs)(t2,{size:"14",children:["Enable features that require a GPU."," ",a.canGpuRender?"":"This device does not support GPU rendering."]})]})})]})}),(0,y.jsx)(cF,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Security"}),(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Configure security preferences."}),(0,y.jsx)(lg,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(c2,{size:"20",className:"flex-1",children:"Lock app"}),(0,y.jsx)(hd,{size:"medium",checked:i.autoLock,onCheckedChange:e=>o({autoLock:e})}),(0,y.jsxs)(f3,{disabled:!i.autoLock,value:String(i.autoLockTimeout),onChange:e=>{o({autoLockTimeout:Number(e.currentTarget.value)})},children:[(0,y.jsx)(f5,{value:j6(5),children:"5 minutes"}),(0,y.jsx)(f5,{value:j6(10),children:"10 minutes"}),(0,y.jsx)(f5,{value:j6(20),children:"20 minutes"}),(0,y.jsx)(f5,{value:j6(30),children:"30 minutes"}),(0,y.jsx)(f5,{value:j6(60),children:"1 hour"})]})]}),(0,y.jsx)(t2,{size:"14",children:"Automatically lock the app after a certain period of inactivity."})]})}),r]})]}),(0,y.jsx)(cF,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Privacy"}),(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Configure privacy preferences. The app uses the third-party APIs listed below to improve the user experience. All third-party APIs are optional and can be toggled on or off."}),(0,y.jsx)(lg,{children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,y.jsx)(t1,{children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(c2,{size:"20",className:"flex-1",children:"Sia Central"}),(0,y.jsx)(hd,{size:"medium",checked:i.siaCentral,onCheckedChange:e=>o({siaCentral:e})})]}),(0,y.jsx)(t2,{size:"14",children:"The app fetches Siacoin exchange rates from the Sia Central API."})]})})]})]}),(0,y.jsx)(cF,{className:"w-full"}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsx)(t1,{size:"16",weight:"bold",children:"Help"}),(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,y.jsx)(t2,{size:"14",children:"Find information about the Sia software at our website, documentation site, and on Github. Join our active Discord community for discussion and help troubleshooting issues."}),(0,y.jsxs)("div",{className:"flex gap-4",children:[(0,y.jsxs)(di,{href:_G.website.index,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lc.lq1,{}),"Website"]}),(0,y.jsxs)(di,{href:_G.docs.index,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lc.RdX,{}),"Docs"]}),(0,y.jsxs)(di,{href:_G.github.index,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lc.Sfn,{}),"About"]}),(0,y.jsxs)(di,{href:_G.discord,target:"_blank",className:"flex items-center gap-1",children:[(0,y.jsx)(lc.b47,{}),"Discord"]})]})]})]})]})})}function _Q(e){let{balanceSc:t,isSynced:n,syncingMessage:r}=e;return t?n?(0,y.jsx)(ls,{content:(0,y.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"spendable"}),(0,y.jsx)(t1,{color:"subtle",children:"All confirmed outputs not in-use."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(Sn,{variant:"value",value:t.spendable})})]}),(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"confirmed"}),(0,y.jsx)(t1,{color:"subtle",children:"All confirmed outputs."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(Sn,{variant:"value",value:t.confirmed})})]}),(0,y.jsxs)("div",{className:"flex gap-2",children:[(0,y.jsxs)("div",{className:"flex flex-col flex-1",children:[(0,y.jsx)(t1,{children:"unconfirmed"}),(0,y.jsx)(t1,{color:"subtle",children:"All unconfirmed outputs not in-use."})]}),(0,y.jsx)("div",{className:"flex justify-end",children:(0,y.jsx)(Sn,{variant:"value",value:t.unconfirmed})})]})]}),children:(0,y.jsx)(t3,{className:"hidden sm:flex h-7 px-3 items-center",children:(0,y.jsx)(t1,{size:"12",weight:"semibold",children:(0,vS.Vz)(t.spendable.plus(t.unconfirmed))})})}):(0,y.jsx)(ls,{content:r||"Blockchain is syncing, balance may be incorrect.",children:(0,y.jsxs)(t3,{className:"hidden sm:flex h-7 pl-2 pr-3 gap-1.5 items-center",children:[(0,y.jsx)(t1,{color:"amber",children:(0,y.jsx)(lc.qdM,{className:""})}),(0,y.jsx)(t1,{size:"12",weight:"semibold",children:(0,vS.Vz)(t.spendable.plus(t.unconfirmed))})]})}):null}function _0(e){let{isSynced:t,isWalletSynced:n,syncPercent:r,walletScanPercent:i,balanceSc:o,sendSiacoin:a,receiveSiacoin:s}=e;return(0,y.jsxs)(y.Fragment,{children:[o&&(0,y.jsx)(_Q,{isSynced:t&&n,syncingMessage:t?"Wallet is scanning (".concat(i,"%), balance may be incorrect."):"Blockchain is syncing (".concat(r,"%), balance may be incorrect."),balanceSc:o}),s&&(0,y.jsxs)(lu,{size:"small",onClick:s,children:[(0,y.jsx)(lc.xHM,{}),"Receive"]}),(0,y.jsxs)(lu,{size:"small",variant:"accent",onClick:a,children:[(0,y.jsx)(lc.rW0,{}),"Send"]})]})}let _1={default:e=>"".concat((0,vS.rN)(e))};function _2(e){let{total:t,start:n,end:r,count:i}=e,o=r-n;return{total:t,diff:o,change:0===n?void 0:o/n*100,latest:r,average:t/i}}function _4(e,t){return e.reduce((e,n)=>e+((null==t?void 0:t[n])||0),0)}function _3(e){let{balances:t,isLoading:n,chartType:r="area"}=e,{resolvedTheme:i}=(0,pB.F)(),o=(0,x.useMemo)(()=>"light"===i?{sc:{label:"siacoin",color:vk.accent[800]}}:{sc:{label:"siacoin",color:vk.accentdark[800]}},[i]),a=(0,x.useMemo)(()=>{let e=function(e,t){if(!e||!e.length)return[];let n=Object.keys(j5()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let r=[];return"delta"===t?e.forEach((t,i)=>{let o={...t};0!==i&&(n.forEach(n=>{let r=t[n],a=e[i-1][n];o[n]=r-a}),r.push(o))}):r=e,r}(t,"none"),i=function(e){if(!e||!e.length)return{};let t=Object.keys(j5()(e[0],"timestamp"));e.sort((e,t)=>e.timestamp>t.timestamp?1:-1);let n=t.reduce((t,n)=>({...t,[n]:function(e,t){var n,r;let i=(null===(n=t[0])||void 0===n?void 0:n[e])||0,o=(null===(r=t[t.length-1])||void 0===r?void 0:r[e])||0,a=t.reduce((t,n)=>t+(n[e]||0),0);return _2({total:a,start:i,end:o,count:t.length})}(n,e)}),{});return{...n,total:function(e,t){let n=_4(e,t[0]),r=_4(e,t[t.length-1]),i=t.reduce((t,n)=>t+_4(e,n),0);return _2({total:i,start:n,end:r,count:t.length})}(t,e)}}(t);return{data:e,stats:i,config:{enabledGraph:["sc"],enabledTip:["sc"],data:{sc:o.sc},format:e=>(0,vS.Vz)(e),formatTimestamp:_1.default||_1.default,disableAnimations:!0},chartType:r,isLoading:n}},[t,n,o,r]);return(0,y.jsx)("div",{className:"relative",children:(0,y.jsx)(Ed,{id:"balance",height:200,allowConfiguration:!1,data:a.data,config:a.config,chartType:a.chartType})})}function _5(e){let{peers:t,connectPeer:n}=e;return(0,y.jsx)(Sh,{title:"Peers",actions:(0,y.jsx)(lu,{onClick:n,children:"Connect"}),entities:(null==t?void 0:t.map(e=>({type:"ip",hash:e})))||[]})}function _6(e){let{size:t,label:n,enabled:r=!0,onChange:i,color:o}=e;return(0,y.jsxs)("div",{className:(0,em.cx)("flex gap-1.5 items-center",r?"opacity-100":"opacity-50",i?"cursor-pointer":"cursor-auto",i&&(r?"hover:opacity-90":"hover:opacity-60")),onClick:()=>i&&i(!r),children:[o&&(0,y.jsx)("div",{className:"relative top-px",children:(0,y.jsx)(f9,{style:{backgroundColor:o}})}),(0,y.jsx)(t1,{size:t,children:n})]})}function _8(e){return 1008*e}function _7(e){return 4320*e}function _9(e){return e/16666666666666669e-22}function Ce(e){return e/1008}function Ct(e,t){return new Date().getTime()+_9(t-e)}function Cn(e){let{children:t,variant:n,align:r}=e;return(0,y.jsx)("div",{className:"relative",style:{top:"primary"===n?"6px":void 0,left:"start"===r?"0px":void 0,right:"end"===r?"0px":void 0},children:(0,y.jsx)(t1,{size:"10",color:"primary"===n?"contrast":"verySubtle",dir:"start"===r?"rtl":"ltr",weight:"primary"===n?"semibold":"regular",ellipsis:!0,children:t})})}function Cr(e){let{date:t,align:n,variant:r}=e;return t?(0,y.jsx)(Cn,{variant:r,align:n,children:(0,vS.rN)(t)}):null}function Ci(e){let{blockHeight:t,align:n,variant:r}=e;return t?(0,y.jsx)(Cn,{variant:r,align:n,children:t.toLocaleString()}):null}function Co(e){let{label:t,currentHeight:n,range:r,startHeight:i,endHeight:o,color:a,align:s,rounded:l,className:u,showDates:c}=e;if(!i||!o)return null;let d=r.endHeight-r.startHeight,f=_9(d),h=Ct(n,r.startHeight),p=Ct(n,i),m=Ct(n,o),v=(p-h)/f,g=(m-h)/f;return(0,y.jsxs)("div",{className:(0,em.cx)("group flex items-center justify-center","absolute -top-[5px] h-4","cursor-pointer","transition-colors"),style:{left:Ca(v),width:Ca(g-v)},children:[(0,y.jsx)("div",{className:(0,em.cx)("z-0 absolute w-full h-full","rounded-md","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10"),style:{width:"calc(100% + 8px)",left:"-4px"}}),(0,y.jsx)("div",{className:(0,em.cx)("z-10 absolute w-full h-1.5",u,"start"===l?"rounded-l-lg":"end"===l?"rounded-r-lg":"rounded-lg","border-y","start"===l?"border-l":"end"===l?"border-r":"border","blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-blue-500/50 dark:border-blue-500/50"]:[],"green"===a?["bg-green-300 dark:bg-green-300","group-hover:bg-green-400 dark:group-hover:bg-green-400","border-green-500/50 dark:border-green-500/50"]:[],"amber"===a?["bg-amber-300 dark:bg-amber-300","group-hover:bg-amber-400 dark:group-hover:bg-amber-400","border-amber-500/50 dark:border-amber-500/50"]:[])}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 bottom-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Ca(1-g)}:{left:Ca(v)},children:[(0,y.jsx)(Ci,{blockHeight:i,align:"start",variant:"primary"}),(0,y.jsx)(Cn,{variant:"primary",children:t}),(0,y.jsx)(Ci,{blockHeight:o,align:"end",variant:"primary"})]}),c&&(0,y.jsxs)("div",{className:"flex group-hover/segments:hidden absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Ca(1-g)}:{left:Ca(v)},children:[(0,y.jsx)(Cr,{date:p,align:"start",variant:"secondary"}),(0,y.jsx)(Cr,{date:m,align:"start",variant:"secondary"})]}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-2 top-[100%]",style:"center"===s?{width:"100%"}:"end"===s?{right:Ca(1-g)}:{left:Ca(v)},children:[(0,y.jsx)(Cr,{date:p,align:"start",variant:"secondary"}),(0,y.jsx)(Cr,{date:m,align:"start",variant:"secondary"})]})]})}function Ca(e){return"".concat(100*e,"%")}function Cs(e){let{currentHeight:t,eventHeight:n,range:r,label:i,bottomLabel:o,color:a,className:s,unconfirmedPing:l=!0}=e,u=!!n&&n>t,c=n&&!u&&t-n<6,d=r.endHeight-r.startHeight,f=_9(d),h=Ct(t,r.startHeight),p=n?Ct(t,n):0;return n?(0,y.jsx)("div",{className:(0,em.cx)("group","absolute -top-[5px] w-4 h-4","flex items-center justify-center","rounded-full cursor-pointer","-translate-x-1/2",s),style:{left:"".concat(100*(p?(p-h)/f:0),"%")},children:(0,y.jsxs)("div",{className:(0,em.cx)("relative w-full h-full","flex items-center justify-center","rounded-full cursor-pointer"),children:[l&&c&&(0,y.jsx)("div",{className:(0,em.cx)("z-0 absolute w-1.5 h-1.5","rounded-full","bg-amber-500 dark:bg-amber-200","animate-pingslow")}),(0,y.jsx)("div",{className:(0,em.cx)("z-0 absolute w-4 h-4","rounded-full","group-hover:bg-blue-500/10 dark:group-hover:bg-blue-200/10")}),(0,y.jsx)("div",{className:(0,em.cx)("absolute w-1.5 h-1.5","rounded-full","border","green"===a?["bg-green-500 dark:bg-green-500","group-hover:bg-green-600 dark:group-hover:bg-green-600","border-white dark:border-white"]:[],"amber"===a?["bg-amber-500 dark:bg-amber-500","group-hover:bg-amber-600 dark:group-hover:bg-amber-600","border-white dark:border-white"]:[],"gray"===a?["bg-gray-700 dark:bg-graydark-900","group-hover:bg-gray-800 dark:group-hover:bg-graydark-800","border-white dark:border-white"]:[],"blue"===a?["bg-blue-300 dark:bg-blue-300","group-hover:bg-blue-400 dark:group-hover:bg-blue-400","border-white dark:border-white"]:[])}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 bottom-[100%] left-1.5",children:[(0,y.jsx)(Ci,{blockHeight:n,align:"start",variant:"primary"}),(0,y.jsx)(Cn,{variant:"primary",children:i})]}),(0,y.jsxs)("div",{className:"hidden group-hover:flex absolute justify-between gap-1 top-[100%] left-1.5",children:[(0,y.jsx)(Cr,{date:p,align:"start",variant:"secondary"}),o&&(0,y.jsx)(Cn,{variant:"secondary",children:o})]})]})}):null}function Cl(e){let{currentHeight:t,contractHeightStart:n,contractHeightEnd:r,proofWindowHeightStart:i,proofWindowHeightEnd:o,revisionHeight:a,proofHeight:s,range:l}=e,u=t-n<6;return(0,y.jsx)("div",{className:"group/main relative w-full",children:(0,y.jsx)("div",{className:"relative py-6",children:(0,y.jsxs)("div",{className:"relative z-10 h-1.5",children:[(0,y.jsx)("div",{className:"absolute h-full w-full bg-gray-300 dark:bg-graydark-400 rounded-lg"}),(0,y.jsxs)("div",{className:"group/segments",children:[(0,y.jsx)(Co,{label:"contract duration",currentHeight:t,startHeight:n,endHeight:r,range:l,color:"blue",align:"center",rounded:"start",className:u?"border-dotted opacity-50":"",showDates:!0}),(0,y.jsx)(Co,{label:"proof window",currentHeight:t,startHeight:i,endHeight:o,range:l,color:"green",align:"end",rounded:"end",className:u?"border-dotted opacity-50":""}),(0,y.jsx)(Cs,{label:"contract formation",bottomLabel:u?"unconfirmed":"",currentHeight:t,eventHeight:n,range:l,color:u?"amber":"blue",className:"z-20"}),(0,y.jsx)(Cs,{label:"last revision",currentHeight:t,eventHeight:a,range:l,color:"green",className:"z-20"}),(0,y.jsx)(Cs,{label:"storage proof",currentHeight:t,eventHeight:s,range:l,color:"green",className:"z-20"}),(0,y.jsx)(Cs,{label:"current block",currentHeight:t,eventHeight:t,range:l,color:"gray",className:"z-10",unconfirmedPing:!1})]})]})})})}var Cu=n(17335),Cc=n.n(Cu);function Cd(e){let{label:t,columns:n,enabled:r,setColumnsVisible:i,setColumnsHidden:o}=e,a=0===Cc()(n,r).length,s=Cc()(n,r).length===n.length;return(0,y.jsxs)(cH,{children:[(0,y.jsx)(dt,{children:t}),(0,y.jsxs)(cU,{children:[(0,y.jsx)(lu,{tip:"".concat(t,": show all"),icon:a?"contrast":"hover",variant:"ghost",onClick:e=>{e.stopPropagation(),i(n)},children:(0,y.jsx)(lc.xVB,{})}),(0,y.jsx)(lu,{icon:s?"contrast":"hover",tip:"".concat(t,": hide all"),variant:"ghost",onClick:e=>{e.stopPropagation(),o(n)},children:(0,y.jsx)(lc.pHg,{})})]})]})}function Cf(e){let{title:t,children:n}=e;return(0,y.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,y.jsx)(c2,{anchorLink:!0,size:"24",children:t}),(0,y.jsx)(t3,{className:"p-6",children:(0,y.jsx)("div",{className:"flex flex-col gap-6",children:n})})]})}function Ch(e){let{title:t,description:n,control:r}=e;return(0,y.jsxs)("div",{className:"flex gap-10 justify-between",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-2 max-w-[600px]",children:[(0,y.jsx)(c2,{size:"20",children:t}),(0,y.jsx)(t2,{size:"14",children:n})]}),(0,y.jsx)("div",{className:"",children:r})]})}function Cp(e){let{open:t,params:n,trigger:r,onOpenChange:i}=e,{body:o,title:a,variant:s,action:l,onConfirm:u}=n||{},c=(0,_f.cI)(),d=(0,x.useCallback)(()=>{u&&u(),i(!1)},[u,i]);return(0,y.jsx)(ud,{title:a,trigger:r,open:t,onOpenChange:i,contentVariants:{className:"w-[400px]"},children:(0,y.jsx)("form",{onSubmit:c.handleSubmit(d),children:(0,y.jsxs)("div",{className:"flex flex-col gap-4",children:[o,(0,y.jsx)("div",{className:"flex gap-1 justify-end",children:(0,y.jsx)(Sx,{variant:s,form:c,size:"small",children:l})})]})})})}function Cm(e){let{name:t,peerCount:n,isSynced:r,nodeBlockHeight:i,connectPeer:o}=e;return(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(t1,{font:"mono",weight:"bold",size:"20",children:t}),(0,y.jsxs)("div",{className:"flex items-center",children:[n?(0,y.jsxs)(lu,{className:"relative left-2 only:left-0",variant:"ghost",onClick:o,tip:"".concat(n," connected peers"),children:[(0,y.jsx)(t1,{color:"subtle",children:n.toLocaleString()}),(0,y.jsx)(lc.RK4,{})]}):null,i&&r?(0,y.jsx)(ls,{content:"Blockchain is synced",children:(0,y.jsx)("div",{className:"relative left-2",children:(0,y.jsxs)(lu,{variant:"ghost",state:"waiting",children:[(0,y.jsx)(t1,{color:"subtle",children:i.toLocaleString()}),(0,y.jsx)(t1,{color:"green",children:(0,y.jsx)(lc.Y3p,{})})]})})}):null]})]})}function Cv(e){let{nodeBlockHeight:t,networkBlockHeight:n,moreThan100BlocksToSync:r,percent:i}=e;return(0,y.jsxs)("div",{className:"flex flex-col justify-between h-full mb-1",children:[(0,y.jsx)(dU,{variant:"accent",value:t&&n?t:0,max:n||1,className:""}),(0,y.jsxs)("div",{className:"flex justify-between mt-1.5",children:[(0,y.jsx)(t1,{color:"subtle",size:"10",children:"Syncing..."}),t&&n?r?(0,y.jsx)(t1,{color:"subtle",size:"10",children:"".concat(t.toLocaleString()," / ").concat(n.toLocaleString()," (").concat(i,"%)")}):(0,y.jsx)(t1,{color:"subtle",size:"10",children:"(".concat(i,"%)")}):null]})]})}function Cg(e){let{name:t,peerCount:n,connectPeer:r,isSynced:i,syncPercent:o,nodeBlockHeight:a,estimatedBlockHeight:s,firstTimeSyncing:l,moreThan100BlocksToSync:u,children:c}=e;return(0,y.jsx)(h7,{rootProps:{openDelay:100},contentProps:{side:"right",align:"start",sideOffset:5,className:"!max-w-none"},trigger:(0,y.jsxs)("div",{className:"relative hover:scale-105 transition-transform",children:[i||100===o||0===o?null:(0,y.jsx)("div",{className:"absolute -bottom-2.5 w-full flex justify-center",children:(0,y.jsxs)(t1,{className:"bg-amber-500 py-px px-1 rounded-sm scale-75",size:"10",children:[o,"%"]})}),(0,y.jsx)(dl,{size:30})]}),children:(0,y.jsxs)("div",{className:"flex flex-col gap-2 px-1 pt-1 pb-2 w-[300px]",children:[(0,y.jsx)(Cm,{nodeBlockHeight:a,isSynced:i,name:t,peerCount:n,connectPeer:r}),i?(0,y.jsx)(cF,{className:"w-full mb-0.5"}):(0,y.jsx)(Cv,{percent:o,nodeBlockHeight:a,networkBlockHeight:s,moreThan100BlocksToSync:u}),l&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(t1,{color:"contrast",size:"14",children:"Welcome to Sia! The blockchain is syncing to the current network height. Depending on your system this process may take a while."}),(0,y.jsx)(cF,{className:"w-full mb-1"})]}),c]})})}function Cy(e){let{testnetName:t}=e;return(0,y.jsxs)("div",{className:"flex gap-2 items-center justify-center py-2 px-3 bg-amber-600 dark:bg-amber-500",children:[(0,y.jsx)(t1,{color:"lo",children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsxs)(t1,{size:"14",color:"lo",children:["You are on the ",t,"."]})]})}function Cx(e){let{type:t,label:n,link:r,tip:i,icon:o,value:a,onClick:s,decimalsLimit:l,units:u}=e;return(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(ls,{align:"start",side:"bottom",content:i,children:(0,y.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,y.jsx)(t1,{className:"flex relative",children:o||(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(t1,{size:"12",ellipsis:!0,children:r?(0,y.jsx)(di,{href:r,target:"_blank",children:n}):n})]})}),(0,y.jsx)("div",{className:(0,em.cx)("flex items-center",s?"cursor-pointer":""),onClick:()=>{s&&s(a)},children:"siacoin"===t?(0,y.jsx)(Sn,{value:a,variant:"value",size:"12",fixed:l,dynamicUnits:!1,showTooltip:!1}):(0,y.jsx)(Sr,{value:a,variant:"value",size:"12",format:e=>"".concat(fq(e,l)," ").concat(u)})})]})}function Cb(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,suggestion:a,placeholder:s,units:l,suggestionTip:u,averageTip:c,after:d,decimalsLimitSc:f=6,decimalsLimitFiat:h=6,tipsDecimalsLimitSc:p=0}=i,{setValue:m,value:v,error:g}=_m({name:t,field:i,form:n}),b=d||(()=>null),w=(0,x.useMemo)(()=>s?new(fW())(s):a&&"boolean"!=typeof a?new(fW())(a):void 0,[s,a]);return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)(fJ,{name:t,size:"small",sc:v,units:l,decimalsLimitSc:f,decimalsLimitFiat:h,error:g,changed:n.formState.dirtyFields[t],placeholder:w,onChange:e=>{m(e,!0)},onBlur:()=>{m(v,!0)}}),(0,y.jsx)(b,{name:t,form:n,fields:r}),o&&(0,y.jsx)(Cx,{type:"siacoin",label:"Network average",tip:c||"Averages provided by Sia Central.",decimalsLimit:p,value:(0,vS.qN)(o),onClick:()=>{m(o,!0)}}),a&&u&&(0,y.jsx)(Cx,{type:"siacoin",label:"Suggestion",tip:u,decimalsLimit:p,value:(0,vS.qN)(a),onClick:()=>{m(a,!0)}})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function Cw(e){let{name:t,form:n,fields:r}=e,i=r[t],{average:o,averageTip:a,suggestion:s,suggestionTip:l,decimalsLimit:u=2,placeholder:c,units:d}=i,{setValue:f,value:h,error:p}=_m({form:n,field:i,name:t}),m=(0,x.useMemo)(()=>c?new(fW())(c):s&&"boolean"!=typeof s?new(fW())(s):void 0,[c,s]);return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)(f$,{name:t,value:h,units:d,decimalsLimit:u,placeholder:m,state:p?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:e=>{let t=void 0!==e?new(fW())(e):void 0;f(t,!0)},onBlur:()=>{f(h,!0)}}),(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[o&&(0,y.jsx)(Cx,{type:"number",label:"Network average",tip:a||"Averages provided by Sia Central.",decimalsLimit:u,value:o,units:d,onClick:()=>{f(o,!0)}}),s&&l&&(0,y.jsx)(Cx,{type:"number",label:"Suggestion",tip:l,decimalsLimit:u,value:s,units:d,onClick:()=>{f(s,!0)}})]})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function Cj(e){let{label:t,link:n,tip:r,value:i,onClick:o}=e;return(0,y.jsxs)("div",{className:"flex justify-between items-center",children:[(0,y.jsx)(ls,{align:"start",side:"bottom",content:r,children:(0,y.jsxs)("div",{className:"flex gap-1 items-center relative overflow-hidden",children:[(0,y.jsx)(t1,{className:"flex relative",children:(0,y.jsx)(lc.RdX,{})}),(0,y.jsx)(t1,{size:"12",children:n?(0,y.jsx)(di,{href:n,target:"_blank",children:t}):t})]})}),(0,y.jsx)("div",{className:"flex cursor-pointer items-center",onClick:o,children:(0,y.jsx)(t1,{size:"12",children:(0,y.jsx)(lP,{children:i})})})]})}function CE(e){let{name:t,form:n,fields:r,type:i}=e,o=r[t],{placeholder:a,suggestion:s,suggestionTip:l}=o,{ref:u,onChange:c,setValue:d,onBlur:f,error:h}=_m({name:t,form:n,field:o});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)(fE,{ref:u,name:t,placeholder:a,type:i,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:c,onBlur:f}),(0,y.jsx)("div",{className:"flex flex-col gap-2",children:s&&l&&(0,y.jsx)(Cj,{label:"Suggestion",tip:l,value:s,onClick:()=>{d(s,!0)}})})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function Ck(e){let{name:t,form:n,fields:r}=e,i=r[t],{suggestion:o,suggestionTip:a}=i,{setValue:s,value:l,error:u}=_m({name:t,field:i,form:n});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)("div",{className:"flex justify-end w-full",children:(0,y.jsx)(hd,{name:t,size:"medium",checked:l,state:u?"invalid":n.formState.dirtyFields[t]?"valid":"default",onCheckedChange:e=>{s(e,!0)},onBlur:()=>{s(l,!0)}})}),(0,y.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==o&&a&&(0,y.jsx)(Cj,{label:"Suggestion",tip:a,value:o?"on":"off",onClick:()=>{s(o,!0)}})})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function CS(e){let{name:t,form:n,fields:r}=e,i=r[t],{options:o,suggestion:a,suggestionTip:s}=i,{ref:l,onChange:u,setValue:c,onBlur:d,value:f,error:h}=_m({name:t,form:n,field:i});return(0,y.jsxs)("div",{className:"flex flex-col gap-3 items-end",children:[(0,y.jsxs)("div",{className:"flex flex-col gap-3 w-[220px]",children:[(0,y.jsx)("div",{className:"flex justify-end w-full",children:(0,y.jsx)(f3,{ref:l,name:t,size:"small",value:f,state:h?"invalid":n.formState.dirtyFields[t]?"valid":"default",onChange:u,onBlur:d,children:null==o?void 0:o.map(e=>(0,y.jsx)(f5,{value:e.value,children:e.label},e.value))})}),(0,y.jsx)("div",{className:"flex flex-col gap-2",children:void 0!==a&&s&&(0,y.jsx)(Cj,{label:"Suggestion",tip:s,value:a?"on":"off",onClick:()=>{c(a,!0)}})})]}),(0,y.jsx)("div",{className:"h-[20px]",children:(0,y.jsx)(Sg,{form:n,name:t})})]})}function C_(e){let{title:t,category:n,form:r,fields:i}=e,o=Object.entries(i).filter(e=>{let[t,i]=e;return i.category===n&&!i.hidden&&(!i.show||i.show(r.getValues()))});return 0===o.length?null:(0,y.jsx)(Cf,{title:t,children:o.map((e,t)=>{let[n,a]=e;return(0,y.jsxs)(x.Fragment,{children:[(0,y.jsx)(Ch,{title:a.title,description:a.description,control:"number"===a.type?(0,y.jsx)(Cw,{form:r,name:n,fields:i}):"siacoin"===a.type?(0,y.jsx)(Cb,{form:r,name:n,fields:i}):"text"===a.type?(0,y.jsx)(CE,{form:r,name:n,fields:i}):"password"===a.type?(0,y.jsx)(CE,{form:r,type:"password",fields:i,name:n}):"boolean"===a.type?(0,y.jsx)(Ck,{form:r,name:n,fields:i}):"select"===a.type?(0,y.jsx)(CS,{form:r,name:n,fields:i}):null}),t{l(e,!0)},onBlur:()=>{l(u,!0)}}),a]});return o?(0,y.jsx)(Sy,{title:s.title,name:t,form:n,children:d}):d}var CO=n(75652),CM=n.n(CO);lc.lg1,lc.eHR,lc.I$H,lc.KiD,lc.P5r,lc.CCF,lc.w9S,lc.EL$,lc.aPl,lc.wEY,lc.EOT,lc.kSc,lc.W$S,lc.lJ7,lc.ORH,lc.ka0,lc.BdP,lc.d19,lc.Mes,lc.VUg,lc.U_S,lc.T85;let CT=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,[a,s]=(0,x.useState)(!0),l=(0,x.useRef)(!1),u=(0,x.useRef)(0);return(0,x.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,x.createElement)(tL,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,x.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,x.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,x.useCallback)(e=>{l.current=e},[]),disableHoverableContent:i},o)};function CA(e){let{children:t}=e,[n,r]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{r(!0)},[]),(0,y.jsx)("div",{children:n?t:null})}function CP(e){let{passwordProtectRequestHooks:t,fallback:n,children:r,lockRoutes:i}=e;return(0,y.jsx)(CA,{children:(0,y.jsx)(fY.kl,{fallback:n,children:(0,y.jsx)(pB.f,{attribute:"class",children:(0,y.jsx)(CT,{children:(0,y.jsx)(fY.bW,{lockRoutes:i,passwordProtectRequestHooks:t,children:(0,y.jsxs)("div",{id:"root",className:lo,children:[(0,y.jsx)(kJ,{}),r]})})})})})})}n(331);var CN=n(30898),CR=n.n(CN),CD=n(92762);let CL=[];function CF(e,t){let{columns:n,columnsDefaultVisible:r,defaultSortField:i,sortOptions:o,disabledCategories:a}={disabledCategories:CL,...t},[s,l]=(0,CD.Z)("".concat(e,"/enabledColumns"),{defaultValue:r}),[u,c]=(0,CD.Z)("".concat(e,"/sortField"),{defaultValue:i}),[d,f]=(0,CD.Z)("".concat(e,"/sortDirection"),{defaultValue:"desc"}),h=(0,x.useCallback)(e=>{l(t=>t.includes(e)?t.filter(t=>t!==e):t.concat(e))},[l]),p=(0,x.useCallback)(e=>{l(t=>CM()([...t,...e]))},[l]),m=(0,x.useCallback)(e=>{l(t=>Cc()(t,e))},[l]),v=(0,x.useCallback)(()=>{l(r)},[l,r]),g=(0,x.useCallback)(e=>{if(u!==e){c(e),f("asc");return}f(e=>"desc"===e?"asc":"desc")},[u,c,f]),y=(0,x.useMemo)(()=>n.filter(e=>{let t=null==a?void 0:a.includes(e.category||"");return!e.fixed&&!t}),[n,a]),b=(0,x.useMemo)(()=>n.filter(e=>{let t=e.fixed||s.includes(e.id),n=null==a?void 0:a.includes(e.category||"");return t&&!n}).map(e=>e.id),[n,s,a]),w=(0,x.useMemo)(()=>{if(!o)return[];let e=o.map(e=>e.id);return CR()(e,b)},[o,b]);return{configurableColumns:y,enabledColumns:b,toggleColumnVisibility:h,toggleSort:g,setSortDirection:f,setSortField:c,sortableColumns:w,sortField:u,setColumnsVisible:p,setColumnsHidden:m,sortDirection:d,resetDefaultColumnVisibility:v}}function Cz(){let e=(0,SO.useRouter)(),[t,n]=(0,x.useState)([]),r=(0,x.useCallback)(t=>{n(e=>{let n=e.filter(e=>e.id!==t.id);return n.concat(t)}),e.replace({query:{}})},[e,n]),i=(0,x.useCallback)(()=>{n([]),e.replace({query:{}})},[e,n]),o=(0,x.useCallback)(t=>{n(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,n]),a=(0,x.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,n,t]);return{filters:t,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}function CV(e){let{dataset:t,filters:n,sortField:r,sortDirection:i}=e;return(0,x.useMemo)(()=>{if(!t)return null;let e=Object.entries(n).map(e=>{let[t,n]=e;return n}),o=e.length?t.filter(t=>{for(let n of e)if(!n.fn(t))return!1;return!0}):t;return[...o=o.sort((e,t)=>{let n=e[r],o=t[r];return"desc"===i?n instanceof fW()&&o instanceof fW()?n.lte(o)?1:-1:n<=o?1:-1:n instanceof fW()&&o instanceof fW()?n.gte(o)?1:-1:n>=o?1:-1})]},[t,n,r,i])}function CI(){let e=(0,SO.useRouter)(),[t,n]=(0,x.useState)([]),r=(0,x.useCallback)(t=>{n(e=>{let n=e.filter(e=>e.id!==t.id);return n.concat(t)}),e.replace({query:{}})},[e,n]),i=(0,x.useCallback)(()=>{n([]),e.replace({query:{}})},[e,n]),o=(0,x.useCallback)(t=>{n(e=>e.filter(e=>e.id!==t)),e.replace({query:{}})},[e,n]),a=(0,x.useCallback)(()=>{t.length&&(n(e=>e.slice(0,-1)),e.replace({query:{}}))},[e,n,t]);return{filters:t,setFilter:r,removeFilter:o,removeLastFilter:a,resetFilters:i}}let CZ=new(fW())(0);function CB(e){let{sc:t}=e,{settings:n}=(0,fY.Hv)(),r=(0,fG.BW)({config:{swr:{revalidateOnFocus:!1}}}),i=(0,x.useMemo)(()=>{var e;return n.siaCentral&&r.data?new(fW())((null===(e=r.data)||void 0===e?void 0:e.rates.sc[n.currency.id])||CZ):CZ},[r.data,n]),o=(0,x.useMemo)(()=>new(fW())(t).times(i),[t,i]);return i.isZero()?{}:{fiat:o,currency:n.currency}}function CH(e){return new(fW())(e).div(1e3).div(1e3).div(1e3).div(1e3)}function CU(e){return new(fW())(e).times(1e3).times(1e3).times(1e3).times(1e3)}function CW(e,t){let n=t.reduce((e,t)=>{let n=e.startHeight,r=e.endHeight;return t.contractHeightStartr&&(r=t.contractHeightEnd),{startHeight:n,endHeight:r}},{startHeight:e,endHeight:0});n.endHeight=Math.max(n.endHeight,e)+720,n.startHeight=n.startHeight-720;let r=[],i=n.startHeight;for(;i<=n.endHeight;)r.push(i),i+=j8(1);let o=r.reduce((e,t)=>({...e,[t]:{total:null,timestamp:t}}),{});return{allDatesMap:o,range:n}}let Cq=/^[a-z]{2}$/i;function C$(e){if(!Cq.test(e)){let t=typeof e;throw TypeError("cc argument must be an ISO 3166-1 alpha-2 string, but got '".concat("string"===t?e:t,"' instead."))}let t=[...e.toUpperCase()].map(e=>e.codePointAt()+127397);return String.fromCodePoint(...t)}},2850:function(e,t,n){"use strict";n.d(t,{bW:function(){return L},kl:function(){return $},gw:function(){return i},Tc:function(){return U},du:function(){return W},Hv:function(){return D},iv:function(){return Z},rB:function(){return B},Nf:function(){return I},Tu:function(){return q},mw:function(){return z},q0:function(){return F},Tb:function(){return O},V1:function(){return V},Q5:function(){return H},D:function(){return T}});var r=n(79381);function i(e){return new Promise(t=>setTimeout(t,e))}var o=n(89644),a=n.n(o),s=n(2784);function l(e){return{...e,config:{...null==e?void 0:e.config}}}function u(e){return{...e,config:{...null==e?void 0:e.config}}}function c(e){return{...e,config:{...null==e?void 0:e.config}}}function d(e,t,n){return(null==n?void 0:n.api)||(null==t?void 0:t.api)||e.api}function f(e,t,n){var r,i;let o=function(e,t,n){var r,i,o,a;let s={"Content-Type":"application/json",...null===(i=t.config)||void 0===i?void 0:null===(r=i.axios)||void 0===r?void 0:r.headers,...null==n?void 0:null===(a=n.config)||void 0===a?void 0:null===(o=a.axios)||void 0===o?void 0:o.headers},l=d(e,t,n);return e.api===l&&e.password&&(s.Authorization="Basic "+btoa(":".concat(e.password))),s}(e,t,n);return{responseType:"json",...null===(r=t.config)||void 0===r?void 0:r.axios,...null==n?void 0:null===(i=n.config)||void 0===i?void 0:i.axios,headers:o}}function h(e,t,n,r){if(!t)return null;let i=(null==n?void 0:n.params)||{};if(r&&r.params&&(i={...i,...r.params}),!(t=function(e,t){if(e&&t){let n=Object.keys(t);for(let r of n){let n=String(t[r]);e.includes(":".concat(r))?e=e.replace(":".concat(r),n):e.includes("?")?e+="&".concat(r,"=").concat(encodeURIComponent(n)):e+="?".concat(r,"=").concat(encodeURIComponent(n))}}return e}(t,i)))return null;let o=d(e,n,r);return o===e.api?"".concat(o,"/api").concat(t):"".concat(o).concat(t)}function p(e,t,n,r){let i=d(e,n,r);return i===e.api?t.replace("".concat(i,"/api"),""):t.replace(i,"")}var m=n(52322),v=n(82876),g=n(92762);function y(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}let x=["geforce 320m","geforce 8600","geforce 8600m gt","geforce 8800 gs","geforce 8800 gt","geforce 9400","geforce 9400m g","geforce 9400m","geforce 9600m gt","geforce 9600m","geforce fx go5200","geforce gt 120","geforce gt 130","geforce gt 330m","geforce gtx 285","google swiftshader","intel g41","intel g45","intel gma 4500mhd","intel gma x3100","intel hd 3000","intel q45","legacy","mali-2","mali-3","mali-4","quadro fx 1500","quadro fx 4","quadro fx 5","radeon hd 2400","radeon hd 2600","radeon hd 4670","radeon hd 4850","radeon hd 4870","radeon hd 5670","radeon hd 5750","radeon hd 6290","radeon hd 6300","radeon hd 6310","radeon hd 6320","radeon hd 6490m","radeon hd 6630m","radeon hd 6750m","radeon hd 6770m","radeon hd 6970m","sgx 543","sgx543"];function b(e){return e=e.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i,"$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g,"").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/,"$1")}let w="undefined"==typeof window,j=(()=>{if(w)return;let{userAgent:e,platform:t,maxTouchPoints:n}=window.navigator,r=/(iphone|ipod|ipad)/i.test(e),i="iPad"===t||"MacIntel"===t&&n>0&&!window.MSStream;return{isIpad:i,isMobile:/android/i.test(e)||r||i,isSafari12:/Version\/12.+Safari/.test(e)}})();class E extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}let k=[],S=[];function _(e){return null!=e}let C=({mobileTiers:e=[0,15,30,60],desktopTiers:t=[0,15,30,60],override:n={},glContext:r,failIfMajorPerformanceCaveat:i=!1,benchmarksURL:o="https://unpkg.com/detect-gpu@5.0.34/dist/benchmarks"}={})=>y(void 0,void 0,void 0,function*(){let a={};if(w)return{tier:0,type:"SSR"};let{isIpad:s=!!(null==j?void 0:j.isIpad),isMobile:l=!!(null==j?void 0:j.isMobile),screenSize:u=window.screen,loadBenchmarks:c=e=>y(void 0,void 0,void 0,function*(){let t=yield fetch(`${o}/${e}`).then(e=>e.json());if(4>parseInt(t.shift().split(".")[0],10))throw new E("Detect GPU benchmark data is out of date. Please update to version 4x");return t})}=n,{renderer:d}=n,f=(e,t,n,r,i)=>({device:i,fps:r,gpu:n,isMobile:l,tier:e,type:t}),h,p="";if(d)h=[d=b(d)];else{var m;let e=r||function(e,t=!1){let n={alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:t,powerPreference:"high-performance",stencil:!1};e&&delete n.powerPreference;let r=window.document.createElement("canvas"),i=r.getContext("webgl",n)||r.getContext("experimental-webgl",n);return null!=i?i:void 0}(null==j?void 0:j.isSafari12,i);if(!e)return f(0,"WEBGL_UNSUPPORTED");let t=e.getExtension("WEBGL_debug_renderer_info");if(t&&(d=e.getParameter(t.UNMASKED_RENDERER_WEBGL)),!d)return f(1,"FALLBACK");p=d,h="apple gpu"===(m=d=b(d))?function(e,t,n){let r;if(!n)return[t];let i=function(e){let t=e.createShader(35633),n=e.createShader(35632),r=e.createProgram();if(!(n&&t&&r))return;e.shaderSource(t,"\n precision highp float;\n attribute vec3 aPosition;\n varying float vvv;\n void main() {\n vvv = 0.31622776601683794;\n gl_Position = vec4(aPosition, 1.0);\n }\n "),e.shaderSource(n,"\n precision highp float;\n varying float vvv;\n void main() {\n vec4 enc = vec4(1.0, 255.0, 65025.0, 16581375.0) * vvv;\n enc = fract(enc);\n enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0);\n gl_FragColor = enc;\n }\n "),e.compileShader(t),e.compileShader(n),e.attachShader(r,t),e.attachShader(r,n),e.linkProgram(r),e.detachShader(r,t),e.detachShader(r,n),e.deleteShader(t),e.deleteShader(n),e.useProgram(r);let i=e.createBuffer();e.bindBuffer(34962,i),e.bufferData(34962,new Float32Array([-1,-1,0,3,-1,0,-1,3,0]),35044);let o=e.getAttribLocation(r,"aPosition");e.vertexAttribPointer(o,3,5126,!1,0,0),e.enableVertexAttribArray(o),e.clearColor(1,1,1,1),e.clear(16384),e.viewport(0,0,1,1),e.drawArrays(4,0,3);let a=new Uint8Array(4);return e.readPixels(0,0,1,1,6408,5121,a),e.deleteProgram(r),e.deleteBuffer(i),a.join("")}(e),o="801621810",a="8016218135",s="80162181161",l=(null==j?void 0:j.isIpad)?[["a7",s,12],["a8",a,15],["a8x",a,15],["a9",a,15],["a9x",a,15],["a10",a,15],["a10x",a,15],["a12",o,15],["a12x",o,15],["a12z",o,15],["a14",o,15],["m1",o,15]]:[["a7",s,12],["a8",a,12],["a9",a,15],["a10",a,15],["a11",o,15],["a12",o,15],["a13",o,15],["a14",o,15]];return"80162181255"===i?r=l.filter(([,,e])=>e>=14):(r=l.filter(([,e])=>e===i)).length||(r=l),r.map(([e])=>`apple ${e} gpu`)}(e,m,l):[m]}let v=(yield Promise.all(h.map(function(e){var t;return y(this,void 0,void 0,function*(){let n;let r=(e=>{let t=l?["adreno","apple","mali-t","mali","nvidia","powervr","samsung"]:["intel","apple","amd","radeon","nvidia","geforce"];for(let n of t)if(e.includes(n))return n})(e);if(!r)return;let i=`${l?"m":"d"}-${r}${s?"-ipad":""}.json`,o=a[i]=null!==(t=a[i])&&void 0!==t?t:c(i);try{n=yield o}catch(e){if(e instanceof E)throw e;return}let d=function(e){var t;let n=(e=e.replace(/\([^)]+\)/,"")).match(/\d+/)||e.match(/(\W|^)([A-Za-z]{1,3})(\W|$)/g);return null!==(t=null==n?void 0:n.join("").replace(/\W|amd/g,""))&&void 0!==t?t:""}(e),f=n.filter(([,e])=>e===d);f.length||(f=n.filter(([t])=>t.includes(e)));let h=f.length;if(0===h)return;let p=e.split(/[.,()\[\]/\s]/g).sort().filter((e,t,n)=>0===t||e!==n[t-1]).join(" "),m,[v,,,,g]=h>1?f.map(e=>[e,function(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o,a=0;for(;au?l>u?u+1:l:l>s?s+1:l;return u}(p,e[2])]).sort(([,e],[,t])=>e-t)[0][0]:f[0],y=Number.MAX_VALUE,{devicePixelRatio:x}=window,b=u.width*x*u.height*x;for(let e of g){let[t,n]=e,r=t*n,i=Math.abs(b-r);ie===n?t-r:e-n);if(!v.length){let e=x.find(e=>d.includes(e));return e?f(0,"BLOCKLISTED",e):f(1,"FALLBACK",`${d} (${p})`)}let[,g,C,O]=v[0];if(-1===g)return f(0,"BLOCKLISTED",C,g,O);let M=l?e:t,T=0;for(let e=0;e=M[e]&&(T=e);return f(T,"BENCHMARK",C,g,O)});function O(){var e,t;let n=null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)");return!n||!!n.matches}let M=(0,s.createContext)({}),T=()=>(0,s.useContext)(M);function A(e){let{children:t}=e,n=function(){let[e,t]=(0,s.useState)({}),n=(0,s.useCallback)((e,n)=>{t(t=>({...t,[e]:{key:e,...n}}))},[t]),r=(0,s.useCallback)(e=>{t(t=>(delete t[e],{...t}))},[t]),i=(0,s.useCallback)(()=>{t({})},[t]),o=(0,s.useMemo)(()=>Object.entries(e).map(e=>e[1]),[e]);return{setWorkflow:n,removeWorkflow:r,resetWorkflows:i,workflows:o}}();return(0,m.jsx)(M.Provider,{value:n,children:t})}let P=[{id:"usd",label:"USD",prefix:"$",fixed:2},{id:"cad",label:"CAD",prefix:"$",fixed:2},{id:"eur",label:"EUR",prefix:"€",fixed:2},{id:"gbp",label:"GBP",prefix:"\xa3",fixed:2},{id:"jpy",label:"JPY",prefix:"\xa5",fixed:2},{id:"aud",label:"AUD",prefix:"$",fixed:2},{id:"rub",label:"RUB",prefix:"₽",fixed:2},{id:"cny",label:"CNY",prefix:"\xa5",fixed:2},{id:"btc",label:"BTC",prefix:"₿",fixed:6},{id:"eth",label:"ETH",prefix:"Ξ",fixed:6}],N={api:"",allowCustomApi:!1,siaCentral:!0,password:void 0,currency:P[0],recentApis:{},autoLock:!1,autoLockTimeout:6e5},R=(0,s.createContext)({}),D=()=>(0,s.useContext)(R);function L(e){let{children:t,...n}=e,i=function(e){let{passwordProtectRequestHooks:t,lockRoutes:n,defaultSettings:i}=e,o=(0,s.useMemo)(()=>({...N,...i}),[i]),[a,l]=(0,g.Z)("v0/settings",{defaultValue:o});(0,s.useEffect)(()=>{l(e=>({...o,...e}))},[]);let u=(0,s.useMemo)(()=>({...o,...a}),[a,o]),{resetWorkflows:c}=T(),d=(0,s.useCallback)(e=>{l(t=>({...t,...e}))},[l]),f=(0,s.useCallback)(e=>{let t=P.find(t=>t.id===e);t&&d({currency:t})},[d]),h=(0,v.useRouter)(),p=(0,v.usePathname)(),[m,y]=(0,s.useState)({}),x=(0,s.useCallback)((e,t)=>{y(n=>({...n,[e]:t}))},[y]),b=(0,s.useCallback)(()=>{for(let[e,t]of(n&&h.push("".concat(n.login,"?prev=").concat([n.login].includes(p)?n.home:p)),d({password:""}),c(),(0,r.JG)(()=>!0,void 0,{revalidate:!1}),Object.entries(m)))t&&t()},[h,n,d,c,m,p]),w=(0,s.useMemo)(()=>!!u.password,[u]),j=function(){let e=O(),[t,n]=(0,s.useState)(!1),[r,i]=(0,s.useState)(!1),[{isGpuEnabled:o,hasUserSet:a},l]=(0,g.Z)("v1/gpuFeatures",{defaultValue:{isGpuEnabled:!e,hasUserSet:!1}}),u=(0,s.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];l(n=>({...n,isGpuEnabled:e,hasUserSet:t}))},[l]),c=(0,s.useCallback)(async()=>{let e=!1;{let t=await C();console.log("GPU",t),e=t.tier>0,!a&&t.tier<2&&u(!1,!1)}i(e),n(!0)},[i,u,a]);return(0,s.useEffect)(()=>{c()},[]),{hasCheckedGpu:t,canGpuRender:r,isGpuEnabled:o,shouldRender:r&&o,setCanGpuRender:i,setIsGpuEnabled:u}}();return{settings:u,setSettings:d,setCurrency:f,currencyOptions:P,gpu:j,lock:b,isUnlocked:w,passwordProtectRequestHooks:t,setOnLockCallback:x}}(n);return(0,m.jsx)(R.Provider,{value:i,children:t})}function F(e){var t;let n=(0,s.useMemo)(()=>u(e),[e]),{settings:i,passwordProtectRequestHooks:o}=D(),l=h(i,n.route,n,void 0),c=(0,s.useMemo)(()=>{var t,r;return t=l?"".concat(l).concat(JSON.stringify(void 0!==e.payload?e.payload:"")):null,r=n.disabled||o&&!i.password,!t||r?null:t},[l,e,n,o,i]);return(0,r.ZP)(c,async()=>{if(!n.route)throw Error("No route");let t=f(i,n,void 0);if(!l)throw Error("No route");try{let n=await a().post(l,e.payload,t);return n.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=n.config)||void 0===t?void 0:t.swr)}function z(e,t){let{setWorkflow:n,removeWorkflow:i}=T(),{mutate:o}=(0,r.kY)(),{settings:s}=D(),u=l(e);return{post:async e=>{let r=c(e);try{let l;let c=f(s,u,r),d=h(s,u.route,u,r);if(!d)throw Error("No route");"payload"in r&&(l=r.payload);let m="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=p(s,d,e,r);n(m,{path:v,payload:l});let g=await a().post(d,l,c);return t&&await t(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,i=arguments.length>2?arguments[2]:void 0;return o(n=>{if("string"!=typeof n)return!1;let i=p(s,n,e,r);return t(i)},n,i)},r,g),i(m),{status:g.status,data:g.data}}catch(e){var l,d;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function V(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=D(),{setWorkflow:o,removeWorkflow:s}=T(),u=l(e);return{put:async e=>{let r=c(e);try{let l;let c=f(i,u,r),d=h(i,u.route,u,r);if(!d)throw Error("No route");"payload"in r&&(l=r.payload);let m="".concat(d).concat(JSON.stringify(void 0!==e.payload?e.payload:"")),v=p(i,d,e,r);o(m,{path:v,payload:l});let g=await a().put(d,l,c);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=p(i,n,e,r);return t(o)},o,a)},r,g),s(m),{status:g.status,data:g.data}}catch(e){var l,d;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function I(e){var t,n,i;let o=(0,s.useMemo)(()=>u(e),[e]),{settings:l,passwordProtectRequestHooks:c}=D(),d=h(l,o.route,o,void 0);return(0,r.ZP)((n=e.standalone?"".concat(e.standalone,"/").concat(d):d,i=o.disabled||c&&!l.password,!n||i?null:n),async()=>{if(!o.route)throw Error("No route");let e=f(l,o,void 0);if(!d)throw Error("No route");try{let t=await a().get(d,e);return t.data}catch(t){let e=Error(t.response.data);throw e.status=t.response.status||500,e}},null===(t=o.config)||void 0===t?void 0:t.swr)}function Z(e,t){let{mutate:n}=(0,r.kY)(),{settings:i}=D(),{setWorkflow:o,removeWorkflow:s}=T(),u=l(e);return{delete:async e=>{let r=c(e);try{let l=f(i,u,r),c=h(i,u.route,u,r);if(!c)throw Error("No route");let d=p(i,c,e,r);o(c,{path:d});let m=await a().delete(c,l);return t&&await t(function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,a=arguments.length>2?arguments[2]:void 0;return n(n=>{if("string"!=typeof n)return!1;let o=p(i,n,e,r);return t(o)},o,a)},r,m),s(c),{status:m.status,data:m.data}}catch(e){var l,d;return{status:null===(l=e.response)||void 0===l?void 0:l.status,error:(null===(d=e.response)||void 0===d?void 0:d.data)||e.message}}}}}function B(e){var t;let{get:n}=function(e){let{settings:t}=D(),n=l(e);return{get:async e=>{let r=c(e);try{let e=f(t,n,r),i=h(t,n.route,n,r);if(!i)throw Error("No route");let o=await a().get(i,e);return{status:o.status,data:o.data}}catch(t){var i,o,s,l;let e=(null===(i=t.response)||void 0===i?void 0:i.data)instanceof Blob?await (null===(o=t.response)||void 0===o?void 0:o.data.text()):(null===(s=t.response)||void 0===s?void 0:s.data)||t.message;return{status:null===(l=t.response)||void 0===l?void 0:l.status,error:e}}}}}({...e,config:{...e.config,axios:{...null===(t=e.config)||void 0===t?void 0:t.axios,responseType:"blob"}}});return{get:async(e,t)=>{let r=await n(t);return r.data&&function(e,t){let n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,document.body.appendChild(r),r.click(),setTimeout(()=>{document.body.removeChild(r),URL.revokeObjectURL(n)},100)}(e,r.data),r}}}function H(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,[n,r]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{if(n)return;let i=setInterval(()=>{e()&&(r(!0),clearInterval(i))},t);return()=>clearInterval(i)},[e,n,t]),n}function U(){return Math.round((new Date().getTime()-14336e8)/6e5)}function W(){return Math.round((new Date().getTime()-16736e8)/6e5)}function q(e){let{settings:t}=D();return(0,s.useMemo)(()=>function(n,i,o){return(0,r.JG)(r=>{if("string"!=typeof r)return!1;let i=p(t,r,e,void 0);return n(i)},i,o)},[t,e])}function $(e){let{fallback:t,cacheProvider:n,children:i}=e;return(0,m.jsx)(A,{children:(0,m.jsx)(r.J$,{value:{fallback:t||{},provider:n},children:i})})}},88242:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{aXP:function(){return t1},eHR:function(){return t7},xHM:function(){return t9},L6f:function(){return ne},rW0:function(){return nt},osk:function(){return nn},JaG:function(){return nr},wWN:function(){return iG},Dkj:function(){return i6},fi8:function(){return iY},EMN:function(){return nc},bdU:function(){return nd},VUy:function(){return nf},Cp0:function(){return nh},kqg:function(){return np},Mes:function(){return nm},DI$:function(){return ng},NlZ:function(){return nM},Y3p:function(){return nA},Z$8:function(){return nT},tEK:function(){return nP},cRw:function(){return nN},F3j:function(){return nR},PcV:function(){return nL},QN4:function(){return nD},Jsc:function(){return nF},bQp:function(){return nV},Y9T:function(){return nz},wEY:function(){return nB},olJ:function(){return nH},KiD:function(){return nq},B4q:function(){return nX},_Eq:function(){return n$},VHe:function(){return i4},Jrl:function(){return nJ},aPl:function(){return nQ},kBK:function(){return i1},c_L:function(){return n4},Bpb:function(){return n3},vzB:function(){return n5},iG7:function(){return re},nDH:function(){return rt},d19:function(){return rn},w9S:function(){return rr},VBo:function(){return iX},q0D:function(){return rl},Hb6:function(){return rs},CCF:function(){return ru},L37:function(){return rf},ROc:function(){return i3},UG6:function(){return i2},lq1:function(){return rh},zvn:function(){return iJ},EL$:function(){return rm},BdP:function(){return rw},e1T:function(){return rj},P5r:function(){return rE},RdX:function(){return rk},U_S:function(){return rS},V8Q:function(){return rA},POp:function(){return rP},nCM:function(){return rD},kSc:function(){return rR},TtX:function(){return rN},mBM:function(){return i0},b47:function(){return rz},Sfn:function(){return rV},W$S:function(){return rW},T85:function(){return rq},c6N:function(){return r$},Ckx:function(){return rK},EOT:function(){return rY},RK4:function(){return rX},XJM:function(){return r1},RRj:function(){return r2},ka0:function(){return r4},hzZ:function(){return r6},n6M:function(){return r8},VUg:function(){return ir},owP:function(){return ii},Fs9:function(){return io},wGX:function(){return ia},Wet:function(){return iu},ZEk:function(){return ic},$Iz:function(){return iv},UBs:function(){return ig},shL:function(){return iy},hiv:function(){return ix},mli:function(){return iw},lJ7:function(){return i5},ORH:function(){return iS},I98:function(){return i_},R$6:function(){return iC},JCW:function(){return iD},xVB:function(){return iL},pHg:function(){return iF},I$H:function(){return iV},HCc:function(){return iz},oaN:function(){return iQ},qdM:function(){return iI},Gu6:function(){return iZ},SmH:function(){return iW},RFr:function(){return iq},lg1:function(){return i$}});var a,s,l,u,c,d,f,h,p,m,v,g,y,x,b,w,j,E,k,S,_,C,O,M,T,A,P,N,R,D,L,F,z,V,I,Z,B,H,U,W,q,$,K,Y,G,X,J,Q,ee,et,en,er,ei,eo,ea,es,el,eu,ec,ed,ef,eh,ep,em,ev,eg,ey,ex,eb,ew,ej,eE,ek,eS,e_,eC,eO,eM,eT,eA,eP,eN,eR,eD,eL,eF,ez,eV,eI,eZ,eB,eH,eU,eW,eq,e$,eK,eY,eG,eX,eJ,eQ,e0,e1,e2,e4,e3,e5,e6,e8,e7,e9,te,tt,tn,tr,ti,to,ta,ts,tl,tu,tc,td,tf,th,tp,tm,tv,tg,ty,tx,tb,tw,tj,tE,tk,tS,t_,tC,tO,tM,tT,tA,tP,tN,tR,tD,tL,tF,tz,tV,tI,tZ=["width","height","viewBox"],tB=["tabindex"],tH={focusable:"false",preserveAspectRatio:"xMidYMid meet"},tU=n(13980),tW=n.n(tU),tq=n(2784);function t$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tK(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var tX=["className","children","tabIndex"],tJ=["tabindex"],tQ=tq.forwardRef(function(e,t){var n=e.className,r=e.children,a=e.tabIndex,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.width,n=e.height,r=e.viewBox,a=void 0===r?"0 0 ".concat(t," ").concat(n):r,s=o(e,tZ),l=s.tabindex,u=o(s,tB),c=i(i(i({},tH),u),{},{width:t,height:n,viewBox:a});return c["aria-label"]||c["aria-labelledby"]||c.title?(c.role="img",null!=l&&(c.focusable="true",c.tabindex=l)):c["aria-hidden"]=!0,c}(tK(tK({},tG(e,tX)),{},{tabindex:a})),l=s.tabindex,u=tG(s,tJ);return n&&(u.className=n),null!=l&&(u.tabIndex=l),t&&(u.ref=t),tq.createElement("svg",u,r)});tQ.displayName="Icon",tQ.propTypes={"aria-hidden":tW().string,"aria-label":tW().string,"aria-labelledby":tW().string,children:tW().node,className:tW().string,height:tW().oneOfType([tW().number,tW().string]),preserveAspectRatio:tW().string,tabIndex:tW().string,viewBox:tW().string,width:tW().oneOfType([tW().number,tW().string]),xmlns:tW().string},tQ.defaultProps={xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet"};var t0=["children"],t1=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,t0);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),a||(a=tq.createElement("path",{d:"M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"})),n)}),t2=["children"],t4=["children"],t3=["children"],t5=["children"],t6=["children"],t8=["children"],t7=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,t2);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),s||(s=tq.createElement("path",{d:"M14 19H18V21H14z"})),l||(l=tq.createElement("path",{d:"M6,2V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V2ZM24,28H8V16H24Zm0-14H8V10H24ZM8,8V4H24V8Z"})),n)}),t9=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,t4);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),u||(u=tq.createElement("path",{d:"M22 26L22 24 9.41 24 26 7.41 24.59 6 8 22.59 8 10 6 10 6 26 22 26z"})),n)}),ne=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,t3);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),c||(c=tq.createElement("path",{d:"M22 6L22 8 9.41 8 26 24.59 24.59 26 8 9.41 8 22 6 22 6 6 22 6z"})),n)}),nt=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,t5);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),d||(d=tq.createElement("path",{d:"M10 6L10 8 22.59 8 6 24.59 7.41 26 24 9.41 24 22 26 22 26 6 10 6z"})),n)}),nn=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,t6);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),f||(f=tq.createElement("path",{d:"M7.2,2.3c-1,4.4,1.7,8.7,6.1,9.8c0.1,0,0.1,0,0.2,0c-1.1,1.2-2.7,1.8-4.3,1.8c-0.1,0-0.2,0-0.2,0C5.6,13.8,3,11,3.2,7.7 C3.2,5.3,4.8,3.1,7.2,2.3 M8,1L8,1C4.1,1.6,1.5,5.3,2.1,9.1c0.6,3.3,3.4,5.8,6.8,5.9c0.1,0,0.2,0,0.3,0c2.3,0,4.4-1.1,5.8-3 c0.2-0.2,0.1-0.6-0.1-0.7c-0.1-0.1-0.2-0.1-0.3-0.1c-3.9-0.3-6.7-3.8-6.4-7.6C8.3,3,8.4,2.4,8.6,1.8c0.1-0.3,0-0.6-0.3-0.7 C8.1,1,8.1,1,8,1z"})),n)}),nr=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,t8);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),h||(h=tq.createElement("path",{d:"M7.5 1H8.5V3.5H7.5z"})),p||(p=tq.createElement("path",{d:"M10.8 3.4H13.3V4.4H10.8z",transform:"rotate(-45.001 12.074 3.922)"})),m||(m=tq.createElement("path",{d:"M12.5 7.5H15V8.5H12.5z"})),v||(v=tq.createElement("path",{d:"M11.6 10.8H12.6V13.3H11.6z",transform:"rotate(-45.001 12.077 12.075)"})),g||(g=tq.createElement("path",{d:"M7.5 12.5H8.5V15H7.5z"})),y||(y=tq.createElement("path",{d:"M2.7 11.6H5.2V12.6H2.7z",transform:"rotate(-45.001 3.929 12.078)"})),x||(x=tq.createElement("path",{d:"M1 7.5H3.5V8.5H1z"})),b||(b=tq.createElement("path",{d:"M3.4 2.7H4.4V5.2H3.4z",transform:"rotate(-45.001 3.926 3.925)"})),w||(w=tq.createElement("path",{d:"M8,6c1.1,0,2,0.9,2,2s-0.9,2-2,2S6,9.1,6,8S6.9,6,8,6 M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z"})),n)}),ni=["children"],no=["children"],na=["children"],ns=["children"],nl=["children"],nu=["children"],nc=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ni);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),j||(j=tq.createElement("path",{d:"M24 12L16 22 8 12z"})),n)}),nd=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,no);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),E||(E=tq.createElement("path",{d:"M20 24L10 16 20 8z"})),n)}),nf=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,na);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),k||(k=tq.createElement("path",{d:"M12 8L22 16 12 24z"})),n)}),nh=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ns);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),S||(S=tq.createElement("path",{d:"M24 24L16 32 8 24zM8 8L16 0 24 8z"})),n)}),np=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nl);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),_||(_=tq.createElement("path",{d:"M8 20L16 10 24 20z"})),n)}),nm=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nu);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),C||(C=tq.createElement("path",{d:"M30,15H27.9492A12.0071,12.0071,0,0,0,17,4.0508V2H15V4.0508A12.0071,12.0071,0,0,0,4.0508,15H2v2H4.0508A12.0071,12.0071,0,0,0,15,27.9492V30h2V27.9492A12.0071,12.0071,0,0,0,27.9492,17H30ZM17,25.9492V22H15v3.9492A10.0166,10.0166,0,0,1,6.0508,17H10V15H6.0508A10.0166,10.0166,0,0,1,15,6.0508V10h2V6.0508A10.0166,10.0166,0,0,1,25.9492,15H22v2h3.9492A10.0166,10.0166,0,0,1,17,25.9492Z"})),n)}),nv=["children"],ng=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nv);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),O||(O=tq.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),M||(M=tq.createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),n)}),ny=["children"],nx=["children"],nb=["children"],nw=["children"],nj=["children"],nE=["children"],nk=["children"],nS=["children"],n_=["children"],nC=["children"],nO=["children"],nM=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ny);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),T||(T=tq.createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),n)}),nT=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nx);return tq.createElement(tQ,tY({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),A||(A=tq.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),P||(P=tq.createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),n)}),nA=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nb);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),N||(N=tq.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),R||(R=tq.createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),n)}),nP=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nw);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),D||(D=tq.createElement("path",{d:"M14 21.414L9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"})),L||(L=tq.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),nN=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nj);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),F||(F=tq.createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),n)}),nR=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nE);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),z||(z=tq.createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),n)}),nD=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nk);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),V||(V=tq.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),nL=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nS);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),I||(I=tq.createElement("path",{d:"M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"})),n)}),nF=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n_);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Z||(Z=tq.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),B||(B=tq.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),nz=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nC);return tq.createElement(tQ,tY({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),H||(H=tq.createElement("path",{d:"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z"})),U||(U=tq.createElement("path",{d:"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z"})),n)}),nV=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nO);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),W||(W=tq.createElement("path",{d:"M11 18L12.41 19.41 15 16.83 15 29 17 29 17 16.83 19.59 19.41 21 18 16 13 11 18z"})),q||(q=tq.createElement("path",{d:"M23.5,22H23V20h.5a4.5,4.5,0,0,0,.36-9L23,11l-.1-.82a7,7,0,0,0-13.88,0L9,11,8.14,11a4.5,4.5,0,0,0,.36,9H9v2H8.5A6.5,6.5,0,0,1,7.2,9.14a9,9,0,0,1,17.6,0A6.5,6.5,0,0,1,23.5,22Z"})),n)}),nI=["children"],nZ=["children"],nB=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nI);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),$||($=tq.createElement("path",{d:"M31 16L24 23 22.59 21.59 28.17 16 22.59 10.41 24 9 31 16zM1 16L8 9 9.41 10.41 3.83 16 9.41 21.59 8 23 1 16z"})),K||(K=tq.createElement("path",{d:"M5.91 15H26.080000000000002V17H5.91z",transform:"rotate(-75 15.996 16)"})),n)}),nH=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nZ);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Y||(Y=tq.createElement("path",{d:"M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"})),G||(G=tq.createElement("path",{d:"M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"})),n)}),nU=["children"],nW=["children"],nq=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nU);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),X||(X=tq.createElement("path",{d:"M21,12V10H17V7H15v3H13a2.002,2.002,0,0,0-2,2v3a2.002,2.002,0,0,0,2,2h6v3H11v2h4v3h2V22h2a2.0023,2.0023,0,0,0,2-2V17a2.002,2.002,0,0,0-2-2H13V12Z"})),J||(J=tq.createElement("path",{d:"M16,4A12,12,0,1,1,4,16,12.0353,12.0353,0,0,1,16,4m0-2A14,14,0,1,0,30,16,14.0412,14.0412,0,0,0,16,2Z"})),n)}),n$=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nW);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),Q||(Q=tq.createElement("circle",{cx:"22",cy:"24",r:"2"})),ee||(ee=tq.createElement("path",{d:"M29.7769,23.4785A8.64,8.64,0,0,0,22,18a8.64,8.64,0,0,0-7.7769,5.4785L14,24l.2231.5215A8.64,8.64,0,0,0,22,30a8.64,8.64,0,0,0,7.7769-5.4785L30,24ZM22,28a4,4,0,1,1,4-4A4.0045,4.0045,0,0,1,22,28Z"})),et||(et=tq.createElement("circle",{cx:"8",cy:"8",r:"1"})),en||(en=tq.createElement("circle",{cx:"8",cy:"16",r:"1"})),er||(er=tq.createElement("circle",{cx:"8",cy:"24",r:"1"})),ei||(ei=tq.createElement("path",{d:"M5,21h7V19H5V13H21v3h2V5a2,2,0,0,0-2-2H5A2,2,0,0,0,3,5V27a2,2,0,0,0,2,2h7V27H5ZM5,5H21v6H5Z"})),n)}),nK=["children"],nY=["children"],nG=["children"],nX=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nK);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eo||(eo=tq.createElement("path",{d:"M8 18H12V20H8zM14 18H18V20H14zM8 14H12V16H8zM14 22H18V24H14zM20 14H24V16H20zM20 22H24V24H20z"})),ea||(ea=tq.createElement("path",{d:"M27,3H5A2.0025,2.0025,0,0,0,3,5V27a2.0025,2.0025,0,0,0,2,2H27a2.0025,2.0025,0,0,0,2-2V5A2.0025,2.0025,0,0,0,27,3Zm0,2,0,4H5V5ZM5,27V11H27l0,16Z"})),n)}),nJ=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nY);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),es||(es=tq.createElement("path",{d:"M12 12H14V24H12zM18 12H20V24H18z"})),el||(el=tq.createElement("path",{d:"M4 6V8H6V28a2 2 0 002 2H24a2 2 0 002-2V8h2V6zM8 28V8H24V28zM12 2H20V4H12z"})),n)}),nQ=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,nG);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eu||(eu=tq.createElement("path",{d:"M8 4V8H4V4H8M2 2v8h8V2zM18 7v4H14V7h4M12 5v8h8V5zM8 16v4H4V16H8M2 14v8h8V14z"})),ec||(ec=tq.createElement("path",{d:"M22,10v6H16v6H10v8H30V10Zm-4,8h4v4H18ZM16,28H12V24h4Zm6,0H18V24h4Zm6,0H24V24h4Zm0-6H24V18h4Zm-4-6V12h4v4Z"})),n)}),n0=["children"],n1=["children"],n2=["children"],n4=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n0);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ed||(ed=tq.createElement("path",{d:"M25.7,9.3l-7-7C18.5,2.1,18.3,2,18,2H8C6.9,2,6,2.9,6,4v24c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V10C26,9.7,25.9,9.5,25.7,9.3 z M18,4.4l5.6,5.6H18V4.4z M24,28H8V4h8v6c0,1.1,0.9,2,2,2h6V28z"})),ef||(ef=tq.createElement("path",{d:"M10 22H22V24H10zM10 16H22V18H10z"})),n)}),n3=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n1);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eh||(eh=tq.createElement("circle",{cx:"16",cy:"16",r:"8"})),n)}),n5=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n2);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ep||(ep=tq.createElement("path",{d:"M13 7L12.3 6.3 8.5 10.1 8.5 1 7.5 1 7.5 10.1 3.7 6.3 3 7 8 12zM13 12v2H3v-2H2v2l0 0c0 .6.4 1 1 1h10c.6 0 1-.4 1-1l0 0v-2H13z"})),n)}),n6=["children"],n8=["children"],n7=["children"],n9=["children"],re=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n6);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),em||(em=tq.createElement("path",{d:"M10 6H14V10H10zM18 6H22V10H18zM10 14H14V18H10zM18 14H22V18H18zM10 22H14V26H10zM18 22H22V26H18z"})),n)}),rt=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n8);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ev||(ev=tq.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm5,3.1055a12.0136,12.0136,0,0,1,2.9158,1.8994L23.5034,8H21ZM13.3784,27.7026A11.9761,11.9761,0,0,1,8.1157,6.9761L9.4648,9h3.3423l-1.5,4H7.2793L5.8967,17.1475,8.4648,21h5l1.4319,2.1475ZM16,28c-.2034,0-.4016-.02-.6025-.03l1.3967-4.19a1.9876,1.9876,0,0,0-.2334-1.7412l-1.4319-2.1475A1.9962,1.9962,0,0,0,13.4648,19h-3.93L8.1033,16.8525,8.7207,15H11v2h2V14.1812l2.9363-7.83-1.8726-.7022L13.5571,7H10.5352L9.728,5.7891A11.7941,11.7941,0,0,1,19,4.395V8a2.0025,2.0025,0,0,0,2,2h2.5857A1.9865,1.9865,0,0,0,25,9.4141l.1406-.1407.2818-.68A11.9813,11.9813,0,0,1,27.3,12H22.5986a1.9927,1.9927,0,0,0-1.9719,1.665L20.03,17.1064a1.99,1.99,0,0,0,.991,2.086l2.1647,1.4638,1.4585,3.646A11.9577,11.9577,0,0,1,16,28Zm8.8145-8.6563L22.1,17.5088l-.1-.06L22.5986,14h5.2207a11.743,11.743,0,0,1-1.7441,8.4951Z"})),n)}),rn=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n7);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eg||(eg=tq.createElement("path",{d:"M21,30a8,8,0,1,1,8-8A8,8,0,0,1,21,30Zm0-14a6,6,0,1,0,6,6A6,6,0,0,0,21,16Z"})),ey||(ey=tq.createElement("path",{d:"M22.59 25L20 22.41 20 18 22 18 22 21.59 24 23.59 22.59 25z"})),ex||(ex=tq.createElement("path",{d:"M28,6a2,2,0,0,0-2-2H22V2H20V4H12V2H10V4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2h4V26H6V6h4V8h2V6h8V8h2V6h4v6h2Z"})),n)}),rr=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,n9);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eb||(eb=tq.createElement("path",{d:"M18 31h2V29a1.0006 1.0006 0 011-1h6a1.0006 1.0006 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 25a4 4 0 114-4A4.0039 4.0039 0 0124 25zm0-6a2 2 0 102 2A2.0027 2.0027 0 0024 19zM2 31H4V29a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V29a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 25a4 4 0 114-4A4.0042 4.0042 0 018 25zm0-6a2 2 0 102 2A2.0023 2.0023 0 008 19zM18 16h2V14a1.0009 1.0009 0 011-1h6a1.0009 1.0009 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H21a3.0033 3.0033 0 00-3 3zM24 10a4 4 0 114-4A4.0042 4.0042 0 0124 10zm0-6a2 2 0 102 2A2.0023 2.0023 0 0024 4zM2 16H4V14a1.0013 1.0013 0 011-1h6a1.0013 1.0013 0 011 1v2h2V14a3.0033 3.0033 0 00-3-3H5a3.0033 3.0033 0 00-3 3zM8 10a4 4 0 114-4A4.0045 4.0045 0 018 10zM8 4a2 2 0 102 2A2.002 2.002 0 008 4z"})),n)}),ri=["children"],ro=["children"],ra=["children"],rs=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ri);return tq.createElement(tQ,tY({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ew||(ew=tq.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),rl=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ro);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ej||(ej=tq.createElement("path",{d:"M18,28H14a2,2,0,0,1-2-2V18.41L4.59,11A2,2,0,0,1,4,9.59V6A2,2,0,0,1,6,4H26a2,2,0,0,1,2,2V9.59A2,2,0,0,1,27.41,11L20,18.41V26A2,2,0,0,1,18,28ZM6,6V9.59l8,8V26h4V17.59l8-8V6Z"})),n)}),ru=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ra);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eE||(eE=tq.createElement("path",{d:"M2 28H30V30H2zM27 11a1 1 0 001-1V7a1 1 0 00-.66-.94l-11-4a1 1 0 00-.68 0l-11 4A1 1 0 004 7v3a1 1 0 001 1H6V24H4v2H28V24H26V11zM6 7.7L16 4.06 26 7.7V9H6zM18 24H14V11h4zM8 11h4V24H8zM24 24H20V11h4z"})),n)}),rc=["children"],rd=["children"],rf=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rc);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ek||(ek=tq.createElement("path",{d:"M26 20L24 20 24 24 20 24 20 26 24 26 24 30 26 30 26 26 30 26 30 24 26 24z"})),eS||(eS=tq.createElement("path",{d:"M28,8H16l-3.4-3.4C12.2,4.2,11.7,4,11.2,4H4C2.9,4,2,4.9,2,6v20c0,1.1,0.9,2,2,2h14v-2H4V6h7.2l3.4,3.4l0.6,0.6H28v8h2v-8 C30,8.9,29.1,8,28,8z"})),n)}),rh=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rd);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e_||(e_=tq.createElement("path",{d:"M14,4a7,7,0,1,1-7,7,7,7,0,0,1,7-7m0-2a9,9,0,1,0,9,9A9,9,0,0,0,14,2Z"})),eC||(eC=tq.createElement("path",{d:"M28,11a13.9563,13.9563,0,0,0-4.1051-9.8949L22.4813,2.5187A11.9944,11.9944,0,0,1,5.5568,19.5194l-.0381-.0381L4.1051,20.8949A13.9563,13.9563,0,0,0,14,25v3H10v2H20V28H16V24.84A14.0094,14.0094,0,0,0,28,11Z"})),n)}),rp=["children"],rm=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rp);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eO||(eO=tq.createElement("path",{d:"M16,.0005,4,5.9784V20.0443a12,12,0,0,0,24,0V5.9784Zm6.83,27.3138L16,23.9119V26.14l5.0361,2.5088A10.0025,10.0025,0,0,1,6,20.0443V7.21L16,2.2284,26,7.21v3.75L16,5.9783V8.2062l10,4.9816v3.75L16,11.9562v2.2279l10,4.9815v.8787a9.9045,9.9045,0,0,1-.37,2.6871L16,17.934v2.2279l8.8952,4.4313A10.0252,10.0252,0,0,1,22.83,27.3143Z"})),n)}),rv=["children"],rg=["children"],ry=["children"],rx=["children"],rb=["children"],rw=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rv);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eM||(eM=tq.createElement("path",{d:"M11 24H21V26H11zM13 28H19V30H13zM16 2A10 10 0 006 12a9.19 9.19 0 003.46 7.62c1 .93 1.54 1.46 1.54 2.38h2c0-1.84-1.11-2.87-2.19-3.86A7.2 7.2 0 018 12a8 8 0 0116 0 7.2 7.2 0 01-2.82 6.14c-1.07 1-2.18 2-2.18 3.86h2c0-.92.53-1.45 1.54-2.39A9.18 9.18 0 0026 12 10 10 0 0016 2z"})),n)}),rj=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rg);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eT||(eT=tq.createElement("path",{d:"M19,14a3,3,0,1,0-3-3A3,3,0,0,0,19,14Zm0-4a1,1,0,1,1-1,1A1,1,0,0,1,19,10Z"})),eA||(eA=tq.createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4Zm0,22H6V20l5-5,5.59,5.59a2,2,0,0,0,2.82,0L21,19l5,5Zm0-4.83-3.59-3.59a2,2,0,0,0-2.82,0L18,19.17l-5.59-5.59a2,2,0,0,0-2.82,0L6,17.17V6H26Z"})),n)}),rE=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ry);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eP||(eP=tq.createElement("path",{d:"M29.53,6.15a1,1,0,0,0-1,0L20,10.38V7a1,1,0,0,0-1.45-.89L10,10.38V3A1,1,0,0,0,9,2H3A1,1,0,0,0,2,3V28H30V7A1,1,0,0,0,29.53,6.15ZM22,26H18V19h4Zm6,0H24V18a1,1,0,0,0-1-1H17a1,1,0,0,0-1,1v8H4V4H8v9.62l10-5v5l10-5Z"})),n)}),rk=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rx);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eN||(eN=tq.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"})),eR||(eR=tq.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"})),n)}),rS=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rb);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eD||(eD=tq.createElement("path",{d:"M29.88,15.52l-6-11A1,1,0,0,0,23,4H9a1,1,0,0,0-.88.52l-6,11a1,1,0,0,0,0,1l6,11A1,1,0,0,0,9,28H23a1,1,0,0,0,.88-.52l6-11A1,1,0,0,0,29.88,15.52ZM22.93,7l4.39,8h-9.5ZM16,14.14,10.82,6H21.18ZM9.07,7l5.11,8H4.68ZM4.68,17h9.5L9.07,25ZM16,17.86,21.18,26H10.82ZM22.93,25l-5.11-8h9.5Z"})),n)}),r_=["children"],rC=["children"],rO=["children"],rM=["children"],rT=["children"],rA=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,r_);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eL||(eL=tq.createElement("path",{d:"M13,14H3c-0.6,0-1-0.4-1-1V3c0-0.6,0.4-1,1-1h5v1H3v10h10V8h1v5C14,13.6,13.6,14,13,14z"})),eF||(eF=tq.createElement("path",{d:"M10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),n)}),rP=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rC);return tq.createElement(tQ,tY({width:20,height:20,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ez||(ez=tq.createElement("path",{d:"M29.25,6.76a6,6,0,0,0-8.5,0l1.42,1.42a4,4,0,1,1,5.67,5.67l-8,8a4,4,0,1,1-5.67-5.66l1.41-1.42-1.41-1.42-1.42,1.42a6,6,0,0,0,0,8.5A6,6,0,0,0,17,25a6,6,0,0,0,4.27-1.76l8-8A6,6,0,0,0,29.25,6.76Z"})),eV||(eV=tq.createElement("path",{d:"M4.19,24.82a4,4,0,0,1,0-5.67l8-8a4,4,0,0,1,5.67,0A3.94,3.94,0,0,1,19,14a4,4,0,0,1-1.17,2.85L15.71,19l1.42,1.42,2.12-2.12a6,6,0,0,0-8.51-8.51l-8,8a6,6,0,0,0,0,8.51A6,6,0,0,0,7,28a6.07,6.07,0,0,0,4.28-1.76L9.86,24.82A4,4,0,0,1,4.19,24.82Z"})),n)}),rN=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rO);return tq.createElement(tQ,tY({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eI||(eI=tq.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),rR=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rM);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eZ||(eZ=tq.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),rD=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rT);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eB||(eB=tq.createElement("path",{d:"M16 8H30V10H16zM6 10.59L3.41 8 2 9.41 6 13.41 14 5.41 12.59 4 6 10.59zM16 22H30V24H16zM6 24.59L3.41 22 2 23.41 6 27.41 14 19.41 12.59 18 6 24.59z"})),n)}),rL=["children"],rF=["children"],rz=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rL);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eH||(eH=tq.createElement("path",{d:"M13.647,14.907a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,13.647,14.907Zm4.745,0a1.4482,1.4482,0,1,0,1.326,1.443A1.385,1.385,0,0,0,18.392,14.907Z"})),eU||(eU=tq.createElement("path",{d:"M24.71,4H7.29A2.6714,2.6714,0,0,0,4.625,6.678V24.254A2.6714,2.6714,0,0,0,7.29,26.932H22.032l-.689-2.405,1.664,1.547L24.58,27.53,27.375,30V6.678A2.6714,2.6714,0,0,0,24.71,4ZM19.692,20.978s-.468-.559-.858-1.053a4.1021,4.1021,0,0,0,2.353-1.547,7.4391,7.4391,0,0,1-1.495.767,8.5564,8.5564,0,0,1-1.885.559,9.1068,9.1068,0,0,1-3.367-.013,10.9127,10.9127,0,0,1-1.911-.559,7.6184,7.6184,0,0,1-.949-.442c-.039-.026-.078-.039-.117-.065a.18.18,0,0,1-.052-.039c-.234-.13-.364-.221-.364-.221a4.0432,4.0432,0,0,0,2.275,1.534c-.39.494-.871,1.079-.871,1.079a4.7134,4.7134,0,0,1-3.965-1.976,17.409,17.409,0,0,1,1.872-7.579,6.4285,6.4285,0,0,1,3.653-1.365l.13.156a8.77,8.77,0,0,0-3.419,1.703s.286-.156.767-.377a9.7625,9.7625,0,0,1,2.951-.819,1.2808,1.2808,0,0,1,.221-.026,11,11,0,0,1,2.626-.026A10.5971,10.5971,0,0,1,21.2,11.917a8.6518,8.6518,0,0,0-3.237-1.651l.182-.208a6.4285,6.4285,0,0,1,3.653,1.365,17.409,17.409,0,0,1,1.872,7.579A4.752,4.752,0,0,1,19.692,20.978Z"})),n)}),rV=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rF);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eW||(eW=tq.createElement("path",{fillRule:"evenodd",d:"M16,2a14,14,0,0,0-4.43,27.28c.7.13,1-.3,1-.67s0-1.21,0-2.38c-3.89.84-4.71-1.88-4.71-1.88A3.71,3.71,0,0,0,6.24,22.3c-1.27-.86.1-.85.1-.85A2.94,2.94,0,0,1,8.48,22.9a3,3,0,0,0,4.08,1.16,2.93,2.93,0,0,1,.88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4,5.4,0,0,1,1.44-3.76,5,5,0,0,1,.14-3.7s1.17-.38,3.85,1.43a13.3,13.3,0,0,1,7,0c2.67-1.81,3.84-1.43,3.84-1.43a5,5,0,0,1,.14,3.7,5.4,5.4,0,0,1,1.44,3.76c0,5.38-3.27,6.56-6.39,6.91a3.33,3.33,0,0,1,.95,2.59c0,1.87,0,3.38,0,3.84s.25.81,1,.67A14,14,0,0,0,16,2Z"})),n)}),rI=["children"],rZ=["children"],rB=["children"],rH=["children"],rU=["children"],rW=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rI);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eq||(eq=tq.createElement("path",{d:"M16.59 20.41L20.17 24 20.17 24 16.58 27.59 18 29 23 24 18 19 16.59 20.41zM23.59 20.41L27.17 24 27.17 24 23.58 27.59 25 29 30 24 25 19 23.59 20.41z"})),e$||(e$=tq.createElement("path",{d:"M14,23H4V7.91l11.43,7.91a1,1,0,0,0,1.14,0L28,7.91V17h2V7a2,2,0,0,0-2-2H4A2,2,0,0,0,2,7V23a2,2,0,0,0,2,2H14ZM25.8,7,16,13.78,6.2,7Z"})),n)}),rq=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rZ);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eK||(eK=tq.createElement("path",{d:"M25.3943,24a7.8772,7.8772,0,0,0-1.6707-8.5684,3.918,3.918,0,0,0-1.0844-4.414l2.7759-2.7759a2.0025,2.0025,0,0,0,0-2.8286L22.5869,2.5849a2.0021,2.0021,0,0,0-2.8286,0L6.5859,15.7573a2.0027,2.0027,0,0,0,0,2.8286l2.8282,2.8282a2.0024,2.0024,0,0,0,2.8286,0l4.7749-4.7754a3.9329,3.9329,0,0,0,5.5139.4326A5.9442,5.9442,0,0,1,23.1775,24H16v4H4v2H28V24ZM10.8281,20,8,17.1714,9.8787,15.293l2.8283,2.8281ZM16,14a3.9811,3.9811,0,0,0,.0762.7524L14.1211,16.707l-2.8284-2.8281,9.88-9.88L24.001,6.8271l-3.2488,3.2491A3.9771,3.9771,0,0,0,16,14Zm4,2a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,20,16Zm6,12H18V26h8Z"})),n)}),r$=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rB);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eY||(eY=tq.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2 l2.7-2.7l0.8,0.8L8.8,8l2.7,2.7L10.7,11.5z"})),eG||(eG=tq.createElement("path",{d:"M10.7,11.5L8,8.8l-2.7,2.7l-0.8-0.8L7.2,8L4.5,5.3l0.8-0.8L8,7.2l2.7-2.7l0.8,0.8L8.8,8 l2.7,2.7L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),n)}),rK=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rH);return tq.createElement(tQ,tY({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eX||(eX=tq.createElement("path",{d:"M16,2C8.2,2,2,8.2,2,16s6.2,14,14,14s14-6.2,14-14S23.8,2,16,2z M16,28C9.4,28,4,22.6,4,16S9.4,4,16,4s12,5.4,12,12 S22.6,28,16,28z"})),eJ||(eJ=tq.createElement("path",{d:"M21.4 23L16 17.6 10.6 23 9 21.4 14.4 16 9 10.6 10.6 9 16 14.4 21.4 9 23 10.6 17.6 16 23 21.4z"})),n)}),rY=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rU);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),eQ||(eQ=tq.createElement("path",{d:"M2 22H30V24H2zM2 26H30V28H2zM24 10a2 2 0 102 2 2 2 0 00-2-2zM16 16a4 4 0 114-4A4.0045 4.0045 0 0116 16zm0-6a2 2 0 102 2A2.002 2.002 0 0016 10zM8 10a2 2 0 102 2 2 2 0 00-2-2z"})),e0||(e0=tq.createElement("path",{d:"M28,20H4a2.0051,2.0051,0,0,1-2-2V6A2.0051,2.0051,0,0,1,4,4H28a2.0051,2.0051,0,0,1,2,2V18A2.0027,2.0027,0,0,1,28,20ZM28,6H4V18H28Z"})),n)}),rG=["children"],rX=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rG);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e1||(e1=tq.createElement("circle",{cx:"21",cy:"26",r:"2"})),e2||(e2=tq.createElement("circle",{cx:"21",cy:"6",r:"2"})),e4||(e4=tq.createElement("circle",{cx:"4",cy:"16",r:"2"})),e3||(e3=tq.createElement("path",{d:"M28,12a3.9962,3.9962,0,0,0-3.8579,3H19.8579a3.9655,3.9655,0,0,0-5.4914-2.6426L11.19,8.3872A3.9626,3.9626,0,0,0,12,6a4,4,0,1,0-4,4,3.96,3.96,0,0,0,1.6338-.3574l3.176,3.97a3.9239,3.9239,0,0,0,0,4.7744l-3.1758,3.97A3.96,3.96,0,0,0,8,22a4,4,0,1,0,4,4,3.9624,3.9624,0,0,0-.81-2.3872l3.1758-3.97A3.9658,3.9658,0,0,0,19.8579,17h4.2842A3.9934,3.9934,0,1,0,28,12ZM6,6A2,2,0,1,1,8,8,2.0023,2.0023,0,0,1,6,6ZM8,28a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,8,28Zm8-10a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,16,18Zm12,0a2,2,0,1,1,2-2A2.0023,2.0023,0,0,1,28,18Z"})),n)}),rJ=["children"],rQ=["children"],r0=["children"],r1=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rJ);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e5||(e5=tq.createElement("path",{d:"M14 16L24 6 25.4 7.4 16.8 16 25.4 24.6 24 26zM8 4H10V28H8z"})),n)}),r2=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,rQ);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e6||(e6=tq.createElement("path",{d:"M18 16L8 26 6.6 24.6 15.2 16 6.6 7.4 8 6zM22 4H24V28H22z"})),n)}),r4=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,r0);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e8||(e8=tq.createElement("path",{d:"M21,2a8.9977,8.9977,0,0,0-8.6119,11.6118L2,24v6H8L18.3881,19.6118A9,9,0,1,0,21,2Zm0,16a7.0125,7.0125,0,0,1-2.0322-.3022L17.821,17.35l-.8472.8472-3.1811,3.1812L12.4141,20,11,21.4141l1.3787,1.3786-1.5859,1.586L9.4141,23,8,24.4141l1.3787,1.3786L7.1716,28H4V24.8284l9.8023-9.8023.8472-.8474-.3473-1.1467A7,7,0,1,1,21,18Z"})),e7||(e7=tq.createElement("circle",{cx:"22",cy:"10",r:"2"})),n)}),r3=["children"],r5=["children"],r6=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,r3);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),e9||(e9=tq.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM8,18a2,2,0,1,1,2-2A2,2,0,0,1,8,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,16,18Zm8,0a2,2,0,1,1,2-2A2,2,0,0,1,24,18Z"})),te||(te=tq.createElement("path",{fill:"none",d:"M10,16a2,2,0,1,1-2-2A2,2,0,0,1,10,16Zm6-2a2,2,0,1,0,2,2A2,2,0,0,0,16,14Zm8,0a2,2,0,1,0,2,2A2,2,0,0,0,24,14Z","data-icon-path":"inner-path"})),n)}),r8=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,r5);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tt||(tt=tq.createElement("path",{d:"M29.37,14.75,20,10V6a4,4,0,0,0-8,0v4L2.63,14.75a1,1,0,0,0-.63.93v5a1,1,0,0,0,1,1,1,1,0,0,0,.29-.05L12,18v5L8.55,24.72a1,1,0,0,0-.55.9V29a1,1,0,0,0,1,1,.9.9,0,0,0,.28,0L16,28l6.72,2A.9.9,0,0,0,23,30a1,1,0,0,0,1-1V25.62a1,1,0,0,0-.55-.9L20,23V18l8.71,3.61a1,1,0,0,0,.29.05,1,1,0,0,0,1-1v-5A1,1,0,0,0,29.37,14.75ZM28,19.15,18,15v9.24l4,2v1.43l-6-1.75-6,1.75V26.24l4-2V15L4,19.15V16.3l10-5.07V6a2,2,0,0,1,4,0v5.23L28,16.3Z"})),n)}),r7=["children"],r9=["children"],ie=["children"],it=["children"],ir=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,r7);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tn||(tn=tq.createElement("path",{d:"M30 18A6 6 0 1020 22.46v7.54l4-1.8926 4 1.8926V22.46A5.98 5.98 0 0030 18zm-4 8.84l-2-.9467L22 26.84V23.65a5.8877 5.8877 0 004 0zM24 22a4 4 0 114-4A4.0045 4.0045 0 0124 22zM9 14H16V16H9zM9 8H19V10H9z"})),tr||(tr=tq.createElement("path",{d:"M6,30a2.0021,2.0021,0,0,1-2-2V4A2.0021,2.0021,0,0,1,6,2H22a2.0021,2.0021,0,0,1,2,2V8H22V4H6V28H16v2Z"})),n)}),ii=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,r9);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ti||(ti=tq.createElement("circle",{cx:"11",cy:"15.5",r:"1.5"})),to||(to=tq.createElement("path",{d:"M12,12H10V8h2a2,2,0,0,0,0-4H10A2.0023,2.0023,0,0,0,8,6v.5H6V6a4.0045,4.0045,0,0,1,4-4h2a4,4,0,0,1,0,8Z"})),ta||(ta=tq.createElement("path",{d:"M22.4479,21.0337A10.971,10.971,0,0,0,19.9211,4.7446l-.999,1.73A8.9967,8.9967,0,1,1,5,14H3a10.9916,10.9916,0,0,0,18.0338,8.4478L28.5859,30,30,28.5859Z"})),n)}),io=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ie);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ts||(ts=tq.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"})),n)}),ia=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,it);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tl||(tl=tq.createElement("path",{d:"M20.59 22L15 16.41 15 7 17 7 17 15.58 22 20.59 20.59 22z"})),tu||(tu=tq.createElement("path",{d:"M16,2A13.94,13.94,0,0,0,6,6.23V2H4v8h8V8H7.08A12,12,0,1,1,4,16H2A14,14,0,1,0,16,2Z"})),n)}),is=["children"],il=["children"],iu=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,is);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tc||(tc=tq.createElement("path",{d:"M18,28A12,12,0,1,0,6,16v6.2L2.4,18.6,1,20l6,6,6-6-1.4-1.4L8,22.2V16H8A10,10,0,1,1,18,26Z"})),n)}),ic=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,il);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),td||(td=tq.createElement("path",{d:"M13.9,4.6l-2.5-2.5C11.3,2.1,11.1,2,11,2H3C2.4,2,2,2.4,2,3v10c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1V5 C14,4.9,13.9,4.7,13.9,4.6z M6,3h4v2H6V3z M10,13H6V9h4V13z M11,13V9c0-0.6-0.4-1-1-1H6C5.4,8,5,8.4,5,9v4H3V3h2v2c0,0.6,0.4,1,1,1 h4c0.6,0,1-0.4,1-1V3.2l2,2V13H11z"})),n)}),id=["children"],ih=["children"],ip=["children"],im=["children"],iv=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,id);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tf||(tf=tq.createElement("path",{d:"M28,4H4A2,2,0,0,0,2,6V22a2,2,0,0,0,2,2h8v4H8v2H24V28H20V24h8a2,2,0,0,0,2-2V6A2,2,0,0,0,28,4ZM18,28H14V24h4Zm10-6H4V6H28Z"})),n)}),ig=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ih);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),th||(th=tq.createElement("path",{d:"M15,14.3L10.7,10c1.9-2.3,1.6-5.8-0.7-7.7S4.2,0.7,2.3,3S0.7,8.8,3,10.7c2,1.7,5,1.7,7,0l4.3,4.3L15,14.3z M2,6.5 C2,4,4,2,6.5,2S11,4,11,6.5S9,11,6.5,11S2,9,2,6.5z"})),n)}),iy=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ip);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tp||(tp=tq.createElement("path",{d:"M13.5,8.4c0-0.1,0-0.3,0-0.4c0-0.1,0-0.3,0-0.4l1-0.8c0.4-0.3,0.4-0.9,0.2-1.3l-1.2-2C13.3,3.2,13,3,12.6,3 c-0.1,0-0.2,0-0.3,0.1l-1.2,0.4c-0.2-0.1-0.4-0.3-0.7-0.4l-0.3-1.3C10.1,1.3,9.7,1,9.2,1H6.8c-0.5,0-0.9,0.3-1,0.8L5.6,3.1 C5.3,3.2,5.1,3.3,4.9,3.4L3.7,3C3.6,3,3.5,3,3.4,3C3,3,2.7,3.2,2.5,3.5l-1.2,2C1.1,5.9,1.2,6.4,1.6,6.8l0.9,0.9c0,0.1,0,0.3,0,0.4 c0,0.1,0,0.3,0,0.4L1.6,9.2c-0.4,0.3-0.5,0.9-0.2,1.3l1.2,2C2.7,12.8,3,13,3.4,13c0.1,0,0.2,0,0.3-0.1l1.2-0.4 c0.2,0.1,0.4,0.3,0.7,0.4l0.3,1.3c0.1,0.5,0.5,0.8,1,0.8h2.4c0.5,0,0.9-0.3,1-0.8l0.3-1.3c0.2-0.1,0.4-0.2,0.7-0.4l1.2,0.4 c0.1,0,0.2,0.1,0.3,0.1c0.4,0,0.7-0.2,0.9-0.5l1.1-2c0.2-0.4,0.2-0.9-0.2-1.3L13.5,8.4z M12.6,12l-1.7-0.6c-0.4,0.3-0.9,0.6-1.4,0.8 L9.2,14H6.8l-0.4-1.8c-0.5-0.2-0.9-0.5-1.4-0.8L3.4,12l-1.2-2l1.4-1.2c-0.1-0.5-0.1-1.1,0-1.6L2.2,6l1.2-2l1.7,0.6 C5.5,4.2,6,4,6.5,3.8L6.8,2h2.4l0.4,1.8c0.5,0.2,0.9,0.5,1.4,0.8L12.6,4l1.2,2l-1.4,1.2c0.1,0.5,0.1,1.1,0,1.6l1.4,1.2L12.6,12z"})),tm||(tm=tq.createElement("path",{d:"M8,11c-1.7,0-3-1.3-3-3s1.3-3,3-3s3,1.3,3,3C11,9.6,9.7,11,8,11C8,11,8,11,8,11z M8,6C6.9,6,6,6.8,6,7.9C6,7.9,6,8,6,8 c0,1.1,0.8,2,1.9,2c0,0,0.1,0,0.1,0c1.1,0,2-0.8,2-1.9c0,0,0-0.1,0-0.1C10,6.9,9.2,6,8,6C8.1,6,8,6,8,6z"})),n)}),ix=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,im);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tv||(tv=tq.createElement("path",{d:"M30 8h-4.1c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2v2h14.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30V8zM21 12c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3S22.7 12 21 12zM2 24h4.1c.5 2.3 2.5 4 4.9 4s4.4-1.7 4.9-4H30v-2H15.9c-.5-2.3-2.5-4-4.9-4s-4.4 1.7-4.9 4H2V24zM11 20c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3S9.3 20 11 20z"})),n)}),ib=["children"],iw=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ib);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tg||(tg=tq.createElement("path",{d:"M8 15H24V17H8z"})),n)}),ij=["children"],iE=["children"],ik=["children"],iS=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ij);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),ty||(ty=tq.createElement("path",{d:"M23,9h6a2,2,0,0,0,2-2V3a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2V4H11V3A2,2,0,0,0,9,1H3A2,2,0,0,0,1,3V7A2,2,0,0,0,3,9H9a2,2,0,0,0,2-2V6h4V26a2.0023,2.0023,0,0,0,2,2h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V25a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V17h4v1a2,2,0,0,0,2,2h6a2,2,0,0,0,2-2V14a2,2,0,0,0-2-2H23a2,2,0,0,0-2,2v1H17V6h4V7A2,2,0,0,0,23,9Zm0-6h6V7H23ZM9,7H3V3H9ZM23,25h6v4H23Zm0-11h6v4H23Z",transform:"translate(0 .005)"})),n)}),i_=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iE);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tx||(tx=tq.createElement("path",{d:"M29.391,14.527L17.473,2.609C17.067,2.203,16.533,2,16,2s-1.067,0.203-1.473,0.609L2.609,14.527C2.203,14.933,2,15.466,2,16 s0.203,1.067,0.609,1.473l11.917,11.917C14.933,29.797,15.467,30,16,30s1.067-0.203,1.473-0.609l11.917-11.917 C29.797,17.067,30,16.534,30,16S29.797,14.933,29.391,14.527z M21,18H11v-4h10V18z"})),tb||(tb=tq.createElement("path",{fill:"none",d:"M11 14H21V18H11z","data-icon-path":"inner-path"})),n)}),iC=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,ik);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tw||(tw=tq.createElement("path",{d:"M3 9L3.7 9.7 7.5 5.9 7.5 15 8.5 15 8.5 5.9 12.3 9.7 13 9 8 4zM3 4V2h10v2h1V2c0-.6-.4-1-1-1H3C2.4 1 2 1.4 2 2v2H3z"})),n)}),iO=["children"],iM=["children"],iT=["children"],iA=["children"],iP=["children"],iN=["children"],iR=["children"],iD=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iO);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tj||(tj=tq.createElement("path",{d:"M21,26H4a2,2,0,0,1-2-2V8A2,2,0,0,1,4,6H21a2,2,0,0,1,2,2v4.06l5.42-3.87A1,1,0,0,1,30,9V23a1,1,0,0,1-1.58.81L23,19.94V24A2,2,0,0,1,21,26ZM4,8V24H21V18a1,1,0,0,1,1.58-.81L28,21.06V10.94l-5.42,3.87A1,1,0,0,1,21,14V8Z"})),n)}),iL=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iM);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tE||(tE=tq.createElement("path",{d:"M15.5,7.8C14.3,4.7,11.3,2.6,8,2.5C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3c1.2,3.1,4.1,5.2,7.5,5.3 c3.3-0.1,6.3-2.2,7.5-5.3C15.5,8.1,15.5,7.9,15.5,7.8z M8,12.5c-2.7,0-5.4-2-6.5-4.5c1-2.5,3.8-4.5,6.5-4.5s5.4,2,6.5,4.5 C13.4,10.5,10.6,12.5,8,12.5z"})),tk||(tk=tq.createElement("path",{d:"M8,5C6.3,5,5,6.3,5,8s1.3,3,3,3s3-1.3,3-3S9.7,5,8,5z M8,10c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S9.1,10,8,10z"})),n)}),iF=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iT);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tS||(tS=tq.createElement("path",{d:"M2.6,11.3l0.7-0.7C2.6,9.8,1.9,9,1.5,8c1-2.5,3.8-4.5,6.5-4.5c0.7,0,1.4,0.1,2,0.4l0.8-0.8C9.9,2.7,9,2.5,8,2.5 C4.7,2.6,1.7,4.7,0.5,7.8c0,0.1,0,0.2,0,0.3C1,9.3,1.7,10.4,2.6,11.3z"})),t_||(t_=tq.createElement("path",{d:"M6 7.9c.1-1 .9-1.8 1.8-1.8l.9-.9C7.2 4.7 5.5 5.6 5.1 7.2 5 7.7 5 8.3 5.1 8.8L6 7.9zM15.5 7.8c-.6-1.5-1.6-2.8-2.9-3.7L15 1.7 14.3 1 1 14.3 1.7 15l2.6-2.6c1.1.7 2.4 1 3.7 1.1 3.3-.1 6.3-2.2 7.5-5.3C15.5 8.1 15.5 7.9 15.5 7.8zM10 8c0 1.1-.9 2-2 2-.3 0-.7-.1-1-.3L9.7 7C9.9 7.3 10 7.6 10 8zM8 12.5c-1 0-2.1-.3-3-.8l1.3-1.3c1.4.9 3.2.6 4.2-.8.7-1 .7-2.4 0-3.4l1.4-1.4c1.1.8 2 1.9 2.6 3.2C13.4 10.5 10.6 12.5 8 12.5z"})),n)}),iz=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iA);return tq.createElement(tQ,tY({width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tC||(tC=tq.createElement("path",{d:"M22 17H24V19H22z"})),tO||(tO=tq.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),iV=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iP);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tM||(tM=tq.createElement("path",{d:"M22 17H24V19H22z"})),tT||(tT=tq.createElement("path",{d:"M28,8H4V5H26V3H4A2,2,0,0,0,2,5V26a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10A2,2,0,0,0,28,8ZM4,26V10H28v3H20a2,2,0,0,0-2,2v6a2,2,0,0,0,2,2h8v3ZM28,15v6H20V15Z"})),n)}),iI=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iN);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tA||(tA=tq.createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M8,14c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S11.3,14,8,14z"})),tP||(tP=tq.createElement("path",{d:"M7.5 4H8.5V9H7.5zM8 10.2c-.4 0-.8.3-.8.8s.3.8.8.8c.4 0 .8-.3.8-.8S8.4 10.2 8 10.2z"})),n)}),iZ=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iR);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tN||(tN=tq.createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),tR||(tR=tq.createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),n)}),iB=["children"],iH=["children"],iU=["children"],iW=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iB);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tD||(tD=tq.createElement("path",{d:"M26.0022,4H5.998A1.998,1.998,0,0,0,4,5.998V26.002A1.998,1.998,0,0,0,5.998,28H26.0022A1.9979,1.9979,0,0,0,28,26.002V5.998A1.9979,1.9979,0,0,0,26.0022,4ZM14.8752,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z"})),tL||(tL=tq.createElement("path",{fill:"none",d:"M14.8751,8h2.25V18h-2.25ZM16,24a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,24Z","data-icon-path":"inner-path"})),n)}),iq=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iH);return tq.createElement(tQ,tY({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tF||(tF=tq.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM28,15H22A24.26,24.26,0,0,0,19.21,4.45,12,12,0,0,1,28,15ZM16,28a5,5,0,0,1-.67,0A21.85,21.85,0,0,1,12,17H20a21.85,21.85,0,0,1-3.3,11A5,5,0,0,1,16,28ZM12,15a21.85,21.85,0,0,1,3.3-11,6,6,0,0,1,1.34,0A21.85,21.85,0,0,1,20,15Zm.76-10.55A24.26,24.26,0,0,0,10,15h-6A12,12,0,0,1,12.79,4.45ZM4.05,17h6a24.26,24.26,0,0,0,2.75,10.55A12,12,0,0,1,4.05,17ZM19.21,27.55A24.26,24.26,0,0,0,22,17h6A12,12,0,0,1,19.21,27.55Z"})),n)}),i$=tq.forwardRef(function(e,t){var n=e.children,r=tG(e,iU);return tq.createElement(tQ,tY({width:24,height:24,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},r),tz||(tz=tq.createElement("path",{d:"M29.3164,8.0513l-18-6A1,1,0,0,0,10.4,2.2L4,7V2H2V30H4V11l6.4,4.8a1,1,0,0,0,.9165.1489l18-6a1,1,0,0,0,0-1.8974ZM10,13,4.6665,9,10,5Zm4-.0542-2,.667V4.3872l2,.667Zm4-1.333-2,.6665V5.7207l2,.6665Zm2-.667V7.0542L25.8379,9Z"})),tV||(tV=tq.createElement("path",{d:"M20,22a4,4,0,0,0-8,0h2a2,2,0,1,1,2,2H8v2h8A4.0045,4.0045,0,0,0,20,22Z"})),tI||(tI=tq.createElement("path",{d:"M26,22a4.0045,4.0045,0,0,0-4,4h2a2,2,0,1,1,2,2H12v2H26a4,4,0,0,0,0-8Z"})),n)}),iK=n(52322);function iY(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iK.jsx)("path",{d:"M96 152v8H48v-8C48 68.1 116.1 0 200 0h48c83.9 0 152 68.1 152 152v8H352v-8c0-57.4-46.6-104-104-104H200C142.6 48 96 94.6 96 152zM0 224c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32h-5.1L388.5 469c-2.6 24.4-23.2 43-47.7 43H107.2c-24.6 0-45.2-18.5-47.7-43L37.1 256H32c-17.7 0-32-14.3-32-32z"})})}function iG(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",children:(0,iK.jsx)("path",{d:"M464 64C490.5 64 512 85.49 512 112V176C512 202.5 490.5 224 464 224H48C21.49 224 0 202.5 0 176V112C0 85.49 21.49 64 48 64H464zM448 128H320V160H448V128zM464 288C490.5 288 512 309.5 512 336V400C512 426.5 490.5 448 464 448H48C21.49 448 0 426.5 0 400V336C0 309.5 21.49 288 48 288H464zM192 352V384H448V352H192z"})})}function iX(e){let{size:t=24,className:n}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,className:n,fill:"currentColor",viewBox:"0 0 384 512",children:(0,iK.jsx)("path",{d:"M256 0v128h128L256 0zM224 128L224 0H48C21.49 0 0 21.49 0 48v416C0 490.5 21.49 512 48 512h288c26.51 0 48-21.49 48-48V160h-127.1C238.3 160 224 145.7 224 128zM64 72C64 67.63 67.63 64 72 64h80C156.4 64 160 67.63 160 72v16C160 92.38 156.4 96 152 96h-80C67.63 96 64 92.38 64 88V72zM64 136C64 131.6 67.63 128 72 128h80C156.4 128 160 131.6 160 136v16C160 156.4 156.4 160 152 160h-80C67.63 160 64 156.4 64 152V136zM304 384c8.875 0 16 7.125 16 16S312.9 416 304 416h-47.25c-16.38 0-31.25-9.125-38.63-23.88c-2.875-5.875-8-6.5-10.12-6.5s-7.25 .625-10 6.125l-7.75 15.38C187.6 412.6 181.1 416 176 416H174.9c-6.5-.5-12-4.75-14-11L144 354.6L133.4 386.5C127.5 404.1 111 416 92.38 416H80C71.13 416 64 408.9 64 400S71.13 384 80 384h12.38c4.875 0 9.125-3.125 10.62-7.625l18.25-54.63C124.5 311.9 133.6 305.3 144 305.3s19.5 6.625 22.75 16.5l13.88 41.63c19.75-16.25 54.13-9.75 66 14.12c2 4 6 6.5 10.12 6.5H304z"})})}function iJ(e){let{size:t=24,className:n}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 512 512",className:n,children:(0,iK.jsx)("path",{d:"M464 288h-416C21.5 288 0 309.5 0 336v96C0 458.5 21.5 480 48 480h416c26.5 0 48-21.5 48-48v-96C512 309.5 490.5 288 464 288zM320 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S337.6 416 320 416zM416 416c-17.62 0-32-14.38-32-32s14.38-32 32-32s32 14.38 32 32S433.6 416 416 416zM464 32h-416C21.5 32 0 53.5 0 80v192.4C13.41 262.3 29.92 256 48 256h416c18.08 0 34.59 6.254 48 16.41V80C512 53.5 490.5 32 464 32z"})})}function iQ(e){let{size:t=24,className:n}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,className:n,fill:"currentColor",viewBox:"0 0 512 512",children:(0,iK.jsx)("path",{d:"M448 32C465.7 32 480 46.33 480 64C480 81.67 465.7 96 448 96H80C71.16 96 64 103.2 64 112C64 120.8 71.16 128 80 128H448C483.3 128 512 156.7 512 192V416C512 451.3 483.3 480 448 480H64C28.65 480 0 451.3 0 416V96C0 60.65 28.65 32 64 32H448zM416 336C433.7 336 448 321.7 448 304C448 286.3 433.7 272 416 272C398.3 272 384 286.3 384 304C384 321.7 398.3 336 416 336z"})})}function i0(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iK.jsx)("path",{d:"M80 192V144C80 64.47 144.5 0 224 0C303.5 0 368 64.47 368 144V192H384C419.3 192 448 220.7 448 256V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V256C0 220.7 28.65 192 64 192H80zM144 192H304V144C304 99.82 268.2 64 224 64C179.8 64 144 99.82 144 144V192z"})})}function i1(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iK.jsx)("path",{d:"M7.994 153.5c1.326 0 2.687 .3508 3.975 1.119L208 271.5v223.8c0 9.741-7.656 16.71-16.01 16.71c-2.688 0-5.449-.7212-8.05-2.303l-152.2-92.47C12.13 405.3 0 383.3 0 359.5v-197.7C0 156.1 3.817 153.5 7.994 153.5zM426.2 117.2c0 2.825-1.352 5.647-4.051 7.248L224 242.6L25.88 124.4C23.19 122.8 21.85 119.1 21.85 117.2c0-2.8 1.32-5.603 3.965-7.221l165.1-100.9C201.7 3.023 212.9 0 224 0s22.27 3.023 32.22 9.07l165.1 100.9C424.8 111.6 426.2 114.4 426.2 117.2zM440 153.5C444.2 153.5 448 156.1 448 161.8v197.7c0 23.75-12.12 45.75-31.78 57.69l-152.2 92.5C261.5 511.3 258.7 512 256 512C247.7 512 240 505 240 495.3V271.5l196-116.9C437.3 153.8 438.7 153.5 440 153.5z"})})}function i2(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:"currentColor",children:(0,iK.jsx)("path",{d:"M495.9 166.6C499.2 175.2 496.4 184.9 489.6 191.2L446.3 230.6C447.4 238.9 448 247.4 448 256C448 264.6 447.4 273.1 446.3 281.4L489.6 320.8C496.4 327.1 499.2 336.8 495.9 345.4C491.5 357.3 486.2 368.8 480.2 379.7L475.5 387.8C468.9 398.8 461.5 409.2 453.4 419.1C447.4 426.2 437.7 428.7 428.9 425.9L373.2 408.1C359.8 418.4 344.1 427 329.2 433.6L316.7 490.7C314.7 499.7 307.7 506.1 298.5 508.5C284.7 510.8 270.5 512 255.1 512C241.5 512 227.3 510.8 213.5 508.5C204.3 506.1 197.3 499.7 195.3 490.7L182.8 433.6C167 427 152.2 418.4 138.8 408.1L83.14 425.9C74.3 428.7 64.55 426.2 58.63 419.1C50.52 409.2 43.12 398.8 36.52 387.8L31.84 379.7C25.77 368.8 20.49 357.3 16.06 345.4C12.82 336.8 15.55 327.1 22.41 320.8L65.67 281.4C64.57 273.1 64 264.6 64 256C64 247.4 64.57 238.9 65.67 230.6L22.41 191.2C15.55 184.9 12.82 175.3 16.06 166.6C20.49 154.7 25.78 143.2 31.84 132.3L36.51 124.2C43.12 113.2 50.52 102.8 58.63 92.95C64.55 85.8 74.3 83.32 83.14 86.14L138.8 103.9C152.2 93.56 167 84.96 182.8 78.43L195.3 21.33C197.3 12.25 204.3 5.04 213.5 3.51C227.3 1.201 241.5 0 256 0C270.5 0 284.7 1.201 298.5 3.51C307.7 5.04 314.7 12.25 316.7 21.33L329.2 78.43C344.1 84.96 359.8 93.56 373.2 103.9L428.9 86.14C437.7 83.32 447.4 85.8 453.4 92.95C461.5 102.8 468.9 113.2 475.5 124.2L480.2 132.3C486.2 143.2 491.5 154.7 495.9 166.6V166.6zM256 336C300.2 336 336 300.2 336 255.1C336 211.8 300.2 175.1 256 175.1C211.8 175.1 176 211.8 176 255.1C176 300.2 211.8 336 256 336z"})})}function i4(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:t,width:t,fill:"currentColor",children:(0,iK.jsx)("path",{d:"M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432V346.1z"})})}function i3(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:t,width:t,fill:"currentColor",children:(0,iK.jsx)("path",{d:"M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"})})}function i5(e){let{size:t=24}=e;return(0,iK.jsxs)("svg",{version:"1.1",id:"icon",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:t,height:t,fill:"currentColor",viewBox:"0 0 32 32",children:[(0,iK.jsx)("polygon",{points:"23,9.2 20.4,6.6 19,8 23,12 30,5 28.6,3.6 "}),(0,iK.jsx)("polygon",{points:"12,5.4 10.6,4 8,6.6 5.4,4 4,5.4 6.6,8 4,10.6 5.4,12 8,9.4 10.6,12 12,10.6 9.4,8 "}),(0,iK.jsx)("polygon",{points:"12,21.4 10.6,20 8,22.6 5.4,20 4,21.4 6.6,24 4,26.6 5.4,28 8,25.4 10.6,28 12,26.6 9.4,24 "}),(0,iK.jsx)("polygon",{points:"17,15 17,2 15,2 15,15 2,15 2,17 15,17 15,30 17,30 17,17 30,17 30,15 "}),(0,iK.jsx)("rect",{fill:"none",width:"32",height:"32"})]})}function i6(e){let{size:t=24}=e;return(0,iK.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:t,width:t,fill:"currentColor",viewBox:"0 0 448 512",children:(0,iK.jsx)("path",{d:"M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"})})}},9969:function(e,t,n){"use strict";n.d(t,{pz:function(){return ee},HI:function(){return o},Z7:function(){return q},Uy:function(){return $},e$:function(){return J},oe:function(){return Q},S0:function(){return et},YX:function(){return G},Bl:function(){return en},oV:function(){return L},sg:function(){return F},B$:function(){return D},d_:function(){return a},DQ:function(){return s},cq:function(){return N},IK:function(){return R},GP:function(){return P},nH:function(){return l},$:function(){return k},s2:function(){return O},ni:function(){return M},uf:function(){return _},Os:function(){return T},FV:function(){return E},wy:function(){return V},xw:function(){return Z},Jv:function(){return z},p$:function(){return eo},Iy:function(){return I},Q5:function(){return B},ZM:function(){return ea},f$:function(){return eu},yu:function(){return H},KJ:function(){return U},og:function(){return K},Wl:function(){return d},cQ:function(){return c},ys:function(){return p},QL:function(){return h},Tu:function(){return m},aO:function(){return x},gU:function(){return g},a0:function(){return w},cg:function(){return y},Qq:function(){return v},RF:function(){return el}});var r=n(79381),i=n(2850);let o="/bus/state";function a(e){return(0,i.Nf)({...e,route:o})}function s(e){return(0,i.Nf)({...e,route:"/bus/consensus/state"})}function l(){let e=a({config:{swr:{revalidateOnFocus:!1}}}),t=(0,r.ZP)(e,()=>{var t;return(null===(t=e.data)||void 0===t?void 0:t.network)==="Zen Testnet"?(0,i.du)():(0,i.Tc)()},{refreshInterval:6e4,keepPreviousData:!0});return t.data||0}let u="/bus/syncer/peers";function c(e){return(0,i.Nf)({...e,route:u})}function d(e){return(0,i.mw)({...e,route:"/bus/syncer/connect"},async e=>{e(e=>e===u)})}let f="/bus/txpool/transactions";function h(e){return(0,i.Nf)({...e,route:f})}function p(e){return(0,i.mw)({...e,route:"/bus/txpool/broadcast"},async e=>{await (0,i.gw)(2e3),e(e=>e.startsWith(f)||e.startsWith(b))})}function m(e){return(0,i.Nf)({...e,route:"/bus/wallet"})}function v(e){return(0,i.Nf)({...e,route:"/bus/wallet/transactions"})}function g(e){return(0,i.mw)({...e,route:"/bus/wallet/fund"})}function y(e){return(0,i.mw)({...e,route:"/bus/wallet/sign"})}function x(e){return(0,i.mw)({...e,route:"/bus/wallet/discard"})}let b="/bus/wallet/pending";function w(e){return(0,i.Nf)({...e,route:b})}let j="/bus/search/hosts";function E(e){return(0,i.q0)({...e,route:j})}function k(e){return(0,i.Nf)({...e,route:"/bus/host/:hostKey"})}let S="/bus/hosts/blocklist";function _(e){return(0,i.Nf)({...e,route:S})}let C="/bus/hosts/allowlist";function O(e){return(0,i.Nf)({...e,route:C})}function M(e){return(0,i.V1)({...e,route:"/bus/hosts/allowlist"},async e=>{e(e=>!![j,C,A].find(t=>e.startsWith(t)))})}function T(e){return(0,i.V1)({...e,route:"/bus/hosts/blocklist"},async e=>{e(e=>!![j,S,A].find(t=>e.startsWith(t)))})}let A="/bus/contracts";function P(e){return(0,i.Nf)({...e,route:A})}function N(e){return(0,i.Nf)({...e,route:"/bus/contract/:id"})}function R(e){return(0,i.iv)({...e,route:"/bus/contract/:id"})}function D(e){return(0,i.Nf)({...e,route:"/bus/buckets"})}function L(e){return(0,i.mw)({...e,route:"/bus/buckets"},async e=>{e(e=>e.startsWith("/bus/buckets"))})}function F(e){return(0,i.iv)({...e,route:"/bus/bucket/:name"},async e=>{e(e=>e.startsWith("/bus/bucket"))})}function z(e){return(0,i.Nf)({...e,route:"/bus/objects/:key"})}function V(e){return(0,i.Nf)({...e,route:"/bus/objects/:key"})}function I(e){return(0,i.Nf)({...e,route:"/bus/search/objects"})}function Z(e){return(0,i.iv)({...e,route:"/bus/objects/:key"},async e=>{e(e=>e.startsWith("/bus/objects/"))})}function B(e){return(0,i.Nf)({...e,route:"/bus/stats/objects"})}function H(e){return(0,i.Nf)({...e,route:"/bus/setting/:key"})}function U(e){return(0,i.V1)({...e,route:"/bus/setting/:key"},async(e,t)=>{e(e=>e.startsWith("/bus/setting/".concat(t.params.key)))})}let W="/bus/alerts";function q(e){return(0,i.Nf)({...e,route:W})}function $(e){return(0,i.mw)({...e,route:"/bus/alerts/dismiss"},async e=>{e(e=>e.startsWith(W))})}function K(e){return(0,i.Nf)({...e,route:"/bus/slab/:key/objects"})}let Y="/autopilot/state";function G(e){return(0,i.Nf)({...e,route:Y})}let X="/autopilot/config";function J(e){return(0,i.Nf)({...e,route:X})}function Q(e){return(0,i.V1)({...e,route:X},async e=>{e(e=>e===X);let t=async()=>{await (0,i.gw)(1e3),e(e=>e===Y)};t()})}let ee="/autopilot/hosts";function et(e){return(0,i.q0)({...e,route:ee})}function en(e){return(0,i.mw)({...e,route:"/autopilot/trigger"})}var er=n(54073),ei=n.n(er);function eo(e){return(0,i.rB)({...e,route:"/worker/objects/:key"})}function ea(e){var t;return(0,i.V1)({...e,config:{...null==e?void 0:e.config,axios:{...null==e?void 0:null===(t=e.config)||void 0===t?void 0:t.axios,headers:{"Content-Type":"multipart/form-data"}}},route:"/worker/objects/:key"},async e=>{e(e=>e.startsWith("/bus/objects"))})}let es=ei()(e=>e(),5e3),el="/worker/rhp/scan";function eu(e){return(0,i.mw)({...e,route:el},async(e,t,n)=>{let{payload:{hostKey:r}}=t;e(e=>e.startsWith("/autopilot/hosts"),e=>null==e?void 0:e.map(e=>e.host.publicKey===r?{...e,host:{...e.host,interactions:{...e.host.interactions,LastScan:new Date().toISOString(),LastScanSuccess:!n.data.scanError},settings:n.data.settings}}:e),!1),e(e=>e.startsWith("/bus/search/hosts"),e=>null==e?void 0:e.map(e=>e.publicKey===r?{...e,interactions:{...e.interactions,LastScan:new Date().toISOString(),LastScanSuccess:!n.data.scanError},settings:n.data.settings}:e),!1),es(()=>{e(e=>e.startsWith("/autopilot/hosts")||e.startsWith("/bus/search/hosts"),e=>e,!0)})})}},47025:function(e,t,n){"use strict";n.d(t,{BW:function(){return s},JL:function(){return o},BF:function(){return a}});var r=n(2850);let i="https://api.siacentral.com/v2";function o(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/hosts/list?showinactive=false&sort=download_speed&dir=desc&protocol=rhp3&page=0&limit=1000",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}function a(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/hosts/network/averages",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}function s(e){let{settings:t}=(0,r.Hv)();return(0,r.Nf)({api:i,...e,route:"/market/exchange-rate?currencies=sc",disabled:(null==e?void 0:e.disabled)||!t.siaCentral})}n(98537)},96206:function(e,t,n){"use strict";n.d(t,{vW:function(){return o},rN:function(){return s},yF:function(){return a},Vz:function(){return f},qN:function(){return c},ll:function(){return u}}),n(81395),n(18149);var r=n(6391),i=n.n(r);function o(e,t){let n="number"==typeof e?e:e instanceof i()?e.toNumber():Number(e),{fixed:r=2}=t||{};if(!n)return"0 B";if(n<1e3)return"".concat(n," B");let o=Math.floor(Math.log10(n)/Math.log10(1e3)),a=n/Math.pow(1e3,o);return a.toFixed(r)+" "+["B","KB","MB","GB","TB","PB","EB"][o]}function a(e,t){let{fixed:n=0,units:r="",abbreviated:o=!1}=t||{},a=new(i())(e||0);if(o){let e=a.toNumber();if(e<1e3)return a.toString();let t=["","K","M","B","t","q","Q","s","S","o","n","d","U","D"],i=Math.floor(Math.log10(e)/Math.log10(1e3)),o=e/Math.pow(1e3,i);return"".concat(o.toFixed(n)).concat(t[i]?" ".concat(t[i]):"").concat(r?" ".concat(r):"")}return"".concat(a.toFormat(n)).concat(r?" ".concat(r):"")}function s(e,t){let n;return n=navigator.language,new Intl.DateTimeFormat(n,{dateStyle:"short",...t}).format(new Date(e))}r.BigNumber.config({EXPONENTIAL_AT:1e9}),r.BigNumber.config({DECIMAL_PLACES:30});let l=new r.BigNumber("10").exponentiatedBy(24);function u(e,t){return void 0!==t?new r.BigNumber(new r.BigNumber(e).dividedBy(l).toFixed(t)):new r.BigNumber(e).dividedBy(l)}function c(e){return new r.BigNumber(new r.BigNumber(e).times(l).toFixed(0))}let d={fixed:3,dynamicUnits:!0,hastingUnits:!1};function f(e,t){let{fixed:n,dynamicUnits:i,hastingUnits:o}={...d,...t},a=new r.BigNumber(1e12),s=new r.BigNumber(1e3),l=new r.BigNumber(e),c=new r.BigNumber(e).abs(),f=l.isNegative()?"-":"";if(!i)return"".concat(f).concat(u(c).toFormat(n)," SC");if(c.dividedBy(a).isLessThan(1))return o?"".concat(f).concat(c," H"):"".concat(f,"0 SC");let h=["pS","nS","uS","mS","SC","KS","MS","GS","TS"];for(let e=0;ee.multipliedBy(s),new r.BigNumber(1)),i=c.dividedBy(a.multipliedBy(t));if(i.isLessThan(s)||e===h.length-1)return"".concat(f).concat(i.toFormat(n)," ").concat(h[e])}return""}},2271:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26252:function(e,t,n){"use strict";function r(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return r}}),n(43219),n(2784),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55046:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return p},usePathname:function(){return m},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return v},useParams:function(){return g},useSelectedLayoutSegments:function(){return y},useSelectedLayoutSegment:function(){return x},redirect:function(){return u.redirect},permanentRedirect:function(){return u.permanentRedirect},RedirectType:function(){return u.RedirectType},notFound:function(){return c.notFound}});let r=n(2784),i=n(60587),o=n(58839),a=n(26252),s=n(4424),l=n(44673),u=n(75903),c=n(47067),d=Symbol("internal for urlsearchparams readonly");function f(){return Error("ReadonlyURLSearchParams cannot be modified")}class h{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw f()}delete(){throw f()}set(){throw f()}sort(){throw f()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}}function p(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,r.useContext)(o.SearchParamsContext),t=(0,r.useMemo)(()=>e?new h(e):null,[e]);return t}function m(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,r.useContext)(o.PathnameContext)}function v(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,r.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function g(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,r.useContext)(i.GlobalLayoutRouterContext),t=(0,r.useContext)(o.PathParamsContext);return e?function e(t,n){void 0===n&&(n={});let r=t[1];for(let t of Object.values(r)){let r=t[0],i=Array.isArray(r),o=i?r[1]:r;if(!o||o.startsWith("__PAGE__"))continue;let a=i&&("c"===r[2]||"oc"===r[2]);a?n[r[0]]=r[1].split("/"):i&&(n[r[0]]=r[1]),n=e(t,n)}return n}(e.tree):t}function y(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,r.useContext)(i.LayoutRouterContext);return function e(t,n,r,i){let o;if(void 0===r&&(r=!0),void 0===i&&(i=[]),r)o=t[1][n];else{var a;let e=t[1];o=null!=(a=e.children)?a:Object.values(e)[0]}if(!o)return i;let l=o[0],u=(0,s.getSegmentValue)(l);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(o,n,!1,i))}(t,e)}function x(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=y(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47067:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return r},isNotFoundError:function(){return i}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function i(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75903:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return s},redirect:function(){return l},permanentRedirect:function(){return u},isRedirectError:function(){return c},getURLFromRedirectError:function(){return d},getRedirectTypeFromError:function(){return f}});let o=n(7552),a="NEXT_REDIRECT";function s(e,t,n){void 0===n&&(n=!1);let r=Error(a);r.digest=a+";"+t+";"+e+";"+n;let i=o.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function l(e,t){throw void 0===t&&(t="replace"),s(e,t,!1)}function u(e,t){throw void 0===t&&(t="replace"),s(e,t,!0)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,n,r,i]=e.digest.split(";",4);return t===a&&("replace"===n||"push"===n)&&"string"==typeof r&&("true"===i||"false"===i)}function d(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(i=r||(r={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let r=n(2271),i=(0,r.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4424:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},23116:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_FAST_REFRESH:function(){return u},ACTION_SERVER_ACTION:function(){return c}});let i="refresh",o="navigate",a="restore",s="server-patch",l="prefetch",u="fast-refresh",c="server-action";(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25146:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(67858),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80920:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return y}});let r=n(43219),i=n(16794),o=i._(n(2784)),a=r._(n(28316)),s=r._(n(37412)),l=n(31918),u=n(97686),c=n(45802);n(84759);let d=n(54365),f=r._(n(2088)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,n,r,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let s="decode"in e?e.decode():Promise.resolve();s.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}})}function m(e){let[t,n]=o.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:s,decoding:l,className:u,style:c,fetchPriority:d,placeholder:f,loading:h,unoptimized:v,fill:g,onLoadRef:y,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:w,onLoad:j,onError:E,...k}=e;return o.default.createElement("img",{...k,...m(d),loading:h,width:s,height:a,decoding:l,"data-nimg":g?"fill":"1",className:u,style:c,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(E&&(e.src=e.src),e.complete&&p(e,f,y,x,b,v))},[n,f,y,x,b,E,v,t]),onLoad:e=>{let t=e.currentTarget;p(t,f,y,x,b,v)},onError:e=>{w(!0),"empty"!==f&&b(!0),E&&E(e)}})});function g(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...m(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):o.default.createElement(s.default,null,o.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let y=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(d.RouterContext),r=(0,o.useContext)(c.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=h||r||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:a,onLoadingComplete:s}=e,p=(0,o.useRef)(a);(0,o.useEffect)(()=>{p.current=a},[a]);let m=(0,o.useRef)(s);(0,o.useEffect)(()=>{m.current=s},[s]);let[y,x]=(0,o.useState)(!1),[b,w]=(0,o.useState)(!1),{props:j,meta:E}=(0,l.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:b});return o.default.createElement(o.default.Fragment,null,o.default.createElement(v,{...j,unoptimized:E.unoptimized,placeholder:E.placeholder,fill:E.fill,onLoadRef:p,onLoadingCompleteRef:m,setBlurComplete:x,setShowAltText:w,ref:t}),E.priority?o.default.createElement(g,{isAppRouter:!n,imgAttributes:j}):null)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=n(43219),i=r._(n(2784)),o=n(31068),a=n(33134),s=n(39585),l=n(51570),u=n(19868),c=n(54365),d=n(60587),f=n(93629),h=n(25146),p=n(10694),m=n(23116),v=new Set;function g(e,t,n,r,i,o){if(!o&&!(0,a.isLocalURL)(t))return;if(!r.bypassPrefetchedCheck){let i=void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0,o=t+"%"+n+"%"+i;if(v.has(o))return;v.add(o)}let s=o?e.prefetch(t,i):e.prefetch(t,n,r);Promise.resolve(s).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let x=i.default.forwardRef(function(e,t){let n,r;let{href:s,as:v,children:x,prefetch:b=null,passHref:w,replace:j,shallow:E,scroll:k,locale:S,onClick:_,onMouseEnter:C,onTouchStart:O,legacyBehavior:M=!1,...T}=e;n=x,M&&("string"==typeof n||"number"==typeof n)&&(n=i.default.createElement("a",null,n));let A=i.default.useContext(c.RouterContext),P=i.default.useContext(d.AppRouterContext),N=null!=A?A:P,R=!A,D=!1!==b,L=null===b?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:F,as:z}=i.default.useMemo(()=>{if(!A){let e=y(s);return{href:e,as:v?y(v):e}}let[e,t]=(0,o.resolveHref)(A,s,!0);return{href:e,as:v?(0,o.resolveHref)(A,v):t||e}},[A,s,v]),V=i.default.useRef(F),I=i.default.useRef(z);M&&(r=i.default.Children.only(n));let Z=M?r&&"object"==typeof r&&r.ref:t,[B,H,U]=(0,f.useIntersection)({rootMargin:"200px"}),W=i.default.useCallback(e=>{(I.current!==z||V.current!==F)&&(U(),I.current=z,V.current=F),B(e),Z&&("function"==typeof Z?Z(e):"object"==typeof Z&&(Z.current=e))},[z,Z,F,U,B]);i.default.useEffect(()=>{N&&H&&D&&g(N,F,z,{locale:S},{kind:L},R)},[z,F,H,S,D,null==A?void 0:A.locale,N,R,L]);let q={ref:W,onClick(e){M||"function"!=typeof _||_(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,o,s,l,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,n=t.getAttribute("target");return n&&"_self"!==n||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let p=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:s,locale:u,scroll:e}):t[o?"replace":"push"](r||n,{forceOptimisticNavigation:!d,scroll:e})};c?i.default.startTransition(p):p()}(e,N,F,z,j,E,k,S,R,D)},onMouseEnter(e){M||"function"!=typeof C||C(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(D||!R)&&g(N,F,z,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)},onTouchStart(e){M||"function"!=typeof O||O(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(D||!R)&&g(N,F,z,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:L},R)}};if((0,l.isAbsoluteUrl)(z))q.href=z;else if(!M||w||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==A?void 0:A.locale,t=(null==A?void 0:A.isLocaleDomain)&&(0,h.getDomainLocale)(z,e,null==A?void 0:A.locales,null==A?void 0:A.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(z,e,null==A?void 0:A.defaultLocale))}return M?i.default.cloneElement(r,q):i.default.createElement("a",{...T,...q},n)}),b=x;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93629:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(2784),i=n(30857),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,u=l||!o,[c,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),h=(0,r.useCallback)(e=>{f.current=e},[]);(0,r.useEffect)(()=>{if(o){if(u||c)return;let e=f.current;if(e&&e.tagName){let r=function(e,t,n){let{id:r,observer:i,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=s.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e);return t={id:n,observer:o,elements:i},s.push(n),a.set(n,t),t}(n);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(r);let e=s.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n});return r}}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,n,t,c,f.current]);let p=(0,r.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31256:function(e,t,n){"use strict";var r=n(48834).lW;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Head:function(){return y},NextScript:function(){return x},Html:function(){return b},Main:function(){return w},default:function(){return j}});let i=c(n(2784)),o=n(13150),a=n(95383),s=n(82809),l=c(n(10274)),u=n(15333);function c(e){return e&&e.__esModule?e:{default:e}}let d=new Set;function f(e,t,n){let r=(0,a.getPageFiles)(e,"/_app"),i=n?[]:(0,a.getPageFiles)(e,t);return{sharedFiles:r,pageFiles:i,allFiles:[...new Set([...r,...i])]}}function h(e,t){let{assetPrefix:n,buildManifest:r,assetQueryString:o,disableOptimizedLoading:a,crossOrigin:s}=e;return r.polyfillFiles.filter(e=>e.endsWith(".js")&&!e.endsWith(".module.js")).map(e=>i.default.createElement("script",{key:e,defer:!a,nonce:t.nonce,crossOrigin:t.crossOrigin||s,noModule:!0,src:"".concat(n,"/_next/").concat(e).concat(o)}))}function p(e){let{styles:t}=e;if(!t)return null;let n=Array.isArray(t)?t:[];if(t.props&&Array.isArray(t.props.children)){let e=e=>{var t,n;return null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html};t.props.children.forEach(t=>{Array.isArray(t)?t.forEach(t=>e(t)&&n.push(t)):e(t)&&n.push(t)})}return i.default.createElement("style",{"amp-custom":"",dangerouslySetInnerHTML:{__html:n.map(e=>e.props.dangerouslySetInnerHTML.__html).join("").replace(/\/\*# sourceMappingURL=.*\*\//g,"").replace(/\/\*@ sourceURL=.*?\*\//g,"")}})}function m(e,t,n){let{dynamicImports:r,assetPrefix:o,isDevelopment:a,assetQueryString:s,disableOptimizedLoading:l,crossOrigin:u}=e;return r.map(e=>!e.endsWith(".js")||n.allFiles.includes(e)?null:i.default.createElement("script",{async:!a&&l,defer:!l,key:e,src:"".concat(o,"/_next/").concat(encodeURI(e)).concat(s),nonce:t.nonce,crossOrigin:t.crossOrigin||u}))}function v(e,t,n){var r;let{assetPrefix:o,buildManifest:a,isDevelopment:s,assetQueryString:l,disableOptimizedLoading:u,crossOrigin:c}=e,d=n.allFiles.filter(e=>e.endsWith(".js")),f=null==(r=a.lowPriorityFiles)?void 0:r.filter(e=>e.endsWith(".js"));return[...d,...f].map(e=>i.default.createElement("script",{key:e,src:"".concat(o,"/_next/").concat(encodeURI(e)).concat(l),nonce:t.nonce,async:!s&&u,defer:!u,crossOrigin:t.crossOrigin||c}))}function g(e,t){let{scriptLoader:n,disableOptimizedLoading:r,crossOrigin:o}=e,a=function(e,t){let{assetPrefix:n,scriptLoader:r,crossOrigin:o,nextScriptWorkers:a}=e;if(!a)return null;try{let{partytownSnippet:e}=require("@builder.io/partytown/integration"),a=Array.isArray(t.children)?t.children:[t.children],s=a.find(e=>{var t,n;return!!e&&!!e.props&&(null==e?void 0:null==(n=e.props)?void 0:null==(t=n.dangerouslySetInnerHTML)?void 0:t.__html.length)&&"data-partytown-config"in e.props});return i.default.createElement(i.default.Fragment,null,!s&&i.default.createElement("script",{"data-partytown-config":"",dangerouslySetInnerHTML:{__html:'\n partytown = {\n lib: "'.concat(n,'/_next/static/~partytown/"\n };\n ')}}),i.default.createElement("script",{"data-partytown":"",dangerouslySetInnerHTML:{__html:e()}}),(r.worker||[]).map((e,n)=>{let{strategy:r,src:a,children:s,dangerouslySetInnerHTML:l,...u}=e,c={};if(a)c.src=a;else if(l&&l.__html)c.dangerouslySetInnerHTML={__html:l.__html};else if(s)c.dangerouslySetInnerHTML={__html:"string"==typeof s?s:Array.isArray(s)?s.join(""):""};else throw Error("Invalid usage of next/script. Did you forget to include a src attribute or an inline script? https://nextjs.org/docs/messages/invalid-script");return i.default.createElement("script",{...c,...u,type:"text/partytown",key:a||n,nonce:t.nonce,"data-nscript":"worker",crossOrigin:t.crossOrigin||o})}))}catch(e){return(0,l.default)(e)&&"MODULE_NOT_FOUND"!==e.code&&console.warn("Warning: ".concat(e.message)),null}}(e,t),s=(n.beforeInteractive||[]).filter(e=>e.src).map((e,n)=>{var a;let{strategy:s,...l}=e;return i.default.createElement("script",{...l,key:l.src||n,defer:null!==(a=l.defer)&&void 0!==a?a:!r,nonce:t.nonce,"data-nscript":"beforeInteractive",crossOrigin:t.crossOrigin||o})});return i.default.createElement(i.default.Fragment,null,a,s)}class y extends i.default.Component{getCssLinks(e){let{assetPrefix:t,assetQueryString:n,dynamicImports:r,crossOrigin:o,optimizeCss:a,optimizeFonts:s}=this.context,l=e.allFiles.filter(e=>e.endsWith(".css")),u=new Set(e.sharedFiles),c=new Set([]),d=Array.from(new Set(r.filter(e=>e.endsWith(".css"))));if(d.length){let e=new Set(l);d=d.filter(t=>!(e.has(t)||u.has(t))),c=new Set(d),l.push(...d)}let f=[];return l.forEach(e=>{let r=u.has(e);a||f.push(i.default.createElement("link",{key:"".concat(e,"-preload"),nonce:this.props.nonce,rel:"preload",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"style",crossOrigin:this.props.crossOrigin||o}));let s=c.has(e);f.push(i.default.createElement("link",{key:e,nonce:this.props.nonce,rel:"stylesheet",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),crossOrigin:this.props.crossOrigin||o,"data-n-g":s?void 0:r?"":void 0,"data-n-p":s?void 0:r?void 0:""}))}),s&&(f=this.makeStylesheetInert(f)),0===f.length?null:f}getPreloadDynamicChunks(){let{dynamicImports:e,assetPrefix:t,assetQueryString:n,crossOrigin:r}=this.context;return e.map(e=>e.endsWith(".js")?i.default.createElement("link",{rel:"preload",key:e,href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"script",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||r}):null).filter(Boolean)}getPreloadMainLinks(e){let{assetPrefix:t,assetQueryString:n,scriptLoader:r,crossOrigin:o}=this.context,a=e.allFiles.filter(e=>e.endsWith(".js"));return[...(r.beforeInteractive||[]).map(e=>i.default.createElement("link",{key:e.src,nonce:this.props.nonce,rel:"preload",href:e.src,as:"script",crossOrigin:this.props.crossOrigin||o})),...a.map(e=>i.default.createElement("link",{key:e,nonce:this.props.nonce,rel:"preload",href:"".concat(t,"/_next/").concat(encodeURI(e)).concat(n),as:"script",crossOrigin:this.props.crossOrigin||o}))]}getBeforeInteractiveInlineScripts(){let{scriptLoader:e}=this.context,{nonce:t,crossOrigin:n}=this.props;return(e.beforeInteractive||[]).filter(e=>!e.src&&(e.dangerouslySetInnerHTML||e.children)).map((e,r)=>{let{strategy:o,children:a,dangerouslySetInnerHTML:s,src:l,...u}=e,c="";return s&&s.__html?c=s.__html:a&&(c="string"==typeof a?a:Array.isArray(a)?a.join(""):""),i.default.createElement("script",{...u,dangerouslySetInnerHTML:{__html:c},key:u.id||r,nonce:t,"data-nscript":"beforeInteractive",crossOrigin:n||void 0})})}getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}makeStylesheetInert(e){return i.default.Children.map(e,e=>{var t,n;if((null==e?void 0:e.type)==="link"&&(null==e?void 0:null==(t=e.props)?void 0:t.href)&&o.OPTIMIZED_FONT_PROVIDERS.some(t=>{var n,r;let{url:i}=t;return null==e?void 0:null==(r=e.props)?void 0:null==(n=r.href)?void 0:n.startsWith(i)})){let t={...e.props||{},"data-href":e.props.href,href:void 0};return i.default.cloneElement(e,t)}if(null==e?void 0:null==(n=e.props)?void 0:n.children){let t={...e.props||{},children:this.makeStylesheetInert(e.props.children)};return i.default.cloneElement(e,t)}return e}).filter(Boolean)}render(){var e,t;let{styles:r,ampPath:o,inAmpMode:a,hybridAmp:s,canonicalBase:l,__NEXT_DATA__:u,dangerousAsPath:c,headTags:d,unstable_runtimeJS:h,unstable_JsPreload:m,disableOptimizedLoading:v,optimizeCss:g,optimizeFonts:y,assetPrefix:x,nextFontManifest:b}=this.context,w=!1===h,j=!1===m||!v;this.context.docComponentsRendered.Head=!0;let{head:E}=this.context,k=[],S=[];E&&(E.forEach(e=>{let t;this.context.strictNextHead&&(t=i.default.createElement("meta",{name:"next-head",content:"1"})),e&&"link"===e.type&&"preload"===e.props.rel&&"style"===e.props.as?(t&&k.push(t),k.push(e)):e&&(t&&("meta"!==e.type||!e.props.charSet)&&S.push(t),S.push(e))}),E=k.concat(S));let _=i.default.Children.toArray(this.props.children).filter(Boolean);y&&!a&&(_=this.makeStylesheetInert(_));let C=!1,O=!1;E=i.default.Children.map(E||[],e=>{if(!e)return e;let{type:t,props:n}=e;if(a){let r="";if("meta"===t&&"viewport"===n.name?r='name="viewport"':"link"===t&&"canonical"===n.rel?O=!0:"script"===t&&(n.src&&-1>n.src.indexOf("ampproject")||n.dangerouslySetInnerHTML&&(!n.type||"text/javascript"===n.type))&&(r="{r+=" ".concat(e,'="').concat(n[e],'"')}),r+="/>"),r)return console.warn('Found conflicting amp tag "'.concat(e.type,'" with conflicting prop ').concat(r," in ").concat(u.page,". https://nextjs.org/docs/messages/conflicting-amp-tag")),null}else"link"===t&&"amphtml"===n.rel&&(C=!0);return e});let M=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,a),T=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return{preconnect:null,preload:null};let r=e.pages["/_app"],o=e.pages[t],a=[...null!=r?r:[],...null!=o?o:[]],s=!!(0===a.length&&(r||o));return{preconnect:s?i.default.createElement("link",{"data-next-font":e.pagesUsingSizeAdjust?"size-adjust":"",rel:"preconnect",href:"/",crossOrigin:"anonymous"}):null,preload:a?a.map(e=>{let t=/\.(woff|woff2|eot|ttf|otf)$/.exec(e)[1];return i.default.createElement("link",{key:e,rel:"preload",href:"".concat(n,"/_next/").concat(encodeURI(e)),as:"font",type:"font/".concat(t),crossOrigin:"anonymous","data-next-font":e.includes("-s")?"size-adjust":""})}):null}}(b,c,x);return i.default.createElement("head",function(e){let{crossOrigin:t,nonce:n,...r}=e;return r}(this.props),this.context.isDevelopment&&i.default.createElement(i.default.Fragment,null,i.default.createElement("style",{"data-next-hide-fouc":!0,"data-ampdevmode":a?"true":void 0,dangerouslySetInnerHTML:{__html:"body{display:none}"}}),i.default.createElement("noscript",{"data-next-hide-fouc":!0,"data-ampdevmode":a?"true":void 0},i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body{display:block}"}}))),E,this.context.strictNextHead?null:i.default.createElement("meta",{name:"next-head-count",content:i.default.Children.count(E||[]).toString()}),_,y&&i.default.createElement("meta",{name:"next-font-preconnect"}),T.preconnect,T.preload,a&&i.default.createElement(i.default.Fragment,null,i.default.createElement("meta",{name:"viewport",content:"width=device-width,minimum-scale=1,initial-scale=1"}),!O&&i.default.createElement("link",{rel:"canonical",href:l+n(79505).cleanAmpPath(c)}),i.default.createElement("link",{rel:"preload",as:"script",href:"https://cdn.ampproject.org/v0.js"}),i.default.createElement(p,{styles:r}),i.default.createElement("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}"}}),i.default.createElement("noscript",null,i.default.createElement("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}"}})),i.default.createElement("script",{async:!0,src:"https://cdn.ampproject.org/v0.js"})),!a&&i.default.createElement(i.default.Fragment,null,!C&&s&&i.default.createElement("link",{rel:"amphtml",href:l+(o||"".concat(c).concat(c.includes("?")?"&":"?","amp=1"))}),this.getBeforeInteractiveInlineScripts(),!g&&this.getCssLinks(M),!g&&i.default.createElement("noscript",{"data-n-css":null!==(e=this.props.nonce)&&void 0!==e?e:""}),!w&&!j&&this.getPreloadDynamicChunks(),!w&&!j&&this.getPreloadMainLinks(M),!v&&!w&&this.getPolyfillScripts(),!v&&!w&&this.getPreNextScripts(),!v&&!w&&this.getDynamicChunks(M),!v&&!w&&this.getScripts(M),g&&this.getCssLinks(M),g&&i.default.createElement("noscript",{"data-n-css":null!==(t=this.props.nonce)&&void 0!==t?t:""}),this.context.isDevelopment&&i.default.createElement("noscript",{id:"__next_css__DO_NOT_USE__"}),r||null),i.default.createElement(i.default.Fragment,{},...d||[]))}}y.contextType=u.HtmlContext;class x extends i.default.Component{getDynamicChunks(e){return m(this.context,this.props,e)}getPreNextScripts(){return g(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}static getInlineScriptSource(e){let{__NEXT_DATA__:t,largePageDataBytes:i}=e;try{let o=JSON.stringify(t);if(d.has(t.page))return(0,s.htmlEscapeJsonString)(o);let a=r.from(o).byteLength,l=n(16549).Z;return i&&a>i&&(d.add(t.page),console.warn('Warning: data for page "'.concat(t.page,'"').concat(t.page===e.dangerousAsPath?"":' (path "'.concat(e.dangerousAsPath,'")')," is ").concat(l(a)," which exceeds the threshold of ").concat(l(i),", this amount of data can reduce performance.\nSee more info here: https://nextjs.org/docs/messages/large-page-data"))),(0,s.htmlEscapeJsonString)(o)}catch(e){if((0,l.default)(e)&&-1!==e.message.indexOf("circular structure"))throw Error('Circular structure in "getInitialProps" result of page "'.concat(t.page,'". https://nextjs.org/docs/messages/circular-structure'));throw e}}render(){let{assetPrefix:e,inAmpMode:t,buildManifest:n,unstable_runtimeJS:r,docComponentsRendered:o,assetQueryString:a,disableOptimizedLoading:s,crossOrigin:l}=this.context,u=!1===r;if(o.NextScript=!0,t)return null;let c=f(this.context.buildManifest,this.context.__NEXT_DATA__.page,t);return i.default.createElement(i.default.Fragment,null,!u&&n.devFiles?n.devFiles.map(t=>i.default.createElement("script",{key:t,src:"".concat(e,"/_next/").concat(encodeURI(t)).concat(a),nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l})):null,u?null:i.default.createElement("script",{id:"__NEXT_DATA__",type:"application/json",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l,dangerouslySetInnerHTML:{__html:x.getInlineScriptSource(this.context)}}),s&&!u&&this.getPolyfillScripts(),s&&!u&&this.getPreNextScripts(),s&&!u&&this.getDynamicChunks(c),s&&!u&&this.getScripts(c))}}function b(e){let{inAmpMode:t,docComponentsRendered:n,locale:r,scriptLoader:o,__NEXT_DATA__:a}=(0,u.useHtmlContext)();return n.Html=!0,!function(e,t,n){var r,o,a,s;if(!n.children)return;let l=[],u=Array.isArray(n.children)?n.children:[n.children],c=null==(o=u.find(e=>e.type===y))?void 0:null==(r=o.props)?void 0:r.children,d=null==(s=u.find(e=>"body"===e.type))?void 0:null==(a=s.props)?void 0:a.children,f=[...Array.isArray(c)?c:[c],...Array.isArray(d)?d:[d]];i.default.Children.forEach(f,t=>{var n;if(t&&(null==(n=t.type)?void 0:n.__nextScript)){if("beforeInteractive"===t.props.strategy){e.beforeInteractive=(e.beforeInteractive||[]).concat([{...t.props}]);return}if(["lazyOnload","afterInteractive","worker"].includes(t.props.strategy)){l.push(t.props);return}}}),t.scriptLoader=l}(o,a,e),i.default.createElement("html",{...e,lang:e.lang||r||void 0,amp:t?"":void 0,"data-ampdevmode":void 0})}function w(){let{docComponentsRendered:e}=(0,u.useHtmlContext)();return e.Main=!0,i.default.createElement("next-js-internal-body-render-target",null)}x.contextType=u.HtmlContext;class j extends i.default.Component{static getInitialProps(e){return e.defaultGetInitialProps(e)}render(){return i.default.createElement(b,null,i.default.createElement(y,null),i.default.createElement("body",null,i.default.createElement(w,null),i.default.createElement(x,null)))}}j[o.NEXT_BUILTIN_DOCUMENT]=function(){return i.default.createElement(b,null,i.default.createElement(y,null),i.default.createElement("body",null,i.default.createElement(w,null),i.default.createElement(x,null)))}},22698:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{noSSR:function(){return a},default:function(){return s}});let r=n(43219),i=(n(2784),r._(n(94780)));function o(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let n=i.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e}),r={...r,...t};let s=r.loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=s?s().then(o):Promise.resolve(o(()=>null))}):(delete r.webpack,delete r.modules,a(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),n(84759);let r=n(69933),i=n(97686);function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var n;let s,l,u,{src:c,sizes:d,unoptimized:f=!1,priority:h=!1,loading:p,className:m,quality:v,width:g,height:y,fill:x=!1,style:b,onLoad:w,onLoadingComplete:j,placeholder:E="empty",blurDataURL:k,fetchPriority:S,layout:_,objectFit:C,objectPosition:O,lazyBoundary:M,lazyRoot:T,...A}=e,{imgConf:P,showAltText:N,blurComplete:R,defaultLoader:D}=t,L=P||i.imageConfigDefault;if("allSizes"in L)s=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t);s={...L,allSizes:e,deviceSizes:t}}let F=A.loader||D;delete A.loader,delete A.srcSet;let z="__next_img_default"in F;if(z){if("custom"===s.loader)throw Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=F;F=t=>{let{config:n,...r}=t;return e(r)}}if(_){"fill"===_&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[_];e&&(b={...b,...e});let t={responsive:"100vw",fill:"100vw"}[_];t&&!d&&(d=t)}let V="",I=a(g),Z=a(y);if("object"==typeof(n=c)&&(o(n)||void 0!==n.src)){let e=o(c)?c.default:c;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(l=e.blurWidth,u=e.blurHeight,k=k||e.blurDataURL,V=e.src,!x){if(I||Z){if(I&&!Z){let t=I/e.width;Z=Math.round(e.height*t)}else if(!I&&Z){let t=Z/e.height;I=Math.round(e.width*t)}}else I=e.width,Z=e.height}}let B=!h&&("lazy"===p||void 0===p);(!(c="string"==typeof c?c:V)||c.startsWith("data:")||c.startsWith("blob:"))&&(f=!0,B=!1),s.unoptimized&&(f=!0),z&&c.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(f=!0),h&&(S="high");let H=a(v),U=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:O}:{},N?{}:{color:"transparent"},b),W=R||"empty"===E?null:"blur"===E?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:I,heightInt:Z,blurWidth:l,blurHeight:u,blurDataURL:k||"",objectFit:U.objectFit})+'")':'url("'+E+'")',q=W?{backgroundSize:U.objectFit||"cover",backgroundPosition:U.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},$=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:s}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),c=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,r)=>s({config:t,src:n,quality:o,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:s({config:t,src:n,quality:o,width:l[c]})}}({config:s,src:c,unoptimized:f,width:I,quality:H,sizes:d,loader:F}),K={...A,loading:B?"lazy":p,fetchPriority:S,width:I,height:Z,decoding:"async",className:m,style:{...U,...q},sizes:$.sizes,srcSet:$.srcSet,src:$.src},Y={unoptimized:f,priority:h,placeholder:E,fill:x};return{props:K,meta:Y}}},15333:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{HtmlContext:function(){return i},useHtmlContext:function(){return o}});let r=n(2784),i=(0,r.createContext)(void 0);function o(){let e=(0,r.useContext)(i);if(!e)throw Error(" should not be imported outside of pages/_document.\nRead more: https://nextjs.org/docs/messages/no-document-import-in-page");return e}},69933:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,s=r?40*r:t,l=i?40*i:n,u=s&&l?"viewBox='0 0 "+s+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},81963:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return u},unstable_getImgProps:function(){return l}});let r=n(43219),i=n(31918),o=n(84759),a=n(80920),s=r._(n(2088)),l=e=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}},u=a.Image},2088:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},49306:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return o}});let r=n(43219),i=r._(n(2784)),o=i.default.createContext(null)},94780:function(e,t,n){"use strict";/** @copyright (c) 2017-present James Kyle MIT License Permission is hereby granted, free of charge, to any person obtaining @@ -76,7 +76,7 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE -*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=n(43219),i=r._(n(2784)),o=n(49306),a=[],s=[],l=!1;function u(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function a(){if(!r){let t=new c(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!l){let e=n.webpack?n.webpack():n.modules;e&&s.push(t=>{for(let n of e)if(t.includes(n))return a()})}function u(e,t){!function(){a();let e=i.default.useContext(o.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let s=i.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:r.retry}),[]),i.default.useMemo(()=>{var t;return s.loading||s.error?i.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:r.retry}):s.loaded?i.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return u.preload=()=>a(),u.displayName="LoadableComponent",i.default.forwardRef(u)}(u,e)}function f(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return f(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{f(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(l=!0,t());f(s,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let h=d},72190:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePagePath",{enumerable:!0,get:function(){return a}});let r=n(95523),i=n(17428),o=n(51570);function a(e){let t=/^\/index(\/|$)/.test(e)&&!(0,i.isDynamicRoute)(e)?"/index"+e:"/"===e?"/index":(0,r.ensureLeadingSlash)(e);{let{posix:e}=n(15153),r=e.normalize(t);if(r!==t)throw new o.NormalizeError("Requested and resolved page mismatch: "+t+" "+r)}return t}},44673:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let r=n(16794),i=r._(n(2784)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},37832:function(){},276:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_355ef5', '__IBM_Plex_Mono_Fallback_355ef5'"},className:"__className_355ef5",variable:"__variable_355ef5"}},35957:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Sans_829fdc', '__IBM_Plex_Sans_Fallback_829fdc'"},className:"__className_829fdc",variable:"__variable_829fdc"}},15153:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?r=arguments[a]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(i=r+"/"+i,o=47===r.charCodeAt(0));return(i=n(i,!o),o)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;iu){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;47===f&&(c=d)}var h="";for(d=i+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return -1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){i=r+1;break}}else -1===l&&(a=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else -1===o&&(a=!1,o=r+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!o){r=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var a=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=n;--c){if(47===(i=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(0===s&&o?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(s,l)):(0===s&&o?(r.name=e.slice(1,a),r.base=e.slice(1,l)):(r.name=e.slice(s,a),r.base=e.slice(s,l)),r.ext=e.slice(a,l)),s>0?r.dir=e.slice(0,s-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(114);e.exports=i}()},16549:function(e,t){"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return i}});let n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],r=(e,t)=>{let n=e;return"string"==typeof t?n=e.toLocaleString(t):!0===t&&(n=e.toLocaleString()),n};function i(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);if((t=Object.assign({},t)).signed&&0===e)return" 0 B";let i=e<0,o=i?"-":t.signed?"+":"";if(i&&(e=-e),e<1){let n=r(e,t.locale);return o+n+" B"}let a=Math.min(Math.floor(Math.log10(e)/3),n.length-1);e=Number((e/Math.pow(1e3,a)).toPrecision(3));let s=r(e,t.locale),l=n[a];return o+s+" "+l}},95383:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getPageFiles",{enumerable:!0,get:function(){return o}});let r=n(7005),i=n(72190);function o(e,t){let n=(0,r.denormalizePagePath)((0,i.normalizePagePath)(t));return e.pages[n]||(console.warn(`Could not find files for ${n} in .next/build-manifest.json`),[])}},82809:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ESCAPE_REGEX:function(){return r},htmlEscapeJsonString:function(){return i}});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},r=/[&><\u2028\u2029]/g;function i(e){return e.replace(r,e=>n[e])}},79505:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isBlockedPage:function(){return i},cleanAmpPath:function(){return o},debounce:function(){return a}});let r=n(13150);function i(e){return r.BLOCKED_PAGES.includes(e)}function o(e){return e.match(/\?amp=(y|yes|true|1)/)&&(e=e.replace(/\?amp=(y|yes|true|1)&?/,"?")),e.match(/&=(y|yes|true|1)/)&&(e=e.replace(/&=(y|yes|true|1)/,"")),e=e.replace(/\?$/,"")}function a(e,t,n=1/0){let r,i,o;let a=0,s=0;function l(){let u=Date.now(),c=s+t-u;c<=0||a+n>=u?(r=void 0,e.apply(o,i)):r=setTimeout(l,c)}return function(...e){i=e,o=this,s=Date.now(),void 0===r&&(a=s,r=setTimeout(l,t))}}},331:function(e,t,n){n(31256)},25237:function(e,t,n){e.exports=n(22698)},97729:function(e,t,n){e.exports=n(37412)},96577:function(e,t,n){e.exports=n(81963)},39097:function(e,t,n){e.exports=n(13814)},82876:function(e,t,n){e.exports=n(55046)},5632:function(e,t,n){e.exports=n(60222)},24470:function(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},34406:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(a,"$2")}))}function d(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,n){for(var r=0,i=t.length,o=e;r>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},81432:function(e){e.exports={L:1,M:0,Q:3,H:2}},84695:function(e,t,n){var r=n(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var u=!1;o>>i&1)==1),a.getMask(t,r,s-l)&&(u=!u),this.modules[r][s-l]=u,-1==--i&&(o++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new o,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,o=Array(t.length),l=Array(t.length),u=0;u=0?p.get(m):0}}for(var v=0,f=0;f=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a.PATTERN000:return(t+n)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return n%3==0;case a.PATTERN011:return(t+n)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case a.PATTERN101:return t*n%2+t*n%3==0;case a.PATTERN110:return(t*n%2+t*n%3)%2==0;case a.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),n=0;n5&&(n+=3+o-5)}for(var r=0;r0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var u=[".DS_Store","Thumbs.db"];function c(e){return"object"==typeof e&&null!==e}function d(e){return e.filter(function(e){return -1===u.indexOf(e.name)})}function f(e){if(null===e)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);nn)return[!1,_(n)];if(e.sizen)return[!1,_(n)]}return[!0,null]}function A(e){return null!=e}function P(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function N(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function R(e){e.preventDefault()}function D(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Y=(0,r.forwardRef)(function(e,t){var n=e.children,i=J(K(e,z)),o=i.open,a=K(i,V);return(0,r.useImperativeHandle)(t,function(){return{open:o}},[o]),r.createElement(r.Fragment,null,n(q(q({},a),{},{open:o})))});Y.displayName="Dropzone";var G={disabled:!1,getFilesFromEvent:function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){return c(e)&&c(e.dataTransfer)?[2,function(e,t){return(0,a.mG)(this,void 0,void 0,function(){var n;return(0,a.Jh)(this,function(r){switch(r.label){case 0:if(!e.items)return[3,2];if(n=f(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(h))];case 1:return[2,d(function e(t){return t.reduce(function(t,n){return(0,a.ev)((0,a.ev)([],(0,a.CR)(t),!1),(0,a.CR)(Array.isArray(n)?e(n):[n]),!1)},[])}(r.sent()))];case 2:return[2,d(f(e.files).map(function(e){return l(e)}))]}})})}(e.dataTransfer,e.type)]:c(e)&&c(e.target)?[2,f(e.target.files).map(function(e){return l(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return e.getFile()}))];case 1:return[2,t.sent().map(function(e){return l(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Y.defaultProps=G,Y.propTypes={children:o().func,accept:o().objectOf(o().arrayOf(o().string)),multiple:o().bool,preventDropOnDocument:o().bool,noClick:o().bool,noKeyboard:o().bool,noDrag:o().bool,noDragEventsBubbling:o().bool,minSize:o().number,maxSize:o().number,maxFiles:o().number,disabled:o().bool,getFilesFromEvent:o().func,onFileDialogCancel:o().func,onFileDialogOpen:o().func,useFsAccessApi:o().bool,autoFocus:o().bool,onDragEnter:o().func,onDragLeave:o().func,onDragOver:o().func,onDrop:o().func,onDropAccepted:o().func,onDropRejected:o().func,onError:o().func,validator:o().func};var X={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=q(q({},G),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,p=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,g=t.onFileDialogOpen,b=t.useFsAccessApi,E=t.autoFocus,k=t.preventDropOnDocument,S=t.noClick,_=t.noKeyboard,C=t.noDrag,z=t.noDragEventsBubbling,V=t.onError,W=t.validator,Y=(0,r.useMemo)(function(){return function(e){if(A(e))return Object.entries(e).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return[].concat(y(e),[r],y(i))},[]).filter(function(e){return L(e)||F(e)}).join(",")}(n)},[n]),J=(0,r.useMemo)(function(){return A(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=j(e,2),n=t[0],r=t[1],i=!0;return L(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every(F)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return x(x({},e),{},w({},r,i))},{})}]:n},[n]),et=(0,r.useMemo)(function(){return"function"==typeof g?g:ee},[g]),en=(0,r.useMemo)(function(){return"function"==typeof v?v:ee},[v]),er=(0,r.useRef)(null),ei=(0,r.useRef)(null),eo=B((0,r.useReducer)(Q,X),2),ea=eo[0],es=eo[1],el=ea.isFocused,eu=ea.isFileDialogActive,ec=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),ed=function(){!ec.current&&eu&&setTimeout(function(){ei.current&&!ei.current.files.length&&(es({type:"closeDialog"}),en())},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",ed,!1),function(){window.removeEventListener("focus",ed,!1)}},[ei,eu,en,ec]);var ef=(0,r.useRef)([]),eh=function(e){er.current&&er.current.contains(e.target)||(e.preventDefault(),ef.current=[])};(0,r.useEffect)(function(){return k&&(document.addEventListener("dragover",R,!1),document.addEventListener("drop",eh,!1)),function(){k&&(document.removeEventListener("dragover",R),document.removeEventListener("drop",eh))}},[er,k]),(0,r.useEffect)(function(){return!i&&E&&er.current&&er.current.focus(),function(){}},[er,E,i]);var ep=(0,r.useCallback)(function(e){V?V(e):console.error(e)},[V]),em=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eO(e),ef.current=[].concat(function(e){if(Array.isArray(e))return U(e)}(t=ef.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||H(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),N(e)&&Promise.resolve(o(e)).then(function(t){if(!P(e)||z){var n,r,i,o,d,f,h,p,m=t.length,v=m>0&&(r=(n={files:t,accept:Y,minSize:s,maxSize:a,multiple:l,maxFiles:u,validator:W}).files,i=n.accept,o=n.minSize,d=n.maxSize,f=n.multiple,h=n.maxFiles,p=n.validator,(!!f||!(r.length>1))&&(!f||!(h>=1)||!(r.length>h))&&r.every(function(e){var t=j(M(e,i),1)[0],n=j(T(e,o,d),1)[0],r=p?p(e):null;return t&&n&&!r}));es({isDragAccept:v,isDragReject:m>0&&!v,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return ep(e)})},[o,c,ep,z,Y,s,a,l,u,W]),ev=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=N(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,z]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=ef.current.filter(function(e){return er.current&&er.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ef.current=t,!(t.length>0)&&(es({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),N(e)&&d&&d(e))},[er,d,z]),ey=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=B(M(e,Y),2),i=t[0],o=t[1],l=B(T(e,s,a),2),u=l[0],c=l[1],d=W?W(e):null;if(i&&u&&!d)n.push(e);else{var f=[o,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!l&&n.length>1||l&&u>=1&&n.length>u)&&(n.forEach(function(e){r.push({file:e,errors:[O]})}),n.splice(0)),es({acceptedFiles:n,fileRejections:r,type:"setFiles"}),h&&h(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&p&&p(n,t)},[es,l,Y,s,a,u,h,p,m,W]),eb=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e),ef.current=[],N(e)&&Promise.resolve(o(e)).then(function(t){(!P(e)||z)&&ey(t,e)}).catch(function(e){return ep(e)}),es({type:"reset"})},[o,ey,ep,z]),ex=(0,r.useCallback)(function(){if(ec.current){es({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:l,types:J}).then(function(e){return o(e)}).then(function(e){ey(e,null),es({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(en(e),es({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(ec.current=!1,ei.current?(ei.current.value=null,ei.current.click()):ep(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ep(e)});return}ei.current&&(es({type:"openDialog"}),et(),ei.current.value=null,ei.current.click())},[es,et,en,b,ey,ep,J,l]),ew=(0,r.useCallback)(function(e){er.current&&er.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ex())},[er,ex]),ej=(0,r.useCallback)(function(){es({type:"focus"})},[]),eE=(0,r.useCallback)(function(){es({type:"blur"})},[]),ek=(0,r.useCallback)(function(){S||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(ex,0):ex())},[S,ex]),eS=function(e){return i?null:e},e_=function(e){return _?null:eS(e)},eC=function(e){return C?null:eS(e)},eO=function(e){z&&e.stopPropagation()},eM=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,o=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,u=e.onDragEnter,c=e.onDragOver,d=e.onDragLeave,f=e.onDrop,h=K(e,I);return q(q($({onKeyDown:e_(D(o,ew)),onFocus:e_(D(a,ej)),onBlur:e_(D(s,eE)),onClick:eS(D(l,ek)),onDragEnter:eC(D(u,em)),onDragOver:eC(D(c,ev)),onDragLeave:eC(D(d,eg)),onDrop:eC(D(f,eb)),role:"string"==typeof r&&""!==r?r:"presentation"},n,er),i||_?{}:{tabIndex:0}),h)}},[er,ew,ej,eE,ek,em,ev,eg,eb,_,C,i]),eT=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eA=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,i=e.onClick,o=K(e,Z);return q(q({},$({accept:Y,multiple:l,type:"file",style:{display:"none"},onChange:eS(D(r,eb)),onClick:eS(D(i,eT)),tabIndex:-1},n,ei)),o)}},[ei,n,l,eb,i]);return q(q({},ea),{},{isFocused:el&&!i,getRootProps:eM,getInputProps:eA,rootRef:er,inputRef:ei,open:eS(ex)})}function Q(e,t){switch(t.type){case"focus":return q(q({},e),{},{isFocused:!0});case"blur":return q(q({},e),{},{isFocused:!1});case"openDialog":return q(q({},X),{},{isFileDialogActive:!0});case"closeDialog":return q(q({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return q(q({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return q(q({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return q({},X);default:return e}}function ee(){}},78435:function(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,i="undefined"!=typeof Element;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c=t(o),d=t(a);if(c&&d){if((l=o.length)!=a.length)return!1;for(s=l;0!=s--;)if(!e(o[s],a[s]))return!1;return!0}if(c!=d)return!1;var f=o instanceof Date,h=a instanceof Date;if(f!=h)return!1;if(f&&h)return o.getTime()==a.getTime();var p=o instanceof RegExp,m=a instanceof RegExp;if(p!=m)return!1;if(p&&m)return o.toString()==a.toString();var v=n(o);if((l=v.length)!==n(a).length)return!1;for(s=l;0!=s--;)if(!r.call(a,v[s]))return!1;if(i&&o instanceof Element&&a instanceof Element)return o===a;for(s=l;0!=s--;)if(("_owner"!==(u=v[s])||!o.$$typeof)&&!e(o[u],a[u]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},72660:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(13980)),i=o(n(2784));function o(e){return e&&e.__esModule?e:{default:e}}var a={d:r.default.string.isRequired,fill:r.default.string.isRequired,transformX:r.default.number.isRequired,transformY:r.default.number.isRequired},s=function(e){var t=e.d,n=e.fill,r=e.transformX,o=e.transformY;return i.default.createElement("path",{d:t,fill:n,transform:"matrix("+[1,0,0,1,r,o]+")"})};s.propTypes=a,s.defaultProps={},t.default=s},76672:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","size","title","xmlns"]);return o.default.createElement("svg",r({},s,{height:n,width:n,xmlns:a}),i?o.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,o.default[a]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,r({},f,{size:s}),p.map(function(e,r){return e.map(function(e,i){var o=Math.round(i*m),a=Math.round(r*m),s=Math.round((i+1)*m)-o,c=Math.round((r+1)*m)-a;return l.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:o,transformY:a})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},70506:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r,i,o,a,s,l,u=n(22970),c=n(2784),d="right-scroll-bar-position",f="width-before-scroll-bar",h=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],a=!1,s={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,u.pi)({async:!0,ssr:!1},r),s),p=function(){},m=c.forwardRef(function(e,t){var n,r,i,o=c.useRef(null),a=c.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),s=a[0],l=a[1],d=e.forwardProps,f=e.children,m=e.className,v=e.removeScrollBar,g=e.enabled,y=e.shards,b=e.sideCar,x=e.noIsolation,w=e.inert,j=e.allowPinchZoom,E=e.as,k=void 0===E?"div":E,S=(0,u._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=(n=[o,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,i.facade),C=(0,u.pi)((0,u.pi)({},S),s);return c.createElement(c.Fragment,null,g&&c.createElement(b,{sideCar:h,removeScrollBar:v,shards:y,noIsolation:x,inert:w,setCallbacks:l,allowPinchZoom:!!j,lockRef:o}),d?c.cloneElement(c.Children.only(f),(0,u.pi)((0,u.pi)({},C),{ref:_})):c.createElement(k,(0,u.pi)({},C,{className:m,ref:_}),f))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:f,zeroRight:d};var v=function(e){var t=e.sideCar,n=(0,u._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,(0,u.pi)({},n))};v.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=g();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},x={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},j=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[w(n),w(r),w(i)]},E=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return x;var t=j(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},k=b(),S=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(f," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n right: 0 ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},_=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,o=c.useMemo(function(){return E(i)},[i]);return c.createElement(k,{styles:S(o,!t,i,n?"":"!important")})},C=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return C=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){C=!1}var M=!!C&&{passive:!1},T=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},A=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},P=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),N(e,n)){var r=R(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},N=function(e,t){return"v"===e?T(t):A(t)},R=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},D=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=R(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&N(e,l)&&(f+=v,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F=function(e){return[e.deltaX,e.deltaY]},z=function(e){return e&&"current"in e?e.current:e},V=0,I=[],Z=(h.useMedium(function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(V++)[0],o=c.useState(function(){return b()})[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,u.ev)([e.lockRef.current],(e.shards||[]).map(z),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=L(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=P(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=P(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return D(h,t,e,"h"===h?l:u,!0)},[]),l=c.useCallback(function(e){if(I.length&&I[I.length-1]===o){var n="deltaY"in e?F(e):L(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(z).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),d=c.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),f=c.useCallback(function(e){n.current=L(e),r.current=void 0},[]),h=c.useCallback(function(t){d(t.type,F(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){d(t.type,L(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return I.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,M),document.addEventListener("touchmove",l,M),document.addEventListener("touchstart",f,M),function(){I=I.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,M),document.removeEventListener("touchmove",l,M),document.removeEventListener("touchstart",f,M)}},[]);var m=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?c.createElement(_,{gapMode:"margin"}):null)}),v),B=c.forwardRef(function(e,t){return c.createElement(m,(0,u.pi)({},e,{ref:t,sideCar:Z}))});B.classNames=m.classNames;var H=B},32718:function(e,t,n){var r,i=n(58085),o=n(41964),a=n(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return r=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(n,o,l){if(r++>100)throw r=0,Error("Call stack overflow for "+l);if(""===n)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,o="",a=t;r=s.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var l=i("(",")",a.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",n);o+=l.pre+u,a=l.post}return o+a}(n,l));if(c.length>1||n.indexOf("var(")>-1)return o+"("+n+")";var d=c[0]||"";"%"===d&&(n=n.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=n.replace(RegExp(d,"gi"),"");try{u=a.eval(f)}catch(e){return o+"("+n+")"}return"%"===d&&(u*=100),(o.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,l=r("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return n})(t,n).reduce(function(r,o){var a,s;return r.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,n,i),s,t)))},t)}},6692:function(e,t,n){let r=n(83128);e.exports=(r.__esModule?r:{default:r}).default},83128:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>a});let i=(r=n(37540))&&r.__esModule?r:{default:r};function o({version:e,from:t,to:n}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,n){"use strict";var r,i=n(34406);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{dim:()=>l,default:()=>u});let o=(r=n(24470))&&r.__esModule?r:{default:r},a=new Set;function s(e,t,n){(void 0===i||!i.env.JEST_WORKER_ID)&&(n&&a.has(n)||(n&&a.add(n),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return o.default.dim(e)}let u={info(e,t){s(o.default.bold(o.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var n=e.length,r=Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,n=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,r.useRef)({item:null,parsed:t}),d=(0,r.useSyncExternalStore)((0,r.useCallback)(t=>{let n=n=>{e===n&&t()};return o.add(n),()=>{o.delete(n)}},[e]),()=>{var n;let r=null!==(n=s(()=>localStorage.getItem(e)))&&void 0!==n?n:null;if(i.has(e))c.current={item:r,parsed:i.get(e)};else if(r!==c.current.item){let e;try{e=null===r?t:l(r)}catch(n){e=t}c.current={item:r,parsed:e}}return c.current.parsed},()=>t),f=(0,r.useCallback)(t=>{let n=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(n)),i.delete(e)}catch(t){i.set(e,n)}a(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&a(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,n]),(0,r.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),a(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},20452:function(e,t,n){"use strict";/** +*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let r=n(43219),i=r._(n(2784)),o=n(49306),a=[],s=[],l=!1;function u(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function a(){if(!r){let t=new c(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!l){let e=n.webpack?n.webpack():n.modules;e&&s.push(t=>{for(let n of e)if(t.includes(n))return a()})}function u(e,t){!function(){a();let e=i.default.useContext(o.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let s=i.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:r.retry}),[]),i.default.useMemo(()=>{var t;return s.loading||s.error?i.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:r.retry}):s.loaded?i.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return u.preload=()=>a(),u.displayName="LoadableComponent",i.default.forwardRef(u)}(u,e)}function f(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return f(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{f(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(l=!0,t());f(s,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let h=d},72190:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePagePath",{enumerable:!0,get:function(){return a}});let r=n(95523),i=n(17428),o=n(51570);function a(e){let t=/^\/index(\/|$)/.test(e)&&!(0,i.isDynamicRoute)(e)?"/index"+e:"/"===e?"/index":(0,r.ensureLeadingSlash)(e);{let{posix:e}=n(15153),r=e.normalize(t);if(r!==t)throw new o.NormalizeError("Requested and resolved page mismatch: "+t+" "+r)}return t}},44673:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let r=n(16794),i=r._(n(2784)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},37832:function(){},276:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Mono_355ef5', '__IBM_Plex_Mono_Fallback_355ef5'"},className:"__className_355ef5",variable:"__variable_355ef5"}},35957:function(e){e.exports={style:{fontFamily:"'__IBM_Plex_Sans_829fdc', '__IBM_Plex_Sans_Fallback_829fdc'"},className:"__className_829fdc",variable:"__variable_829fdc"}},15153:function(e){!function(){"use strict";var t={114:function(e){function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var r={resolve:function(){for(var e,r,i="",o=!1,a=arguments.length-1;a>=-1&&!o;a--)a>=0?r=arguments[a]:(void 0===e&&(e=""),r=e),t(r),0!==r.length&&(i=r+"/"+i,o=47===r.charCodeAt(0));return(i=n(i,!o),o)?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return(0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r)?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n||(e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;iu){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else a>u&&(47===e.charCodeAt(i+d)?c=d:0===d&&(c=0));break}var f=e.charCodeAt(i+d);if(f!==n.charCodeAt(s+d))break;47===f&&(c=d)}var h="";for(d=i+c+1;d<=o;++d)(d===o||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return -1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){i=r+1;break}}else -1===l&&(a=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(o=r):(s=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else -1===o&&(a=!1,o=r+1);return -1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47===l){if(!o){r=s+1;break}continue}-1===i&&(o=!1,i=s+1),46===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return -1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){var t,n;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+n:t+"/"+n:n},parse:function(e){t(e);var n,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var a=-1,s=0,l=-1,u=!0,c=e.length-1,d=0;c>=n;--c){if(47===(i=e.charCodeAt(c))){if(!u){s=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===i?-1===a?a=c:1!==d&&(d=1):-1!==a&&(d=-1)}return -1===a||-1===l||0===d||1===d&&a===l-1&&a===s+1?-1!==l&&(0===s&&o?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(s,l)):(0===s&&o?(r.name=e.slice(1,a),r.base=e.slice(1,l)):(r.name=e.slice(s,a),r.base=e.slice(s,l)),r.ext=e.slice(a,l)),s>0?r.dir=e.slice(0,s-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(114);e.exports=i}()},16549:function(e,t){"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return i}});let n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],r=(e,t)=>{let n=e;return"string"==typeof t?n=e.toLocaleString(t):!0===t&&(n=e.toLocaleString()),n};function i(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);if((t=Object.assign({},t)).signed&&0===e)return" 0 B";let i=e<0,o=i?"-":t.signed?"+":"";if(i&&(e=-e),e<1){let n=r(e,t.locale);return o+n+" B"}let a=Math.min(Math.floor(Math.log10(e)/3),n.length-1);e=Number((e/Math.pow(1e3,a)).toPrecision(3));let s=r(e,t.locale),l=n[a];return o+s+" "+l}},95383:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getPageFiles",{enumerable:!0,get:function(){return o}});let r=n(7005),i=n(72190);function o(e,t){let n=(0,r.denormalizePagePath)((0,i.normalizePagePath)(t));return e.pages[n]||(console.warn(`Could not find files for ${n} in .next/build-manifest.json`),[])}},82809:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ESCAPE_REGEX:function(){return r},htmlEscapeJsonString:function(){return i}});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},r=/[&><\u2028\u2029]/g;function i(e){return e.replace(r,e=>n[e])}},79505:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isBlockedPage:function(){return i},cleanAmpPath:function(){return o},debounce:function(){return a}});let r=n(13150);function i(e){return r.BLOCKED_PAGES.includes(e)}function o(e){return e.match(/\?amp=(y|yes|true|1)/)&&(e=e.replace(/\?amp=(y|yes|true|1)&?/,"?")),e.match(/&=(y|yes|true|1)/)&&(e=e.replace(/&=(y|yes|true|1)/,"")),e=e.replace(/\?$/,"")}function a(e,t,n=1/0){let r,i,o;let a=0,s=0;function l(){let u=Date.now(),c=s+t-u;c<=0||a+n>=u?(r=void 0,e.apply(o,i)):r=setTimeout(l,c)}return function(...e){i=e,o=this,s=Date.now(),void 0===r&&(a=s,r=setTimeout(l,t))}}},331:function(e,t,n){n(31256)},25237:function(e,t,n){e.exports=n(22698)},97729:function(e,t,n){e.exports=n(37412)},96577:function(e,t,n){e.exports=n(81963)},39097:function(e,t,n){e.exports=n(13814)},82876:function(e,t,n){e.exports=n(55046)},5632:function(e,t,n){e.exports=n(60222)},24470:function(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},34406:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,i=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),u=new t(512);function c(e){return s.get(e)||s.set(e,d(e).map(function(e){return e.replace(a,"$2")}))}function d(e){return e.match(n)||[""]}function f(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:d,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,function(e,n){for(var r=0,i=t.length,o=e;r>>7-e%8&1)==1},put:function(e,t){for(var n=0;n>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},81432:function(e){e.exports={L:1,M:0,Q:3,H:2}},84695:function(e,t,n){var r=n(35856);function i(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=l.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var l=0;l<2;l++)if(null==this.modules[r][s-l]){var u=!1;o>>i&1)==1),a.getMask(t,r,s-l)&&(u=!u),this.modules[r][s-l]=u,-1==--i&&(o++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},l.PAD0=236,l.PAD1=17,l.createData=function(e,t,n){for(var r=i.getRSBlocks(e,t),s=new o,u=0;u8*d)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*d+")");for(s.getLengthInBits()+4<=8*d&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*d)&&(s.put(l.PAD0,8),!(s.getLengthInBits()>=8*d));)s.put(l.PAD1,8);return l.createBytes(s,r)},l.createBytes=function(e,t){for(var n=0,r=0,i=0,o=Array(t.length),l=Array(t.length),u=0;u=0?p.get(m):0}}for(var v=0,f=0;f=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<=0;)t^=s.G15<=0;)t^=s.G18<>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a.PATTERN000:return(t+n)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return n%3==0;case a.PATTERN011:return(t+n)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case a.PATTERN101:return t*n%2+t*n%3==0;case a.PATTERN110:return(t*n%2+t*n%3)%2==0;case a.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new i([1],0),n=0;n5&&(n+=3+o-5)}for(var r=0;r0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var u=[".DS_Store","Thumbs.db"];function c(e){return"object"==typeof e&&null!==e}function d(e){return e.filter(function(e){return -1===u.indexOf(e.name)})}function f(e){if(null===e)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);nn)return[!1,_(n)];if(e.sizen)return[!1,_(n)]}return[!0,null]}function A(e){return null!=e}function P(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function N(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function R(e){e.preventDefault()}function D(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Y=(0,r.forwardRef)(function(e,t){var n=e.children,i=J(K(e,z)),o=i.open,a=K(i,V);return(0,r.useImperativeHandle)(t,function(){return{open:o}},[o]),r.createElement(r.Fragment,null,n(q(q({},a),{},{open:o})))});Y.displayName="Dropzone";var G={disabled:!1,getFilesFromEvent:function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){return c(e)&&c(e.dataTransfer)?[2,function(e,t){return(0,a.mG)(this,void 0,void 0,function(){var n;return(0,a.Jh)(this,function(r){switch(r.label){case 0:if(!e.items)return[3,2];if(n=f(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(h))];case 1:return[2,d(function e(t){return t.reduce(function(t,n){return(0,a.ev)((0,a.ev)([],(0,a.CR)(t),!1),(0,a.CR)(Array.isArray(n)?e(n):[n]),!1)},[])}(r.sent()))];case 2:return[2,d(f(e.files).map(function(e){return l(e)}))]}})})}(e.dataTransfer,e.type)]:c(e)&&c(e.target)?[2,f(e.target.files).map(function(e){return l(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return e.getFile()}))];case 1:return[2,t.sent().map(function(e){return l(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Y.defaultProps=G,Y.propTypes={children:o().func,accept:o().objectOf(o().arrayOf(o().string)),multiple:o().bool,preventDropOnDocument:o().bool,noClick:o().bool,noKeyboard:o().bool,noDrag:o().bool,noDragEventsBubbling:o().bool,minSize:o().number,maxSize:o().number,maxFiles:o().number,disabled:o().bool,getFilesFromEvent:o().func,onFileDialogCancel:o().func,onFileDialogOpen:o().func,useFsAccessApi:o().bool,autoFocus:o().bool,onDragEnter:o().func,onDragLeave:o().func,onDragOver:o().func,onDrop:o().func,onDropAccepted:o().func,onDropRejected:o().func,onError:o().func,validator:o().func};var X={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=q(q({},G),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,p=t.onDropAccepted,m=t.onDropRejected,v=t.onFileDialogCancel,g=t.onFileDialogOpen,x=t.useFsAccessApi,E=t.autoFocus,k=t.preventDropOnDocument,S=t.noClick,_=t.noKeyboard,C=t.noDrag,z=t.noDragEventsBubbling,V=t.onError,W=t.validator,Y=(0,r.useMemo)(function(){return function(e){if(A(e))return Object.entries(e).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return[].concat(y(e),[r],y(i))},[]).filter(function(e){return L(e)||F(e)}).join(",")}(n)},[n]),J=(0,r.useMemo)(function(){return A(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=j(e,2),n=t[0],r=t[1],i=!0;return L(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every(F)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(e,t){var n=j(t,2),r=n[0],i=n[1];return b(b({},e),{},w({},r,i))},{})}]:n},[n]),et=(0,r.useMemo)(function(){return"function"==typeof g?g:ee},[g]),en=(0,r.useMemo)(function(){return"function"==typeof v?v:ee},[v]),er=(0,r.useRef)(null),ei=(0,r.useRef)(null),eo=B((0,r.useReducer)(Q,X),2),ea=eo[0],es=eo[1],el=ea.isFocused,eu=ea.isFileDialogActive,ec=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&x&&"showOpenFilePicker"in window),ed=function(){!ec.current&&eu&&setTimeout(function(){ei.current&&!ei.current.files.length&&(es({type:"closeDialog"}),en())},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",ed,!1),function(){window.removeEventListener("focus",ed,!1)}},[ei,eu,en,ec]);var ef=(0,r.useRef)([]),eh=function(e){er.current&&er.current.contains(e.target)||(e.preventDefault(),ef.current=[])};(0,r.useEffect)(function(){return k&&(document.addEventListener("dragover",R,!1),document.addEventListener("drop",eh,!1)),function(){k&&(document.removeEventListener("dragover",R),document.removeEventListener("drop",eh))}},[er,k]),(0,r.useEffect)(function(){return!i&&E&&er.current&&er.current.focus(),function(){}},[er,E,i]);var ep=(0,r.useCallback)(function(e){V?V(e):console.error(e)},[V]),em=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eO(e),ef.current=[].concat(function(e){if(Array.isArray(e))return U(e)}(t=ef.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||H(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),N(e)&&Promise.resolve(o(e)).then(function(t){if(!P(e)||z){var n,r,i,o,d,f,h,p,m=t.length,v=m>0&&(r=(n={files:t,accept:Y,minSize:s,maxSize:a,multiple:l,maxFiles:u,validator:W}).files,i=n.accept,o=n.minSize,d=n.maxSize,f=n.multiple,h=n.maxFiles,p=n.validator,(!!f||!(r.length>1))&&(!f||!(h>=1)||!(r.length>h))&&r.every(function(e){var t=j(M(e,i),1)[0],n=j(T(e,o,d),1)[0],r=p?p(e):null;return t&&n&&!r}));es({isDragAccept:v,isDragReject:m>0&&!v,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return ep(e)})},[o,c,ep,z,Y,s,a,l,u,W]),ev=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=N(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,z]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e);var t=ef.current.filter(function(e){return er.current&&er.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ef.current=t,!(t.length>0)&&(es({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),N(e)&&d&&d(e))},[er,d,z]),ey=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=B(M(e,Y),2),i=t[0],o=t[1],l=B(T(e,s,a),2),u=l[0],c=l[1],d=W?W(e):null;if(i&&u&&!d)n.push(e);else{var f=[o,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!l&&n.length>1||l&&u>=1&&n.length>u)&&(n.forEach(function(e){r.push({file:e,errors:[O]})}),n.splice(0)),es({acceptedFiles:n,fileRejections:r,type:"setFiles"}),h&&h(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&p&&p(n,t)},[es,l,Y,s,a,u,h,p,m,W]),ex=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eO(e),ef.current=[],N(e)&&Promise.resolve(o(e)).then(function(t){(!P(e)||z)&&ey(t,e)}).catch(function(e){return ep(e)}),es({type:"reset"})},[o,ey,ep,z]),eb=(0,r.useCallback)(function(){if(ec.current){es({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:l,types:J}).then(function(e){return o(e)}).then(function(e){ey(e,null),es({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(en(e),es({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(ec.current=!1,ei.current?(ei.current.value=null,ei.current.click()):ep(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ep(e)});return}ei.current&&(es({type:"openDialog"}),et(),ei.current.value=null,ei.current.click())},[es,et,en,x,ey,ep,J,l]),ew=(0,r.useCallback)(function(e){er.current&&er.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),eb())},[er,eb]),ej=(0,r.useCallback)(function(){es({type:"focus"})},[]),eE=(0,r.useCallback)(function(){es({type:"blur"})},[]),ek=(0,r.useCallback)(function(){S||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(eb,0):eb())},[S,eb]),eS=function(e){return i?null:e},e_=function(e){return _?null:eS(e)},eC=function(e){return C?null:eS(e)},eO=function(e){z&&e.stopPropagation()},eM=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,o=e.onKeyDown,a=e.onFocus,s=e.onBlur,l=e.onClick,u=e.onDragEnter,c=e.onDragOver,d=e.onDragLeave,f=e.onDrop,h=K(e,I);return q(q($({onKeyDown:e_(D(o,ew)),onFocus:e_(D(a,ej)),onBlur:e_(D(s,eE)),onClick:eS(D(l,ek)),onDragEnter:eC(D(u,em)),onDragOver:eC(D(c,ev)),onDragLeave:eC(D(d,eg)),onDrop:eC(D(f,ex)),role:"string"==typeof r&&""!==r?r:"presentation"},n,er),i||_?{}:{tabIndex:0}),h)}},[er,ew,ej,eE,ek,em,ev,eg,ex,_,C,i]),eT=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eA=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,i=e.onClick,o=K(e,Z);return q(q({},$({accept:Y,multiple:l,type:"file",style:{display:"none"},onChange:eS(D(r,ex)),onClick:eS(D(i,eT)),tabIndex:-1},n,ei)),o)}},[ei,n,l,ex,i]);return q(q({},ea),{},{isFocused:el&&!i,getRootProps:eM,getInputProps:eA,rootRef:er,inputRef:ei,open:eS(eb)})}function Q(e,t){switch(t.type){case"focus":return q(q({},e),{},{isFocused:!0});case"blur":return q(q({},e),{},{isFocused:!1});case"openDialog":return q(q({},X),{},{isFileDialogActive:!0});case"closeDialog":return q(q({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return q(q({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return q(q({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return q({},X);default:return e}}function ee(){}},78435:function(e){"use strict";var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,i="undefined"!=typeof Element;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c=t(o),d=t(a);if(c&&d){if((l=o.length)!=a.length)return!1;for(s=l;0!=s--;)if(!e(o[s],a[s]))return!1;return!0}if(c!=d)return!1;var f=o instanceof Date,h=a instanceof Date;if(f!=h)return!1;if(f&&h)return o.getTime()==a.getTime();var p=o instanceof RegExp,m=a instanceof RegExp;if(p!=m)return!1;if(p&&m)return o.toString()==a.toString();var v=n(o);if((l=v.length)!==n(a).length)return!1;for(s=l;0!=s--;)if(!r.call(a,v[s]))return!1;if(i&&o instanceof Element&&a instanceof Element)return o===a;for(s=l;0!=s--;)if(("_owner"!==(u=v[s])||!o.$$typeof)&&!e(o[u],a[u]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},72660:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(13980)),i=o(n(2784));function o(e){return e&&e.__esModule?e:{default:e}}var a={d:r.default.string.isRequired,fill:r.default.string.isRequired,transformX:r.default.number.isRequired,transformY:r.default.number.isRequired},s=function(e){var t=e.d,n=e.fill,r=e.transformX,o=e.transformY;return i.default.createElement("path",{d:t,fill:n,transform:"matrix("+[1,0,0,1,r,o]+")"})};s.propTypes=a,s.defaultProps={},t.default=s},76672:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","size","title","xmlns"]);return o.default.createElement("svg",r({},s,{height:n,width:n,xmlns:a}),i?o.default.createElement("title",null,i):null,t)};l.propTypes=s,l.defaultProps={title:void 0,xmlns:"http://www.w3.org/2000/svg"},t.default=l},38001:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["bgColor","fgColor","level","size","value"]),h=new i.default(-1,o.default[a]);h.addData(d),h.make();var p=h.modules,m=s/p.length;return l.default.createElement(c.default,r({},f,{size:s}),p.map(function(e,r){return e.map(function(e,i){var o=Math.round(i*m),a=Math.round(r*m),s=Math.round((i+1)*m)-o,c=Math.round((r+1)*m)-a;return l.default.createElement(u.default,{key:"rectangle-"+r+"-"+i,d:"M 0 0 L "+s+" 0 L "+s+" "+c+" L 0 "+c+" Z",fill:e?n:t,transformX:o,transformY:a})})}))};h.propTypes=f,h.defaultProps={bgColor:"#FFFFFF",fgColor:"#000000",level:"L",size:256},t.Z=(0,s.memo)(h)},70506:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r,i,o,a,s,l,u=n(22970),c=n(2784),d="right-scroll-bar-position",f="width-before-scroll-bar",h=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],a=!1,s={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,u.pi)({async:!0,ssr:!1},r),s),p=function(){},m=c.forwardRef(function(e,t){var n,r,i,o=c.useRef(null),a=c.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),s=a[0],l=a[1],d=e.forwardProps,f=e.children,m=e.className,v=e.removeScrollBar,g=e.enabled,y=e.shards,x=e.sideCar,b=e.noIsolation,w=e.inert,j=e.allowPinchZoom,E=e.as,k=void 0===E?"div":E,S=(0,u._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=(n=[o,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(i=(0,c.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,i.facade),C=(0,u.pi)((0,u.pi)({},S),s);return c.createElement(c.Fragment,null,g&&c.createElement(x,{sideCar:h,removeScrollBar:v,shards:y,noIsolation:b,inert:w,setCallbacks:l,allowPinchZoom:!!j,lockRef:o}),d?c.cloneElement(c.Children.only(f),(0,u.pi)((0,u.pi)({},C),{ref:_})):c.createElement(k,(0,u.pi)({},C,{className:m,ref:_}),f))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:f,zeroRight:d};var v=function(e){var t=e.sideCar,n=(0,u._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return c.createElement(r,(0,u.pi)({},n))};v.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=g();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},x=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},b={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},j=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[w(n),w(r),w(i)]},E=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return b;var t=j(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},k=x(),S=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(f," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n right: 0 ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},_=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,o=c.useMemo(function(){return E(i)},[i]);return c.createElement(k,{styles:S(o,!t,i,n?"":"!important")})},C=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return C=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){C=!1}var M=!!C&&{passive:!1},T=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},A=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},P=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),N(e,n)){var r=R(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},N=function(e,t){return"v"===e?T(t):A(t)},R=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},D=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{var p=R(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&N(e,l)&&(f+=v,h+=m),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===f||!i&&s>f)?c=!0:!d&&(i&&0===h||!i&&-s>h)&&(c=!0),c},L=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F=function(e){return[e.deltaX,e.deltaY]},z=function(e){return e&&"current"in e?e.current:e},V=0,I=[],Z=(h.useMedium(function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),i=c.useState(V++)[0],o=c.useState(function(){return x()})[0],a=c.useRef(e);c.useEffect(function(){a.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,u.ev)([e.lockRef.current],(e.shards||[]).map(z),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=L(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=P(d,c);if(!f)return!0;if(f?i=d:(i="v"===d?"h":"v",f=P(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var h=r.current||i;return D(h,t,e,"h"===h?l:u,!0)},[]),l=c.useCallback(function(e){if(I.length&&I[I.length-1]===o){var n="deltaY"in e?F(e):L(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(z).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.preventDefault()}}},[]),d=c.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),f=c.useCallback(function(e){n.current=L(e),r.current=void 0},[]),h=c.useCallback(function(t){d(t.type,F(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){d(t.type,L(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return I.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,M),document.addEventListener("touchmove",l,M),document.addEventListener("touchstart",f,M),function(){I=I.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,M),document.removeEventListener("touchmove",l,M),document.removeEventListener("touchstart",f,M)}},[]);var m=e.removeScrollBar,v=e.inert;return c.createElement(c.Fragment,null,v?c.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?c.createElement(_,{gapMode:"margin"}):null)}),v),B=c.forwardRef(function(e,t){return c.createElement(m,(0,u.pi)({},e,{ref:t,sideCar:Z}))});B.classNames=m.classNames;var H=B},32718:function(e,t,n){var r,i=n(58085),o=n(41964),a=n(53207),s=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){return r=0,t=Math.pow(10,void 0===t?5:t),o(e=e.replace(/\n+/g," "),/((?:\-[a-z]+\-)?calc)\(/,function e(n,o,l){if(r++>100)throw r=0,Error("Call stack overflow for "+l);if(""===n)throw Error(o+"(): '"+l+"' must contain a non-whitespace string");var u,c=function(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(n=function(t,n){t=t.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var r,o="",a=t;r=s.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var l=i("(",")",a.substring([0].index));if(""===l.body)throw Error("'"+t+"' must contain a non-whitespace string");var u=e(l.body,"",n);o+=l.pre+u,a=l.post}return o+a}(n,l));if(c.length>1||n.indexOf("var(")>-1)return o+"("+n+")";var d=c[0]||"";"%"===d&&(n=n.replace(/\b[0-9\.]+%/g,function(e){return .01*parseFloat(e.slice(0,-1))}));var f=n.replace(RegExp(d,"gi"),"");try{u=a.eval(f)}catch(e){return o+"("+n+")"}return"%"===d&&(u*=100),(o.length||"%"===d)&&(u=Math.round(u*t)/t),u+=d})}},58085:function(e){function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},41964:function(e,t,n){var r=n(82294);e.exports=function e(t,n,i){return(function(e,t){var n=[],i="string"==typeof t?RegExp("\\b("+t+")\\("):t;do{var o=i.exec(e);if(!o)break;if(void 0===o[1])throw Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=o[1],s=o.index,l=r("(",")",e.substring(s));if(!l||l.start!==o[0].length-1)throw SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:l,functionIdentifier:a}),e=l.post}while(i.test(e));return n})(t,n).reduce(function(r,o){var a,s;return r.replace(o.functionIdentifier+"("+o.matches.body+")",(a=o.matches.body,s=o.functionIdentifier,i(e(a,n,i),s,t)))},t)}},6692:function(e,t,n){let r=n(83128);e.exports=(r.__esModule?r:{default:r}).default},83128:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:()=>a});let i=(r=n(37540))&&r.__esModule?r:{default:r};function o({version:e,from:t,to:n}){i.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${n}\`.`,"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return o({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return o({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return o({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return o({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return o({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},37540:function(e,t,n){"use strict";var r,i=n(34406);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{dim:()=>l,default:()=>u});let o=(r=n(24470))&&r.__esModule?r:{default:r},a=new Set;function s(e,t,n){(void 0===i||!i.env.JEST_WORKER_ID)&&(n&&a.has(n)||(n&&a.add(n),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function l(e){return o.default.dim(e)}let u={info(e,t){s(o.default.bold(o.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){s(o.default.bold(o.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){s(o.default.bold(o.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},95159:function(e){function t(e,t){var n=e.length,r=Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n{},{isPersistent:!0,removeItem:()=>{}}];let l=null==t?void 0:t.serializer;return function(e,t,n=!0,l=function(e){return"undefined"===e?void 0:JSON.parse(e)},u=JSON.stringify){i.has(e)||void 0===t||null!==s(()=>localStorage.getItem(e))||s(()=>localStorage.setItem(e,u(t)));let c=(0,r.useRef)({item:null,parsed:t}),d=(0,r.useSyncExternalStore)((0,r.useCallback)(t=>{let n=n=>{e===n&&t()};return o.add(n),()=>{o.delete(n)}},[e]),()=>{var n;let r=null!==(n=s(()=>localStorage.getItem(e)))&&void 0!==n?n:null;if(i.has(e))c.current={item:r,parsed:i.get(e)};else if(r!==c.current.item){let e;try{e=null===r?t:l(r)}catch(n){e=t}c.current={item:r,parsed:e}}return c.current.parsed},()=>t),f=(0,r.useCallback)(t=>{let n=t instanceof Function?t(c.current.parsed):t;try{localStorage.setItem(e,u(n)),i.delete(e)}catch(t){i.set(e,n)}a(e)},[e,u]);return(0,r.useEffect)(()=>{if(!n)return;let t=t=>{t.storageArea===s(()=>localStorage)&&t.key===e&&a(e)};return window.addEventListener("storage",t),()=>window.removeEventListener("storage",t)},[e,n]),(0,r.useMemo)(()=>[d,f,{isPersistent:d===t||!i.has(e),removeItem(){s(()=>localStorage.removeItem(e)),i.delete(e),a(e)}}],[e,f,d,t])}(e,n,null==t?void 0:t.storageSync,null==l?void 0:l.parse,null==l?void 0:l.stringify)}},20452:function(e,t,n){"use strict";/** * @license React * use-sync-external-store-shim.production.min.js * @@ -84,7 +84,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r=n(2784),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},43100:function(e,t,n){"use strict";e.exports=n(20452)},24511:function(e,t,n){"use strict";n.d(t,{Rx:function(){return K},Ry:function(){return em},Z_:function(){return W}});try{v=Map}catch(e){}try{g=Set}catch(e){}function r(e){return function e(t,n,i){if(!t||"object"!=typeof t||"function"==typeof t)return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(r);if(v&&t instanceof v)return new Map(Array.from(t.entries()));if(g&&t instanceof g)return new Set(Array.from(t.values()));if(t instanceof Object){n.push(t);var o=Object.create(t);for(var a in i.push(o),t){var s=n.findIndex(function(e){return e===t[a]});o[a]=s>-1?i[s]:e(t[a],n,i)}return o}return t}(e,[],[])}let i=Object.prototype.toString,o=Error.prototype.toString,a=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",l=/^Symbol\((.*)\)(.*)$/;function u(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let n=typeof e;if("number"===n)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return s.call(e).replace(l,"Symbol($1)");let r=i.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+o.call(e)+"]":"RegExp"===r?a.call(e):null}function c(e,t){let n=u(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=u(this[e],t);return null!==r?r:n},2)}let d={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{let i=null!=r&&r!==n,o=`${e} must be a \`${t}\` type, but the final value was: \`${c(n,!0)}\``+(i?` (cast from the value \`${c(r,!0)}\`).`:".");return null===n&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},f={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},h={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},p={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},m={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:d,string:f,number:h,date:p,object:m,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"}});var v,g,y=n(93352),b=n.n(y),x=e=>e&&e.__isYupSchema__,w=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!b()(t,"is"))throw TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,o="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),a=o(...e)?r:i;if(a)return"function"==typeof a?a(n):n.concat(a.resolve(t))}}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!x(r))throw TypeError("conditions must return a schema object");return r.resolve(t)}};function j(e){return null==e?[]:[].concat(e)}function E(){return(E=Object.assign||function(e){for(var t=1;tc(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],j(e).forEach(e=>{S.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,S)}}let _=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function C(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:l}=e,u=_(t),c=r.length,d=[];if(a=a||[],!c)return a.length?u(new S(a,o,l)):u(null,o);for(let e=0;e=0||(i[n]=e[n]);return i}(t,["value","path","label","options","originalValue","sync"]),{name:d,test:f,params:h,message:p}=e,{parent:m,context:v}=s;function g(e){return P.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=M()(N({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),n=new S(S.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let b=N({path:o,parent:m,type:d,createError:y,resolve:g,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(b,i,b)).then(e=>{S.isError(e)?n(e):e?n(null,e):n(y())}).catch(n)}catch(e){n(e)}return}try{var x;if(r=f.call(b,i,b),"function"==typeof(null==(x=r)?void 0:x.then))throw Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){n(e);return}S.isError(r)?n(r):r?n(null,r):n(y())}return t.OPTIONS=e,t}P.prototype.__isYupRef=!0;let D=e=>e.substr(0,e.length-1).substr(1);class L{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let e=[];for(let t of this.list)e.push(t);for(let[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,n)=>t.concat(P.isRef(n)?e(n):n),[])}add(e){P.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){P.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new L;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let n=this.clone();return e.list.forEach(e=>n.add(e)),e.refs.forEach(e=>n.add(e)),t.list.forEach(e=>n.delete(e)),t.refs.forEach(e=>n.delete(e)),n}}function F(){return(F=Object.assign||function(e){for(var t=1;t{this.typeError(d.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=F({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=F({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=r(F({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),n=F({},this.spec,t.spec);return t.spec=n,t._typeError||(t._typeError=this._typeError),t._whitelistError||(t._whitelistError=this._whitelistError),t._blacklistError||(t._blacklistError=this._blacklistError),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return!!this.spec.nullable&&null===e||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;(t=t.clone()).conditions=[],t=(t=n.reduce((t,n)=>n.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let n=this.resolve(F({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=c(e),o=c(r);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". + */var r=n(2784),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})},[e,n,t]),a(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},43100:function(e,t,n){"use strict";e.exports=n(20452)},24511:function(e,t,n){"use strict";n.d(t,{Rx:function(){return K},Ry:function(){return em},Z_:function(){return W}});try{v=Map}catch(e){}try{g=Set}catch(e){}function r(e){return function e(t,n,i){if(!t||"object"!=typeof t||"function"==typeof t)return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(r);if(v&&t instanceof v)return new Map(Array.from(t.entries()));if(g&&t instanceof g)return new Set(Array.from(t.values()));if(t instanceof Object){n.push(t);var o=Object.create(t);for(var a in i.push(o),t){var s=n.findIndex(function(e){return e===t[a]});o[a]=s>-1?i[s]:e(t[a],n,i)}return o}return t}(e,[],[])}let i=Object.prototype.toString,o=Error.prototype.toString,a=RegExp.prototype.toString,s="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",l=/^Symbol\((.*)\)(.*)$/;function u(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let n=typeof e;if("number"===n)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return s.call(e).replace(l,"Symbol($1)");let r=i.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+o.call(e)+"]":"RegExp"===r?a.call(e):null}function c(e,t){let n=u(e,t);return null!==n?n:JSON.stringify(e,function(e,n){let r=u(this[e],t);return null!==r?r:n},2)}let d={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{let i=null!=r&&r!==n,o=`${e} must be a \`${t}\` type, but the final value was: \`${c(n,!0)}\``+(i?` (cast from the value \`${c(r,!0)}\`).`:".");return null===n&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},f={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},h={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},p={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},m={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:d,string:f,number:h,date:p,object:m,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"}});var v,g,y=n(93352),x=n.n(y),b=e=>e&&e.__isYupSchema__,w=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!x()(t,"is"))throw TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,o="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),a=o(...e)?r:i;if(a)return"function"==typeof a?a(n):n.concat(a.resolve(t))}}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!b(r))throw TypeError("conditions must return a schema object");return r.resolve(t)}};function j(e){return null==e?[]:[].concat(e)}function E(){return(E=Object.assign||function(e){for(var t=1;tc(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],j(e).forEach(e=>{S.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,S)}}let _=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function C(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:l}=e,u=_(t),c=r.length,d=[];if(a=a||[],!c)return a.length?u(new S(a,o,l)):u(null,o);for(let e=0;e=0||(i[n]=e[n]);return i}(t,["value","path","label","options","originalValue","sync"]),{name:d,test:f,params:h,message:p}=e,{parent:m,context:v}=s;function g(e){return P.isRef(e)?e.getValue(i,m,v):e}function y(e={}){let t=M()(N({value:i,originalValue:l,label:a,path:e.path||o},h,e.params),g),n=new S(S.formatError(e.message||p,t),i,t.path,e.type||d);return n.params=t,n}let x=N({path:o,parent:m,type:d,createError:y,resolve:g,options:s,originalValue:l},c);if(!u){try{Promise.resolve(f.call(x,i,x)).then(e=>{S.isError(e)?n(e):e?n(null,e):n(y())}).catch(n)}catch(e){n(e)}return}try{var b;if(r=f.call(x,i,x),"function"==typeof(null==(b=r)?void 0:b.then))throw Error(`Validation test of type: "${x.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){n(e);return}S.isError(r)?n(r):r?n(null,r):n(y())}return t.OPTIONS=e,t}P.prototype.__isYupRef=!0;let D=e=>e.substr(0,e.length-1).substr(1);class L{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let e=[];for(let t of this.list)e.push(t);for(let[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,n)=>t.concat(P.isRef(n)?e(n):n),[])}add(e){P.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){P.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new L;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let n=this.clone();return e.list.forEach(e=>n.add(e)),e.refs.forEach(e=>n.add(e)),t.list.forEach(e=>n.delete(e)),t.refs.forEach(e=>n.delete(e)),n}}function F(){return(F=Object.assign||function(e){for(var t=1;t{this.typeError(d.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=F({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=F({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=r(F({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),n=F({},this.spec,t.spec);return t.spec=n,t._typeError||(t._typeError=this._typeError),t._whitelistError||(t._whitelistError=this._whitelistError),t._blacklistError||(t._blacklistError=this._blacklistError),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return!!this.spec.nullable&&null===e||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;(t=t.clone()).conditions=[],t=(t=n.reduce((t,n)=>n.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let n=this.resolve(F({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=c(e),o=c(r);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${n._type}". attempted value: ${i} -`+(o!==i?`result of cast: ${o}`:""))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((t,n)=>n.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,F({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),C({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);C({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(F({},t,{value:e}));return"function"==typeof n?r._validate(e,t,n):new Promise((n,i)=>r._validate(e,t,(e,t)=>{e?i(e):n(t)}))}validateSync(e,t){let n;return this.resolve(F({},t,{value:e}))._validate(e,F({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(S.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(S.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):r(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=d.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=d.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=d.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let n=this.clone(),r=R(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==r.OPTIONS.test),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=j(e).map(e=>new P(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new w(r,t)),n}typeError(e){let t=this.clone();return t._typeError=R({message:e,name:"typeError",test(e){return!!(void 0===e||this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=d.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=R({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e,t=d.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=R({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:n}=e.spec,r={meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,n)=>n.findIndex(t=>t.name===e.name)===t)};return r}}for(let e of(z.prototype.__isYupSchema__=!0,["validate","validateSync"]))z.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:o,schema:a}=function(e,t,n,r=n){let i,o,a;return t?((0,T.forEach)(t,(s,l,u)=>{let c=l?D(s):s;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=u?parseInt(c,10):0;if(n&&r>=n.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[r],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return a[e](i&&i[o],F({},r,{parent:i,path:t}))};for(let e of["equals","is"])z.prototype[e]=z.prototype.oneOf;for(let e of["not","nope"])z.prototype[e]=z.prototype.notOneOf;z.prototype.optional=z.prototype.notRequired,z.prototype;var V=e=>null==e;let I=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,Z=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,B=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,H=e=>V(e)||e===e.trim(),U=({}).toString();function W(){return new q}class q extends z{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;let t=null!=e&&e.toString?e.toString():e;return t===U?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=f.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return V(t)||t.length===this.resolve(e)}})}min(e,t=f.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return V(t)||t.length>=this.resolve(e)}})}max(e,t=f.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return V(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:n,name:r}=t:n=t),this.test({name:r||"matches",message:n||f.matches,params:{regex:e},test:t=>V(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(I,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(Z,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(B,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=f.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:H})}lowercase(e=f.lowercase){return this.transform(e=>V(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>V(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>V(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>V(e)||e===e.toUpperCase()})}}W.prototype=q.prototype;let $=e=>e!=+e;function K(){return new Y}class Y extends z{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(e){let t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!$(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return V(t)||t>=this.resolve(e)}})}max(e,t=h.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return V(t)||t<=this.resolve(e)}})}lessThan(e,t=h.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return V(t)||tthis.resolve(e)}})}positive(e=h.positive){return this.moreThan(0,e)}negative(e=h.negative){return this.lessThan(0,e)}integer(e=h.integer){return this.test({name:"integer",message:e,test:e=>V(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>V(e)?e:0|e)}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(t=>V(t)?t:Math[e](t))}}K.prototype=Y.prototype;var G=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let X=new Date(""),J=e=>"[object Date]"===Object.prototype.toString.call(e);function Q(){return new ee}class ee extends z{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=G.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,(void 0===n[8]||""===n[8])&&(void 0===n[9]||""===n[9])?t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7]):("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?X:new Date(e)})})}_typeCheck(e){return J(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(P.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=p.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return V(e)||e>=this.resolve(n)}})}max(e,t=p.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return V(e)||e<=this.resolve(n)}})}}ee.INVALID_DATE=X,Q.prototype=ee.prototype,Q.INVALID_DATE=X;var et=n(57370),en=n.n(et),er=n(96009),ei=n.n(er),eo=n(19950),ea=n.n(eo),es=n(95159),el=n.n(es);function eu(e,t){let n=1/0;return e.some((e,r)=>{var i;if((null==(i=t.path)?void 0:i.indexOf(e))!==-1)return n=r,!0}),n}function ec(e){return(t,n)=>eu(e,t)-eu(e,n)}function ed(){return(ed=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),eh=ec([]);class ep extends z{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eh,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return ef(e)||"function"==typeof e}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),s={},l=ed({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let n=i[e],a=b()(r,e);if(n){let i;let o=r[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(n=n.resolve({value:o,context:t.context,parent:s}))?n.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!S.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!ef(u)){n(r[0]||null,u);return}a=a||u,C({sync:i,tests:this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];if(s&&"validate"in s){s.validate(u[e],ed({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[e]}),r);return}r(null)}),value:u,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)})}clone(e){let t=super.clone(e);return t.fields=ed({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){let r=n[e];void 0===r?n[e]=t:r instanceof z&&t instanceof z&&(n[e]=t.concat(r))}return t.withMutation(()=>t.shape(n,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let n=this.fields[t];e[t]="default"in n?n.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=ec(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,T.split)(e)[0];r.add(o),i.has(`${t}-${o}`)||n.push([t,o])}for(let t in e)if(b()(e,t)){let n=e[t];r.add(t),P.isRef(n)&&n.isSibling?o(n.path,t):x(n)&&"deps"in n&&n.deps.forEach(e=>o(e,t))}return el().array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){let t={};for(let n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),n=t.fields;for(let r of(t.fields={},e))delete n[r];return t.withMutation(()=>t.shape(n))}from(e,t,n){let r=(0,T.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return b()(i,e)&&(o=ed({},i),n||delete o[e],o[t]=r(i)),o})}noUnknown(e=!0,t=m.noUnknown){"string"==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let n;if(null==t)return!0;let r=(n=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===n.indexOf(e)));return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=m.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&ea()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(ei())}snakeCase(){return this.transformKeys(en())}constantCase(){return this.transformKeys(e=>en()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=M()(this.fields,e=>e.describe()),e}}function em(e){return new ep(e)}em.prototype=ep.prototype},44868:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>b,AnimatedArray:()=>O,AnimatedObject:()=>C,AnimatedString:()=>E,AnimatedValue:()=>w,createHost:()=>V,getAnimated:()=>v,getAnimatedType:()=>A,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>g}),e.exports=d(a({},"__esModule",{value:!0}),f);var h=n(6901),p=Symbol.for("Animated:node"),m=e=>!!e&&e[p]===e,v=e=>e&&e[p],g=(e,t)=>(0,h.defineHidden)(e,p,t),y=e=>e&&e[p]&&e[p].getPayload(),b=class{constructor(){g(this,this)}getPayload(){return this.payload||[]}},x=n(6901),w=class extends b{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,x.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new w(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return x.is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,x.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},j=n(6901),E=class extends w{constructor(e){super(0),this._string=null,this._toString=(0,j.createInterpolator)({output:[e,e]})}static create(e){return new E(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(j.is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=(0,j.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},k=n(6901),S=n(6901),_={dependencies:null},C=class extends b{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,S.eachProp)(this.source,(n,r)=>{m(n)?t[r]=n.getValue(e):(0,S.hasFluidValue)(n)?t[r]=(0,S.getFluidValue)(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,S.each)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,S.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){_.dependencies&&(0,S.hasFluidValue)(e)&&_.dependencies.add(e);let t=y(e);t&&(0,S.each)(t,e=>this.add(e))}},O=class extends C{constructor(e){super(e)}static create(e){return new O(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(M)),!0)}};function M(e){return((0,k.isAnimatedString)(e)?E:w).create(e)}var T=n(6901);function A(e){let t=v(e);return t?t.constructor:T.is.arr(e)?O:(0,T.isAnimatedString)(e)?E:w}var P=n(6901),N=(i=null!=(r=n(2784))?o(u(r)):{},d(r&&r.__esModule?i:a(i,"default",{value:r,enumerable:!0}),r)),R=n(2784),D=n(6901),L=(e,t)=>{let n=!D.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,R.forwardRef)((r,i)=>{var o;let a;let s=(0,R.useRef)(null),l=n&&(0,R.useCallback)(e=>{s.current=(i&&(D.is.fun(i)?i(e):i.current=e),e)},[i]),[u,c]=(o=r,a=new Set,_.dependencies=a,o.style&&(o={...o,style:t.createAnimatedStyle(o.style)}),o=new C(o),_.dependencies=null,[o,a]),d=(0,D.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new F(f,c),p=(0,R.useRef)();(0,D.useIsomorphicLayoutEffect)(()=>(p.current=h,(0,D.each)(c,e=>(0,D.addFluidObserver)(e,h)),()=>{p.current&&((0,D.each)(p.current.deps,e=>(0,D.removeFluidObserver)(e,p.current)),D.raf.cancel(p.current.update))})),(0,R.useEffect)(f,[]),(0,D.useOnce)(()=>()=>{let e=p.current;(0,D.each)(e.deps,t=>(0,D.removeFluidObserver)(t,e))});let m=t.getComponentProps(u.getValue());return N.createElement(e,{...m,ref:l})})},F=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&D.raf.write(this.update)}},z=Symbol.for("AnimatedComponent"),V=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new C(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=I(e)||"Anonymous";return(e=P.is.str(e)?o[e]||(o[e]=L(e,i)):e[z]||(e[z]=L(e,i))).displayName=`Animated(${t})`,e};return(0,P.eachProp)(e,(t,n)=>{P.is.arr(e)&&(n=I(t)),o[n]=o(t)}),{animated:o}},I=e=>P.is.str(e)?e:e&&P.is.str(e.displayName)?e.displayName:P.is.fun(e)&&e.name||null},22360:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(h,{BailSignal:()=>J,Controller:()=>ej,FrameValue:()=>ei,Globals:()=>tl.Globals,Interpolation:()=>tn,Spring:()=>e5,SpringContext:()=>eN,SpringRef:()=>eL,SpringValue:()=>ed,Trail:()=>e8,Transition:()=>e7,config:()=>F,createInterpolator:()=>tc.createInterpolator,easings:()=>tc.easings,inferTo:()=>k,interpolate:()=>ts,to:()=>ta,update:()=>tu,useChain:()=>T,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eJ,useSpring:()=>ez,useSpringRef:()=>eZ,useSpringValue:()=>eH,useSprings:()=>eF,useTrail:()=>eW,useTransition:()=>eY}),e.exports=d(a({},"__esModule",{value:!0}),h);var p=n(6901),m=n(6901);function v(e,...t){return m.is.fun(e)?e(...t):e}var g=(e,t)=>!0===e||!!(t&&e&&(m.is.fun(e)?e(t):(0,m.toArray)(e).includes(t))),y=(e,t)=>m.is.obj(e)?t&&e[t]:e,b=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,x=e=>e,w=(e,t=x)=>{let n=j;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);m.is.und(n)||(r[i]=n)}return r},j=["config","onProps","onStart","onChange","onPause","onResume","onRest"],E={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function k(e){let t=function(e){let t={},n=0;if((0,m.eachProp)(e,(e,r)=>{E[r]||(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return(0,m.eachProp)(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function S(e){return e=(0,m.getFluidValue)(e),m.is.arr(e)?e.map(S):(0,m.isAnimatedString)(e)?m.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function _(e){for(let t in e)return!0;return!1}function C(e){return m.is.fun(e)||m.is.arr(e)&&m.is.obj(e[0])}function O(e,t){e.ref?.delete(e),t?.delete(e)}function M(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function T(e,t,n=1e3){(0,p.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,p.each)(e,(e,i)=>{let o=e.current;if(o.length){let a=n*t[i];isNaN(a)?a=r:r=a,(0,p.each)(o,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>a+v(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();(0,p.each)(e,e=>{let n=e.current;if(n.length){let r=n.map(e=>{let t=e.queue;return e.queue=[],t});t=t.then(()=>((0,p.each)(n,(e,t)=>(0,p.each)(r[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var A=n(6901),P=n(2784),N=n(6901),R=n(6901),D=n(25447),L=n(6901),F={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},z={...F.default,mass:1,damping:1,easing:L.easings.linear,clamp:!1},V=class{constructor(){this.velocity=0,Object.assign(this,z)}};function I(e,t){if(L.is.und(t.decay)){let n=!L.is.und(t.tension)||!L.is.und(t.friction);!n&&L.is.und(t.frequency)&&L.is.und(t.damping)&&L.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Z=[],B=class{constructor(){this.changed=!1,this.values=Z,this.toValues=null,this.fromValues=Z,this.config=new V,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u,c=g(n.cancel??r?.cancel,t);if(c)h();else{H.is.und(n.pause)||(i.paused=g(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||g(e,t)),l=v(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-H.raf.now()}function f(){l>0&&!H.Globals.skipAnimation?(i.delayed=!0,u=H.raf.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var W=n(6901),q=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?Y(e.get()):t.every(e=>e.noop)?$(e.get()):K(e.get(),t.every(e=>e.finished)),$=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),K=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Y=e=>({value:e,cancelled:!0,finished:!1});function G(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let u=w(t,(e,t)=>"onRest"===t?void 0:e),c,d,f=new Promise((e,t)=>(c=e,d=t)),h=e=>{let t=i<=(n.cancelId||0)&&Y(r)||i!==n.asyncId&&K(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let o=new J,a=new Q;return(async()=>{if(W.Globals.skipAnimation)throw X(n),a.result=K(r,!1),d(a),a;h(o);let s=W.is.obj(e)?{...e}:{...t,to:e};s.parentId=i,(0,W.eachProp)(u,(e,t)=>{W.is.und(s[t])&&(s[t]=e)});let l=await r.start(s);return h(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(W.Globals.skipAnimation)return X(n),K(r,!1);try{let t;t=W.is.arr(e)?(async e=>{for(let t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(c),f]),m=K(r.get(),!0,!1)}catch(e){if(e instanceof J)m=e.result;else if(e instanceof Q)m=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return W.is.fun(a)&&W.raf.batchedUpdates(()=>{a(m,r,r.item)}),m})():l}function X(e,t){(0,W.flush)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var J=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Q=class extends Error{constructor(){super("SkipAnimationSignal")}},ee=n(6901),et=n(25447),en=e=>e instanceof ei,er=1,ei=class extends ee.FluidValue{constructor(){super(...arguments),this.id=er++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,et.getAnimated)(this);return e&&e.getValue()}to(...e){return ee.Globals.to(this,e)}interpolate(...e){return(0,ee.deprecateInterpolate)(),ee.Globals.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){(0,ee.callFluidObservers)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ee.frameLoop.sort(this),(0,ee.callFluidObservers)(this,{type:"priority",parent:this,priority:e})}},eo=Symbol.for("SpringPhase"),ea=e=>(1&e[eo])>0,es=e=>(2&e[eo])>0,el=e=>(4&e[eo])>0,eu=(e,t)=>t?e[eo]|=3:e[eo]&=-3,ec=(e,t)=>t?e[eo]|=4:e[eo]&=-5,ed=class extends ei{constructor(e,t){if(super(),this.animation=new B,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!R.is.und(e)||!R.is.und(t)){let n=R.is.obj(e)?{...e}:{...t,from:e};R.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(es(this)||this._state.asyncTo)||el(this)}get goal(){return(0,R.getFluidValue)(this.animation.to)}get velocity(){let e=(0,D.getAnimated)(this);return e instanceof D.AnimatedValue?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return ea(this)}get isAnimating(){return es(this)}get isPaused(){return el(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=(0,D.getPayload)(r.to);!a&&(0,R.hasFluidValue)(r.to)&&(i=(0,R.toArray)((0,R.getFluidValue)(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==D.AnimatedString?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[l],i=null!=s.v0?s.v0:s.v0=R.is.arr(o.velocity)?o.velocity[l]:o.velocity,a,f=o.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;let t=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!R.is.und(r),h=n==u?s.v0>0:nt)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(a=-a*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*a)/o.mass;a+=1*e,d+=1*a}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(o.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),a=((d=n+o.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=(0,D.getAnimated)(this),l=s.getValue();if(t){let e=(0,R.getFluidValue)(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return R.raf.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(es(this)){let{to:e,config:t}=this.animation;R.raf.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return R.is.und(e)?(n=this.queue||[],this.queue=[]):n=[R.is.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>q(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),X(this._state,e&&this._lastCallId),R.raf.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=R.is.obj(n)?n[t]:n)||C(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return ea(this)||(e.reverse&&([n,r]=[r,n]),r=(0,R.getFluidValue)(r),R.is.und(r)?(0,D.getAnimated)(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,w(e,(e,t)=>/^on/.test(t)?y(e,n):e)),eg(this,e,"onProps"),ey(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{el(this)||(ec(this,!0),(0,R.flushCalls)(o.pauseQueue),ey(this,"onPause",K(this,ef(this,this.animation.to)),this))},resume:()=>{el(this)&&(ec(this,!1),es(this)&&this._resume(),(0,R.flushCalls)(o.resumeQueue),ey(this,"onResume",K(this,ef(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=eh(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Y(this));let r=!R.is.und(e.to),i=!R.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Y(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||R.is.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!(0,R.isEqual)(d,u);f&&(s.from=d),d=(0,R.getFluidValue)(d);let h=!(0,R.isEqual)(c,l);h&&this._focus(c);let p=C(t.to),{config:m}=s,{decay:y,velocity:b}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(I(n={...n},t),t={...n,...t}),I(e,t),Object.assign(e,t),z)null==e[r]&&(e[r]=z[r]);let{frequency:r,damping:i}=e,{mass:o}=e;L.is.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,v(t.config,o),t.config!==a.config?v(a.config,o):void 0);let x=(0,D.getAnimated)(this);if(!x||R.is.und(c))return n(K(this,!0));let w=R.is.und(t.reset)?i&&!t.default:!R.is.und(d)&&g(t.reset,o),j=w?d:this.get(),E=S(c),k=R.is.num(E)||R.is.arr(E)||(0,R.isAnimatedString)(E),_=!p&&(!k||g(a.immediate||t.immediate,o));if(h){let e=(0,D.getAnimatedType)(c);if(e!==x.constructor){if(_)x=this._set(E);else throw Error(`Cannot animate between ${x.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let O=x.constructor,M=(0,R.hasFluidValue)(c),T=!1;if(!M){let e=w||!ea(this)&&f;(h||e)&&(M=!(T=(0,R.isEqual)(S(j),E))),((0,R.isEqual)(s.immediate,_)||_)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,b)||(M=!0)}if(T&&es(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,R.hasFluidValue)(l))&&(s.values=x.getPayload(),s.toValues=(0,R.hasFluidValue)(c)?null:O==D.AnimatedString?[1]:(0,R.toArray)(E)),s.immediate==_||(s.immediate=_,_||w||this._set(l)),M)){let{onRest:e}=s;(0,R.each)(ev,e=>eg(this,t,e));let r=K(this,ef(this,l));(0,R.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&R.raf.batchedUpdates(()=>{s.changed=!w,e?.(r,this),w?v(a.onRest,r):s.onStart?.(r,this)})}w&&this._set(j),p?n(G(t.to,t,this._state,this)):M?this._start():es(this)&&!h?this._pendingCalls.add(n):n($(j))}_focus(e){let t=this.animation;e!==t.to&&((0,R.getFluidObservers)(this)&&this._detach(),t.to=e,(0,R.getFluidObservers)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,R.hasFluidValue)(t)&&((0,R.addFluidObserver)(t,this),en(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,R.hasFluidValue)(e)&&(0,R.removeFluidObserver)(e,this)}_set(e,t=!0){let n=(0,R.getFluidValue)(e);if(!R.is.und(n)){let e=(0,D.getAnimated)(this);if(!e||!(0,R.isEqual)(n,e.getValue())){let r=(0,D.getAnimatedType)(n);e&&e.constructor==r?e.setValue(n):(0,D.setAnimated)(this,r.create(n)),e&&R.raf.batchedUpdates(()=>{this._onChange(n,t)})}}return(0,D.getAnimated)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,ey(this,"onStart",K(this,ef(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),v(this.animation.onChange,e,this)),v(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;(0,D.getAnimated)(this).reset((0,R.getFluidValue)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),es(this)||(eu(this,!0),el(this)||this._resume())}_resume(){R.Globals.skipAnimation?this.finish():R.frameLoop.start(this)}_stop(e,t){if(es(this)){eu(this,!1);let n=this.animation;(0,R.each)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,R.callFluidObservers)(this,{type:"idle",parent:this});let r=t?Y(this.get()):K(this.get(),ef(this,e??n.to));(0,R.flushCalls)(this._pendingCalls,r),n.changed&&(n.changed=!1,ey(this,"onRest",r,this))}}};function ef(e,t){let n=S(t),r=S(e.get());return(0,R.isEqual)(r,n)}function eh(e,t=e.loop,n=e.to){let r=v(t);if(r){let i=!0!==r&&k(r),o=(i||e).reverse,a=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!o||C(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function ep(e){let{to:t,from:n}=e=k(e),r=new Set;return R.is.obj(t)&&em(t,r),R.is.obj(n)&&em(n,r),e.keys=r.size?Array.from(r):null,e}function em(e,t){(0,R.eachProp)(e,(e,n)=>null!=e&&t.add(n))}var ev=["onStart","onRest","onChange","onPause","onResume"];function eg(e,t,n){e.animation[n]=t[n]!==b(t,n)?y(t[n],e.key):void 0}function ey(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var eb=n(6901),ex=["onStart","onChange","onRest"],ew=1,ej=class{constructor(e,t){this.id=ew++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];eb.is.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ep(e)),this}start(e){let{queue:t}=this;return e?t=(0,eb.toArray)(e).map(ep):this.queue=[],this._flush?this._flush(this,t):(eM(this,t),eE(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,eb.each)((0,eb.toArray)(t),t=>n[t].stop(!!e))}else X(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(eb.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,eb.each)((0,eb.toArray)(e),e=>t[e].pause())}return this}resume(e){if(eb.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,eb.each)((0,eb.toArray)(e),e=>t[e].resume())}return this}each(e){(0,eb.eachProp)(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,(0,eb.flush)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&(0,eb.flush)(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,(0,eb.flush)(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}eb.raf.onFrame(this._onFrame)}};function eE(e,t){return Promise.all(t.map(t=>ek(e,t))).then(t=>q(e,t))}async function ek(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=eb.is.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=eb.is.arr(i)||eb.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):(0,eb.each)(ex,n=>{let r=t[n];if(eb.is.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,(0,eb.flushCalls)(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===b(t,"cancel");(c||h&&d.asyncId)&&f.push(U(++e._lastAsyncId,{props:t,state:d,actions:{pause:eb.noop,resume:eb.noop,start(t,n){h?(X(d,e._lastAsyncId),n(Y(e))):(t.onRest=s,n(G(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=eh(t,a,i);if(n)return eM(e,[n]),ek(e,n,!0)}return l&&eb.raf.batchedUpdates(()=>l(p,e,e.item)),p}function eS(e,t){let n={...e.springs};return t&&(0,eb.each)((0,eb.toArray)(t),e=>{eb.is.und(e.keys)&&(e=ep(e)),eb.is.obj(e.to)||(e={...e,to:void 0}),eO(n,e,e=>eC(e))}),e_(e,n),n}function e_(e,t){(0,eb.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,eb.addFluidObserver)(t,e))})}function eC(e,t){let n=new ed;return n.key=e,t&&(0,eb.addFluidObserver)(n,t),n}function eO(e,t,n){t.keys&&(0,eb.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eM(e,t){(0,eb.each)(t,t=>{eO(e.springs,t,t=>eC(t,e))})}var eT=f(n(2784)),eA=n(2784),eP=n(6901),eN=({children:e,...t})=>{let n=(0,eA.useContext)(eR),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eP.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=eR;return eT.createElement(o,{value:t},e)},eR=(Object.assign(eN,eT.createContext({})),eN.Provider._context=eN,eN.Consumer._context=eN,eN);eN.Provider=eR.Provider,eN.Consumer=eR.Consumer;var eD=n(6901),eL=()=>{let e=[],t=function(t){(0,eD.deprecateDirectCall)();let r=[];return(0,eD.each)(e,(e,i)=>{if(eD.is.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return(0,eD.each)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,eD.each)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,eD.each)(e,(e,n)=>{let r=eD.is.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return(0,eD.each)(e,(e,r)=>{if(eD.is.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return(0,eD.each)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,eD.each)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return eD.is.fun(e)?e(n,t):e};return t._getProps=n,t};function eF(e,t,n){let r=N.is.fun(t)&&t;r&&!n&&(n=[]);let i=(0,P.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),o=(0,P.useRef)(0),a=(0,N.useForceUpdate)(),s=(0,P.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eS(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{e_(e,n),s.queue.push(()=>{r(eE(e,t))}),a()}):eE(e,t)}}),[]),l=(0,P.useRef)([...s.ctrls]),u=[],c=(0,N.usePrev)(e)||0;function d(e,n){for(let i=e;i{(0,N.each)(l.current.slice(e,c),e=>{O(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,P.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>eS(e,u[t])),h=(0,P.useContext)(eN),p=(0,N.usePrev)(h),m=h!==p&&_(h);(0,N.useIsomorphicLayoutEffect)(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],(0,N.each)(e,e=>e())),(0,N.each)(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(M(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,N.useOnce)(()=>()=>{(0,N.each)(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}function ez(e,t){let n=A.is.fun(e),[[r],i]=eF(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var eV=n(2784),eI=()=>eL(),eZ=()=>(0,eV.useState)(eI)[0],eB=n(6901),eH=(e,t)=>{let n=(0,eB.useConstant)(()=>new ed(e,t));return(0,eB.useOnce)(()=>()=>{n.stop()}),n},eU=n(6901);function eW(e,t,n){let r=eU.is.fun(t)&&t;r&&!n&&(n=[]);let i=!0,o,a=eF(e,(e,n)=>{let a=r?r(e,n):t;return o=a.ref,i=i&&a.reverse,a},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(a[1].current,(e,t)=>{let n=a[1].current[t+(i?1:-1)];if(M(e,o),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=o??a[1];return e._getProps=(t,n,r)=>{let i=eU.is.fun(t)?t(r,n):t;if(i){let t=e.current[r+(i.reverse?1:-1)];return t&&(i.to=t.springs),i}},a}return a[0]}var eq=f(n(2784)),e$=n(2784),eK=n(6901);function eY(e,t,n){let r=eK.is.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,e$.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),h=(0,eK.toArray)(e),p=[],m=(0,e$.useRef)(null),g=i?null:m.current;(0,eK.useIsomorphicLayoutEffect)(()=>{m.current=p}),(0,eK.useOnce)(()=>((0,eK.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eK.each)(m.current,e=>{e.expired&&clearTimeout(e.expirationId),O(e.ctrl,f),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):eG++})}return eK.is.und(n)?e:eK.is.fun(n)?e.map(n):(0,eK.toArray)(n)}(h,r?r():t,g),b=i&&m.current||[];(0,eK.useIsomorphicLayoutEffect)(()=>(0,eK.each)(b,({ctrl:e,item:t,key:n})=>{O(e,f),v(u,t,n)}));let x=[];if(g&&(0,eK.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=x[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eK.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new ej},p[t].ctrl.item=e)}),x.length){let e=-1,{leave:n}=r?r():t;(0,eK.each)(x,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eK.is.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let j=-a,E=(0,eK.useForceUpdate)(),S=w(t),C=new Map,T=(0,e$.useRef)(new Map),A=(0,e$.useRef)(!1);(0,eK.each)(p,(e,n)=>{let i=e.key,o=e.phase,u=r?r():t,f,h,p=v(u.delay||0,i);if("mount"==o)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=o){if(e)f=u.leave,h="leave";else{if(!(f=u.update))return;h="update"}}else{if(e)return;f=u.enter,h="enter"}}if(f=v(f,e.item,n),!(f=eK.is.obj(f)?k(f):{to:f}).config){let t=d||S.config;f.config=v(t,e.item,n,h)}j+=a;let b={...S,delay:p+j,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eK.is.und(b.from)){let i=r?r():t,o=eK.is.und(i.initial)||g?i.from:i.initial;b.from=v(o,e.item,n)}let{onResolve:x}=b;b.onResolve=e=>{v(x,e);let t=m.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&"update"!=n.phase)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=v(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(E,r));return}}}e&&t.some(e=>e.expired)&&(T.current.delete(n),l&&(A.current=!0),E())}};let w=eS(e.ctrl,b);"leave"===h&&l?T.current.set(e,{phase:h,springs:w,payload:b}):C.set(e,{phase:h,springs:w,payload:b})});let P=(0,e$.useContext)(eN),N=(0,eK.usePrev)(P),R=P!==N&&_(P);(0,eK.useIsomorphicLayoutEffect)(()=>{R&&(0,eK.each)(p,e=>{e.ctrl.start({default:P})})},[P]),(0,eK.each)(C,(e,t)=>{if(T.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eK.useIsomorphicLayoutEffect)(()=>{(0,eK.each)(T.current.size?T.current:C,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:P}),t&&(M(r,t.ref),(r.ref||f)&&!A.current?r.update(t):(r.start(t),A.current&&(A.current=!1)))})},i?void 0:n);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,n)=>{let{springs:r}=C.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eq.createElement(i.type,{...i.props,key:eK.is.str(t.key)||eK.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eG=1,eX=n(6901),eJ=({container:e,...t}={})=>{let[n,r]=ez(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eX.useIsomorphicLayoutEffect)(()=>{let t=(0,eX.onScroll)(({x:e,y:t})=>{r.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})},{container:e?.current||void 0});return()=>{(0,eX.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eQ=n(6901),e0=({container:e,...t})=>{let[n,r]=ez(()=>({width:0,height:0,...t}),[]);return(0,eQ.useIsomorphicLayoutEffect)(()=>{let t=(0,eQ.onResize)(({width:e,height:t})=>{r.start({width:e,height:t,immediate:0===n.width.get()||0===n.height.get()})},{container:e?.current||void 0});return()=>{(0,eQ.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e1=n(2784),e2=n(6901),e4={any:0,all:1};function e3(e,t){let[n,r]=(0,e1.useState)(!1),i=(0,e1.useRef)(),o=e2.is.fun(e)&&e,{to:a={},from:s={},...l}=o?o():{},u=o?t:e,[c,d]=ez(()=>({from:s,...l}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:o,amount:l="any",...c}=u??{};if(!e||o&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(a&&d.start(a),r(!0),o?void 0:()=>{s&&d.start(s),r(!1)}),p=new IntersectionObserver(e=>{e.forEach(e=>{let t=f.get(e.target);if(!!t!==e.isIntersecting){if(e.isIntersecting){let t=h();e2.is.fun(t)?f.set(e.target,t):p.unobserve(e.target)}else t&&(t(),f.delete(e.target))}})},{root:t&&t.current||void 0,threshold:"number"==typeof l||Array.isArray(l)?l:e4[l],...c});return p.observe(e),()=>p.unobserve(e)},[u]),o?[i,c]:[i,n]}function e5({children:e,...t}){return e(ez(t))}var e6=n(6901);function e8({items:e,children:t,...n}){let r=eW(e.length,n);return e.map((e,n)=>{let i=t(e,n);return e6.is.fun(i)?i(r[n]):i})}function e7({items:e,children:t,...n}){return eY(e,n)(t)}var e9=n(6901),te=n(6901),tt=n(25447),tn=class extends ei{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,te.createInterpolator)(...t);let n=this._get(),r=(0,tt.getAnimatedType)(n);(0,tt.setAnimated)(this,r.create(n))}advance(e){let t=this._get(),n=this.get();(0,te.isEqual)(t,n)||((0,tt.getAnimated)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ti(this._active)&&to(this)}_get(){let e=te.is.arr(this.source)?this.source.map(te.getFluidValue):(0,te.toArray)((0,te.getFluidValue)(this.source));return this.calc(...e)}_start(){this.idle&&!ti(this._active)&&(this.idle=!1,(0,te.each)((0,tt.getPayload)(this),e=>{e.done=!1}),te.Globals.skipAnimation?(te.raf.batchedUpdates(()=>this.advance()),to(this)):te.frameLoop.start(this))}_attach(){let e=1;(0,te.each)((0,te.toArray)(this.source),t=>{(0,te.hasFluidValue)(t)&&(0,te.addFluidObserver)(t,this),en(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){(0,te.each)((0,te.toArray)(this.source),e=>{(0,te.hasFluidValue)(e)&&(0,te.removeFluidObserver)(e,this)}),this._active.clear(),to(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=(0,te.toArray)(this.source).reduce((e,t)=>Math.max(e,(en(t)?t.priority:0)+1),0))}};function tr(e){return!1!==e.idle}function ti(e){return!e.size||Array.from(e).every(tr)}function to(e){e.idle||(e.idle=!0,(0,te.each)((0,tt.getPayload)(e),e=>{e.done=!0}),(0,te.callFluidObservers)(e,{type:"idle",parent:e}))}var ta=(e,...t)=>new tn(e,t),ts=(e,...t)=>((0,e9.deprecateInterpolate)(),new tn(e,t)),tl=n(6901);tl.Globals.assign({createStringInterpolator:tl.createStringInterpolator,to:(e,t)=>new tn(e,t)});var tu=tl.frameLoop.advance,tc=n(6901);r=n(8669),i=e.exports,d(h,r,"default"),i&&d(i,r,"default")},78476:function(e,t,n){"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l={};s(l,{FluidValue:()=>eA,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eM,callFluidObservers:()=>eT,clamp:()=>Q,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>eb,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eX,deprecateInterpolate:()=>eY,each:()=>P,eachProp:()=>N,easings:()=>eE,flush:()=>D,flushCalls:()=>z,frameLoop:()=>K,getFluidObservers:()=>eO,getFluidValue:()=>eC,hasFluidValue:()=>e_,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>ea,hsla:()=>es,is:()=>T,isAnimatedString:()=>eJ,isEqual:()=>A,isSSR:()=>V,noop:()=>O,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>eo,setFluidGetter:()=>eP,toArray:()=>R,useConstant:()=>ta,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tv,usePrev:()=>tb,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))a.call(e,n)||void 0===n||r(e,n,{get:()=>t[n],enumerable:!(s=i(t,n))||s.enumerable});return e})(r({},"__esModule",{value:!0}),l);var u={};s(u,{assign:()=>H,colors:()=>I,createStringInterpolator:()=>L,skipAnimation:()=>Z,to:()=>F,willAdvance:()=>B});var c=_(),d=e=>j(e,c),f=_();d.write=e=>j(e,f);var h=_();d.onStart=e=>j(e,h);var p=_();d.onFrame=e=>j(e,p);var m=_();d.onFinish=e=>j(e,m);var v=[];d.setTimeout=(e,t)=>{let n=d.now()+t,r=()=>{let e=v.findIndex(e=>e.cancel==r);~e&&v.splice(e,1),x-=~e?1:0},i={time:n,handler:e,cancel:r};return v.splice(g(n),0,i),x+=1,E(),i};var g=e=>~(~v.findIndex(t=>t.time>e)||~v.length);d.cancel=e=>{h.delete(e),p.delete(e),m.delete(e),c.delete(e),f.delete(e)},d.sync=e=>{w=!0,d.batchedUpdates(e),w=!1},d.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,d.onStart(n)}return r.handler=e,r.cancel=()=>{h.delete(n),t=null},r};var y="u">typeof window?window.requestAnimationFrame:()=>{};d.use=e=>y=e,d.now="u">typeof performance?()=>performance.now():Date.now,d.batchedUpdates=e=>e(),d.catch=console.error,d.frameLoop="always",d.advance=()=>{"demand"!==d.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):S()};var b=-1,x=0,w=!1;function j(e,t){w?(t.delete(e),e(0)):(t.add(e),E())}function E(){b<0&&(b=0,"demand"!==d.frameLoop&&y(k))}function k(){~b&&(y(k),d.batchedUpdates(S))}function S(){let e=b,t=g(b=d.now());if(t&&(C(v.splice(0,t),e=>e.handler()),x-=t),!x){b=-1;return}h.flush(),c.flush(e?Math.min(64,b-e):16.667),p.flush(),f.flush(),m.flush()}function _(){let e=new Set,t=e;return{add(n){x+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(x-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,x-=t.size,C(t,t=>t(n)&&e.add(t)),x+=e.size,t=e)}}}function C(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function O(){}var M=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),T={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function A(e,t){if(T.arr(e)){if(!T.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function N(e,t,n){if(T.arr(e)){for(let r=0;rT.und(e)?[]:T.arr(e)?e:[e];function D(e,t){if(e.size){let n=Array.from(e);e.clear(),P(n,t)}}var L,F,z=(e,...t)=>D(e,e=>e(...t)),V=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),I=null,Z=!1,B=O,H=e=>{e.to&&(F=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(I=e.colors),null!=e.skipAnimation&&(Z=e.skipAnimation),e.createStringInterpolator&&(L=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance),e.frameLoop&&(d.frameLoop=e.frameLoop)},U=new Set,W=[],q=[],$=0,K={get idle(){return!U.size&&!W.length},start(e){$>e.priority?(U.add(e),d.onStart(Y)):(G(e),d(J))},advance:J,sort(e){if($)d.onFrame(()=>K.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),X(e))}},clear(){W=[],U.clear()}};function Y(){U.forEach(G),U.clear(),d(J)}function G(e){W.includes(e)||X(e)}function X(e){var t;let n;W.splice((n=(t=W).findIndex(t=>t.priority>e.priority))<0?t.length:n,0,e)}function J(e){let t=q;for(let n=0;n0}var Q=(e,t,n)=>Math.min(Math.max(n,e),t),ee={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},et="[-+]?\\d*\\.?\\d+",en=et+"%";function er(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ei=RegExp("rgb"+er(et,et,et)),eo=RegExp("rgba"+er(et,et,et,et)),ea=RegExp("hsl"+er(et,en,en)),es=RegExp("hsla"+er(et,en,en,et)),el=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ec=/^#([0-9a-fA-F]{6})$/,ed=/^#([0-9a-fA-F]{8})$/;function ef(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eh(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*ef(i,r,e+1/3))<<24|Math.round(255*ef(i,r,e))<<16|Math.round(255*ef(i,r,e-1/3))<<8}function ep(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function em(e){return(parseFloat(e)%360+360)%360/360}function ev(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function eg(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ey(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ec.exec(e))?parseInt(t[1]+"ff",16)>>>0:I&&void 0!==I[e]?I[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=eo.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|ev(t[4]))>>>0:(t=el.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ed.exec(e))?parseInt(t[1],16)>>>0:(t=eu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ea.exec(e))?(255|eh(em(t[1]),eg(t[2]),eg(t[3])))>>>0:(t=es.exec(e))?(eh(em(t[1]),eg(t[2]),eg(t[3]))|ev(t[4]))>>>0:null;return null===n?e:`rgba(${(4278190080&(n=n||0))>>>24}, ${(16711680&n)>>>16}, ${(65280&n)>>>8}, ${(255&n)/255})`}var eb=(e,t,n)=>{if(T.fun(e))return e;if(T.arr(e))return eb({range:e,output:t,extrapolate:n});if(T.str(e.output[0]))return L(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},ex=2*Math.PI/3,ew=2*Math.PI/4.5,ej=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,eE={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-1.70158*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(3.5949095*2*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ex),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ex)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ew))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ew)/2+1,easeInBounce:e=>1-ej(1-e),easeOutBounce:ej,easeInOutBounce:e=>e<.5?(1-ej(1-2*e))/2:(1+ej(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return Q(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},ek=Symbol.for("FluidValue.get"),eS=Symbol.for("FluidValue.observers"),e_=e=>!!(e&&e[ek]),eC=e=>e&&e[ek]?e[ek]():e,eO=e=>e[eS]||null;function eM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eT(e,t){let n=e[eS];n&&n.forEach(e=>{eM(e,t)})}var eA=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eP(this,e)}},eP=(e,t)=>eL(e,ek,t);function eN(e,t){if(e[ek]){let n=e[eS];n||eL(e,eS,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function eR(e,t){let n=e[eS];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[eS]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eD,eL=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eF=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ez=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,eV=RegExp(`(${eF.source})(%|[a-z]+)`,"i"),eI=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eZ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eB=e=>{let[t,n]=eH(e);if(!t||V())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&eZ.test(n)?eB(n):n||e},eH=e=>{let t=eZ.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},eU=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,eW=e=>{eD||(eD=I?RegExp(`(${Object.keys(I).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eC(e).replace(eZ,eB).replace(ez,ey).replace(eD,ey)),n=t.map(e=>e.match(eF).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>eb({...e,output:t}));return e=>{let n=!eV.test(t[0])&&t.find(e=>eV.test(e))?.replace(eF,""),i=0;return t[0].replace(eF,()=>`${r[i++](e)}${n||""}`).replace(eI,eU)}},eq="react-spring: ",e$=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eq}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},eK=e$(console.warn);function eY(){eK(`${eq}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eG=e$(console.warn);function eX(){eG(`${eq}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function eJ(e){return T.str(e)&&("#"==e[0]||/\d/.test(e)||!V()&&eZ.test(e)||e in(I||{}))}var eQ,e0,e1=new WeakMap,e2=e=>e.forEach(({target:e,contentRect:t})=>e1.get(e)?.forEach(e=>e(t))),e4=new Set,e3=()=>{let e=()=>{e4.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},e5=e=>(e4.add(e),e0||(e0=e3()),()=>{e4.delete(e),!e4.size&&e0&&(e0(),e0=void 0)}),e6=(e,{container:t=document.documentElement}={})=>{let n;return t===document.documentElement?e5(e):(eQ||"u">typeof ResizeObserver&&(eQ=new ResizeObserver(e2)),(n=e1.get(t))||(n=new Set,e1.set(t,n)),n.add(e),eQ&&eQ.observe(t),()=>{let n=e1.get(t);n&&(n.delete(e),!n.size&&eQ&&eQ.unobserve(t))})},e8=(e,t,n)=>t-e==0?1:(n-e)/(t-e),e7={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},e9=class{constructor(e,t){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=e=>{let t=this.info[e],{length:n,position:r}=e7[e];t.current=this.container[`scroll${r}`],t.scrollLength=this.container["scroll"+n]-this.container["client"+n],t.progress=e8(0,t.scrollLength,t.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=e,this.container=t,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}},te=new WeakMap,tt=new WeakMap,tn=new WeakMap,tr=e=>e===document.documentElement?window:e,ti=(e,{container:t=document.documentElement}={})=>{let n=tn.get(t);n||(n=new Set,tn.set(t,n));let r=new e9(e,t);if(n.add(r),!te.has(t)){let e=()=>(n?.forEach(e=>e.advance()),!0);te.set(t,e);let r=tr(t);window.addEventListener("resize",e,{passive:!0}),t!==document.documentElement&&tt.set(t,e6(e,{container:t})),r.addEventListener("scroll",e,{passive:!0})}let i=te.get(t);return d(i),()=>{d.cancel(i);let e=tn.get(t);if(!e||(e.delete(r),e.size))return;let n=te.get(t);te.delete(t),n&&(tr(t).removeEventListener("scroll",n),window.removeEventListener("resize",n),tt.get(t)?.())}},to=n(2784);function ta(e){let t=(0,to.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ts=n(2784),tl=n(2784),tu=n(2784),tc=V()?tu.useEffect:tu.useLayoutEffect,td=()=>{let e=(0,tl.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tf(){let e=(0,ts.useState)()[1],t=td();return()=>{t.current&&e(Math.random())}}var th=n(2784);function tp(e,t){let[n]=(0,th.useState)(()=>({inputs:t,result:e()})),r=(0,th.useRef)(),i=r.current,o=i;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}var tm=n(2784),tv=e=>(0,tm.useEffect)(e,tg),tg=[],ty=n(2784);function tb(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tx=n(2784),tw=()=>{let[e,t]=(0,tx.useState)(null);return tc(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),H({skipAnimation:e.matches})};return n(e),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),e}},19455:function(e){"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{Any:()=>a}),e.exports=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of r(o))i.call(e,a)||void 0===a||t(e,a,{get:()=>o[a],enumerable:!(s=n(o,a))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a=class{}},96721:function(e,t,n){"use strict";var r,i,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))l.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>M,animated:()=>M}),e.exports=u(o({},"__esModule",{value:!0}),c);var d=n(99550),f=n(28316),h=n(6901),p=n(25447),m=/^--/,v={},g={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},y=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),b=["Webkit","Ms","Moz","O"];g=Object.keys(g).reduce((e,t)=>(b.forEach(n=>e[y(n,t)]=e[t]),e),g);var x=n(25447),w=n(6901),j=/^(matrix|translate|scale|rotate|skew)/,E=/^(translate)/,k=/^(rotate|skew)/,S=(e,t)=>w.is.num(e)&&0!==e?e+t:e,_=(e,t)=>w.is.arr(e)?e.every(e=>_(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,C=class extends x.AnimatedObject{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>S(e,"px")).join(",")})`,_(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(j.test(t)){if(delete r[t],w.is.und(e))return;let n=E.test(t)?"px":k.test(t)?"deg":"";i.push((0,w.toArray)(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${S(i,n)})`,_(i,0)]:e=>[`${t}(${e.map(e=>S(e,n)).join(",")})`,_(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new O(i,o)),super(r)}},O=class extends w.FluidValue{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return(0,w.each)(this.inputs,(n,r)=>{let i=(0,w.getFluidValue)(n[0]),[o,a]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.addFluidObserver)(e,this)))}observerRemoved(e){0==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.removeFluidObserver)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),(0,w.callFluidObservers)(this,e)}};r=n(99550),i=e.exports,u(c,r,"default"),i&&u(i,r,"default"),d.Globals.assign({batchedUpdates:f.unstable_batchedUpdates,createStringInterpolator:h.createStringInterpolator,colors:h.colors});var M=(0,p.createHost)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:v[t]||(v[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||m.test(t)||g.hasOwnProperty(t)&&g[t]?(""+d).trim():d+"px";m.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new C(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated},7896:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,n=0,r="";nn=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let o=r(t)||r(i);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),c=null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]);return i(e,l,c,null==n?void 0:n.class,null==n?void 0:n.className)}},99182:function(e,t,n){"use strict";n.d(t,{U8:function(){return T},mY:function(){return S}});var r=n(72331),i=n(2784),o=n(40844),a='[cmdk-group=""]',s='[cmdk-group-items=""]',l='[cmdk-item=""]',u=`${l}:not([aria-disabled="true"])`,c="cmdk-item-select",d="data-value",f=(e,t)=>o(e,t),h=i.createContext(void 0),p=()=>i.useContext(h),m=i.createContext(void 0),v=()=>i.useContext(m),g=i.createContext(void 0),y=i.forwardRef((e,t)=>{let n=i.useRef(null),r=O(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),o=O(()=>new Set),p=O(()=>new Map),v=O(()=>new Map),g=O(()=>new Set),y=_(e),{label:b,children:x,value:w,onValueChange:j,filter:E,shouldFilter:k,...S}=e,T=i.useId(),A=i.useId(),R=i.useId(),D=P();C(()=>{if(void 0!==w){let e=w.trim().toLowerCase();r.current.value=e,D(6,B),L.emit()}},[w]);let L=i.useMemo(()=>({subscribe:e=>(g.current.add(e),()=>g.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,o,a;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)Z(),V(),D(1,I);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(a=(o=y.current).onValueChange)||a.call(o,t);return}n||D(5,B)}L.emit()}},emit:()=>{g.current.forEach(e=>e())}}),[]),F=i.useMemo(()=>({value:(e,t)=>{t!==v.current.get(e)&&(v.current.set(e,t),r.current.filtered.items.set(e,z(t)),D(2,()=>{V(),L.emit()}))},item:(e,t)=>(o.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{Z(),V(),r.current.value||I(),L.emit()}),()=>{v.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{Z(),I(),L.emit()})}),group:e=>(p.current.has(e)||p.current.set(e,new Set),()=>{v.current.delete(e),p.current.delete(e)}),filter:()=>y.current.shouldFilter,label:b||e["aria-label"],listId:T,inputId:R,labelId:A}),[]);function z(e){var t;let n=(null==(t=y.current)?void 0:t.filter)??f;return e?n(e,r.current.search):0}function V(){if(!n.current||!r.current.search||!1===y.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(n=>{let r=p.current.get(n),i=0;r.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([n,i])});let i=n.current.querySelector('[cmdk-list-sizer=""]');U().sort((t,n)=>{let r=t.getAttribute(d),i=n.getAttribute(d);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(s);t?t.appendChild(e.parentElement===t?e:e.closest(`${s} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${s} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${a}[${d}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function I(){let e=U().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(d);L.setState("value",t||void 0)}function Z(){if(!r.current.search||!1===y.current.shouldFilter){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=z(v.current.get(t));r.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of p.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=e}function B(){var e,t,n;let r=H();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(a))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function H(){return n.current.querySelector(`${l}[aria-selected="true"]`)}function U(){return Array.from(n.current.querySelectorAll(u))}function W(e){let t=U()[e];t&&L.setState("value",t.getAttribute(d))}function q(e){var t;let n=H(),r=U(),i=r.findIndex(e=>e===n),o=r[i+e];null!=(t=y.current)&&t.loop&&(o=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),o&&L.setState("value",o.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(a),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,a):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,a))?void 0:n.querySelector(u);r?L.setState("value",r.getAttribute(d)):q(e)}let K=()=>W(U().length-1),Y=e=>{e.preventDefault(),e.metaKey?K():e.altKey?$(1):q(1)},G=e=>{e.preventDefault(),e.metaKey?W(0):e.altKey?$(-1):q(-1)};return i.createElement("div",{ref:M([n,t]),...S,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=S.onKeyDown)||t.call(S,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&Y(e);break;case"ArrowDown":Y(e);break;case"p":case"k":e.ctrlKey&&G(e);break;case"ArrowUp":G(e);break;case"Home":e.preventDefault(),W(0);break;case"End":e.preventDefault(),K();break;case"Enter":{e.preventDefault();let t=H();if(t){let e=new Event(c);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:F.inputId,id:F.labelId,style:N},b),i.createElement(m.Provider,{value:L},i.createElement(h.Provider,{value:F},x)))}),b=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),o=i.useContext(g),a=p(),s=_(e);C(()=>a.item(n,o),[]);let l=A(n,r,[e.value,e.children,r]),u=v(),d=T(e=>e.value&&e.value===l.current),f=T(e=>!1===a.filter()||!e.search||e.filtered.items.get(n)>0);function h(){var e,t;null==(t=(e=s.current).onSelect)||t.call(e,l.current)}if(i.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(c,h),()=>t.removeEventListener(c,h)},[f,e.onSelect,e.disabled]),!f)return null;let{disabled:m,value:y,onSelect:b,...x}=e;return i.createElement("div",{ref:M([r,t]),...x,"cmdk-item":"",role:"option","aria-disabled":m||void 0,"aria-selected":d||void 0,"data-selected":d||void 0,onPointerMove:m?void 0:function(){u.setState("value",l.current,!0)},onClick:m?void 0:h},e.children)}),x=i.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,a=i.useId(),s=i.useRef(null),l=i.useRef(null),u=i.useId(),c=p(),d=T(e=>!1===c.filter()||!e.search||e.filtered.groups.has(a));C(()=>c.group(a),[]),A(a,s,[e.value,e.heading,l]);let f=i.createElement(g.Provider,{value:a},r);return i.createElement("div",{ref:M([s,t]),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&i.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},f))}),w=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),a=T(e=>!e.search);return n||a?i.createElement("div",{ref:M([o,t]),...r,"cmdk-separator":"",role:"separator"}):null}),j=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=v(),s=T(e=>e.search),l=p();return i.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),i.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,id:l.inputId,type:"text",value:o?e.value:s,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),E=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.useRef(null),a=i.useRef(null),s=p();return i.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect().height;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),i.createElement("div",{ref:M([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},i.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),k=i.forwardRef((e,t)=>{let{open:n,onOpenChange:o,container:a,...s}=e;return i.createElement(r.fC,{open:n,onOpenChange:o},i.createElement(r.h_,{container:a},i.createElement(r.aV,{"cmdk-overlay":""}),i.createElement(r.VY,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(y,{ref:t,...s}))))}),S=Object.assign(y,{List:E,Item:b,Input:j,Group:x,Separator:w,Dialog:k,Empty:i.forwardRef((e,t)=>{let n=i.useRef(!0),r=T(e=>0===e.filtered.count);return i.useEffect(()=>{n.current=!1},[]),n.current||!r?null:i.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Loading:i.forwardRef((e,t)=>{let{progress:n,children:r,...o}=e;return i.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function _(e){let t=i.useRef(e);return C(()=>{t.current=e}),t}var C=typeof window>"u"?i.useEffect:i.useLayoutEffect;function O(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function M(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function T(e){let t=v(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function A(e,t,n){let r=i.useRef(),o=p();return C(()=>{var i;let a=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim().toLowerCase();if("object"==typeof t&&"current"in t&&t.current)return null==(e=t.current.textContent)?void 0:e.trim().toLowerCase()}})();o.value(e,a),null==(i=t.current)||i.setAttribute(d,a),r.current=a}),r}var P=()=>{let[e,t]=i.useState(),n=O(()=>new Map);return C(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}},N={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},86801:function(e,t,n){"use strict";function r(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},78307:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(86801);function i(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function o(e){let t,n,o;function s(e,r,i=0,o=e.length){if(i>>1;0>n(e[t],r)?i=t+1:o=t}while(i(0,r.Z)(e(t),n),o=(t,n)=>e(t)-n):(t=e===r.Z||e===i?e:a,n=e,o=e),{left:s,center:function(e,t,n=0,r=e.length){let i=s(e,t,n,r-1);return i>n&&o(e[i-1],t)>-o(e[i],t)?i-1:i},right:function(e,r,i=0,o=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:o=t}while(i=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||e instanceof FileList))&&(n||l(e))))return e;else if(t=n?[]:{},Array.isArray(e)||f(e))for(let n in e)t[n]=p(e[n]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,n)=>{if(!t||!l(e))return n;let r=m(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return v(r)||r===e?v(e[t])?n:e[t]:r};let y={BLUR:"blur",FOCUS_OUT:"focusout"},b={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},x={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};r.createContext(null);var w=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==b.all&&(t._proxyFormState[o]=!r||b.all),n&&(n[o]=!0),e[o])});return i},j=e=>l(e)&&!Object.keys(e).length,E=(e,t,n,r)=>{n(e);let{name:i,...o}=e;return j(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!r||b.all))},k=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,_=(e,t,n,r,i)=>S(e)?(r&&t.watch.add(e),g(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),g(n,e))):(r&&(t.watchAll=!0),n),C=e=>/^\w*$/.test(e),O=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function M(e,t,n){let r=-1,i=C(t)?[t]:O(t),o=i.length,a=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let A=(e,t,n)=>{for(let r of n||Object.keys(e)){let n=g(e,r);if(n){let{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(r)&&A(r,t)}}};var P=e=>({isOnSubmit:!e||e===b.onSubmit,isOnBlur:e===b.onBlur,isOnChange:e===b.onChange,isOnAll:e===b.all,isOnTouch:e===b.onTouched}),N=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),R=(e,t,n)=>{let r=m(g(e,n));return M(r,"root",t[n]),M(e,n,r),e},D=e=>"boolean"==typeof e,L=e=>"file"===e.type,F=e=>"function"==typeof e,z=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},V=e=>S(e),I=e=>"radio"===e.type,Z=e=>e instanceof RegExp;let B={value:!1,isValid:!1},H={value:!0,isValid:!0};var U=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||""===e[0].value?H:{value:e[0].value,isValid:!0}:H:B}return B};let W={isValid:!1,value:null};var q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,W):W;function $(e,t,n="validate"){if(V(e)||Array.isArray(e)&&e.every(V)||D(e)&&!e)return{type:n,message:V(e)?e:"",ref:t}}var K=e=>l(e)&&!Z(e)?e:{value:e,message:""},Y=async(e,t,n,r,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:b,valueAsNumber:w,mount:E,disabled:k}=e._f,_=g(t,b);if(!E||k)return{};let C=u?u[0]:s,O=e=>{r&&C.reportValidity&&(C.setCustomValidity(D(e)?"":e||""),C.reportValidity())},M={},A=I(s),P=i(s),N=(w||L(s))&&v(s.value)&&v(_)||z(s)&&""===s.value||""===_||Array.isArray(_)&&!_.length,R=T.bind(null,b,n,M),B=(e,t,n,r=x.maxLength,i=x.minLength)=>{let o=e?t:n;M[b]={type:e?r:i,message:o,ref:s,...R(e?r:i,o)}};if(o?!Array.isArray(_)||!_.length:c&&(!(A||P)&&(N||a(_))||D(_)&&!_||P&&!U(u).isValid||A&&!q(u).isValid)){let{value:e,message:t}=V(c)?{value:!!c,message:c}:K(c);if(e&&(M[b]={type:x.required,message:t,ref:C,...R(x.required,t)},!n))return O(t),M}if(!N&&(!a(h)||!a(p))){let e,t;let r=K(p),i=K(h);if(a(_)||isNaN(_)){let n=s.valueAsDate||new Date(_),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;S(r.value)&&_&&(e=a?o(_)>o(r.value):l?_>r.value:n>new Date(r.value)),S(i.value)&&_&&(t=a?o(_)r.value),a(i.value)||(t=n+e.value,i=!a(t.value)&&_.length<+t.value;if((r||i)&&(B(r,e.message,t.message),!n))return O(M[b].message),M}if(m&&!N&&S(_)){let{value:e,message:t}=K(m);if(Z(e)&&!_.match(e)&&(M[b]={type:x.pattern,message:t,ref:s,...R(x.pattern,t)},!n))return O(t),M}if(y){if(F(y)){let e=await y(_,t),r=$(e,C);if(r&&(M[b]={...r,...R(x.validate,r.message)},!n))return O(r.message),M}else if(l(y)){let e={};for(let r in y){if(!j(e)&&!n)break;let i=$(await y[r](_,t),C,r);i&&(e={...i,...R(r,i.message)},O(i.message),n&&(M[b]=e))}if(!j(e)&&(M[b]={ref:C,...e},!n))return M}}return O(!0),M};function G(e,t){let n=Array.isArray(t)?t:C(t)?[t]:O(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var J=e=>a(e)||!s(e);function Q(e,t){if(J(e)||J(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n){let n=e[i];if(!r.includes(i))return!1;if("ref"!==i){let e=t[i];if(o(n)&&o(e)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!Q(n,e):n!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>I(e)||i(e),en=e=>z(e)&&e.isConnected,er=e=>{for(let t in e)if(F(e[t]))return!0;return!1};function ei(e,t={}){let n=Array.isArray(e);if(l(e)||n)for(let n in e)Array.isArray(e[n])||l(e[n])&&!er(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ei(e[n],t[n])):a(e[n])||(t[n]=!0);return t}var eo=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!er(t[i])?v(n)||J(r[i])?r[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],a(n)?{}:n[i],r[i]):r[i]=!Q(t[i],n[i]);return r})(e,t,ei(t)),ea=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>v(e)?e:t?""===e?NaN:e?+e:e:n&&S(e)?new Date(e):r?r(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:L(t)?t.files:I(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?U(e.refs).value:ea(v(t.value)?e.ref.value:t.value,e)}var el=(e,t,n,r)=>{let i={};for(let n of e){let e=g(t,n);e&&M(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},eu=e=>v(e)?e:Z(e)?e.source:l(e)?Z(e.value)?e.value.source:e.value:e,ec=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ed(e,t,n){let r=g(e,n);if(r||C(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=g(t,r),a=g(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(a&&a.type)return{name:r,error:a};i.pop()}return{name:n}}var ef=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?!r.isOnChange:!i.isOnChange)||e),eh=(e,t)=>!m(g(e,t)).length&&G(e,t);let ep={mode:b.onSubmit,reValidateMode:b.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),[n,s]=r.useState({isDirty:!1,isValidating:!1,isLoading:F(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:F(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let n,r={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:F(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},c={},f=(l(r.defaultValues)||l(r.values))&&p(r.defaultValues||r.values)||{},x=r.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},E={mount:new Set,unMount:new Set,array:new Set,watch:new Set},C=0,O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},T={values:X(),array:X(),state:X()},V=e.resetOptions&&e.resetOptions.keepDirtyValues,I=P(r.mode),Z=P(r.reValidateMode),B=r.criteriaMode===b.all,H=e=>t=>{clearTimeout(C),C=setTimeout(e,t)},U=async e=>{if(O.isValid||e){let e=r.resolver?j((await ei()).errors):await ev(c,!0);e!==s.isValid&&T.state.next({isValid:e})}},W=e=>O.isValidating&&T.state.next({isValidating:e}),q=(e,t)=>{M(s.errors,e,t),T.state.next({errors:s.errors})},$=(e,t,n,r)=>{let i=g(c,e);if(i){let o=g(x,e,v(n)?g(f,e):n);v(o)||r&&r.defaultChecked||t?M(x,e,t?o:es(i._f)):eb(e,o),w.mount&&U()}},K=(e,t,n,r,i)=>{let o=!1,a=!1,l={name:e};if(!n||r){O.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=eg(),o=a!==l.isDirty);let n=Q(g(f,e),t);a=g(s.dirtyFields,e),n?G(s.dirtyFields,e):M(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||O.dirtyFields&&!n!==a}if(n){let t=g(s.touchedFields,e);t||(M(s.touchedFields,e,n),l.touchedFields=s.touchedFields,o=o||O.touchedFields&&t!==n)}return o&&i&&T.state.next(l),o?l:{}},er=(t,r,i,o)=>{let a=g(s.errors,t),l=O.isValid&&D(r)&&s.isValid!==r;if(e.delayError&&i?(n=H(()=>q(t,i)))(e.delayError):(clearTimeout(C),n=null,i?M(s.errors,t,i):G(s.errors,t)),(i?!Q(a,i):a)||!j(o)||l){let e={...o,...l&&D(r)?{isValid:r}:{},errors:s.errors,name:t};s={...s,...e},T.state.next(e)}W(!1)},ei=async e=>r.resolver(x,r.context,el(e||E.mount,c,r.criteriaMode,r.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await ei();if(e)for(let n of e){let e=g(t,n);e?M(s.errors,n,e):G(s.errors,n)}else s.errors=t;return t},ev=async(e,t,n={valid:!0})=>{for(let i in e){let o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=E.array.has(e.name),a=await Y(o,x,B,r.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(n.valid=!1,t))break;t||(g(a,e.name)?i?R(s.errors,a,e.name):M(s.errors,e.name,a[e.name]):G(s.errors,e.name))}i&&await ev(i,t,n)}}return n.valid},eg=(e,t)=>(e&&t&&M(x,e,t),!Q(ek(),f)),ey=(e,t,n)=>_(e,E,{...w.mount?x:v(t)?f:S(e)?{[e]:t}:t},n,t),eb=(e,t,n={})=>{let r=g(c,e),o=t;if(r){let n=r._f;n&&(n.disabled||M(x,e,ea(t,n)),o=z(n.ref)&&a(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach(e=>e.checked=e.value===o):L(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||T.values.next({name:e,values:{...x}})))}(n.shouldDirty||n.shouldTouch)&&K(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&eE(e)},ex=(e,t,n)=>{for(let r in t){let i=t[r],a=`${e}.${r}`,s=g(c,a);!E.array.has(e)&&J(i)&&(!s||s._f)||o(i)?eb(a,i,n):ex(a,i,n)}},ew=(e,n,r={})=>{let i=g(c,e),o=E.array.has(e),l=p(n);M(x,e,l),o?(T.array.next({name:e,values:{...x}}),(O.isDirty||O.dirtyFields)&&r.shouldDirty&&T.state.next({name:e,dirtyFields:eo(f,x),isDirty:eg(e,l)})):!i||i._f||a(l)?eb(e,l,r):ex(e,l,r),N(e,E)&&T.state.next({...s}),T.values.next({name:e,values:{...x}}),w.mount||t()},ej=async e=>{let t=e.target,i=t.name,o=!0,a=g(c,i);if(a){let l,d;let f=t.type?es(a._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(a._f)&&!r.resolver&&!g(s.errors,i)&&!a._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,Z,I),m=N(i,E,h);M(x,i,f),h?(a._f.onBlur&&a._f.onBlur(e),n&&n(0)):a._f.onChange&&a._f.onChange(e);let v=K(i,f,h,!1),b=!j(v)||m;if(h||T.values.next({name:i,type:e.type,values:{...x}}),p)return O.isValid&&U(),b&&T.state.next({name:i,...m?{}:v});if(!h&&m&&T.state.next({...s}),W(!0),r.resolver){let{errors:e}=await ei([i]),t=ed(s.errors,c,i),n=ed(e,c,t.name||i);l=n.error,i=n.name,d=j(e)}else l=(await Y(a,x,B,r.shouldUseNativeValidation))[i],(o=isNaN(f)||f===g(x,i,f))&&(l?d=!1:O.isValid&&(d=await ev(c,!0)));o&&(a._f.deps&&eE(a._f.deps),er(i,d,l,v))}},eE=async(e,t={})=>{let n,i;let o=k(e);if(W(!0),r.resolver){let t=await em(v(e)?e:o);n=j(t),i=e?!o.some(e=>g(t,e)):n}else e?((i=(await Promise.all(o.map(async e=>{let t=g(c,e);return await ev(t&&t._f?{[e]:t}:t)}))).every(Boolean))||s.isValid)&&U():i=n=await ev(c);return T.state.next({...!S(e)||O.isValid&&n!==s.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&A(c,e=>e&&g(s.errors,e),e?o:E.mount),i},ek=e=>{let t={...f,...w.mount?x:{}};return v(e)?t:S(e)?g(t,e):e.map(e=>g(t,e))},eS=(e,t)=>({invalid:!!g((t||s).errors,e),isDirty:!!g((t||s).dirtyFields,e),isTouched:!!g((t||s).touchedFields,e),error:g((t||s).errors,e)}),e_=(e,t={})=>{for(let n of e?k(e):E.mount)E.mount.delete(n),E.array.delete(n),t.keepValue||(G(c,n),G(x,n)),t.keepError||G(s.errors,n),t.keepDirty||G(s.dirtyFields,n),t.keepTouched||G(s.touchedFields,n),r.shouldUnregister||t.keepDefaultValue||G(f,n);T.values.next({values:{...x}}),T.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||U()},eC=(e,t={})=>{let n=g(c,e),i=D(t.disabled);return M(c,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),E.mount.add(e),n?i&&M(x,e,t.disabled?void 0:g(x,e,es(n._f))):$(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.shouldUseNativeValidation?{required:!!t.required,min:eu(t.min),max:eu(t.max),minLength:eu(t.minLength),maxLength:eu(t.maxLength),pattern:eu(t.pattern)}:{},name:e,onChange:ej,onBlur:ej,ref:i=>{if(i){eC(e,t),n=g(c,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(M(c,e,{_f:{...n._f,...o?{refs:[...a.filter(en),r,...Array.isArray(g(f,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),$(e,!1,void 0,r))}else(n=g(c,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(d(E.array,e)&&w.action)&&E.unMount.add(e)}}},eO=()=>r.shouldFocusError&&A(c,e=>e&&g(s.errors,e),E.mount),eM=(n,r={})=>{let i=n||f,o=p(i),a=n&&!j(n)?o:f;if(r.keepDefaultValues||(f=i),!r.keepValues){if(r.keepDirtyValues||V)for(let e of E.mount)g(s.dirtyFields,e)?M(a,e,g(x,e)):ew(e,g(a,e));else{if(h&&v(n))for(let e of E.mount){let t=g(c,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(z(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}x=e.shouldUnregister?r.keepDefaultValues?p(f):{}:o,T.array.next({values:{...a}}),T.values.next({values:{...a}})}E={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!O.isValid||!!r.keepIsValid,w.watch=!!e.shouldUnregister,T.state.next({submitCount:r.keepSubmitCount?s.submitCount:0,isDirty:r.keepDirty?s.isDirty:!!(r.keepDefaultValues&&!Q(n,f)),isSubmitted:!!r.keepIsSubmitted&&s.isSubmitted,dirtyFields:r.keepDirtyValues?s.dirtyFields:r.keepDefaultValues&&n?eo(f,n):{},touchedFields:r.keepTouched?s.touchedFields:{},errors:r.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eT=(e,t)=>eM(F(e)?e(x):e,t);return{control:{register:eC,unregister:e_,getFieldState:eS,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:U,_removeUnmounted:()=>{for(let e of E.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&e_(e)}E.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,o=!0)=>{if(r&&n){if(w.action=!0,o&&Array.isArray(g(c,e))){let t=n(g(c,e),r.argA,r.argB);i&&M(c,e,t)}if(o&&Array.isArray(g(s.errors,e))){let t=n(g(s.errors,e),r.argA,r.argB);i&&M(s.errors,e,t),eh(s.errors,e)}if(O.touchedFields&&o&&Array.isArray(g(s.touchedFields,e))){let t=n(g(s.touchedFields,e),r.argA,r.argB);i&&M(s.touchedFields,e,t)}O.dirtyFields&&(s.dirtyFields=eo(f,x)),T.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else M(x,e,t)},_getFieldArray:t=>m(g(w.mount?x:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eM,_resetDefaultValues:()=>F(r.defaultValues)&&r.defaultValues().then(e=>{eT(e,r.resetOptions),T.state.next({isLoading:!1})}),_updateFormState:e=>{s={...s,...e}},_subjects:T,_proxyFormState:O,get _fields(){return c},get _formValues(){return x},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return E},set _names(value){E=value},get _formState(){return s},set _formState(value){s=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:eE,register:eC,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=p(x);if(T.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);G(s.errors,"root"),j(s.errors)?(T.state.next({errors:{}}),await e(i,n)):(t&&await t({...s.errors},n),eO(),setTimeout(eO)),T.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:j(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>F(e)?T.values.subscribe({next:n=>e(ey(void 0,t),n)}):ey(e,t,!0),setValue:ew,getValues:ek,reset:eT,resetField:(e,t={})=>{g(c,e)&&(v(t.defaultValue)?ew(e,g(f,e)):(ew(e,t.defaultValue),M(f,e,t.defaultValue)),t.keepTouched||G(s.touchedFields,e),t.keepDirty||(G(s.dirtyFields,e),s.isDirty=t.defaultValue?eg(e,g(f,e)):eg()),!t.keepError&&(G(s.errors,e),O.isValid&&U()),T.state.next({...s}))},clearErrors:e=>{e&&k(e).forEach(e=>G(s.errors,e)),T.state.next({errors:e?s.errors:{}})},unregister:e_,setError:(e,t,n)=>{let r=(g(c,e,{_f:{}})._f||{}).ref;M(s.errors,e,{...t,ref:r}),T.state.next({name:e,errors:s.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},setFocus:(e,t={})=>{let n=g(c,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eS}}(e,()=>s(e=>({...e}))),formState:n});let c=t.current.control;return c._options=e,!function(e){let t=r.useRef(e);t.current=e,r.useEffect(()=>{let n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}({subject:c._subjects.state,next:e=>{E(e,c._proxyFormState,c._updateFormState,!0)&&s({...c._formState})}}),r.useEffect(()=>{e.values&&!Q(e.values,c._defaultValues)?c._reset(e.values,c._options.resetOptions):c._resetDefaultValues()},[e.values,c]),r.useEffect(()=>{c._state.mount||(c._updateValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),t.current.formState=w(n,c),t.current}},79381:function(e,t,n){"use strict";n.d(t,{J$:function(){return J},ZP:function(){return Q},JG:function(){return Z},kY:function(){return K}});var r,i=n(2784),o=n(43100);let a=new WeakMap,s={},l={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",v=typeof window!=m,g=typeof document!=m,y=()=>v&&typeof window.requestAnimationFrame!=m,b=(e,t)=>{let n=a.get(e);return[()=>e.get(t)||s,r=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),n[5](t,p(i,r),i||s)}},n[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},x=new WeakMap,w=0,j=e=>{let t,n;let r=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=x.get(e))return t;if(t=++w+"~",x.set(e,t),i==Array){for(n=0,t="@";n(g&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{E=!0,e()},n=()=>{E=!1};return k("online",t),k("offline",n),()=>{S("online",t),S("offline",n)}}},C=!i.useId,O=!v||"Deno"in window,M=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),T=O?i.useEffect:i.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,P=!O&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),N=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?j(e):"",t]},R=0,D=()=>++R;var L={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function F(...e){let[t,n,r,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.throwOnError;if(h(n)){let e=[],r=t.keys();for(let i=r.next();!i.done;i=r.next()){let r=i.value;!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r)}return Promise.all(e.map(g))}return g(n);async function g(n){let i;let[o]=N(n);if(!o)return;let[l,p]=b(t,o),[g,y,x]=a.get(t),w=g[o],j=()=>d&&(delete x[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return j();let E=r,k=D();y[o]=[k,0];let S=!f(u),_=l(),C=_.data,O=_._c,M=f(O)?C:O;if(S&&p({data:u=h(u)?u(M):u,_c:M}),h(E))try{E=E(M)}catch(e){i=e}if(E&&h(E.then)){if(E=await E.catch(e=>{i=e}),k!==y[o][0]){if(i)throw i;return E}i&&S&&m(i)&&(s=!0,p({data:E=M,_c:c}))}s&&!i&&(h(s)&&(E=s(E,M)),p({data:E,_c:c})),y[o][1]=D();let T=await j();if(p({_c:c}),i){if(v)throw i;return}return s?T:E}}let z=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},V=(e,t)=>{if(!a.has(e)){let n=p(_,t),r={},i=F.bind(c,e),o=u,s={},l=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},f=()=>{if(!a.has(e)&&(a.set(e,[r,{},{},{},i,d,l]),!O)){let t=n.initFocus(setTimeout.bind(c,z.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,z.bind(c,r,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[I,Z]=V(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(f(o)||!(a>o))&&setTimeout(r,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:P?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:P?5e3:3e3,compare:(e,t)=>j(e)==j(t),isPaused:()=>!1,cache:I,mutate:Z,fallback:{}},{isOnline:()=>E,isVisible:()=>{let e=g&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let n=p(e,t);if(t){let{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=p(i,a))}return n},U=(0,i.createContext)({}),W=v&&window.__SWR_DEVTOOLS_USE__,q=W?window.__SWR_DEVTOOLS_USE__:[],$=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K=()=>p(B,(0,i.useContext)(U)),Y=q.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=a.get(I),o=i[r];return o?(delete i[r],o):n(...e)});return e(t,i,r)}),G=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let X={dedupe:!0},J=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),o=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,i.useMemo)(()=>r?o:H(n,o),[r,n,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=V(s(a.cache||I),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),T(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:a}))},"defaultValue",{value:B});var Q=(r=(e,t,n)=>{let{cache:r,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:x}=n,[w,j,E]=a.get(r),[k,S]=N(e),_=(0,i.useRef)(!1),A=(0,i.useRef)(!1),P=(0,i.useRef)(k),R=(0,i.useRef)(t),z=(0,i.useRef)(n),V=()=>z.current,I=()=>V().isVisible()&&V().isOnline(),[Z,B,H,U]=b(r,k),W=(0,i.useRef)({}).current,q=f(u)?n.fallback[k]:u,$=(e,t)=>{let n=!0;for(let r in W)"data"===r?s(t[r],e[r])||f(e[r])&&s(t[r],ei)||(n=!1):t[r]!==e[r]&&(n=!1);return n},K=(0,i.useMemo)(()=>{let e=!!k&&!!t&&(f(d)?!V().isPaused()&&!l&&(!!f(m)||m):d),n=t=>{let n=p(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=Z(),i=U(),o=n(r),a=r===i?o:n(i),s=o;return[()=>{let e=n(Z());return $(e,s)?s:s=e},()=>a]},[r,k]),Y=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(k,(t,n)=>{$(n,t)||e()}),[r,k]),K[0],K[1]),J=!_.current,Q=w[k]&&w[k].length>0,ee=Y.data,et=f(ee)?q:ee,en=Y.error,er=(0,i.useRef)(et),ei=x?f(ee)?er.current:ee:et,eo=(!Q||!!f(en))&&(J&&!f(d)?d:!V().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(k&&t&&J&&eo),es=f(Y.isValidating)?ea:Y.isValidating,el=f(Y.isLoading)?ea:Y.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!k||!i||A.current||V().isPaused())return!1;let o=!0,a=e||{},l=!E[k]||!a.dedupe,u=()=>C?!A.current&&k===P.current&&_.current:k===P.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=E[k];e&&e[1]===r&&delete E[k]},v={isValidating:!0};f(Z().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(Z().data)&&setTimeout(()=>{o&&u()&&V().onLoadingSlow(k,n)},n.loadingTimeout),E[k]=[i(S),D()]),[t,r]=E[k],t=await t,l&&setTimeout(m,n.dedupingInterval),!E[k]||E[k][1]!==r)return l&&u()&&V().onDiscarded(k),!1;d.error=c;let e=j[k];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&V().onDiscarded(k),!1;let a=Z().data;d.data=s(a,t)?a:t,l&&u()&&V().onSuccess(t,k,n)}catch(n){m();let e=V(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,k,e),(!0===t||h(t)&&t(n))&&I()&&e.onErrorRetry(n,k,e,e=>{let t=w[k];t&&t[0]&&t[0](L.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[k,r]),ec=(0,i.useCallback)((...e)=>F(r,P.current,...e),[]);if(T(()=>{R.current=t,z.current=n,f(ee)||(er.current=ee)}),T(()=>{if(!k)return;let e=eu.bind(c,X),t=0,n=G(k,w,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();V().revalidateOnFocus&&n>t&&I()&&(t=n+V().focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)V().revalidateOnReconnect&&I()&&e();else if(n==L.MUTATE_EVENT)return eu();else if(n==L.ERROR_REVALIDATE_EVENT)return eu(r)});return A.current=!1,P.current=k,_.current=!0,B({_k:S}),eo&&(f(et)||O?e():M(e)),()=>{A.current=!0,n()}},[k]),T(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!Z().error&&(g||V().isVisible())&&(y||V().isOnline())?eu(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,k]),(0,i.useDebugValue)(ei),l&&f(et)&&k){if(!C&&O)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,z.current=n,A.current=!1,f(en)?eu(X):en}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,en},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=K(),[n,i,o]=$(e),a=H(t,o),s=r,{use:l}=a,u=(l||[]).concat(Y);for(let e=u.length;e--;)s=u[e](s);return s(n,i||a.fetcher||null,a)})},22970:function(e,t,n){"use strict";n.d(t,{CR:function(){return s},Jh:function(){return a},_T:function(){return i},ev:function(){return l},mG:function(){return o},pi:function(){return r}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function o(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;in.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,u=e;s||(u=this._cast(u,F({assert:!1},t)));let c={value:u,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},d=[];this._typeError&&d.push(this._typeError);let f=[];this._whitelistError&&f.push(this._whitelistError),this._blacklistError&&f.push(this._blacklistError),C({args:c,value:u,path:i,sync:r,tests:d,endEarly:l},e=>{if(e)return void n(e,u);C({tests:this.tests.concat(f),args:c,path:i,sync:r,value:u,endEarly:l},n)})}validate(e,t,n){let r=this.resolve(F({},t,{value:e}));return"function"==typeof n?r._validate(e,t,n):new Promise((n,i)=>r._validate(e,t,(e,t)=>{e?i(e):n(t)}))}validateSync(e,t){let n;return this.resolve(F({},t,{value:e}))._validate(e,F({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(S.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(S.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):r(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=d.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=d.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=d.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let n=this.clone(),r=R(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>e.OPTIONS.name!==t.name||!i&&e.OPTIONS.test!==r.OPTIONS.test),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=j(e).map(e=>new P(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new w(r,t)),n}typeError(e){let t=this.clone();return t._typeError=R({message:e,name:"typeError",test(e){return!!(void 0===e||this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=d.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=R({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e,t=d.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=R({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:n}=e.spec,r={meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,n)=>n.findIndex(t=>t.name===e.name)===t)};return r}}for(let e of(z.prototype.__isYupSchema__=!0,["validate","validateSync"]))z.prototype[`${e}At`]=function(t,n,r={}){let{parent:i,parentPath:o,schema:a}=function(e,t,n,r=n){let i,o,a;return t?((0,T.forEach)(t,(s,l,u)=>{let c=l?D(s):s;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=u?parseInt(c,10):0;if(n&&r>=n.length)throw Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[r],e=e.innerType}if(!u){if(!e.fields||!e.fields[c])throw Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);i=n,n=n&&n[c],e=e.fields[c]}o=c,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}(this,t,n,r.context);return a[e](i&&i[o],F({},r,{parent:i,path:t}))};for(let e of["equals","is"])z.prototype[e]=z.prototype.oneOf;for(let e of["not","nope"])z.prototype[e]=z.prototype.notOneOf;z.prototype.optional=z.prototype.notRequired,z.prototype;var V=e=>null==e;let I=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,Z=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,B=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,H=e=>V(e)||e===e.trim(),U=({}).toString();function W(){return new q}class q extends z{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;let t=null!=e&&e.toString?e.toString():e;return t===U?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=f.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return V(t)||t.length===this.resolve(e)}})}min(e,t=f.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return V(t)||t.length>=this.resolve(e)}})}max(e,t=f.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return V(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?{excludeEmptyString:i=!1,message:n,name:r}=t:n=t),this.test({name:r||"matches",message:n||f.matches,params:{regex:e},test:t=>V(t)||""===t&&i||-1!==t.search(e)})}email(e=f.email){return this.matches(I,{name:"email",message:e,excludeEmptyString:!0})}url(e=f.url){return this.matches(Z,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=f.uuid){return this.matches(B,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=f.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:H})}lowercase(e=f.lowercase){return this.transform(e=>V(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>V(e)||e===e.toLowerCase()})}uppercase(e=f.uppercase){return this.transform(e=>V(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>V(e)||e===e.toUpperCase()})}}W.prototype=q.prototype;let $=e=>e!=+e;function K(){return new Y}class Y extends z{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(e){let t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!$(e)}min(e,t=h.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return V(t)||t>=this.resolve(e)}})}max(e,t=h.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return V(t)||t<=this.resolve(e)}})}lessThan(e,t=h.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return V(t)||tthis.resolve(e)}})}positive(e=h.positive){return this.moreThan(0,e)}negative(e=h.negative){return this.lessThan(0,e)}integer(e=h.integer){return this.test({name:"integer",message:e,test:e=>V(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>V(e)?e:0|e)}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(t=>V(t)?t:Math[e](t))}}K.prototype=Y.prototype;var G=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let X=new Date(""),J=e=>"[object Date]"===Object.prototype.toString.call(e);function Q(){return new ee}class ee extends z{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=G.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,(void 0===n[8]||""===n[8])&&(void 0===n[9]||""===n[9])?t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7]):("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?X:new Date(e)})})}_typeCheck(e){return J(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(P.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=p.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return V(e)||e>=this.resolve(n)}})}max(e,t=p.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return V(e)||e<=this.resolve(n)}})}}ee.INVALID_DATE=X,Q.prototype=ee.prototype,Q.INVALID_DATE=X;var et=n(57370),en=n.n(et),er=n(96009),ei=n.n(er),eo=n(19950),ea=n.n(eo),es=n(95159),el=n.n(es);function eu(e,t){let n=1/0;return e.some((e,r)=>{var i;if((null==(i=t.path)?void 0:i.indexOf(e))!==-1)return n=r,!0}),n}function ec(e){return(t,n)=>eu(e,t)-eu(e,n)}function ed(){return(ed=Object.assign||function(e){for(var t=1;t"[object Object]"===Object.prototype.toString.call(e),eh=ec([]);class ep extends z{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=eh,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return ef(e)||"function"==typeof e}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),s={},l=ed({},t,{parent:s,__validating:t.__validating||!1}),u=!1;for(let e of a){let n=i[e],a=x()(r,e);if(n){let i;let o=r[e];l.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(n=n.resolve({value:o,context:t.context,parent:s}))?n.spec:void 0,c=null==a?void 0:a.strict;if(null==a?void 0:a.strip){u=u||e in r;continue}void 0!==(i=t.__validating&&c?r[e]:n.cast(r[e],l))&&(s[e]=i)}else a&&!o&&(s[e]=r[e]);s[e]!==r[e]&&(u=!0)}return u?s:r}_validate(e,t={},n){let r=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,u)=>{if(e){if(!S.isError(e)||s)return void n(e,u);r.push(e)}if(!l||!ef(u)){n(r[0]||null,u);return}a=a||u,C({sync:i,tests:this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];if(s&&"validate"in s){s.validate(u[e],ed({},t,{path:i,from:o,strict:!0,parent:u,originalValue:a[e]}),r);return}r(null)}),value:u,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)})}clone(e){let t=super.clone(e);return t.fields=ed({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){let r=n[e];void 0===r?n[e]=t:r instanceof z&&t instanceof z&&(n[e]=t.concat(r))}return t.withMutation(()=>t.shape(n,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{let n=this.fields[t];e[t]="default"in n?n.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=ec(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=(0,T.split)(e)[0];r.add(o),i.has(`${t}-${o}`)||n.push([t,o])}for(let t in e)if(x()(e,t)){let n=e[t];r.add(t),P.isRef(n)&&n.isSibling?o(n.path,t):b(n)&&"deps"in n&&n.deps.forEach(e=>o(e,t))}return el().array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){let t={};for(let n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),n=t.fields;for(let r of(t.fields={},e))delete n[r];return t.withMutation(()=>t.shape(n))}from(e,t,n){let r=(0,T.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return x()(i,e)&&(o=ed({},i),n||delete o[e],o[t]=r(i)),o})}noUnknown(e=!0,t=m.noUnknown){"string"==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let n;if(null==t)return!0;let r=(n=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===n.indexOf(e)));return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=m.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&ea()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(ei())}snakeCase(){return this.transformKeys(en())}constantCase(){return this.transformKeys(e=>en()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=M()(this.fields,e=>e.describe()),e}}function em(e){return new ep(e)}em.prototype=ep.prototype},44868:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(f,{Animated:()=>x,AnimatedArray:()=>O,AnimatedObject:()=>C,AnimatedString:()=>E,AnimatedValue:()=>w,createHost:()=>V,getAnimated:()=>v,getAnimatedType:()=>A,getPayload:()=>y,isAnimated:()=>m,setAnimated:()=>g}),e.exports=d(a({},"__esModule",{value:!0}),f);var h=n(6901),p=Symbol.for("Animated:node"),m=e=>!!e&&e[p]===e,v=e=>e&&e[p],g=(e,t)=>(0,h.defineHidden)(e,p,t),y=e=>e&&e[p]&&e[p].getPayload(),x=class{constructor(){g(this,this)}getPayload(){return this.payload||[]}},b=n(6901),w=class extends x{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,b.is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new w(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return b.is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,b.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},j=n(6901),E=class extends w{constructor(e){super(0),this._string=null,this._toString=(0,j.createInterpolator)({output:[e,e]})}static create(e){return new E(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(j.is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=(0,j.createInterpolator)({output:[this.getValue(),e]})),this._value=0,super.reset()}},k=n(6901),S=n(6901),_={dependencies:null},C=class extends x{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return(0,S.eachProp)(this.source,(n,r)=>{m(n)?t[r]=n.getValue(e):(0,S.hasFluidValue)(n)?t[r]=(0,S.getFluidValue)(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,S.each)(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return(0,S.eachProp)(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){_.dependencies&&(0,S.hasFluidValue)(e)&&_.dependencies.add(e);let t=y(e);t&&(0,S.each)(t,e=>this.add(e))}},O=class extends C{constructor(e){super(e)}static create(e){return new O(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(M)),!0)}};function M(e){return((0,k.isAnimatedString)(e)?E:w).create(e)}var T=n(6901);function A(e){let t=v(e);return t?t.constructor:T.is.arr(e)?O:(0,T.isAnimatedString)(e)?E:w}var P=n(6901),N=(i=null!=(r=n(2784))?o(u(r)):{},d(r&&r.__esModule?i:a(i,"default",{value:r,enumerable:!0}),r)),R=n(2784),D=n(6901),L=(e,t)=>{let n=!D.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,R.forwardRef)((r,i)=>{var o;let a;let s=(0,R.useRef)(null),l=n&&(0,R.useCallback)(e=>{s.current=(i&&(D.is.fun(i)?i(e):i.current=e),e)},[i]),[u,c]=(o=r,a=new Set,_.dependencies=a,o.style&&(o={...o,style:t.createAnimatedStyle(o.style)}),o=new C(o),_.dependencies=null,[o,a]),d=(0,D.useForceUpdate)(),f=()=>{let e=s.current;(!n||e)&&(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))===!1&&d()},h=new F(f,c),p=(0,R.useRef)();(0,D.useIsomorphicLayoutEffect)(()=>(p.current=h,(0,D.each)(c,e=>(0,D.addFluidObserver)(e,h)),()=>{p.current&&((0,D.each)(p.current.deps,e=>(0,D.removeFluidObserver)(e,p.current)),D.raf.cancel(p.current.update))})),(0,R.useEffect)(f,[]),(0,D.useOnce)(()=>()=>{let e=p.current;(0,D.each)(e.deps,t=>(0,D.removeFluidObserver)(t,e))});let m=t.getComponentProps(u.getValue());return N.createElement(e,{...m,ref:l})})},F=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&D.raf.write(this.update)}},z=Symbol.for("AnimatedComponent"),V=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new C(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=I(e)||"Anonymous";return(e=P.is.str(e)?o[e]||(o[e]=L(e,i)):e[z]||(e[z]=L(e,i))).displayName=`Animated(${t})`,e};return(0,P.eachProp)(e,(t,n)=>{P.is.arr(e)&&(n=I(t)),o[n]=o(t)}),{animated:o}},I=e=>P.is.str(e)?e:e&&P.is.str(e.displayName)?e.displayName:P.is.fun(e)&&e.name||null},22360:function(e,t,n){"use strict";var r,i,o=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of l(t))c.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=s(t,i))||r.enumerable});return e},f=(e,t,n)=>(n=null!=e?o(u(e)):{},d(!t&&e&&e.__esModule?n:a(n,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})})(h,{BailSignal:()=>J,Controller:()=>ej,FrameValue:()=>ei,Globals:()=>tl.Globals,Interpolation:()=>tn,Spring:()=>e5,SpringContext:()=>eN,SpringRef:()=>eL,SpringValue:()=>ed,Trail:()=>e8,Transition:()=>e7,config:()=>F,createInterpolator:()=>tc.createInterpolator,easings:()=>tc.easings,inferTo:()=>k,interpolate:()=>ts,to:()=>ta,update:()=>tu,useChain:()=>T,useInView:()=>e3,useIsomorphicLayoutEffect:()=>tc.useIsomorphicLayoutEffect,useReducedMotion:()=>tc.useReducedMotion,useResize:()=>e0,useScroll:()=>eJ,useSpring:()=>ez,useSpringRef:()=>eZ,useSpringValue:()=>eH,useSprings:()=>eF,useTrail:()=>eW,useTransition:()=>eY}),e.exports=d(a({},"__esModule",{value:!0}),h);var p=n(6901),m=n(6901);function v(e,...t){return m.is.fun(e)?e(...t):e}var g=(e,t)=>!0===e||!!(t&&e&&(m.is.fun(e)?e(t):(0,m.toArray)(e).includes(t))),y=(e,t)=>m.is.obj(e)?t&&e[t]:e,x=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,b=e=>e,w=(e,t=b)=>{let n=j;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);m.is.und(n)||(r[i]=n)}return r},j=["config","onProps","onStart","onChange","onPause","onResume","onRest"],E={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function k(e){let t=function(e){let t={},n=0;if((0,m.eachProp)(e,(e,r)=>{E[r]||(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return(0,m.eachProp)(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function S(e){return e=(0,m.getFluidValue)(e),m.is.arr(e)?e.map(S):(0,m.isAnimatedString)(e)?m.Globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function _(e){for(let t in e)return!0;return!1}function C(e){return m.is.fun(e)||m.is.arr(e)&&m.is.obj(e[0])}function O(e,t){e.ref?.delete(e),t?.delete(e)}function M(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function T(e,t,n=1e3){(0,p.useIsomorphicLayoutEffect)(()=>{if(t){let r=0;(0,p.each)(e,(e,i)=>{let o=e.current;if(o.length){let a=n*t[i];isNaN(a)?a=r:r=a,(0,p.each)(o,e=>{(0,p.each)(e.queue,e=>{let t=e.delay;e.delay=e=>a+v(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();(0,p.each)(e,e=>{let n=e.current;if(n.length){let r=n.map(e=>{let t=e.queue;return e.queue=[],t});t=t.then(()=>((0,p.each)(n,(e,t)=>(0,p.each)(r[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var A=n(6901),P=n(2784),N=n(6901),R=n(6901),D=n(25447),L=n(6901),F={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},z={...F.default,mass:1,damping:1,easing:L.easings.linear,clamp:!1},V=class{constructor(){this.velocity=0,Object.assign(this,z)}};function I(e,t){if(L.is.und(t.decay)){let n=!L.is.und(t.tension)||!L.is.und(t.friction);!n&&L.is.und(t.frequency)&&L.is.und(t.damping)&&L.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Z=[],B=class{constructor(){this.changed=!1,this.values=Z,this.toValues=null,this.fromValues=Z,this.config=new V,this.immediate=!1}},H=n(6901);function U(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,u,c=g(n.cancel??r?.cancel,t);if(c)h();else{H.is.und(n.pause)||(i.paused=g(n.pause,t));let e=r?.pause;!0!==e&&(e=i.paused||g(e,t)),l=v(n.delay||0,t),e?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(u),u.cancel(),l=u.time-H.raf.now()}function f(){l>0&&!H.Globals.skipAnimation?(i.delayed=!0,u=H.raf.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(u)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{o.start({...n,callId:e,cancel:c},a)}catch(e){s(e)}}})}var W=n(6901),q=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?Y(e.get()):t.every(e=>e.noop)?$(e.get()):K(e.get(),t.every(e=>e.finished)),$=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),K=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Y=e=>({value:e,cancelled:!0,finished:!1});function G(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let u=w(t,(e,t)=>"onRest"===t?void 0:e),c,d,f=new Promise((e,t)=>(c=e,d=t)),h=e=>{let t=i<=(n.cancelId||0)&&Y(r)||i!==n.asyncId&&K(r,!1);if(t)throw e.result=t,d(e),e},p=(e,t)=>{let o=new J,a=new Q;return(async()=>{if(W.Globals.skipAnimation)throw X(n),a.result=K(r,!1),d(a),a;h(o);let s=W.is.obj(e)?{...e}:{...t,to:e};s.parentId=i,(0,W.eachProp)(u,(e,t)=>{W.is.und(s[t])&&(s[t]=e)});let l=await r.start(s);return h(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(W.Globals.skipAnimation)return X(n),K(r,!1);try{let t;t=W.is.arr(e)?(async e=>{for(let t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(c),f]),m=K(r.get(),!0,!1)}catch(e){if(e instanceof J)m=e.result;else if(e instanceof Q)m=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return W.is.fun(a)&&W.raf.batchedUpdates(()=>{a(m,r,r.item)}),m})():l}function X(e,t){(0,W.flush)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var J=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Q=class extends Error{constructor(){super("SkipAnimationSignal")}},ee=n(6901),et=n(25447),en=e=>e instanceof ei,er=1,ei=class extends ee.FluidValue{constructor(){super(...arguments),this.id=er++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=(0,et.getAnimated)(this);return e&&e.getValue()}to(...e){return ee.Globals.to(this,e)}interpolate(...e){return(0,ee.deprecateInterpolate)(),ee.Globals.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){(0,ee.callFluidObservers)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ee.frameLoop.sort(this),(0,ee.callFluidObservers)(this,{type:"priority",parent:this,priority:e})}},eo=Symbol.for("SpringPhase"),ea=e=>(1&e[eo])>0,es=e=>(2&e[eo])>0,el=e=>(4&e[eo])>0,eu=(e,t)=>t?e[eo]|=3:e[eo]&=-3,ec=(e,t)=>t?e[eo]|=4:e[eo]&=-5,ed=class extends ei{constructor(e,t){if(super(),this.animation=new B,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!R.is.und(e)||!R.is.und(t)){let n=R.is.obj(e)?{...e}:{...t,from:e};R.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(es(this)||this._state.asyncTo)||el(this)}get goal(){return(0,R.getFluidValue)(this.animation.to)}get velocity(){let e=(0,D.getAnimated)(this);return e instanceof D.AnimatedValue?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return ea(this)}get isAnimating(){return es(this)}get isPaused(){return el(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:o}=r,a=(0,D.getPayload)(r.to);!a&&(0,R.hasFluidValue)(r.to)&&(i=(0,R.toArray)((0,R.getFluidValue)(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==D.AnimatedString?1:a?a[l].lastPosition:i[l],c=r.immediate,d=u;if(!c){if(d=s.lastPosition,o.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[l],i=null!=s.v0?s.v0:s.v0=R.is.arr(o.velocity)?o.velocity[l]:o.velocity,a,f=o.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(R.is.und(o.duration)){if(o.decay){let e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=f,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;let t=o.restVelocity||f/10,r=o.clamp?0:o.bounce,l=!R.is.und(r),h=n==u?s.v0>0:nt)&&(c=Math.abs(u-d)<=f));++e){l&&(d==u||d>u==h)&&(a=-a*r,d=u);let e=(-(1e-6*o.tension)*(d-u)+-(.001*o.friction)*a)/o.mass;a+=1*e,d+=1*a}}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(r=(o.progress||0)+t/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),a=((d=n+o.easing(r)*(u-n))-s.lastPosition)/e,c=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)});let s=(0,D.getAnimated)(this),l=s.getValue();if(t){let e=(0,R.getFluidValue)(r.to);(l!==e||n)&&!o.decay?(s.setValue(e),this._onChange(e)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return R.raf.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(es(this)){let{to:e,config:t}=this.animation;R.raf.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return R.is.und(e)?(n=this.queue||[],this.queue=[]):n=[R.is.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>q(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),X(this._state,e&&this._lastCallId),R.raf.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=R.is.obj(n)?n[t]:n)||C(n))&&(n=void 0),null==(r=R.is.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return ea(this)||(e.reverse&&([n,r]=[r,n]),r=(0,R.getFluidValue)(r),R.is.und(r)?(0,D.getAnimated)(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,w(e,(e,t)=>/^on/.test(t)?y(e,n):e)),eg(this,e,"onProps"),ey(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let o=this._state;return U(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{el(this)||(ec(this,!0),(0,R.flushCalls)(o.pauseQueue),ey(this,"onPause",K(this,ef(this,this.animation.to)),this))},resume:()=>{el(this)&&(ec(this,!1),es(this)&&this._resume(),(0,R.flushCalls)(o.resumeQueue),ey(this,"onResume",K(this,ef(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=eh(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Y(this));let r=!R.is.und(e.to),i=!R.is.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Y(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||R.is.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!(0,R.isEqual)(d,u);f&&(s.from=d),d=(0,R.getFluidValue)(d);let h=!(0,R.isEqual)(c,l);h&&this._focus(c);let p=C(t.to),{config:m}=s,{decay:y,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(I(n={...n},t),t={...n,...t}),I(e,t),Object.assign(e,t),z)null==e[r]&&(e[r]=z[r]);let{frequency:r,damping:i}=e,{mass:o}=e;L.is.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,v(t.config,o),t.config!==a.config?v(a.config,o):void 0);let b=(0,D.getAnimated)(this);if(!b||R.is.und(c))return n(K(this,!0));let w=R.is.und(t.reset)?i&&!t.default:!R.is.und(d)&&g(t.reset,o),j=w?d:this.get(),E=S(c),k=R.is.num(E)||R.is.arr(E)||(0,R.isAnimatedString)(E),_=!p&&(!k||g(a.immediate||t.immediate,o));if(h){let e=(0,D.getAnimatedType)(c);if(e!==b.constructor){if(_)b=this._set(E);else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let O=b.constructor,M=(0,R.hasFluidValue)(c),T=!1;if(!M){let e=w||!ea(this)&&f;(h||e)&&(M=!(T=(0,R.isEqual)(S(j),E))),((0,R.isEqual)(s.immediate,_)||_)&&(0,R.isEqual)(m.decay,y)&&(0,R.isEqual)(m.velocity,x)||(M=!0)}if(T&&es(this)&&(s.changed&&!w?M=!0:M||this._stop(l)),!p&&((M||(0,R.hasFluidValue)(l))&&(s.values=b.getPayload(),s.toValues=(0,R.hasFluidValue)(c)?null:O==D.AnimatedString?[1]:(0,R.toArray)(E)),s.immediate==_||(s.immediate=_,_||w||this._set(l)),M)){let{onRest:e}=s;(0,R.each)(ev,e=>eg(this,t,e));let r=K(this,ef(this,l));(0,R.flushCalls)(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&R.raf.batchedUpdates(()=>{s.changed=!w,e?.(r,this),w?v(a.onRest,r):s.onStart?.(r,this)})}w&&this._set(j),p?n(G(t.to,t,this._state,this)):M?this._start():es(this)&&!h?this._pendingCalls.add(n):n($(j))}_focus(e){let t=this.animation;e!==t.to&&((0,R.getFluidObservers)(this)&&this._detach(),t.to=e,(0,R.getFluidObservers)(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;(0,R.hasFluidValue)(t)&&((0,R.addFluidObserver)(t,this),en(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;(0,R.hasFluidValue)(e)&&(0,R.removeFluidObserver)(e,this)}_set(e,t=!0){let n=(0,R.getFluidValue)(e);if(!R.is.und(n)){let e=(0,D.getAnimated)(this);if(!e||!(0,R.isEqual)(n,e.getValue())){let r=(0,D.getAnimatedType)(n);e&&e.constructor==r?e.setValue(n):(0,D.setAnimated)(this,r.create(n)),e&&R.raf.batchedUpdates(()=>{this._onChange(n,t)})}}return(0,D.getAnimated)(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,ey(this,"onStart",K(this,ef(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),v(this.animation.onChange,e,this)),v(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;(0,D.getAnimated)(this).reset((0,R.getFluidValue)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),es(this)||(eu(this,!0),el(this)||this._resume())}_resume(){R.Globals.skipAnimation?this.finish():R.frameLoop.start(this)}_stop(e,t){if(es(this)){eu(this,!1);let n=this.animation;(0,R.each)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,R.callFluidObservers)(this,{type:"idle",parent:this});let r=t?Y(this.get()):K(this.get(),ef(this,e??n.to));(0,R.flushCalls)(this._pendingCalls,r),n.changed&&(n.changed=!1,ey(this,"onRest",r,this))}}};function ef(e,t){let n=S(t),r=S(e.get());return(0,R.isEqual)(r,n)}function eh(e,t=e.loop,n=e.to){let r=v(t);if(r){let i=!0!==r&&k(r),o=(i||e).reverse,a=!i||i.reset;return ep({...e,loop:t,default:!1,pause:void 0,to:!o||C(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function ep(e){let{to:t,from:n}=e=k(e),r=new Set;return R.is.obj(t)&&em(t,r),R.is.obj(n)&&em(n,r),e.keys=r.size?Array.from(r):null,e}function em(e,t){(0,R.eachProp)(e,(e,n)=>null!=e&&t.add(n))}var ev=["onStart","onRest","onChange","onPause","onResume"];function eg(e,t,n){e.animation[n]=t[n]!==x(t,n)?y(t[n],e.key):void 0}function ey(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var ex=n(6901),eb=["onStart","onChange","onRest"],ew=1,ej=class{constructor(e,t){this.id=ew++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];ex.is.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ep(e)),this}start(e){let{queue:t}=this;return e?t=(0,ex.toArray)(e).map(ep):this.queue=[],this._flush?this._flush(this,t):(eM(this,t),eE(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;(0,ex.each)((0,ex.toArray)(t),t=>n[t].stop(!!e))}else X(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(ex.is.und(e))this.start({pause:!0});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].pause())}return this}resume(e){if(ex.is.und(e))this.start({pause:!1});else{let t=this.springs;(0,ex.each)((0,ex.toArray)(e),e=>t[e].resume())}return this}each(e){(0,ex.eachProp)(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,(0,ex.flush)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&(0,ex.flush)(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,(0,ex.flush)(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}ex.raf.onFrame(this._onFrame)}};function eE(e,t){return Promise.all(t.map(t=>ek(e,t))).then(t=>q(e,t))}async function ek(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=ex.is.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=ex.is.arr(i)||ex.is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):(0,ex.each)(eb,n=>{let r=t[n];if(ex.is.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,(0,ex.flushCalls)(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===x(t,"cancel");(c||h&&d.asyncId)&&f.push(U(++e._lastAsyncId,{props:t,state:d,actions:{pause:ex.noop,resume:ex.noop,start(t,n){h?(X(d,e._lastAsyncId),n(Y(e))):(t.onRest=s,n(G(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=q(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=eh(t,a,i);if(n)return eM(e,[n]),ek(e,n,!0)}return l&&ex.raf.batchedUpdates(()=>l(p,e,e.item)),p}function eS(e,t){let n={...e.springs};return t&&(0,ex.each)((0,ex.toArray)(t),e=>{ex.is.und(e.keys)&&(e=ep(e)),ex.is.obj(e.to)||(e={...e,to:void 0}),eO(n,e,e=>eC(e))}),e_(e,n),n}function e_(e,t){(0,ex.eachProp)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,ex.addFluidObserver)(t,e))})}function eC(e,t){let n=new ed;return n.key=e,t&&(0,ex.addFluidObserver)(n,t),n}function eO(e,t,n){t.keys&&(0,ex.each)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function eM(e,t){(0,ex.each)(t,t=>{eO(e.springs,t,t=>eC(t,e))})}var eT=f(n(2784)),eA=n(2784),eP=n(6901),eN=({children:e,...t})=>{let n=(0,eA.useContext)(eR),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=(0,eP.useMemoOne)(()=>({pause:r,immediate:i}),[r,i]);let{Provider:o}=eR;return eT.createElement(o,{value:t},e)},eR=(Object.assign(eN,eT.createContext({})),eN.Provider._context=eN,eN.Consumer._context=eN,eN);eN.Provider=eR.Provider,eN.Consumer=eR.Consumer;var eD=n(6901),eL=()=>{let e=[],t=function(t){(0,eD.deprecateDirectCall)();let r=[];return(0,eD.each)(e,(e,i)=>{if(eD.is.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return(0,eD.each)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,eD.each)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,eD.each)(e,(e,n)=>{let r=eD.is.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return(0,eD.each)(e,(e,r)=>{if(eD.is.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return(0,eD.each)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,eD.each)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return eD.is.fun(e)?e(n,t):e};return t._getProps=n,t};function eF(e,t,n){let r=N.is.fun(t)&&t;r&&!n&&(n=[]);let i=(0,P.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),o=(0,P.useRef)(0),a=(0,N.useForceUpdate)(),s=(0,P.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=eS(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{e_(e,n),s.queue.push(()=>{r(eE(e,t))}),a()}):eE(e,t)}}),[]),l=(0,P.useRef)([...s.ctrls]),u=[],c=(0,N.usePrev)(e)||0;function d(e,n){for(let i=e;i{(0,N.each)(l.current.slice(e,c),e=>{O(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,P.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>eS(e,u[t])),h=(0,P.useContext)(eN),p=(0,N.usePrev)(h),m=h!==p&&_(h);(0,N.useIsomorphicLayoutEffect)(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],(0,N.each)(e,e=>e())),(0,N.each)(l.current,(e,t)=>{i?.add(e),m&&e.start({default:h});let n=u[t];n&&(M(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,N.useOnce)(()=>()=>{(0,N.each)(s.ctrls,e=>e.stop(!0))});let v=f.map(e=>({...e}));return i?[v,i]:v}function ez(e,t){let n=A.is.fun(e),[[r],i]=eF(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}var eV=n(2784),eI=()=>eL(),eZ=()=>(0,eV.useState)(eI)[0],eB=n(6901),eH=(e,t)=>{let n=(0,eB.useConstant)(()=>new ed(e,t));return(0,eB.useOnce)(()=>()=>{n.stop()}),n},eU=n(6901);function eW(e,t,n){let r=eU.is.fun(t)&&t;r&&!n&&(n=[]);let i=!0,o,a=eF(e,(e,n)=>{let a=r?r(e,n):t;return o=a.ref,i=i&&a.reverse,a},n||[{}]);if((0,eU.useIsomorphicLayoutEffect)(()=>{(0,eU.each)(a[1].current,(e,t)=>{let n=a[1].current[t+(i?1:-1)];if(M(e,o),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||3==arguments.length){let e=o??a[1];return e._getProps=(t,n,r)=>{let i=eU.is.fun(t)?t(r,n):t;if(i){let t=e.current[r+(i.reverse?1:-1)];return t&&(i.to=t.springs),i}},a}return a[0]}var eq=f(n(2784)),e$=n(2784),eK=n(6901);function eY(e,t,n){let r=eK.is.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=(0,e$.useMemo)(()=>r||3==arguments.length?eL():void 0,[]),h=(0,eK.toArray)(e),p=[],m=(0,e$.useRef)(null),g=i?null:m.current;(0,eK.useIsomorphicLayoutEffect)(()=>{m.current=p}),(0,eK.useOnce)(()=>((0,eK.each)(p,e=>{f?.add(e.ctrl),e.ctrl.ref=f}),()=>{(0,eK.each)(m.current,e=>{e.expired&&clearTimeout(e.expirationId),O(e.ctrl,f),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):eG++})}return eK.is.und(n)?e:eK.is.fun(n)?e.map(n):(0,eK.toArray)(n)}(h,r?r():t,g),x=i&&m.current||[];(0,eK.useIsomorphicLayoutEffect)(()=>(0,eK.each)(x,({ctrl:e,item:t,key:n})=>{O(e,f),v(u,t,n)}));let b=[];if(g&&(0,eK.each)(g,(e,t)=>{e.expired?(clearTimeout(e.expirationId),x.push(e)):~(t=b[t]=y.indexOf(e.key))&&(p[t]=e)}),(0,eK.each)(h,(e,t)=>{p[t]||(p[t]={key:y[t],item:e,phase:"mount",ctrl:new ej},p[t].ctrl.item=e)}),b.length){let e=-1,{leave:n}=r?r():t;(0,eK.each)(b,(t,r)=>{let i=g[r];~t?(e=p.indexOf(i),p[e]={...i,item:h[t]}):n&&p.splice(++e,0,i)})}eK.is.fun(o)&&p.sort((e,t)=>o(e.item,t.item));let j=-a,E=(0,eK.useForceUpdate)(),S=w(t),C=new Map,T=(0,e$.useRef)(new Map),A=(0,e$.useRef)(!1);(0,eK.each)(p,(e,n)=>{let i=e.key,o=e.phase,u=r?r():t,f,h,p=v(u.delay||0,i);if("mount"==o)f=u.enter,h="enter";else{let e=0>y.indexOf(i);if("leave"!=o){if(e)f=u.leave,h="leave";else{if(!(f=u.update))return;h="update"}}else{if(e)return;f=u.enter,h="enter"}}if(f=v(f,e.item,n),!(f=eK.is.obj(f)?k(f):{to:f}).config){let t=d||S.config;f.config=v(t,e.item,n,h)}j+=a;let x={...S,delay:p+j,ref:c,immediate:u.immediate,reset:!1,...f};if("enter"==h&&eK.is.und(x.from)){let i=r?r():t,o=eK.is.und(i.initial)||g?i.from:i.initial;x.from=v(o,e.item,n)}let{onResolve:b}=x;x.onResolve=e=>{v(b,e);let t=m.current,n=t.find(e=>e.key===i);if(n&&!(e.cancelled&&"update"!=n.phase)&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){let t=v(s,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(E,r));return}}}e&&t.some(e=>e.expired)&&(T.current.delete(n),l&&(A.current=!0),E())}};let w=eS(e.ctrl,x);"leave"===h&&l?T.current.set(e,{phase:h,springs:w,payload:x}):C.set(e,{phase:h,springs:w,payload:x})});let P=(0,e$.useContext)(eN),N=(0,eK.usePrev)(P),R=P!==N&&_(P);(0,eK.useIsomorphicLayoutEffect)(()=>{R&&(0,eK.each)(p,e=>{e.ctrl.start({default:P})})},[P]),(0,eK.each)(C,(e,t)=>{if(T.current.size){let e=p.findIndex(e=>e.key===t.key);p.splice(e,1)}}),(0,eK.useIsomorphicLayoutEffect)(()=>{(0,eK.each)(T.current.size?T.current:C,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,f?.add(r),R&&"enter"==e&&r.start({default:P}),t&&(M(r,t.ref),(r.ref||f)&&!A.current?r.update(t):(r.start(t),A.current&&(A.current=!1)))})},i?void 0:n);let D=e=>eq.createElement(eq.Fragment,null,p.map((t,n)=>{let{springs:r}=C.get(t)||t.ctrl,i=e({...r},t.item,t,n);return i&&i.type?eq.createElement(i.type,{...i.props,key:eK.is.str(t.key)||eK.is.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[D,f]:D}var eG=1,eX=n(6901),eJ=({container:e,...t}={})=>{let[n,r]=ez(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return(0,eX.useIsomorphicLayoutEffect)(()=>{let t=(0,eX.onScroll)(({x:e,y:t})=>{r.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})},{container:e?.current||void 0});return()=>{(0,eX.each)(Object.values(n),e=>e.stop()),t()}},[]),n},eQ=n(6901),e0=({container:e,...t})=>{let[n,r]=ez(()=>({width:0,height:0,...t}),[]);return(0,eQ.useIsomorphicLayoutEffect)(()=>{let t=(0,eQ.onResize)(({width:e,height:t})=>{r.start({width:e,height:t,immediate:0===n.width.get()||0===n.height.get()})},{container:e?.current||void 0});return()=>{(0,eQ.each)(Object.values(n),e=>e.stop()),t()}},[]),n},e1=n(2784),e2=n(6901),e4={any:0,all:1};function e3(e,t){let[n,r]=(0,e1.useState)(!1),i=(0,e1.useRef)(),o=e2.is.fun(e)&&e,{to:a={},from:s={},...l}=o?o():{},u=o?t:e,[c,d]=ez(()=>({from:s,...l}),[]);return(0,e2.useIsomorphicLayoutEffect)(()=>{let e=i.current,{root:t,once:o,amount:l="any",...c}=u??{};if(!e||o&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,h=()=>(a&&d.start(a),r(!0),o?void 0:()=>{s&&d.start(s),r(!1)}),p=new IntersectionObserver(e=>{e.forEach(e=>{let t=f.get(e.target);if(!!t!==e.isIntersecting){if(e.isIntersecting){let t=h();e2.is.fun(t)?f.set(e.target,t):p.unobserve(e.target)}else t&&(t(),f.delete(e.target))}})},{root:t&&t.current||void 0,threshold:"number"==typeof l||Array.isArray(l)?l:e4[l],...c});return p.observe(e),()=>p.unobserve(e)},[u]),o?[i,c]:[i,n]}function e5({children:e,...t}){return e(ez(t))}var e6=n(6901);function e8({items:e,children:t,...n}){let r=eW(e.length,n);return e.map((e,n)=>{let i=t(e,n);return e6.is.fun(i)?i(r[n]):i})}function e7({items:e,children:t,...n}){return eY(e,n)(t)}var e9=n(6901),te=n(6901),tt=n(25447),tn=class extends ei{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,te.createInterpolator)(...t);let n=this._get(),r=(0,tt.getAnimatedType)(n);(0,tt.setAnimated)(this,r.create(n))}advance(e){let t=this._get(),n=this.get();(0,te.isEqual)(t,n)||((0,tt.getAnimated)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ti(this._active)&&to(this)}_get(){let e=te.is.arr(this.source)?this.source.map(te.getFluidValue):(0,te.toArray)((0,te.getFluidValue)(this.source));return this.calc(...e)}_start(){this.idle&&!ti(this._active)&&(this.idle=!1,(0,te.each)((0,tt.getPayload)(this),e=>{e.done=!1}),te.Globals.skipAnimation?(te.raf.batchedUpdates(()=>this.advance()),to(this)):te.frameLoop.start(this))}_attach(){let e=1;(0,te.each)((0,te.toArray)(this.source),t=>{(0,te.hasFluidValue)(t)&&(0,te.addFluidObserver)(t,this),en(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){(0,te.each)((0,te.toArray)(this.source),e=>{(0,te.hasFluidValue)(e)&&(0,te.removeFluidObserver)(e,this)}),this._active.clear(),to(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=(0,te.toArray)(this.source).reduce((e,t)=>Math.max(e,(en(t)?t.priority:0)+1),0))}};function tr(e){return!1!==e.idle}function ti(e){return!e.size||Array.from(e).every(tr)}function to(e){e.idle||(e.idle=!0,(0,te.each)((0,tt.getPayload)(e),e=>{e.done=!0}),(0,te.callFluidObservers)(e,{type:"idle",parent:e}))}var ta=(e,...t)=>new tn(e,t),ts=(e,...t)=>((0,e9.deprecateInterpolate)(),new tn(e,t)),tl=n(6901);tl.Globals.assign({createStringInterpolator:tl.createStringInterpolator,to:(e,t)=>new tn(e,t)});var tu=tl.frameLoop.advance,tc=n(6901);r=n(8669),i=e.exports,d(h,r,"default"),i&&d(i,r,"default")},78476:function(e,t,n){"use strict";var r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,s=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},l={};s(l,{FluidValue:()=>eA,Globals:()=>u,addFluidObserver:()=>eN,callFluidObserver:()=>eM,callFluidObservers:()=>eT,clamp:()=>Q,colorToRgba:()=>ey,colors:()=>ee,createInterpolator:()=>ex,createStringInterpolator:()=>eW,defineHidden:()=>M,deprecateDirectCall:()=>eX,deprecateInterpolate:()=>eY,each:()=>P,eachProp:()=>N,easings:()=>eE,flush:()=>D,flushCalls:()=>z,frameLoop:()=>K,getFluidObservers:()=>eO,getFluidValue:()=>eC,hasFluidValue:()=>e_,hex3:()=>el,hex4:()=>eu,hex6:()=>ec,hex8:()=>ed,hsl:()=>ea,hsla:()=>es,is:()=>T,isAnimatedString:()=>eJ,isEqual:()=>A,isSSR:()=>V,noop:()=>O,onResize:()=>e6,onScroll:()=>ti,once:()=>e$,prefix:()=>eq,raf:()=>d,removeFluidObserver:()=>eR,rgb:()=>ei,rgba:()=>eo,setFluidGetter:()=>eP,toArray:()=>R,useConstant:()=>ta,useForceUpdate:()=>tf,useIsomorphicLayoutEffect:()=>tc,useMemoOne:()=>tp,useOnce:()=>tv,usePrev:()=>tx,useReducedMotion:()=>tw}),e.exports=((e,t,n,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))a.call(e,n)||void 0===n||r(e,n,{get:()=>t[n],enumerable:!(s=i(t,n))||s.enumerable});return e})(r({},"__esModule",{value:!0}),l);var u={};s(u,{assign:()=>H,colors:()=>I,createStringInterpolator:()=>L,skipAnimation:()=>Z,to:()=>F,willAdvance:()=>B});var c=_(),d=e=>j(e,c),f=_();d.write=e=>j(e,f);var h=_();d.onStart=e=>j(e,h);var p=_();d.onFrame=e=>j(e,p);var m=_();d.onFinish=e=>j(e,m);var v=[];d.setTimeout=(e,t)=>{let n=d.now()+t,r=()=>{let e=v.findIndex(e=>e.cancel==r);~e&&v.splice(e,1),b-=~e?1:0},i={time:n,handler:e,cancel:r};return v.splice(g(n),0,i),b+=1,E(),i};var g=e=>~(~v.findIndex(t=>t.time>e)||~v.length);d.cancel=e=>{h.delete(e),p.delete(e),m.delete(e),c.delete(e),f.delete(e)},d.sync=e=>{w=!0,d.batchedUpdates(e),w=!1},d.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,d.onStart(n)}return r.handler=e,r.cancel=()=>{h.delete(n),t=null},r};var y="u">typeof window?window.requestAnimationFrame:()=>{};d.use=e=>y=e,d.now="u">typeof performance?()=>performance.now():Date.now,d.batchedUpdates=e=>e(),d.catch=console.error,d.frameLoop="always",d.advance=()=>{"demand"!==d.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):S()};var x=-1,b=0,w=!1;function j(e,t){w?(t.delete(e),e(0)):(t.add(e),E())}function E(){x<0&&(x=0,"demand"!==d.frameLoop&&y(k))}function k(){~x&&(y(k),d.batchedUpdates(S))}function S(){let e=x,t=g(x=d.now());if(t&&(C(v.splice(0,t),e=>e.handler()),b-=t),!b){x=-1;return}h.flush(),c.flush(e?Math.min(64,x-e):16.667),p.flush(),f.flush(),m.flush()}function _(){let e=new Set,t=e;return{add(n){b+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(b-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,b-=t.size,C(t,t=>t(n)&&e.add(t)),b+=e.size,t=e)}}}function C(e,t){e.forEach(e=>{try{t(e)}catch(e){d.catch(e)}})}function O(){}var M=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),T={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function A(e,t){if(T.arr(e)){if(!T.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function N(e,t,n){if(T.arr(e)){for(let r=0;rT.und(e)?[]:T.arr(e)?e:[e];function D(e,t){if(e.size){let n=Array.from(e);e.clear(),P(n,t)}}var L,F,z=(e,...t)=>D(e,e=>e(...t)),V=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),I=null,Z=!1,B=O,H=e=>{e.to&&(F=e.to),e.now&&(d.now=e.now),void 0!==e.colors&&(I=e.colors),null!=e.skipAnimation&&(Z=e.skipAnimation),e.createStringInterpolator&&(L=e.createStringInterpolator),e.requestAnimationFrame&&d.use(e.requestAnimationFrame),e.batchedUpdates&&(d.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance),e.frameLoop&&(d.frameLoop=e.frameLoop)},U=new Set,W=[],q=[],$=0,K={get idle(){return!U.size&&!W.length},start(e){$>e.priority?(U.add(e),d.onStart(Y)):(G(e),d(J))},advance:J,sort(e){if($)d.onFrame(()=>K.sort(e));else{let t=W.indexOf(e);~t&&(W.splice(t,1),X(e))}},clear(){W=[],U.clear()}};function Y(){U.forEach(G),U.clear(),d(J)}function G(e){W.includes(e)||X(e)}function X(e){var t;let n;W.splice((n=(t=W).findIndex(t=>t.priority>e.priority))<0?t.length:n,0,e)}function J(e){let t=q;for(let n=0;n0}var Q=(e,t,n)=>Math.min(Math.max(n,e),t),ee={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},et="[-+]?\\d*\\.?\\d+",en=et+"%";function er(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ei=RegExp("rgb"+er(et,et,et)),eo=RegExp("rgba"+er(et,et,et,et)),ea=RegExp("hsl"+er(et,en,en)),es=RegExp("hsla"+er(et,en,en,et)),el=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ec=/^#([0-9a-fA-F]{6})$/,ed=/^#([0-9a-fA-F]{8})$/;function ef(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eh(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*ef(i,r,e+1/3))<<24|Math.round(255*ef(i,r,e))<<16|Math.round(255*ef(i,r,e-1/3))<<8}function ep(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function em(e){return(parseFloat(e)%360+360)%360/360}function ev(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function eg(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ey(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ec.exec(e))?parseInt(t[1]+"ff",16)>>>0:I&&void 0!==I[e]?I[e]:(t=ei.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|255)>>>0:(t=eo.exec(e))?(ep(t[1])<<24|ep(t[2])<<16|ep(t[3])<<8|ev(t[4]))>>>0:(t=el.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ed.exec(e))?parseInt(t[1],16)>>>0:(t=eu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ea.exec(e))?(255|eh(em(t[1]),eg(t[2]),eg(t[3])))>>>0:(t=es.exec(e))?(eh(em(t[1]),eg(t[2]),eg(t[3]))|ev(t[4]))>>>0:null;return null===n?e:`rgba(${(4278190080&(n=n||0))>>>24}, ${(16711680&n)>>>16}, ${(65280&n)>>>8}, ${(255&n)/255})`}var ex=(e,t,n)=>{if(T.fun(e))return e;if(T.arr(e))return ex({range:e,output:t,extrapolate:n});if(T.str(e.output[0]))return L(e);let r=e.output,i=e.range||[0,1],o=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,i);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,i[n],i[n+1],r[n],r[n+1],s,o,a,e.map)}},eb=2*Math.PI/3,ew=2*Math.PI/4.5,ej=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,eE={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-1.70158*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(3.5949095*2*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*eb),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*eb)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ew))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ew)/2+1,easeInBounce:e=>1-ej(1-e),easeOutBounce:ej,easeInOutBounce:e=>e<.5?(1-ej(1-2*e))/2:(1+ej(2*e-1))/2,steps:(e,t="end")=>n=>{let r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return Q(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}},ek=Symbol.for("FluidValue.get"),eS=Symbol.for("FluidValue.observers"),e_=e=>!!(e&&e[ek]),eC=e=>e&&e[ek]?e[ek]():e,eO=e=>e[eS]||null;function eM(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eT(e,t){let n=e[eS];n&&n.forEach(e=>{eM(e,t)})}var eA=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eP(this,e)}},eP=(e,t)=>eL(e,ek,t);function eN(e,t){if(e[ek]){let n=e[eS];n||eL(e,eS,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function eR(e,t){let n=e[eS];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[eS]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eD,eL=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),eF=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ez=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,eV=RegExp(`(${eF.source})(%|[a-z]+)`,"i"),eI=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eZ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eB=e=>{let[t,n]=eH(e);if(!t||V())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith("--")?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&eZ.test(n)?eB(n):n||e},eH=e=>{let t=eZ.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},eU=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,eW=e=>{eD||(eD=I?RegExp(`(${Object.keys(I).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eC(e).replace(eZ,eB).replace(ez,ey).replace(eD,ey)),n=t.map(e=>e.match(eF).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>ex({...e,output:t}));return e=>{let n=!eV.test(t[0])&&t.find(e=>eV.test(e))?.replace(eF,""),i=0;return t[0].replace(eF,()=>`${r[i++](e)}${n||""}`).replace(eI,eU)}},eq="react-spring: ",e$=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eq}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},eK=e$(console.warn);function eY(){eK(`${eq}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var eG=e$(console.warn);function eX(){eG(`${eq}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function eJ(e){return T.str(e)&&("#"==e[0]||/\d/.test(e)||!V()&&eZ.test(e)||e in(I||{}))}var eQ,e0,e1=new WeakMap,e2=e=>e.forEach(({target:e,contentRect:t})=>e1.get(e)?.forEach(e=>e(t))),e4=new Set,e3=()=>{let e=()=>{e4.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},e5=e=>(e4.add(e),e0||(e0=e3()),()=>{e4.delete(e),!e4.size&&e0&&(e0(),e0=void 0)}),e6=(e,{container:t=document.documentElement}={})=>{let n;return t===document.documentElement?e5(e):(eQ||"u">typeof ResizeObserver&&(eQ=new ResizeObserver(e2)),(n=e1.get(t))||(n=new Set,e1.set(t,n)),n.add(e),eQ&&eQ.observe(t),()=>{let n=e1.get(t);n&&(n.delete(e),!n.size&&eQ&&eQ.unobserve(t))})},e8=(e,t,n)=>t-e==0?1:(n-e)/(t-e),e7={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},e9=class{constructor(e,t){this.createAxis=()=>({current:0,progress:0,scrollLength:0}),this.updateAxis=e=>{let t=this.info[e],{length:n,position:r}=e7[e];t.current=this.container[`scroll${r}`],t.scrollLength=this.container["scroll"+n]-this.container["client"+n],t.progress=e8(0,t.scrollLength,t.current)},this.update=()=>{this.updateAxis("x"),this.updateAxis("y")},this.sendEvent=()=>{this.callback(this.info)},this.advance=()=>{this.update(),this.sendEvent()},this.callback=e,this.container=t,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}},te=new WeakMap,tt=new WeakMap,tn=new WeakMap,tr=e=>e===document.documentElement?window:e,ti=(e,{container:t=document.documentElement}={})=>{let n=tn.get(t);n||(n=new Set,tn.set(t,n));let r=new e9(e,t);if(n.add(r),!te.has(t)){let e=()=>(n?.forEach(e=>e.advance()),!0);te.set(t,e);let r=tr(t);window.addEventListener("resize",e,{passive:!0}),t!==document.documentElement&&tt.set(t,e6(e,{container:t})),r.addEventListener("scroll",e,{passive:!0})}let i=te.get(t);return d(i),()=>{d.cancel(i);let e=tn.get(t);if(!e||(e.delete(r),e.size))return;let n=te.get(t);te.delete(t),n&&(tr(t).removeEventListener("scroll",n),window.removeEventListener("resize",n),tt.get(t)?.())}},to=n(2784);function ta(e){let t=(0,to.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ts=n(2784),tl=n(2784),tu=n(2784),tc=V()?tu.useEffect:tu.useLayoutEffect,td=()=>{let e=(0,tl.useRef)(!1);return tc(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tf(){let e=(0,ts.useState)()[1],t=td();return()=>{t.current&&e(Math.random())}}var th=n(2784);function tp(e,t){let[n]=(0,th.useState)(()=>({inputs:t,result:e()})),r=(0,th.useRef)(),i=r.current,o=i;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}var tm=n(2784),tv=e=>(0,tm.useEffect)(e,tg),tg=[],ty=n(2784);function tx(e){let t=(0,ty.useRef)();return(0,ty.useEffect)(()=>{t.current=e}),t.current}var tb=n(2784),tw=()=>{let[e,t]=(0,tb.useState)(null);return tc(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),H({skipAnimation:e.matches})};return n(e),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),e}},19455:function(e){"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o={};((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(o,{Any:()=>a}),e.exports=((e,o,a,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of r(o))i.call(e,a)||void 0===a||t(e,a,{get:()=>o[a],enumerable:!(s=n(o,a))||s.enumerable});return e})(t({},"__esModule",{value:!0}),o);var a=class{}},96721:function(e,t,n){"use strict";var r,i,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of s(t))l.call(e,i)||i===n||o(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(c,{a:()=>M,animated:()=>M}),e.exports=u(o({},"__esModule",{value:!0}),c);var d=n(99550),f=n(28316),h=n(6901),p=n(25447),m=/^--/,v={},g={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},y=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),x=["Webkit","Ms","Moz","O"];g=Object.keys(g).reduce((e,t)=>(x.forEach(n=>e[y(n,t)]=e[t]),e),g);var b=n(25447),w=n(6901),j=/^(matrix|translate|scale|rotate|skew)/,E=/^(translate)/,k=/^(rotate|skew)/,S=(e,t)=>w.is.num(e)&&0!==e?e+t:e,_=(e,t)=>w.is.arr(e)?e.every(e=>_(e,t)):w.is.num(e)?e===t:parseFloat(e)===t,C=class extends b.AnimatedObject{constructor({x:e,y:t,z:n,...r}){let i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(e=>[`translate3d(${e.map(e=>S(e,"px")).join(",")})`,_(e,0)])),(0,w.eachProp)(r,(e,t)=>{if("transform"===t)i.push([e||""]),o.push(e=>[e,""===e]);else if(j.test(t)){if(delete r[t],w.is.und(e))return;let n=E.test(t)?"px":k.test(t)?"deg":"";i.push((0,w.toArray)(e)),o.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${S(i,n)})`,_(i,0)]:e=>[`${t}(${e.map(e=>S(e,n)).join(",")})`,_(e,t.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new O(i,o)),super(r)}},O=class extends w.FluidValue{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return(0,w.each)(this.inputs,(n,r)=>{let i=(0,w.getFluidValue)(n[0]),[o,a]=this.transforms[r](w.is.arr(i)?i:n.map(w.getFluidValue));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.addFluidObserver)(e,this)))}observerRemoved(e){0==e&&(0,w.each)(this.inputs,e=>(0,w.each)(e,e=>(0,w.hasFluidValue)(e)&&(0,w.removeFluidObserver)(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),(0,w.callFluidObservers)(this,e)}};r=n(99550),i=e.exports,u(c,r,"default"),i&&u(i,r,"default"),d.Globals.assign({batchedUpdates:f.unstable_batchedUpdates,createStringInterpolator:h.createStringInterpolator,colors:h.colors});var M=(0,p.createHost)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:v[t]||(v[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var d;let n=null==(d=r[t])||"boolean"==typeof d||""===d?"":"number"!=typeof d||0===d||m.test(t)||g.hasOwnProperty(t)&&g[t]?(""+d).trim():d+"px";m.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new C(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated},7896:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t"boolean"==typeof e?"".concat(e):0===e?"0":e,i=function(){for(var e,t,n=0,r="";nn=>{var o;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],i=null==s?void 0:s[e];if(null===t)return null;let o=r(t)||r(i);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),c=null==t?void 0:null===(o=t.compoundVariants)||void 0===o?void 0:o.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]);return i(e,l,c,null==n?void 0:n.class,null==n?void 0:n.className)}},99182:function(e,t,n){"use strict";n.d(t,{U8:function(){return T},mY:function(){return S}});var r=n(72331),i=n(2784),o=n(40844),a='[cmdk-group=""]',s='[cmdk-group-items=""]',l='[cmdk-item=""]',u=`${l}:not([aria-disabled="true"])`,c="cmdk-item-select",d="data-value",f=(e,t)=>o(e,t),h=i.createContext(void 0),p=()=>i.useContext(h),m=i.createContext(void 0),v=()=>i.useContext(m),g=i.createContext(void 0),y=i.forwardRef((e,t)=>{let n=i.useRef(null),r=O(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),o=O(()=>new Set),p=O(()=>new Map),v=O(()=>new Map),g=O(()=>new Set),y=_(e),{label:x,children:b,value:w,onValueChange:j,filter:E,shouldFilter:k,...S}=e,T=i.useId(),A=i.useId(),R=i.useId(),D=P();C(()=>{if(void 0!==w){let e=w.trim().toLowerCase();r.current.value=e,D(6,B),L.emit()}},[w]);let L=i.useMemo(()=>({subscribe:e=>(g.current.add(e),()=>g.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var i,o,a;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)Z(),V(),D(1,I);else if("value"===e){if((null==(i=y.current)?void 0:i.value)!==void 0){null==(a=(o=y.current).onValueChange)||a.call(o,t);return}n||D(5,B)}L.emit()}},emit:()=>{g.current.forEach(e=>e())}}),[]),F=i.useMemo(()=>({value:(e,t)=>{t!==v.current.get(e)&&(v.current.set(e,t),r.current.filtered.items.set(e,z(t)),D(2,()=>{V(),L.emit()}))},item:(e,t)=>(o.current.add(e),t&&(p.current.has(t)?p.current.get(t).add(e):p.current.set(t,new Set([e]))),D(3,()=>{Z(),V(),r.current.value||I(),L.emit()}),()=>{v.current.delete(e),o.current.delete(e),r.current.filtered.items.delete(e),D(4,()=>{Z(),I(),L.emit()})}),group:e=>(p.current.has(e)||p.current.set(e,new Set),()=>{v.current.delete(e),p.current.delete(e)}),filter:()=>y.current.shouldFilter,label:x||e["aria-label"],listId:T,inputId:R,labelId:A}),[]);function z(e){var t;let n=(null==(t=y.current)?void 0:t.filter)??f;return e?n(e,r.current.search):0}function V(){if(!n.current||!r.current.search||!1===y.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(n=>{let r=p.current.get(n),i=0;r.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([n,i])});let i=n.current.querySelector('[cmdk-list-sizer=""]');U().sort((t,n)=>{let r=t.getAttribute(d),i=n.getAttribute(d);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(s);t?t.appendChild(e.parentElement===t?e:e.closest(`${s} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${s} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${a}[${d}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function I(){let e=U().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(d);L.setState("value",t||void 0)}function Z(){if(!r.current.search||!1===y.current.shouldFilter){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=z(v.current.get(t));r.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of p.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=e}function B(){var e,t,n;let r=H();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(a))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function H(){return n.current.querySelector(`${l}[aria-selected="true"]`)}function U(){return Array.from(n.current.querySelectorAll(u))}function W(e){let t=U()[e];t&&L.setState("value",t.getAttribute(d))}function q(e){var t;let n=H(),r=U(),i=r.findIndex(e=>e===n),o=r[i+e];null!=(t=y.current)&&t.loop&&(o=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),o&&L.setState("value",o.getAttribute(d))}function $(e){let t=H(),n=null==t?void 0:t.closest(a),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,a):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,a))?void 0:n.querySelector(u);r?L.setState("value",r.getAttribute(d)):q(e)}let K=()=>W(U().length-1),Y=e=>{e.preventDefault(),e.metaKey?K():e.altKey?$(1):q(1)},G=e=>{e.preventDefault(),e.metaKey?W(0):e.altKey?$(-1):q(-1)};return i.createElement("div",{ref:M([n,t]),...S,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=S.onKeyDown)||t.call(S,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&Y(e);break;case"ArrowDown":Y(e);break;case"p":case"k":e.ctrlKey&&G(e);break;case"ArrowUp":G(e);break;case"Home":e.preventDefault(),W(0);break;case"End":e.preventDefault(),K();break;case"Enter":{e.preventDefault();let t=H();if(t){let e=new Event(c);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:F.inputId,id:F.labelId,style:N},x),i.createElement(m.Provider,{value:L},i.createElement(h.Provider,{value:F},b)))}),x=i.forwardRef((e,t)=>{let n=i.useId(),r=i.useRef(null),o=i.useContext(g),a=p(),s=_(e);C(()=>a.item(n,o),[]);let l=A(n,r,[e.value,e.children,r]),u=v(),d=T(e=>e.value&&e.value===l.current),f=T(e=>!1===a.filter()||!e.search||e.filtered.items.get(n)>0);function h(){var e,t;null==(t=(e=s.current).onSelect)||t.call(e,l.current)}if(i.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(c,h),()=>t.removeEventListener(c,h)},[f,e.onSelect,e.disabled]),!f)return null;let{disabled:m,value:y,onSelect:x,...b}=e;return i.createElement("div",{ref:M([r,t]),...b,"cmdk-item":"",role:"option","aria-disabled":m||void 0,"aria-selected":d||void 0,"data-selected":d||void 0,onPointerMove:m?void 0:function(){u.setState("value",l.current,!0)},onClick:m?void 0:h},e.children)}),b=i.forwardRef((e,t)=>{let{heading:n,children:r,...o}=e,a=i.useId(),s=i.useRef(null),l=i.useRef(null),u=i.useId(),c=p(),d=T(e=>!1===c.filter()||!e.search||e.filtered.groups.has(a));C(()=>c.group(a),[]),A(a,s,[e.value,e.heading,l]);let f=i.createElement(g.Provider,{value:a},r);return i.createElement("div",{ref:M([s,t]),...o,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&i.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},f))}),w=i.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=i.useRef(null),a=T(e=>!e.search);return n||a?i.createElement("div",{ref:M([o,t]),...r,"cmdk-separator":"",role:"separator"}):null}),j=i.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=v(),s=T(e=>e.search),l=p();return i.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),i.createElement("input",{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,id:l.inputId,type:"text",value:o?e.value:s,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),E=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.useRef(null),a=i.useRef(null),s=p();return i.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect().height;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),i.createElement("div",{ref:M([o,t]),...r,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:s.listId,"aria-labelledby":s.inputId},i.createElement("div",{ref:a,"cmdk-list-sizer":""},n))}),k=i.forwardRef((e,t)=>{let{open:n,onOpenChange:o,container:a,...s}=e;return i.createElement(r.fC,{open:n,onOpenChange:o},i.createElement(r.h_,{container:a},i.createElement(r.aV,{"cmdk-overlay":""}),i.createElement(r.VY,{"aria-label":e.label,"cmdk-dialog":""},i.createElement(y,{ref:t,...s}))))}),S=Object.assign(y,{List:E,Item:x,Input:j,Group:b,Separator:w,Dialog:k,Empty:i.forwardRef((e,t)=>{let n=i.useRef(!0),r=T(e=>0===e.filtered.count);return i.useEffect(()=>{n.current=!1},[]),n.current||!r?null:i.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Loading:i.forwardRef((e,t)=>{let{progress:n,children:r,...o}=e;return i.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},i.createElement("div",{"aria-hidden":!0},r))})});function _(e){let t=i.useRef(e);return C(()=>{t.current=e}),t}var C=typeof window>"u"?i.useEffect:i.useLayoutEffect;function O(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function M(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function T(e){let t=v(),n=()=>e(t.snapshot());return i.useSyncExternalStore(t.subscribe,n,n)}function A(e,t,n){let r=i.useRef(),o=p();return C(()=>{var i;let a=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim().toLowerCase();if("object"==typeof t&&"current"in t&&t.current)return null==(e=t.current.textContent)?void 0:e.trim().toLowerCase()}})();o.value(e,a),null==(i=t.current)||i.setAttribute(d,a),r.current=a}),r}var P=()=>{let[e,t]=i.useState(),n=O(()=>new Map);return C(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}},N={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},86801:function(e,t,n){"use strict";function r(e,t){return null==e||null==t?NaN:et?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},78307:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(86801);function i(e,t){return null==e||null==t?NaN:te?1:t>=e?0:NaN}function o(e){let t,n,o;function s(e,r,i=0,o=e.length){if(i>>1;0>n(e[t],r)?i=t+1:o=t}while(i(0,r.Z)(e(t),n),o=(t,n)=>e(t)-n):(t=e===r.Z||e===i?e:a,n=e,o=e),{left:s,center:function(e,t,n=0,r=e.length){let i=s(e,t,n,r-1);return i>n&&o(e[i-1],t)>-o(e[i],t)?i-1:i},right:function(e,r,i=0,o=e.length){if(i>>1;0>=n(e[t],r)?i=t+1:o=t}while(i=t&&(n=r=t):(n>t&&(n=t),r=o&&(n=r=o):(n>o&&(n=o),r"checkbox"===e.type,o=e=>e instanceof Date,a=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!a(e)&&!Array.isArray(e)&&s(e)&&!o(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||e instanceof FileList))&&(n||l(e))))return e;else if(t=n?[]:{},Array.isArray(e)||f(e))for(let n in e)t[n]=p(e[n]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,n)=>{if(!t||!l(e))return n;let r=m(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return v(r)||r===e?v(e[t])?n:e[t]:r};let y={BLUR:"blur",FOCUS_OUT:"focusout"},x={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},b={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};r.createContext(null);var w=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let o in e)Object.defineProperty(i,o,{get:()=>(t._proxyFormState[o]!==x.all&&(t._proxyFormState[o]=!r||x.all),n&&(n[o]=!0),e[o])});return i},j=e=>l(e)&&!Object.keys(e).length,E=(e,t,n,r)=>{n(e);let{name:i,...o}=e;return j(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(e=>t[e]===(!r||x.all))},k=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,_=(e,t,n,r,i)=>S(e)?(r&&t.watch.add(e),g(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),g(n,e))):(r&&(t.watchAll=!0),n),C=e=>/^\w*$/.test(e),O=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function M(e,t,n){let r=-1,i=C(t)?[t]:O(t),o=i.length,a=o-1;for(;++rt?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};let A=(e,t,n)=>{for(let r of n||Object.keys(e)){let n=g(e,r);if(n){let{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(r)&&A(r,t)}}};var P=e=>({isOnSubmit:!e||e===x.onSubmit,isOnBlur:e===x.onBlur,isOnChange:e===x.onChange,isOnAll:e===x.all,isOnTouch:e===x.onTouched}),N=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),R=(e,t,n)=>{let r=m(g(e,n));return M(r,"root",t[n]),M(e,n,r),e},D=e=>"boolean"==typeof e,L=e=>"file"===e.type,F=e=>"function"==typeof e,z=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},V=e=>S(e),I=e=>"radio"===e.type,Z=e=>e instanceof RegExp;let B={value:!1,isValid:!1},H={value:!0,isValid:!0};var U=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||""===e[0].value?H:{value:e[0].value,isValid:!0}:H:B}return B};let W={isValid:!1,value:null};var q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,W):W;function $(e,t,n="validate"){if(V(e)||Array.isArray(e)&&e.every(V)||D(e)&&!e)return{type:n,message:V(e)?e:"",ref:t}}var K=e=>l(e)&&!Z(e)?e:{value:e,message:""},Y=async(e,t,n,r,o)=>{let{ref:s,refs:u,required:c,maxLength:d,minLength:f,min:h,max:p,pattern:m,validate:y,name:x,valueAsNumber:w,mount:E,disabled:k}=e._f,_=g(t,x);if(!E||k)return{};let C=u?u[0]:s,O=e=>{r&&C.reportValidity&&(C.setCustomValidity(D(e)?"":e||""),C.reportValidity())},M={},A=I(s),P=i(s),N=(w||L(s))&&v(s.value)&&v(_)||z(s)&&""===s.value||""===_||Array.isArray(_)&&!_.length,R=T.bind(null,x,n,M),B=(e,t,n,r=b.maxLength,i=b.minLength)=>{let o=e?t:n;M[x]={type:e?r:i,message:o,ref:s,...R(e?r:i,o)}};if(o?!Array.isArray(_)||!_.length:c&&(!(A||P)&&(N||a(_))||D(_)&&!_||P&&!U(u).isValid||A&&!q(u).isValid)){let{value:e,message:t}=V(c)?{value:!!c,message:c}:K(c);if(e&&(M[x]={type:b.required,message:t,ref:C,...R(b.required,t)},!n))return O(t),M}if(!N&&(!a(h)||!a(p))){let e,t;let r=K(p),i=K(h);if(a(_)||isNaN(_)){let n=s.valueAsDate||new Date(_),o=e=>new Date(new Date().toDateString()+" "+e),a="time"==s.type,l="week"==s.type;S(r.value)&&_&&(e=a?o(_)>o(r.value):l?_>r.value:n>new Date(r.value)),S(i.value)&&_&&(t=a?o(_)r.value),a(i.value)||(t=n+e.value,i=!a(t.value)&&_.length<+t.value;if((r||i)&&(B(r,e.message,t.message),!n))return O(M[x].message),M}if(m&&!N&&S(_)){let{value:e,message:t}=K(m);if(Z(e)&&!_.match(e)&&(M[x]={type:b.pattern,message:t,ref:s,...R(b.pattern,t)},!n))return O(t),M}if(y){if(F(y)){let e=await y(_,t),r=$(e,C);if(r&&(M[x]={...r,...R(b.validate,r.message)},!n))return O(r.message),M}else if(l(y)){let e={};for(let r in y){if(!j(e)&&!n)break;let i=$(await y[r](_,t),C,r);i&&(e={...i,...R(r,i.message)},O(i.message),n&&(M[x]=e))}if(!j(e)&&(M[x]={ref:C,...e},!n))return M}}return O(!0),M};function G(e,t){let n=Array.isArray(t)?t:C(t)?[t]:O(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var J=e=>a(e)||!s(e);function Q(e,t){if(J(e)||J(t))return e===t;if(o(e)&&o(t))return e.getTime()===t.getTime();let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n){let n=e[i];if(!r.includes(i))return!1;if("ref"!==i){let e=t[i];if(o(n)&&o(e)||l(n)&&l(e)||Array.isArray(n)&&Array.isArray(e)?!Q(n,e):n!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>I(e)||i(e),en=e=>z(e)&&e.isConnected,er=e=>{for(let t in e)if(F(e[t]))return!0;return!1};function ei(e,t={}){let n=Array.isArray(e);if(l(e)||n)for(let n in e)Array.isArray(e[n])||l(e[n])&&!er(e[n])?(t[n]=Array.isArray(e[n])?[]:{},ei(e[n],t[n])):a(e[n])||(t[n]=!0);return t}var eo=(e,t)=>(function e(t,n,r){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!er(t[i])?v(n)||J(r[i])?r[i]=Array.isArray(t[i])?ei(t[i],[]):{...ei(t[i])}:e(t[i],a(n)?{}:n[i],r[i]):r[i]=!Q(t[i],n[i]);return r})(e,t,ei(t)),ea=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>v(e)?e:t?""===e?NaN:e?+e:e:n&&S(e)?new Date(e):r?r(e):e;function es(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:L(t)?t.files:I(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?U(e.refs).value:ea(v(t.value)?e.ref.value:t.value,e)}var el=(e,t,n,r)=>{let i={};for(let n of e){let e=g(t,n);e&&M(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},eu=e=>v(e)?e:Z(e)?e.source:l(e)?Z(e.value)?e.value.source:e.value:e,ec=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ed(e,t,n){let r=g(e,n);if(r||C(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),o=g(t,r),a=g(e,r);if(o&&!Array.isArray(o)&&n!==r)break;if(a&&a.type)return{name:r,error:a};i.pop()}return{name:n}}var ef=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?!r.isOnChange:!i.isOnChange)||e),eh=(e,t)=>!m(g(e,t)).length&&G(e,t);let ep={mode:x.onSubmit,reValidateMode:x.onChange,shouldFocusError:!0};function em(e={}){let t=r.useRef(),[n,s]=r.useState({isDirty:!1,isValidating:!1,isLoading:F(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:F(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let n,r={...ep,...e},s={submitCount:0,isDirty:!1,isLoading:F(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},c={},f=(l(r.defaultValues)||l(r.values))&&p(r.defaultValues||r.values)||{},b=r.shouldUnregister?{}:p(f),w={action:!1,mount:!1,watch:!1},E={mount:new Set,unMount:new Set,array:new Set,watch:new Set},C=0,O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},T={values:X(),array:X(),state:X()},V=e.resetOptions&&e.resetOptions.keepDirtyValues,I=P(r.mode),Z=P(r.reValidateMode),B=r.criteriaMode===x.all,H=e=>t=>{clearTimeout(C),C=setTimeout(e,t)},U=async e=>{if(O.isValid||e){let e=r.resolver?j((await ei()).errors):await ev(c,!0);e!==s.isValid&&T.state.next({isValid:e})}},W=e=>O.isValidating&&T.state.next({isValidating:e}),q=(e,t)=>{M(s.errors,e,t),T.state.next({errors:s.errors})},$=(e,t,n,r)=>{let i=g(c,e);if(i){let o=g(b,e,v(n)?g(f,e):n);v(o)||r&&r.defaultChecked||t?M(b,e,t?o:es(i._f)):ex(e,o),w.mount&&U()}},K=(e,t,n,r,i)=>{let o=!1,a=!1,l={name:e};if(!n||r){O.isDirty&&(a=s.isDirty,s.isDirty=l.isDirty=eg(),o=a!==l.isDirty);let n=Q(g(f,e),t);a=g(s.dirtyFields,e),n?G(s.dirtyFields,e):M(s.dirtyFields,e,!0),l.dirtyFields=s.dirtyFields,o=o||O.dirtyFields&&!n!==a}if(n){let t=g(s.touchedFields,e);t||(M(s.touchedFields,e,n),l.touchedFields=s.touchedFields,o=o||O.touchedFields&&t!==n)}return o&&i&&T.state.next(l),o?l:{}},er=(t,r,i,o)=>{let a=g(s.errors,t),l=O.isValid&&D(r)&&s.isValid!==r;if(e.delayError&&i?(n=H(()=>q(t,i)))(e.delayError):(clearTimeout(C),n=null,i?M(s.errors,t,i):G(s.errors,t)),(i?!Q(a,i):a)||!j(o)||l){let e={...o,...l&&D(r)?{isValid:r}:{},errors:s.errors,name:t};s={...s,...e},T.state.next(e)}W(!1)},ei=async e=>r.resolver(b,r.context,el(e||E.mount,c,r.criteriaMode,r.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await ei();if(e)for(let n of e){let e=g(t,n);e?M(s.errors,n,e):G(s.errors,n)}else s.errors=t;return t},ev=async(e,t,n={valid:!0})=>{for(let i in e){let o=e[i];if(o){let{_f:e,...i}=o;if(e){let i=E.array.has(e.name),a=await Y(o,b,B,r.shouldUseNativeValidation&&!t,i);if(a[e.name]&&(n.valid=!1,t))break;t||(g(a,e.name)?i?R(s.errors,a,e.name):M(s.errors,e.name,a[e.name]):G(s.errors,e.name))}i&&await ev(i,t,n)}}return n.valid},eg=(e,t)=>(e&&t&&M(b,e,t),!Q(ek(),f)),ey=(e,t,n)=>_(e,E,{...w.mount?b:v(t)?f:S(e)?{[e]:t}:t},n,t),ex=(e,t,n={})=>{let r=g(c,e),o=t;if(r){let n=r._f;n&&(n.disabled||M(b,e,ea(t,n)),o=z(n.ref)&&a(t)?"":t,ee(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?i(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach(e=>e.checked=e.value===o):L(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||T.values.next({name:e,values:{...b}})))}(n.shouldDirty||n.shouldTouch)&&K(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&eE(e)},eb=(e,t,n)=>{for(let r in t){let i=t[r],a=`${e}.${r}`,s=g(c,a);!E.array.has(e)&&J(i)&&(!s||s._f)||o(i)?ex(a,i,n):eb(a,i,n)}},ew=(e,n,r={})=>{let i=g(c,e),o=E.array.has(e),l=p(n);M(b,e,l),o?(T.array.next({name:e,values:{...b}}),(O.isDirty||O.dirtyFields)&&r.shouldDirty&&T.state.next({name:e,dirtyFields:eo(f,b),isDirty:eg(e,l)})):!i||i._f||a(l)?ex(e,l,r):eb(e,l,r),N(e,E)&&T.state.next({...s}),T.values.next({name:e,values:{...b}}),w.mount||t()},ej=async e=>{let t=e.target,i=t.name,o=!0,a=g(c,i);if(a){let l,d;let f=t.type?es(a._f):u(e),h=e.type===y.BLUR||e.type===y.FOCUS_OUT,p=!ec(a._f)&&!r.resolver&&!g(s.errors,i)&&!a._f.deps||ef(h,g(s.touchedFields,i),s.isSubmitted,Z,I),m=N(i,E,h);M(b,i,f),h?(a._f.onBlur&&a._f.onBlur(e),n&&n(0)):a._f.onChange&&a._f.onChange(e);let v=K(i,f,h,!1),x=!j(v)||m;if(h||T.values.next({name:i,type:e.type,values:{...b}}),p)return O.isValid&&U(),x&&T.state.next({name:i,...m?{}:v});if(!h&&m&&T.state.next({...s}),W(!0),r.resolver){let{errors:e}=await ei([i]),t=ed(s.errors,c,i),n=ed(e,c,t.name||i);l=n.error,i=n.name,d=j(e)}else l=(await Y(a,b,B,r.shouldUseNativeValidation))[i],(o=isNaN(f)||f===g(b,i,f))&&(l?d=!1:O.isValid&&(d=await ev(c,!0)));o&&(a._f.deps&&eE(a._f.deps),er(i,d,l,v))}},eE=async(e,t={})=>{let n,i;let o=k(e);if(W(!0),r.resolver){let t=await em(v(e)?e:o);n=j(t),i=e?!o.some(e=>g(t,e)):n}else e?((i=(await Promise.all(o.map(async e=>{let t=g(c,e);return await ev(t&&t._f?{[e]:t}:t)}))).every(Boolean))||s.isValid)&&U():i=n=await ev(c);return T.state.next({...!S(e)||O.isValid&&n!==s.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:s.errors,isValidating:!1}),t.shouldFocus&&!i&&A(c,e=>e&&g(s.errors,e),e?o:E.mount),i},ek=e=>{let t={...f,...w.mount?b:{}};return v(e)?t:S(e)?g(t,e):e.map(e=>g(t,e))},eS=(e,t)=>({invalid:!!g((t||s).errors,e),isDirty:!!g((t||s).dirtyFields,e),isTouched:!!g((t||s).touchedFields,e),error:g((t||s).errors,e)}),e_=(e,t={})=>{for(let n of e?k(e):E.mount)E.mount.delete(n),E.array.delete(n),t.keepValue||(G(c,n),G(b,n)),t.keepError||G(s.errors,n),t.keepDirty||G(s.dirtyFields,n),t.keepTouched||G(s.touchedFields,n),r.shouldUnregister||t.keepDefaultValue||G(f,n);T.values.next({values:{...b}}),T.state.next({...s,...t.keepDirty?{isDirty:eg()}:{}}),t.keepIsValid||U()},eC=(e,t={})=>{let n=g(c,e),i=D(t.disabled);return M(c,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),E.mount.add(e),n?i&&M(b,e,t.disabled?void 0:g(b,e,es(n._f))):$(e,!0,t.value),{...i?{disabled:t.disabled}:{},...r.shouldUseNativeValidation?{required:!!t.required,min:eu(t.min),max:eu(t.max),minLength:eu(t.minLength),maxLength:eu(t.maxLength),pattern:eu(t.pattern)}:{},name:e,onChange:ej,onBlur:ej,ref:i=>{if(i){eC(e,t),n=g(c,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,o=et(r),a=n._f.refs||[];(o?a.find(e=>e===r):r===n._f.ref)||(M(c,e,{_f:{...n._f,...o?{refs:[...a.filter(en),r,...Array.isArray(g(f,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),$(e,!1,void 0,r))}else(n=g(c,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(d(E.array,e)&&w.action)&&E.unMount.add(e)}}},eO=()=>r.shouldFocusError&&A(c,e=>e&&g(s.errors,e),E.mount),eM=(n,r={})=>{let i=n||f,o=p(i),a=n&&!j(n)?o:f;if(r.keepDefaultValues||(f=i),!r.keepValues){if(r.keepDirtyValues||V)for(let e of E.mount)g(s.dirtyFields,e)?M(a,e,g(b,e)):ew(e,g(a,e));else{if(h&&v(n))for(let e of E.mount){let t=g(c,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(z(e)){let t=e.closest("form");if(t){t.reset();break}}}}c={}}b=e.shouldUnregister?r.keepDefaultValues?p(f):{}:o,T.array.next({values:{...a}}),T.values.next({values:{...a}})}E={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},w.mount||t(),w.mount=!O.isValid||!!r.keepIsValid,w.watch=!!e.shouldUnregister,T.state.next({submitCount:r.keepSubmitCount?s.submitCount:0,isDirty:r.keepDirty?s.isDirty:!!(r.keepDefaultValues&&!Q(n,f)),isSubmitted:!!r.keepIsSubmitted&&s.isSubmitted,dirtyFields:r.keepDirtyValues?s.dirtyFields:r.keepDefaultValues&&n?eo(f,n):{},touchedFields:r.keepTouched?s.touchedFields:{},errors:r.keepErrors?s.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eT=(e,t)=>eM(F(e)?e(b):e,t);return{control:{register:eC,unregister:e_,getFieldState:eS,_executeSchema:ei,_getWatch:ey,_getDirty:eg,_updateValid:U,_removeUnmounted:()=>{for(let e of E.unMount){let t=g(c,e);t&&(t._f.refs?t._f.refs.every(e=>!en(e)):!en(t._f.ref))&&e_(e)}E.unMount=new Set},_updateFieldArray:(e,t=[],n,r,i=!0,o=!0)=>{if(r&&n){if(w.action=!0,o&&Array.isArray(g(c,e))){let t=n(g(c,e),r.argA,r.argB);i&&M(c,e,t)}if(o&&Array.isArray(g(s.errors,e))){let t=n(g(s.errors,e),r.argA,r.argB);i&&M(s.errors,e,t),eh(s.errors,e)}if(O.touchedFields&&o&&Array.isArray(g(s.touchedFields,e))){let t=n(g(s.touchedFields,e),r.argA,r.argB);i&&M(s.touchedFields,e,t)}O.dirtyFields&&(s.dirtyFields=eo(f,b)),T.state.next({name:e,isDirty:eg(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else M(b,e,t)},_getFieldArray:t=>m(g(w.mount?b:f,t,e.shouldUnregister?g(f,t,[]):[])),_reset:eM,_resetDefaultValues:()=>F(r.defaultValues)&&r.defaultValues().then(e=>{eT(e,r.resetOptions),T.state.next({isLoading:!1})}),_updateFormState:e=>{s={...s,...e}},_subjects:T,_proxyFormState:O,get _fields(){return c},get _formValues(){return b},get _state(){return w},set _state(value){w=value},get _defaultValues(){return f},get _names(){return E},set _names(value){E=value},get _formState(){return s},set _formState(value){s=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:eE,register:eC,handleSubmit:(e,t)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let i=p(b);if(T.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await ei();s.errors=e,i=t}else await ev(c);G(s.errors,"root"),j(s.errors)?(T.state.next({errors:{}}),await e(i,n)):(t&&await t({...s.errors},n),eO(),setTimeout(eO)),T.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:j(s.errors),submitCount:s.submitCount+1,errors:s.errors})},watch:(e,t)=>F(e)?T.values.subscribe({next:n=>e(ey(void 0,t),n)}):ey(e,t,!0),setValue:ew,getValues:ek,reset:eT,resetField:(e,t={})=>{g(c,e)&&(v(t.defaultValue)?ew(e,g(f,e)):(ew(e,t.defaultValue),M(f,e,t.defaultValue)),t.keepTouched||G(s.touchedFields,e),t.keepDirty||(G(s.dirtyFields,e),s.isDirty=t.defaultValue?eg(e,g(f,e)):eg()),!t.keepError&&(G(s.errors,e),O.isValid&&U()),T.state.next({...s}))},clearErrors:e=>{e&&k(e).forEach(e=>G(s.errors,e)),T.state.next({errors:e?s.errors:{}})},unregister:e_,setError:(e,t,n)=>{let r=(g(c,e,{_f:{}})._f||{}).ref;M(s.errors,e,{...t,ref:r}),T.state.next({name:e,errors:s.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()},setFocus:(e,t={})=>{let n=g(c,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eS}}(e,()=>s(e=>({...e}))),formState:n});let c=t.current.control;return c._options=e,!function(e){let t=r.useRef(e);t.current=e,r.useEffect(()=>{let n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}({subject:c._subjects.state,next:e=>{E(e,c._proxyFormState,c._updateFormState,!0)&&s({...c._formState})}}),r.useEffect(()=>{e.values&&!Q(e.values,c._defaultValues)?c._reset(e.values,c._options.resetOptions):c._resetDefaultValues()},[e.values,c]),r.useEffect(()=>{c._state.mount||(c._updateValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),t.current.formState=w(n,c),t.current}},79381:function(e,t,n){"use strict";n.d(t,{J$:function(){return J},ZP:function(){return Q},JG:function(){return Z},kY:function(){return K}});var r,i=n(2784),o=n(43100);let a=new WeakMap,s={},l={},u=()=>{},c=u(),d=Object,f=e=>e===c,h=e=>"function"==typeof e,p=(e,t)=>({...e,...t}),m="undefined",v=typeof window!=m,g=typeof document!=m,y=()=>v&&typeof window.requestAnimationFrame!=m,x=(e,t)=>{let n=a.get(e);return[()=>e.get(t)||s,r=>{if(!f(t)){let i=e.get(t);t in l||(l[t]=i),n[5](t,p(i,r),i||s)}},n[6],()=>!f(t)&&t in l?l[t]:e.get(t)||s]},b=new WeakMap,w=0,j=e=>{let t,n;let r=typeof e,i=e&&e.constructor,o=i==Date;if(d(e)!==e||o||i==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=b.get(e))return t;if(t=++w+"~",b.set(e,t),i==Array){for(n=0,t="@";n(g&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),S("focus",e)}),initReconnect:e=>{let t=()=>{E=!0,e()},n=()=>{E=!1};return k("online",t),k("offline",n),()=>{S("online",t),S("offline",n)}}},C=!i.useId,O=!v||"Deno"in window,M=e=>y()?window.requestAnimationFrame(e):setTimeout(e,1),T=O?i.useEffect:i.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,P=!O&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),N=e=>{if(h(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?j(e):"",t]},R=0,D=()=>++R;var L={FOCUS_EVENT:0,RECONNECT_EVENT:1,MUTATE_EVENT:2,ERROR_REVALIDATE_EVENT:3};async function F(...e){let[t,n,r,i]=e,o=p({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),s=o.populateCache,l=o.rollbackOnError,u=o.optimisticData,d=!1!==o.revalidate,m=e=>"function"==typeof l?l(e):!1!==l,v=o.throwOnError;if(h(n)){let e=[],r=t.keys();for(let i=r.next();!i.done;i=r.next()){let r=i.value;!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r)}return Promise.all(e.map(g))}return g(n);async function g(n){let i;let[o]=N(n);if(!o)return;let[l,p]=x(t,o),[g,y,b]=a.get(t),w=g[o],j=()=>d&&(delete b[o],w&&w[0])?w[0](2).then(()=>l().data):l().data;if(e.length<3)return j();let E=r,k=D();y[o]=[k,0];let S=!f(u),_=l(),C=_.data,O=_._c,M=f(O)?C:O;if(S&&p({data:u=h(u)?u(M):u,_c:M}),h(E))try{E=E(M)}catch(e){i=e}if(E&&h(E.then)){if(E=await E.catch(e=>{i=e}),k!==y[o][0]){if(i)throw i;return E}i&&S&&m(i)&&(s=!0,p({data:E=M,_c:c}))}s&&!i&&(h(s)&&(E=s(E,M)),p({data:E,_c:c})),y[o][1]=D();let T=await j();if(p({_c:c}),i){if(v)throw i;return}return s?T:E}}let z=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},V=(e,t)=>{if(!a.has(e)){let n=p(_,t),r={},i=F.bind(c,e),o=u,s={},l=(e,t)=>{let n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);let i=s[t];if(i)for(let e of i)e(n,r)},f=()=>{if(!a.has(e)&&(a.set(e,[r,{},{},{},i,d,l]),!O)){let t=n.initFocus(setTimeout.bind(c,z.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,z.bind(c,r,1)));o=()=>{t&&t(),i&&i(),a.delete(e)}}};return f(),[e,i,f,o]}return[e,a.get(e)[4]]},[I,Z]=V(new Map),B=p({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,n,r,i)=>{let o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(f(o)||!(a>o))&&setTimeout(r,s,i)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:P?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:P?5e3:3e3,compare:(e,t)=>j(e)==j(t),isPaused:()=>!1,cache:I,mutate:Z,fallback:{}},{isOnline:()=>E,isVisible:()=>{let e=g&&document.visibilityState;return f(e)||"hidden"!==e}}),H=(e,t)=>{let n=p(e,t);if(t){let{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=p(i,a))}return n},U=(0,i.createContext)({}),W=v&&window.__SWR_DEVTOOLS_USE__,q=W?window.__SWR_DEVTOOLS_USE__:[],$=e=>h(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],K=()=>p(B,(0,i.useContext)(U)),Y=q.concat(e=>(t,n,r)=>{let i=n&&((...e)=>{let r=N(t)[0],[,,,i]=a.get(I),o=i[r];return o?(delete i[r],o):n(...e)});return e(t,i,r)}),G=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}};W&&(window.__SWR_DEVTOOLS_REACT__=i);let X={dedupe:!0},J=d.defineProperty(e=>{let{value:t}=e,n=(0,i.useContext)(U),r=h(t),o=(0,i.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,i.useMemo)(()=>r?o:H(n,o),[r,n,o]),s=o&&o.provider,l=(0,i.useRef)(c);s&&!l.current&&(l.current=V(s(a.cache||I),o));let u=l.current;return u&&(a.cache=u[0],a.mutate=u[1]),T(()=>{if(u)return u[2]&&u[2](),u[3]},[]),(0,i.createElement)(U.Provider,p(e,{value:a}))},"defaultValue",{value:B});var Q=(r=(e,t,n)=>{let{cache:r,compare:s,suspense:l,fallbackData:u,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:b}=n,[w,j,E]=a.get(r),[k,S]=N(e),_=(0,i.useRef)(!1),A=(0,i.useRef)(!1),P=(0,i.useRef)(k),R=(0,i.useRef)(t),z=(0,i.useRef)(n),V=()=>z.current,I=()=>V().isVisible()&&V().isOnline(),[Z,B,H,U]=x(r,k),W=(0,i.useRef)({}).current,q=f(u)?n.fallback[k]:u,$=(e,t)=>{let n=!0;for(let r in W)"data"===r?s(t[r],e[r])||f(e[r])&&s(t[r],ei)||(n=!1):t[r]!==e[r]&&(n=!1);return n},K=(0,i.useMemo)(()=>{let e=!!k&&!!t&&(f(d)?!V().isPaused()&&!l&&(!!f(m)||m):d),n=t=>{let n=p(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=Z(),i=U(),o=n(r),a=r===i?o:n(i),s=o;return[()=>{let e=n(Z());return $(e,s)?s:s=e},()=>a]},[r,k]),Y=(0,o.useSyncExternalStore)((0,i.useCallback)(e=>H(k,(t,n)=>{$(n,t)||e()}),[r,k]),K[0],K[1]),J=!_.current,Q=w[k]&&w[k].length>0,ee=Y.data,et=f(ee)?q:ee,en=Y.error,er=(0,i.useRef)(et),ei=b?f(ee)?er.current:ee:et,eo=(!Q||!!f(en))&&(J&&!f(d)?d:!V().isPaused()&&(l?!f(et)&&m:f(et)||m)),ea=!!(k&&t&&J&&eo),es=f(Y.isValidating)?ea:Y.isValidating,el=f(Y.isLoading)?ea:Y.isLoading,eu=(0,i.useCallback)(async e=>{let t,r;let i=R.current;if(!k||!i||A.current||V().isPaused())return!1;let o=!0,a=e||{},l=!E[k]||!a.dedupe,u=()=>C?!A.current&&k===P.current&&_.current:k===P.current,d={isValidating:!1,isLoading:!1},p=()=>{B(d)},m=()=>{let e=E[k];e&&e[1]===r&&delete E[k]},v={isValidating:!0};f(Z().data)&&(v.isLoading=!0);try{if(l&&(B(v),n.loadingTimeout&&f(Z().data)&&setTimeout(()=>{o&&u()&&V().onLoadingSlow(k,n)},n.loadingTimeout),E[k]=[i(S),D()]),[t,r]=E[k],t=await t,l&&setTimeout(m,n.dedupingInterval),!E[k]||E[k][1]!==r)return l&&u()&&V().onDiscarded(k),!1;d.error=c;let e=j[k];if(!f(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),l&&u()&&V().onDiscarded(k),!1;let a=Z().data;d.data=s(a,t)?a:t,l&&u()&&V().onSuccess(t,k,n)}catch(n){m();let e=V(),{shouldRetryOnError:t}=e;!e.isPaused()&&(d.error=n,l&&u()&&(e.onError(n,k,e),(!0===t||h(t)&&t(n))&&I()&&e.onErrorRetry(n,k,e,e=>{let t=w[k];t&&t[0]&&t[0](L.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,p(),!0},[k,r]),ec=(0,i.useCallback)((...e)=>F(r,P.current,...e),[]);if(T(()=>{R.current=t,z.current=n,f(ee)||(er.current=ee)}),T(()=>{if(!k)return;let e=eu.bind(c,X),t=0,n=G(k,w,(n,r={})=>{if(n==L.FOCUS_EVENT){let n=Date.now();V().revalidateOnFocus&&n>t&&I()&&(t=n+V().focusThrottleInterval,e())}else if(n==L.RECONNECT_EVENT)V().revalidateOnReconnect&&I()&&e();else if(n==L.MUTATE_EVENT)return eu();else if(n==L.ERROR_REVALIDATE_EVENT)return eu(r)});return A.current=!1,P.current=k,_.current=!0,B({_k:S}),eo&&(f(et)||O?e():M(e)),()=>{A.current=!0,n()}},[k]),T(()=>{let e;function t(){let t=h(v)?v(et):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!Z().error&&(g||V().isVisible())&&(y||V().isOnline())?eu(X).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,y,k]),(0,i.useDebugValue)(ei),l&&f(et)&&k){if(!C&&O)throw Error("Fallback data is required when using suspense in SSR.");throw R.current=t,z.current=n,A.current=!1,f(en)?eu(X):en}return{mutate:ec,get data(){return W.data=!0,ei},get error(){return W.error=!0,en},get isValidating(){return W.isValidating=!0,es},get isLoading(){return W.isLoading=!0,el}}},function(...e){let t=K(),[n,i,o]=$(e),a=H(t,o),s=r,{use:l}=a,u=(l||[]).concat(Y);for(let e=u.length;e--;)s=u[e](s);return s(n,i||a.fetcher||null,a)})},22970:function(e,t,n){"use strict";n.d(t,{CR:function(){return s},Jh:function(){return a},_T:function(){return i},ev:function(){return l},mG:function(){return o},pi:function(){return r}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function o(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;io("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(n=u.data)||void 0===n?void 0:n.address,type:"address"})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(r=x.data)||void 0===r?void 0:r.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:m,underline:"hover",target:"_blank",ellipsis:!0,children:null===(c=x.data)||void 0===c?void 0:c.version})]})]})}function u(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}function h(e){let t=(0,a.Tu)(),{isSynced:n}=(0,l.n)();return(0,s.jsx)(i.tU3,{appName:"renterd",profile:(0,s.jsx)(x,{}),banner:(0,s.jsx)(u,{}),connectivityRoute:o.h,isSynced:n,walletBalance:t.data?new(c())(t.data.spendable).plus(t.data.unconfirmed):void 0,...e})}},91930:function(e,t,n){"use strict";n.d(t,{e:function(){return d}});var s=n(52322),i=n(23305),a=n(88242),r=n(9969),c=n(82851),o=n(71930),l=n(86450);function d(){var e,t;let n=(0,r.Z7)(),{openDialog:d}=(0,l.Rh)(),x=!(null===(e=n.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(t=n.data)||void 0===t?void 0:t.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Files",route:o._.files.index,children:(0,s.jsx)(a.ROc,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:o._.config.index,children:(0,s.jsx)(a.wWN,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:o._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Hosts",route:o._.hosts.index,children:(0,s.jsx)(a.VHe,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,s.jsx)("div",{className:(0,c.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,s.jsx)(i.xvT,{size:"10",className:(0,c.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,s.jsx)(a.Dkj,{})})]})]})}},60807:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return j}});var s=n(52322),i=n(23305),a=n(91930),r=n(71930),c=n(86450),o=n(89630),l=n(17286),d=n(96206),x=n(91641);function u(){let{autopilot:e}=(0,x.q)(),{canEstimate:t,estimatedSpendingPerMonth:n,estimatedSpendingPerTB:a,redundancyMultiplier:r,storageTB:c,showAdvanced:o}=(0,l.ZR)(),u=(0,i.fb0)({sc:n}),h=(0,i.fb0)({sc:a});return"on"!==e.status?null:t?(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"Estimate:"}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(i.YKL,{size:"12",value:(0,d.qN)(a),dynamicUnits:!1,fixed:0,variant:"value"}),h.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(i.m2c,{size:"12",weight:"medium",value:h.fiat,color:"subtle",variant:"value",format:e=>"(".concat(h.currency.prefix).concat(e.toFixed(h.currency.fixed),")")})}),(0,s.jsxs)(i.xvT,{size:"12",font:"mono",weight:"medium",children:["per TB/month with ",r.toFixed(1),"x redundancy"]})]}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(i.YKL,{size:"12",value:(0,d.qN)(n),dynamicUnits:!1,fixed:0,variant:"value"}),u.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(i.m2c,{size:"12",weight:"medium",value:u.fiat,color:"subtle",variant:"value",format:e=>"(".concat(u.currency.prefix).concat(e.toFixed(u.currency.fixed),")")})}),(0,s.jsxs)(i.xvT,{size:"12",font:"mono",weight:"medium",children:["to store ",(0,d.vW)((0,i.xf5)(c).toNumber()),"/month with"," ",r.toFixed(1),"x redundancy"]})]})]}):(0,s.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:o?"Enter expected storage, period, and allowance values to estimate monthly spending.":"Enter expected storage and max price to estimate monthly spending."})}var h=n(88242);function f(){let{onSubmit:e,changeCount:t,shouldSyncDefaultContractSet:n,setShouldSyncDefaultContractSet:a,revalidateAndResetFormData:r,form:c}=(0,l.ZR)();return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[!!t&&(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"1 change":"".concat(t," changes")}),(0,s.jsx)(i.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!t,onClick:r,children:(0,s.jsx)(h.Wet,{})}),(0,s.jsxs)(i.eQh,{children:[(0,s.jsxs)(i.zxk,{tip:"Save all changes",variant:"accent",disabled:!c.formState.isDirty||c.formState.isSubmitting,onClick:e,children:[(0,s.jsx)(h.ZEk,{}),"Save changes"]}),(0,s.jsx)(i.J2e,{contentProps:{align:"end"},trigger:(0,s.jsx)(i.zxk,{variant:"accent",icon:"hover",children:(0,s.jsx)(h.shL,{})}),children:(0,s.jsxs)("div",{className:"px-1",children:[(0,s.jsx)(i.__J,{children:"Options"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(i.rsf,{checked:n,onCheckedChange:e=>a(e),children:"sync default contract set"}),(0,s.jsx)(i.nvN,{size:"12",children:"Automatically update the default contract set to be the same as the autopilot contract set when changes are saved."})]})]})})]})]})}function v(){let{showAdvanced:e,setShowAdvanced:t}=(0,l.ZR)();return(0,s.jsx)("div",{className:"pl-1",children:(0,s.jsx)(i.ua7,{content:e?"Hide advanced":"Show advanced",children:(0,s.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,s.jsx)(i.rsf,{checked:e,onCheckedChange:e=>t(e)}),(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function m(){let{openDialog:e}=(0,c.Rh)(),{form:t,fields:n}=(0,l.ZR)();return(0,s.jsx)(o.J,{title:"Configuration",routes:r._,nav:(0,s.jsx)(v,{}),sidenav:(0,s.jsx)(a.e,{}),stats:(0,s.jsx)(u,{}),actions:(0,s.jsx)(f,{}),openSettings:()=>e("settings"),children:(0,s.jsxs)("div",{className:"px-5 py-6 flex flex-col gap-16 max-w-screen-xl",children:[(0,s.jsx)(i.vRO,{title:"Storage",category:"storage",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Pricing",category:"gouging",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Hosts",category:"hosts",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Wallet",category:"wallet",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Contracts",category:"contractset",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Uploads",category:"uploadpacking",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Redundancy",category:"redundancy",fields:n,form:t})]})})}function j(){return(0,s.jsx)(m,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=57344)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/config-d8d148c599d1a047.js b/renterd/assets/_next/static/chunks/pages/config-d8d148c599d1a047.js new file mode 100644 index 000000000..5aac7373b --- /dev/null +++ b/renterd/assets/_next/static/chunks/pages/config-d8d148c599d1a047.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{57344:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/config",function(){return n(60807)}])},89630:function(e,t,n){"use strict";n.d(t,{J:function(){return h}});var s=n(52322),i=n(80446),a=n(9969),c=n(6391),r=n.n(c),o=n(71930),l=n(25573),d=n(86450);function x(){var e,t,n,c,r;let{openDialog:o}=(0,d.Rh)(),x=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,a.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.cQ)(),f=(0,l.n)(),v=null===(e=x.data)||void 0===e?void 0:e.version,m="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v);return(0,s.jsxs)(i.HfT,{name:"renterd",peerCount:null===(t=h.data)||void 0===t?void 0:t.length,connectPeer:()=>o("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(n=u.data)||void 0===n?void 0:n.address,type:"address"})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(c=x.data)||void 0===c?void 0:c.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:m,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=x.data)||void 0===r?void 0:r.version})]})]})}function u(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}function h(e){let t=(0,a.Tu)(),{isSynced:n}=(0,l.n)();return(0,s.jsx)(i.tU3,{appName:"renterd",profile:(0,s.jsx)(x,{}),banner:(0,s.jsx)(u,{}),connectivityRoute:o.h,isSynced:n,walletBalanceSc:t.data&&{spendable:new(r())(t.data.spendable),confirmed:new(r())(t.data.confirmed),unconfirmed:new(r())(t.data.unconfirmed)},...e})}},91930:function(e,t,n){"use strict";n.d(t,{e:function(){return d}});var s=n(52322),i=n(80446),a=n(88242),c=n(9969),r=n(82851),o=n(71930),l=n(86450);function d(){var e,t;let n=(0,c.Z7)(),{openDialog:d}=(0,l.Rh)(),x=!(null===(e=n.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(t=n.data)||void 0===t?void 0:t.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Files",route:o._.files.index,children:(0,s.jsx)(a.ROc,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:o._.config.index,children:(0,s.jsx)(a.wWN,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:o._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Hosts",route:o._.hosts.index,children:(0,s.jsx)(a.VHe,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,s.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,s.jsx)(i.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,s.jsx)(a.Dkj,{})})]})]})}},60807:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return j}});var s=n(52322),i=n(80446),a=n(91930),c=n(71930),r=n(86450),o=n(89630),l=n(17286),d=n(96206),x=n(91641);function u(){let{autopilot:e}=(0,x.q)(),{canEstimate:t,estimatedSpendingPerMonth:n,estimatedSpendingPerTB:a,redundancyMultiplier:c,storageTB:r,showAdvanced:o}=(0,l.ZR)(),u=(0,i.fb0)({sc:n}),h=(0,i.fb0)({sc:a});return"on"!==e.status?null:t?(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:"Estimate:"}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(i.YKL,{size:"12",value:(0,d.qN)(a),dynamicUnits:!1,fixed:0,variant:"value"}),h.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(i.m2c,{size:"12",weight:"medium",value:h.fiat,color:"subtle",variant:"value",format:e=>"(".concat(h.currency.prefix).concat(e.toFixed(h.currency.fixed),")")})}),(0,s.jsxs)(i.xvT,{size:"12",font:"mono",weight:"medium",children:["per TB/month with ",c.toFixed(1),"x redundancy"]})]}),(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)(i.YKL,{size:"12",value:(0,d.qN)(n),dynamicUnits:!1,fixed:0,variant:"value"}),u.fiat&&(0,s.jsx)("div",{className:"flex",children:(0,s.jsx)(i.m2c,{size:"12",weight:"medium",value:u.fiat,color:"subtle",variant:"value",format:e=>"(".concat(u.currency.prefix).concat(e.toFixed(u.currency.fixed),")")})}),(0,s.jsxs)(i.xvT,{size:"12",font:"mono",weight:"medium",children:["to store ",(0,d.vW)((0,i.xf5)(r).toNumber()),"/month with"," ",c.toFixed(1),"x redundancy"]})]})]}):(0,s.jsx)(i.xvT,{size:"12",font:"mono",weight:"medium",children:o?"Enter expected storage, period, and allowance values to estimate monthly spending.":"Enter expected storage and max price to estimate monthly spending."})}var h=n(88242);function f(){let{onSubmit:e,changeCount:t,shouldSyncDefaultContractSet:n,setShouldSyncDefaultContractSet:a,revalidateAndResetFormData:c,form:r}=(0,l.ZR)();return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[!!t&&(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:1===t?"1 change":"".concat(t," changes")}),(0,s.jsx)(i.zxk,{tip:"Reset all changes",icon:"contrast",disabled:!t,onClick:c,children:(0,s.jsx)(h.Wet,{})}),(0,s.jsxs)(i.eQh,{children:[(0,s.jsxs)(i.zxk,{tip:"Save all changes",variant:"accent",disabled:!r.formState.isDirty||r.formState.isSubmitting,onClick:e,children:[(0,s.jsx)(h.ZEk,{}),"Save changes"]}),(0,s.jsx)(i.J2e,{contentProps:{align:"end"},trigger:(0,s.jsx)(i.zxk,{variant:"accent",icon:"hover",children:(0,s.jsx)(h.shL,{})}),children:(0,s.jsxs)("div",{className:"px-1",children:[(0,s.jsx)(i.__J,{children:"Options"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(i.rsf,{checked:n,onCheckedChange:e=>a(e),children:"sync default contract set"}),(0,s.jsx)(i.nvN,{size:"12",children:"Automatically update the default contract set to be the same as the autopilot contract set when changes are saved."})]})]})})]})]})}function v(){let{showAdvanced:e,setShowAdvanced:t}=(0,l.ZR)();return(0,s.jsx)("div",{className:"pl-1",children:(0,s.jsx)(i.ua7,{content:e?"Hide advanced":"Show advanced",children:(0,s.jsxs)("div",{className:"flex gap-1 items-center",children:[(0,s.jsx)(i.rsf,{checked:e,onCheckedChange:e=>t(e)}),(0,s.jsx)(i.xvT,{size:"12",color:"subtle",children:"Advanced"})]})})})}function m(){let{openDialog:e}=(0,r.Rh)(),{form:t,fields:n}=(0,l.ZR)();return(0,s.jsx)(o.J,{title:"Configuration",routes:c._,nav:(0,s.jsx)(v,{}),sidenav:(0,s.jsx)(a.e,{}),stats:(0,s.jsx)(u,{}),actions:(0,s.jsx)(f,{}),openSettings:()=>e("settings"),children:(0,s.jsxs)("div",{className:"px-5 py-6 flex flex-col gap-16 max-w-screen-xl",children:[(0,s.jsx)(i.vRO,{title:"Storage",category:"storage",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Pricing",category:"gouging",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Hosts",category:"hosts",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Wallet",category:"wallet",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Contracts",category:"contractset",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Uploads",category:"uploadpacking",fields:n,form:t}),(0,s.jsx)(i.vRO,{title:"Redundancy",category:"redundancy",fields:n,form:t})]})})}function j(){return(0,s.jsx)(m,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=57344)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/contracts-640dafa6a2a2d93c.js b/renterd/assets/_next/static/chunks/pages/contracts-640dafa6a2a2d93c.js new file mode 100644 index 000000000..ac37044ab --- /dev/null +++ b/renterd/assets/_next/static/chunks/pages/contracts-640dafa6a2a2d93c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return s(71187)}])},89630:function(e,n,s){"use strict";s.d(n,{J:function(){return h}});var t=s(52322),l=s(80446),a=s(9969),i=s(6391),r=s.n(i),c=s(71930),o=s(25573),d=s(86450);function u(){var e,n,s,i,r;let{openDialog:c}=(0,d.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.cQ)(),j=(0,o.n)(),m=null===(e=u.data)||void 0===e?void 0:e.version,v="?"===m?"https://github.com/SiaFoundation/renterd/commits/":(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(m):"https://github.com/SiaFoundation/renterd/tree/".concat(m);return(0,t.jsxs)(l.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>c("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)(l.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(s=x.data)||void 0===s?void 0:s.address,type:"address"})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(l.xvT,{size:"14",children:null===(i=u.data)||void 0===i?void 0:i.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(l.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=u.data)||void 0===r?void 0:r.version})]})]})}function x(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(l.t6k,{testnetName:e.data.network}):null}function h(e){let n=(0,a.Tu)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(l.tU3,{appName:"renterd",profile:(0,t.jsx)(u,{}),banner:(0,t.jsx)(x,{}),connectivityRoute:c.h,isSynced:s,walletBalanceSc:n.data&&{spendable:new(r())(n.data.spendable),confirmed:new(r())(n.data.confirmed),unconfirmed:new(r())(n.data.unconfirmed)},...e})}},91930:function(e,n,s){"use strict";s.d(n,{e:function(){return d}});var t=s(52322),l=s(80446),a=s(88242),i=s(9969),r=s(82851),c=s(71930),o=s(86450);function d(){var e,n;let s=(0,i.Z7)(),{openDialog:d}=(0,o.Rh)(),u=!(null===(e=s.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=s.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.KJW,{title:"Files",route:c._.files.index,children:(0,t.jsx)(a.ROc,{})}),(0,t.jsx)(l.KJW,{title:"Configuration",route:c._.config.index,children:(0,t.jsx)(a.wWN,{})}),(0,t.jsx)(l.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(l.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,t.jsx)(a.VHe,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,t.jsx)(l.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,t.jsx)(l.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},71187:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return _}});var t=s(52322),l=s(91930),a=s(71930),i=s(80446),r=s(86450),c=s(13242),o=s(89630),d=s(88242);function u(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function x(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.VBo,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure autopilot or manually form contracts to get started."})]})}var h=s(56860),j=s(3440),m=s.n(j);function v(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:s,setColumnsVisible:l,setColumnsHidden:a,sortField:r,setSortField:o,sortDirection:u,setSortDirection:x,enabledColumns:j}=(0,c.G)(),v=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),f=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),p=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(i.J2e,{trigger:(0,t.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(d.hiv,{}),"View",(0,t.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Order by"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.PhF,{value:r,onChange:e=>{o(e.currentTarget.value)},children:Object.entries(m()(h.Fo,"category")).map(e=>{let[n,s]=e;return(0,t.jsx)("optgroup",{label:n,children:s.map(e=>(0,t.jsx)(i.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Direction"}),(0,t.jsx)(i.kFS,{children:(0,t.jsxs)(i.PhF,{value:u,onClick:e=>{e.stopPropagation()},onChange:e=>{x(e.currentTarget.value)},children:[(0,t.jsx)(i.Wxm,{value:"desc",children:"descending"},"desc"),(0,t.jsx)(i.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,t.jsx)(i.Clw,{}),(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Display properties"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,t.jsx)(d.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:v.map(e=>e.value),enabled:j,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:v,values:j,onChange:e=>n(e)})}),(0,t.jsx)(i.FzK,{label:"Time",columns:f.map(e=>e.value),enabled:j,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:f,values:j,onChange:e=>n(e)})}),(0,t.jsx)(i.FzK,{label:"Financial",columns:p.map(e=>e.value),enabled:j,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:p,values:j,onChange:e=>n(e)})})]})}function f(){return(0,t.jsx)("div",{className:"flex gap-2",children:(0,t.jsx)(v,{})})}function p(e){let{error:n}=e;return(null==n?void 0:n.message.startsWith("404"))?(0,t.jsx)(x,{}):(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var g=s(99182),b=s(2784),k=s(93216);function w(){let{filters:e,removeFilter:n,removeLastFilter:s}=(0,c.G)(),[l,a]=(0,b.useState)(!1),[r,o]=(0,b.useState)(""),[u,x]=(0,b.useState)([]),h=u[u.length-1],j=(u.length,(0,b.useRef)(null)),m=(0,b.useRef)(null),v=(0,b.useCallback)(e=>{x(n=>[...n,e])},[x]),f=(0,b.useCallback)(()=>{x([])},[x]);(0,b.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let p=(0,b.useCallback)(()=>{var e;null===(e=m.current)||void 0===e||e.focus()},[m]),w=(0,b.useCallback)(()=>{o(""),f()},[f]);return(0,t.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,t.jsxs)(i.eQh,{children:[(0,t.jsx)(i.zxk,{variant:"active",state:"waiting",children:e.label}),(0,t.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>n(e.id),children:(0,t.jsx)(d.PcV,{})})]},e.id)),(0,t.jsxs)(g.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(u.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),x(e=>e.slice(0,-1)));else if(0===u.length&&("Backspace"!==e.key||r||s(),"Escape"===e.key&&!r)){var n;a(!1),null===(n=m.current)||void 0===n||n.blur()}},children:[(0,t.jsx)(g.mY.Input,{ref:m,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),l&&(0,t.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,t.jsxs)(i.xrM,{children:[h&&(0,t.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,t.jsx)(g.mY.List,{children:(0,t.jsx)(k.F,{currentPage:h,beforeSelect:p,afterSelect:w,pushPage:v})})]})})]})]})}function N(){let{dataState:e,offset:n,limit:s,datasetCount:l,pageCount:a}=(0,c.G)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,t.jsx)(w,{}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(i.uDJ,{isLoading:"loading"===e,offset:n,limit:s,datasetTotal:l,pageTotal:a})]})}function y(){let{openDialog:e}=(0,r.Rh)(),{columns:n,datasetPage:s,sortField:d,sortDirection:h,sortableColumns:j,toggleSort:m,limit:v,dataState:g,cellContext:b,error:k}=(0,c.G)();return(0,t.jsx)(o.J,{title:"Active contracts",routes:a._,sidenav:(0,t.jsx)(l.e,{}),openSettings:()=>e("settings"),stats:(0,t.jsx)(N,{}),size:"full",actions:(0,t.jsx)(f,{}),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(i.iA_,{context:b,isLoading:"loading"===g,emptyState:"noneMatchingFilters"===g?(0,t.jsx)(u,{}):"noneYet"===g?(0,t.jsx)(x,{}):"error"===g?(0,t.jsx)(p,{error:k}):null,sortableColumns:j,pageSize:v,data:s,columns:n,sortDirection:h,sortField:d,toggleSort:m})})})}function _(){return(0,t.jsx)(y,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/contracts-68bb1875565d08a0.js b/renterd/assets/_next/static/chunks/pages/contracts-68bb1875565d08a0.js deleted file mode 100644 index 6163ce287..000000000 --- a/renterd/assets/_next/static/chunks/pages/contracts-68bb1875565d08a0.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[348],{77441:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contracts",function(){return s(71187)}])},89630:function(e,n,s){"use strict";s.d(n,{J:function(){return h}});var t=s(52322),l=s(23305),a=s(9969),i=s(6391),r=s.n(i),c=s(71930),o=s(25573),d=s(86450);function u(){var e,n,s,i,r;let{openDialog:c}=(0,d.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.cQ)(),j=(0,o.n)(),m=null===(e=u.data)||void 0===e?void 0:e.version,v="?"===m?"https://github.com/SiaFoundation/renterd/commits/":(null==m?void 0:m.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(m):"https://github.com/SiaFoundation/renterd/tree/".concat(m);return(0,t.jsxs)(l.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>c("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,t.jsx)(l.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(s=x.data)||void 0===s?void 0:s.address,type:"address"})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,t.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,t.jsx)(l.xvT,{size:"14",children:null===(i=u.data)||void 0===i?void 0:i.network})})]}),(0,t.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,t.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,t.jsx)(l.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=u.data)||void 0===r?void 0:r.version})]})]})}function x(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,t.jsx)(l.t6k,{testnetName:e.data.network}):null}function h(e){let n=(0,a.Tu)(),{isSynced:s}=(0,o.n)();return(0,t.jsx)(l.tU3,{appName:"renterd",profile:(0,t.jsx)(u,{}),banner:(0,t.jsx)(x,{}),connectivityRoute:c.h,isSynced:s,walletBalance:n.data?new(r())(n.data.spendable).plus(n.data.unconfirmed):void 0,...e})}},91930:function(e,n,s){"use strict";s.d(n,{e:function(){return d}});var t=s(52322),l=s(23305),a=s(88242),i=s(9969),r=s(82851),c=s(71930),o=s(86450);function d(){var e,n;let s=(0,i.Z7)(),{openDialog:d}=(0,o.Rh)(),u=!(null===(e=s.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=s.data)||void 0===n?void 0:n.length)||0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.KJW,{title:"Files",route:c._.files.index,children:(0,t.jsx)(a.ROc,{})}),(0,t.jsx)(l.KJW,{title:"Configuration",route:c._.config.index,children:(0,t.jsx)(a.wWN,{})}),(0,t.jsx)(l.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,t.jsx)(a.VBo,{})}),(0,t.jsx)(l.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,t.jsx)(a.VHe,{})}),(0,t.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,t.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,t.jsx)(l.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,t.jsx)(l.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,t.jsx)(a.Dkj,{})})]})]})}},71187:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return _}});var t=s(52322),l=s(91930),a=s(71930),i=s(23305),r=s(86450),c=s(13242),o=s(89630),d=s(88242);function u(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No active contracts matching filters."})]})}function x(){return(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.VBo,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"There are currently no active contracts. Configure autopilot or manually form contracts to get started."})]})}var h=s(56860),j=s(3440),m=s.n(j);function v(){let{configurableColumns:e,toggleColumnVisibility:n,resetDefaultColumnVisibility:s,setColumnsVisible:l,setColumnsHidden:a,sortField:r,setSortField:o,sortDirection:u,setSortDirection:x,enabledColumns:j}=(0,c.G)(),v=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),f=e.filter(e=>"time"===e.category).map(e=>({label:e.label,value:e.id})),p=e.filter(e=>"financial"===e.category).map(e=>({label:e.label,value:e.id}));return(0,t.jsxs)(i.J2e,{trigger:(0,t.jsxs)(i.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,t.jsx)(d.hiv,{}),"View",(0,t.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Order by"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.PhF,{value:r,onChange:e=>{o(e.currentTarget.value)},children:Object.entries(m()(h.Fo,"category")).map(e=>{let[n,s]=e;return(0,t.jsx)("optgroup",{label:n,children:s.map(e=>(0,t.jsx)(i.Wxm,{value:e.id,children:e.label},e.id))},n)})})})]}),(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Direction"}),(0,t.jsx)(i.kFS,{children:(0,t.jsxs)(i.PhF,{value:u,onClick:e=>{e.stopPropagation()},onChange:e=>{x(e.currentTarget.value)},children:[(0,t.jsx)(i.Wxm,{value:"desc",children:"descending"},"desc"),(0,t.jsx)(i.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,t.jsx)(i.Clw,{}),(0,t.jsxs)(i.WVB,{children:[(0,t.jsx)(i.__J,{children:"Display properties"}),(0,t.jsx)(i.kFS,{children:(0,t.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),s()},children:(0,t.jsx)(d.Wet,{})})})]}),(0,t.jsx)(i.FzK,{label:"General",columns:v.map(e=>e.value),enabled:j,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:v,values:j,onChange:e=>n(e)})}),(0,t.jsx)(i.FzK,{label:"Time",columns:f.map(e=>e.value),enabled:j,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:f,values:j,onChange:e=>n(e)})}),(0,t.jsx)(i.FzK,{label:"Financial",columns:p.map(e=>e.value),enabled:j,setColumnsVisible:l,setColumnsHidden:a}),(0,t.jsx)(i.WVB,{children:(0,t.jsx)(i.j4H,{options:p,values:j,onChange:e=>n(e)})})]})}function f(){return(0,t.jsx)("div",{className:"flex gap-2",children:(0,t.jsx)(v,{})})}function p(e){let{error:n}=e;return(null==n?void 0:n.message.startsWith("404"))?(0,t.jsx)(x,{}):(0,t.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,t.jsx)(i.xvT,{children:(0,t.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,t.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching contracts."})]})}var g=s(99182),b=s(2784),k=s(93216);function w(){let{filters:e,removeFilter:n,removeLastFilter:s}=(0,c.G)(),[l,a]=(0,b.useState)(!1),[r,o]=(0,b.useState)(""),[u,x]=(0,b.useState)([]),h=u[u.length-1],j=(u.length,(0,b.useRef)(null)),m=(0,b.useRef)(null),v=(0,b.useCallback)(e=>{x(n=>[...n,e])},[x]),f=(0,b.useCallback)(()=>{x([])},[x]);(0,b.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let p=(0,b.useCallback)(()=>{var e;null===(e=m.current)||void 0===e||e.focus()},[m]),w=(0,b.useCallback)(()=>{o(""),f()},[f]);return(0,t.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,t.jsxs)(i.eQh,{children:[(0,t.jsx)(i.zxk,{variant:"active",state:"waiting",children:e.label}),(0,t.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>n(e.id),children:(0,t.jsx)(d.PcV,{})})]},e.id)),(0,t.jsxs)(g.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(u.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),x(e=>e.slice(0,-1)));else if(0===u.length&&("Backspace"!==e.key||r||s(),"Escape"===e.key&&!r)){var n;a(!1),null===(n=m.current)||void 0===n||n.blur()}},children:[(0,t.jsx)(g.mY.Input,{ref:m,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter contracts"}),l&&(0,t.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,t.jsxs)(i.xrM,{children:[h&&(0,t.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,t.jsx)(g.mY.List,{children:(0,t.jsx)(k.F,{currentPage:h,beforeSelect:p,afterSelect:w,pushPage:v})})]})})]})]})}function N(){let{dataState:e,offset:n,limit:s,datasetCount:l,pageCount:a}=(0,c.G)();return(0,t.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,t.jsx)(w,{}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsx)(i.uDJ,{isLoading:"loading"===e,offset:n,limit:s,datasetTotal:l,pageTotal:a})]})}function y(){let{openDialog:e}=(0,r.Rh)(),{columns:n,datasetPage:s,sortField:d,sortDirection:h,sortableColumns:j,toggleSort:m,limit:v,dataState:g,cellContext:b,error:k}=(0,c.G)();return(0,t.jsx)(o.J,{title:"Active contracts",routes:a._,sidenav:(0,t.jsx)(l.e,{}),openSettings:()=>e("settings"),stats:(0,t.jsx)(N,{}),size:"full",actions:(0,t.jsx)(f,{}),children:(0,t.jsx)("div",{className:"p-6 min-w-fit",children:(0,t.jsx)(i.iA_,{context:b,isLoading:"loading"===g,emptyState:"noneMatchingFilters"===g?(0,t.jsx)(u,{}):"noneYet"===g?(0,t.jsx)(x,{}):"error"===g?(0,t.jsx)(p,{error:k}):null,sortableColumns:j,pageSize:v,data:s,columns:n,sortDirection:h,sortField:d,toggleSort:m})})})}function _(){return(0,t.jsx)(y,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=77441)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/files/[[...path]]-c0058a266ee4f4f3.js b/renterd/assets/_next/static/chunks/pages/files/[[...path]]-c0058a266ee4f4f3.js deleted file mode 100644 index 854e0f1ec..000000000 --- a/renterd/assets/_next/static/chunks/pages/files/[[...path]]-c0058a266ee4f4f3.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[958],{38345:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/files/[[...path]]",function(){return t(15855)}])},89630:function(e,s,t){"use strict";t.d(s,{J:function(){return h}});var i=t(52322),n=t(23305),l=t(9969),a=t(6391),r=t.n(a),o=t(71930),c=t(25573),d=t(86450);function x(){var e,s,t,a,r;let{openDialog:o}=(0,d.Rh)(),x=(0,l.d_)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,l.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,l.cQ)(),j=(0,c.n)(),v=null===(e=x.data)||void 0===e?void 0:e.version,f="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v);return(0,i.jsxs)(n.HfT,{name:"renterd",peerCount:null===(s=h.data)||void 0===s?void 0:s.length,connectPeer:()=>o("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(n.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)(n.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(t=u.data)||void 0===t?void 0:t.address,type:"address"})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(n.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,i.jsx)(n.xvT,{size:"14",children:null===(a=x.data)||void 0===a?void 0:a.network})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(n.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(n.rUS,{size:"14",href:f,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=x.data)||void 0===r?void 0:r.version})]})]})}function u(){let e=(0,l.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(n.t6k,{testnetName:e.data.network}):null}function h(e){let s=(0,l.Tu)(),{isSynced:t}=(0,c.n)();return(0,i.jsx)(n.tU3,{appName:"renterd",profile:(0,i.jsx)(x,{}),banner:(0,i.jsx)(u,{}),connectivityRoute:o.h,isSynced:t,walletBalance:s.data?new(r())(s.data.spendable).plus(s.data.unconfirmed):void 0,...e})}},91930:function(e,s,t){"use strict";t.d(s,{e:function(){return d}});var i=t(52322),n=t(23305),l=t(88242),a=t(9969),r=t(82851),o=t(71930),c=t(86450);function d(){var e,s;let t=(0,a.Z7)(),{openDialog:d}=(0,c.Rh)(),x=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(s=t.data)||void 0===s?void 0:s.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.KJW,{title:"Files",route:o._.files.index,children:(0,i.jsx)(l.ROc,{})}),(0,i.jsx)(n.KJW,{title:"Configuration",route:o._.config.index,children:(0,i.jsx)(l.wWN,{})}),(0,i.jsx)(n.KJW,{title:"Contracts",route:o._.contracts.index,children:(0,i.jsx)(l.VBo,{})}),(0,i.jsx)(n.KJW,{title:"Hosts",route:o._.hosts.index,children:(0,i.jsx)(l.VHe,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,i.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,i.jsx)(n.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,i.jsx)(n.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,i.jsx)(l.Dkj,{})})]})]})}},15855:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return q}});var i=t(52322),n=t(91930),l=t(71930),a=t(86450),r=t(23305),o=t(48528),c=t(88242),d=t(9969),x=t(91641);function u(){let{autopilot:e}=(0,x.q)(),s=(0,d.e$)({config:{swr:{errorRetryCount:0}}});return{active:"on"===e.status&&!!s.error}}var h=t(4370);function j(){return(0,i.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,i.jsx)(r.xvT,{children:(0,i.jsx)(c.Ckx,{className:"scale-[200%]"})}),(0,i.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching files."})]})}function v(){return(0,i.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,i.jsx)(r.xvT,{children:(0,i.jsx)(c.Hb6,{className:"scale-[200%]"})}),(0,i.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files matching filters."})]})}function f(){return(0,i.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,i.jsx)(r.xvT,{children:(0,i.jsx)(c.Y9T,{className:"scale-[200%]"})}),(0,i.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files, drag and drop files or click here to start uploading."})]})}function m(){let{dataState:e,isViewingRootOfABucket:s}=(0,o.Y)(),t=u(),n=(0,h.F)();return"noneMatchingFilters"===e?(0,i.jsx)(v,{}):"error"===e?(0,i.jsx)(j,{}):s&&"noneYet"===e&&t.active?(0,i.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,i.jsx)(r.xvT,{children:(0,i.jsx)(c.Y9T,{className:"scale-[200%]"})}),(0,i.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,i.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Before you can upload files you must configure autopilot. Autopilot finds contracts with hosts based on the settings you choose. Autopilot also repairs your data as hosts come and go."}),(0,i.jsx)(r.Qjf,{variant:"accent",href:l._.config.index,children:"Configure autopilot →"})]})]}):s&&"noneYet"===e&&n.active?(0,i.jsxs)("div",{className:"flex flex-col gap-12 justify-center items-center h-[400px] cursor-pointer",children:[(0,i.jsx)(r.xvT,{children:(0,i.jsx)(c.Y9T,{className:"scale-[200%]"})}),(0,i.jsxs)("div",{className:"flex flex-col gap-4 justify-center items-center",children:[(0,i.jsxs)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",n.required," shards which means at least that many contracts are required."]}),(0,i.jsxs)(r.xvT,{size:"30",className:"text-center max-w-[500px]",children:[n.count,"/",n.required]})]})]}):"noneYet"===e?(0,i.jsx)(f,{}):null}function g(){let{isViewingABucket:e}=(0,o.Y)(),s=u(),t=(0,h.F)();return e&&!s.active&&!t.active}function p(){let{uploadFiles:e,datasetPage:s,pageCount:t,dataState:n,columns:l,sortField:a,sortDirection:c,sortableColumns:d,toggleSort:x}=(0,o.Y)(),u=g();return(0,i.jsx)("div",{className:"relative",children:(0,i.jsx)(r.fhJ,{onDrop:e,noClick:!u||t>0,noDrag:!u,children:(0,i.jsx)(r.iA_,{isLoading:"loading"===n,emptyState:(0,i.jsx)(m,{}),pageSize:10,data:s,columns:l,sortableColumns:d,sortField:a,sortDirection:c,toggleSort:x,rowSize:"dense"})})})}var b=t(2784);function N(){let{activeDirectory:e,setActiveDirectory:s}=(0,o.Y)(),t=(0,b.useRef)(null);return(0,b.useEffect)(()=>{let e=setTimeout(()=>{var e;null===(e=t.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},100);return()=>{clearTimeout(e)}},[e]),(0,i.jsx)(r.xrM,{children:(0,i.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,i.jsx)(r.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Files"}),e.length>0&&(0,i.jsx)(r.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,i.jsx)(c.F3j,{})}),e.map((e,t)=>(0,i.jsxs)(b.Fragment,{children:[t>0&&(0,i.jsx)(r.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,i.jsx)(c.F3j,{})}),(0,i.jsx)(r.xvT,{onClick:()=>s(e=>e.slice(0,t+1)),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e})]},e+t)),(0,i.jsx)("div",{ref:t})]})})}var T=t(89630),w=t(74424),z=t(81471),y=t(3440),k=t.n(y);function S(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:t,sortField:n,setSortField:l,sortDirection:a,setSortDirection:d,enabledColumns:x}=(0,o.Y)();return(0,i.jsxs)(r.J2e,{trigger:(0,i.jsxs)(r.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,i.jsx)(c.hiv,{}),"View",(0,i.jsx)(c.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,i.jsxs)(r.WVB,{children:[(0,i.jsx)(r.__J,{children:"Order by"}),(0,i.jsx)(r.kFS,{children:(0,i.jsx)(r.PhF,{value:n,onChange:e=>{l(e.currentTarget.value)},children:Object.entries(k()(z.Fo,"category")).map(e=>{let[s,t]=e;return(0,i.jsx)("optgroup",{label:s,children:t.map(e=>(0,i.jsx)(r.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,i.jsxs)(r.WVB,{children:[(0,i.jsx)(r.__J,{children:"Direction"}),(0,i.jsx)(r.kFS,{children:(0,i.jsxs)(r.PhF,{value:a,onClick:e=>{e.stopPropagation()},onChange:e=>{d(e.currentTarget.value)},children:[(0,i.jsx)(r.Wxm,{value:"desc",children:"descending"},"desc"),(0,i.jsx)(r.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,i.jsx)(r.Clw,{}),(0,i.jsxs)(r.WVB,{children:[(0,i.jsx)(r.__J,{children:"Display properties"}),(0,i.jsx)(r.kFS,{children:(0,i.jsx)(r.zxk,{onClick:e=>{e.stopPropagation(),t()},children:"Reset default"})})]}),(0,i.jsx)(r.WVB,{children:(0,i.jsx)(r.j4H,{options:e.map(e=>({label:e.label,value:e.id})),values:x,onChange:e=>s(e)})})]})}function _(){let{openDialog:e}=(0,a.Rh)(),{uploadFiles:s,isViewingBuckets:t}=(0,o.Y)(),n=g(),{getRootProps:l,getInputProps:d}=(0,w.uI)({noDrag:!0,noClick:!n,onDrop:s});return(0,i.jsxs)("div",{className:"flex gap-2",children:[t?(0,i.jsxs)(r.zxk,{onClick:()=>e("filesCreateBucket"),tip:"Create bucket",children:[(0,i.jsx)(c.aXP,{}),"Create bucket"]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.zxk,{onClick:()=>e("filesSearch"),tip:"Search files",children:(0,i.jsx)(c.UBs,{})}),(0,i.jsxs)(r.zxk,{...l(),tip:"Upload files",disabled:!n,children:[(0,i.jsx)("input",{...d()}),(0,i.jsx)(c.bQp,{})]}),(0,i.jsx)(r.zxk,{disabled:!n,onClick:()=>e("filesCreateDirectory"),tip:"Create directory",children:(0,i.jsx)(c.L37,{})})]}),(0,i.jsx)(S,{})]})}var F=t(96206);function C(){let e=(0,d.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}});if(!e.data&&e.isValidating)return(0,i.jsx)(r.xgg,{className:"pr-1"});if(!e.data)return null;let s=e.data.totalObjectsSize?e.data.totalSectorsSize/e.data.totalObjectsSize:0;return(0,i.jsx)(r.ua7,{side:"bottom",content:(0,i.jsxs)(r.xvT,{className:"flex justify-between gap-6",children:[(0,i.jsxs)(r.xvT,{className:"flex flex-col gap-1",children:[(0,i.jsx)(r.xvT,{size:"12",color:"subtle",children:"size of all files"}),(0,i.jsx)(r.xvT,{size:"12",color:"subtle",children:"with redundancy"}),!!s&&(0,i.jsx)(r.xvT,{size:"12",color:"subtle",children:"average redundancy factor"}),(0,i.jsx)(r.Z0O,{className:"w-full my-1"}),(0,i.jsx)(r.xvT,{size:"12",color:"subtle",children:"reclaimable space"}),(0,i.jsx)(r.xvT,{size:"12",color:"subtle",children:"total storage utilization"})]}),(0,i.jsxs)(r.xvT,{className:"flex flex-col gap-1 items-end",children:[(0,i.jsx)(r.xvT,{size:"12",children:(0,F.vW)(e.data.totalObjectsSize)}),(0,i.jsx)(r.xvT,{size:"12",children:(0,F.vW)(e.data.totalSectorsSize)}),!!s&&(0,i.jsxs)(r.xvT,{size:"12",font:"mono",children:[s.toFixed(1),"x"]}),(0,i.jsx)(r.Z0O,{className:"w-full my-1"}),(0,i.jsx)(r.xvT,{size:"12",children:(0,F.vW)(e.data.totalUploadedSize-e.data.totalSectorsSize)}),(0,i.jsx)(r.xvT,{size:"12",children:(0,F.vW)(e.data.totalUploadedSize)})]})]}),children:(0,i.jsx)(r.xvT,{size:"12",font:"mono",children:"".concat((0,F.vW)(e.data.totalObjectsSize)).concat(s?" @ ".concat(s.toFixed(1),"x"):"")})})}var W=t(82439);function O(){var e;let{activeBucket:s}=(0,o.Y)(),t=(0,d.Jv)({disabled:!s,params:{key:"",bucket:s},config:{swr:{dedupingInterval:5e3}}}),n=(0,b.useMemo)(()=>{var e,s,i,n;return null===(n=t.data)||void 0===n?void 0:null===(i=n.entries)||void 0===i?void 0:i.reduce((e,s)=>{let{health:t}=s;return te("settings"),children:(0,i.jsx)("div",{className:"p-6 min-w-fit",children:(0,i.jsx)(p,{})})})}function q(){return(0,i.jsx)(P,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=38345)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/files/[[...path]]-c82a9e65ee4ec6a1.js b/renterd/assets/_next/static/chunks/pages/files/[[...path]]-c82a9e65ee4ec6a1.js new file mode 100644 index 000000000..efe5d373d --- /dev/null +++ b/renterd/assets/_next/static/chunks/pages/files/[[...path]]-c82a9e65ee4ec6a1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[958],{38345:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/files/[[...path]]",function(){return t(14278)}])},89630:function(e,s,t){"use strict";t.d(s,{J:function(){return h}});var n=t(52322),l=t(80446),i=t(9969),a=t(6391),r=t.n(a),c=t(71930),o=t(25573),d=t(86450);function x(){var e,s,t,a,r;let{openDialog:c}=(0,d.Rh)(),x=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}}),u=(0,i.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,i.cQ)(),j=(0,o.n)(),f=null===(e=x.data)||void 0===e?void 0:e.version,v="?"===f?"https://github.com/SiaFoundation/renterd/commits/":(null==f?void 0:f.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(f):"https://github.com/SiaFoundation/renterd/tree/".concat(f);return(0,n.jsxs)(l.HfT,{name:"renterd",peerCount:null===(s=h.data)||void 0===s?void 0:s.length,connectPeer:()=>c("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,n.jsx)(l.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(t=u.data)||void 0===t?void 0:t.address,type:"address"})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,n.jsx)(l.xvT,{size:"14",children:null===(a=x.data)||void 0===a?void 0:a.network})})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(l.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,n.jsx)(l.rUS,{size:"14",href:v,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=x.data)||void 0===r?void 0:r.version})]})]})}function u(){let e=(0,i.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,n.jsx)(l.t6k,{testnetName:e.data.network}):null}function h(e){let s=(0,i.Tu)(),{isSynced:t}=(0,o.n)();return(0,n.jsx)(l.tU3,{appName:"renterd",profile:(0,n.jsx)(x,{}),banner:(0,n.jsx)(u,{}),connectivityRoute:c.h,isSynced:t,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},91930:function(e,s,t){"use strict";t.d(s,{e:function(){return d}});var n=t(52322),l=t(80446),i=t(88242),a=t(9969),r=t(82851),c=t(71930),o=t(86450);function d(){var e,s;let t=(0,a.Z7)(),{openDialog:d}=(0,o.Rh)(),x=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),u=(null===(s=t.data)||void 0===s?void 0:s.length)||0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.KJW,{title:"Files",route:c._.files.index,children:(0,n.jsx)(i.ROc,{})}),(0,n.jsx)(l.KJW,{title:"Configuration",route:c._.config.index,children:(0,n.jsx)(i.wWN,{})}),(0,n.jsx)(l.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,n.jsx)(i.VBo,{})}),(0,n.jsx)(l.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,n.jsx)(i.VHe,{})}),(0,n.jsxs)("div",{className:"relative",children:[!!u&&x&&(0,n.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!u&&!x&&(0,n.jsx)(l.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:u.toLocaleString()}),(0,n.jsx)(l.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,n.jsx)(i.Dkj,{})})]})]})}},14278:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return D}});var n=t(52322),l=t(91930),i=t(71930),a=t(86450),r=t(80446),c=t(48528),o=t(88242),d=t(9969),x=t(91641);function u(){let{autopilot:e}=(0,x.q)(),s=(0,d.e$)({config:{swr:{errorRetryCount:0}}});return{active:"on"===e.status&&!!s.error}}var h=t(4370);function j(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(r.xvT,{children:(0,n.jsx)(o.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching files."})]})}function f(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(r.xvT,{children:(0,n.jsx)(o.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files matching filters."})]})}function v(){return(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,n.jsx)(r.xvT,{children:(0,n.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,n.jsx)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No files, drag and drop files or click here to start uploading."})]})}function m(){let{dataState:e,isViewingRootOfABucket:s}=(0,c.Y)(),t=u(),l=(0,h.F)();return"noneMatchingFilters"===e?(0,n.jsx)(f,{}):"error"===e?(0,n.jsx)(j,{}):s&&"noneYet"===e&&t.active?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,n.jsx)(r.xvT,{children:(0,n.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,n.jsxs)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Before you can upload files you must configure your settings. Once configured, ",(0,n.jsx)(r.EKh,{children:"renterd"})," will find contracts with hosts based on the settings you choose. ",(0,n.jsx)(r.EKh,{children:"renterd"})," will also repair your data as hosts come and go."]}),(0,n.jsx)(r.Qjf,{variant:"accent",href:i._.config.index,children:"Configure"})]})]}):s&&"noneYet"===e&&l.active?(0,n.jsxs)("div",{className:"flex flex-col gap-12 justify-center items-center h-[400px] cursor-pointer",children:[(0,n.jsx)(r.xvT,{children:(0,n.jsx)(o.Y9T,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-4 justify-center items-center",children:[(0,n.jsxs)(r.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are not enough contracts to upload data yet. Redundancy is configured to use ",l.required," shards which means at least that many contracts are required."]}),(0,n.jsxs)(r.xvT,{size:"30",className:"text-center max-w-[500px]",children:[l.count,"/",l.required]})]})]}):"noneYet"===e?(0,n.jsx)(v,{}):null}function p(){let{isViewingABucket:e}=(0,c.Y)(),s=u(),t=(0,h.F)();return e&&!s.active&&!t.active}function g(){let{uploadFiles:e,datasetPage:s,pageCount:t,dataState:l,columns:i,sortField:a,sortDirection:o,sortableColumns:d,toggleSort:x}=(0,c.Y)(),u=p();return(0,n.jsx)("div",{className:"relative",children:(0,n.jsx)(r.fhJ,{onDrop:e,noClick:!u||t>0,noDrag:!u,children:(0,n.jsx)(r.iA_,{isLoading:"loading"===l,emptyState:(0,n.jsx)(m,{}),pageSize:10,data:s,columns:i,sortableColumns:d,sortField:a,sortDirection:o,toggleSort:x,rowSize:"dense"})})})}var b=t(2784);function N(){let{activeDirectory:e,setActiveDirectory:s}=(0,c.Y)(),t=(0,b.useRef)(null);return(0,b.useEffect)(()=>{let e=setTimeout(()=>{var e;null===(e=t.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},100);return()=>{clearTimeout(e)}},[e]),(0,n.jsx)(r.xrM,{children:(0,n.jsxs)("div",{className:"flex gap-1 items-center h-full",children:[(0,n.jsx)(r.xvT,{onClick:()=>s(()=>[]),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:"Files"}),e.length>0&&(0,n.jsx)(r.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,n.jsx)(o.F3j,{})}),e.map((e,t)=>(0,n.jsxs)(b.Fragment,{children:[t>0&&(0,n.jsx)(r.xvT,{size:"16",color:"verySubtle",className:"flex items-center",children:(0,n.jsx)(o.F3j,{})}),(0,n.jsx)(r.xvT,{onClick:()=>s(e=>e.slice(0,t+1)),size:"18",weight:"semibold",className:"flex items-center cursor-pointer",noWrap:!0,children:e})]},e+t)),(0,n.jsx)("div",{ref:t})]})})}var w=t(89630),T=t(74424),z=t(81471),y=t(3440),k=t.n(y);function S(){let{configurableColumns:e,toggleColumnVisibility:s,resetDefaultColumnVisibility:t,sortField:l,setSortField:i,sortDirection:a,setSortDirection:d,enabledColumns:x}=(0,c.Y)();return(0,n.jsxs)(r.J2e,{trigger:(0,n.jsxs)(r.zxk,{size:"small",tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(o.hiv,{}),"View",(0,n.jsx)(o.EMN,{})]}),contentProps:{align:"end",className:"max-w-[300px]"},children:[(0,n.jsxs)(r.WVB,{children:[(0,n.jsx)(r.__J,{children:"Order by"}),(0,n.jsx)(r.kFS,{children:(0,n.jsx)(r.PhF,{value:l,onChange:e=>{i(e.currentTarget.value)},children:Object.entries(k()(z.Fo,"category")).map(e=>{let[s,t]=e;return(0,n.jsx)("optgroup",{label:s,children:t.map(e=>(0,n.jsx)(r.Wxm,{value:e.id,children:e.label},e.id))},s)})})})]}),(0,n.jsxs)(r.WVB,{children:[(0,n.jsx)(r.__J,{children:"Direction"}),(0,n.jsx)(r.kFS,{children:(0,n.jsxs)(r.PhF,{value:a,onClick:e=>{e.stopPropagation()},onChange:e=>{d(e.currentTarget.value)},children:[(0,n.jsx)(r.Wxm,{value:"desc",children:"descending"},"desc"),(0,n.jsx)(r.Wxm,{value:"asc",children:"ascending"},"asc")]})})]}),(0,n.jsx)(r.Clw,{}),(0,n.jsxs)(r.WVB,{children:[(0,n.jsx)(r.__J,{children:"Display properties"}),(0,n.jsx)(r.kFS,{children:(0,n.jsx)(r.zxk,{onClick:e=>{e.stopPropagation(),t()},children:"Reset default"})})]}),(0,n.jsx)(r.WVB,{children:(0,n.jsx)(r.j4H,{options:e.map(e=>({label:e.label,value:e.id})),values:x,onChange:e=>s(e)})})]})}function F(){let{openDialog:e}=(0,a.Rh)(),{uploadFiles:s,isViewingBuckets:t}=(0,c.Y)(),l=p(),{getRootProps:i,getInputProps:d}=(0,T.uI)({noDrag:!0,noClick:!l,onDrop:s});return(0,n.jsxs)("div",{className:"flex gap-2",children:[t?(0,n.jsxs)(r.zxk,{onClick:()=>e("filesCreateBucket"),tip:"Create bucket",children:[(0,n.jsx)(o.aXP,{}),"Create bucket"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.zxk,{onClick:()=>e("filesSearch"),tip:"Search files",children:(0,n.jsx)(o.UBs,{})}),(0,n.jsxs)(r.zxk,{...i(),tip:"Upload files",disabled:!l,children:[(0,n.jsx)("input",{...d()}),(0,n.jsx)(o.bQp,{})]}),(0,n.jsx)(r.zxk,{disabled:!l,onClick:()=>e("filesCreateDirectory"),tip:"Create directory",children:(0,n.jsx)(o.L37,{})})]}),(0,n.jsx)(S,{})]})}var _=t(96206);function C(){let e=(0,d.Q5)({config:{swr:{refreshInterval:6e4,keepPreviousData:!0,revalidateOnFocus:!1}}});if(!e.data&&e.isValidating)return(0,n.jsx)(r.xgg,{className:"pr-1"});if(!e.data)return null;let s=e.data.totalObjectsSize?e.data.totalSectorsSize/e.data.totalObjectsSize:0;return(0,n.jsx)(r.ua7,{side:"bottom",content:(0,n.jsxs)(r.xvT,{className:"flex justify-between gap-6",children:[(0,n.jsxs)(r.xvT,{className:"flex flex-col gap-1",children:[(0,n.jsx)(r.xvT,{size:"12",color:"subtle",children:"size of all files"}),(0,n.jsx)(r.xvT,{size:"12",color:"subtle",children:"with redundancy"}),!!s&&(0,n.jsx)(r.xvT,{size:"12",color:"subtle",children:"average redundancy factor"}),(0,n.jsx)(r.Z0O,{className:"w-full my-1"}),(0,n.jsx)(r.xvT,{size:"12",color:"subtle",children:"reclaimable space"}),(0,n.jsx)(r.xvT,{size:"12",color:"subtle",children:"total storage utilization"})]}),(0,n.jsxs)(r.xvT,{className:"flex flex-col gap-1 items-end",children:[(0,n.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalObjectsSize)}),(0,n.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalSectorsSize)}),!!s&&(0,n.jsxs)(r.xvT,{size:"12",font:"mono",children:[s.toFixed(1),"x"]}),(0,n.jsx)(r.Z0O,{className:"w-full my-1"}),(0,n.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalUploadedSize-e.data.totalSectorsSize)}),(0,n.jsx)(r.xvT,{size:"12",children:(0,_.vW)(e.data.totalUploadedSize)})]})]}),children:(0,n.jsx)(r.xvT,{size:"12",font:"mono",children:"".concat((0,_.vW)(e.data.totalObjectsSize)).concat(s?" @ ".concat(s.toFixed(1),"x"):"")})})}var W=t(82439);function O(){var e;let{activeBucket:s}=(0,c.Y)(),t=(0,d.Jv)({disabled:!s,params:{key:"",bucket:s},config:{swr:{dedupingInterval:5e3}}}),l=(0,b.useMemo)(()=>{var e,s,n,l;return null===(l=t.data)||void 0===l?void 0:null===(n=l.entries)||void 0===n?void 0:n.reduce((e,s)=>{let{health:t}=s;return te("settings"),children:(0,n.jsx)("div",{className:"p-6 min-w-fit",children:(0,n.jsx)(g,{})})})}function D(){return(0,n.jsx)(P,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=38345)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/hosts-30d65c92fad9af92.js b/renterd/assets/_next/static/chunks/pages/hosts-30d65c92fad9af92.js new file mode 100644 index 000000000..512a07150 --- /dev/null +++ b/renterd/assets/_next/static/chunks/pages/hosts-30d65c92fad9af92.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[473],{88924:function(e,s,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hosts",function(){return l(69886)}])},89630:function(e,s,l){"use strict";l.d(s,{J:function(){return h}});var n=l(52322),t=l(80446),a=l(9969),i=l(6391),r=l.n(i),c=l(71930),o=l(25573),d=l(86450);function u(){var e,s,l,i,r;let{openDialog:c}=(0,d.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.cQ)(),j=(0,o.n)(),v=null===(e=u.data)||void 0===e?void 0:e.version,m="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v);return(0,n.jsxs)(t.HfT,{name:"renterd",peerCount:null===(s=h.data)||void 0===s?void 0:s.length,connectPeer:()=>c("connectPeer"),isSynced:j.isSynced,syncPercent:j.syncPercent,nodeBlockHeight:j.nodeBlockHeight,estimatedBlockHeight:j.estimatedBlockHeight,firstTimeSyncing:j.firstTimeSyncing,moreThan100BlocksToSync:j.moreThan100BlocksToSync,children:[(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,n.jsx)(t.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(l=x.data)||void 0===l?void 0:l.address,type:"address"})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,n.jsx)(t.xvT,{size:"14",children:null===(i=u.data)||void 0===i?void 0:i.network})})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,n.jsx)(t.rUS,{size:"14",href:m,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=u.data)||void 0===r?void 0:r.version})]})]})}function x(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,n.jsx)(t.t6k,{testnetName:e.data.network}):null}function h(e){let s=(0,a.Tu)(),{isSynced:l}=(0,o.n)();return(0,n.jsx)(t.tU3,{appName:"renterd",profile:(0,n.jsx)(u,{}),banner:(0,n.jsx)(x,{}),connectivityRoute:c.h,isSynced:l,walletBalanceSc:s.data&&{spendable:new(r())(s.data.spendable),confirmed:new(r())(s.data.confirmed),unconfirmed:new(r())(s.data.unconfirmed)},...e})}},91930:function(e,s,l){"use strict";l.d(s,{e:function(){return d}});var n=l(52322),t=l(80446),a=l(88242),i=l(9969),r=l(82851),c=l(71930),o=l(86450);function d(){var e,s;let l=(0,i.Z7)(),{openDialog:d}=(0,o.Rh)(),u=!(null===(e=l.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(s=l.data)||void 0===s?void 0:s.length)||0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.KJW,{title:"Files",route:c._.files.index,children:(0,n.jsx)(a.ROc,{})}),(0,n.jsx)(t.KJW,{title:"Configuration",route:c._.config.index,children:(0,n.jsx)(a.wWN,{})}),(0,n.jsx)(t.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,n.jsx)(a.VBo,{})}),(0,n.jsx)(t.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,n.jsx)(a.VHe,{})}),(0,n.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,n.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,n.jsx)(t.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,n.jsx)(t.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,n.jsx)(a.Dkj,{})})]})]})}},69886:function(e,s,l){"use strict";l.r(s),l.d(s,{default:function(){return y}});var n=l(52322),t=l(91930),a=l(71930),i=l(80446),r=l(86450),c=l(19513),o=l(89630),d=l(88242);function u(){let{dataState:e}=(0,c.l)();return"error"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching hosts."})]}):"noneMatchingFilters"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No hosts matching filters."})]}):"noneYet"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.zvn,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,n.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are currently no hosts in the database. Make sure"," ",(0,n.jsx)(i.EKh,{children:"renterd"})," can access the network and make sure peers are being discovered."]}),(0,n.jsx)(i.Qjf,{href:a._.node.index,children:"View peers"})]})]}):null}function x(){let{configurableColumns:e,toggleColumnVisibility:s,setColumnsVisible:l,setColumnsHidden:t,resetDefaultColumnVisibility:a,enabledColumns:r}=(0,c.l)(),o=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),u=e.filter(e=>"autopilot"===e.category).map(e=>({label:e.label,value:e.id})),x=e.filter(e=>"priceTable"===e.category).map(e=>({label:e.label,value:e.id})),h=e.filter(e=>"hostSettings"===e.category).map(e=>({label:e.label,value:e.id}));return(0,n.jsxs)(i.J2e,{trigger:(0,n.jsxs)(i.zxk,{tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(d.hiv,{}),"View",(0,n.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"!max-w-md !h-[400px]"},children:[(0,n.jsxs)(i.WVB,{children:[(0,n.jsx)(i.__J,{children:"Display properties"}),(0,n.jsx)(i.kFS,{children:(0,n.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),a()},children:(0,n.jsx)(d.Wet,{})})})]}),(0,n.jsx)(i.FzK,{label:"General",columns:o.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:o,values:r,onChange:e=>s(e)})}),u.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Autopilot",columns:u.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:u,values:r,onChange:e=>s(e)})})]}):null,x.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Price table (RHPv3)",columns:x.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:x,values:r,onChange:e=>s(e)})})]}):null,h.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Host settings (RHPv2)",columns:h.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:h,values:r,onChange:e=>s(e)})})]}):null]})}var h=l(2850);function j(){let{openDialog:e}=(0,r.Rh)(),{viewMode:s,setViewMode:l}=(0,c.l)(),{settings:t,gpu:a}=(0,h.Hv)();return(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsxs)(i.zxk,{onClick:()=>e("hostsManageAllowBlock"),tip:"Manage host blocklist and allowlist",children:[(0,n.jsx)(d.nCM,{}),"Manage lists"]}),(0,n.jsx)(i.ua7,{content:t.siaCentral?a.canGpuRender&&a.isGpuEnabled?"Toggle interactive map":"Enable GPU to view interactive map":"Enable Sia Central to view interactive map",children:(0,n.jsx)(i.zxk,{disabled:!a.canGpuRender,onClick:()=>{if(!t.siaCentral){e("settings");return}a.isGpuEnabled?l("map"===s?"list":"map"):e("settings")},children:(0,n.jsx)(d.nDH,{})})}),(0,n.jsx)(x,{})]})}var v=l(99182),m=l(2784),f=l(18006);function p(){let{filters:e,removeFilter:s,removeLastFilter:l}=(0,c.l)(),[t,a]=(0,m.useState)(!1),[r,o]=(0,m.useState)(""),[u,x]=(0,m.useState)([]),h=u[u.length-1],j=(0,m.useRef)(null),p=(0,m.useRef)(null),g=(0,m.useCallback)(e=>{x(s=>[...s,e])},[x]),b=(0,m.useCallback)(()=>{x([])},[x]);(0,m.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let w=(0,m.useCallback)(()=>{var e;null===(e=p.current)||void 0===e||e.focus()},[p]),k=(0,m.useCallback)(()=>{o(""),b()},[b]);return(0,n.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,n.jsxs)(i.eQh,{children:[(0,n.jsx)(i.zxk,{variant:"active",state:"waiting",children:e.label}),(0,n.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>s(e.id),children:(0,n.jsx)(d.PcV,{})})]},e.id)),(0,n.jsxs)(v.mY,{ref:j,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(u.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),x(e=>e.slice(0,-1)));else if(0===u.length&&("Backspace"!==e.key||r||l(),"Escape"===e.key&&!r)){var s;a(!1),null===(s=p.current)||void 0===s||s.blur()}},children:[(0,n.jsx)(v.mY.Input,{ref:p,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter hosts"}),t&&(0,n.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,n.jsxs)(i.xrM,{children:[h&&(0,n.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,n.jsx)(v.mY.List,{children:(0,n.jsx)(f.L,{currentPage:h,beforeSelect:w,afterSelect:k,pushPage:g})})]})})]})]})}function g(){let{offset:e,limit:s,pageCount:l,dataState:t}=(0,c.l)();return(0,n.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,n.jsx)(p,{}),(0,n.jsx)("div",{className:"flex-1"}),(0,n.jsx)(i.wFK,{offset:e,limit:s,pageTotal:l,isLoading:"loading"===t})]})}var b=l(34444),w=l(10917);function k(){let{gpu:e,settings:s}=(0,h.Hv)(),{setCmd:l,activeHost:t,onHostMapClick:a,onHostMapHover:r,hostsWithLocation:o}=(0,c.l)();return s.siaCentral&&!e.shouldRender?null:(0,n.jsxs)("div",{className:"w-full h-full",children:[(0,n.jsx)(b.T,{activeHost:(null==t?void 0:t.location)?t:void 0,hosts:o,onHostClick:a,onHostHover:r,onMount:e=>{l(e)}}),(0,n.jsxs)("div",{className:"absolute top-5 left-6 flex flex-col gap-1",children:[(0,n.jsx)(i.wEc,{color:w.jY.activeAndUsable.colorHex,label:"Active contract & usable",size:"12"}),(0,n.jsx)(i.wEc,{color:w.jY.activeAndUnusable.colorHex,label:"Active contract & unusable",size:"12"}),(0,n.jsx)(i.wEc,{color:w.jY.potentialHost.colorHex,label:"No active contract",size:"12"})]})]})}var N=l(82851);function C(){let{openDialog:e}=(0,r.Rh)(),{dataset:s,activeHost:l,columns:d,limit:x,dataState:h,tableContext:v,viewMode:m}=(0,c.l)();return(0,n.jsx)(o.J,{title:"Hosts",routes:a._,sidenav:(0,n.jsx)(t.e,{}),openSettings:()=>e("settings"),size:"full",actions:(0,n.jsx)(j,{}),stats:(0,n.jsx)(g,{}),scroll:!1,children:(0,n.jsxs)("div",{className:"relative flex flex-col overflow-hidden h-full w-full",children:[(0,n.jsx)("div",{className:(0,N.cx)("absolute h-[70%] w-full","map"===m?"block":"invisible","transition-all"),children:(0,n.jsx)(k,{})}),(0,n.jsx)("div",{className:(0,N.cx)("absolute overflow-hidden transition-all w-full","duration-300","overflow-hidden"),style:{bottom:0,height:"map"===m?s&&s.length?400-Math.max((2-s.length)*100,0):400:"100%"},children:(0,n.jsx)(i.xrM,{className:"z-0",id:"scroll-hosts",children:(0,n.jsx)("div",{className:(0,N.cx)("map"===m?"pb-6 px-6":"p-6","min-w-fit"),children:(0,n.jsx)(i.iA_,{focusId:null==l?void 0:l.publicKey,focusColor:l?(0,w.Kg)(l).colorName:void 0,isLoading:"loading"===h,emptyState:(0,n.jsx)(u,{}),context:v,pageSize:x,data:s,columns:d,rowSize:"default"})})})})]})})}function y(){return(0,n.jsx)(C,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=88924)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/hosts-a5f16681aad4148b.js b/renterd/assets/_next/static/chunks/pages/hosts-a5f16681aad4148b.js deleted file mode 100644 index 4d6c85920..000000000 --- a/renterd/assets/_next/static/chunks/pages/hosts-a5f16681aad4148b.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[473],{88924:function(e,s,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hosts",function(){return l(69886)}])},89630:function(e,s,l){"use strict";l.d(s,{J:function(){return h}});var n=l(52322),t=l(23305),a=l(9969),i=l(6391),r=l.n(i),c=l(71930),o=l(25573),d=l(86450);function u(){var e,s,l,i,r;let{openDialog:c}=(0,d.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,a.cQ)(),v=(0,o.n)(),j=null===(e=u.data)||void 0===e?void 0:e.version,m="?"===j?"https://github.com/SiaFoundation/renterd/commits/":(null==j?void 0:j.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(j):"https://github.com/SiaFoundation/renterd/tree/".concat(j);return(0,n.jsxs)(t.HfT,{name:"renterd",peerCount:null===(s=h.data)||void 0===s?void 0:s.length,connectPeer:()=>c("connectPeer"),isSynced:v.isSynced,syncPercent:v.syncPercent,nodeBlockHeight:v.nodeBlockHeight,estimatedBlockHeight:v.estimatedBlockHeight,firstTimeSyncing:v.firstTimeSyncing,moreThan100BlocksToSync:v.moreThan100BlocksToSync,children:[(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,n.jsx)(t.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(l=x.data)||void 0===l?void 0:l.address,type:"address"})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,n.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,n.jsx)(t.xvT,{size:"14",children:null===(i=u.data)||void 0===i?void 0:i.network})})]}),(0,n.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,n.jsx)(t.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,n.jsx)(t.rUS,{size:"14",href:m,underline:"hover",target:"_blank",ellipsis:!0,children:null===(r=u.data)||void 0===r?void 0:r.version})]})]})}function x(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,n.jsx)(t.t6k,{testnetName:e.data.network}):null}function h(e){let s=(0,a.Tu)(),{isSynced:l}=(0,o.n)();return(0,n.jsx)(t.tU3,{appName:"renterd",profile:(0,n.jsx)(u,{}),banner:(0,n.jsx)(x,{}),connectivityRoute:c.h,isSynced:l,walletBalance:s.data?new(r())(s.data.spendable).plus(s.data.unconfirmed):void 0,...e})}},91930:function(e,s,l){"use strict";l.d(s,{e:function(){return d}});var n=l(52322),t=l(23305),a=l(88242),i=l(9969),r=l(82851),c=l(71930),o=l(86450);function d(){var e,s;let l=(0,i.Z7)(),{openDialog:d}=(0,o.Rh)(),u=!(null===(e=l.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(s=l.data)||void 0===s?void 0:s.length)||0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.KJW,{title:"Files",route:c._.files.index,children:(0,n.jsx)(a.ROc,{})}),(0,n.jsx)(t.KJW,{title:"Configuration",route:c._.config.index,children:(0,n.jsx)(a.wWN,{})}),(0,n.jsx)(t.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,n.jsx)(a.VBo,{})}),(0,n.jsx)(t.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,n.jsx)(a.VHe,{})}),(0,n.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,n.jsx)("div",{className:(0,r.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,n.jsx)(t.xvT,{size:"10",className:(0,r.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,n.jsx)(t.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,n.jsx)(a.Dkj,{})})]})]})}},69886:function(e,s,l){"use strict";l.r(s),l.d(s,{default:function(){return y}});var n=l(52322),t=l(91930),a=l(71930),i=l(23305),r=l(86450),c=l(19513),o=l(89630),d=l(88242);function u(){let{dataState:e}=(0,c.l)();return"error"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.Ckx,{className:"scale-[200%]"})}),(0,n.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"Error fetching hosts."})]}):"noneMatchingFilters"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.Hb6,{className:"scale-[200%]"})}),(0,n.jsx)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:"No hosts matching filters."})]}):"noneYet"===e?(0,n.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px]",children:[(0,n.jsx)(i.xvT,{children:(0,n.jsx)(d.zvn,{className:"scale-[200%]"})}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,n.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["There are currently no hosts in the database. Make sure"," ",(0,n.jsx)(i.EKh,{children:"renterd"})," can access the network and make sure peers are being discovered."]}),(0,n.jsx)(i.Qjf,{href:a._.node.index,children:"View peers"})]})]}):null}function x(){let{configurableColumns:e,toggleColumnVisibility:s,setColumnsVisible:l,setColumnsHidden:t,resetDefaultColumnVisibility:a,enabledColumns:r}=(0,c.l)(),o=e.filter(e=>"general"===e.category).map(e=>({label:e.label,value:e.id})),u=e.filter(e=>"autopilot"===e.category).map(e=>({label:e.label,value:e.id})),x=e.filter(e=>"priceTable"===e.category).map(e=>({label:e.label,value:e.id})),h=e.filter(e=>"hostSettings"===e.category).map(e=>({label:e.label,value:e.id}));return(0,n.jsxs)(i.J2e,{trigger:(0,n.jsxs)(i.zxk,{tip:"Configure view",tipAlign:"end",children:[(0,n.jsx)(d.hiv,{}),"View",(0,n.jsx)(d.EMN,{})]}),contentProps:{align:"end",className:"!max-w-md !h-[400px]"},children:[(0,n.jsxs)(i.WVB,{children:[(0,n.jsx)(i.__J,{children:"Display properties"}),(0,n.jsx)(i.kFS,{children:(0,n.jsx)(i.zxk,{tip:"Reset all to defaults",variant:"ghost",onClick:e=>{e.stopPropagation(),a()},children:(0,n.jsx)(d.Wet,{})})})]}),(0,n.jsx)(i.FzK,{label:"General",columns:o.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:o,values:r,onChange:e=>s(e)})}),u.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Autopilot",columns:u.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:u,values:r,onChange:e=>s(e)})})]}):null,x.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Price table (RHPv3)",columns:x.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:x,values:r,onChange:e=>s(e)})})]}):null,h.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.FzK,{label:"Host settings (RHPv2)",columns:h.map(e=>e.value),enabled:r,setColumnsVisible:l,setColumnsHidden:t}),(0,n.jsx)(i.WVB,{children:(0,n.jsx)(i.j4H,{options:h,values:r,onChange:e=>s(e)})})]}):null]})}var h=l(2850);function v(){let{openDialog:e}=(0,r.Rh)(),{viewMode:s,setViewMode:l}=(0,c.l)(),{settings:t,gpu:a}=(0,h.Hv)();return(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsxs)(i.zxk,{onClick:()=>e("hostsManageAllowBlock"),tip:"Manage host blocklist and allowlist",children:[(0,n.jsx)(d.nCM,{}),"Manage lists"]}),(0,n.jsx)(i.ua7,{content:t.siaCentral?a.canGpuRender&&a.isGpuEnabled?"Toggle interactive map":"Enable GPU to view interactive map":"Enable Sia Central to view interactive map",children:(0,n.jsx)(i.zxk,{disabled:!a.canGpuRender,onClick:()=>{if(!t.siaCentral){e("settings");return}a.isGpuEnabled?l("map"===s?"list":"map"):e("settings")},children:(0,n.jsx)(d.nDH,{})})}),(0,n.jsx)(x,{})]})}var j=l(99182),m=l(2784),p=l(18006);function f(){let{filters:e,removeFilter:s,removeLastFilter:l}=(0,c.l)(),[t,a]=(0,m.useState)(!1),[r,o]=(0,m.useState)(""),[u,x]=(0,m.useState)([]),h=u[u.length-1],v=(0,m.useRef)(null),f=(0,m.useRef)(null),g=(0,m.useCallback)(e=>{x(s=>[...s,e])},[x]),b=(0,m.useCallback)(()=>{x([])},[x]);(0,m.useEffect)(()=>{let e=e=>{v.current&&!v.current.contains(e.target)&&a(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}},[]);let w=(0,m.useCallback)(()=>{var e;null===(e=f.current)||void 0===e||e.focus()},[f]),k=(0,m.useCallback)(()=>{o(""),b()},[b]);return(0,n.jsxs)("div",{className:"flex gap-1",children:[e.map(e=>(0,n.jsxs)(i.eQh,{children:[(0,n.jsx)(i.zxk,{variant:"active",state:"waiting",children:e.label}),(0,n.jsx)(i.zxk,{variant:"active",size:"small",onClick:()=>s(e.id),children:(0,n.jsx)(d.PcV,{})})]},e.id)),(0,n.jsxs)(j.mY,{ref:v,label:"Command Menu",onFocus:()=>a(!0),onKeyDown:e=>{if(u.length>0)"Escape"!==e.key&&("Backspace"!==e.key||r)||(e.preventDefault(),x(e=>e.slice(0,-1)));else if(0===u.length&&("Backspace"!==e.key||r||l(),"Escape"===e.key&&!r)){var s;a(!1),null===(s=f.current)||void 0===s||s.blur()}},children:[(0,n.jsx)(j.mY.Input,{ref:f,value:r,onValueChange:o,className:(0,i.cEb)({variant:"ghost",focus:"none"}),placeholder:"Filter hosts"}),t&&(0,n.jsx)(i.s_4,{className:"absolute z-20 min-w-[200px] max-h-[400px] overflow-auto p-1",children:(0,n.jsxs)(i.xrM,{children:[h&&(0,n.jsx)(i.__J,{className:"px-1.5 py-1",children:h.label}),(0,n.jsx)(j.mY.List,{children:(0,n.jsx)(p.L,{currentPage:h,beforeSelect:w,afterSelect:k,pushPage:g})})]})})]})]})}function g(){let{offset:e,limit:s,pageCount:l,dataState:t}=(0,c.l)();return(0,n.jsxs)("div",{className:"flex gap-2 w-full",children:[(0,n.jsx)(f,{}),(0,n.jsx)("div",{className:"flex-1"}),(0,n.jsx)(i.wFK,{offset:e,limit:s,pageTotal:l,isLoading:"loading"===t})]})}var b=l(34444),w=l(10917);function k(){let{gpu:e,settings:s}=(0,h.Hv)(),{setCmd:l,activeHost:t,onHostMapClick:a,onHostMapHover:r,hostsWithLocation:o}=(0,c.l)();return s.siaCentral&&!e.shouldRender?null:(0,n.jsxs)("div",{className:"w-full h-full",children:[(0,n.jsx)(b.T,{activeHost:(null==t?void 0:t.location)?t:void 0,hosts:o,onHostClick:a,onHostHover:r,onMount:e=>{l(e)}}),(0,n.jsxs)("div",{className:"absolute top-5 left-6 flex flex-col gap-1",children:[(0,n.jsx)(i.wEc,{color:w.jY.activeAndUsable.colorHex,label:"Active contract & usable",size:"12"}),(0,n.jsx)(i.wEc,{color:w.jY.activeAndUnusable.colorHex,label:"Active contract & unusable",size:"12"}),(0,n.jsx)(i.wEc,{color:w.jY.potentialHost.colorHex,label:"No active contract",size:"12"})]})]})}var N=l(82851);function C(){let{openDialog:e}=(0,r.Rh)(),{dataset:s,activeHost:l,columns:d,limit:x,dataState:h,tableContext:j,viewMode:m}=(0,c.l)();return(0,n.jsx)(o.J,{title:"Hosts",routes:a._,sidenav:(0,n.jsx)(t.e,{}),openSettings:()=>e("settings"),size:"full",actions:(0,n.jsx)(v,{}),stats:(0,n.jsx)(g,{}),scroll:!1,children:(0,n.jsxs)("div",{className:"relative flex flex-col overflow-hidden h-full w-full",children:[(0,n.jsx)("div",{className:(0,N.cx)("absolute h-[70%] w-full","map"===m?"block":"invisible","transition-all"),children:(0,n.jsx)(k,{})}),(0,n.jsx)("div",{className:(0,N.cx)("absolute overflow-hidden transition-all w-full","duration-300","overflow-hidden"),style:{bottom:0,height:"map"===m?s&&s.length?400-Math.max((2-s.length)*100,0):400:"100%"},children:(0,n.jsx)(i.xrM,{className:"z-0",id:"scroll-hosts",children:(0,n.jsx)("div",{className:(0,N.cx)("map"===m?"pb-6 px-6":"p-6","min-w-fit"),children:(0,n.jsx)(i.iA_,{focusId:null==l?void 0:l.publicKey,focusColor:l?(0,w.Kg)(l).colorName:void 0,isLoading:"loading"===h,emptyState:(0,n.jsx)(u,{}),context:j,pageSize:x,data:s,columns:d,rowSize:"default"})})})})]})})}function y(){return(0,n.jsx)(C,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=88924)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/index-4ab0960f6e90701e.js b/renterd/assets/_next/static/chunks/pages/index-4ab0960f6e90701e.js new file mode 100644 index 000000000..ede3be13a --- /dev/null +++ b/renterd/assets/_next/static/chunks/pages/index-4ab0960f6e90701e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(94417)}])},89630:function(e,n,t){"use strict";t.d(n,{J:function(){return h}});var i=t(52322),s=t(80446),r=t(9969),o=t(6391),a=t.n(o),d=t(71930),c=t(25573),l=t(86450);function u(){var e,n,t,o,a;let{openDialog:d}=(0,l.Rh)(),u=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,r.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,r.cQ)(),f=(0,c.n)(),v=null===(e=u.data)||void 0===e?void 0:e.version,j="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v);return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>d("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)(s.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(t=x.data)||void 0===t?void 0:t.address,type:"address"})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(o=u.data)||void 0===o?void 0:o.network})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(s.rUS,{size:"14",href:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(a=u.data)||void 0===a?void 0:a.version})]})]})}function x(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(s.t6k,{testnetName:e.data.network}):null}function h(e){let n=(0,r.Tu)(),{isSynced:t}=(0,c.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(u,{}),banner:(0,i.jsx)(x,{}),connectivityRoute:d.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(a())(n.data.spendable),confirmed:new(a())(n.data.confirmed),unconfirmed:new(a())(n.data.unconfirmed)},...e})}},91930:function(e,n,t){"use strict";t.d(n,{e:function(){return l}});var i=t(52322),s=t(80446),r=t(88242),o=t(9969),a=t(82851),d=t(71930),c=t(86450);function l(){var e,n;let t=(0,o.Z7)(),{openDialog:l}=(0,c.Rh)(),u=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=t.data)||void 0===n?void 0:n.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:d._.files.index,children:(0,i.jsx)(r.ROc,{})}),(0,i.jsx)(s.KJW,{title:"Configuration",route:d._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsx)(s.KJW,{title:"Contracts",route:d._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(s.KJW,{title:"Hosts",route:d._.hosts.index,children:(0,i.jsx)(r.VHe,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,i.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,i.jsx)(s.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,i.jsx)(s.KJW,{title:"Alerts",onClick:()=>l("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}},94417:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(89630),r=t(91930),o=t(71930),a=t(86450),d=t(2784),c=t(5632);function l(){let e=(0,c.useRouter)(),{openDialog:n}=(0,a.Rh)();return(0,d.useEffect)(()=>{e.replace(o._.files.index)},[e]),(0,i.jsx)(s.J,{title:"Dashboard",routes:o._,sidenav:(0,i.jsx)(r.e,{}),openSettings:()=>n("settings")})}function u(){return(0,i.jsx)(l,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=87314)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/index-d2823954941fac65.js b/renterd/assets/_next/static/chunks/pages/index-d2823954941fac65.js deleted file mode 100644 index 3f522bf55..000000000 --- a/renterd/assets/_next/static/chunks/pages/index-d2823954941fac65.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{87314:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(94417)}])},89630:function(e,n,t){"use strict";t.d(n,{J:function(){return h}});var i=t(52322),s=t(23305),r=t(9969),o=t(6391),a=t.n(o),l=t(71930),d=t(25573),c=t(86450);function u(){var e,n,t,o,a;let{openDialog:l}=(0,c.Rh)(),u=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,r.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,r.cQ)(),f=(0,d.n)(),v=null===(e=u.data)||void 0===e?void 0:e.version,j="?"===v?"https://github.com/SiaFoundation/renterd/commits/":(null==v?void 0:v.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(v):"https://github.com/SiaFoundation/renterd/tree/".concat(v);return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>l("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)(s.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(t=x.data)||void 0===t?void 0:t.address,type:"address"})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(o=u.data)||void 0===o?void 0:o.network})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(s.rUS,{size:"14",href:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(a=u.data)||void 0===a?void 0:a.version})]})]})}function x(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(s.t6k,{testnetName:e.data.network}):null}function h(e){let n=(0,r.Tu)(),{isSynced:t}=(0,d.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(u,{}),banner:(0,i.jsx)(x,{}),connectivityRoute:l.h,isSynced:t,walletBalance:n.data?new(a())(n.data.spendable).plus(n.data.unconfirmed):void 0,...e})}},91930:function(e,n,t){"use strict";t.d(n,{e:function(){return c}});var i=t(52322),s=t(23305),r=t(88242),o=t(9969),a=t(82851),l=t(71930),d=t(86450);function c(){var e,n;let t=(0,o.Z7)(),{openDialog:c}=(0,d.Rh)(),u=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=t.data)||void 0===n?void 0:n.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:l._.files.index,children:(0,i.jsx)(r.ROc,{})}),(0,i.jsx)(s.KJW,{title:"Configuration",route:l._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsx)(s.KJW,{title:"Contracts",route:l._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(s.KJW,{title:"Hosts",route:l._.hosts.index,children:(0,i.jsx)(r.VHe,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,i.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,i.jsx)(s.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,i.jsx)(s.KJW,{title:"Alerts",onClick:()=>c("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}},94417:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(89630),r=t(91930),o=t(71930),a=t(86450),l=t(2784),d=t(5632);function c(){let e=(0,d.useRouter)(),{openDialog:n}=(0,a.Rh)();return(0,l.useEffect)(()=>{e.replace(o._.files.index)},[e]),(0,i.jsx)(s.J,{title:"Dashboard",routes:o._,sidenav:(0,i.jsx)(r.e,{}),openSettings:()=>n("settings")})}function u(){return(0,i.jsx)(c,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=87314)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/login-8035d88be9bdfeb1.js b/renterd/assets/_next/static/chunks/pages/login-bb79acc5d7deabf7.js similarity index 79% rename from renterd/assets/_next/static/chunks/pages/login-8035d88be9bdfeb1.js rename to renterd/assets/_next/static/chunks/pages/login-bb79acc5d7deabf7.js index ffcfccc55..6d4baa90b 100644 --- a/renterd/assets/_next/static/chunks/pages/login-8035d88be9bdfeb1.js +++ b/renterd/assets/_next/static/chunks/pages/login-bb79acc5d7deabf7.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(95271)}])},95271:function(n,u,r){"use strict";r.r(u),r.d(u,{default:function(){return _}});var t=r(52322),e=r(23305),i=r(71930);function o(n){return(0,t.jsx)(e.juT,{appName:"renterd",...n})}function c(){return(0,t.jsx)(o,{children:(0,t.jsx)(e.zXq,{appName:"renterd",route:i.h,routes:i._})})}function _(){return(0,t.jsx)(c,{})}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(n,u,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(95271)}])},95271:function(n,u,r){"use strict";r.r(u),r.d(u,{default:function(){return _}});var t=r(52322),e=r(80446),i=r(71930);function o(n){return(0,t.jsx)(e.juT,{appName:"renterd",...n})}function c(){return(0,t.jsx)(o,{children:(0,t.jsx)(e.zXq,{appName:"renterd",route:i.h,routes:i._})})}function _(){return(0,t.jsx)(c,{})}}},function(n){n.O(0,[774,888,179],function(){return n(n.s=97946)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/node-1729d6d2e8d52dc7.js b/renterd/assets/_next/static/chunks/pages/node-1729d6d2e8d52dc7.js deleted file mode 100644 index 6634dfa8a..000000000 --- a/renterd/assets/_next/static/chunks/pages/node-1729d6d2e8d52dc7.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(61936)}])},89630:function(e,n,t){"use strict";t.d(n,{J:function(){return h}});var i=t(52322),s=t(23305),r=t(9969),o=t(6391),a=t.n(o),l=t(71930),d=t(25573),c=t(86450);function u(){var e,n,t,o,a;let{openDialog:l}=(0,c.Rh)(),u=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,r.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,r.cQ)(),v=(0,d.n)(),f=null===(e=u.data)||void 0===e?void 0:e.version,j="?"===f?"https://github.com/SiaFoundation/renterd/commits/":(null==f?void 0:f.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(f):"https://github.com/SiaFoundation/renterd/tree/".concat(f);return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>l("connectPeer"),isSynced:v.isSynced,syncPercent:v.syncPercent,nodeBlockHeight:v.nodeBlockHeight,estimatedBlockHeight:v.estimatedBlockHeight,firstTimeSyncing:v.firstTimeSyncing,moreThan100BlocksToSync:v.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)(s.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(t=x.data)||void 0===t?void 0:t.address,type:"address"})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(o=u.data)||void 0===o?void 0:o.network})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(s.rUS,{size:"14",href:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(a=u.data)||void 0===a?void 0:a.version})]})]})}function x(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(s.t6k,{testnetName:e.data.network}):null}function h(e){let n=(0,r.Tu)(),{isSynced:t}=(0,d.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(u,{}),banner:(0,i.jsx)(x,{}),connectivityRoute:l.h,isSynced:t,walletBalance:n.data?new(a())(n.data.spendable).plus(n.data.unconfirmed):void 0,...e})}},91930:function(e,n,t){"use strict";t.d(n,{e:function(){return c}});var i=t(52322),s=t(23305),r=t(88242),o=t(9969),a=t(82851),l=t(71930),d=t(86450);function c(){var e,n;let t=(0,o.Z7)(),{openDialog:c}=(0,d.Rh)(),u=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=t.data)||void 0===n?void 0:n.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:l._.files.index,children:(0,i.jsx)(r.ROc,{})}),(0,i.jsx)(s.KJW,{title:"Configuration",route:l._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsx)(s.KJW,{title:"Contracts",route:l._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(s.KJW,{title:"Hosts",route:l._.hosts.index,children:(0,i.jsx)(r.VHe,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,i.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,i.jsx)(s.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,i.jsx)(s.KJW,{title:"Alerts",onClick:()=>c("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}},61936:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(23305),r=t(9969),o=t(71930),a=t(86450),l=t(91930),d=t(89630);function c(){var e,n,t;let c=(0,r.cQ)(),u=(0,r.QL)({config:{swr:{refreshInterval:3e4}}}),x=(0,r.DQ)({config:{swr:{refreshInterval:3e4}}}),{openDialog:h}=(0,a.Rh)();return(0,i.jsx)(d.J,{routes:o._,sidenav:(0,i.jsx)(l.e,{}),openSettings:()=>h("settings"),title:"Node",children:(0,i.jsxs)("div",{className:"flex flex-col gap-5 p-5",children:[(0,i.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,i.jsx)(s.ncR,{label:"Height",value:x.data?Number(x.data.blockHeight).toLocaleString():void 0,comment:(null===(e=x.data)||void 0===e?void 0:e.synced)?void 0:"Syncing"}),(0,i.jsx)(s.ncR,{label:"Connected peers",value:null===(n=c.data)||void 0===n?void 0:n.length}),(0,i.jsx)(s.ncR,{label:"Transactions in pool",value:null===(t=u.data)||void 0===t?void 0:t.length})]}),(0,i.jsx)(s.u5Q,{peers:c.data,connectPeer:()=>h("connectPeer")})]})})}function u(){return(0,i.jsx)(c,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/node-5ec03621858475c3.js b/renterd/assets/_next/static/chunks/pages/node-5ec03621858475c3.js new file mode 100644 index 000000000..10c616290 --- /dev/null +++ b/renterd/assets/_next/static/chunks/pages/node-5ec03621858475c3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54],{27725:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/node",function(){return t(61936)}])},89630:function(e,n,t){"use strict";t.d(n,{J:function(){return h}});var i=t(52322),s=t(80446),r=t(9969),o=t(6391),a=t.n(o),l=t(71930),d=t(25573),c=t(86450);function u(){var e,n,t,o,a;let{openDialog:l}=(0,c.Rh)(),u=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,r.Tu)({config:{swr:{revalidateOnFocus:!1}}}),h=(0,r.cQ)(),v=(0,d.n)(),f=null===(e=u.data)||void 0===e?void 0:e.version,j="?"===f?"https://github.com/SiaFoundation/renterd/commits/":(null==f?void 0:f.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(f):"https://github.com/SiaFoundation/renterd/tree/".concat(f);return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(n=h.data)||void 0===n?void 0:n.length,connectPeer:()=>l("connectPeer"),isSynced:v.isSynced,syncPercent:v.syncPercent,nodeBlockHeight:v.nodeBlockHeight,estimatedBlockHeight:v.estimatedBlockHeight,firstTimeSyncing:v.firstTimeSyncing,moreThan100BlocksToSync:v.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)(s.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(t=x.data)||void 0===t?void 0:t.address,type:"address"})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(o=u.data)||void 0===o?void 0:o.network})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(s.rUS,{size:"14",href:j,underline:"hover",target:"_blank",ellipsis:!0,children:null===(a=u.data)||void 0===a?void 0:a.version})]})]})}function x(){let e=(0,r.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(s.t6k,{testnetName:e.data.network}):null}function h(e){let n=(0,r.Tu)(),{isSynced:t}=(0,d.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(u,{}),banner:(0,i.jsx)(x,{}),connectivityRoute:l.h,isSynced:t,walletBalanceSc:n.data&&{spendable:new(a())(n.data.spendable),confirmed:new(a())(n.data.confirmed),unconfirmed:new(a())(n.data.unconfirmed)},...e})}},91930:function(e,n,t){"use strict";t.d(n,{e:function(){return c}});var i=t(52322),s=t(80446),r=t(88242),o=t(9969),a=t(82851),l=t(71930),d=t(86450);function c(){var e,n;let t=(0,o.Z7)(),{openDialog:c}=(0,d.Rh)(),u=!(null===(e=t.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(n=t.data)||void 0===n?void 0:n.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:l._.files.index,children:(0,i.jsx)(r.ROc,{})}),(0,i.jsx)(s.KJW,{title:"Configuration",route:l._.config.index,children:(0,i.jsx)(r.wWN,{})}),(0,i.jsx)(s.KJW,{title:"Contracts",route:l._.contracts.index,children:(0,i.jsx)(r.VBo,{})}),(0,i.jsx)(s.KJW,{title:"Hosts",route:l._.hosts.index,children:(0,i.jsx)(r.VHe,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,i.jsx)("div",{className:(0,a.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,i.jsx)(s.xvT,{size:"10",className:(0,a.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,i.jsx)(s.KJW,{title:"Alerts",onClick:()=>c("alerts"),children:(0,i.jsx)(r.Dkj,{})})]})]})}},61936:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=t(52322),s=t(80446),r=t(9969),o=t(71930),a=t(86450),l=t(91930),d=t(89630);function c(){var e,n,t;let c=(0,r.cQ)(),u=(0,r.QL)({config:{swr:{refreshInterval:3e4}}}),x=(0,r.DQ)({config:{swr:{refreshInterval:3e4}}}),{openDialog:h}=(0,a.Rh)();return(0,i.jsx)(d.J,{routes:o._,sidenav:(0,i.jsx)(l.e,{}),openSettings:()=>h("settings"),title:"Node",children:(0,i.jsxs)("div",{className:"flex flex-col gap-5 p-5",children:[(0,i.jsxs)("div",{className:"flex flex-wrap gap-7",children:[(0,i.jsx)(s.ncR,{label:"Height",value:x.data?Number(x.data.blockHeight).toLocaleString():void 0,comment:(null===(e=x.data)||void 0===e?void 0:e.synced)?void 0:"Syncing"}),(0,i.jsx)(s.ncR,{label:"Connected peers",value:null===(n=c.data)||void 0===n?void 0:n.length}),(0,i.jsx)(s.ncR,{label:"Transactions in pool",value:null===(t=u.data)||void 0===t?void 0:t.length})]}),(0,i.jsx)(s.u5Q,{peers:c.data,connectPeer:()=>h("connectPeer")})]})})}function u(){return(0,i.jsx)(c,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=27725)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/wallet-5475b19fd254600d.js b/renterd/assets/_next/static/chunks/pages/wallet-5475b19fd254600d.js deleted file mode 100644 index 1ee5f3961..000000000 --- a/renterd/assets/_next/static/chunks/pages/wallet-5475b19fd254600d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return n(60495)}])},89630:function(e,t,n){"use strict";n.d(t,{J:function(){return x}});var i=n(52322),s=n(23305),a=n(9969),r=n(6391),o=n.n(r),l=n(71930),c=n(25573),d=n(86450);function u(){var e,t,n,r,o;let{openDialog:l}=(0,d.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,a.Tu)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.cQ)(),h=(0,c.n)(),p=null===(e=u.data)||void 0===e?void 0:e.version,f="?"===p?"https://github.com/SiaFoundation/renterd/commits/":(null==p?void 0:p.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(p):"https://github.com/SiaFoundation/renterd/tree/".concat(p);return(0,i.jsxs)(s.HfT,{name:"renterd",peerCount:null===(t=x.data)||void 0===t?void 0:t.length,connectPeer:()=>l("connectPeer"),isSynced:h.isSynced,syncPercent:h.syncPercent,nodeBlockHeight:h.nodeBlockHeight,estimatedBlockHeight:h.estimatedBlockHeight,firstTimeSyncing:h.firstTimeSyncing,moreThan100BlocksToSync:h.moreThan100BlocksToSync,children:[(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,i.jsx)(s.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(n=m.data)||void 0===n?void 0:n.address,type:"address"})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,i.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,i.jsx)(s.xvT,{size:"14",children:null===(r=u.data)||void 0===r?void 0:r.network})})]}),(0,i.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,i.jsx)(s.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,i.jsx)(s.rUS,{size:"14",href:f,underline:"hover",target:"_blank",ellipsis:!0,children:null===(o=u.data)||void 0===o?void 0:o.version})]})]})}function m(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,i.jsx)(s.t6k,{testnetName:e.data.network}):null}function x(e){let t=(0,a.Tu)(),{isSynced:n}=(0,c.n)();return(0,i.jsx)(s.tU3,{appName:"renterd",profile:(0,i.jsx)(u,{}),banner:(0,i.jsx)(m,{}),connectivityRoute:l.h,isSynced:n,walletBalance:t.data?new(o())(t.data.spendable).plus(t.data.unconfirmed):void 0,...e})}},91930:function(e,t,n){"use strict";n.d(t,{e:function(){return d}});var i=n(52322),s=n(23305),a=n(88242),r=n(9969),o=n(82851),l=n(71930),c=n(86450);function d(){var e,t;let n=(0,r.Z7)(),{openDialog:d}=(0,c.Rh)(),u=!(null===(e=n.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),m=(null===(t=n.data)||void 0===t?void 0:t.length)||0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.KJW,{title:"Files",route:l._.files.index,children:(0,i.jsx)(a.ROc,{})}),(0,i.jsx)(s.KJW,{title:"Configuration",route:l._.config.index,children:(0,i.jsx)(a.wWN,{})}),(0,i.jsx)(s.KJW,{title:"Contracts",route:l._.contracts.index,children:(0,i.jsx)(a.VBo,{})}),(0,i.jsx)(s.KJW,{title:"Hosts",route:l._.hosts.index,children:(0,i.jsx)(a.VHe,{})}),(0,i.jsxs)("div",{className:"relative",children:[!!m&&u&&(0,i.jsx)("div",{className:(0,o.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!m&&!u&&(0,i.jsx)(s.xvT,{size:"10",className:(0,o.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:m.toLocaleString()}),(0,i.jsx)(s.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,i.jsx)(a.Dkj,{})})]})]})}},60495:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var i=n(52322),s=n(23305),a=n(9969),r=n(2784),o=n(86450),l=n(71930),c=n(6391),d=n.n(c),u=n(91930),m=n(89630),x=n(25573);function h(){let e=(0,a.Qq)({params:{},config:{swr:{refreshInterval:6e4,revalidateOnFocus:!1}}}),t=(0,a.a0)(),{openDialog:n}=(0,o.Rh)(),c=(0,r.useMemo)(()=>t.data&&e.data?[...(t.data||[]).map(e=>({type:"transaction",txType:(0,s.leQ)(e),unconfirmed:!0})),...(e.data||[]).map(e=>({type:"transaction",txType:(0,s.leQ)(e.raw),hash:e.id,timestamp:new Date(e.timestamp).getTime(),onClick:()=>n("transactionDetails",e.id),sc:new(d())(e.inflow).minus(e.outflow)})).sort((e,t)=>e.timestamp{var t;return null===(t=e.data)||void 0===t?void 0:t.sort((e,t)=>e.timestamp>t.timestamp?1:-1).reduce((e,t,n)=>0===n?e.concat({sc:new(d())(t.inflow).minus(t.outflow).toNumber(),timestamp:new Date(t.timestamp).getTime()}):e.concat({sc:new(d())(e[n-1].sc).plus(t.inflow).minus(t.outflow).toNumber(),timestamp:new Date(t.timestamp).getTime()}),[])},[e.data]),p=(0,a.Tu)(),{isSynced:f,syncPercent:v,isWalletSynced:w,walletScanPercent:j}=(0,x.n)();return(0,i.jsx)(m.J,{routes:l._,sidenav:(0,i.jsx)(u.e,{}),openSettings:()=>n("settings"),title:"Wallet",actions:(0,i.jsx)(s.QUh,{isSynced:f,isWalletSynced:w,syncPercent:v,walletScanPercent:j,sc:p.data?new(d())(p.data.spendable).plus(p.data.unconfirmed):void 0,receiveSiacoin:()=>n("addressDetails"),sendSiacoin:()=>n("sendSiacoin")}),stats:(0,i.jsx)(s.DmW,{isSynced:f,isWalletSynced:w,syncPercent:v,walletScanPercent:j}),children:(0,i.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(0,i.jsx)(s.Z58,{chartType:"line",balances:h,isLoading:e.isValidating}),(0,i.jsx)(s.XOF,{title:"Transactions",entities:null==c?void 0:c.slice(0,100)})]})})}function p(){return(0,i.jsx)(h,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/pages/wallet-a150a7ebcb4b7f87.js b/renterd/assets/_next/static/chunks/pages/wallet-a150a7ebcb4b7f87.js new file mode 100644 index 000000000..351198283 --- /dev/null +++ b/renterd/assets/_next/static/chunks/pages/wallet-a150a7ebcb4b7f87.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[789],{69171:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/wallet",function(){return n(21990)}])},89630:function(e,t,n){"use strict";n.d(t,{J:function(){return m}});var s=n(52322),i=n(80446),a=n(9969),r=n(6391),l=n.n(r),c=n(71930),o=n(25573),d=n(86450);function u(){var e,t,n,r,l;let{openDialog:c}=(0,d.Rh)(),u=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}}),x=(0,a.Tu)({config:{swr:{revalidateOnFocus:!1}}}),m=(0,a.cQ)(),f=(0,o.n)(),h=null===(e=u.data)||void 0===e?void 0:e.version,p="?"===h?"https://github.com/SiaFoundation/renterd/commits/":(null==h?void 0:h.match(/^v\d+\.\d+\.\d+/))?"https://github.com/SiaFoundation/renterd/releases/".concat(h):"https://github.com/SiaFoundation/renterd/tree/".concat(h);return(0,s.jsxs)(i.HfT,{name:"renterd",peerCount:null===(t=m.data)||void 0===t?void 0:t.length,connectPeer:()=>c("connectPeer"),isSynced:f.isSynced,syncPercent:f.syncPercent,nodeBlockHeight:f.nodeBlockHeight,estimatedBlockHeight:f.estimatedBlockHeight,firstTimeSyncing:f.firstTimeSyncing,moreThan100BlocksToSync:f.moreThan100BlocksToSync,children:[(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Wallet address"}),(0,s.jsx)(i.XxW,{className:"overflow-hidden",size:"14",maxLength:50,value:null===(n=x.data)||void 0===n?void 0:n.address,type:"address"})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Network"}),(0,s.jsx)("div",{className:"flex-1 flex justify-end overflow-hidden",children:(0,s.jsx)(i.xvT,{size:"14",children:null===(r=u.data)||void 0===r?void 0:r.network})})]}),(0,s.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,s.jsx)(i.__J,{size:"14",color:"subtle",noWrap:!0,className:"w-[100px]",children:"Version"}),(0,s.jsx)(i.rUS,{size:"14",href:p,underline:"hover",target:"_blank",ellipsis:!0,children:null===(l=u.data)||void 0===l?void 0:l.version})]})]})}function x(){let e=(0,a.d_)({config:{swr:{revalidateOnFocus:!1}}});return e.data&&"Mainnet"!==e.data.network?(0,s.jsx)(i.t6k,{testnetName:e.data.network}):null}function m(e){let t=(0,a.Tu)(),{isSynced:n}=(0,o.n)();return(0,s.jsx)(i.tU3,{appName:"renterd",profile:(0,s.jsx)(u,{}),banner:(0,s.jsx)(x,{}),connectivityRoute:c.h,isSynced:n,walletBalanceSc:t.data&&{spendable:new(l())(t.data.spendable),confirmed:new(l())(t.data.confirmed),unconfirmed:new(l())(t.data.unconfirmed)},...e})}},91930:function(e,t,n){"use strict";n.d(t,{e:function(){return d}});var s=n(52322),i=n(80446),a=n(88242),r=n(9969),l=n(82851),c=n(71930),o=n(86450);function d(){var e,t;let n=(0,r.Z7)(),{openDialog:d}=(0,o.Rh)(),u=!(null===(e=n.data)||void 0===e?void 0:e.find(e=>"info"!==e.severity)),x=(null===(t=n.data)||void 0===t?void 0:t.length)||0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.KJW,{title:"Files",route:c._.files.index,children:(0,s.jsx)(a.ROc,{})}),(0,s.jsx)(i.KJW,{title:"Configuration",route:c._.config.index,children:(0,s.jsx)(a.wWN,{})}),(0,s.jsx)(i.KJW,{title:"Contracts",route:c._.contracts.index,children:(0,s.jsx)(a.VBo,{})}),(0,s.jsx)(i.KJW,{title:"Hosts",route:c._.hosts.index,children:(0,s.jsx)(a.VHe,{})}),(0,s.jsxs)("div",{className:"relative",children:[!!x&&u&&(0,s.jsx)("div",{className:(0,l.cx)("absolute -right-[2px] top-px w-1 h-1","rounded-full","bg-gray-1000 dark:bg-white","pointer-events-none")}),!!x&&!u&&(0,s.jsx)(i.xvT,{size:"10",className:(0,l.cx)("absolute -right-[9px] -top-1 py-px px-[5px]","text-white","bg-red-500 dark:bg-red-500 rounded","pointer-events-none"),color:"none",children:x.toLocaleString()}),(0,s.jsx)(i.KJW,{title:"Alerts",onClick:()=>d("alerts"),children:(0,s.jsx)(a.Dkj,{})})]})]})}},21990:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var s=n(52322),i=n(80446),a=n(9969),r=n(2784),l=n(86450),c=n(71930),o=n(6391),d=n.n(o),u=n(91930),x=n(89630),m=n(25573),f=n(88242);function h(){let{openDialog:e}=(0,l.Rh)();return(0,s.jsxs)("div",{className:"flex flex-col gap-10 justify-center items-center h-[400px] cursor-pointer",children:[(0,s.jsx)(i.xvT,{children:(0,s.jsx)(f.HCc,{className:"scale-[200%]"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-6 justify-center items-center",children:[(0,s.jsxs)(i.xvT,{color:"subtle",className:"text-center max-w-[500px]",children:["Send funds to your ",(0,s.jsx)(i.EKh,{children:"renterd"})," wallet address to get started."]}),(0,s.jsx)(i.zxk,{variant:"accent",onClick:()=>e("addressDetails"),children:"View address"})]})]})}function p(){let e=(0,a.Qq)({params:{},config:{swr:{refreshInterval:6e4,revalidateOnFocus:!1}}}),t=(0,a.a0)(),{openDialog:n}=(0,l.Rh)(),o=(0,r.useMemo)(()=>t.data&&e.data?[...(t.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e),unconfirmed:!0})),...(e.data||[]).map(e=>({type:"transaction",txType:(0,i.leQ)(e.raw),hash:e.id,timestamp:new Date(e.timestamp).getTime(),onClick:()=>n("transactionDetails",e.id),sc:new(d())(e.inflow).minus(e.outflow)})).sort((e,t)=>e.timestamp{var t;return null===(t=e.data)||void 0===t?void 0:t.sort((e,t)=>e.timestamp>t.timestamp?1:-1).reduce((e,t,n)=>0===n?e.concat({sc:new(d())(t.inflow).minus(t.outflow).toNumber(),timestamp:new Date(t.timestamp).getTime()}):e.concat({sc:new(d())(e[n-1].sc).plus(t.inflow).minus(t.outflow).toNumber(),timestamp:new Date(t.timestamp).getTime()}),[])},[e.data]),p=(0,a.Tu)(),{isSynced:v,syncPercent:j,isWalletSynced:w,walletScanPercent:g}=(0,m.n)();return(0,s.jsx)(x.J,{routes:c._,sidenav:(0,s.jsx)(u.e,{}),openSettings:()=>n("settings"),title:"Wallet",actions:(0,s.jsx)(i.QUh,{isSynced:v,isWalletSynced:w,syncPercent:j,walletScanPercent:g,balanceSc:p.data?{spendable:new(d())(p.data.spendable),unconfirmed:new(d())(p.data.unconfirmed),confirmed:new(d())(p.data.confirmed)}:void 0,receiveSiacoin:()=>n("addressDetails"),sendSiacoin:()=>n("sendSiacoin")}),stats:(0,s.jsx)(i.DmW,{isSynced:v,isWalletSynced:w,syncPercent:j,walletScanPercent:g}),children:(0,s.jsxs)("div",{className:"p-6 flex flex-col gap-5",children:[(null==f?void 0:f.length)?(0,s.jsx)(i.Z58,{chartType:"line",balances:f,isLoading:e.isValidating}):null,(0,s.jsx)(i.XOF,{title:"Transactions",entities:null==o?void 0:o.slice(0,100),emptyState:(0,s.jsx)(h,{})})]})})}function v(){return(0,s.jsx)(p,{})}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=69171)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/renterd/assets/_next/static/chunks/webpack-d06262e12d472fe0.js b/renterd/assets/_next/static/chunks/webpack-d286517b51b6235a.js similarity index 97% rename from renterd/assets/_next/static/chunks/webpack-d06262e12d472fe0.js rename to renterd/assets/_next/static/chunks/webpack-d286517b51b6235a.js index ec450a2c9..1fc8747db 100644 --- a/renterd/assets/_next/static/chunks/webpack-d06262e12d472fe0.js +++ b/renterd/assets/_next/static/chunks/webpack-d286517b51b6235a.js @@ -1 +1 @@ -!function(){"use strict";var e,t,n,r,o,u,i,c,f,a={},d={};function l(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={id:e,loaded:!1,exports:{}},r=!0;try{a[e].call(n.exports,n,n.exports,l),r=!1}finally{r&&delete d[e]}return n.loaded=!0,n.exports}l.m=a,l.amdO={},e=[],l.O=function(t,n,r,o){if(n){o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(l.O).every(function(e){return l.O[e](n[f])})?n.splice(f--,1):(c=!1,o0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o];return}for(var i=1/0,u=0;u=o&&Object.keys(l.O).every(function(e){return l.O[e](n[f])})?n.splice(f--,1):(c=!1,o\*\:first-child\]\:rounded-l>:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.\[\&\>\*\:first-child\]\:border-l>:first-child{border-left-width:1px}.\[\&\>\*\:last-child\]\:rounded-r>:last-child{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.\[\&\>\*\:last-child\]\:border-r>:last-child{border-right-width:1px}.\[\&\>\*\]\:rounded-none>*{border-radius:0}.\[\&\>\*\]\:border-l>*{border-left-width:1px}.\[\&\>\*\]\:border-r-0>*{border-right-width:0}.\[\&\>div\]\:\!block>div{display:block!important}.\[\&\>div\]\:\!h-full>div{height:100%!important}.\[\&\>div\]\:flex-1>div{flex:1 1 0%}.\[\&\>div\]\:overflow-hidden>div{overflow:hidden}.\[\&\>p\]\:\!py-0>p{padding-top:0!important;padding-bottom:0!important}.\[\&\>select\:disabled\]\:text-gray-600>select:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.dark .\[\&\>select\:disabled\]\:dark\:text-graydark-700>select:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.\[\&\>svg\]\:-mx-0\.5>svg{margin-left:-.125rem;margin-right:-.125rem}.\[\&\>svg\]\:opacity-50>svg{opacity:.5}.hover\:\[\&\>svg\]\:opacity-100>svg:hover{opacity:1}.\[\&\[href\]\]\:border-green-800\/30[href]{border-color:rgba(22,101,52,.3)}.\[\&\[href\]\]\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.\[\&\[href\]\]\:hover\:border-green-800\/50:hover[href]{border-color:rgba(22,101,52,.5)}.\[\&\[href\]\]\:hover\:bg-green-800\/90:hover[href]{background-color:rgba(22,101,52,.9)}.dark .\[\&\[href\]\]\:dark\:border-green-600\/70[href]{border-color:rgba(22,163,74,.7)}.dark .\[\&\[href\]\]\:dark\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:\[\&\[href\]\]\:hover\:bg-green-700\/90:hover[href]{background-color:rgba(21,128,61,.9)}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1eff7769948a8c71-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7a86083759ce0787-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1fece7a471d60ffe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/94e828afa3939314-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/dcb90225ac4215b0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/21379288e5de0162-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/20a0263cfae743ff-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/a06cddabfd904d07-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/c05280b20c19cff6-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ab3a7057d2c303a3-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e7a1d48695380088-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/7a514966b24fa042-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/f34054e2970d3793-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/ee809f9c8637ac35-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/416dffb3eaba61b5-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/b2613c7882fb9dad-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/00b652cd5acf4d1a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/318cd1ba86719051-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/26570e7eecd756a7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/6ad357e49f846140-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c1dadd6c99c0900a-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/9fb8e434756a520e-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/b83e9714dba3a7b2-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/7729f7b3bc7fa987-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/69dc0d8a22bc572a-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/d752111844abddfa-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/7fe39de114f984a0-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/6c817bbad1cfd130-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/bc7cd6cbdb8771c6-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/1b708ab38c59f94d-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/ed08f0e693ce6a65-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/0be44b380099e057-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f4ebea4f2ece3dbe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f7e3cefe6d9fda21-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/26d0ad28b444f0fb-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/d704a8fea67672dc-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/3ce4c920cddd7002-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1027f57de01c0b24-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/23313877d5d6ff1b-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/00417edf5e44282b-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/228a95c965c5f90b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/97c8a55b2cb1421c-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/86d6d32ab6c2e21d-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/07304b90e9b5ca40-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/54f3953b28e50f98-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a40ccebe730e6b34-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/01ec6e01ff4830ae-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/34d8d58b783ee6bb-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/3763ada0a9bb1988-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/787b0654beea4191-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/2c3c1f0838a71cfb-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/47bcda1e7b1ac8be-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/bed76354f405346d-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c70aa70a01eaecff-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/24cfcc12c15b03b9-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/29ffcd3df3f1cb91-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/3cef106cd115e360-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/a0c95037dd5c9387-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/e889cd181219a83f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/6d6d0e4a023f9f33-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/0148c4ca3456ea72-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/4184cf5f191b83db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/28cea0425961ab58-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/b4c759cba7a5f011-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/de555e6bc944c11a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/791334aa8b2b679f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/a2411df190893074-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/60d74363e715829c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/eb37c9fe4776ea97-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc381c5935034aa5-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f565fad065ab4cf3-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f9946f06d70a1b5b-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/d1f5f89450ecd78c-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ebcf93a611f94ec0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ec50b434b597bc61-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/6be22a85bef54f08-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/9491f41002d34397-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/afba6ba6bf9157e8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/be843c5b0882ad66-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/67aea609c6135b3b-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/09b62d668edb05d1-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/10446295ae7f2657-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/b6ecfd81ed9f83c9-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/08404bcfb1dae67a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_Fallback_829fdc;src:local("Arial");ascent-override:101.44%;descent-override:27.22%;line-gap-override:0.00%;size-adjust:101.04%}.__className_829fdc{font-family:__IBM_Plex_Sans_829fdc,__IBM_Plex_Sans_Fallback_829fdc}.__variable_829fdc{--font-sans:"__IBM_Plex_Sans_829fdc","__IBM_Plex_Sans_Fallback_829fdc"}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/43f58290d48b3e4f-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/f7b042c81aa9dac9-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/5f52e8aafa6d55e1-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7c8d3f8a7910b37f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/c91ca22957702d7a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e31631a967fe3515-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e46a860e09e79916-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/2d1700372dfaaa94-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/27834a3ea5568a72-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ba1ff977fd46651f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/aa5329918e5352b7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/3546445dbedfe8e0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/a329a67c917d0d83-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/32ef35af86a1df18-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/42c2d543c4ca0ff8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/4acd96e66b7a15d8-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c00fdcaa534cf51c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9b64de7575b01f6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/e05a5a1d4048d7df-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9387c470a117487-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5b5f10d1030076fd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/66b34bbb56a523d8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/62e8d71f5f62d0a9-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/4f5bd398699bdcf0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5873ad5359ff35c9-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/a08baca5e17c57be-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b8347de82b1bd9a8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/99163ae90df46b27-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b9432a067aca8720-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/c3f479ae50d16e35-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/d4eddeab410cd094-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1674d377433d7de6-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/f65f080f6ad9aa76-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/7a44530bd17b4a4c-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/37e85b36581a02ab-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/1e0eb4a7325b5d14-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/136ae42764b7e0db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/b17f4305e2f0c22a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a7f64a09f7737545-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/98bcafdc59ee6d65-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/ce562f20499ad585-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/57699fff66d5761c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/e490b1ecb6589d48-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/524be5e37a616f9b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c690761783507ad4-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/5a7dbca54c2fc4dd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/d4e99c199dab3055-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/9ae1ac821a4debaf-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/ec1b1cbc512bc43e-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/463cef7d4672ba68-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/ebec2867f40f78ec-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/d607327a37a507c7-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/2e1b830192b7974a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3aa27b2eb5f698f7-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3478b6abef19b3b3-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/b6f2eee8808a2bb4-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc2003170c651d45-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/d43ef4503e5571d0-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/3281a323710833ec-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/684e5662d94c69e1-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/97b12f7b815cdf76-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/19fc70611c7ee6d5-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/01721b474504e7d6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/3ccf24bed29cbb82-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/be2416cbb012c256-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/7524e759b2d52ce2-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/83feb047e42e457a-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/40bfb1458eaec497-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/8ea51a27e153ec43-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/035951aefad7b653-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_Fallback_355ef5;src:local("Arial");ascent-override:75.41%;descent-override:20.23%;line-gap-override:0.00%;size-adjust:135.93%}.__className_355ef5{font-family:__IBM_Plex_Mono_355ef5,__IBM_Plex_Mono_Fallback_355ef5}.__variable_355ef5{--font-mono:"__IBM_Plex_Mono_355ef5","__IBM_Plex_Mono_Fallback_355ef5"} \ No newline at end of file diff --git a/renterd/assets/_next/static/css/ea4363d3c7e41114.css b/renterd/assets/_next/static/css/ea4363d3c7e41114.css deleted file mode 100644 index f3354e3eb..000000000 --- a/renterd/assets/_next/static/css/ea4363d3c7e41114.css +++ /dev/null @@ -1,3 +0,0 @@ -/* -! tailwindcss v3.2.7 | MIT License | https://tailwindcss.com -*/*,:after,:before{box-sizing:border-box;border:0 solid #f1f3f5}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--font-mono),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#e6e8eb}input::placeholder,textarea::placeholder{opacity:1;color:#e6e8eb}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*{scrollbar-color:auto;scrollbar-width:auto}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.fixed{position:fixed}.\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-2{bottom:-.5rem}.-bottom-2\.5{bottom:-.625rem}.-left-7{left:-1.75rem}.-right-\[2px\]{right:-2px}.-right-\[9px\]{right:-9px}.-top-0{top:0}.-top-0\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-\[100px\]{top:-100px}.-top-\[5px\]{top:-5px}.-top-px{top:-1px}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.bottom-\[100\%\]{bottom:100%}.left-0{left:0}.left-1{left:.25rem}.left-1\.5{left:.375rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-4{left:1rem}.left-6{left:1.5rem}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-5{right:1.25rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-1{top:.25rem}.top-3{top:.75rem}.top-3\.5{top:.875rem}.top-5{top:1.25rem}.top-\[-0\.5px\]{top:-.5px}.top-\[-30px\]{top:-30px}.top-\[-50px\]{top:-50px}.top-\[100\%\]{top:100%}.top-\[200px\]{top:200px}.top-px{top:1px}.-z-10{z-index:-10}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.\!-m-2{margin:-.5rem!important}.-m-4{margin:-1rem}.m-0{margin:0}.m-px{margin:1px}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-5{margin-left:-1.25rem;margin-right:-1.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-1\.5{margin-top:.375rem;margin-bottom:.375rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-0{margin-bottom:0}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-5{margin-bottom:1.25rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.mt-\[5px\]{margin-top:5px}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.\!h-\[400px\]{height:400px!important}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-28{height:7rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-\[100px\]{height:100px}.h-\[120px\]{height:120px}.h-\[14px\]{height:14px}.h-\[200px\]{height:200px}.h-\[200vh\]{height:200vh}.h-\[20px\]{height:20px}.h-\[210px\]{height:210px}.h-\[300px\]{height:300px}.h-\[30px\]{height:30px}.h-\[400px\]{height:400px}.h-\[50px\]{height:50px}.h-\[70\%\]{height:70%}.h-\[80vh\]{height:80vh}.h-\[84px\]{height:84px}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[400px\]{max-height:400px}.max-h-\[600px\]{max-height:600px}.max-h-\[70vh\]{max-height:70vh}.min-h-\[80px\]{min-height:80px}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[100px\]{width:100px}.w-\[120px\]{width:120px}.w-\[140px\]{width:140px}.w-\[150px\]{width:150px}.w-\[160px\]{width:160px}.w-\[200px\]{width:200px}.w-\[200vw\]{width:200vw}.w-\[210px\]{width:210px}.w-\[220px\]{width:220px}.w-\[250px\]{width:250px}.w-\[300px\]{width:300px}.w-\[400px\]{width:400px}.w-\[450px\]{width:450px}.w-\[500px\]{width:500px}.w-\[50px\]{width:50px}.w-\[60px\]{width:60px}.w-\[75px\]{width:75px}.w-\[800px\]{width:800px}.w-\[90\%\]{width:90%}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-\[200px\]{min-width:200px}.min-w-\[250px\]{min-width:250px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.\!max-w-\[1200px\]{max-width:1200px!important}.\!max-w-md{max-width:28rem!important}.\!max-w-none{max-width:none!important}.max-w-\[1145px\]{max-width:1145px}.max-w-\[300px\]{max-width:300px}.max-w-\[500px\]{max-width:500px}.max-w-\[600px\]{max-width:600px}.max-w-\[800px\]{max-width:800px}.max-w-none{max-width:none}.max-w-screen-2xl{max-width:1536px}.max-w-screen-md{max-width:768px}.max-w-screen-sm{max-width:640px}.max-w-screen-xl{max-width:1280px}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.\!flex-none{flex:none!important}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.table-auto{table-layout:auto}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.translate-x-0{--tw-translate-x:0px}.translate-x-0,.translate-x-0\.5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0\.5{--tw-translate-x:0.125rem}.translate-x-px{--tw-translate-x:1px}.scale-150,.translate-x-px{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-150{--tw-scale-x:1.5;--tw-scale-y:1.5}.scale-50{--tw-scale-x:.5;--tw-scale-y:.5}.scale-50,.scale-75{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-75{--tw-scale-x:.75;--tw-scale-y:.75}.scale-90{--tw-scale-x:.9;--tw-scale-y:.9}.scale-90,.scale-\[0\.65\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-\[0\.65\]{--tw-scale-x:0.65;--tw-scale-y:0.65}.scale-\[200\%\]{--tw-scale-x:200%;--tw-scale-y:200%}.scale-\[200\%\],.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pingslow{0%{transform:scale(1);opacity:1}60%{transform:scale(1);opacity:1}90%{transform:scale(2);opacity:0}to{transform:scale(2);opacity:0}}.animate-pingslow{animation:pingslow 3s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pulselight{30%{opacity:1}50%{opacity:.2}70%{opacity:1}}.animate-pulselight{animation:pulselight 3s cubic-bezier(.4,0,.6,1) infinite}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-y{resize:vertical}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}.gap-16{gap:4rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-7{gap:1.75rem}.gap-8{gap:2rem}.gap-x-12{-moz-column-gap:3rem;column-gap:3rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-1{row-gap:.25rem}.gap-y-10{row-gap:2.5rem}.gap-y-12{row-gap:3rem}.gap-y-4{row-gap:1rem}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.\!rounded-none{border-radius:0!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tr-lg{border-top-right-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-y-0{border-top-width:0;border-bottom-width:0}.border-b{border-bottom-width:1px}.border-b-3{border-bottom-width:3px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-none{border-style:none}.border-accent-900{--tw-border-opacity:1;border-color:rgb(5 107 36/var(--tw-border-opacity))}.border-amber-500\/50{border-color:rgba(245,158,11,.5)}.border-amber-800\/30{border-color:rgba(146,64,14,.3)}.border-blue-500\/50{border-color:rgba(59,130,246,.5)}.border-gray-100{--tw-border-opacity:1;border-color:hsl(210 16.7% 97.6%/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:hsl(209 13.3% 95.3%/var(--tw-border-opacity))}.border-gray-200\/50{border-color:rgba(241,243,245,.5)}.border-gray-300{--tw-border-opacity:1;border-color:hsl(209 12.2% 93.2%/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:hsl(208 11.7% 91.1%/var(--tw-border-opacity))}.border-gray-400\/70{border-color:rgba(230,232,235,.7)}.border-gray-500{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity:1;border-color:hsl(207 11.1% 85.9%/var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity:1;border-color:hsl(206 5.8% 52.3%/var(--tw-border-opacity))}.border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.border-green-500\/50{border-color:rgba(34,197,94,.5)}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.border-green-800\/30{border-color:rgba(22,101,52,.3)}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.border-red-800\/30{border-color:rgba(153,27,27,.3)}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-accent-200{--tw-bg-opacity:1;background-color:rgb(213 242 222/var(--tw-bg-opacity))}.bg-accent-800{--tw-bg-opacity:1;background-color:rgb(5 135 45/var(--tw-bg-opacity))}.bg-amber-300{--tw-bg-opacity:1;background-color:rgb(252 211 77/var(--tw-bg-opacity))}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity))}.bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.bg-amber-700{--tw-bg-opacity:1;background-color:rgb(180 83 9/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\/70{background-color:rgba(0,0,0,.7)}.bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:hsl(210 16.7% 97.6%/var(--tw-bg-opacity))}.bg-gray-1000{--tw-bg-opacity:1;background-color:hsl(206 6% 43.5%/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:hsl(209 13.3% 95.3%/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:hsl(209 12.2% 93.2%/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:hsl(208 11.3% 88.9%/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:hsl(205 10.7% 78%/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity:1;background-color:hsl(206 5.8% 52.3%/var(--tw-bg-opacity))}.bg-green-100\/20{background-color:rgba(220,252,231,.2)}.bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.bg-slate-400{--tw-bg-opacity:1;background-color:rgb(148 163 184/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-white{--tw-gradient-from:#fff;--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-white\/95{--tw-gradient-to:hsla(0,0%,100%,0);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.95),var(--tw-gradient-to)}.to-white{--tw-gradient-to:#fff}.fill-gray-1100{fill:#11181c}.fill-gray-600{fill:#d7dbdf}.fill-white{fill:#fff}.object-cover{-o-object-fit:cover;object-fit:cover}.\!p-1{padding:.25rem!important}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-\[5px\]{padding:5px}.p-px{padding:1px}.\!px-1{padding-left:.25rem!important;padding-right:.25rem!important}.\!px-3{padding-left:.75rem!important;padding-right:.75rem!important}.\!py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\[5px\]{padding-left:5px;padding-right:5px}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-40{padding-top:10rem;padding-bottom:10rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-px{padding-top:1px;padding-bottom:1px}.\!pl-2{padding-left:.5rem!important}.\!pr-2{padding-right:.5rem!important}.\!pr-4{padding-right:1rem!important}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-6{padding-bottom:1.5rem}.pb-px{padding-bottom:1px}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-5{padding-right:1.25rem}.pr-6{padding-right:1.5rem}.pr-9{padding-right:2.25rem}.pt-0{padding-top:0}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-40{padding-top:10rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-end{text-align:end}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono),ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.font-sans{font-family:var(--font-sans),ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-xxs{font-size:.625rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.proportional-nums{--tw-numeric-spacing:proportional-nums}.proportional-nums,.tabular-nums{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing:tabular-nums}.leading-normal{line-height:1.5}.leading-relaxed{line-height:1.625}.\!text-accent-1100{--tw-text-opacity:1!important;color:rgb(1 31 10/var(--tw-text-opacity))!important}.\!text-amber-600{--tw-text-opacity:1!important;color:rgb(217 119 6/var(--tw-text-opacity))!important}.\!text-emerald-700{--tw-text-opacity:1!important;color:rgb(4 120 87/var(--tw-text-opacity))!important}.\!text-gray-1000{--tw-text-opacity:1!important;color:hsl(206 6% 43.5%/var(--tw-text-opacity))!important}.\!text-gray-1100{--tw-text-opacity:1!important;color:hsl(206 24% 9%/var(--tw-text-opacity))!important}.\!text-gray-700{--tw-text-opacity:1!important;color:hsl(205 10.7% 78%/var(--tw-text-opacity))!important}.\!text-red-700{--tw-text-opacity:1!important;color:rgb(185 28 28/var(--tw-text-opacity))!important}.\!text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.text-accent-1100{--tw-text-opacity:1;color:rgb(1 31 10/var(--tw-text-opacity))}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity))}.text-emerald-700{--tw-text-opacity:1;color:rgb(4 120 87/var(--tw-text-opacity))}.text-gray-1000{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.text-gray-1100{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.text-gray-1100\/30{color:rgba(17,24,28,.3)}.text-gray-700{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:hsl(206 5.8% 52.3%/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.decoration-accent-900{text-decoration-color:#056b24}.decoration-accentdark-900{text-decoration-color:#069f35}.decoration-gray-1100{text-decoration-color:#11181c}.decoration-2{text-decoration-thickness:2px}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-95{opacity:.95}.opacity-\[10\%\]{opacity:10%}.mix-blend-difference{mix-blend-mode:difference}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-border-b{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-border-b{--tw-shadow:inset 0 -1px rgba(0,0,0,.3);--tw-shadow-colored:inset 0 -1px var(--tw-shadow-color)}.shadow-border-y{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.shadow-border-y,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.\!shadow-amber-500{--tw-shadow-color:#f59e0b!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-blue-500{--tw-shadow-color:#3b82f6!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-blue-900{--tw-shadow-color:#1e3a8a!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-green-500{--tw-shadow-color:#22c55e!important;--tw-shadow:var(--tw-shadow-colored)!important}.\!shadow-red-500{--tw-shadow-color:#ef4444!important;--tw-shadow:var(--tw-shadow-colored)!important}.shadow-gray-400{--tw-shadow-color:#e6e8eb;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-blue-500{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.blur{--tw-blur:blur(8px)}.blur,.grayscale{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale:grayscale(100%)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.duration-300{transition-duration:.3s}.duration-75{transition-duration:75ms}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.scrollbar-thin.overflow-x-hidden,.scrollbar.overflow-x-hidden{overflow-x:hidden}#__next,#root,body,html{height:100vh;overflow:hidden}.placeholder\:text-gray-600::-moz-placeholder{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.placeholder\:text-gray-600::placeholder{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.placeholder\:text-gray-700::-moz-placeholder{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.placeholder\:text-gray-700::placeholder{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:left-1\/2:before{content:var(--tw-content);left:50%}.before\:top-1\/2:before{content:var(--tw-content);top:50%}.after\:block:after{content:var(--tw-content);display:block}.after\:h-2:after{content:var(--tw-content);height:.5rem}.after\:h-4:after{content:var(--tw-content);height:1rem}.after\:w-2:after{content:var(--tw-content);width:.5rem}.after\:w-4:after{content:var(--tw-content);width:1rem}.after\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\:bg-green-600:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.after\:content-\[\"\"\]:after{--tw-content:"";content:var(--tw-content)}.first\:border-t-0:first-child{border-top-width:0}.first\:border-none:first-child{border-style:none}.first\:shadow-border-tlb:first-child{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset 1px 0 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset 1px 0 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.first\:shadow-border-tlb:first-child,.last\:shadow-border-trb:last-child{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.last\:shadow-border-trb:last-child{--tw-shadow:inset 0 1px 0 0 rgba(0,0,0,.3),inset -1px 0 0 0 rgba(0,0,0,.3),inset 0 -1px 0 0 rgba(0,0,0,.3);--tw-shadow-colored:inset 0 1px 0 0 var(--tw-shadow-color),inset -1px 0 0 0 var(--tw-shadow-color),inset 0 -1px 0 0 var(--tw-shadow-color)}.only\:left-0:only-child{left:0}.last-of-type\:border-b:last-of-type{border-bottom-width:1px}.autofill\:bg-blue-100:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.autofill\:bg-blue-100:autofill{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.autofill\:bg-white:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.autofill\:bg-white:autofill{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.autofill\:text-fill-gray-1100:-webkit-autofill{-webkit-text-fill-color:#11181c}.autofill\:text-fill-gray-1100:autofill{-webkit-text-fill-color:#11181c}.autofill\:shadow-fill-white:-webkit-autofill{--tw-shadow:0 0 0 9999px #fff inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.autofill\:shadow-fill-white:autofill{--tw-shadow:0 0 0 9999px #fff inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.autofill\:placeholder\:text-fill-gray-700:autofill::-moz-placeholder{-webkit-text-fill-color:#c1c8cd}.autofill\:placeholder\:text-fill-gray-700:-webkit-autofill::placeholder{-webkit-text-fill-color:#c1c8cd}.autofill\:placeholder\:text-fill-gray-700:autofill::placeholder{-webkit-text-fill-color:#c1c8cd}.focus-within\:z-10:focus-within{z-index:10}.focus-within\:ring:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:z-10:focus{z-index:10}.focus\:bg-gray-300:focus{--tw-bg-opacity:1;background-color:hsl(209 12.2% 93.2%/var(--tw-bg-opacity))}.focus\:text-gray-900:focus{--tw-text-opacity:1;color:hsl(206 5.8% 52.3%/var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.enabled\:border-green-800\/30:enabled{border-color:rgba(22,101,52,.3)}.enabled\:bg-green-700:enabled{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-auto:disabled{cursor:auto}.disabled\:cursor-default:disabled{cursor:default}.disabled\:border-amber-600\/50:disabled{border-color:rgba(217,119,6,.5)}.disabled\:border-green-600\/50:disabled{border-color:rgba(22,163,74,.5)}.disabled\:border-red-600\/50:disabled{border-color:rgba(220,38,38,.5)}.disabled\:bg-amber-700\/70:disabled{background-color:rgba(180,83,9,.7)}.disabled\:bg-gray-200:disabled{--tw-bg-opacity:1;background-color:hsl(209 13.3% 95.3%/var(--tw-bg-opacity))}.disabled\:bg-green-700\/70:disabled{background-color:rgba(21,128,61,.7)}.disabled\:bg-red-700\/70:disabled{background-color:rgba(185,28,28,.7)}.disabled\:text-gray-400:disabled{--tw-text-opacity:1;color:hsl(208 11.7% 91.1%/var(--tw-text-opacity))}.disabled\:text-gray-600:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.disabled\:text-white\/50:disabled{color:hsla(0,0%,100%,.5)}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:block{display:block}.group:hover .group-hover\:flex{display:flex}.group\/segments:hover .group-hover\/segments\:hidden{display:none}.group:hover .group-hover\:bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-blue-400{--tw-bg-opacity:1;background-color:rgb(96 165 250/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-blue-500\/10{background-color:rgba(59,130,246,.1)}.group:hover .group-hover\:bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.group:hover .group-hover\:bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.group:hover .group-hover\:opacity-100{opacity:1}.aria-selected\:bg-gray-400[aria-selected=true]{--tw-bg-opacity:1;background-color:hsl(208 11.7% 91.1%/var(--tw-bg-opacity))}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:top-1[data-side=bottom]{top:.25rem}.data-\[side\=left\]\:right-1[data-side=left]{right:.25rem}.data-\[side\=right\]\:left-1[data-side=right]{left:.25rem}.data-\[side\=top\]\:bottom-1[data-side=top]{bottom:.25rem}.data-\[side\=bottom\]\:origin-top[data-side=bottom]{transform-origin:top}.data-\[side\=left\]\:origin-right[data-side=left]{transform-origin:right}.data-\[side\=right\]\:origin-left[data-side=right]{transform-origin:left}.data-\[side\=top\]\:origin-bottom[data-side=top]{transform-origin:bottom}.data-\[state\=checked\]\:translate-x-\[20px\][data-state=checked]{--tw-translate-x:20px}.data-\[state\=checked\]\:translate-x-\[20px\][data-state=checked],.data-\[state\=checked\]\:translate-x-\[9px\][data-state=checked]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-\[9px\][data-state=checked]{--tw-translate-x:9px}@keyframes enterFromRight{0%{opacity:0;transform:translateX(200px)}to{opacity:1;transform:translateX(0)}}.data-\[motion\=from-end\]\:animate-enterFromRight[data-motion=from-end]{animation:enterFromRight .25s ease}@keyframes enterFromLeft{0%{opacity:0;transform:translateX(-200px)}to{opacity:1;transform:translateX(0)}}.data-\[motion\=from-start\]\:animate-enterFromLeft[data-motion=from-start]{animation:enterFromLeft .25s ease}@keyframes exitToRight{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(200px)}}.data-\[motion\=to-end\]\:animate-exitToRight[data-motion=to-end]{animation:exitToRight .25s ease}@keyframes exitToLeft{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-200px)}}.data-\[motion\=to-start\]\:animate-exitToLeft[data-motion=to-start]{animation:exitToLeft .25s ease}.data-\[state\=active\]\:border-green-600[data-state=active]{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.data-\[disabled\]\:text-gray-700[data-disabled]{--tw-text-opacity:1;color:hsl(205 10.7% 78%/var(--tw-text-opacity))}.data-\[state\=active\]\:text-accent-1100[data-state=active]{--tw-text-opacity:1;color:rgb(1 31 10/var(--tw-text-opacity))}.data-\[state\=checked\]\:text-gray-1100[data-state=checked]{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.enabled\:data-\[state\=checked\]\:bg-green-600[data-state=checked]:enabled{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.enabled\:data-\[state\=checked\]\:ring[data-state=checked]:enabled{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.enabled\:data-\[state\=checked\]\:ring-green-600[data-state=checked]:enabled{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.disabled\:data-\[state\=checked\]\:bg-green-600\/50[data-state=checked]:disabled{background-color:rgba(22,163,74,.5)}.disabled\:data-\[state\=checked\]\:ring-green-600\/50[data-state=checked]:disabled{--tw-ring-color:rgba(22,163,74,.5)}.group[data-selected=true] .group-data-\[selected\=true\]\:text-gray-1000{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.open\:text-gray-1100[data-state=open]{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.open\:opacity-10[data-state=open]{opacity:.1}.hover\:z-10:hover{z-index:10}.hover\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-amber-800\/50:hover{border-color:rgba(146,64,14,.5)}.hover\:border-gray-500:hover{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.hover\:border-green-500:hover{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.hover\:border-green-700:hover{--tw-border-opacity:1;border-color:rgb(21 128 61/var(--tw-border-opacity))}.hover\:border-green-800\/50:hover{border-color:rgba(22,101,52,.5)}.hover\:border-red-800\/50:hover{border-color:rgba(153,27,27,.5)}.hover\:bg-amber-800\/90:hover{background-color:rgba(146,64,14,.9)}.hover\:bg-black\/20:hover{background-color:rgba(0,0,0,.2)}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.hover\:bg-green-100\/20:hover{background-color:rgba(220,252,231,.2)}.hover\:bg-green-800\/90:hover{background-color:rgba(22,101,52,.9)}.hover\:bg-red-800\/90:hover{background-color:rgba(153,27,27,.9)}.hover\:text-gray-1000:hover{--tw-text-opacity:1;color:hsl(206 6% 43.5%/var(--tw-text-opacity))}.hover\:text-gray-1100:hover{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.hover\:text-gray-1100\/50:hover{color:rgba(17,24,28,.5)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-60:hover{opacity:.6}.hover\:opacity-90:hover{opacity:.9}.hover\:shadow:hover{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.enabled\:hover\:border-amber-800\/50:hover:enabled{border-color:rgba(146,64,14,.5)}.enabled\:hover\:border-gray-500:hover:enabled{--tw-border-opacity:1;border-color:hsl(208 11.3% 88.9%/var(--tw-border-opacity))}.enabled\:hover\:border-gray-700:hover:enabled{--tw-border-opacity:1;border-color:hsl(205 10.7% 78%/var(--tw-border-opacity))}.enabled\:hover\:border-green-800\/50:hover:enabled{border-color:rgba(22,101,52,.5)}.enabled\:hover\:border-red-800\/50:hover:enabled{border-color:rgba(153,27,27,.5)}.enabled\:hover\:bg-amber-800\/90:hover:enabled{background-color:rgba(146,64,14,.9)}.enabled\:hover\:bg-gray-50:hover:enabled{--tw-bg-opacity:1;background-color:hsl(206 30% 98.8%/var(--tw-bg-opacity))}.enabled\:hover\:bg-green-800\/90:hover:enabled{background-color:rgba(22,101,52,.9)}.enabled\:hover\:bg-red-800\/90:hover:enabled{background-color:rgba(153,27,27,.9)}.enabled\:hover\:text-gray-1100:hover:enabled{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}@media (prefers-reduced-motion:reduce){.motion-reduce\:hidden{display:none}}.dark .dark\:border-accentdark-900{--tw-border-opacity:1;border-color:rgb(6 159 53/var(--tw-border-opacity))}.dark .dark\:border-amber-500\/50{border-color:rgba(245,158,11,.5)}.dark .dark\:border-amber-600\/70{border-color:rgba(217,119,6,.7)}.dark .dark\:border-blue-500\/50{border-color:rgba(59,130,246,.5)}.dark .dark\:border-gray-800{--tw-border-opacity:1;border-color:hsl(206 6% 56.1%/var(--tw-border-opacity))}.dark .dark\:border-graydark-100{--tw-border-opacity:1;border-color:hsl(195 7.1% 11%/var(--tw-border-opacity))}.dark .dark\:border-graydark-200{--tw-border-opacity:1;border-color:hsl(197 6.8% 13.6%/var(--tw-border-opacity))}.dark .dark\:border-graydark-300{--tw-border-opacity:1;border-color:hsl(198 6.6% 15.8%/var(--tw-border-opacity))}.dark .dark\:border-graydark-400{--tw-border-opacity:1;border-color:hsl(199 6.4% 17.9%/var(--tw-border-opacity))}.dark .dark\:border-graydark-400\/50{border-color:rgba(43,47,49,.5)}.dark .dark\:border-graydark-400\/70{border-color:rgba(43,47,49,.7)}.dark .dark\:border-graydark-500{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .dark\:border-graydark-600{--tw-border-opacity:1;border-color:hsl(203 6% 24.3%/var(--tw-border-opacity))}.dark .dark\:border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity))}.dark .dark\:border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .dark\:border-green-500\/50{border-color:rgba(34,197,94,.5)}.dark .dark\:border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .dark\:border-green-600\/70{border-color:rgba(22,163,74,.7)}.dark .dark\:border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity))}.dark .dark\:border-red-600\/70{border-color:rgba(220,38,38,.7)}.dark .dark\:border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.dark .dark\:border-white\/10{border-color:hsla(0,0%,100%,.1)}.dark .dark\:bg-accentdark-200{--tw-bg-opacity:1;background-color:rgb(6 40 17/var(--tw-bg-opacity))}.dark .dark\:bg-accentdark-800{--tw-bg-opacity:1;background-color:rgb(5 135 45/var(--tw-bg-opacity))}.dark .dark\:bg-amber-200{--tw-bg-opacity:1;background-color:rgb(253 230 138/var(--tw-bg-opacity))}.dark .dark\:bg-amber-300{--tw-bg-opacity:1;background-color:rgb(252 211 77/var(--tw-bg-opacity))}.dark .dark\:bg-amber-500{--tw-bg-opacity:1;background-color:rgb(245 158 11/var(--tw-bg-opacity))}.dark .dark\:bg-amber-700{--tw-bg-opacity:1;background-color:rgb(180 83 9/var(--tw-bg-opacity))}.dark .dark\:bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 197 253/var(--tw-bg-opacity))}.dark .dark\:bg-gray-800{--tw-bg-opacity:1;background-color:hsl(206 6% 56.1%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-100{--tw-bg-opacity:1;background-color:hsl(195 7.1% 11%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-200{--tw-bg-opacity:1;background-color:hsl(197 6.8% 13.6%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-300{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-400{--tw-bg-opacity:1;background-color:hsl(199 6.4% 17.9%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-50{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-500{--tw-bg-opacity:1;background-color:hsl(201 6.2% 20.5%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-700{--tw-bg-opacity:1;background-color:hsl(207 5.6% 31.6%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-800{--tw-bg-opacity:1;background-color:hsl(206 6% 43.9%/var(--tw-bg-opacity))}.dark .dark\:bg-graydark-900{--tw-bg-opacity:1;background-color:hsl(206 5.2% 49.5%/var(--tw-bg-opacity))}.dark .dark\:bg-green-100\/20{background-color:rgba(220,252,231,.2)}.dark .dark\:bg-green-300{--tw-bg-opacity:1;background-color:rgb(134 239 172/var(--tw-bg-opacity))}.dark .dark\:bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .dark\:bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.dark .dark\:bg-red-700{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.dark .dark\:bg-slate-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.dark .dark\:bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity))}.dark .dark\:bg-transparent{background-color:transparent}.dark .dark\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.dark .dark\:from-graydark-50{--tw-gradient-from:#151718;--tw-gradient-to:rgba(21,23,24,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark .dark\:via-graydark-100\/95{--tw-gradient-to:rgba(26,29,30,0);--tw-gradient-stops:var(--tw-gradient-from),rgba(26,29,30,.95),var(--tw-gradient-to)}.dark .dark\:to-graydark-50{--tw-gradient-to:#151718}.dark .dark\:fill-graydark-50{fill:#151718}.dark .dark\:fill-graydark-600{fill:#3a3f42}.dark .dark\:fill-white{fill:#fff}.dark .dark\:\!text-accentdark-1100{--tw-text-opacity:1!important;color:rgb(217 244 225/var(--tw-text-opacity))!important}.dark .dark\:\!text-amber-500{--tw-text-opacity:1!important;color:rgb(245 158 11/var(--tw-text-opacity))!important}.dark .dark\:\!text-emerald-500{--tw-text-opacity:1!important;color:rgb(16 185 129/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-1000{--tw-text-opacity:1!important;color:hsl(206 6% 63%/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-50{--tw-text-opacity:1!important;color:hsl(200 7% 8.8%/var(--tw-text-opacity))!important}.dark .dark\:\!text-graydark-700{--tw-text-opacity:1!important;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))!important}.dark .dark\:\!text-red-400{--tw-text-opacity:1!important;color:rgb(248 113 113/var(--tw-text-opacity))!important}.dark .dark\:\!text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.dark .dark\:text-accentdark-1100{--tw-text-opacity:1;color:rgb(217 244 225/var(--tw-text-opacity))}.dark .dark\:text-amber-500{--tw-text-opacity:1;color:rgb(245 158 11/var(--tw-text-opacity))}.dark .dark\:text-emerald-500{--tw-text-opacity:1;color:rgb(16 185 129/var(--tw-text-opacity))}.dark .dark\:text-gray-1100{--tw-text-opacity:1;color:hsl(206 24% 9%/var(--tw-text-opacity))}.dark .dark\:text-gray-300{--tw-text-opacity:1;color:hsl(209 12.2% 93.2%/var(--tw-text-opacity))}.dark .dark\:text-graydark-1000{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .dark\:text-graydark-1100{--tw-text-opacity:1;color:hsl(210 6% 93%/var(--tw-text-opacity))}.dark .dark\:text-graydark-50{--tw-text-opacity:1;color:hsl(200 7% 8.8%/var(--tw-text-opacity))}.dark .dark\:text-graydark-700{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .dark\:text-graydark-800{--tw-text-opacity:1;color:hsl(206 6% 43.9%/var(--tw-text-opacity))}.dark .dark\:text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.dark .dark\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:text-white\/30{color:hsla(0,0%,100%,.3)}.dark .dark\:decoration-accentdark-900{text-decoration-color:#069f35}.dark .dark\:decoration-gray-500{text-decoration-color:#dfe3e6}.dark .dark\:opacity-10{opacity:.1}.dark .dark\:opacity-50{opacity:.5}.dark .dark\:mix-blend-difference{mix-blend-mode:difference}.dark .dark\:\!shadow-amber-500{--tw-shadow-color:#f59e0b!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-blue-200{--tw-shadow-color:#bfdbfe!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-blue-400{--tw-shadow-color:#60a5fa!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-green-400{--tw-shadow-color:#4ade80!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:\!shadow-red-400{--tw-shadow-color:#f87171!important;--tw-shadow:var(--tw-shadow-colored)!important}.dark .dark\:shadow-graydark-300{--tw-shadow-color:#26292b;--tw-shadow:var(--tw-shadow-colored)}.dark .dark\:ring-blue-200{--tw-ring-opacity:1;--tw-ring-color:rgb(191 219 254/var(--tw-ring-opacity))}.dark .dark\:brightness-0{--tw-brightness:brightness(0)}.dark .dark\:brightness-0,.dark .dark\:invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.dark .dark\:invert{--tw-invert:invert(100%)}.dark .dark\:invert-\[0\.9\]{--tw-invert:invert(0.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.dark .placeholder\:dark\:text-graydark-500::-moz-placeholder{--tw-text-opacity:1;color:hsl(201 6.2% 20.5%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-500::placeholder{--tw-text-opacity:1;color:hsl(201 6.2% 20.5%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-700::-moz-placeholder{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .placeholder\:dark\:text-graydark-700::placeholder{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .after\:dark\:bg-green-500:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-blue-800:-webkit-autofill{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-blue-800:autofill{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-graydark-50:-webkit-autofill{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .autofill\:dark\:bg-graydark-50:autofill{--tw-bg-opacity:1;background-color:hsl(200 7% 8.8%/var(--tw-bg-opacity))}.dark .autofill\:dark\:text-fill-white:-webkit-autofill{-webkit-text-fill-color:#fff}.dark .autofill\:dark\:text-fill-white:autofill{-webkit-text-fill-color:#fff}.dark .autofill\:dark\:shadow-fill-graydark-50:-webkit-autofill{--tw-shadow:0 0 0 9999px #151718 inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark .autofill\:dark\:shadow-fill-graydark-50:autofill{--tw-shadow:0 0 0 9999px #151718 inset;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:autofill::-moz-placeholder{-webkit-text-fill-color:#4c5155}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:-webkit-autofill::placeholder{-webkit-text-fill-color:#4c5155}.dark .autofill\:placeholder\:dark\:text-fill-graydark-700:autofill::placeholder{-webkit-text-fill-color:#4c5155}.dark .dark\:focus\:bg-graydark-300:focus{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:focus\:text-white:focus{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .enabled\:dark\:border-green-600\/70:enabled{border-color:rgba(22,163,74,.7)}.dark .enabled\:dark\:bg-green-700:enabled{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .disabled\:dark\:border-amber-500\/30:disabled{border-color:rgba(245,158,11,.3)}.dark .disabled\:dark\:border-green-500\/30:disabled{border-color:rgba(34,197,94,.3)}.dark .disabled\:dark\:border-red-500\/30:disabled{border-color:rgba(239,68,68,.3)}.dark .disabled\:dark\:bg-amber-600\/70:disabled{background-color:rgba(217,119,6,.7)}.dark .disabled\:dark\:bg-graydark-200:disabled{--tw-bg-opacity:1;background-color:hsl(197 6.8% 13.6%/var(--tw-bg-opacity))}.dark .disabled\:dark\:bg-green-600\/70:disabled{background-color:rgba(22,163,74,.7)}.dark .disabled\:dark\:bg-red-600\/70:disabled{background-color:rgba(220,38,38,.7)}.dark .disabled\:dark\:text-graydark-400:disabled{--tw-text-opacity:1;color:hsl(199 6.4% 17.9%/var(--tw-text-opacity))}.dark .disabled\:dark\:text-graydark-700:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .disabled\:dark\:text-white\/50:disabled{color:hsla(0,0%,100%,.5)}.dark .group:hover .dark\:group-hover\:bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-amber-600{--tw-bg-opacity:1;background-color:rgb(217 119 6/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-blue-200\/10{background-color:rgba(191,219,254,.1)}.dark .group:hover .dark\:group-hover\:bg-blue-400{--tw-bg-opacity:1;background-color:rgb(96 165 250/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-graydark-800{--tw-bg-opacity:1;background-color:hsl(206 6% 43.9%/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-green-400{--tw-bg-opacity:1;background-color:rgb(74 222 128/var(--tw-bg-opacity))}.dark .group:hover .dark\:group-hover\:bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.dark .aria-selected\:dark\:bg-graydark-500[aria-selected=true]{--tw-bg-opacity:1;background-color:hsl(201 6.2% 20.5%/var(--tw-bg-opacity))}.dark .data-\[state\=active\]\:dark\:border-green-500[data-state=active]{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .dark\:data-\[disabled\]\:text-graydark-700[data-disabled]{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.dark .data-\[state\=active\]\:dark\:text-accentdark-1100[data-state=active]{--tw-text-opacity:1;color:rgb(217 244 225/var(--tw-text-opacity))}.dark .data-\[state\=checked\]\:dark\:text-white[data-state=checked]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:enabled\:data-\[state\=checked\]\:bg-green-500[data-state=checked]:enabled{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.dark .dark\:enabled\:data-\[state\=checked\]\:ring-green-500[data-state=checked]:enabled{--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity))}.dark .dark\:disabled\:data-\[state\=checked\]\:bg-green-500\/50[data-state=checked]:disabled{background-color:rgba(34,197,94,.5)}.dark .dark\:disabled\:data-\[state\=checked\]\:ring-green-500\/50[data-state=checked]:disabled{--tw-ring-color:rgba(34,197,94,.5)}.dark .group[data-selected=true] .dark\:group-data-\[selected\=true\]\:text-graydark-1000{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .open\:dark\:text-white[data-state=open]{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .dark\:open\:opacity-20[data-state=open]{opacity:.2}.dark .hover\:dark\:border-amber-600:hover{--tw-border-opacity:1;border-color:rgb(217 119 6/var(--tw-border-opacity))}.dark .hover\:dark\:border-graydark-500:hover{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .hover\:dark\:border-green-500:hover{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity))}.dark .hover\:dark\:border-green-600:hover{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .hover\:dark\:border-red-600:hover{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.dark .dark\:hover\:bg-amber-700\/90:hover{background-color:rgba(180,83,9,.9)}.dark .dark\:hover\:bg-graydark-300:hover{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:hover\:bg-green-700\/90:hover{background-color:rgba(21,128,61,.9)}.dark .dark\:hover\:bg-red-700\/90:hover{background-color:rgba(185,28,28,.9)}.dark .hover\:dark\:bg-green-100\/20:hover{background-color:rgba(220,252,231,.2)}.dark .hover\:dark\:text-graydark-1000:hover{--tw-text-opacity:1;color:hsl(206 6% 63%/var(--tw-text-opacity))}.dark .hover\:dark\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark .hover\:dark\:text-white\/50:hover{color:hsla(0,0%,100%,.5)}.dark .enabled\:hover\:dark\:border-amber-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(217 119 6/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-graydark-500:hover:enabled{--tw-border-opacity:1;border-color:hsl(201 6.2% 20.5%/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-graydark-600:hover:enabled{--tw-border-opacity:1;border-color:hsl(203 6% 24.3%/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-green-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.dark .enabled\:hover\:dark\:border-red-600:hover:enabled{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.dark .dark\:enabled\:hover\:bg-amber-700\/90:hover:enabled{background-color:rgba(180,83,9,.9)}.dark .dark\:enabled\:hover\:bg-graydark-300:hover:enabled{--tw-bg-opacity:1;background-color:hsl(198 6.6% 15.8%/var(--tw-bg-opacity))}.dark .dark\:enabled\:hover\:bg-green-700\/90:hover:enabled{background-color:rgba(21,128,61,.9)}.dark .dark\:enabled\:hover\:bg-red-700\/90:hover:enabled{background-color:rgba(185,28,28,.9)}.dark .enabled\:hover\:dark\:text-white:hover:enabled{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}@media (min-width:640px){.sm\:flex{display:flex}.sm\:w-auto{width:auto}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:768px){.md\:block{display:block}.md\:h-\[50px\]{height:50px}.md\:items-start{align-items:flex-start}.md\:gap-3{gap:.75rem}.md\:gap-y-14{row-gap:3.5rem}.md\:px-10{padding-left:2.5rem;padding-right:2.5rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\:text-xs{font-size:.75rem;line-height:1rem}.md\:leading-relaxed{line-height:1.625}}@media (min-width:1024px){.lg\:block{display:block}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-16{padding-left:4rem;padding-right:4rem}}@media (min-width:1280px){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}.\[\&\+\*\]\:\!pl-0+*{padding-left:0!important}.\[\&\:nth-child\(2\)\]\:animation-delay-500:nth-child(2){animation-delay:.5s}.\[\&\:nth-child\(3\)\]\:animation-delay-1000:nth-child(3){animation-delay:1s}.\[\&\>\*\:first-child\]\:rounded-l>:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.\[\&\>\*\:first-child\]\:border-l>:first-child{border-left-width:1px}.\[\&\>\*\:last-child\]\:rounded-r>:last-child{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.\[\&\>\*\:last-child\]\:border-r>:last-child{border-right-width:1px}.\[\&\>\*\]\:rounded-none>*{border-radius:0}.\[\&\>\*\]\:border-l>*{border-left-width:1px}.\[\&\>\*\]\:border-r-0>*{border-right-width:0}.\[\&\>div\]\:\!block>div{display:block!important}.\[\&\>div\]\:\!h-full>div{height:100%!important}.\[\&\>div\]\:flex-1>div{flex:1 1 0%}.\[\&\>div\]\:overflow-hidden>div{overflow:hidden}.\[\&\>p\]\:\!py-0>p{padding-top:0!important;padding-bottom:0!important}.\[\&\>select\:disabled\]\:text-gray-600>select:disabled{--tw-text-opacity:1;color:hsl(207 11.1% 85.9%/var(--tw-text-opacity))}.dark .\[\&\>select\:disabled\]\:dark\:text-graydark-700>select:disabled{--tw-text-opacity:1;color:hsl(207 5.6% 31.6%/var(--tw-text-opacity))}.\[\&\>svg\]\:-mx-0\.5>svg{margin-left:-.125rem;margin-right:-.125rem}.\[\&\>svg\]\:opacity-50>svg{opacity:.5}.hover\:\[\&\>svg\]\:opacity-100>svg:hover{opacity:1}.\[\&\[href\]\]\:border-green-800\/30[href]{border-color:rgba(22,101,52,.3)}.\[\&\[href\]\]\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.\[\&\[href\]\]\:hover\:border-green-800\/50:hover[href]{border-color:rgba(22,101,52,.5)}.\[\&\[href\]\]\:hover\:bg-green-800\/90:hover[href]{background-color:rgba(22,101,52,.9)}.dark .\[\&\[href\]\]\:dark\:border-green-600\/70[href]{border-color:rgba(22,163,74,.7)}.dark .\[\&\[href\]\]\:dark\:bg-green-700[href]{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.dark .dark\:\[\&\[href\]\]\:hover\:bg-green-700\/90:hover[href]{background-color:rgba(21,128,61,.9)}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1eff7769948a8c71-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7a86083759ce0787-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/1fece7a471d60ffe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/94e828afa3939314-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/dcb90225ac4215b0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/21379288e5de0162-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/20a0263cfae743ff-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/a06cddabfd904d07-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/c05280b20c19cff6-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ab3a7057d2c303a3-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e7a1d48695380088-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/7a514966b24fa042-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/f34054e2970d3793-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/ee809f9c8637ac35-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/416dffb3eaba61b5-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/b2613c7882fb9dad-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/00b652cd5acf4d1a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/318cd1ba86719051-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/26570e7eecd756a7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/6ad357e49f846140-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c1dadd6c99c0900a-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/9fb8e434756a520e-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/b83e9714dba3a7b2-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/7729f7b3bc7fa987-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/69dc0d8a22bc572a-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/d752111844abddfa-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/7fe39de114f984a0-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/6c817bbad1cfd130-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/bc7cd6cbdb8771c6-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/1b708ab38c59f94d-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/ed08f0e693ce6a65-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/0be44b380099e057-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f4ebea4f2ece3dbe-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/f7e3cefe6d9fda21-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/26d0ad28b444f0fb-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/d704a8fea67672dc-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/3ce4c920cddd7002-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1027f57de01c0b24-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/23313877d5d6ff1b-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/00417edf5e44282b-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/228a95c965c5f90b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/97c8a55b2cb1421c-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/86d6d32ab6c2e21d-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/07304b90e9b5ca40-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/54f3953b28e50f98-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a40ccebe730e6b34-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/01ec6e01ff4830ae-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/34d8d58b783ee6bb-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/3763ada0a9bb1988-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/787b0654beea4191-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/2c3c1f0838a71cfb-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/47bcda1e7b1ac8be-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/bed76354f405346d-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c70aa70a01eaecff-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/24cfcc12c15b03b9-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/29ffcd3df3f1cb91-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/3cef106cd115e360-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/a0c95037dd5c9387-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/e889cd181219a83f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/6d6d0e4a023f9f33-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/0148c4ca3456ea72-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/4184cf5f191b83db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/28cea0425961ab58-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/b4c759cba7a5f011-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/de555e6bc944c11a-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/791334aa8b2b679f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/a2411df190893074-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/60d74363e715829c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/eb37c9fe4776ea97-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc381c5935034aa5-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f565fad065ab4cf3-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/f9946f06d70a1b5b-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/d1f5f89450ecd78c-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ebcf93a611f94ec0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/ec50b434b597bc61-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/6be22a85bef54f08-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/9491f41002d34397-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/afba6ba6bf9157e8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/be843c5b0882ad66-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/67aea609c6135b3b-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/09b62d668edb05d1-s.woff2) format("woff2");unicode-range:U+0370-03ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/10446295ae7f2657-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/b6ecfd81ed9f83c9-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Sans_829fdc;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/08404bcfb1dae67a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Sans_Fallback_829fdc;src:local("Arial");ascent-override:101.44%;descent-override:27.22%;line-gap-override:0.00%;size-adjust:101.04%}.__className_829fdc{font-family:__IBM_Plex_Sans_829fdc,__IBM_Plex_Sans_Fallback_829fdc}.__variable_829fdc{--font-sans:"__IBM_Plex_Sans_829fdc","__IBM_Plex_Sans_Fallback_829fdc"}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/43f58290d48b3e4f-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/f7b042c81aa9dac9-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/5f52e8aafa6d55e1-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/7c8d3f8a7910b37f-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:100;font-display:swap;src:url(/_next/static/media/c91ca22957702d7a-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e31631a967fe3515-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/e46a860e09e79916-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/2d1700372dfaaa94-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/27834a3ea5568a72-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:200;font-display:swap;src:url(/_next/static/media/ba1ff977fd46651f-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/aa5329918e5352b7-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/3546445dbedfe8e0-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/a329a67c917d0d83-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/32ef35af86a1df18-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:300;font-display:swap;src:url(/_next/static/media/42c2d543c4ca0ff8-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/4acd96e66b7a15d8-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/c00fdcaa534cf51c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9b64de7575b01f6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/e05a5a1d4048d7df-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:400;font-display:swap;src:url(/_next/static/media/a9387c470a117487-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5b5f10d1030076fd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/66b34bbb56a523d8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/62e8d71f5f62d0a9-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/4f5bd398699bdcf0-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:500;font-display:swap;src:url(/_next/static/media/5873ad5359ff35c9-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/a08baca5e17c57be-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b8347de82b1bd9a8-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/99163ae90df46b27-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/b9432a067aca8720-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:600;font-display:swap;src:url(/_next/static/media/c3f479ae50d16e35-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/d4eddeab410cd094-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/1674d377433d7de6-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/f65f080f6ad9aa76-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/7a44530bd17b4a4c-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:italic;font-weight:700;font-display:swap;src:url(/_next/static/media/37e85b36581a02ab-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/1e0eb4a7325b5d14-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/136ae42764b7e0db-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/b17f4305e2f0c22a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/a7f64a09f7737545-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:100;font-display:swap;src:url(/_next/static/media/98bcafdc59ee6d65-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/ce562f20499ad585-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/57699fff66d5761c-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/e490b1ecb6589d48-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/524be5e37a616f9b-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:200;font-display:swap;src:url(/_next/static/media/c690761783507ad4-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/5a7dbca54c2fc4dd-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/d4e99c199dab3055-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/9ae1ac821a4debaf-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/ec1b1cbc512bc43e-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/463cef7d4672ba68-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/ebec2867f40f78ec-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/d607327a37a507c7-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/2e1b830192b7974a-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3aa27b2eb5f698f7-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/3478b6abef19b3b3-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/b6f2eee8808a2bb4-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/bc2003170c651d45-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/d43ef4503e5571d0-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/3281a323710833ec-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/684e5662d94c69e1-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/97b12f7b815cdf76-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/19fc70611c7ee6d5-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/01721b474504e7d6-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/3ccf24bed29cbb82-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:600;font-display:swap;src:url(/_next/static/media/be2416cbb012c256-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/7524e759b2d52ce2-s.woff2) format("woff2");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/83feb047e42e457a-s.woff2) format("woff2");unicode-range:U+0301,U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/40bfb1458eaec497-s.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1ea0-1ef9,U+20ab}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/8ea51a27e153ec43-s.woff2) format("woff2");unicode-range:U+0100-02af,U+0304,U+0308,U+0329,U+1e00-1e9f,U+1ef2-1eff,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:__IBM_Plex_Mono_355ef5;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/035951aefad7b653-s.p.woff2) format("woff2");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+0304,U+0308,U+0329,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:__IBM_Plex_Mono_Fallback_355ef5;src:local("Arial");ascent-override:75.41%;descent-override:20.23%;line-gap-override:0.00%;size-adjust:135.93%}.__className_355ef5{font-family:__IBM_Plex_Mono_355ef5,__IBM_Plex_Mono_Fallback_355ef5}.__variable_355ef5{--font-mono:"__IBM_Plex_Mono_355ef5","__IBM_Plex_Mono_Fallback_355ef5"} \ No newline at end of file diff --git a/renterd/assets/_next/static/media/wordmark.0504c8a6.svg b/renterd/assets/_next/static/media/wordmark.0504c8a6.svg deleted file mode 100644 index 83f34935b..000000000 --- a/renterd/assets/_next/static/media/wordmark.0504c8a6.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/renterd/assets/_next/static/pUK19bnAeEqrmnyAmSqxv/_buildManifest.js b/renterd/assets/_next/static/pUK19bnAeEqrmnyAmSqxv/_buildManifest.js new file mode 100644 index 000000000..2d99a5e96 --- /dev/null +++ b/renterd/assets/_next/static/pUK19bnAeEqrmnyAmSqxv/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":["static/chunks/pages/index-4ab0960f6e90701e.js"],"/_error":["static/chunks/pages/_error-bef7735c65ba8b47.js"],"/config":["static/chunks/pages/config-d8d148c599d1a047.js"],"/contracts":["static/chunks/pages/contracts-640dafa6a2a2d93c.js"],"/files/[[...path]]":["static/chunks/pages/files/[[...path]]-c82a9e65ee4ec6a1.js"],"/hosts":["static/chunks/pages/hosts-30d65c92fad9af92.js"],"/login":["static/chunks/pages/login-bb79acc5d7deabf7.js"],"/node":["static/chunks/pages/node-5ec03621858475c3.js"],"/wallet":["static/chunks/pages/wallet-a150a7ebcb4b7f87.js"],sortedPages:["/","/_app","/_error","/config","/contracts","/files/[[...path]]","/hosts","/login","/node","/wallet"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/renterd/assets/_next/static/LHrQ4UOYBW3OovzpYCNr0/_ssgManifest.js b/renterd/assets/_next/static/pUK19bnAeEqrmnyAmSqxv/_ssgManifest.js similarity index 100% rename from renterd/assets/_next/static/LHrQ4UOYBW3OovzpYCNr0/_ssgManifest.js rename to renterd/assets/_next/static/pUK19bnAeEqrmnyAmSqxv/_ssgManifest.js diff --git a/renterd/assets/config.html b/renterd/assets/config.html index 49958d7a8..e256e2693 100644 --- a/renterd/assets/config.html +++ b/renterd/assets/config.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/contracts.html b/renterd/assets/contracts.html index ec5c2654d..409279dfa 100644 --- a/renterd/assets/contracts.html +++ b/renterd/assets/contracts.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/files/[[...path]].html b/renterd/assets/files/[[...path]].html index 14dbc38af..3874be1ba 100644 --- a/renterd/assets/files/[[...path]].html +++ b/renterd/assets/files/[[...path]].html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/hosts.html b/renterd/assets/hosts.html index 03486b338..18dda09c0 100644 --- a/renterd/assets/hosts.html +++ b/renterd/assets/hosts.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/index.html b/renterd/assets/index.html index 0b8683851..457a3cac2 100644 --- a/renterd/assets/index.html +++ b/renterd/assets/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/login.html b/renterd/assets/login.html index ecba21bd3..7a026a9dd 100644 --- a/renterd/assets/login.html +++ b/renterd/assets/login.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/node.html b/renterd/assets/node.html index 37ee26fbc..5b43683f0 100644 --- a/renterd/assets/node.html +++ b/renterd/assets/node.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/renterd/assets/wallet.html b/renterd/assets/wallet.html index 22cc384b1..d94b2bd23 100644 --- a/renterd/assets/wallet.html +++ b/renterd/assets/wallet.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file