PageSourceSearch

https://solana.pandatool.org/_next/static/chunks/3052-72abdbaaf3b89a2a.js

js pandatool.org collected 2026-10-09 03:19:15 UTC 60,366 bytes, 11 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3052],{13742:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(84297);/**
2 * @license lucide-react v0.309.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let i=(0,r.Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},84979:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(84297);/**
7 * @license lucide-react v0.309.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */let i=(0,r.Z)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},18573:function(e,t,n){n.d(t,{x7:function(){return floating_ui_dom_arrow},Me:function(){return autoUpdate},oo:function(){return floating_ui_dom_computePosition},RR:function(){return floating_ui_dom_flip},Cp:function(){return floating_ui_dom_hide},dr:function(){return floating_ui_dom_limitShift},cv:function(){return floating_ui_dom_offset},uY:function(){return floating_ui_dom_shift},dp:function(){return floating_ui_dom_size}});let r=["top","right","bottom","left"],i=Math.min,o=Math.max,l=Math.round,a=Math.floor,createCoords=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function floating_ui_utils_evaluate(e,t){return"function"==typeof e?e(t):e}function floating_ui_utils_getSide(e){return e.split("-")[0]}function floating_ui_utils_getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return"x"===e?"y":"x"}function getAxisLength(e){return"y"===e?"height":"width"}let c=new Set(["top","bottom"]);function floating_ui_utils_getSideAxis(e){return c.has(floating_ui_utils_getSide(e))?"y":"x"}function floating_ui_utils_getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,e=>u[e])}let d=["left","right"],f=["right","left"],p=["top","bottom"],g=["bottom","top"];function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,e=>s[e])}function floating_ui_utils_getPaddingObject(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function floating_ui_utils_rectToClientRect(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function computeCoordsFromPlacement(e,t,n){let r,{reference:i,floating:o}=e,l=floating_ui_utils_getSideAxis(t),a=getOppositeAxis(floating_ui_utils_getSideAxis(t)),s=getAxisLength(a),u=floating_ui_utils_getSide(t),c="y"===l,d=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,p=i[s]/2-o[s]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-o.width,y:f};break;default:r={x:i.x,y:i.y}}switch(floating_ui_utils_getAlignment(t)){case"start":r[a]-=p*(n&&c?-1:1);break;case"end":r[a]+=p*(n&&c?-1:1)}return r}let computePosition=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=computeCoordsFromPlacement(u,r,s),f=r,p={},g=0;for(let n=0;n<a.length;n++){let{name:o,fn:m}=a[n],{x:h,y:v,data:w,reset:y}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=h?h:c,d=null!=v?v:d,p={...p,[o]:{...p[o],...w}},y&&g<=50&&(g++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(u=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:c,y:d}=computeCoordsFromPlacement(u,f,s)),n=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:p}};async function detectOverflow(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=floating_ui_utils_evaluate(t,e),g=floating_ui_utils_getPaddingObject(p),m=a[f?"floating"===d?"reference":"floating":d],h=floating_ui_utils_rectToClientRect(await o.getClippingRect
11({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===d?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),y=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},x=floating_ui_utils_rectToClientRect(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:s}):v);return{top:(h.top-x.top+g.top)/y.y,bottom:(x.bottom-h.bottom+g.bottom)/y.y,left:(h.left-x.left+g.left)/y.x,right:(x.right-h.right+g.right)/y.x}}function getSideOffsets(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function isAnySideFullyClipped(e){return r.some(t=>e[t]>=0)}let m=new Set(["left","top"]);async function convertValueToCoords(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=floating_ui_utils_getSide(n),a=floating_ui_utils_getAlignment(n),s="y"===floating_ui_utils_getSideAxis(n),u=m.has(l)?-1:1,c=o&&s?-1:1,d=floating_ui_utils_evaluate(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof g&&(p="end"===a?-1*g:g),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function hasWindow(){return"undefined"!=typeof window}function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return!!hasWindow()&&(e instanceof Node||e instanceof getWindow(e).Node)}function isElement(e){return!!hasWindow()&&(e instanceof Element||e instanceof getWindow(e).Element)}function isHTMLElement(e){return!!hasWindow()&&(e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement)}function isShadowRoot(e){return!!hasWindow()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}let h=new Set(["inline","contents"]);function isOverflowElement(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!h.has(i)}let v=new Set(["table","td","th"]),w=[":popover-open",":modal"];function isTopLayer(e){return w.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let y=["transform","translate","scale","rotate","perspective"],x=["transform","translate","scale","rotate","perspective","filter"],b=["paint","layout","strict","content"];function isContainingBlock(e){let t=isWebKit(),n=isElement(e)?getComputedStyle(e):e;return y.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||x.some(e=>(n.willChange||"").includes(e))||b.some(e=>(n.contain||"").includes(e))}function isWebKit(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let _=new Set(["html","body","#document"]);function isLastTraversableNode(e){return _.has(getNodeName(e))}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function getParentNode(e){if("html"===getNodeName(e))return e;let t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getOverflowAncestors(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function getNearestOverflowAncestor(e){let t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=getWindow(i);if(o){let e=getFrameElement(l);
11return t.concat(l,l.visualViewport||[],isOverflowElement(i)?i:[],e&&n?getOverflowAncestors(e):[])}return t.concat(i,getOverflowAncestors(i,[],n))}function getFrameElement(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function getCssDimensions(e){let t=getComputedStyle(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=isHTMLElement(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=l(n)!==o||l(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){let t=unwrapElement(e);if(!isHTMLElement(t))return createCoords(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=getCssDimensions(t),a=(o?l(n.width):n.width)/r,s=(o?l(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let S=createCoords(0);function getVisualOffsets(e){let t=getWindow(e);return isWebKit()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:S}function getBoundingClientRect(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=unwrapElement(e),a=createCoords(1);t&&(r?isElement(r)&&(a=getScale(r)):a=getScale(e));let s=(void 0===(i=n)&&(i=!1),r&&(!i||r===getWindow(l))&&i)?getVisualOffsets(l):createCoords(0),u=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(l){let e=getWindow(l),t=r&&isElement(r)?getWindow(r):r,n=e,i=getFrameElement(n);for(;i&&r&&t!==n;){let e=getScale(i),t=i.getBoundingClientRect(),r=getComputedStyle(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=o,c+=l,i=getFrameElement(n=getWindow(i))}}return floating_ui_utils_rectToClientRect({width:d,height:f,x:u,y:c})}function getWindowScrollBarX(e,t){let n=getNodeScroll(e).scrollLeft;return t?t.left+n:getBoundingClientRect(getDocumentElement(e)).left+n}function getHTMLOffset(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:getWindowScrollBarX(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}let E=new Set(["absolute","fixed"]);function getClientRectFromClippingAncestor(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=getWindow(e),r=getDocumentElement(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,s=0;if(i){o=i.width,l=i.height;let e=isWebKit();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,s=i.offsetTop)}return{width:o,height:l,x:a,y:s}}(e,n);else if("document"===t)r=function(e){let t=getDocumentElement(e),n=getNodeScroll(e),r=e.ownerDocument.body,i=o(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=o(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+getWindowScrollBarX(e),s=-n.scrollTop;return"rtl"===getComputedStyle(r).direction&&(a+=o(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:a,y:s}}(getDocumentElement(e));else if(isElement(t))r=function(e,t){let n=getBoundingClientRect(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=isHTMLElement(e)?getScale(e):createCoords(1),l=e.clientWidth*o.x,a=e.clientHeight*o.y,s=i*o.x,u=r*o.y;return{width:l,height:a,x:s,y:u}}(t,n);else{let n=getVisualOffsets(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return floating_ui_utils_rectToClientRect(r)}function isStaticPositioned(e){return"static"===getComputedStyle(e).position}function getTrueOffsetParent(e,t){if(!isHTMLElement(e)||"fixed"===getComputedStyle(e).position)return null;if(t)return t(e);let n=e.offsetParent;return getDocumentElement(e)===n&&(n=n.ownerDocument.body),n}function getOffsetParent(e,t){var n;let r=getWindow(e);if(isTopLayer(e))return r;if(!isHTMLElement(e)){let t=getParentNode(e);for(;t&&!isLastTraversableNode(t);){if(isElement(t)&&!isStaticPositioned(t))return t;t=getParentNode(t)}return r}let i=getTrueOffsetParent(e,t);for(;i&&(n=i,v.has(getNodeName(n)))&&isStaticPositioned(i);)i=getTrueOffsetParent(i,t);return i&&isLastTraversableNode(i)&&isStaticPositioned(i)&&!isContainingBlock(i)?r:i||function(e){let t=getParentNode(e);for(;isHTMLElement(t)&&!isLastTraversableNode(t);){if(isContainingBlock(t))return t;if(isTopLayer(t))break;t=getParentNode(t)}return null}(e)||r}let getElementRects=async function(e){let t=this.getOffsetParent||getOffsetParent,n=this.getDimensions,r=await n(e.floating);
11return{reference:function(e,t,n){let r=isHTMLElement(t),i=getDocumentElement(t),o="fixed"===n,l=getBoundingClientRect(e,!0,o,t),a={scrollLeft:0,scrollTop:0},s=createCoords(0);if(r||!r&&!o){if(("body"!==getNodeName(t)||isOverflowElement(i))&&(a=getNodeScroll(t)),r){let e=getBoundingClientRect(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=getWindowScrollBarX(i))}o&&!r&&i&&(s.x=getWindowScrollBarX(i));let u=!i||r||o?createCoords(0):getHTMLOffset(i,a),c=l.left+a.scrollLeft-s.x-u.x,d=l.top+a.scrollTop-s.y-u.y;return{x:c,y:d,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},C={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=getDocumentElement(r),a=!!t&&isTopLayer(t.floating);if(r===l||a&&o)return n;let s={scrollLeft:0,scrollTop:0},u=createCoords(1),c=createCoords(0),d=isHTMLElement(r);if((d||!d&&!o)&&(("body"!==getNodeName(r)||isOverflowElement(l))&&(s=getNodeScroll(r)),isHTMLElement(r))){let e=getBoundingClientRect(r);u=getScale(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!l||d||o?createCoords(0):getHTMLOffset(l,s,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-s.scrollTop*u.y+c.y+f.y}},getDocumentElement:getDocumentElement,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,a="clippingAncestors"===n?isTopLayer(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=getOverflowAncestors(e,[],!1).filter(e=>isElement(e)&&"body"!==getNodeName(e)),i=null,o="fixed"===getComputedStyle(e).position,l=o?getParentNode(e):e;for(;isElement(l)&&!isLastTraversableNode(l);){let t=getComputedStyle(l),n=isContainingBlock(l);n||"fixed"!==t.position||(i=null);let a=o?!n&&!i:!n&&"static"===t.position&&!!i&&E.has(i.position)||isOverflowElement(l)&&!n&&function hasFixedPositionAncestor(e,t){let n=getParentNode(e);return!(n===t||!isElement(n)||isLastTraversableNode(n))&&("fixed"===getComputedStyle(n).position||hasFixedPositionAncestor(n,t))}(e,l);a?r=r.filter(e=>e!==l):i=t,l=getParentNode(l)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...a,r],u=s[0],c=s.reduce((e,n)=>{let r=getClientRectFromClippingAncestor(t,n,l);return e.top=o(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=o(r.left,e.left),e},getClientRectFromClippingAncestor(t,u,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent,getElementRects,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=getCssDimensions(e);return{width:t,height:n}},getScale,isElement:isElement,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}};function rectsAreEqual(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function autoUpdate(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=unwrapElement(e),g=s||u?[...p?getOverflowAncestors(p):[],...getOverflowAncestors(t)]:[];g.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=p&&d?function(e,t){let n,r=null,l=getDocumentElement(e);function cleanup(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function refresh(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),cleanup();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:g}=c;if(s||t(),!p||!g)return;let m=a(f),h=a(l.clientWidth-(d+p)),v=a(l.clientHeight-(f+g)),w=a(d),y={rootMargin:-m+"px "+-h+"px "+-v+"px "+-w+"px",threshold:o(0,i(1,u))||1},x=!0;function handleObserve(t){let r=t[0].intersectionRatio;if(r!==u){if(!x)return refresh();r?refresh(!1,r):n=setTimeout(()=>{refresh(!1,1e-7)},1e3)}1!==r||rectsAreEqual(c,e.getBoundingClientRect())||refresh(),x=!1}try{r=new IntersectionObserver(handleObserve,{...y,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(handleObserve,y)}r.observe(e)}(!0),cleanup}
11(p,n):null,h=-1,v=null;c&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),p&&!f&&v.observe(p),v.observe(t));let w=f?getBoundingClientRect(e):null;return f&&function frameLoop(){let t=getBoundingClientRect(e);w&&!rectsAreEqual(w,t)&&n(),w=t,l=requestAnimationFrame(frameLoop)}(),n(),()=>{var e;g.forEach(e=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,f&&cancelAnimationFrame(l)}}let floating_ui_dom_offset=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:l,middlewareData:a}=t,s=await convertValueToCoords(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:l}}}}},floating_ui_dom_shift=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:l}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=floating_ui_utils_evaluate(e,t),d={x:n,y:r},f=await detectOverflow(t,c),p=floating_ui_utils_getSideAxis(floating_ui_utils_getSide(l)),g=getOppositeAxis(p),m=d[g],h=d[p];if(a){let e=m+f["y"===g?"top":"left"],t=m-f["y"===g?"bottom":"right"];m=o(e,i(m,t))}
11if(s){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=h+f[e],r=h-f[t];h=o(n,i(h,r))}let v=u.fn({...t,[g]:m,[p]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:a,[p]:s}}}}}},floating_ui_dom_flip=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,l;let{placement:a,middlewareData:s,rects:u,initialPlacement:c,platform:m,elements:h}=t,{mainAxis:v=!0,crossAxis:w=!0,fallbackPlacements:y,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:_=!0,...S}=floating_ui_utils_evaluate(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let E=floating_ui_utils_getSide(a),C=floating_ui_utils_getSideAxis(c),P=floating_ui_utils_getSide(c)===c,R=await (null==m.isRTL?void 0:m.isRTL(h.floating)),A=y||(P||!_?[getOppositePlacement(c)]:function(e){let t=getOppositePlacement(e);return[floating_ui_utils_getOppositeAlignmentPlacement(e),t,floating_ui_utils_getOppositeAlignmentPlacement(t)]}(c)),T="none"!==b;!y&&T&&A.push(...function(e,t,n,r){let i=floating_ui_utils_getAlignment(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?f:d;return t?d:f;case"left":case"right":return t?p:g;default:return[]}}(floating_ui_utils_getSide(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(floating_ui_utils_getOppositeAlignmentPlacement)))),o}(c,_,b,R));let O=[c,...A],L=await detectOverflow(t,S),N=[],D=(null==(r=s.flip)?void 0:r.overflows)||[];if(v&&N.push(L[E]),w){let e=function(e,t,n){void 0===n&&(n=!1);let r=floating_ui_utils_getAlignment(e),i=getOppositeAxis(floating_ui_utils_getSideAxis(e)),o=getAxisLength(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=getOppositePlacement(l)),[l,getOppositePlacement(l)]}(a,u,R);N.push(L[e[0]],L[e[1]])}if(D=[...D,{placement:a,overflows:N}],!N.every(e=>e<=0)){let e=((null==(i=s.flip)?void 0:i.index)||0)+1,t=O[e];if(t){let n="alignment"===w&&C!==floating_ui_utils_getSideAxis(t);if(!n||D.every(e=>e.overflows[0]>0&&floating_ui_utils_getSideAxis(e.placement)===C))return{data:{index:e,overflows:D},reset:{placement:t}}}let n=null==(o=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(x){case"bestFit":{let e=null==(l=D.filter(e=>{if(T){let t=floating_ui_utils_getSideAxis(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:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}},floating_ui_dom_size=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let l,a;let{placement:s,rects:u,platform:c,elements:d}=t,{apply:f=()=>{},...p}=floating_ui_utils_evaluate(e,t),g=await detectOverflow(t,p),m=floating_ui_utils_getSide(s),h=floating_ui_utils_getAlignment(s),v="y"===floating_ui_utils_getSideAxis(s),{width:w,height:y}=u.floating;"top"===m||"bottom"===m?(l=m,a=h===(await (null==c.isRTL?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(a=m,l="end"===h?"top":"bottom");let x=y-g.top-g.bottom,b=w-g.left-g.right,_=i(y-g[l],x),S=i(w-g[a],b),E=!t.middlewareData.shift,C=_,P=S;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(P=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(C=x),E&&!h){let e=o(g.left,0),t=o(g.right,0),n=o(g.top,0),r=o(g.bottom,0);v?P=w-2*(0!==e||0!==t?e+t:o(g.left,g.right)):C=y-2*(0!==n||0!==r?n+r:o(g.top,g.bottom))}await f({...t,availableWidth:P,availableHeight:C});let R=await c.getDimensions(d.floating);return w!==R.width||y!==R.height?{reset:{rects:!0}}:{}}}},floating_ui_dom_hide=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=floating_ui_utils_evaluate(e,t);switch(r){case"referenceHidden":{let e=await detectOverflow(t,{...i,elementContext:"reference"}),r=getSideOffsets(e,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:isAnySideFullyClipped(r)}}}case"escaped":{let e=await detectOverflow(t,{...i,altBoundary:!0}),r=getSideOffsets(e,n.floating);return{data:{escapedOffsets:r,escaped:isAnySideFullyClipped(r)}}}default:return{}}}}},floating_ui_dom_arrow=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:a,platform:s,elements:u,middlewareData:c}=t,{element:d,padding:f=0}=floating_ui_utils_evaluate(e,t)||{};if(null==d)return{};
11let p=floating_ui_utils_getPaddingObject(f),g={x:n,y:r},m=getOppositeAxis(floating_ui_utils_getSideAxis(l)),h=getAxisLength(m),v=await s.getDimensions(d),w="y"===m,y=w?"clientHeight":"clientWidth",x=a.reference[h]+a.reference[m]-g[m]-a.floating[h],b=g[m]-a.reference[m],_=await (null==s.getOffsetParent?void 0:s.getOffsetParent(d)),S=_?_[y]:0;S&&await (null==s.isElement?void 0:s.isElement(_))||(S=u.floating[y]||a.floating[h]);let E=S/2-v[h]/2-1,C=i(p[w?"top":"left"],E),P=i(p[w?"bottom":"right"],E),R=S-v[h]-P,A=S/2-v[h]/2+(x/2-b/2),T=o(C,i(A,R)),O=!c.arrow&&null!=floating_ui_utils_getAlignment(l)&&A!==T&&a.reference[h]/2-(A<C?C:P)-v[h]/2<0,L=O?A<C?A-C:A-R:0;return{[m]:g[m]+L,data:{[m]:T,centerOffset:A-T-L,...O&&{alignmentOffset:L}},reset:O}}}),floating_ui_dom_limitShift=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=floating_ui_utils_evaluate(e,t),c={x:n,y:r},d=floating_ui_utils_getSideAxis(i),f=getOppositeAxis(d),p=c[f],g=c[d],h=floating_ui_utils_evaluate(a,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){let e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+v.mainAxis,n=o.reference[f]+o.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var w,y;let e="y"===f?"width":"height",t=m.has(floating_ui_utils_getSide(i)),n=o.reference[d]-o.floating[e]+(t&&(null==(w=l.offset)?void 0:w[d])||0)+(t?0:v.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(y=l.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);g<n?g=n:g>r&&(g=r)}return{[f]:p,[d]:g}}}},floating_ui_dom_computePosition=(e,t,n)=>{let r=new Map,i={platform:C,...n},o={...i.platform,_c:r};return computePosition(e,t,{...i,platform:o})}},42614:function(e,t,n){n.d(t,{u:function(){return clamp}});function clamp(e,[t,n]){return Math.min(n,Math.max(t,e))}},83402:function(e,t,n){let r;n.d(t,{VY:function(){return e1},ZA:function(){return e5},JO:function(){return eQ},ck:function(){return e8},wU:function(){return e3},eT:function(){return e9},__:function(){return e7},h_:function(){return e0},fC:function(){return eY},$G:function(){return e6},u_:function(){return e4},Z0:function(){return te},xz:function(){return eG},B4:function(){return eJ},l_:function(){return e2}});var i,o=n(67294),l=n(73935),a=n(42614),s=n(36206),u=n(25360),c=n(28771),d=n(88426),f=n(85893),p=n(78990),g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,d.Z8)(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:i,...o}=e,l=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(l,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),m=n(79698),h=n(78724),v="dismissableLayer.update",w=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),y=o.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:l,onFocusOutside:a,onInteractOutside:u,onDismiss:d,...p}=e,y=o.useContext(w),[x,b]=o.useState(null),_=x?.ownerDocument??globalThis?.document,[,S]=o.useState({}),E=(0,c.e)(t,e=>b(e)),C=Array.from(y.layers),[P]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),R=C.indexOf(P),A=x?C.indexOf(x):-1,T=y.layersWithOutsidePointerEventsDisabled.size>0,O=A>=R,L=function(e,t=globalThis?.document){let n=(0,m.W)(e),r=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let handlePointerDown=e=>{if(e.target&&!r.current){let handleAndDispatchPointerDownOutsideEvent2=function(){handleAndDispatchCustomEvent("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})},r={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=handleAndDispatchPointerDownOutsideEvent2,t.addEventListener("click",i.current,{once:!0})):handleAndDispatchPointerDownOutsideEvent2()}else t.removeEventListener("click",i.current);r.current=!1},e=window.setTimeout(()=>{t.addEventListener("pointerdown",handlePointerDown)},0);return()=>{window.clearTimeout(e),t.removeEventListener("pointerdown",handlePointerDown),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...y.branches].some(e=>e.contains(t));!O||n||(l?.(e),u?.(e),e.defaultPrevented||d?.())},_),N=function(e,t=globalThis?.document){let n=(0,m.W)(e),r=o.useRef(!1);return o.useEffect(()=>{let handleFocus=e=>{e.target&&!r.current&&handleAndDispatchCustomEvent("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",handleFocus),()=>t.removeEventListener("focusin",handleFocus)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...y.branches].some(e=>e.contains(t));
11n||(a?.(e),u?.(e),e.defaultPrevented||d?.())},_);return(0,h.e)(e=>{let t=A===y.layers.size-1;t&&(r?.(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},_),o.useEffect(()=>{if(x)return n&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(i=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(x)),y.layers.add(x),dispatchUpdate(),()=>{n&&1===y.layersWithOutsidePointerEventsDisabled.size&&(_.body.style.pointerEvents=i)}},[x,_,n,y]),o.useEffect(()=>()=>{x&&(y.layers.delete(x),y.layersWithOutsidePointerEventsDisabled.delete(x),dispatchUpdate())},[x,y]),o.useEffect(()=>{let handleUpdate=()=>S({});return document.addEventListener(v,handleUpdate),()=>document.removeEventListener(v,handleUpdate)},[]),(0,f.jsx)(g.div,{...p,ref:E,style:{pointerEvents:T?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,s.M)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,s.M)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,s.M)(e.onPointerDownCapture,L.onPointerDownCapture)})});function dispatchUpdate(){let e=new CustomEvent(v);document.dispatchEvent(e)}function handleAndDispatchCustomEvent(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&&l.flushSync(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}y.displayName="DismissableLayer",o.forwardRef((e,t)=>{let n=o.useContext(w),r=o.useRef(null),i=(0,c.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(g.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var x=n(27552),b="focusScope.autoFocusOnMount",_="focusScope.autoFocusOnUnmount",S={bubbles:!1,cancelable:!0},E=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...a}=e,[s,u]=o.useState(null),d=(0,m.W)(i),p=(0,m.W)(l),h=o.useRef(null),v=(0,c.e)(t,e=>u(e)),w=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let handleFocusIn2=function(e){if(w.paused||!s)return;let t=e.target;s.contains(t)?h.current=t:dist_focus(h.current,{select:!0})},handleFocusOut2=function(e){if(w.paused||!s)return;let t=e.relatedTarget;null===t||s.contains(t)||dist_focus(h.current,{select:!0})};document.addEventListener("focusin",handleFocusIn2),document.addEventListener("focusout",handleFocusOut2);let e=new MutationObserver(function(e){let t=document.activeElement;if(t===document.body)for(let t of e)t.removedNodes.length>0&&dist_focus(s)});return s&&e.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",handleFocusIn2),document.removeEventListener("focusout",handleFocusOut2),e.disconnect()}}},[r,s,w.paused]),o.useEffect(()=>{if(s){C.add(w);let e=document.activeElement,t=s.contains(e);if(!t){let t=new CustomEvent(b,S);s.addEventListener(b,d),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(dist_focus(r,{select:t}),document.activeElement!==n)return}(getTabbableCandidates(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&dist_focus(s))}return()=>{s.removeEventListener(b,d),setTimeout(()=>{let t=new CustomEvent(_,S);s.addEventListener(_,p),s.dispatchEvent(t),t.defaultPrevented||dist_focus(e??document.body,{select:!0}),s.removeEventListener(_,p),C.remove(w)},0)}}},[s,d,p,w]);let y=o.useCallback(e=>{if(!n&&!r||w.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=getTabbableCandidates(e),n=findVisible(t,e),r=findVisible(t.reverse(),e);return[n,r]}(t),l=r&&o;l?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&dist_focus(o,{select:!0})):(e.preventDefault(),n&&dist_focus(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,w.paused]);return(0,f.jsx)(g.div,{tabIndex:-1,...a,ref:v,onKeyDown:y})});function getTabbableCandidates(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 findVisible(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 dist_focus(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()}}E.displayName="FocusScope";var C=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=arrayRemove(r,e)).unshift(e)},remove(e){r=arrayRemove(r,e),r[0]?.resume()}});function arrayRemove(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var P=n(91276),R=n(18573),A="undefined"!=typeof document?o.useLayoutEffect:function(){};function deepEqual(e,t){let n,r,i;if(e===t)return!0;
11if(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(!deepEqual(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!deepEqual(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function getDPR(e){if("undefined"==typeof window)return 1;let t=e.ownerDocument.defaultView||window;return t.devicePixelRatio||1}function roundByDPR(e,t){let n=getDPR(e);return Math.round(t*n)/n}function useLatestRef(e){let t=o.useRef(e);return A(()=>{t.current=e}),t}let arrow$1=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,R.x7)({element:n.current,padding:r}).fn(t):{}:n?(0,R.x7)({element:n,padding:r}).fn(t):{}}}),offset=(e,t)=>({...(0,R.cv)(e),options:[e,t]}),shift=(e,t)=>({...(0,R.uY)(e),options:[e,t]}),limitShift=(e,t)=>({...(0,R.dr)(e),options:[e,t]}),flip=(e,t)=>({...(0,R.RR)(e),options:[e,t]}),size=(e,t)=>({...(0,R.dp)(e),options:[e,t]}),hide=(e,t)=>({...(0,R.Cp)(e),options:[e,t]}),floating_ui_react_dom_arrow=(e,t)=>({...arrow$1(e),options:[e,t]});var T=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,f.jsx)(g.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});T.displayName="Arrow";var O=n(9981),L=n(7546),N="Popper",[D,M]=(0,u.b)(N),[k,j]=D(N),Popper=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,f.jsx)(k,{scope:t,anchor:r,onAnchorChange:i,children:n})};Popper.displayName=N;var F="PopperAnchor",W=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,l=j(F,n),a=o.useRef(null),s=(0,c.e)(t,a);return o.useEffect(()=>{l.onAnchorChange(r?.current||a.current)}),r?null:(0,f.jsx)(g.div,{...i,ref:s})});W.displayName=F;var H="PopperContent",[I,B]=D(H),V=o.forwardRef((e,t)=>{let{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:p=[],collisionPadding:h=0,sticky:v="partial",hideWhenDetached:w=!1,updatePositionStrategy:y="optimized",onPlaced:x,...b}=e,_=j(H,n),[S,E]=o.useState(null),C=(0,c.e)(t,e=>E(e)),[P,T]=o.useState(null),N=(0,L.t)(P),D=N?.width??0,M=N?.height??0,k="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},F=Array.isArray(p)?p:[p],W=F.length>0,B={padding:k,boundary:F.filter(isNotNull),altBoundary:W},{refs:V,floatingStyles:z,placement:K,isPositioned:U,middlewareData:$}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,p]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=o.useState(r);deepEqual(g,r)||m(r);let[h,v]=o.useState(null),[w,y]=o.useState(null),x=o.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),b=o.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),_=a||h,S=s||w,E=o.useRef(null),C=o.useRef(null),P=o.useRef(f),T=null!=c,O=useLatestRef(c),L=useLatestRef(i),N=useLatestRef(d),D=o.useCallback(()=>{if(!E.current||!C.current)return;let e={placement:t,strategy:n,middleware:g};L.current&&(e.platform=L.current),(0,R.oo)(E.current,C.current,e).then(e=>{let t={...e,isPositioned:!1!==N.current};M.current&&!deepEqual(P.current,t)&&(P.current=t,l.flushSync(()=>{p(t)}))})},[g,t,n,L,N]);A(()=>{!1===d&&P.current.isPositioned&&(P.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let M=o.useRef(!1);A(()=>(M.current=!0,()=>{M.current=!1}),[]),A(()=>{if(_&&(E.current=_),S&&(C.current=S),_&&S){if(O.current)return O.current(_,S,D);D()}},[_,S,D,O,T]);let k=o.useMemo(()=>({reference:E,floating:C,setReference:x,setFloating:b}),[x,b]),j=o.useMemo(()=>({reference:_,floating:S}),[_,S]),F=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=roundByDPR(j.floating,f.x),r=roundByDPR(j.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...getDPR(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,j.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:D,refs:k,elements:j,floatingStyles:F}),[f,D,k,j,F])}({strategy:"fixed",placement:r+("center"!==a?"-"+a:""),whileElementsMounted:(...e)=>{let t=(0,R.Me)(...e,{animationFrame:"always"===y});return t},elements:{reference:_.anchor},middleware:[offset({mainAxis:i+M,alignmentAxis:s}),d&&shift({mainAxis:!0,crossAxis:!1,limiter:"partial"===v?limitShift():void 0,...B}),d&&flip({...B}),size({...B,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}}),P&&floating_ui_react_dom_arrow({element:P,padding:u}),transformOrigin({arrowWidth:D,arrowHeight:M}),w&&hide({strategy:"referenceHidden",...B})]}),[q,Z]=getSideAndAlignFromPlacement(K),X=(0,m.W)(x);(0,O.b)(()=>{U&&X?.()},[U,X]);let Y=$.arrow?.x,G=$.arrow?.y,J=$.arrow?.centerOffset!==0,[Q,ee]=o.useState();return(0,O.b)(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]),(0,f.jsx)("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:U?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[$.transformOrigin?.x,$.transformOrigin?.y].join(" "),...$.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(I,{scope:n,placedSide:q,onArrowChange:T,arrowX:Y,arrowY:G,shouldHideArrow:J,children:(0,f.jsx)(g.div,{"data-side":q,"data-align":Z,...b,ref:C,style:{...b.style,animation:U?void 0:"none"}})})})});V.displayName=H;var z="PopperArrow",K={top:"bottom",right:"left",bottom:"top",left:"r
11ight"},U=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=B(z,n),o=K[i.placedSide];return(0,f.jsx)("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},children:(0,f.jsx)(T,{...r,ref:t,style:{...r.style,display:"block"}})})});function isNotNull(e){return null!==e}U.displayName=z;var transformOrigin=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[s,u]=getSideAndAlignFromPlacement(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+l/2,f=(i.arrow?.y??0)+a/2,p="",g="";return"bottom"===s?(p=o?c:`${d}px`,g=`${-a}px`):"top"===s?(p=o?c:`${d}px`,g=`${r.floating.height+a}px`):"right"===s?(p=`${-a}px`,g=o?c:`${f}px`):"left"===s&&(p=`${r.floating.width+a}px`,g=o?c:`${f}px`),{data:{x:p,y:g}}}});function getSideAndAlignFromPlacement(e){let[t,n="center"]=e.split("-");return[t,n]}var $=o.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=o.useState(!1);(0,O.b)(()=>a(!0),[]);let s=n||i&&globalThis?.document?.body;return s?l.createPortal((0,f.jsx)(g.div,{...r,ref:t}),s):null});$.displayName="Portal";var q=n(77342),Z=n(57898),X=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});o.forwardRef((e,t)=>(0,f.jsx)(g.span,{...e,ref:t,style:{...X,...e.style}})).displayName="VisuallyHidden";var Y=n(23541),G=n(71930),J=[" ","Enter","ArrowUp","ArrowDown"],Q=[" ","Enter"],ee="Select",[et,en,er]=function(e){let t=e+"CollectionProvider",[n,r]=(0,u.b)(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),CollectionProvider=e=>{let{scope:t,children:n}=e,r=o.useRef(null),l=o.useRef(new Map).current;return(0,f.jsx)(i,{scope:t,itemMap:l,collectionRef:r,children:n})};CollectionProvider.displayName=t;let a=e+"CollectionSlot",s=(0,d.Z8)(a),p=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=l(a,n),o=(0,c.e)(t,i.collectionRef);return(0,f.jsx)(s,{ref:o,children:r})});p.displayName=a;let g=e+"CollectionItemSlot",m="data-radix-collection-item",h=(0,d.Z8)(g),v=o.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=o.useRef(null),s=(0,c.e)(t,a),u=l(g,n);return o.useEffect(()=>(u.itemMap.set(a,{ref:a,...i}),()=>void u.itemMap.delete(a))),(0,f.jsx)(h,{[m]:"",ref:s,children:r})});return v.displayName=g,[{Provider:CollectionProvider,Slot:p,ItemSlot:v},function(t){let n=l(e+"CollectionConsumer",t),r=o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`)),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]}(ee),[ei,eo]=(0,u.b)(ee,[er,M]),el=M(),[ea,es]=ei(ee),[eu,ec]=ei(ee),Select=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:l,value:a,defaultValue:s,onValueChange:u,dir:c,name:d,autoComplete:g,disabled:m,required:h,form:v}=e,w=el(t),[y,x]=o.useState(null),[b,_]=o.useState(null),[S,E]=o.useState(!1),C=(0,p.gm)(c),[R,A]=(0,q.T)({prop:r,defaultProp:i??!1,onChange:l,caller:ee}),[T,O]=(0,q.T)({prop:a,defaultProp:s,onChange:u,caller:ee}
11),L=o.useRef(null),N=!y||v||!!y.closest("form"),[D,M]=o.useState(new Set),k=Array.from(D).map(e=>e.props.value).join(";");return(0,f.jsx)(Popper,{...w,children:(0,f.jsxs)(ea,{required:h,scope:t,trigger:y,onTriggerChange:x,valueNode:b,onValueNodeChange:_,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:(0,P.M)(),value:T,onValueChange:O,open:R,onOpenChange:A,dir:C,triggerPointerDownPosRef:L,disabled:m,children:[(0,f.jsx)(et.Provider,{scope:t,children:(0,f.jsx)(eu,{scope:e.__scopeSelect,onNativeOptionAdd:o.useCallback(e=>{M(t=>new Set(t).add(e))},[]),onNativeOptionRemove:o.useCallback(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),N?(0,f.jsxs)(eX,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:g,value:T,onChange:e=>O(e.target.value),disabled:m,form:v,children:[void 0===T?(0,f.jsx)("option",{value:""}):null,Array.from(D)]},k):null]})})};Select.displayName=ee;var ed="SelectTrigger",ef=o.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,l=el(n),a=es(ed,n),u=a.disabled||r,d=(0,c.e)(t,a.onTriggerChange),p=en(n),m=o.useRef("touch"),[h,v,w]=useTypeaheadSearch(e=>{let t=p().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=findNextItem(t,e,n);void 0!==r&&a.onValueChange(r.value)}),handleOpen=e=>{u||(a.onOpenChange(!0),w()),e&&(a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,f.jsx)(W,{asChild:!0,...l,children:(0,f.jsx)(g.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":shouldShowPlaceholder(a.value)?"":void 0,...i,ref:d,onClick:(0,s.M)(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==m.current&&handleOpen(e)}),onPointerDown:(0,s.M)(i.onPointerDown,e=>{m.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(handleOpen(e),e.preventDefault())}),onKeyDown:(0,s.M)(i.onKeyDown,e=>{let t=""!==h.current,n=e.ctrlKey||e.altKey||e.metaKey;n||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&J.includes(e.key)&&(handleOpen(),e.preventDefault())})})})});ef.displayName=ed;var ep="SelectValue",eg=o.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:o,placeholder:l="",...a}=e,s=es(ep,n),{onValueNodeHasChildrenChange:u}=s,d=void 0!==o,p=(0,c.e)(t,s.onValueNodeChange);return(0,O.b)(()=>{u(d)},[u,d]),(0,f.jsx)(g.span,{...a,ref:p,style:{pointerEvents:"none"},children:shouldShowPlaceholder(s.value)?(0,f.jsx)(f.Fragment,{children:l}):o})});eg.displayName=ep;var em=o.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,f.jsx)(g.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});em.displayName="SelectIcon";var SelectPortal=e=>(0,f.jsx)($,{asChild:!0,...e});SelectPortal.displayName="SelectPortal";var eh="SelectContent",ev=o.forwardRef((e,t)=>{let n=es(eh,e.__scopeSelect),[r,i]=o.useState();return((0,O.b)(()=>{i(new DocumentFragment)},[]),n.open)?(0,f.jsx)(eb,{...e,ref:t}):r?l.createPortal((0,f.jsx)(ew,{scope:e.__scopeSelect,children:(0,f.jsx)(et.Slot,{scope:e.__scopeSelect,children:(0,f.jsx)("div",{children:e.children})})}),r):null});ev.displayName=eh;var[ew,ey]=ei(eh),ex=(0,d.Z8)("SelectContent.RemoveScroll"),eb=o.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:a,side:u,sideOffset:d,align:p,alignOffset:g,arrowPadding:m,collisionBoundary:h,collisionPadding:v,sticky:w,hideWhenDetached:b,avoidCollisions:_,...S}=e,C=es(eh,n),[P,R]=o.useState(null),[A,T]=o.useState(null),O=(0,c.e)(t,e=>
11R(e)),[L,N]=o.useState(null),[D,M]=o.useState(null),k=en(n),[j,F]=o.useState(!1),W=o.useRef(!1);o.useEffect(()=>{if(P)return(0,Y.Ry)(P)},[P]),(0,x.EW)();let H=o.useCallback(e=>{let[t,...n]=k().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:"nearest"}),n===t&&A&&(A.scrollTop=0),n===r&&A&&(A.scrollTop=A.scrollHeight),n?.focus(),document.activeElement!==i))return},[k,A]),I=o.useCallback(()=>H([L,P]),[H,L,P]);o.useEffect(()=>{j&&I()},[j,I]);let{onOpenChange:B,triggerPointerDownPosRef:V}=C;o.useEffect(()=>{if(P){let e={x:0,y:0},handlePointerMove=t=>{e={x:Math.abs(Math.round(t.pageX)-(V.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(V.current?.y??0))}},handlePointerUp=t=>{e.x<=10&&e.y<=10?t.preventDefault():P.contains(t.target)||B(!1),document.removeEventListener("pointermove",handlePointerMove),V.current=null};return null!==V.current&&(document.addEventListener("pointermove",handlePointerMove),document.addEventListener("pointerup",handlePointerUp,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",handlePointerMove),document.removeEventListener("pointerup",handlePointerUp,{capture:!0})}}},[P,B,V]),o.useEffect(()=>{let close=()=>B(!1);return window.addEventListener("blur",close),window.addEventListener("resize",close),()=>{window.removeEventListener("blur",close),window.removeEventListener("resize",close)}},[B]);let[z,K]=useTypeaheadSearch(e=>{let t=k().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=findNextItem(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),U=o.useCallback((e,t,n)=>{let r=!W.current&&!n,i=void 0!==C.value&&C.value===t;(i||r)&&(N(e),r&&(W.current=!0))},[C.value]),$=o.useCallback(()=>P?.focus(),[P]),q=o.useCallback((e,t,n)=>{let r=!W.current&&!n,i=void 0!==C.value&&C.value===t;(i||r)&&M(e)},[C.value]),Z="popper"===r?eS:e_,X=Z===eS?{side:u,sideOffset:d,align:p,alignOffset:g,arrowPadding:m,collisionBoundary:h,collisionPadding:v,sticky:w,hideWhenDetached:b,avoidCollisions:_}:{};return(0,f.jsx)(ew,{scope:n,content:P,viewport:A,onViewportChange:T,itemRefCallback:U,selectedItem:L,onItemLeave:$,itemTextRefCallback:q,focusSelectedItem:I,selectedItemText:D,position:r,isPositioned:j,searchRef:z,children:(0,f.jsx)(G.Z,{as:ex,allowPinchZoom:!0,children:(0,f.jsx)(E,{asChild:!0,trapped:C.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,s.M)(i,e=>{C.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,f.jsx)(y,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:(0,f.jsx)(Z,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:e=>e.preventDefault(),...S,...X,onPlaced:()=>F(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:(0,s.M)(S.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||K(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=k().filter(e=>!e.disabled),n=t.map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(n=n.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let t=e.target,r=n.indexOf(t);n=n.slice(r+1)}setTimeout(()=>H(n)),e.preventDefault()}})})})})})})});eb.displayName="SelectContentImpl";var e_=o.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,l=es(eh,n),s=ey(eh,n),[u,d]=o.useState(null),[p,m]=o.useState(null),h=(0,c.e)(t,e=>m(e)),v=en(n),w=o.useRef(!1),y=o.useRef(!0),{viewport:x,selectedItem:b,selectedItemText:_,focusSelectedItem:S}=s,E=o.useCallback(()=>{if(l.trigger&&l.valueNode&&u&&p&&x&&b&&_){let e=l.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),n=l.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if("rtl"!==l.dir){let r=i.left-t.left,o=n.left-r,l=e.left-o,s=e.width+l,c=Math.max(s,t.width),d=window.innerWidth-10,f=(0,a.u)(o,[10,Math.max(10,d-c)]);u.style.minWidth=s+"px",u.style.left=f+"px"}else{let r=t.right-i.right,o=window.innerWidth-n.right-r,l=window.innerWidth-e.right-o,s=e.width+l,c=Math.max(s,t.width),d=window.innerWidth-10,f=(0,a.u)(o,[10,Math.max(10,d-c)]);u.style.minWidth=s+"px",u.style.right=f+"px"}let o=v(),s=window.innerHeight-20,c=x.scrollHeight,d=window.getComputedStyle(p),f=parseInt(d.borderTopWidth,10),g=parseInt(d.paddingTop,10),m=parseInt(d.borderBottomWidth,10),h=
11parseInt(d.paddingBottom,10),y=f+g+c+h+m,S=Math.min(5*b.offsetHeight,y),E=window.getComputedStyle(x),C=parseInt(E.paddingTop,10),P=parseInt(E.paddingBottom,10),R=e.top+e.height/2-10,A=b.offsetHeight/2,T=b.offsetTop+A,O=f+g+T;if(O<=R){let e=o.length>0&&b===o[o.length-1].ref.current;u.style.bottom="0px";let t=p.clientHeight-x.offsetTop-x.offsetHeight;u.style.height=O+Math.max(s-R,A+(e?P:0)+t+m)+"px"}else{let e=o.length>0&&b===o[0].ref.current;u.style.top="0px";let t=Math.max(R,f+x.offsetTop+(e?C:0)+A);u.style.height=t+(y-O)+"px",x.scrollTop=O-R+x.offsetTop}u.style.margin="10px 0",u.style.minHeight=S+"px",u.style.maxHeight=s+"px",r?.(),requestAnimationFrame(()=>w.current=!0)}},[v,l.trigger,l.valueNode,u,p,x,b,_,l.dir,r]);(0,O.b)(()=>E(),[E]);let[C,P]=o.useState();(0,O.b)(()=>{p&&P(window.getComputedStyle(p).zIndex)},[p]);let R=o.useCallback(e=>{e&&!0===y.current&&(E(),S?.(),y.current=!1)},[E,S]);return(0,f.jsx)(eE,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:w,onScrollButtonChange:R,children:(0,f.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,f.jsx)(g.div,{...i,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});e_.displayName="SelectItemAlignedPosition";var eS=o.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:i=10,...o}=e,l=el(n);return(0,f.jsx)(V,{...l,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});eS.displayName="SelectPopperPosition";var[eE,eC]=ei(eh,{}),eP="SelectViewport",eR=o.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,l=ey(eP,n),a=eC(eP,n),u=(0,c.e)(t,l.onViewportChange),d=o.useRef(0);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,f.jsx)(et.Slot,{scope:n,children:(0,f.jsx)(g.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:(0,s.M)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if(r?.current&&n){let e=Math.abs(d.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,i=parseFloat(n.style.minHeight),o=parseFloat(n.style.height),l=Math.max(i,o);if(l<r){let i=l+e,o=Math.min(r,i),a=i-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});eR.displayName=eP;var eA="SelectGroup",[eT,eO]=ei(eA),eL=o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=(0,P.M)();return(0,f.jsx)(eT,{scope:n,id:i,children:(0,f.jsx)(g.div,{role:"group","aria-labelledby":i,...r,ref:t})})});eL.displayName=eA;var eN="SelectLabel",eD=o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=eO(eN,n);return(0,f.jsx)(g.div,{id:i.id,...r,ref:t})});eD.displayName=eN;var eM="SelectItem",[ek,ej]=ei(eM),eF=o.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:l,...a}=e,u=es(eM,n),d=ey(eM,n),p=u.value===r,[m,h]=o.useState(l??""),[v,w]=o.useState(!1),y=(0,c.e)(t,e=>d.itemRefCallback?.(e,r,i)),x=(0,P.M)(),b=o.useRef("touch"),handleSelect=()=>{i||(u.onValueChange(r),u.onOpenChange(!1))};if(""===r)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,f.jsx)(ek,{scope:n,value:r,disabled:i,textId:x,isSelected:p,onItemTextChange:o.useCallback(e=>{h(t=>t||(e?.textContent??"").trim())},[]),children:(0,f.jsx)(et.ItemSlot,{scope:n,value:r,disabled:i,textValue:m,children:(0,f.jsx)(g.div,{role:"option","aria-labelledby":x,"data-highlighted":v?"":void 0,"aria-selected":p&&v,"data-state":p?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...a,ref:y,onFocus:(0,s.M)(a.onFocus,()=>w(!0)),onBlur:(0,s.M)(a.onBlur,()=>w(!1)),onClick:(0,s.M)(a.onClick,()=>{"mouse"!==b.current&&handleSelect()}),onPointerUp:(0,s.M)(a.onPointerUp,()=>{"mouse"===b.current&&handleSelect()}),onPointerDown:(0,s.M)(a.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:(0,s.M)(a.onPointerMove,e=>{b.current=e.pointerType,i?d.onItemLeave?.():"mouse"===b.current&&e.currentTarget.focu
11s({preventScroll:!0})}),onPointerLeave:(0,s.M)(a.onPointerLeave,e=>{e.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:(0,s.M)(a.onKeyDown,e=>{let t=d.searchRef?.current!=="";t&&" "===e.key||(Q.includes(e.key)&&handleSelect()," "===e.key&&e.preventDefault())})})})})});eF.displayName=eM;var eW="SelectItemText",eH=o.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,s=es(eW,n),u=ey(eW,n),d=ej(eW,n),p=ec(eW,n),[m,h]=o.useState(null),v=(0,c.e)(t,e=>h(e),d.onItemTextChange,e=>u.itemTextRefCallback?.(e,d.value,d.disabled)),w=m?.textContent,y=o.useMemo(()=>(0,f.jsx)("option",{value:d.value,disabled:d.disabled,children:w},d.value),[d.disabled,d.value,w]),{onNativeOptionAdd:x,onNativeOptionRemove:b}=p;return(0,O.b)(()=>(x(y),()=>b(y)),[x,b,y]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(g.span,{id:d.textId,...a,ref:v}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?l.createPortal(a.children,s.valueNode):null]})});eH.displayName=eW;var eI="SelectItemIndicator",eB=o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=ej(eI,n);return i.isSelected?(0,f.jsx)(g.span,{"aria-hidden":!0,...r,ref:t}):null});eB.displayName=eI;var eV="SelectScrollUpButton",ez=o.forwardRef((e,t)=>{let n=ey(eV,e.__scopeSelect),r=eC(eV,e.__scopeSelect),[i,l]=o.useState(!1),a=(0,c.e)(t,r.onScrollButtonChange);return(0,O.b)(()=>
11{if(n.viewport&&n.isPositioned){let handleScroll2=function(){let t=e.scrollTop>0;l(t)},e=n.viewport;return handleScroll2(),e.addEventListener("scroll",handleScroll2),()=>e.removeEventListener("scroll",handleScroll2)}},[n.viewport,n.isPositioned]),i?(0,f.jsx)(e$,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ez.displayName=eV;var eK="SelectScrollDownButton",eU=o.forwardRef((e,t)=>{let n=ey(eK,e.__scopeSelect),r=eC(eK,e.__scopeSelect),[i,l]=o.useState(!1),a=(0,c.e)(t,r.onScrollButtonChange);return(0,O.b)(()=>{if(n.viewport&&n.isPositioned){let handleScroll2=function(){let t=e.scrollHeight-e.clientHeight,n=Math.ceil(e.scrollTop)<t;l(n)},e=n.viewport;return handleScroll2(),e.addEventListener("scroll",handleScroll2),()=>e.removeEventListener("scroll",handleScroll2)}},[n.viewport,n.isPositioned]),i?(0,f.jsx)(e$,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eU.displayName=eK;var e$=o.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,l=ey("SelectScrollButton",n),a=o.useRef(null),u=en(n),c=o.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return o.useEffect(()=>()=>c(),[c]),(0,O.b)(()=>{let e=u().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[u]),(0,f.jsx)(g.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:(0,s.M)(i.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(r,50))}),onPointerMove:(0,s.M)(i.onPointerMove,()=>{l.onItemLeave?.(),null===a.current&&(a.current=window.setInterval(r,50))}),onPointerLeave:(0,s.M)(i.onPointerLeave,()=>{c()})})}),eq=o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,f.jsx)(g.div,{"aria-hidden":!0,...r,ref:t})});eq.displayName="SelectSeparator";var eZ="SelectArrow";o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=el(n),o=es(eZ,n),l=ey(eZ,n);return o.open&&"popper"===l.position?(0,f.jsx)(U,{...i,...r,ref:t}):null}).displayName=eZ;var eX=o.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{let i=o.useRef(null),l=(0,c.e)(r,i),a=(0,Z.D)(t);return o.useEffect(()=>{let e=i.current;if(!e)return;let n=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(n,"value"),o=r.set;if(a!==t&&o){let n=new Event("change",{bubbles:!0});o.call(e,t),e.dispatchEvent(n)}},[a,t]),(0,f.jsx)(g.select,{...n,style:{...X,...n.style},ref:l,defaultValue:t})});function shouldShowPlaceholder(e){return""===e||void 0===e}function useTypeaheadSearch(e){let t=(0,m.W)(e),n=o.useRef(""),r=o.useRef(0),i=o.useCallback(e=>{let i=n.current+e;t(i),function updateSearch(e){n.current=e,window.clearTimeout(r.current),""!==e&&(r.current=window.setTimeout(()=>updateSearch(""),1e3))}(i)},[t]),l=o.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,l]}function findNextItem(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0]),o=i?t[0]:t,l=n?e.indexOf(n):-1,a=(r=Math.max(l,0),e.map((t,n)=>e[(r+n)%e.length])),s=1===o.length;s&&(a=a.filter(e=>e!==n));let u=a.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}eX.displayName="SelectBubbleInput";var eY=Select,eG=ef,eJ=eg,eQ=em,e0=SelectPortal,e1=ev,e2=eR,e5=eL,e7=eD,e8=eF,e9=eH,e3=eB,e4=ez,e6=eU,te=eq},7546:function(e,t,n){n.d(t,{t:function(){return useSize}});var r=n(67294),i=n(9981);function useSize(e){let[t,n]=r.useState(void 0);return(0,i.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}}}]);

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.