1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[562],{82098:function(e,t,n){n.d(t,{Me:function(){return k},oo:function(){return M},US:function(){return F},RR:function(){return R},cv:function(){return S},uY:function(){return P},dp:function(){return L}});var r=n(61545);function o(e,t,n){let o,{reference:i,floating:l}=e,a=(0,r.Qq)(t),u=(0,r.Wh)(t),s=(0,r.I4)(u),c=(0,r.k3)(t),d="y"===a,f=i.x+i.width/2-l.width/2,p=i.y+i.height/2-l.height/2,m=i[s]/2-l[s]/2;switch(c){case"top":o={x:f,y:i.y-l.height};break;case"bottom":o={x:f,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:p};break;case"left":o={x:i.x-l.width,y:p};break;default:o={x:i.x,y:i.y}}switch((0,r.hp)(t)){case"start":o[u]-=m*(n&&d?-1:1);break;case"end":o[u]+=m*(n&&d?-1:1)}return o}let i=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:a}=n,u=l.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=o(c,r,s),p=r,m={},g=0;for(let n=0;n<u.length;n++){let{name:l,fn:v}=u[n],{x:h,y:y,data:b,reset:w}=await v({x:d,y:f,initialPlacement:r,placement:p,strategy:i,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=h?h:d,f=null!=y?y:f,m={...m,[l]:{...m[l],...b}},w&&g<=50&&(g++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:d,y:f}=o(c,p,s)),n=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:m}};async function l(e,t){var n;void 0===t&&(t={});let{x:o,y:i,platform:l,rects:a,elements:u,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=(0,r.ku)(t,e),g=(0,r.yd)(m),v=u[p?"floating"===f?"reference":"floating":f],h=(0,r.JB)(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(v)))||n?v:v.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(u.floating)),boundary:c,rootBoundary:d,strategy:s})),y="floating"===f?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u.floating)),w=await (null==l.isElement?void 0:l.isElement(b))&&await (null==l.getScale?void 0:l.getScale(b))||{x:1,y:1},x=(0,r.JB)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:y,offsetParent:b,strategy:s}):y);return{top:(h.top-x.top+g.top)/w.y,bottom:(x.bottom-h.bottom+g.bottom)/w.y,left:(h.left-x.left+g.left)/w.x,right:(x.right-h.right+g.right)/w.x}}let a=new Set(["left","top"]);async function u(e,t){let{placement:n,platform:o,elements:i}=e,l=await (null==o.isRTL?void 0:o.isRTL(i.floating)),u=(0,r.k3)(n),s=(0,r.hp)(n),c="y"===(0,r.Qq)(n),d=a.has(u)?-1:1,f=l&&c?-1:1,p=(0,r.ku)(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:v}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&"number"==typeof v&&(g="end"===s?-1*v:v),c?{x:g*f,y:m*d}:{x:m*d,y:g*f}}var s=n(89005);function c(e){let t=(0,s.Dx)(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=(0,s.Re)(e),l=i?e.offsetWidth:n,a=i?e.offsetHeight:o,u=(0,r.NM)(n)!==l||(0,r.NM)(o)!==a;return u&&(n=l,o=a),{width:n,height:o,$:u}}function d(e){return(0,s.kK)(e)?e:e.contextElement}function f(e){let t=d(e);if(!(0,s.Re)(t))return(0,r.ze)(1);let n=t.getBoundingClientRect(),{width:o,height:i,$:l}=c(t),a=(l?(0,r.NM)(n.width):n.width)/o,u=(l?(0,r.NM)(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let p=(0,r.ze)(0);function m(e){let t=(0,s.Jj)(e);return(0,s.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:p}function g(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),a=d(e),u=(0,r.ze)(1);t&&(o?(0,s.kK)(o)&&(u=f(o)):u=f(e));let c=(void 0===(i=n)&&(i=!1),o&&(!i||o===(0,s.Jj)(a))&&i)?m(a):(0,r.ze)(0),p=(l.left+c.x)/u.x,g=(l.top+c.y)/u.y,v=l.width/u.x,h=l.height/u.y;if(a){let e=(0,s.Jj)(a),t=o&&(0,s.kK)(o)?(0,s.Jj)(o):o,n=e,r=(0,s.wK)(n);for(;r&&o&&t!==n;){let e=f(r),t=r.getBoundingClientRect(),o=(0,s.Dx)(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;p*=e.x,g*=e.y,v*=e.x,h*=e.y,p+=i,g+=l,n=(0,s.Jj)(r),r=(0,s.wK)(n)}}return(0,r.JB)({width:v,height:h,x:p,y:g})}function v(e,t){let n=(0,s.Lw)(e).scrollLeft;return t?t.left+n:g((0,s.tF)(e)).left+n}function h(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-v(e,n),y:n.top+t.scrollTop}}let y=new Set(["absolute","fixed"]);function b(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=(0,s.Jj)(e),r=(0,s.tF)(e),o=n.visualVie
1wport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=(0,s.Pf)();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let c=v(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)o=function(e){let t=(0,s.tF)(e),n=(0,s.Lw)(e),o=e.ownerDocument.body,i=(0,r.Fp)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=(0,r.Fp)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),a=-n.scrollLeft+v(e),u=-n.scrollTop;return"rtl"===(0,s.Dx)(o).direction&&(a+=(0,r.Fp)(t.clientWidth,o.clientWidth)-i),{width:i,height:l,x:a,y:u}}((0,s.tF)(e));else if((0,s.kK)(t))o=function(e,t){let n=g(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,l=(0,s.Re)(e)?f(e):(0,r.ze)(1),a=e.clientWidth*l.x;return{width:a,height:e.clientHeight*l.y,x:i*l.x,y:o*l.y}}(t,n);else{let n=m(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.JB)(o)}function w(e){return"static"===(0,s.Dx)(e).position}function x(e,t){if(!(0,s.Re)(e)||"fixed"===(0,s.Dx)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,s.tF)(e)===n&&(n=n.ownerDocument.body),n}function E(e,t){let n=(0,s.Jj)(e);if((0,s.tR)(e))return n;if(!(0,s.Re)(e)){let t=(0,s.Ow)(e);for(;t&&!(0,s.Py)(t);){if((0,s.kK)(t)&&!w(t))return t;t=(0,s.Ow)(t)}return n}let r=x(e,t);for(;r&&(0,s.Ze)(r)&&w(r);)r=x(r,t);return r&&(0,s.Py)(r)&&w(r)&&!(0,s.hT)(r)?n:r||(0,s.gQ)(e)||n}let C=async function(e){let t=this.getOffsetParent||E,n=this.getDimensions,o=await n(e.floating);return{reference:function(e,t,n){let o=(0,s.Re)(t),i=(0,s.tF)(t),l="fixed"===n,a=g(e,!0,l,t),u={scrollLeft:0,scrollTop:0},c=(0,r.ze)(0);if(o||!o&&!l){if(("body"!==(0,s.wk)(t)||(0,s.ao)(i))&&(u=(0,s.Lw)(t)),o){let e=g(t,!0,l,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=v(i))}l&&!o&&i&&(c.x=v(i));let d=!i||o||l?(0,r.ze)(0):h(i,u);return{x:a.left+u.scrollLeft-c.x-d.x,y:a.top+u.scrollTop-c.y-d.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},I={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e,l="fixed"===i,a=(0,s.tF)(o),u=!!t&&(0,s.tR)(t.floating);if(o===a||u&&l)return n;let c={scrollLeft:0,scrollTop:0},d=(0,r.ze)(1),p=(0,r.ze)(0),m=(0,s.Re)(o);if((m||!m&&!l)&&(("body"!==(0,s.wk)(o)||(0,s.ao)(a))&&(c=(0,s.Lw)(o)),(0,s.Re)(o))){let e=g(o);d=f(o),p.x=e.x+o.clientLeft,p.y=e.y+o.clientTop}let v=!a||m||l?(0,r.ze)(0):h(a,c);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+p.x+v.x,y:n.y*d.y-c.scrollTop*d.y+p.y+v.y}},getDocumentElement:s.tF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e,l=[..."clippingAncestors"===n?(0,s.tR)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,s.Kx)(e,[],!1).filter(e=>(0,s.kK)(e)&&"body"!==(0,s.wk)(e)),o=null,i="fixed"===(0,s.Dx)(e).position,l=i?(0,s.Ow)(e):e;for(;(0,s.kK)(l)&&!(0,s.Py)(l);){let t=(0,s.Dx)(l),n=(0,s.hT)(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&y.has(o.position)||(0,s.ao)(l)&&!n&&function e(t,n){let r=(0,s.Ow)(t);return!(r===n||!(0,s.kK)(r)||(0,s.Py)(r))&&("fixed"===(0,s.Dx)(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=(0,s.Ow)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],a=l[0],u=l.reduce((e,n)=>{let o=b(t,n,i);return e.top=(0,r.Fp)(o.top,e.top),e.right=(0,r.VV)(o.right,e.right),e.bottom=(0,r.VV)(o.bottom,e.bottom),e.left=(0,r.Fp)(o.left,e.left),e},b(t,a,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:E,getElementRects:C,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=c(e);return{width:t,height:n}},getScale:f,isElement:s.kK,isRTL:function(e){return"rtl"===(0,s.Dx)(e).direction}};function T(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function k(e,t,n,o){let i;void 0===o&&(o={});let{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,p=d(e),m=l||a?[...p?(0,s.Kx)(p):[],...(0,s.Kx)(t)]:[];
1m.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let v=p&&c?function(e,t){let n,o=null,i=(0,s.tF)(e);function l(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function a(u,s){void 0===u&&(u=!1),void 0===s&&(s=1),l();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=c;if(u||t(),!p||!m)return;let g=(0,r.GW)(f),v=(0,r.GW)(i.clientWidth-(d+p)),h={rootMargin:-g+"px "+-v+"px "+-(0,r.GW)(i.clientHeight-(f+m))+"px "+-(0,r.GW)(d)+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,s))||1},y=!0;function b(t){let r=t[0].intersectionRatio;if(r!==s){if(!y)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||T(c,e.getBoundingClientRect())||a(),y=!1}try{o=new IntersectionObserver(b,{...h,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(b,h)}o.observe(e)}(!0),l}(p,n):null,h=-1,y=null;u&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!f&&y.observe(p),y.observe(t));let b=f?g(e):null;return f&&function t(){let r=g(e);b&&!T(b,r)&&n(),b=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{l&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==v||v(),null==(e=y)||e.disconnect(),y=null,f&&cancelAnimationFrame(i)}}let F=l,S=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,s=await u(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}},P=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:i}=t,{mainAxis:a=!0,crossAxis:u=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,r.ku)(e,t),d={x:n,y:o},f=await l(t,c),p=(0,r.Qq)((0,r.k3)(i)),m=(0,r.Rn)(p),g=d[m],v=d[p];if(a){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=g+f[e],o=g-f[t];g=(0,r.uZ)(n,g,o)}
1if(u){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=v+f[e],o=v-f[t];v=(0,r.uZ)(n,v,o)}let h=s.fn({...t,[m]:g,[p]:v});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:a,[p]:u}}}}}},R=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o,i,a,u;let{placement:s,middlewareData:c,rects:d,initialPlacement:f,platform:p,elements:m}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:h,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,...x}=(0,r.ku)(e,t);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};let E=(0,r.k3)(s),C=(0,r.Qq)(f),I=(0,r.k3)(f)===f,T=await (null==p.isRTL?void 0:p.isRTL(m.floating)),k=h||(I||!w?[(0,r.pw)(f)]:(0,r.gy)(f)),F="none"!==b;!h&&F&&k.push(...(0,r.KX)(f,w,b,T));let S=[f,...k],P=await l(t,x),R=[],L=(null==(o=c.flip)?void 0:o.overflows)||[];if(g&&R.push(P[E]),v){let e=(0,r.i8)(s,d,T);R.push(P[e[0]],P[e[1]])}if(L=[...L,{placement:s,overflows:R}],!R.every(e=>e<=0)){let e=((null==(i=c.flip)?void 0:i.index)||0)+1,t=S[e];if(t&&(!("alignment"===v&&C!==(0,r.Qq)(t))||L.every(e=>(0,r.Qq)(e.placement)!==C||e.overflows[0]>0)))return{data:{index:e,overflows:L},reset:{placement:t}};let n=null==(a=L.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(y){case"bestFit":{let e=null==(u=L.filter(e=>{if(F){let t=(0,r.Qq)(e.placement);return t===C||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:u[0];e&&(n=e);break}case"initialPlacement":n=f}if(s!==n)return{reset:{placement:n}}}return{}}}},L=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;let i,a;let{placement:u,rects:s,platform:c,elements:d}=t,{apply:f=()=>{},...p}=(0,r.ku)(e,t),m=await l(t,p),g=(0,r.k3)(u),v=(0,r.hp)(u),h="y"===(0,r.Qq)(u),{width:y,height:b}=s.floating;"top"===g||"bottom"===g?(i=g,a=v===(await (null==c.isRTL?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(a=g,i="end"===v?"top":"bottom");let w=b-m.top-m.bottom,x=y-m.left-m.right,E=(0,r.VV)(b-m[i],w),C=(0,r.VV)(y-m[a],x),I=!t.middlewareData.shift,T=E,k=C;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=x),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(T=w),I&&!v){let e=(0,r.Fp)(m.left,0),t=(0,r.Fp)(m.right,0),n=(0,r.Fp)(m.top,0),o=(0,r.Fp)(m.bottom,0);h?k=y-2*(0!==e||0!==t?e+t:(0,r.Fp)(m.left,m.right)):T=b-2*(0!==n||0!==o?n+o:(0,r.Fp)(m.top,m.bottom))}await f({...t,availableWidth:k,availableHeight:T});let F=await c.getDimensions(d.floating);return y!==F.width||b!==F.height?{reset:{rects:!0}}:{}}}},M=(e,t,n)=>{let r=new Map,o={platform:I,...n},l={...o.platform,_c:r};return i(e,t,{...o,platform:l})}},43533:function(e,t,n){n.d(t,{RR:function(){return m},YF:function(){return d},cv:function(){return f},dp:function(){return g},uY:function(){return p}});var r=n(82098),o=n(7653),i=n(3458),l="undefined"!=typeof document?o.useLayoutEffect:function(){};function a(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function u(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,t){let n=u(e);return Math.round(t*n)/n}function c(e){let t=o.useRef(e);return l(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:m}={},transform:g=!0,whileElementsMounted:v,open:h}=e,[y,b]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,x]=o.useState(d);a(w,d)||x(d);let[E,C]=o.useState(null),[I,T]=o.useState(null),k=o.useCallback(e=>{e!==R.current&&(R.current=e,C(e))},[]),F=o.useCallback(e=>
1{e!==L.current&&(L.current=e,T(e))},[]),S=p||E,P=m||I,R=o.useRef(null),L=o.useRef(null),M=o.useRef(y),D=null!=v,N=c(v),A=c(f),O=c(h),z=o.useCallback(()=>{if(!R.current||!L.current)return;let e={placement:t,strategy:n,middleware:w};A.current&&(e.platform=A.current),(0,r.oo)(R.current,L.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};j.current&&!a(M.current,t)&&(M.current=t,i.flushSync(()=>{b(t)}))})},[w,t,n,A,O]);l(()=>{!1===h&&M.current.isPositioned&&(M.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[h]);let j=o.useRef(!1);l(()=>(j.current=!0,()=>{j.current=!1}),[]),l(()=>{if(S&&(R.current=S),P&&(L.current=P),S&&P){if(N.current)return N.current(S,P,z);z()}},[S,P,z,N,D]);let B=o.useMemo(()=>({reference:R,floating:L,setReference:k,setFloating:F}),[k,F]),H=o.useMemo(()=>({reference:S,floating:P}),[S,P]),V=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!H.floating)return e;let t=s(H.floating,y.x),r=s(H.floating,y.y);return g?{...e,transform:"translate("+t+"px, "+r+"px)",...u(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,g,H.floating,y.x,y.y]);return o.useMemo(()=>({...y,update:z,refs:B,elements:H,floatingStyles:V}),[y,z,B,H,V])}let f=(e,t)=>({...(0,r.cv)(e),options:[e,t]}),p=(e,t)=>({...(0,r.uY)(e),options:[e,t]}),m=(e,t)=>({...(0,r.RR)(e),options:[e,t]}),g=(e,t)=>({...(0,r.dp)(e),options:[e,t]})},16264:function(e,t,n){n.d(t,{ij:function(){return r}});function r(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}},89005:function(e,t,n){function r(){return"undefined"!=typeof window}function o(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function l(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function u(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function s(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function c(e){return!!r()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}n.d(t,{Dx:function(){return T},Jj:function(){return i},Kx:function(){return function e(t,n,r){var o;void 0===n&&(n=[]),void 0===r&&(r=!0);let l=function e(t){let n=F(t);return I(n)?t.ownerDocument?t.ownerDocument.body:t.body:s(n)&&f(n)?n:e(n)}(t),a=l===(null==(o=t.ownerDocument)?void 0:o.body),u=i(l);if(a){let t=S(u);return n.concat(u,u.visualViewport||[],f(l)?l:[],t&&r?e(t):[])}return n.concat(l,e(l,[],r))}},Lw:function(){return k},Ow:function(){return F},Pf:function(){return E},Py:function(){return I},Re:function(){return s},Ze:function(){return m},ao:function(){return f},gQ:function(){return x},hT:function(){return w},kK:function(){return u},tF:function(){return l},tR:function(){return v},wK:function(){return S},wk:function(){return o}});let d=new Set(["inline","contents"]);function f(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=T(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!d.has(o)}let p=new Set(["table","td","th"]);function m(e){return p.has(o(e))}let g=[":popover-open",":modal"];function v(e){return g.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let h=["transform","translate","scale","rotate","perspective"],y=["transform","translate","scale","rotate","perspective","filter"],b=["paint","layout","strict","content"];function w(e){let t=E(),n=u(e)?T(e):e;return h.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||y.some(e=>(n.willChange||"").includes(e))||b.some(e=>(n.contain||"").includes(e))}function x(e){let t=F(e);for(;s(t)&&!I(t);){if(w(t))return t;if(v(t))break;t=F(t)}return null}function E(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let C=new Set(["html","body","#document"]);function I(e){return C.has(o(e))}function T(e){return i(e).getComputedStyle(e)}function k(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function F(e){if("html"===o(e))return e;let t=e.assignedSlot||e.parentNode||c(e)&&e.host||l(e);return c(t)?t.host:t}function S(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},61545:function(e,t,n){n.d(t,{Fp:function(){return o},GW:function(){return l},I4:function(){return g},JB:function(){return P},KX:function(){return k},NM:function(){return i},Qq:function(){return h},Rn:function(){return m},VV:function(){return r},Wh:function(){return y},gy:function(){return w},hp:function(){return p},i8:function(){return b},k3:function(){return f},ku:function(){return d},pw:function(){return F},uZ:function(){return c},yd:function(){return S},ze:function(){return a}});let r=Math.min,o=Math.max,i=Math.round,l=Math.floor,a=e=>({x:e,y:e}
1),u={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function c(e,t,n){return o(e,r(t,n))}function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}let v=new Set(["top","bottom"]);function h(e){return v.has(f(e))?"y":"x"}function y(e){return m(h(e))}function b(e,t,n){void 0===n&&(n=!1);let r=p(e),o=y(e),i=g(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=F(l)),[l,F(l)]}function w(e){let t=F(e);return[x(e),t,x(t)]}function x(e){return e.replace(/start|end/g,e=>s[e])}let E=["left","right"],C=["right","left"],I=["top","bottom"],T=["bottom","top"];function k(e,t,n,r){let o=p(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?C:E;return t?E:C;case"left":case"right":return t?I:T;default:return[]}}(f(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(x)))),i}function F(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function S(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function P(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}},13449:function(e,t,n){var r=n(7653);let o=r.forwardRef(function(e,t){let{title:n,titleId:o,...i}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":o},i),n?r.createElement("title",{id:o},n):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))});t.Z=o},52383:function(e,t,n){n.d(t,{Q:function(){return o}});var r=n(31887);function o(e){let t=e.filter(e=>!r.e.has(e.id));return r.B.concat(t)}},99492:function(e,t,n){n.d(t,{Cr:function(){return l},LH:function(){return a},R1:function(){return i}});var r=n(56488),o=n(1666);function i(e){return e?`${e.slice(0,5)}â¦${e.slice(-4)}`:""}function l({wei:e,precision:t=3}){return parseFloat((0,r.d)(e)).toFixed(t).replace(/0+$/,"").replace(/\.$/,"")}function a({amount:e,decimals:t}){return(0,o.b)(BigInt(e),t)}},93457:function(e,t,n){let r,o,i,l,a,u;n.d(t,{B:function(){return t1},g:function(){return tK}});var s=n(39596),c=n(91361),d=n(5686),f=n(52706),p=n(55244),m=n(94007),g=n(69589),v=n(16748),h=n(40271),y=n(64894),b=n(32940),w=n(38820),x=n(46587),E=n(39401);let C={[d.R.id]:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",[f.F.id]:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",[p.v.id]:"0x0b2c639c533813f4aa9d7837caf62653d097ff85",[m.O.id]:"0x5fd84259d66Cd46123540766Be93DFE6D43130D7",[g.y.id]:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",[v.v.id]:"0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582",[h.u.id]:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",[y.L.id]:"0x036CbD53842c5426634e7929541eC2318f3dCF7e",[b.p.id]:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",[w.c.id]:"0x5425890298aed601595a70ab815c96711a31bc65",[x.y.id]:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",[E.Z.id]:"0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"};var I=n(99492),T=n(13094),k=n(8360),F=n(27573),S=n(7653),P=n(81781),R=n(47179),L=n(75593),M=n(82888),D=n(92526),N=n(71818),A=n(96448),O=n(462),z=n(57725),j=n(37450),B=n(91628),H=n(86017),V=n(44965),W=n(47134),K=n(38204);let $="undefined"!=typeof document?S.useLayoutEffect:()=>{};function _(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function G(e){let t=(0,S.useRef)({isFocused:!1,observer:null});return $(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,S.useCallback)(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target;r.addEventListener("focusout",n=>{if(t.current.isFocused=!1,r.disabled){let t=_(n);null==e||e(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();
1let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}function Q(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function U(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function q(e){let t=null;return()=>(null==t&&(t=e()),t)}let J=q(function(){return U(/^Mac/i)}),Y=q(function(){return U(/^iPhone/i)}),Z=q(function(){return U(/^iPad/i)||J()&&navigator.maxTouchPoints>1}),X=q(function(){return Y()||Z()});q(function(){return J()||X()});let ee=q(function(){return Q(/AppleWebKit/i)&&!et()}),et=q(function(){return Q(/Chrome/i)}),en=q(function(){return Q(/Android/i)}),er=q(function(){return Q(/Firefox/i)}),eo=null;function ei(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:l,altKey:a,shiftKey:u}=t;er()&&(null===(o=window.event)||void 0===o?void 0:null===(r=o.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(J()?i=!0:l=!0);let s=ee()&&J()&&!Z()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:l,altKey:a,shiftKey:u}):new MouseEvent("click",{metaKey:i,ctrlKey:l,altKey:a,shiftKey:u,detail:1,bubbles:!0,cancelable:!0});ei.isOpening=n,function(e){if(function(){if(null==eo){eo=!1;try{document.createElement("div").focus({get preventScroll(){return eo=!0,!0}})}catch{}}return eo}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}(e),e.dispatchEvent(s),ei.isOpening=!1}ei.isOpening=!1;let el=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},ea=e=>e&&"window"in e&&e.window===e?e:el(e).defaultView||window,eu=null,es=new Set,ec=new Map,ed=!1,ef=!1,ep={Tab:!0,Escape:!0};function em(e,t){for(let n of es)n(e,t)}function eg(e){ed=!0,ei.isOpening||e.metaKey||!J()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(eu="keyboard",em("keyboard",e))}function ev(e){eu="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(ed=!0,em("pointer",e))}function eh(e){ei.isOpening||(""!==e.pointerType||!e.isTrusted)&&(en()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(ed=!0,eu="virtual")}function ey(e){e.target!==window&&e.target!==document&&e.isTrusted&&(ed||ef||(eu="virtual",em("virtual",e)),ed=!1,ef=!1)}function eb(){ed=!1,ef=!0}function ew(e){if("undefined"==typeof window||"undefined"==typeof document||ec.get(ea(e)))return;let t=ea(e),n=el(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ed=!0,r.apply(this,arguments)},n.addEventListener("keydown",eg,!0),n.addEventListener("keyup",eg,!0),n.addEventListener("click",eh,!0),t.addEventListener("focus",ey,!0),t.addEventListener("blur",eb,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",ev,!0),n.addEventListener("pointermove",ev,!0),n.addEventListener("pointerup",ev,!0)),t.addEventListener("beforeunload",()=>{ex(e)},{once:!0}),ec.set(t,{focus:r})}let ex=(e,t)=>{let n=ea(e),r=el(e);t&&r.removeEventListener("DOMContentLoaded",t),ec.has(n)&&(n.HTMLElement.prototype.focus=ec.get(n).focus,r.removeEventListener("keydown",eg,!0),r.removeEventListener("keyup",eg,!0),r.removeEventListener("click",eh,!0),n.removeEventListener("focus",ey,!0),n.removeEventListener("blur",eb,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",ev,!0),r.removeEventListener("pointermove",ev,!0),r.removeEventListener("pointerup",ev,!0)),ec.delete(n))};function eE(){return"pointer"!==eu}"undefined"!=typeof document&&function(e){let t;let n=el(void 0);"loading"!==n.readyState?ew(void 0):(t=()=>{ew(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>ex(e,t)}();let eC=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function eI(e,t){return!!t&&!!e&&e.contains(t)}let eT=(e=document)=>e.activeElement;function ek(){let e=(0,S.useRef)(new Map),t=(0,S.useCallback)((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)},[]),n=(0,S.useCallback)((t,n,r,o)=>{var i;let l=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,l,o),e.current.delete(r)},[]),r=(0,S.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,S.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}let eF=!1,eS=0;function eP(e){"touch"===e.pointerType&&(eF=!0,setTimeout(()=>{eF=!1},50))}function eR(){if("undefined"!=typeof document)return 0===eS&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",eP),eS++,()=>{--eS>0||"undefined"==typeof PointerEvent||document.removeEventListener("pointerup",eP)}}var eL=n(3458),eM=n(4953),eD=n(56840),eN=n(1786),eA=n(52820),eO=n(16166);function ez(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}var ej=((r=ej||{})[r.Left=0]="Left",r[r.Right=2]="Right",r),eB=n(39722);function eH(e){let t=e.parentElement,n=null;for(;t&&!eB.zO(t);)eB.CD(t)&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(eB.CD(t))return!1;t=t.previousElementSibling}return!0}(n))&&r}
1var eV=n(5092),eW=n(3812),eK=n(4903),e$=n(97340),e_=n(57136),eG=((o=eG||{})[o.Ignore=0]="Ignore",o[o.Select=1]="Select",o[o.Close=2]="Close",o);let eQ={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};var eU=n(43267),eq=n(80107),eJ=n(39858);let eY=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function eZ(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!eB.Re(o))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let l=i?null!=(n=o.innerText)?n:"":r;return eY.test(l)&&(l=l.replace(eY,"")),l}function eX(e){return[e.screenX,e.screenY]}var e0=n(85550),e1=n(49480),e2=n(43533),e5=n(82098);let e6=(0,S.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});e6.displayName="FloatingContext";let e3=(0,S.createContext)(null);function e8(e){var t,n,r;let o,i,l,{children:a,enabled:u=!0}=e,[s,c]=(0,S.useState)(null),[d,f]=(0,S.useState)(0),p=(0,S.useRef)(null),[m,g]=(0,S.useState)(null);(0,eO.e)(()=>{if(!m)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(m).maxHeight,t=parseFloat(e);if(isNaN(t))return;let n=parseInt(e);isNaN(n)||t!==n&&(m.style.maxHeight="".concat(Math.ceil(t),"px"))});return e.observe(m,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[m]);let v=u&&null!==s&&null!==m,{to:h="bottom",gap:y=0,offset:b=0,padding:w=0,inner:x}=(o=e4(null!=(t=null==s?void 0:s.gap)?t:"var(--anchor-gap, 0)",m),i=e4(null!=(n=null==s?void 0:s.offset)?n:"var(--anchor-offset, 0)",m),l=e4(null!=(r=null==s?void 0:s.padding)?r:"var(--anchor-padding, 0)",m),{...s,gap:o,offset:i,padding:l}),[E,C="center"]=h.split(" ");(0,eO.e)(()=>{v&&f(0)},[v]);let{refs:I,floatingStyles:T,context:k}=(0,e1.YF)({open:v,placement:"selection"===E?"center"===C?"bottom":"bottom-".concat(C):"center"===C?"".concat(E):"".concat(E,"-").concat(C),strategy:"absolute",transform:!1,middleware:[(0,e2.cv)({mainAxis:"selection"===E?0:y,crossAxis:b}),(0,e2.uY)({padding:w}),"selection"!==E&&(0,e2.RR)({padding:w}),"selection"===E&&x?(0,e1.aN)({...x,padding:w,overflowRef:p,offset:d,minItemsVisible:4,referenceOverflowThreshold:w,onFallbackChange(e){var t,n;if(!e)return;let r=k.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(4,r.childElementCount),l=0,a=0;for(let e of null!=(n=null==(t=k.elements.floating)?void 0:t.childNodes)?n:[])if(eB.Re(e)){let t=e.offsetTop,n=t+e.clientHeight+o,u=r.scrollTop,s=u+r.clientHeight;if(t>=u&&n<=s)i--;else{a=Math.max(0,Math.min(n,s)-Math.max(t,u)),l=e.clientHeight;break}}i>=1&&f(e=>{let t=l*i-a+o;return e>=t?e:t})}}):null,(0,e2.dp)({padding:w,apply(e){let{availableWidth:t,availableHeight:n,elements:r}=e;Object.assign(r.floating.style,{overflow:"auto",maxWidth:"".concat(t,"px"),maxHeight:"min(var(--anchor-max-height, 100vh), ".concat(n,"px)")})}})].filter(Boolean),whileElementsMounted:e5.Me}),[F=E,P=C]=k.placement.split("-");"selection"===E&&(F="selection");let R=(0,S.useMemo)(()=>({anchor:[F,P].filter(Boolean).join(" ")}),[F,P]),L=(0,e1.Rz)(k,{overflowRef:p,onChange:f}),{getReferenceProps:M,getFloatingProps:D}=(0,e1.NI)([L]),N=(0,eN.z)(e=>{g(e),I.setFloating(e)});return S.createElement(e3.Provider,{value:c},S.createElement(e6.Provider,{value:{setFloating:N,setReference:I.setReference,styles:T,getReferenceProps:M,getFloatingProps:D,slot:R}},a))}function e4(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=(0,eD.G)(),o=(0,eN.z)((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let o=e9(e,t);return[o,n=>{let i=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let r=n[1].slice(0,t).trim(),o=n[1].slice(t+1).trim();return o?[r,...e(o)]:[r]}return[]}(e);{let l=i.map(e=>window.getComputedStyle(t).getPropertyValue(e));r.requestAnimationFrame(function a(){r.nextFrame(a);let u=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(l[e]!==r){l[e]=r,u=!0;break}}if(!u)return;let s=e9(e,t);o!==s&&(n(s),o=s)})}return r.dispose}]}return[n,null]}),i=(0,S.useMemo)(()=>o(e,t)[0],[e,t]),[l=i,a]=(0,S.useState)();return(0,eO.e)(()=>{let[n,r]=o(e,t);if(a(n),r)return r(a)},[e,t]),l}function e9(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}e3.displayName="PlacementContext";var e7=n(16378),te=n(14622),tt=n(96902),tn=((i=tn||{})[i.First=0]="First",i[i.Previous=1]="Previous",i[i.Next=2]="Next",i[i.Last=3]="Last",i[i.Specific=4]="Specific",i[i.Nothing=5]="Nothing",i);function tr(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===o&&(o=n.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw Error("Unexpected object: "+e)}(e)}}var to=n(48498),ti=n(98614),tl=n(4663),ta=n(63354),tu=n(96863),ts=n(50190);let tc=(0,S.createContext)(void 0),td=(0,S.createContext)(null);function tf(){let e=(0,S.useContext)(td);if(null===e){let e=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,tf),e}return e}function tp(){var e,t;let n,{inherit:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n=null!=(t=null==(e=(0,S.useContext)(td))?void 0:e.value)?t:void 0,[i,l]=(0,S.useState)([]),a=r?[o,...i].filter(
1Boolean):i;return[a.length>0?a.join(" "):void 0,(0,S.useMemo)(()=>function(e){let t=(0,eN.z)(e=>(l(t=>[...t,e]),()=>l(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),n=(0,S.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return S.createElement(td.Provider,{value:n},e.children)},[l])]}td.displayName="LabelContext",Object.assign((0,tl.yV)(function(e,t){var n;let r=(0,S.useId)(),o=tf(),i=(0,S.useContext)(tc),l=(0,ts.B)(),{id:a="headlessui-label-".concat(r),htmlFor:u=null!=i?i:null==(n=o.props)?void 0:n.htmlFor,passive:s=!1,...c}=e,d=(0,eJ.T)(t);(0,eO.e)(()=>o.register(a),[a,o.register]);let f=(0,eN.z)(e=>{let t=e.currentTarget;if(!(e.target!==e.currentTarget&&eB.jF(e.target))&&(eB.dz(t)&&e.preventDefault(),o.props&&"onClick"in o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),eB.dz(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(eB.LL(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),p=(0,eq.x)({...o.slot,disabled:l||!1}),m={ref:d,...o.props,id:a,htmlFor:u,onClick:f};return s&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in c&&delete c.onClick),(0,tl.L6)()({ourProps:m,theirProps:c,slot:p,defaultTag:u?"label":"div",name:o.name||"Label"})}),{});var tm=n(85490),tg=n(77535);let tv={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function th(e){let t=e.getBoundingClientRect();return"".concat(t.x,",").concat(t.y)}var ty=Object.defineProperty,tb=(e,t,n)=>t in e?ty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tw=(e,t,n)=>(tb(e,"symbol"!=typeof t?t+"":t,n),n),tx=((l=tx||{})[l.Open=0]="Open",l[l.Closed=1]="Closed",l),tE=((a=tE||{})[a.Pointer=0]="Pointer",a[a.Other=1]="Other",a),tC=((u=tC||{})[u.OpenMenu=0]="OpenMenu",u[u.CloseMenu=1]="CloseMenu",u[u.GoToItem=2]="GoToItem",u[u.Search=3]="Search",u[u.ClearSearch=4]="ClearSearch",u[u.RegisterItems=5]="RegisterItems",u[u.UnregisterItems=6]="UnregisterItems",u[u.SetButtonElement=7]="SetButtonElement",u[u.SetItemsElement=8]="SetItemsElement",u[u.SortItems=9]="SortItems",u[u.MarkButtonAsMoved=10]="MarkButtonAsMoved",u);function tI(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=(0,to.z2)(t(e.items.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{items:r,activeItemIndex:o}}let tT={1(e){if(1===e.menuState)return e;let t=e.buttonElement?tv.Tracked(th(e.buttonElement)):e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:tn.Nothing},menuState:1,buttonPositionState:t}},0:(e,t)=>0===e.menuState?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:tv.Idle},2:(e,t)=>{var n,r,o,i,l;if(1===e.menuState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===tn.Nothing)return{...a,activeItemIndex:null};if(t.focus===tn.Specific)return{...a,activeItemIndex:e.items.findIndex(e=>e.id===t.id)};if(t.focus===tn.Previous){let n=e.activeItemIndex;if(null!==n){let i=e.items[n].dataRef.current.domRef,l=tr(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.items[l].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||(null==(o=t.current)?void 0:o.previousElementSibling)===null)return{...a,activeItemIndex:l}}}}else if(t.focus===tn.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,o=tr(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.items[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...a,activeItemIndex:o}}}}let u=tI(e),s=tr(t,{resolveItems:()=>u.items,resolveActiveIndex:()=>u.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...u,activeItemIndex:s}},3:(e,t)=>
1{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled}),i=o?e.items.indexOf(o):-1;return -1===i||i===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:i,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=e.items.concat(t.items.map(e=>e)),r=e.activeItemIndex;return e.pendingFocus.focus!==tn.Nothing&&(r=tr(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),{...e,items:n,activeItemIndex:r,pendingFocus:{focus:tn.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let n=e.items,r=[],o=new Set(t.items);for(let[e,t]of n.entries())if(o.has(t.id)&&(r.push(e),o.delete(t.id),0===o.size))break;if(r.length>0)for(let e of(n=n.slice(),r.reverse()))n.splice(e,1);return{...e,items:n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...tI(e),pendingShouldSort:!1}:e,10:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:tv.Moved}};class tk extends tg.J{static new(e){let{id:t,__demoMode:n=!1}=e;return new tk({id:t,__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:tn.Nothing},buttonPositionState:tv.Idle})}reduce(e,t){return(0,ti.E)(t.type,tT,e,t)}constructor(e){super(e),tw(this,"actions",{registerItem:(0,tg.dC)(()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:5,items:e.splice(0)}))]}),unregisterItem:(0,tg.dC)(()=>{let e=[];return[t=>e.push(t),()=>this.send({type:6,items:e.splice(0)})]})}),tw(this,"selectors",{activeDescendantId(e){var t;let n=e.activeItemIndex,r=e.items;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeItemIndex,o=e.items;return null!==r&&(null==(n=o[r])?void 0:n.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.menuState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let e=this.state.id,t=te.n.get(null);this.disposables.add(t.on(te.M.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.menuState||this.send({type:1})})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add(function(e,t,n){let r=(0,eA.k)();if("Tracked"===t.kind){let o=function(){i!==th(e)&&(r.dispose(),n())},{position:i}=t,l=new ResizeObserver(o);l.observe(e),r.add(()=>l.disconnect()),r.addEventListener(window,"scroll",o,{passive:!0}),r.addEventListener(window,"resize",o)}return()=>r.dispose()}(t.buttonElement,t.buttonPositionState,()=>{this.send({type:10})})))})})}}var tF=n(12059);let tS=(0,S.createContext)(null);function tP(e){let t=(0,S.useContext)(tS);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Menu /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,tR),t}return t}function tR(e){let{id:t,__demoMode:n=!1}=e,r=(0,S.useMemo)(()=>tk.new({id:t,__demoMode:n}),[]);return(0,tF.L)(()=>r.dispose()),r}let tL=S.Fragment,tM=tl.VN.RenderStrategy|tl.VN.Static,tD=S.Fragment,tN=(0,tl.yV)(function(e,t){let n=(0,S.useId)(),{__demoMode:r=!1,...o}=e,i=tR({id:n,__demoMode:r}),[l,a,u]=(0,tt.M)(i,e=>[e.menuState,e.itemsElement,e.buttonElement]),s=(0,eJ.T)(t),c=te.n.get(null),d=(0,tt.M)(c,(0,S.useCallback)(e=>c.selectors.isTop(e,n),[c,n]));(0,eK.O)(d,[u,a],(e,t)=>{var n;i.send({type:tC.CloseMenu}),(0,to.sP)(t,to.tJ.Loose)||(e.preventDefault(),null==(n=i.state.buttonElement)||n.focus())});let f=(0,eN.z)(()=>{i.send({type:tC.CloseMenu})}),p=(0,eq.x)({open:l===tx.Open,close:f}),m=(0,tl.L6)();return S.createElement(e8,null,S.createElement(tS.Provider,{value:i},S.createElement(e7.up,{value:(0,ti.E)(l,{[tx.Open]:e7.ZM.Open,[tx.Closed]:e7.ZM.Closed})},m({ourProps:{ref:s},theirProps:o,slot:p,defaultTag:tL,name:"Menu"}))))}),tA=(0,tl.yV)(function(e,t){var n,r;let o,i=tP("Menu.Button"),l=(0,S.useId)(),{id:a="headlessui-menu-button-".concat(l),disabled:u=!1,autoFocus:s=!1,...c}=e,d=(0,S.useRef)(null),f=(0,S.useContext)(e6).getReferenceProps,p=(0,eJ.T)(t,d,(0,S.useContext)(e6).setReference,(0,eN.z)(e=>i.send({type:tC.SetButtonElement,element:e}))),m=(0,eN.z)(e=>{switch(e.key){case tu.R.Space:case tu.R.Enter:case tu.R.ArrowDown:e.preventDefault(),e.stopPropagation(),i.send({type:tC.OpenMenu,focus:{focus:tn.First}});break;case tu.R.ArrowUp:e.preventDefault(),e.stopPropagation(),i.send({type:tC.OpenMenu,focus:{focus:tn.Last}})}}),g=(0,eN.z)(e=>{e.key===tu.R.Space&&e.preventDefault()}),[v,h,y]=(0,tt.M)(i,e=>[e.menuState,e.buttonElement,e.itemsElement]);!function(e,t){let{trigger:n,action:r,close:o,select:i}=t,l=(0,S.useRef)(null),a=(0,S.useRef)(null),u=(0,S.useRef)(null);(0,e_.I)(e&&null!==n,"pointerdown",e=>{eB.UG(null==e?void 0:e.target)&&null!=n&&n.contains(e.target)&&(a.current=e.x,u.current=e.y,l.current=e.timeStamp)}),(0,e_.I)(e&&null!==n,"pointerup",e=>{var t,n;let s=l.current;if(null===s||(l.current=null,!eB.sP(e.target))||5>Math.abs(e.x-(null!=(t=a.current)?t:e.x))&&5>
1Math.abs(e.y-(null!=(n=u.current)?n:e.y)))return;let c=r(e);switch(c.kind){case 0:return;case 1:e.timeStamp-s>200&&(i(c.target),o());break;case 2:o()}},{capture:!0})}(v===tx.Open,{trigger:h,action:(0,S.useCallback)(e=>{if(null!=h&&h.contains(e.target))return eQ.Ignore;let t=e.target.closest('[role="menuitem"]:not([data-disabled])');return eB.Re(t)?eQ.Select(t):null!=y&&y.contains(e.target)?eQ.Ignore:eQ.Close},[h,y]),close:(0,S.useCallback)(()=>i.send({type:tC.CloseMenu}),[]),select:(0,S.useCallback)(e=>e.click(),[])});let b=(n=e=>{var t;u||(v===tx.Open?((0,eL.flushSync)(()=>i.send({type:tC.CloseMenu})),null==(t=d.current)||t.focus({preventScroll:!0})):(e.preventDefault(),i.send({type:tC.OpenMenu,focus:{focus:tn.Nothing},trigger:tE.Pointer})))},o=(0,S.useRef)(null),{onPointerDown:(0,eN.z)(e=>{o.current=e.pointerType,eH(e.currentTarget)||"mouse"!==e.pointerType||e.button!==ej.Left||(e.preventDefault(),n(e))}),onClick:(0,eN.z)(e=>{"mouse"!==o.current&&(eH(e.currentTarget)||n(e))})}),{isFocusVisible:w,focusProps:x}=function(e={}){var t,n,r;let{autoFocus:o=!1,isTextInput:i,within:l}=e,a=(0,S.useRef)({isFocused:!1,isFocusVisible:o||eE()}),[u,s]=(0,S.useState)(!1),[c,d]=(0,S.useState)(()=>a.current.isFocused&&a.current.isFocusVisible),f=(0,S.useCallback)(()=>d(a.current.isFocused&&a.current.isFocusVisible),[]),p=(0,S.useCallback)(e=>{a.current.isFocused=e,s(e),f()},[f]);t=e=>{a.current.isFocusVisible=e,f()},n=[],r={isTextInput:i},ew(),(0,S.useEffect)(()=>{let e=(e,n)=>{(function(e,t,n){let r=el(null==n?void 0:n.target),o="undefined"!=typeof window?ea(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?ea(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l="undefined"!=typeof window?ea(null==n?void 0:n.target).HTMLElement:HTMLElement,a="undefined"!=typeof window?ea(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof o&&!eC.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof l&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof a&&!ep[n.key])})(!!(null==r?void 0:r.isTextInput),e,n)&&t(eE())};return es.add(e),()=>{es.delete(e)}},n);let{focusProps:m}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e,i=(0,S.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0},[r,o]),l=G(i),a=(0,S.useCallback)(e=>{let t=el(e.target),r=t?eT(t):eT();e.target===e.currentTarget&&r===e.nativeEvent.target&&(n&&n(e),o&&o(!0),l(e))},[o,n,l]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}({isDisabled:l,onFocusChange:p}),{focusWithinProps:g}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=(0,S.useRef)({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:a}=ek(),u=(0,S.useCallback)(e=>{e.currentTarget.contains(e.target)&&i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(e),o&&o(!1))},[n,o,i,a]),s=G(u),c=(0,S.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=el(e.target),n=eT(t);if(!i.current.isFocusWithin&&n===e.nativeEvent.target){r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,s(e);let n=e.currentTarget;l(t,"focus",e=>{if(i.current.isFocusWithin&&!eI(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});Object.defineProperty(r,"target",{value:n}),Object.defineProperty(r,"currentTarget",{value:n}),u(_(r))}},{capture:!0})}},[r,o,s,l,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:u}}}({isDisabled:!l,onFocusWithinChange:p});return{isFocused:u,isFocusVisible:c,focusProps:l?g:m}}({autoFocus:s}),{isHovered:E,hoverProps:C}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,l]=(0,S.useState)(!1),a=(0,S.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,S.useEffect)(eR,[]);let{addGlobalListener:u,removeAllGlobalListeners:s}=ek(),{hoverProps:c,triggerHoverEnd:d}=(0,S.useMemo)(()=>{let e=(e,r)=>{if(a.pointerType=r,o||"touch"===r||a.isHovered||!e.currentTarget.contains(e.target))return;a.isHovered=!0;let s=e.currentTarget;a.target=s,u(el(e.target),"pointerover",e=>{a.isHovered&&a.target&&!eI(a.target,e.target)&&i(e,e.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:s,pointerType:r}),n&&n(!0),l(!0)},i=(e,t)=>{let o=a.target;a.pointerType="",a.target=null,"touch"!==t&&a.isHovered&&o&&(a.isHovered=!1,s(),r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),l(!1))},c={};return"undefined"!=typeof PointerEvent&&(c.onPointerEnter=t=>{eF&&"mouse"===t.pointerType||e(t,t.pointerType)},c.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}),{hoverProps:c,triggerHoverEnd:i}},[t,n,r,o,a,u,s]);return(0,S.useEffect)(()=>{o&&d({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:c,isHovered:i}}({isDisabled:u}),{pressed:I,pressProps:T}=function(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,S.useRef)(null),[n,r]=(0,S.useState)(!1),o=(0,eD.G)(),i=(0,eN.z)(()=>{t.current=null,r(!1),o.dispose()}),l=(0,eN.z)(e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=(0,eM.r3)(e.currentTarget);o.addEventListener(n,"pointerup",i,!1),o.addEventListener(n,"pointermove",e=>{if(t.current){var n,o;let i,l;r((i=e.width/2,l=e.height/2,n={top:e.clientY-l,right:e.clientX+i,bottom:e.clientY+l,left:e.clientX-i},o=t.current.getBoundingClientRect(),!(!n||!o||n.right<o.left||n.left>o.right||n.bottom<o.top||n.top>o.bottom)))}},!1),o.addEventListener(n,"pointercancel",i,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:l,onPointerUp:i,onClick:i}}}({disabled:u}),k=(0,eq.x)({open:v===tx.Open,active:I||v===tx.Open,disabled:u,hover:E,focus:w,autofocus:s}),F=(0,tl.dG)(f(),{ref:p,id:a,type:(r=d.current,(0,S.useMemo)(()=>{var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase()||(null==r?void 0:r.tagName)==="BUTTON"&&!r.hasAttribute("type"))return"button"},[e.type,e.as,r])),"aria-haspopup":"menu","aria-controls":null==y?void 0:y.id,"aria-expanded":v===tx.Open,disabled:u||void 0,autoFocus:s,onKeyDown:m,onKeyUp:g},b,x,C,T);return(0,tl.L6)()({ourProps:F,theirProps:c,slot:k,defaultTag:"button",name:"Menu.Button"})}),tO=(0,tl.yV)(function(e,t){let n=(0,S.useId)(),{id:r="headlessui-menu-items-".concat(n),anchor:o,portal:i=!1,modal:l=!0,transition:a=!1,...u}=e,s=(0,S.useMemo)(()=>o?"string"==typeof o?{to:o}:o:null,[o]),c=tP("Menu.Items"),[d,f]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,S.useContext)(e3),n=(0,S.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,eO.e)(()=>{null==t||t(null!=n?n:null)},[t,n]);let r=(0,S.useContext)(e6);return(0,S.useMemo)(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}(s),p=function(){let{getFloatingProps:e,slot:t}=(0,S.useContext)(e6);return(0,S.useCallback)(function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object.assign({},e(...r),{"data-anchor":t.anchor})},[e,t])}(),[m,g]=(0,S.useState)(null),v=(0,eJ.T)(t,s?d:null,(0,eN.z)(e=>c.send({type:tC.SetItemsElement,element:e})),g),[h,y]=(0,tt.M)(c,e=>[e.menuState,e.buttonElement]),b=(0,e$.i)(y),w=(0,e$.i)(m);s&&(i=!0);let x=(0,e7.oJ)(),[E,C]=(0,e0.Y)(a,m,null!==x?(x&e7.ZM.Open)===e7.ZM.Open:h===tx.Open);(0,eW.m)(E,y,()=>{c.send({type:tC.CloseMenu})});let I=(0,tt.M)(c,e=>e.__demoMode),T=!I&&l&&h===tx.Open;(0,eU.P)(T,w);let k=!I&&l&&h===tx.Open;(0,eV.s)(k,{allowed:(0,S.useCallback)(()=>[y,m],[y,m])});let F=!(0,tt.M)(c,c.selectors.didButtonMove)&&E;(0,S.useEffect)(()=>{m&&h===tx.Open&&((0,eM.H9)(m)||m.focus({preventScroll:!0}))}
1,[h,m]),function(e,t){let{container:n,accept:r,walk:o}=t,i=(0,S.useRef)(r),l=(0,S.useRef)(o);(0,S.useEffect)(()=>{i.current=r,l.current=o},[r,o]),(0,eO.e)(()=>{if(!n||!e)return;let t=(0,eM.r3)(n);if(!t)return;let r=i.current,o=l.current,a=Object.assign(e=>r(e),{acceptNode:r}),u=t.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,a,!1);for(;u.nextNode();)o(u.currentNode)},[n,e,i,l])}(h===tx.Open,{container:m,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let P=(0,eD.G)(),R=(0,eN.z)(e=>{var t,n,r;switch(P.dispose(),e.key){case tu.R.Space:if(""!==c.state.searchQuery)return e.preventDefault(),e.stopPropagation(),c.send({type:tC.Search,value:e.key});case tu.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==c.state.activeItemIndex){let{dataRef:e}=c.state.items[c.state.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}c.send({type:tC.CloseMenu}),(0,to.wI)(c.state.buttonElement);break;case tu.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),c.send({type:tC.GoToItem,focus:tn.Next});case tu.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),c.send({type:tC.GoToItem,focus:tn.Previous});case tu.R.Home:case tu.R.PageUp:return e.preventDefault(),e.stopPropagation(),c.send({type:tC.GoToItem,focus:tn.First});case tu.R.End:case tu.R.PageDown:return e.preventDefault(),e.stopPropagation(),c.send({type:tC.GoToItem,focus:tn.Last});case tu.R.Escape:e.preventDefault(),e.stopPropagation(),(0,eL.flushSync)(()=>c.send({type:tC.CloseMenu})),null==(r=c.state.buttonElement)||r.focus({preventScroll:!0});break;case tu.R.Tab:e.preventDefault(),e.stopPropagation(),(0,eL.flushSync)(()=>c.send({type:tC.CloseMenu})),(0,to.EO)(c.state.buttonElement,e.shiftKey?to.TO.Previous:to.TO.Next);break;default:1===e.key.length&&(c.send({type:tC.Search,value:e.key}),P.setTimeout(()=>c.send({type:tC.ClearSearch}),350))}}),L=(0,eN.z)(e=>{e.key===tu.R.Space&&e.preventDefault()}),M=(0,eq.x)({open:h===tx.Open}),D=(0,tl.dG)(s?p():{},{"aria-activedescendant":(0,tt.M)(c,c.selectors.activeDescendantId),"aria-labelledby":(0,tt.M)(c,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),id:r,onKeyDown:R,onKeyUp:L,role:"menu",tabIndex:h===tx.Open?0:void 0,ref:v,style:{...u.style,...f,"--button-width":function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],[r,o]=(0,S.useState)(()=>ez(t));return(0,eO.e)(()=>{if(!t||!e)return;let n=(0,eA.k)();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),o(e=>{let n=ez(t);return n.width===e.width&&n.height===e.height?e:n})}),()=>{n.dispose()}},[t,e]),n?{width:"".concat(r.width,"px"),height:"".concat(r.height,"px")}:r}(E,y,!0).width},...(0,e0.X)(C)}),N=(0,tl.L6)();return S.createElement(tm.h_,{enabled:!!i&&(e.static||E),ownerDocument:b},N({ourProps:D,theirProps:u,slot:M,defaultTag:"div",features:tM,visible:F,name:"Menu.Items"}))}),tz=(0,tl.yV)(function(e,t){let n,r,o,i=(0,S.useId)(),{id:l="headlessui-menu-item-".concat(i),disabled:a=!1,...u}=e,s=tP("Menu.Item"),c=(0,tt.M)(s,e=>s.selectors.isActive(e,l)),d=(0,S.useRef)(null),f=(0,eJ.T)(t,d),p=(0,tt.M)(s,e=>s.selectors.shouldScrollIntoView(e,l));(0,eO.e)(()=>{if(p)return(0,eA.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[p,d]);let m=(n=(0,S.useRef)(""),r=(0,S.useRef)(""),(0,eN.z)(()=>{let e=d.current;if(!e)return"";let t=e.innerText;if(n.current===t)return r.current;let o=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():eZ(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return eZ(e).trim()})(e).trim().toLowerCase();return n.current=t,r.current=o,o})),g=(0,S.useRef)({disabled:a,domRef:d,get textValue(){return m()}});(0,eO.e)(()=>{g.current.disabled=a},[g,a]),(0,eO.e)(()=>(s.actions.registerItem(l,g),()=>s.actions.unregisterItem(l)),[g,l]);let v=(0,eN.z)(()=>{s.send({type:tC.CloseMenu})}),h=(0,eN.z)(e=>{if(a)return e.preventDefault();s.send({type:tC.CloseMenu}),(0,to.wI)(s.state.buttonElement)}),y=(0,eN.z)(()=>
1{if(a)return s.send({type:tC.GoToItem,focus:tn.Nothing});s.send({type:tC.GoToItem,focus:tn.Specific,id:l})}),b=(o=(0,S.useRef)([-1,-1]),{wasMoved(e){let t=eX(e);return(o.current[0]!==t[0]||o.current[1]!==t[1])&&(o.current=t,!0)},update(e){o.current=eX(e)}}),w=(0,eN.z)(e=>b.update(e)),x=(0,eN.z)(e=>{b.wasMoved(e)&&(a||c||s.send({type:tC.GoToItem,focus:tn.Specific,id:l,trigger:tE.Pointer}))}),E=(0,eN.z)(e=>{b.wasMoved(e)&&(a||c&&s.state.activationTrigger===tE.Pointer&&s.send({type:tC.GoToItem,focus:tn.Nothing}))}),[C,I]=tp(),[T,k]=(0,ta.fw)(),F=(0,eq.x)({active:c,focus:c,disabled:a,close:v}),P=(0,tl.L6)();return S.createElement(I,null,S.createElement(k,null,P({ourProps:{id:l,ref:f,role:"menuitem",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-labelledby":C,"aria-describedby":T,disabled:void 0,onClick:h,onFocus:y,onPointerEnter:w,onMouseEnter:w,onPointerMove:x,onMouseMove:x,onPointerLeave:E,onMouseLeave:E},theirProps:u,slot:F,defaultTag:tD,name:"Menu.Item"})))}),tj=Object.assign(tN,{Button:tA,Items:tO,Item:tz,Section:(0,tl.yV)(function(e,t){let[n,r]=tp(),o=(0,tl.L6)();return S.createElement(r,null,o({ourProps:{ref:t,"aria-labelledby":n,role:"group"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Section"}))}),Heading:(0,tl.yV)(function(e,t){let n=(0,S.useId)(),{id:r="headlessui-menu-heading-".concat(n),...o}=e,i=tf();(0,eO.e)(()=>i.register(r),[r,i.register]);let l={id:r,ref:t,role:"presentation",...i.props};return(0,tl.L6)()({ourProps:l,theirProps:o,slot:{},defaultTag:"header",name:"Menu.Heading"})}),Separator:(0,tl.yV)(function(e,t){return(0,tl.L6)()({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Separator"})})});var tB=n(13449),tH=n(48066),tV=n(43699),tW=n(70405);let tK=({chains:e,appId:t,address:n,rpcConfig:r,includeUsdc:o})=>Promise.all(e.map(async e=>{let i=(0,s.v)({chain:e,transport:(0,c.d)((0,T.a)(e,r,t))}),l=await i.getBalance({address:n}).catch(()=>0n),a=null,u=C[e.id];if(o&&u){let{balance:o}=await (0,k.g)({address:n,chain:e,rpcConfig:r,appId:t,erc20Address:u});a=o}return{balance:l,erc20Balance:a,erc20Address:u,chain:e}})),t$=({balance:e,className:t,chain:n})=>(0,F.jsx)(K.B,{className:t,$state:void 0,children:(0,F.jsx)(t_,{balance:e,chain:n})}),t_=({balance:e,chain:t})=>(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(tG,{children:[(0,F.jsx)(tU,{chainId:"object"==typeof t?t.id:"solana"}),(0,F.jsx)(A.V,{children:"object"==typeof t?t.name:(0,H.g)(t)})]}),(0,F.jsxs)(V.C,{isLoading:!1,isPulsing:!1,color:"gray",children:[(0,F.jsx)(tQ,{children:(0,F.jsx)(j.Z,{})}),e]})]}),tG=B.zo.div.withConfig({displayName:"Container",componentId:"sc-63f80cee-0"})(["display:flex;align-items:center;"]),tQ=B.zo.div.withConfig({displayName:"IconContainer",componentId:"sc-63f80cee-1"})(["height:0.75rem;width:0.75rem;margin-right:0.2rem;"]),tU=(0,B.zo)(W.N).withConfig({displayName:"StyledNetworkIcon",componentId:"sc-63f80cee-2"})(["height:1.25rem;width:1.25rem;display:inline-block;margin-right:0.5rem;border-radius:4px;"]),tq=({options:e,onSelect:t,selected:n,className:r})=>(0,F.jsxs)(tj,{as:tJ,children:[(0,F.jsxs)(tA,{as:t0,children:[(0,F.jsx)(t_,{balance:n.balance,chain:n.chain}),(0,F.jsx)(tX,{height:16})]}),(0,F.jsx)(tO,{as:tY,className:r,children:e.map((e,n)=>(0,F.jsx)(tz,{as:tZ,onClick:()=>t(n),children:(0,F.jsx)(t_,{balance:e.balance,chain:e.chain})},n))})]}),tJ=B.zo.div.withConfig({displayName:"Wrapper",componentId:"sc-31c00f79-0"})(["width:100%;position:relative;"]),tY=B.zo.div.withConfig({displayName:"Popover",componentId:"sc-31c00f79-1"})(["width:100%;margin-top:0.5rem;position:absolute;background-color:var(--privy-color-background);border-radius:var(--privy-border-radius-md);overflow-x:hidden;overflow-y:auto;box-shadow:0px 1px 2px 0px rgba(16,24,40,0.05);max-height:11.75rem;&&{border:solid 1px var(--privy-color-foreground-4);}z-index:1;"]),tZ=B.zo.button.withConfig({displayName:"Button",componentId:"sc-31c00f79-2"})(["width:100%;display:flex;justify-content:space-between;&&{padding:1rem;}:not(:last-child){border-bottom:solid 1px var(--privy-color-foreground-4);}:hover{background:var(--privy-color-background-2);}"]),tX=(0,B.zo)(tB.Z).withConfig({displayName:"StyledChevronIcon",componentId:"sc-31c00f79-3"})(["height:1rem;margin-left:0.5rem;"]),t0=B.zo.button.withConfig({displayName:"StyledMenuButton",componentId:"sc-31c00f79-4"})([""," span{margin-left:auto;}","{transition:rotate 100ms ease-in;}&[aria-expanded='true']{","{rotate:-180deg;}}
1"],K.a,tX,tX),t1=({displayName:e,errorMessage:t,configuredFundingChain:n,formattedBalance:r,fundingAmount:o,fundingCurrency:i,fundingAmountInUsd:l,options:a,selectedOption:u,isPreparing:s,isSubmitting:c,addressToFund:d,fundingWalletAddress:f,onSubmit:p,onSelect:m,onAmountChange:g,erc20ContractInfo:v})=>{let h=(0,S.useRef)(null);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(M.t,{}),(0,F.jsx)(R.b,{}),(0,F.jsx)(z.T,{children:"Transfer from another network"}),(0,F.jsxs)(O.S,{children:["You need more funds on the"," ","object"==typeof n?n.name:(0,H.g)(n)," ","network. Bridge from another blockchain network."]}),(0,F.jsxs)(tW.F,{style:{marginTop:"2rem"},children:[(0,F.jsxs)(tW.a,{onClick:()=>h.current?.focus(),children:[(0,F.jsx)(tW.b,{ref:h,value:o,onChange:e=>{let t=e.target.value;if(/^[0-9.]*$/.test(t)&&t.split(".").length-1<=1){let e=/\.$/.test(t)?".":"",n=Number(t.replace(/\.$/,"")||"0");if(Number.isNaN(n))return void g("0");g(n.toString()+e)}}}),(0,F.jsx)(tW.c,{children:i})]}),l&&(0,F.jsx)(tW.d,{children:l})]}),(0,F.jsxs)(D.R,{style:{marginTop:"1.5rem"},children:[(0,F.jsx)(A.L,{children:"From"}),(0,F.jsx)(A.L,{children:(0,I.R1)(f)})]}),(0,F.jsx)(tq,{selected:{chain:u.chain,balance:u.isErc20Quote?(0,tH.f)({amount:u.erc20Balance??0n,decimals:v?.decimals??6})+` ${v?.symbol||""}`:(0,tV.g)(u.balance,u.chain.nativeCurrency.symbol,3,!0)},options:a.map(({chain:e,balance:t,isErc20Quote:n,erc20Balance:r})=>({chain:e,balance:n?(0,tH.f)({amount:r??0n,decimals:v?.decimals??6})+` ${v?.symbol||""}`:(0,tV.g)(t,e.nativeCurrency.symbol,3,!0)})),onSelect:m}),(0,F.jsxs)(D.R,{style:{marginTop:"1.5rem"},children:[(0,F.jsx)(A.L,{children:"To"}),(0,F.jsx)(A.L,{children:(0,I.R1)(d)})]}),(0,F.jsx)(t$,{chain:n,balance:r}),(0,F.jsx)(N.E,{style:{marginTop:"1rem"},children:t}),(0,F.jsxs)(P.a,{style:{marginTop:"1rem"},loading:c||s,disabled:s||c,onClick:p,children:["Confirm with ",e]}),(0,F.jsx)(R.R,{}),(0,F.jsx)(L.B,{})]})}},44965:function(e,t,n){n.d(t,{C:function(){return l}});var r=n(27573),o=n(91628),i=n(6986);let l=({children:e,color:t,isLoading:n,isPulsing:o,...i})=>(0,r.jsx)(a,{$color:t,$isLoading:n,$isPulsing:o,...i,children:e}),a=o.zo.span.withConfig({displayName:"StyledSpan",componentId:"sc-80725f4-0"})(["padding:0.25rem;font-size:0.75rem;font-weight:500;line-height:1rem;border-radius:var(--privy-border-radius-xs);display:flex;align-items:center;"," ",""],e=>{let t,n;"green"===e.$color&&(t="var(--privy-color-success-dark)",n="var(--privy-color-success-light)"),"red"===e.$color&&(t="var(--privy-color-error)",n="var(--privy-color-error-light)"),"gray"===e.$color&&(t="var(--privy-color-foreground-2)",n="var(--privy-color-background-2)");let r=(0,o.F4)(["from,to{background-color:",";}50%{background-color:rgba(",",0.8);}"],n,n);return(0,o.iv)(["color:",";background-color:",";",";"],t,n,e.$isPulsing&&(0,o.iv)(["animation:"," 3s linear infinite;"],r))},i.L)},71818:function(e,t,n){n.d(t,{E:function(){return r}});let r=n(91628).zo.span.withConfig({displayName:"ErrorMessage",componentId:"sc-fcb8cd50-0"})(["text-align:left;font-size:0.75rem;font-weight:500;line-height:1.125rem;color:var(--privy-color-error);"])},462:function(e,t,n){n.d(t,{S:function(){return r}});let r=n(91628).zo.span.withConfig({displayName:"Subtitle",componentId:"sc-7a11f796-0"})(["margin-top:4px;color:var(--privy-color-foreground);text-align:center;font-size:0.875rem;font-weight:400;line-height:1.375rem;&& a{color:var(--privy-color-accent);}"])},57725:function(e,t,n){n.d(t,{T:function(){return r}});let r=n(91628).zo.span.withConfig({displayName:"Title",componentId:"sc-66de63c-0"})(["color:var(--privy-color-foreground);font-size:1.125rem;font-weight:600;line-height:1.875rem;text-align:center;"])},43699:function(e,t,n){n.d(t,{a:function(){return s},b:function(){return p},c:function(){return u},g:function(){return c},p:function(){return d},s:function(){return f}});var r=n(56488),o=n(88089),i=n(50800);let l=new Intl.NumberFormat(void 0,{style:"currency",currency:"USD",maximumFractionDigits:2}),a=e=>l.format(e),u=(e,t)=>{let n=a(t*parseFloat(e));return"$0.00"!==n?n:"<$0.01"},s=(e,t)=>{let n=a(t*parseFloat((0,r.d)(e)));return"$0.00"===n?"<$0.01":n},c=(e,t,n=6,r=!1)=>`${d(e,n,r)} ${t}`,d=(e,t=6,n=!1)=>{let o=parseFloat((0,r.d)(e)).toFixed(t).replace(/0+$/,"").replace(/\.$/,"");return n?o:`${"0"===o?"<0.001":o}`},f=e=>e.reduce((e,t)=>
1e+t,0n),p=(e,t)=>{let{chains:n}=(0,o.u)(),r=`https://etherscan.io/address/${t}`,l=`${(0,i.a5)(e,n)}/address/${t}`;if(!l)return r;try{new URL(l)}catch{return r}return l}},48066:function(e,t,n){n.d(t,{f:function(){return o}});let r=2n**256n-1n,o=({amount:e,decimals:t})=>e===r?"Maximum":Intl.NumberFormat(void 0,{maximumFractionDigits:t}).format(Number(e)/10**t)},86017:function(e,t,n){n.d(t,{g:function(){return r}});function r(e){switch(e){case"solana:mainnet":return"Solana";case"solana:devnet":return"Devnet";case"solana:testnet":return"Testnet"}}},8360:function(e,t,n){n.d(t,{g:function(){return l}});var r=n(39596),o=n(91361),i=n(13094);let l=async({chain:e,address:t,appId:n,rpcConfig:l,erc20Address:u})=>{let s=(0,r.v)({chain:e,transport:(0,o.d)((0,i.a)(e,l,n))});return{balance:await s.readContract({address:u,abi:a,functionName:"balanceOf",args:[t]}).catch(()=>0n),chain:e}},a=[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"}]},38204:function(e,t,n){n.d(t,{B:function(){return i},a:function(){return o}});var r=n(91628);let o=(0,r.iv)(["&&{border-width:1px;padding:0.5rem 1rem;}width:100%;text-align:left;border:solid 1px var(--privy-color-foreground-4);border-radius:var(--privy-border-radius-md);display:flex;justify-content:space-between;align-items:center;",""],e=>"error"===e.$state?"\n border-color: var(--privy-color-error);\n background: var(--privy-color-error-bg);\n ":""),i=r.zo.div.withConfig({displayName:"Box",componentId:"sc-7252360a-0"})(["",""],o)},70405:function(e,t,n){n.d(t,{F:function(){return l},I:function(){return i},a:function(){return a},b:function(){return u},c:function(){return c},d:function(){return d},e:function(){return o},f:function(){return f},g:function(){return p},h:function(){return s}});var r=n(91628);let o=r.zo.div.withConfig({displayName:"FundingMethodContainer",componentId:"sc-eaaa12a-0"})(["display:flex;flex-direction:column;gap:12px;padding-top:24px;padding-bottom:24px;"]),i=r.zo.div.withConfig({displayName:"IconContainer",componentId:"sc-eaaa12a-1"})(["width:24px;height:24px;display:flex;justify-content:center;align-items:center;svg{border-radius:var(--privy-border-radius-sm);}"]),l=r.zo.div.withConfig({displayName:"FundingQuantityWrapper",componentId:"sc-eaaa12a-2"})(["display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:8px;"]),a=r.zo.div.withConfig({displayName:"FundingQuantity",componentId:"sc-eaaa12a-3"})(["display:flex;align-items:center;gap:4px;width:100%;padding:0 16px;border-width:1px !important;border-radius:12px;cursor:text;&:focus-within{border-color:var(--privy-color-accent);}"]),u=r.zo.input.withConfig({displayName:"FundingAmountInput",componentId:"sc-eaaa12a-5"})(["background-color:var(--privy-color-background);width:100%;&:focus{outline:none !important;border:none !important;box-shadow:none !important;}&&{font-size:26px;}"]),s=(0,r.zo)(u).withConfig({displayName:"FundingAmountInputLarge",componentId:"sc-eaaa12a-6"})(["&&{font-size:42px;}"]),c=r.zo.div.withConfig({displayName:"FundingCurrency",componentId:"sc-eaaa12a-8"})(["font-size:18px;"]),d=r.zo.div.withConfig({displayName:"FundingDollars",componentId:"sc-eaaa12a-9"})(["font-size:12px;color:var(--privy-color-foreground-3);height:20px;"]),f=r.zo.div.withConfig({displayName:"InfoButtonText",componentId:"sc-eaaa12a-13"})([""]),p=r.zo.a.withConfig({displayName:"InfoButtonLink",componentId:"sc-eaaa12a-14"})(["&&{color:var(--privy-color-accent);}cursor:pointer;"])},69127:function(e,t,n){n.d(t,{u:function(){return i}});var r=n(7653),o=n(88089);let i=({enabled:e=!0}={})=>{let{showFiatPrices:t,getUsdPriceForSol:n}=(0,o.u)(),[i,l]=(0,r.useState)(!0),[a,u]=(0,r.useState)(void 0),[s,c]=(0,r.useState)(void 0);return(0,r.useEffect)(()=>{(async()=>{if(t&&e)try{l(!0);let e=await n();e?c(e):u(Error("Unable to fetch SOL price"))}catch(e){u(e)}finally{l(!1)}else l(!1)})()}
1,[]),{solPrice:s,isSolPriceLoading:i,solPriceError:a}}},14397:function(e,t,n){n.d(t,{u:function(){return u}});var r=n(7653),o=n(52383),i=n(31796),l=n(88089),a=n(69127);function u(e){let{tokenPrice:t,isTokenPriceLoading:n,tokenPriceError:u}=(e=>{let{showFiatPrices:t,getUsdTokenPrice:n,chains:a}=(0,l.u)(),[u,s]=(0,r.useState)(!0),[c,d]=(0,r.useState)(void 0),[f,p]=(0,r.useState)(void 0);return(0,r.useEffect)(()=>{e||=i.s;let r=(0,o.Q)(a).find(t=>t.id===Number(e));(async()=>{if(t){if(!r)return s(!1),void d(Error(`Unable to fetch token price on chain id ${e}`));try{s(!0);let e=await n(r);e?p(e):d(Error(`Unable to fetch token price on chain id ${r.id}`))}catch(e){d(e)}finally{s(!1)}}else s(!1)})()},[e]),{tokenPrice:f,isTokenPriceLoading:u,tokenPriceError:c}})("solana"===e?-1:e),{solPrice:s,isSolPriceLoading:c,solPriceError:d}=(0,a.u)({enabled:"solana"===e});return"solana"===e?{tokenPrice:s,isTokenPriceLoading:c,tokenPriceError:d}:{tokenPrice:t,isTokenPriceLoading:n,tokenPriceError:u}}},46633:function(e,t,n){n.d(t,{P:function(){return o}});var r=n(99493);function o(e,t={}){let{key:n="custom",methods:o,name:i="Custom Provider",retryDelay:l}=t;return({retryCount:a})=>(0,r.q)({key:n,methods:o,name:i,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:l,type:"custom"})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.