1mpacto-react-ui 0.0.32 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/src/components/Input/InputFloatingInner.d.ts +1 -1
- package/dist/src/components/Input/InputReguler.d.ts +1 -1
- package/dist/src/interfaces/components/Input/index.d.ts +0 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -30,7 +30,7 @@ React keys must be passed directly to JSX without using spread:
|
|
30
30
|
<%s key={someKey} {...props} />`,Ui,Wn,Kb,Wn),Kl[Wn+Ui]=!0}}return A===r?Zb(Je):zb(Je),Je}}function Xb(A,Z,K){return Ql(A,Z,K,!0)}function Yb(A,Z,K){return Ql(A,Z,K,!1)}var Ub=Yb,Jb=Xb;aa.Fragment=r,aa.jsx=Ub,aa.jsxs=Jb}()),aa}process.env.NODE_ENV==="production"?Ou.exports=N1():Ou.exports=O1();var E=Ou.exports;const L1=()=>E.jsx("div",{className:"1ru-w-full 1ru-bg-red-900",children:"index"}),ot={"button-base":"_button-base_1j3dq_1","button-xs":"_button-xs_1j3dq_1","button-s":"_button-s_1j3dq_1","button-m":"_button-m_1j3dq_1","button-l":"_button-l_1j3dq_1","button-small":"_button-small_1j3dq_1","button-reguler":"_button-reguler_1j3dq_1","button-large":"_button-large_1j3dq_1","button-disabled-laba-grey-06":"_button-disabled-laba-grey-06_1j3dq_6","nude-gray-500":"_nude-gray-500_1j3dq_6","nude-laba-blue-10":"_nude-laba-blue-10_1j3dq_6","ghost-blue-gray-100-bg_white":"_ghost-blue-gray-100-bg_white_1j3dq_6","ghost-laba-blue-10":"_ghost-laba-blue-10_1j3dq_6","filled-laba-blue-10":"_filled-laba-blue-10_1j3dq_6","button-disabled-gray-100":"_button-disabled-gray-100_1j3dq_6","tertiary-blue-700":"_tertiary-blue-700_1j3dq_6","secondary-red-600":"_secondary-red-600_1j3dq_6","secondary-blue-700":"_secondary-blue-700_1j3dq_6","primary-blue-700":"_primary-blue-700_1j3dq_6"},jr=v.forwardRef((e,t)=>{const{size:n="reguler",variants:r="filled-laba-blue-10",startIcon:a=()=>E.jsx(E.Fragment,{}),endIcon:o=()=>E.jsx(E.Fragment,{}),children:i,className:u,...s}=e,l={size:{large:ot["button-large"],reguler:ot["button-reguler"],small:ot["button-small"],l:ot["button-l"],m:ot["button-m"],s:ot["button-s"],xs:ot["button-xs"]},variants:{"filled-laba-blue-10":ot["filled-laba-blue-10"],"ghost-laba-blue-10":ot["ghost-laba-blue-10"],"nude-laba-blue-10":ot["nude-laba-blue-10"],"nude-gray-500":ot["nude-gray-500"],"primary-blue-700":ot["primary-blue-700"],"secondary-blue-700":ot["secondary-blue-700"],"tertiary-blue-700":ot["tertiary-blue-700"],"ghost-blue-gray-100-bg_white":ot["ghost-blue-gray-100-bg_white"],"secondary-red-600":ot["secondary-red-600"]}};return E.jsxs("button",{ref:t,className:`${l.size[n]} ${l.variants[r]} ${u??""}`,...s,children:[typeof a=="function"&&a(),v.isValidElement(a)&&a,i,typeof o=="function"&&o(),v.isValidElement(o)&&o]})});jr.displayName="Button";function On(e){return Vf(e)?(e.nodeName||"").toLowerCase():"#document"}function St(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Cn(e){var t;return(t=(Vf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vf(e){return e instanceof Node||e instanceof St(e).Node}function We(e){return e instanceof Element||e instanceof St(e).Element}function tt(e){return e instanceof HTMLElement||e instanceof St(e).HTMLElement}function Lu(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof St(e).ShadowRoot}function Za(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Nt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function G1(e){return["table","td","th"].includes(On(e))}function Ei(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Bs(e){const t=Ts(),n=Nt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function H1(e){let t=vn(e);for(;tt(t)&&!Vn(t);){if(Ei(t))return null;if(Bs(t))return t;t=vn(t)}return null}function Ts(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Vn(e){return["html","body","#document"].includes(On(e))}function Nt(e){return St(e).getComputedStyle(e)}function Si(e){return We(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function vn(e){if(On(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Lu(e)&&e.host||Cn(e);return Lu(t)?t.host:t}function kf(e){const t=vn(e);return Vn(t)?e.ownerDocument?e.ownerDocument.body:e.body:tt(t)&&Za(t)?t:kf(t)}function Tn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=kf(e),o=a===((r=e.ownerDocument)==null?void 0:r.body),i=St(a);return o?t.concat(i,i.visualViewport||[],Za(a)?a:[],i.frameElement&&n?Tn(i.frameElement):[]):t.concat(a,Tn(a,[],n))}function Yn(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function It(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Lu(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function W1(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Mf(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function j1(e){return e.mozInputSource===0&&e.isTrusted?!0:Gu()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function z1(e){return X1()?!1:!Gu()&&e.width===0&&e.height===0||Gu()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function Z1(){return/apple/i.test(navigator.vendor)}function Gu(){const e=/android/i;return e.test(W1())||e.test(Mf())}function X1(){return Mf().includes("jsdom/")}function uc(e,t){return["mouse","pen"].includes(e)}function Y1(e){return"nativeEvent"in e}function U1(e){return e.matches("html,body")}function Gt(e){return(e==null?void 0:e.ownerDocument)||document}function Ji(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Kn(e){return"composedPath"in e?e.composedPath()[0]:e.target}const J1="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function _f(e){return tt(e)&&e.matches(J1)}function Ki(e){e.preventDefault(),e.stopPropagation()}function K1(e){return e?e.getAttribute("role")==="combobox"&&_f(e):!1}const Q1=["top","right","bottom","left"],sc=["start","end"],lc=Q1.reduce((e,t)=>e.concat(t,t+"-"+sc[0],t+"-"+sc[1]),[]),Ho=Math.min,or=Math.max,Wo=Math.round,uo=Math.floor,kn=e=>({x:e,y:e}),q1={left:"right",right:"left",bottom:"top",top:"bottom"},e4={start:"end",end:"start"};function cc(e,t,n){return or(e,Ho(t,n))}function Xa(e,t){return typeof e=="function"?e(t):e}function yn(e){return e.split("-")[0]}function hn(e){return e.split("-")[1]}function Nf(e){return e==="x"?"y":"x"}function Of(e){return e==="y"?"height":"width"}function zr(e){return["top","bottom"].includes(yn(e))?"y":"x"}function Lf(e){return Nf(zr(e))}function Gf(e,t,n){n===void 0&&(n=!1);const r=hn(e),a=Lf(e),o=Of(a);let i=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=zo(i)),[i,zo(i)]}function t4(e){const t=zo(e);return[jo(e),t,jo(t)]}function jo(e){return e.replace(/start|end/g,t=>e4[t])}function n4(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}function r4(e,t,n,r){const a=hn(e);let o=n4(yn(e),n==="start",r);return a&&(o=o.map(i=>i+"-"+a),t&&(o=o.concat(o.map(jo)))),o}function zo(e){return e.replace(/left|right|bottom|top/g,t=>q1[t])}function a4(e){return{top:0,right:0,bottom:0,left:0,...e}}function o4(e){return typeof e!="number"?a4(e):{top:e,right:e,bottom:e,left:e}}function Zo(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}/*!
|
31
31
|
* tabbable 6.2.0
|
32
32
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
33
|
-
*/var i4=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Xo=i4.join(","),Hf=typeof Element>"u",Zr=Hf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Yo=!Hf&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Uo=function e(t,n){var r;n===void 0&&(n=!0);var a=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=a===""||a==="true",i=o||n&&t&&e(t.parentNode);return i},u4=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},s4=function(t,n,r){if(Uo(t))return[];var a=Array.prototype.slice.apply(t.querySelectorAll(Xo));return n&&Zr.call(t,Xo)&&a.unshift(t),a=a.filter(r),a},l4=function e(t,n,r){for(var a=[],o=Array.from(t);o.length;){var i=o.shift();if(!Uo(i,!1))if(i.tagName==="SLOT"){var u=i.assignedElements(),s=u.length?u:i.children,l=e(s,!0,r);r.flatten?a.push.apply(a,l):a.push({scopeParent:i,candidates:l})}else{var c=Zr.call(i,Xo);c&&r.filter(i)&&(n||!t.includes(i))&&a.push(i);var f=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),g=!Uo(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(f&&g){var d=e(f===!0?i.children:f.children,!0,r);r.flatten?a.push.apply(a,d):a.push({scopeParent:i,candidates:d})}else o.unshift.apply(o,i.children)}}return a},Wf=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},jf=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||u4(t))&&!Wf(t)?0:t.tabIndex},c4=function(t,n){var r=jf(t);return r<0&&n&&!Wf(t)?0:r},d4=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},zf=function(t){return t.tagName==="INPUT"},f4=function(t){return zf(t)&&t.type==="hidden"},g4=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},m4=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},p4=function(t){if(!t.name)return!0;var n=t.form||Yo(t),r=function(u){return n.querySelectorAll('input[type="radio"][name="'+u+'"]')},a;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")a=r(window.CSS.escape(t.name));else try{a=r(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=m4(a,t.form);return!o||o===t},h4=function(t){return zf(t)&&t.type==="radio"},b4=function(t){return h4(t)&&!p4(t)},v4=function(t){var n,r=t&&Yo(t),a=(n=r)===null||n===void 0?void 0:n.host,o=!1;if(r&&r!==t){var i,u,s;for(o=!!((i=a)!==null&&i!==void 0&&(u=i.ownerDocument)!==null&&u!==void 0&&u.contains(a)||t!=null&&(s=t.ownerDocument)!==null&&s!==void 0&&s.contains(t));!o&&a;){var l,c,f;r=Yo(a),a=(l=r)===null||l===void 0?void 0:l.host,o=!!((c=a)!==null&&c!==void 0&&(f=c.ownerDocument)!==null&&f!==void 0&&f.contains(a))}}return o},dc=function(t){var n=t.getBoundingClientRect(),r=n.width,a=n.height;return r===0&&a===0},y4=function(t,n){var r=n.displayCheck,a=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=Zr.call(t,"details>summary:first-of-type"),i=o?t.parentElement:t;if(Zr.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof a=="function"){for(var u=t;t;){var s=t.parentElement,l=Yo(t);if(s&&!s.shadowRoot&&a(s)===!0)return dc(t);t.assignedSlot?t=t.assignedSlot:!s&&l!==t.ownerDocument?t=l.host:t=s}t=u}if(v4(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return dc(t);return!1},C4=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var a=n.children.item(r);if(a.tagName==="LEGEND")return Zr.call(n,"fieldset[disabled] *")?!0:!a.contains(t)}return!0}n=n.parentElement}return!1},x4=function(t,n){return!(n.disabled||Uo(n)||f4(n)||y4(n,t)||g4(n)||C4(n))},Hu=function(t,n){return!(b4(n)||jf(n)<0||!x4(t,n))},D4=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},w4=function e(t){var n=[],r=[];return t.forEach(function(a,o){var i=!!a.scopeParent,u=i?a.scopeParent:a,s=c4(u,i),l=i?e(a.candidates):u;s===0?i?n.push.apply(n,l):n.push(u):r.push({documentOrder:o,tabIndex:s,item:a,isScope:i,content:l})}),r.sort(d4).reduce(function(a,o){return o.isScope?a.push.apply(a,o.content):a.push(o.content),a},[]).concat(n)},$i=function(t,n){n=n||{};var r;return n.getShadowRoot?r=l4([t],n.includeContainer,{filter:Hu.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:D4}):r=s4(t,n.includeContainer,Hu.bind(null,n)),w4(r)},I4=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Zr.call(t,Xo)===!1?!1:Hu(n,t)};function fc(e,t,n){let{reference:r,floating:a}=e;const o=zr(t),i=Lf(t),u=Of(i),s=yn(t),l=o==="y",c=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,g=r[u]/2-a[u]/2;let d;switch(s){case"top":d={x:c,y:r.y-a.height};break;case"bottom":d={x:c,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:f};break;case"left":d={x:r.x-a.width,y:f};break;default:d={x:r.x,y:r.y}}switch(hn(t)){case"start":d[i]-=g*(n&&l?-1:1);break;case"end":d[i]+=g*(n&&l?-1:1);break}return d}const E4=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,u=o.filter(Boolean),s=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:f}=fc(l,r,s),g=r,d={},m=0;for(let h=0;h<u.length;h++){const{name:y,fn:p}=u[h],{x:b,y:C,data:w,reset:x}=await p({x:c,y:f,initialPlacement:r,placement:g,strategy:a,middlewareData:d,rects:l,platform:i,elements:{reference:e,floating:t}});c=b??c,f=C??f,d={...d,[y]:{...d[y],...w}},x&&m<=50&&(m++,typeof x=="object"&&(x.placement&&(g=x.placement),x.rects&&(l=x.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):x.rects),{x:c,y:f}=fc(l,g,s)),h=-1)}return{x:c,y:f,placement:g,strategy:a,middlewareData:d}};async function Vs(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:o,rects:i,elements:u,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:g=!1,padding:d=0}=Xa(t,e),m=o4(d),y=u[g?f==="floating"?"reference":"floating":f],p=Zo(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:l,rootBoundary:c,strategy:s})),b=f==="floating"?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),w=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},x=Zo(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:b,offsetParent:C,strategy:s}):b);return{top:(p.top-x.top+m.top)/w.y,bottom:(x.bottom-p.bottom+m.bottom)/w.y,left:(p.left-x.left+m.left)/w.x,right:(x.right-p.right+m.right)/w.x}}function S4(e,t,n){return(e?[...n.filter(a=>hn(a)===e),...n.filter(a=>hn(a)!==e)]:n.filter(a=>yn(a)===a)).filter(a=>e?hn(a)===e||(t?jo(a)!==a:!1):!0)}const $4=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,a;const{rects:o,middlewareData:i,placement:u,platform:s,elements:l}=t,{crossAxis:c=!1,alignment:f,allowedPlacements:g=lc,autoAlignment:d=!0,...m}=Xa(e,t),h=f!==void 0||g===lc?S4(f||null,d,g):g,y=await Vs(t,m),p=((n=i.autoPlacement)==null?void 0:n.index)||0,b=h[p];if(b==null)return{};const C=Gf(b,o,await(s.isRTL==null?void 0:s.isRTL(l.floating)));if(u!==b)return{reset:{placement:h[0]}};const w=[y[yn(b)],y[C[0]],y[C[1]]],x=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:b,overflows:w}],I=h[p+1];if(I)return{data:{index:p+1,overflows:x},reset:{placement:I}};const F=x.map(V=>{const S=hn(V.placement);return[V.placement,S&&c?V.overflows.slice(0,2).reduce((k,P)=>k+P,0):V.overflows[0],V.overflows]}).sort((V,S)=>V[1]-S[1]),T=((a=F.filter(V=>V[2].slice(0,hn(V[0])?2:3).every(S=>S<=0))[0])==null?void 0:a[0])||F[0][0];return T!==u?{data:{index:p+1,overflows:x},reset:{placement:T}}:{}}}},R4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:u,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...y}=Xa(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const p=yn(a),b=zr(u),C=yn(u)===u,w=await(s.isRTL==null?void 0:s.isRTL(l.floating)),x=g||(C||!h?[zo(u)]:t4(u)),I=m!=="none";!g&&I&&x.push(...r4(u,h,m,w));const F=[u,...x],D=await Vs(t,y),T=[];let V=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&T.push(D[p]),f){const R=Gf(a,i,w);T.push(D[R[0]],D[R[1]])}if(V=[...V,{placement:a,overflows:T}],!T.every(R=>R<=0)){var S,k;const R=(((S=o.flip)==null?void 0:S.index)||0)+1,_=F[R];if(_)return{data:{index:R,overflows:V},reset:{placement:_}};let B=(k=V.filter($=>$.overflows[0]<=0).sort(($,L)=>$.overflows[1]-L.overflows[1])[0])==null?void 0:k.placement;if(!B)switch(d){case"bestFit":{var P;const $=(P=V.filter(L=>{if(I){const H=zr(L.placement);return H===b||H==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(H=>H>0).reduce((H,G)=>H+G,0)]).sort((L,H)=>L[1]-H[1])[0])==null?void 0:P[0];$&&(B=$);break}case"initialPlacement":B=u;break}if(a!==B)return{reset:{placement:B}}}return{}}}};async function F4(e,t){const{placement:n,platform:r,elements:a}=e,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),i=yn(n),u=hn(n),s=zr(n)==="y",l=["left","top"].includes(i)?-1:1,c=o&&s?-1:1,f=Xa(t,e);let{mainAxis:g,crossAxis:d,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return u&&typeof m=="number"&&(d=u==="end"?m*-1:m),s?{x:d*c,y:g*l}:{x:g*l,y:d*c}}const A4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:u}=t,s=await F4(t,e);return i===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:a+s.x,y:o+s.y,data:{...s,placement:i}}}}},P4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:u={fn:y=>{let{x:p,y:b}=y;return{x:p,y:b}}},...s}=Xa(e,t),l={x:n,y:r},c=await Vs(t,s),f=zr(yn(a)),g=Nf(f);let d=l[g],m=l[f];if(o){const y=g==="y"?"top":"left",p=g==="y"?"bottom":"right",b=d+c[y],C=d-c[p];d=cc(b,d,C)}if(i){const y=f==="y"?"top":"left",p=f==="y"?"bottom":"right",b=m+c[y],C=m-c[p];m=cc(b,m,C)}const h=u.fn({...t,[g]:d,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}};function Zf(e){const t=Nt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=tt(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,u=Wo(n)!==o||Wo(r)!==i;return u&&(n=o,r=i),{width:n,height:r,$:u}}function ks(e){return We(e)?e:e.contextElement}function Mr(e){const t=ks(e);if(!tt(t))return kn(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=Zf(t);let i=(o?Wo(n.width):n.width)/r,u=(o?Wo(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!u||!Number.isFinite(u))&&(u=1),{x:i,y:u}}const B4=kn(0);function Xf(e){const t=St(e);return!Ts()||!t.visualViewport?B4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function T4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==St(e)?!1:t}function sr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=ks(e);let i=kn(1);t&&(r?We(r)&&(i=Mr(r)):i=Mr(e));const u=T4(o,n,r)?Xf(o):kn(0);let s=(a.left+u.x)/i.x,l=(a.top+u.y)/i.y,c=a.width/i.x,f=a.height/i.y;if(o){const g=St(o),d=r&&We(r)?St(r):r;let m=g,h=m.frameElement;for(;h&&r&&d!==m;){const y=Mr(h),p=h.getBoundingClientRect(),b=Nt(h),C=p.left+(h.clientLeft+parseFloat(b.paddingLeft))*y.x,w=p.top+(h.clientTop+parseFloat(b.paddingTop))*y.y;s*=y.x,l*=y.y,c*=y.x,f*=y.y,s+=C,l+=w,m=St(h),h=m.frameElement}}return Zo({width:c,height:f,x:s,y:l})}function V4(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=a==="fixed",i=Cn(r),u=t?Ei(t.floating):!1;if(r===i||u&&o)return n;let s={scrollLeft:0,scrollTop:0},l=kn(1);const c=kn(0),f=tt(r);if((f||!f&&!o)&&((On(r)!=="body"||Za(i))&&(s=Si(r)),tt(r))){const g=sr(r);l=Mr(r),c.x=g.x+r.clientLeft,c.y=g.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-s.scrollLeft*l.x+c.x,y:n.y*l.y-s.scrollTop*l.y+c.y}}function k4(e){return Array.from(e.getClientRects())}function Yf(e){return sr(Cn(e)).left+Si(e).scrollLeft}function M4(e){const t=Cn(e),n=Si(e),r=e.ownerDocument.body,a=or(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=or(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Yf(e);const u=-n.scrollTop;return Nt(r).direction==="rtl"&&(i+=or(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:u}}function _4(e,t){const n=St(e),r=Cn(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,u=0,s=0;if(a){o=a.width,i=a.height;const l=Ts();(!l||l&&t==="fixed")&&(u=a.offsetLeft,s=a.offsetTop)}return{width:o,height:i,x:u,y:s}}function N4(e,t){const n=sr(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=tt(e)?Mr(e):kn(1),i=e.clientWidth*o.x,u=e.clientHeight*o.y,s=a*o.x,l=r*o.y;return{width:i,height:u,x:s,y:l}}function gc(e,t,n){let r;if(t==="viewport")r=_4(e,n);else if(t==="document")r=M4(Cn(e));else if(We(t))r=N4(t,n);else{const a=Xf(e);r={...t,x:t.x-a.x,y:t.y-a.y}}return Zo(r)}function Uf(e,t){const n=vn(e);return n===t||!We(n)||Vn(n)?!1:Nt(n).position==="fixed"||Uf(n,t)}function O4(e,t){const n=t.get(e);if(n)return n;let r=Tn(e,[],!1).filter(u=>We(u)&&On(u)!=="body"),a=null;const o=Nt(e).position==="fixed";let i=o?vn(e):e;for(;We(i)&&!Vn(i);){const u=Nt(i),s=Bs(i);!s&&u.position==="fixed"&&(a=null),(o?!s&&!a:!s&&u.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Za(i)&&!s&&Uf(e,i))?r=r.filter(c=>c!==i):a=u,i=vn(i)}return t.set(e,r),r}function L4(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const i=[...n==="clippingAncestors"?Ei(t)?[]:O4(t,this._c):[].concat(n),r],u=i[0],s=i.reduce((l,c)=>{const f=gc(t,c,a);return l.top=or(f.top,l.top),l.right=Ho(f.right,l.right),l.bottom=Ho(f.bottom,l.bottom),l.left=or(f.left,l.left),l},gc(t,u,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function G4(e){const{width:t,height:n}=Zf(e);return{width:t,height:n}}function H4(e,t,n){const r=tt(t),a=Cn(t),o=n==="fixed",i=sr(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const s=kn(0);if(r||!r&&!o)if((On(t)!=="body"||Za(a))&&(u=Si(t)),r){const f=sr(t,!0,o,t);s.x=f.x+t.clientLeft,s.y=f.y+t.clientTop}else a&&(s.x=Yf(a));const l=i.left+u.scrollLeft-s.x,c=i.top+u.scrollTop-s.y;return{x:l,y:c,width:i.width,height:i.height}}function Qi(e){return Nt(e).position==="static"}function mc(e,t){return!tt(e)||Nt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Jf(e,t){const n=St(e);if(Ei(e))return n;if(!tt(e)){let a=vn(e);for(;a&&!Vn(a);){if(We(a)&&!Qi(a))return a;a=vn(a)}return n}let r=mc(e,t);for(;r&&G1(r)&&Qi(r);)r=mc(r,t);return r&&Vn(r)&&Qi(r)&&!Bs(r)?n:r||H1(e)||n}const W4=async function(e){const t=this.getOffsetParent||Jf,n=this.getDimensions,r=await n(e.floating);return{reference:H4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function j4(e){return Nt(e).direction==="rtl"}const z4={convertOffsetParentRelativeRectToViewportRelativeRect:V4,getDocumentElement:Cn,getClippingRect:L4,getOffsetParent:Jf,getElementRects:W4,getClientRects:k4,getDimensions:G4,getScale:Mr,isElement:We,isRTL:j4};function Z4(e,t){let n=null,r;const a=Cn(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function i(u,s){u===void 0&&(u=!1),s===void 0&&(s=1),o();const{left:l,top:c,width:f,height:g}=e.getBoundingClientRect();if(u||t(),!f||!g)return;const d=uo(c),m=uo(a.clientWidth-(l+f)),h=uo(a.clientHeight-(c+g)),y=uo(l),b={rootMargin:-d+"px "+-m+"px "+-h+"px "+-y+"px",threshold:or(0,Ho(1,s))||1};let C=!0;function w(x){const I=x[0].intersectionRatio;if(I!==s){if(!C)return i();I?i(!1,I):r=setTimeout(()=>{i(!1,1e-7)},1e3)}C=!1}try{n=new IntersectionObserver(w,{...b,root:a.ownerDocument})}catch{n=new IntersectionObserver(w,b)}n.observe(e)}return i(!0),o}function Kf(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,l=ks(e),c=a||o?[...l?Tn(l):[],...Tn(t)]:[];c.forEach(p=>{a&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const f=l&&u?Z4(l,n):null;let g=-1,d=null;i&&(d=new ResizeObserver(p=>{let[b]=p;b&&b.target===l&&d&&(d.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var C;(C=d)==null||C.observe(t)})),n()}),l&&!s&&d.observe(l),d.observe(t));let m,h=s?sr(e):null;s&&y();function y(){const p=sr(e);h&&(p.x!==h.x||p.y!==h.y||p.width!==h.width||p.height!==h.height)&&n(),h=p,m=requestAnimationFrame(y)}return n(),()=>{var p;c.forEach(b=>{a&&b.removeEventListener("scroll",n),o&&b.removeEventListener("resize",n)}),f==null||f(),(p=d)==null||p.disconnect(),d=null,s&&cancelAnimationFrame(m)}}const X4=A4,Y4=$4,U4=P4,J4=R4,K4=(e,t,n)=>{const r=new Map,a={platform:z4,...n},o={...a.platform,_c:r};return E4(e,t,{...a,platform:o})};var Ro=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Jo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Jo(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const o=a[r];if(!(o==="_owner"&&e.$$typeof)&&!Jo(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Qf(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pc(e,t){const n=Qf(e);return Math.round(t*n)/n}function hc(e){const t=M.useRef(e);return Ro(()=>{t.current=e}),t}function Q4(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:i}={},transform:u=!0,whileElementsMounted:s,open:l}=e,[c,f]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,d]=M.useState(r);Jo(g,r)||d(r);const[m,h]=M.useState(null),[y,p]=M.useState(null),b=M.useCallback($=>{$!==I.current&&(I.current=$,h($))},[]),C=M.useCallback($=>{$!==F.current&&(F.current=$,p($))},[]),w=o||m,x=i||y,I=M.useRef(null),F=M.useRef(null),D=M.useRef(c),T=s!=null,V=hc(s),S=hc(a),k=M.useCallback(()=>{if(!I.current||!F.current)return;const $={placement:t,strategy:n,middleware:g};S.current&&($.platform=S.current),K4(I.current,F.current,$).then(L=>{const H={...L,isPositioned:!0};P.current&&!Jo(D.current,H)&&(D.current=H,If.flushSync(()=>{f(H)}))})},[g,t,n,S]);Ro(()=>{l===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,f($=>({...$,isPositioned:!1})))},[l]);const P=M.useRef(!1);Ro(()=>(P.current=!0,()=>{P.current=!1}),[]),Ro(()=>{if(w&&(I.current=w),x&&(F.current=x),w&&x){if(V.current)return V.current(w,x,k);k()}},[w,x,k,V,T]);const R=M.useMemo(()=>({reference:I,floating:F,setReference:b,setFloating:C}),[b,C]),_=M.useMemo(()=>({reference:w,floating:x}),[w,x]),B=M.useMemo(()=>{const $={position:n,left:0,top:0};if(!_.floating)return $;const L=pc(_.floating,c.x),H=pc(_.floating,c.y);return u?{...$,transform:"translate("+L+"px, "+H+"px)",...Qf(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:H}},[n,u,_.floating,c.x,c.y]);return M.useMemo(()=>({...c,update:k,refs:R,elements:_,floatingStyles:B}),[c,k,R,_,B])}const q4=(e,t)=>({...X4(e),options:[e,t]}),ey=(e,t)=>({...U4(e),options:[e,t]}),ty=(e,t)=>({...J4(e),options:[e,t]}),ny=(e,t)=>({...Y4(e),options:[e,t]}),qf={...M},ry=qf.useInsertionEffect,ay=ry||(e=>e());function Rn(e){const t=M.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return ay(()=>{t.current=e}),M.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.current==null?void 0:t.current(...r)},[])}let bc=0;function jn(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:a=!1}=t;r&&cancelAnimationFrame(bc);const o=()=>e==null?void 0:e.focus({preventScroll:n});a?o():bc=requestAnimationFrame(o)}var yt=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ko.apply(this,arguments)}let vc=!1,oy=0;const yc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+oy++;function iy(){const[e,t]=M.useState(()=>vc?yc():void 0);return yt(()=>{e==null&&t(yc())},[]),M.useEffect(()=>{vc=!0},[]),e}const uy=qf.useId,Ms=uy||iy;let Wu;process.env.NODE_ENV!=="production"&&(Wu=new Set);function sy(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const a="Floating UI: "+n.join(" ");if(!((e=Wu)!=null&&e.has(a))){var o;(o=Wu)==null||o.add(a),console.error(a)}}function ly(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(a=>a(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(a=>a!==n))||[])}}}const cy=M.createContext(null),dy=M.createContext(null),eg=()=>{var e;return((e=M.useContext(cy))==null?void 0:e.id)||null},_s=()=>M.useContext(dy);function Da(e){return"data-floating-ui-"+e}function tr(e){const t=v.useRef(e);return yt(()=>{t.current=e}),t}function fy(e,t){var n;let r=[],a=(n=e.find(o=>o.id===t))==null?void 0:n.parentId;for(;a;){const o=e.find(i=>i.id===a);a=o==null?void 0:o.parentId,o&&(r=r.concat(o))}return r}function pa(e,t){let n=e.filter(a=>{var o;return a.parentId===t&&((o=a.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(a=>{var o;return(o=r)==null?void 0:o.some(i=>{var u;return a.parentId===i.id&&((u=a.context)==null?void 0:u.open)})}),n=n.concat(r);return n}let wr=new WeakMap,so=new WeakSet,lo={},qi=0;const gy=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,tg=e=>e&&(e.host||tg(e.parentNode)),my=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=tg(n);return e.contains(r)?r:null}).filter(n=>n!=null);function py(e,t,n,r){const a="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,i=my(t,e),u=new Set,s=new Set(i),l=[];lo[a]||(lo[a]=new WeakMap);const c=lo[a];i.forEach(f),g(t),u.clear();function f(d){!d||u.has(d)||(u.add(d),d.parentNode&&f(d.parentNode))}function g(d){!d||s.has(d)||[].forEach.call(d.children,m=>{if(On(m)!=="script")if(u.has(m))g(m);else{const h=o?m.getAttribute(o):null,y=h!==null&&h!=="false",p=(wr.get(m)||0)+1,b=(c.get(m)||0)+1;wr.set(m,p),c.set(m,b),l.push(m),p===1&&y&&so.add(m),b===1&&m.setAttribute(a,""),!y&&o&&m.setAttribute(o,"true")}})}return qi++,()=>{l.forEach(d=>{const m=(wr.get(d)||0)-1,h=(c.get(d)||0)-1;wr.set(d,m),c.set(d,h),m||(!so.has(d)&&o&&d.removeAttribute(o),so.delete(d)),h||d.removeAttribute(a)}),qi--,qi||(wr=new WeakMap,wr=new WeakMap,so=new WeakSet,lo={})}}function Cc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=Gt(e[0]).body;return py(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const wa=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ng(e,t){const n=$i(e,wa());t==="prev"&&n.reverse();const r=n.indexOf(Yn(Gt(e)));return n.slice(r+1)[0]}function rg(){return ng(document.body,"next")}function ag(){return ng(document.body,"prev")}function ha(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!It(n,r)}function hy(e){$i(e,wa()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function by(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Ns={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let vy;function xc(e){e.key==="Tab"&&(e.target,clearTimeout(vy))}const Qo=M.forwardRef(function(t,n){const[r,a]=M.useState();yt(()=>(Z1()&&a("button"),document.addEventListener("keydown",xc),()=>{document.removeEventListener("keydown",xc)}),[]);const o={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Da("focus-guard")]:"",style:Ns};return M.createElement("span",Ko({},t,o))}),og=M.createContext(null),Dc=Da("portal");function yy(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Ms(),a=ig(),[o,i]=M.useState(null),u=M.useRef(null);return yt(()=>()=>{o==null||o.remove(),queueMicrotask(()=>{u.current=null})},[o]),yt(()=>{if(!r||u.current)return;const s=t?document.getElementById(t):null;if(!s)return;const l=document.createElement("div");l.id=r,l.setAttribute(Dc,""),s.appendChild(l),u.current=l,i(l)},[t,r]),yt(()=>{if(!r||u.current)return;let s=n||(a==null?void 0:a.portalNode);s&&!We(s)&&(s=s.current),s=s||document.body;let l=null;t&&(l=document.createElement("div"),l.id=t,s.appendChild(l));const c=document.createElement("div");c.id=r,c.setAttribute(Dc,""),s=l||s,s.appendChild(c),u.current=c,i(c)},[t,n,r,a]),o}function Cy(e){const{children:t,id:n,root:r=null,preserveTabOrder:a=!0}=e,o=yy({id:n,root:r}),[i,u]=M.useState(null),s=M.useRef(null),l=M.useRef(null),c=M.useRef(null),f=M.useRef(null),g=!!i&&!i.modal&&i.open&&a&&!!(r||o);return M.useEffect(()=>{if(!o||!a||i!=null&&i.modal)return;function d(m){o&&ha(m)&&(m.type==="focusin"?by:hy)(o)}return o.addEventListener("focusin",d,!0),o.addEventListener("focusout",d,!0),()=>{o.removeEventListener("focusin",d,!0),o.removeEventListener("focusout",d,!0)}},[o,a,i==null?void 0:i.modal]),M.createElement(og.Provider,{value:M.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:s,afterOutsideRef:l,beforeInsideRef:c,afterInsideRef:f,portalNode:o,setFocusManagerState:u}),[a,o])},g&&o&&M.createElement(Qo,{"data-type":"outside",ref:s,onFocus:d=>{if(ha(d,o)){var m;(m=c.current)==null||m.focus()}else{const h=ag()||(i==null?void 0:i.refs.domReference.current);h==null||h.focus()}}}),g&&o&&M.createElement("span",{"aria-owns":o.id,style:Ns}),o&&If.createPortal(t,o),g&&o&&M.createElement(Qo,{"data-type":"outside",ref:l,onFocus:d=>{if(ha(d,o)){var m;(m=f.current)==null||m.focus()}else{const h=rg()||(i==null?void 0:i.refs.domReference.current);h==null||h.focus(),i!=null&&i.closeOnFocusOut&&(i==null||i.onOpenChange(!1,d.nativeEvent))}}}))}const ig=()=>M.useContext(og),wc=20;let Un=[];function eu(e){Un=Un.filter(n=>n.isConnected);let t=e;if(!(!t||On(t)==="body")){if(!I4(t,wa())){const n=$i(t,wa())[0];n&&(t=n)}Un.push(t),Un.length>wc&&(Un=Un.slice(-wc))}}function Ic(){return Un.slice().reverse().find(e=>e.isConnected)}const xy=M.forwardRef(function(t,n){return M.createElement("button",Ko({},t,{type:"button",ref:n,tabIndex:-1,style:Ns}))});function Dy(e){const{context:t,children:n,disabled:r=!1,order:a=["content"],guards:o=!0,initialFocus:i=0,returnFocus:u=!0,restoreFocus:s=!1,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:f=!0}=e,{open:g,refs:d,nodeId:m,onOpenChange:h,events:y,dataRef:p,floatingId:b,elements:{domReference:C,floating:w}}=t,x=typeof i=="number"&&i<0,I=K1(C)&&x,F=gy()?o:!0,D=tr(a),T=tr(i),V=tr(u),S=_s(),k=ig(),P=M.useRef(null),R=M.useRef(null),_=M.useRef(!1),B=M.useRef(!1),$=M.useRef(-1),L=k!=null,H=w==null?void 0:w.firstElementChild,G=(H==null?void 0:H.id)===b?H:w,O=Rn(function(J){return J===void 0&&(J=G),J?$i(J,wa()):[]}),W=Rn(J=>{const N=O(J);return D.current.map(j=>C&&j==="reference"?C:G&&j==="floating"?G:N).filter(Boolean).flat()});M.useEffect(()=>{if(r||!l)return;function J(j){if(j.key==="Tab"){It(G,Yn(Gt(G)))&&O().length===0&&!I&&Ki(j);const Y=W(),te=Kn(j);D.current[0]==="reference"&&te===C&&(Ki(j),j.shiftKey?jn(Y[Y.length-1]):jn(Y[1])),D.current[1]==="floating"&&te===G&&j.shiftKey&&(Ki(j),jn(Y[0]))}}const N=Gt(G);return N.addEventListener("keydown",J),()=>{N.removeEventListener("keydown",J)}},[r,C,G,l,D,I,O,W]),M.useEffect(()=>{if(r||!w)return;function J(N){const j=Kn(N),te=O().indexOf(j);te!==-1&&($.current=te)}return w.addEventListener("focusin",J),()=>{w.removeEventListener("focusin",J)}},[r,w,O]),M.useEffect(()=>{if(r||!f)return;function J(){B.current=!0,setTimeout(()=>{B.current=!1})}function N(j){const Y=j.relatedTarget;queueMicrotask(()=>{const te=!(It(C,Y)||It(w,Y)||It(Y,w)||It(k==null?void 0:k.portalNode,Y)||Y!=null&&Y.hasAttribute(Da("focus-guard"))||S&&(pa(S.nodesRef.current,m).find(de=>{var le,z;return It((le=de.context)==null?void 0:le.elements.floating,Y)||It((z=de.context)==null?void 0:z.elements.domReference,Y)})||fy(S.nodesRef.current,m).find(de=>{var le,z;return((le=de.context)==null?void 0:le.elements.floating)===Y||((z=de.context)==null?void 0:z.elements.domReference)===Y})));if(s&&te&&Yn(Gt(G))===Gt(G).body){tt(G)&&(G==null||G.focus());const de=$.current,le=O(),z=le[de]||le[le.length-1]||G;tt(z)&&z.focus()}(I||!l)&&Y&&te&&!B.current&&Y!==Ic()&&(_.current=!0,h(!1,j))})}if(w&&tt(C))return C.addEventListener("focusout",N),C.addEventListener("pointerdown",J),w.addEventListener("focusout",N),()=>{C.removeEventListener("focusout",N),C.removeEventListener("pointerdown",J),w.removeEventListener("focusout",N)}},[r,C,w,G,l,m,S,k,h,f,s,O,I]),M.useEffect(()=>{var J;if(r)return;const N=Array.from((k==null||(J=k.portalNode)==null?void 0:J.querySelectorAll("["+Da("portal")+"]"))||[]);if(w){const j=[w,...N,P.current,R.current,D.current.includes("reference")||I?C:null].filter(te=>te!=null),Y=l||I?Cc(j,F,!F):Cc(j);return()=>{Y()}}},[r,C,w,l,D,k,I,F]),yt(()=>{if(r||!tt(G))return;const J=Gt(G),N=Yn(J);queueMicrotask(()=>{const j=W(G),Y=T.current,te=(typeof Y=="number"?j[Y]:Y.current)||G,de=It(G,N);!x&&!de&&g&&jn(te,{preventScroll:te===G})})},[r,g,G,x,W,T]),yt(()=>{if(r||!G)return;let J=!1;const N=Gt(G),j=Yn(N);let te=p.current.openEvent;eu(j);function de(le){let{open:z,reason:Xe,event:_e,nested:Ne}=le;z&&(te=_e),Xe==="escape-key"&&d.domReference.current&&eu(d.domReference.current),Xe==="hover"&&_e.type==="mouseleave"&&(_.current=!0),Xe==="outside-press"&&(Ne?(_.current=!1,J=!0):_.current=!(j1(_e)||z1(_e)))}return y.on("openchange",de),()=>{y.off("openchange",de);const le=Yn(N),z=It(w,le)||S&&pa(S.nodesRef.current,m).some(Ne=>{var Ge;return It((Ge=Ne.context)==null?void 0:Ge.elements.floating,le)});(z||te&&["click","mousedown"].includes(te.type))&&d.domReference.current&&eu(d.domReference.current);const _e=Ic();V.current&&!_.current&&tt(_e)&&(!(_e!==le&&le!==N.body)||z)&&jn(_e,{cancelPrevious:!1,preventScroll:J})}},[r,w,G,V,p,d,y,S,m]),yt(()=>{if(!r&&k)return k.setFocusManagerState({modal:l,closeOnFocusOut:f,open:g,onOpenChange:h,refs:d}),()=>{k.setFocusManagerState(null)}},[r,k,l,g,h,d,f]),yt(()=>{if(r||!G||typeof MutationObserver!="function"||x)return;const J=()=>{const j=G.getAttribute("tabindex"),Y=O(),te=Yn(Gt(w)),de=Y.indexOf(te);de!==-1&&($.current=de),D.current.includes("floating")||te!==d.domReference.current&&Y.length===0?j!=="0"&&G.setAttribute("tabindex","0"):j!=="-1"&&G.setAttribute("tabindex","-1")};J();const N=new MutationObserver(J);return N.observe(G,{childList:!0,subtree:!0,attributes:!0}),()=>{N.disconnect()}},[r,w,G,d,D,O,x]);function oe(J){return r||!c||!l?null:M.createElement(xy,{ref:J==="start"?P:R,onClick:N=>h(!1,N.nativeEvent)},typeof c=="string"?c:"Dismiss")}const ye=!r&&F&&(l?!I:!0)&&(L||l);return M.createElement(M.Fragment,null,ye&&M.createElement(Qo,{"data-type":"inside",ref:k==null?void 0:k.beforeInsideRef,onFocus:J=>{if(l){const j=W();jn(a[0]==="reference"?j[0]:j[j.length-1])}else if(k!=null&&k.preserveTabOrder&&k.portalNode)if(_.current=!1,ha(J,k.portalNode)){const j=rg()||C;j==null||j.focus()}else{var N;(N=k.beforeOutsideRef.current)==null||N.focus()}}}),!I&&oe("start"),n,oe("end"),ye&&M.createElement(Qo,{"data-type":"inside",ref:k==null?void 0:k.afterInsideRef,onFocus:J=>{if(l)jn(W()[0]);else if(k!=null&&k.preserveTabOrder&&k.portalNode)if(f&&(_.current=!0),ha(J,k.portalNode)){const j=ag()||C;j==null||j.focus()}else{var N;(N=k.afterOutsideRef.current)==null||N.focus()}}}))}function Ec(e){return tt(e.target)&&e.target.tagName==="BUTTON"}function Sc(e){return _f(e)}function wy(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:a,elements:{domReference:o}}=e,{enabled:i=!0,event:u="click",toggle:s=!0,ignoreMouse:l=!1,keyboardHandlers:c=!0}=t,f=M.useRef(),g=M.useRef(!1),d=M.useMemo(()=>({onPointerDown(m){f.current=m.pointerType},onMouseDown(m){const h=f.current;m.button===0&&u!=="click"&&(uc(h)&&l||(n&&s&&(!a.current.openEvent||a.current.openEvent.type==="mousedown")?r(!1,m.nativeEvent,"click"):(m.preventDefault(),r(!0,m.nativeEvent,"click"))))},onClick(m){const h=f.current;if(u==="mousedown"&&f.current){f.current=void 0;return}uc(h)&&l||(n&&s&&(!a.current.openEvent||a.current.openEvent.type==="click")?r(!1,m.nativeEvent,"click"):r(!0,m.nativeEvent,"click"))},onKeyDown(m){f.current=void 0,!(m.defaultPrevented||!c||Ec(m))&&(m.key===" "&&!Sc(o)&&(m.preventDefault(),g.current=!0),m.key==="Enter"&&r(!(n&&s),m.nativeEvent,"click"))},onKeyUp(m){m.defaultPrevented||!c||Ec(m)||Sc(o)||m.key===" "&&g.current&&(g.current=!1,r(!(n&&s),m.nativeEvent,"click"))}}),[a,o,u,l,c,r,n,s]);return M.useMemo(()=>i?{reference:d}:{},[i,d])}const Iy={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Ey={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},$c=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function Sy(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:a,dataRef:o}=e,{enabled:i=!0,escapeKey:u=!0,outsidePress:s=!0,outsidePressEvent:l="pointerdown",referencePress:c=!1,referencePressEvent:f="pointerdown",ancestorScroll:g=!1,bubbles:d,capture:m}=t,h=_s(),y=Rn(typeof s=="function"?s:()=>!1),p=typeof s=="function"?y:s,b=M.useRef(!1),C=M.useRef(!1),{escapeKey:w,outsidePress:x}=$c(d),{escapeKey:I,outsidePress:F}=$c(m),D=Rn(R=>{var _;if(!n||!i||!u||R.key!=="Escape")return;const B=(_=o.current.floatingContext)==null?void 0:_.nodeId,$=h?pa(h.nodesRef.current,B):[];if(!w&&(R.stopPropagation(),$.length>0)){let L=!0;if($.forEach(H=>{var G;if((G=H.context)!=null&&G.open&&!H.context.dataRef.current.__escapeKeyBubbles){L=!1;return}}),!L)return}r(!1,Y1(R)?R.nativeEvent:R,"escape-key")}),T=Rn(R=>{var _;const B=()=>{var $;D(R),($=Kn(R))==null||$.removeEventListener("keydown",B)};(_=Kn(R))==null||_.addEventListener("keydown",B)}),V=Rn(R=>{var _;const B=b.current;b.current=!1;const $=C.current;if(C.current=!1,l==="click"&&$||B||typeof p=="function"&&!p(R))return;const L=Kn(R),H="["+Da("inert")+"]",G=Gt(a.floating).querySelectorAll(H);let O=We(L)?L:null;for(;O&&!Vn(O);){const J=vn(O);if(Vn(J)||!We(J))break;O=J}if(G.length&&We(L)&&!U1(L)&&!It(L,a.floating)&&Array.from(G).every(J=>!It(O,J)))return;if(tt(L)&&P){const J=L.clientWidth>0&&L.scrollWidth>L.clientWidth,N=L.clientHeight>0&&L.scrollHeight>L.clientHeight;let j=N&&R.offsetX>L.clientWidth;if(N&&Nt(L).direction==="rtl"&&(j=R.offsetX<=L.offsetWidth-L.clientWidth),j||J&&R.offsetY>L.clientHeight)return}const W=(_=o.current.floatingContext)==null?void 0:_.nodeId,oe=h&&pa(h.nodesRef.current,W).some(J=>{var N;return Ji(R,(N=J.context)==null?void 0:N.elements.floating)});if(Ji(R,a.floating)||Ji(R,a.domReference)||oe)return;const ye=h?pa(h.nodesRef.current,W):[];if(ye.length>0){let J=!0;if(ye.forEach(N=>{var j;if((j=N.context)!=null&&j.open&&!N.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,R,"outside-press")}),S=Rn(R=>{var _;const B=()=>{var $;V(R),($=Kn(R))==null||$.removeEventListener(l,B)};(_=Kn(R))==null||_.addEventListener(l,B)});M.useEffect(()=>{if(!n||!i)return;o.current.__escapeKeyBubbles=w,o.current.__outsidePressBubbles=x;function R($){r(!1,$,"ancestor-scroll")}const _=Gt(a.floating);u&&_.addEventListener("keydown",I?T:D,I),p&&_.addEventListener(l,F?S:V,F);let B=[];return g&&(We(a.domReference)&&(B=Tn(a.domReference)),We(a.floating)&&(B=B.concat(Tn(a.floating))),!We(a.reference)&&a.reference&&a.reference.contextElement&&(B=B.concat(Tn(a.reference.contextElement)))),B=B.filter($=>{var L;return $!==((L=_.defaultView)==null?void 0:L.visualViewport)}),B.forEach($=>{$.addEventListener("scroll",R,{passive:!0})}),()=>{u&&_.removeEventListener("keydown",I?T:D,I),p&&_.removeEventListener(l,F?S:V,F),B.forEach($=>{$.removeEventListener("scroll",R)})}},[o,a,u,p,l,n,r,g,i,w,x,D,I,T,V,F,S]),M.useEffect(()=>{b.current=!1},[p,l]);const k=M.useMemo(()=>({onKeyDown:D,[Iy[f]]:R=>{c&&r(!1,R.nativeEvent,"reference-press")}}),[D,r,c,f]),P=M.useMemo(()=>({onKeyDown:D,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[Ey[l]]:()=>{b.current=!0}}),[D,l]);return M.useMemo(()=>i?{reference:k,floating:P}:{},[i,k,P])}function $y(e){const{open:t=!1,onOpenChange:n,elements:r}=e,a=Ms(),o=M.useRef({}),[i]=M.useState(()=>ly()),u=eg()!=null;if(process.env.NODE_ENV!=="production"){const d=r.reference;d&&!We(d)&&sy("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[s,l]=M.useState(r.reference),c=Rn((d,m,h)=>{o.current.openEvent=d?m:void 0,i.emit("openchange",{open:d,event:m,reason:h,nested:u}),n==null||n(d,m,h)}),f=M.useMemo(()=>({setPositionReference:l}),[]),g=M.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return M.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:g,events:i,floatingId:a,refs:f}),[t,c,g,i,a,f])}function Ry(e){e===void 0&&(e={});const{nodeId:t}=e,n=$y({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,a=r.elements,[o,i]=M.useState(null),[u,s]=M.useState(null),c=(a==null?void 0:a.reference)||o,f=M.useRef(null),g=_s();yt(()=>{c&&(f.current=c)},[c]);const d=Q4({...e,elements:{...a,...u&&{reference:u}}}),m=M.useCallback(C=>{const w=We(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;s(w),d.refs.setReference(w)},[d.refs]),h=M.useCallback(C=>{(We(C)||C===null)&&(f.current=C,i(C)),(We(d.refs.reference.current)||d.refs.reference.current===null||C!==null&&!We(C))&&d.refs.setReference(C)},[d.refs]),y=M.useMemo(()=>({...d.refs,setReference:h,setPositionReference:m,domReference:f}),[d.refs,h,m]),p=M.useMemo(()=>({...d.elements,domReference:c}),[d.elements,c]),b=M.useMemo(()=>({...d,...r,refs:y,elements:p,nodeId:t}),[d,y,p,t,r]);return yt(()=>{r.dataRef.current.floatingContext=b;const C=g==null?void 0:g.nodesRef.current.find(w=>w.id===t);C&&(C.context=b)}),M.useMemo(()=>({...d,context:b,refs:y,elements:p}),[d,y,p,b])}const Rc="active",Fc="selected";function tu(e,t,n){const r=new Map,a=n==="item";let o=e;if(a&&e){const{[Rc]:i,[Fc]:u,...s}=e;o=s}return{...n==="floating"&&{tabIndex:-1},...o,...t.map(i=>{const u=i?i[n]:null;return typeof u=="function"?e?u(e):null:u}).concat(e).reduce((i,u)=>(u&&Object.entries(u).forEach(s=>{let[l,c]=s;if(!(a&&[Rc,Fc].includes(l)))if(l.indexOf("on")===0){if(r.has(l)||r.set(l,[]),typeof c=="function"){var f;(f=r.get(l))==null||f.push(c),i[l]=function(){for(var g,d=arguments.length,m=new Array(d),h=0;h<d;h++)m[h]=arguments[h];return(g=r.get(l))==null?void 0:g.map(y=>y(...m)).find(y=>y!==void 0)}}}else i[l]=c}),i),{})}}function Fy(e){e===void 0&&(e=[]);const t=e.map(u=>u==null?void 0:u.reference),n=e.map(u=>u==null?void 0:u.floating),r=e.map(u=>u==null?void 0:u.item),a=M.useCallback(u=>tu(u,e,"reference"),t),o=M.useCallback(u=>tu(u,e,"floating"),n),i=M.useCallback(u=>tu(u,e,"item"),r);return M.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:i}),[a,o,i])}const Ay=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Py(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:a}=e,{enabled:o=!0,role:i="dialog"}=t,u=(n=Ay.get(i))!=null?n:i,s=Ms(),c=eg()!=null,f=M.useMemo(()=>u==="tooltip"||i==="label"?{["aria-"+(i==="label"?"labelledby":"describedby")]:r?a:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":u==="alertdialog"?"dialog":u,"aria-controls":r?a:void 0,...u==="listbox"&&{role:"combobox"},...u==="menu"&&{id:s},...u==="menu"&&c&&{role:"menuitem"},...i==="select"&&{"aria-autocomplete":"none"},...i==="combobox"&&{"aria-autocomplete":"list"}},[u,a,c,r,s,i]),g=M.useMemo(()=>{const m={id:a,...u&&{role:u}};return u==="tooltip"||i==="label"?m:{...m,...u==="menu"&&{"aria-labelledby":s}}},[u,a,s,i]),d=M.useCallback(m=>{let{active:h,selected:y}=m;const p={role:"option",...h&&{id:a+"-option"}};switch(i){case"select":return{...p,"aria-selected":h&&y};case"combobox":return{...p,...h&&{"aria-selected":!0}}}return{}},[a,i]);return M.useMemo(()=>o?{reference:f,floating:g,item:d}:{},[o,f,g,d])}const Ac=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Ir(e,t){return typeof e=="function"?e(t):e}function By(e,t){const[n,r]=M.useState(e);return e&&!n&&r(!0),M.useEffect(()=>{if(!e&&n){const a=setTimeout(()=>r(!1),t);return()=>clearTimeout(a)}},[e,n,t]),n}function Ty(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:a=250}=t,i=(typeof a=="number"?a:a.close)||0,[u,s]=M.useState("unmounted"),l=By(n,i);return!l&&u==="close"&&s("unmounted"),yt(()=>{if(r){if(n){s("initial");const c=requestAnimationFrame(()=>{s("open")});return()=>{cancelAnimationFrame(c)}}s("close")}},[n,r]),{isMounted:l,status:u}}function Vy(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:a,common:o,duration:i=250}=t,u=e.placement,s=u.split("-")[0],l=M.useMemo(()=>({side:s,placement:u}),[s,u]),c=typeof i=="number",f=(c?i:i.open)||0,g=(c?i:i.close)||0,[d,m]=M.useState(()=>({...Ir(o,l),...Ir(n,l)})),{isMounted:h,status:y}=Ty(e,{duration:i}),p=tr(n),b=tr(r),C=tr(a),w=tr(o);return yt(()=>{const x=Ir(p.current,l),I=Ir(C.current,l),F=Ir(w.current,l),D=Ir(b.current,l)||Object.keys(x).reduce((T,V)=>(T[V]="",T),{});if(y==="initial"&&m(T=>({transitionProperty:T.transitionProperty,...F,...x})),y==="open"&&m({transitionProperty:Object.keys(D).map(Ac).join(","),transitionDuration:f+"ms",...F,...D}),y==="close"){const T=I||x;m({transitionProperty:Object.keys(T).map(Ac).join(","),transitionDuration:g+"ms",...F,...T})}},[g,C,p,b,w,f,y,l]),{isMounted:h,styles:d}}const ky="_popover_7cinv_1",My={popover:ky},Ya=v.forwardRef((e,t)=>{const{children:n,className:r,offset:a=10,isShow:o,anchorEl:i,useAutoPlacement:u=!1,flipOptions:s,autoPlacementOptions:l,zIndex:c,width:f,styleInnerPopover:g={},floatingOptions:d={},...m}=e,[h,y]=v.useState(!1),{refs:p,floatingStyles:b,context:C}=Ry({open:h,onOpenChange:y,middleware:[q4(a),u?ny(l):ty(s),ey()],whileElementsMounted:Kf,...d}),w=wy(C),x=Sy(C),I=Py(C),{getReferenceProps:F,getFloatingProps:D}=Fy([w,x,I]),{styles:T,isMounted:V}=Vy(C),S=P=>{p.setReference(P.currentTarget),y(R=>!R)};v.useEffect(()=>{o&&i?S({currentTarget:i}):y(P=>!P)},[o,i]),v.useImperativeHandle(t,()=>({show:h,setShow:y,handlerShow:S,getReferenceProps:F}),[h]);const k=()=>{let P={...b,...T,...g};return f&&(P={...P,width:f}),(c??c===0)&&(P={...P,zIndex:c}),P};return E.jsx(E.Fragment,{children:V&&h&&E.jsx(Cy,{children:E.jsx(Dy,{context:C,modal:!1,children:E.jsx("div",{ref:p.setFloating,style:k(),...D(),className:`${My.popover} ${r??""}`,...m,children:n})})})})});Ya.displayName="Popover";const _y="_container_hlqmp_1",Ny="_input_hlqmp_7",Oy="_label_hlqmp_33",Ly="_error_hlqmp_40",Jt={container:_y,"container-input":"_container-input_hlqmp_4",input:Ny,label:Oy,error:Ly,"isset-icon":"_isset-icon_hlqmp_51","end-icon":"_end-icon_hlqmp_58","label-error":"_label-error_hlqmp_61"},ug=v.forwardRef((e,t)=>{var y;const{isRequired:n,classNameContainer:r,classNameLabelError:a,className:o,name:i,id:u,label:s,type:l="text",endIcon:c,error:f,sizeInput:g="reguler",...d}=e,m={size:{reguler:Jt.input,small:Jt.input},variant:{}},h=()=>typeof c=="function"||v.isValidElement(c);return E.jsxs("div",{className:`${Jt.container} ${r??""}`,children:[E.jsxs("div",{className:Jt["container-input"],children:[E.jsx("input",{id:u??i,className:`${(y=m.size)==null?void 0:y[g]} ${f?Jt.error:""}
|
33
|
+
*/var i4=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Xo=i4.join(","),Hf=typeof Element>"u",Zr=Hf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Yo=!Hf&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Uo=function e(t,n){var r;n===void 0&&(n=!0);var a=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=a===""||a==="true",i=o||n&&t&&e(t.parentNode);return i},u4=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},s4=function(t,n,r){if(Uo(t))return[];var a=Array.prototype.slice.apply(t.querySelectorAll(Xo));return n&&Zr.call(t,Xo)&&a.unshift(t),a=a.filter(r),a},l4=function e(t,n,r){for(var a=[],o=Array.from(t);o.length;){var i=o.shift();if(!Uo(i,!1))if(i.tagName==="SLOT"){var u=i.assignedElements(),s=u.length?u:i.children,l=e(s,!0,r);r.flatten?a.push.apply(a,l):a.push({scopeParent:i,candidates:l})}else{var c=Zr.call(i,Xo);c&&r.filter(i)&&(n||!t.includes(i))&&a.push(i);var f=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),g=!Uo(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(f&&g){var d=e(f===!0?i.children:f.children,!0,r);r.flatten?a.push.apply(a,d):a.push({scopeParent:i,candidates:d})}else o.unshift.apply(o,i.children)}}return a},Wf=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},jf=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||u4(t))&&!Wf(t)?0:t.tabIndex},c4=function(t,n){var r=jf(t);return r<0&&n&&!Wf(t)?0:r},d4=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},zf=function(t){return t.tagName==="INPUT"},f4=function(t){return zf(t)&&t.type==="hidden"},g4=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},m4=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},p4=function(t){if(!t.name)return!0;var n=t.form||Yo(t),r=function(u){return n.querySelectorAll('input[type="radio"][name="'+u+'"]')},a;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")a=r(window.CSS.escape(t.name));else try{a=r(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=m4(a,t.form);return!o||o===t},h4=function(t){return zf(t)&&t.type==="radio"},b4=function(t){return h4(t)&&!p4(t)},v4=function(t){var n,r=t&&Yo(t),a=(n=r)===null||n===void 0?void 0:n.host,o=!1;if(r&&r!==t){var i,u,s;for(o=!!((i=a)!==null&&i!==void 0&&(u=i.ownerDocument)!==null&&u!==void 0&&u.contains(a)||t!=null&&(s=t.ownerDocument)!==null&&s!==void 0&&s.contains(t));!o&&a;){var l,c,f;r=Yo(a),a=(l=r)===null||l===void 0?void 0:l.host,o=!!((c=a)!==null&&c!==void 0&&(f=c.ownerDocument)!==null&&f!==void 0&&f.contains(a))}}return o},dc=function(t){var n=t.getBoundingClientRect(),r=n.width,a=n.height;return r===0&&a===0},y4=function(t,n){var r=n.displayCheck,a=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=Zr.call(t,"details>summary:first-of-type"),i=o?t.parentElement:t;if(Zr.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof a=="function"){for(var u=t;t;){var s=t.parentElement,l=Yo(t);if(s&&!s.shadowRoot&&a(s)===!0)return dc(t);t.assignedSlot?t=t.assignedSlot:!s&&l!==t.ownerDocument?t=l.host:t=s}t=u}if(v4(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return dc(t);return!1},C4=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var a=n.children.item(r);if(a.tagName==="LEGEND")return Zr.call(n,"fieldset[disabled] *")?!0:!a.contains(t)}return!0}n=n.parentElement}return!1},x4=function(t,n){return!(n.disabled||Uo(n)||f4(n)||y4(n,t)||g4(n)||C4(n))},Hu=function(t,n){return!(b4(n)||jf(n)<0||!x4(t,n))},D4=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},w4=function e(t){var n=[],r=[];return t.forEach(function(a,o){var i=!!a.scopeParent,u=i?a.scopeParent:a,s=c4(u,i),l=i?e(a.candidates):u;s===0?i?n.push.apply(n,l):n.push(u):r.push({documentOrder:o,tabIndex:s,item:a,isScope:i,content:l})}),r.sort(d4).reduce(function(a,o){return o.isScope?a.push.apply(a,o.content):a.push(o.content),a},[]).concat(n)},$i=function(t,n){n=n||{};var r;return n.getShadowRoot?r=l4([t],n.includeContainer,{filter:Hu.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:D4}):r=s4(t,n.includeContainer,Hu.bind(null,n)),w4(r)},I4=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Zr.call(t,Xo)===!1?!1:Hu(n,t)};function fc(e,t,n){let{reference:r,floating:a}=e;const o=zr(t),i=Lf(t),u=Of(i),s=yn(t),l=o==="y",c=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,g=r[u]/2-a[u]/2;let d;switch(s){case"top":d={x:c,y:r.y-a.height};break;case"bottom":d={x:c,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:f};break;case"left":d={x:r.x-a.width,y:f};break;default:d={x:r.x,y:r.y}}switch(hn(t)){case"start":d[i]-=g*(n&&l?-1:1);break;case"end":d[i]+=g*(n&&l?-1:1);break}return d}const E4=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}=n,u=o.filter(Boolean),s=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:f}=fc(l,r,s),g=r,d={},m=0;for(let h=0;h<u.length;h++){const{name:y,fn:p}=u[h],{x:b,y:C,data:w,reset:x}=await p({x:c,y:f,initialPlacement:r,placement:g,strategy:a,middlewareData:d,rects:l,platform:i,elements:{reference:e,floating:t}});c=b??c,f=C??f,d={...d,[y]:{...d[y],...w}},x&&m<=50&&(m++,typeof x=="object"&&(x.placement&&(g=x.placement),x.rects&&(l=x.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):x.rects),{x:c,y:f}=fc(l,g,s)),h=-1)}return{x:c,y:f,placement:g,strategy:a,middlewareData:d}};async function Vs(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:o,rects:i,elements:u,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:g=!1,padding:d=0}=Xa(t,e),m=o4(d),y=u[g?f==="floating"?"reference":"floating":f],p=Zo(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:l,rootBoundary:c,strategy:s})),b=f==="floating"?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),w=await(o.isElement==null?void 0:o.isElement(C))?await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1}:{x:1,y:1},x=Zo(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:b,offsetParent:C,strategy:s}):b);return{top:(p.top-x.top+m.top)/w.y,bottom:(x.bottom-p.bottom+m.bottom)/w.y,left:(p.left-x.left+m.left)/w.x,right:(x.right-p.right+m.right)/w.x}}function S4(e,t,n){return(e?[...n.filter(a=>hn(a)===e),...n.filter(a=>hn(a)!==e)]:n.filter(a=>yn(a)===a)).filter(a=>e?hn(a)===e||(t?jo(a)!==a:!1):!0)}const $4=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,a;const{rects:o,middlewareData:i,placement:u,platform:s,elements:l}=t,{crossAxis:c=!1,alignment:f,allowedPlacements:g=lc,autoAlignment:d=!0,...m}=Xa(e,t),h=f!==void 0||g===lc?S4(f||null,d,g):g,y=await Vs(t,m),p=((n=i.autoPlacement)==null?void 0:n.index)||0,b=h[p];if(b==null)return{};const C=Gf(b,o,await(s.isRTL==null?void 0:s.isRTL(l.floating)));if(u!==b)return{reset:{placement:h[0]}};const w=[y[yn(b)],y[C[0]],y[C[1]]],x=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:b,overflows:w}],I=h[p+1];if(I)return{data:{index:p+1,overflows:x},reset:{placement:I}};const F=x.map(V=>{const S=hn(V.placement);return[V.placement,S&&c?V.overflows.slice(0,2).reduce((k,P)=>k+P,0):V.overflows[0],V.overflows]}).sort((V,S)=>V[1]-S[1]),T=((a=F.filter(V=>V[2].slice(0,hn(V[0])?2:3).every(S=>S<=0))[0])==null?void 0:a[0])||F[0][0];return T!==u?{data:{index:p+1,overflows:x},reset:{placement:T}}:{}}}},R4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:u,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...y}=Xa(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const p=yn(a),b=zr(u),C=yn(u)===u,w=await(s.isRTL==null?void 0:s.isRTL(l.floating)),x=g||(C||!h?[zo(u)]:t4(u)),I=m!=="none";!g&&I&&x.push(...r4(u,h,m,w));const F=[u,...x],D=await Vs(t,y),T=[];let V=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&T.push(D[p]),f){const R=Gf(a,i,w);T.push(D[R[0]],D[R[1]])}if(V=[...V,{placement:a,overflows:T}],!T.every(R=>R<=0)){var S,k;const R=(((S=o.flip)==null?void 0:S.index)||0)+1,_=F[R];if(_)return{data:{index:R,overflows:V},reset:{placement:_}};let B=(k=V.filter($=>$.overflows[0]<=0).sort(($,L)=>$.overflows[1]-L.overflows[1])[0])==null?void 0:k.placement;if(!B)switch(d){case"bestFit":{var P;const $=(P=V.filter(L=>{if(I){const H=zr(L.placement);return H===b||H==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(H=>H>0).reduce((H,G)=>H+G,0)]).sort((L,H)=>L[1]-H[1])[0])==null?void 0:P[0];$&&(B=$);break}case"initialPlacement":B=u;break}if(a!==B)return{reset:{placement:B}}}return{}}}};async function F4(e,t){const{placement:n,platform:r,elements:a}=e,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),i=yn(n),u=hn(n),s=zr(n)==="y",l=["left","top"].includes(i)?-1:1,c=o&&s?-1:1,f=Xa(t,e);let{mainAxis:g,crossAxis:d,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return u&&typeof m=="number"&&(d=u==="end"?m*-1:m),s?{x:d*c,y:g*l}:{x:g*l,y:d*c}}const A4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:u}=t,s=await F4(t,e);return i===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:a+s.x,y:o+s.y,data:{...s,placement:i}}}}},P4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:u={fn:y=>{let{x:p,y:b}=y;return{x:p,y:b}}},...s}=Xa(e,t),l={x:n,y:r},c=await Vs(t,s),f=zr(yn(a)),g=Nf(f);let d=l[g],m=l[f];if(o){const y=g==="y"?"top":"left",p=g==="y"?"bottom":"right",b=d+c[y],C=d-c[p];d=cc(b,d,C)}if(i){const y=f==="y"?"top":"left",p=f==="y"?"bottom":"right",b=m+c[y],C=m-c[p];m=cc(b,m,C)}const h=u.fn({...t,[g]:d,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}};function Zf(e){const t=Nt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=tt(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,u=Wo(n)!==o||Wo(r)!==i;return u&&(n=o,r=i),{width:n,height:r,$:u}}function ks(e){return We(e)?e:e.contextElement}function Mr(e){const t=ks(e);if(!tt(t))return kn(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=Zf(t);let i=(o?Wo(n.width):n.width)/r,u=(o?Wo(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!u||!Number.isFinite(u))&&(u=1),{x:i,y:u}}const B4=kn(0);function Xf(e){const t=St(e);return!Ts()||!t.visualViewport?B4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function T4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==St(e)?!1:t}function sr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=ks(e);let i=kn(1);t&&(r?We(r)&&(i=Mr(r)):i=Mr(e));const u=T4(o,n,r)?Xf(o):kn(0);let s=(a.left+u.x)/i.x,l=(a.top+u.y)/i.y,c=a.width/i.x,f=a.height/i.y;if(o){const g=St(o),d=r&&We(r)?St(r):r;let m=g,h=m.frameElement;for(;h&&r&&d!==m;){const y=Mr(h),p=h.getBoundingClientRect(),b=Nt(h),C=p.left+(h.clientLeft+parseFloat(b.paddingLeft))*y.x,w=p.top+(h.clientTop+parseFloat(b.paddingTop))*y.y;s*=y.x,l*=y.y,c*=y.x,f*=y.y,s+=C,l+=w,m=St(h),h=m.frameElement}}return Zo({width:c,height:f,x:s,y:l})}function V4(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=a==="fixed",i=Cn(r),u=t?Ei(t.floating):!1;if(r===i||u&&o)return n;let s={scrollLeft:0,scrollTop:0},l=kn(1);const c=kn(0),f=tt(r);if((f||!f&&!o)&&((On(r)!=="body"||Za(i))&&(s=Si(r)),tt(r))){const g=sr(r);l=Mr(r),c.x=g.x+r.clientLeft,c.y=g.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-s.scrollLeft*l.x+c.x,y:n.y*l.y-s.scrollTop*l.y+c.y}}function k4(e){return Array.from(e.getClientRects())}function Yf(e){return sr(Cn(e)).left+Si(e).scrollLeft}function M4(e){const t=Cn(e),n=Si(e),r=e.ownerDocument.body,a=or(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=or(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Yf(e);const u=-n.scrollTop;return Nt(r).direction==="rtl"&&(i+=or(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:u}}function _4(e,t){const n=St(e),r=Cn(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,u=0,s=0;if(a){o=a.width,i=a.height;const l=Ts();(!l||l&&t==="fixed")&&(u=a.offsetLeft,s=a.offsetTop)}return{width:o,height:i,x:u,y:s}}function N4(e,t){const n=sr(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=tt(e)?Mr(e):kn(1),i=e.clientWidth*o.x,u=e.clientHeight*o.y,s=a*o.x,l=r*o.y;return{width:i,height:u,x:s,y:l}}function gc(e,t,n){let r;if(t==="viewport")r=_4(e,n);else if(t==="document")r=M4(Cn(e));else if(We(t))r=N4(t,n);else{const a=Xf(e);r={...t,x:t.x-a.x,y:t.y-a.y}}return Zo(r)}function Uf(e,t){const n=vn(e);return n===t||!We(n)||Vn(n)?!1:Nt(n).position==="fixed"||Uf(n,t)}function O4(e,t){const n=t.get(e);if(n)return n;let r=Tn(e,[],!1).filter(u=>We(u)&&On(u)!=="body"),a=null;const o=Nt(e).position==="fixed";let i=o?vn(e):e;for(;We(i)&&!Vn(i);){const u=Nt(i),s=Bs(i);!s&&u.position==="fixed"&&(a=null),(o?!s&&!a:!s&&u.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Za(i)&&!s&&Uf(e,i))?r=r.filter(c=>c!==i):a=u,i=vn(i)}return t.set(e,r),r}function L4(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const i=[...n==="clippingAncestors"?Ei(t)?[]:O4(t,this._c):[].concat(n),r],u=i[0],s=i.reduce((l,c)=>{const f=gc(t,c,a);return l.top=or(f.top,l.top),l.right=Ho(f.right,l.right),l.bottom=Ho(f.bottom,l.bottom),l.left=or(f.left,l.left),l},gc(t,u,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function G4(e){const{width:t,height:n}=Zf(e);return{width:t,height:n}}function H4(e,t,n){const r=tt(t),a=Cn(t),o=n==="fixed",i=sr(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const s=kn(0);if(r||!r&&!o)if((On(t)!=="body"||Za(a))&&(u=Si(t)),r){const f=sr(t,!0,o,t);s.x=f.x+t.clientLeft,s.y=f.y+t.clientTop}else a&&(s.x=Yf(a));const l=i.left+u.scrollLeft-s.x,c=i.top+u.scrollTop-s.y;return{x:l,y:c,width:i.width,height:i.height}}function Qi(e){return Nt(e).position==="static"}function mc(e,t){return!tt(e)||Nt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Jf(e,t){const n=St(e);if(Ei(e))return n;if(!tt(e)){let a=vn(e);for(;a&&!Vn(a);){if(We(a)&&!Qi(a))return a;a=vn(a)}return n}let r=mc(e,t);for(;r&&G1(r)&&Qi(r);)r=mc(r,t);return r&&Vn(r)&&Qi(r)&&!Bs(r)?n:r||H1(e)||n}const W4=async function(e){const t=this.getOffsetParent||Jf,n=this.getDimensions,r=await n(e.floating);return{reference:H4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function j4(e){return Nt(e).direction==="rtl"}const z4={convertOffsetParentRelativeRectToViewportRelativeRect:V4,getDocumentElement:Cn,getClippingRect:L4,getOffsetParent:Jf,getElementRects:W4,getClientRects:k4,getDimensions:G4,getScale:Mr,isElement:We,isRTL:j4};function Z4(e,t){let n=null,r;const a=Cn(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function i(u,s){u===void 0&&(u=!1),s===void 0&&(s=1),o();const{left:l,top:c,width:f,height:g}=e.getBoundingClientRect();if(u||t(),!f||!g)return;const d=uo(c),m=uo(a.clientWidth-(l+f)),h=uo(a.clientHeight-(c+g)),y=uo(l),b={rootMargin:-d+"px "+-m+"px "+-h+"px "+-y+"px",threshold:or(0,Ho(1,s))||1};let C=!0;function w(x){const I=x[0].intersectionRatio;if(I!==s){if(!C)return i();I?i(!1,I):r=setTimeout(()=>{i(!1,1e-7)},1e3)}C=!1}try{n=new IntersectionObserver(w,{...b,root:a.ownerDocument})}catch{n=new IntersectionObserver(w,b)}n.observe(e)}return i(!0),o}function Kf(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,l=ks(e),c=a||o?[...l?Tn(l):[],...Tn(t)]:[];c.forEach(p=>{a&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const f=l&&u?Z4(l,n):null;let g=-1,d=null;i&&(d=new ResizeObserver(p=>{let[b]=p;b&&b.target===l&&d&&(d.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var C;(C=d)==null||C.observe(t)})),n()}),l&&!s&&d.observe(l),d.observe(t));let m,h=s?sr(e):null;s&&y();function y(){const p=sr(e);h&&(p.x!==h.x||p.y!==h.y||p.width!==h.width||p.height!==h.height)&&n(),h=p,m=requestAnimationFrame(y)}return n(),()=>{var p;c.forEach(b=>{a&&b.removeEventListener("scroll",n),o&&b.removeEventListener("resize",n)}),f==null||f(),(p=d)==null||p.disconnect(),d=null,s&&cancelAnimationFrame(m)}}const X4=A4,Y4=$4,U4=P4,J4=R4,K4=(e,t,n)=>{const r=new Map,a={platform:z4,...n},o={...a.platform,_c:r};return E4(e,t,{...a,platform:o})};var Ro=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Jo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Jo(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const o=a[r];if(!(o==="_owner"&&e.$$typeof)&&!Jo(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Qf(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pc(e,t){const n=Qf(e);return Math.round(t*n)/n}function hc(e){const t=M.useRef(e);return Ro(()=>{t.current=e}),t}function Q4(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:i}={},transform:u=!0,whileElementsMounted:s,open:l}=e,[c,f]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,d]=M.useState(r);Jo(g,r)||d(r);const[m,h]=M.useState(null),[y,p]=M.useState(null),b=M.useCallback($=>{$!==I.current&&(I.current=$,h($))},[]),C=M.useCallback($=>{$!==F.current&&(F.current=$,p($))},[]),w=o||m,x=i||y,I=M.useRef(null),F=M.useRef(null),D=M.useRef(c),T=s!=null,V=hc(s),S=hc(a),k=M.useCallback(()=>{if(!I.current||!F.current)return;const $={placement:t,strategy:n,middleware:g};S.current&&($.platform=S.current),K4(I.current,F.current,$).then(L=>{const H={...L,isPositioned:!0};P.current&&!Jo(D.current,H)&&(D.current=H,If.flushSync(()=>{f(H)}))})},[g,t,n,S]);Ro(()=>{l===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,f($=>({...$,isPositioned:!1})))},[l]);const P=M.useRef(!1);Ro(()=>(P.current=!0,()=>{P.current=!1}),[]),Ro(()=>{if(w&&(I.current=w),x&&(F.current=x),w&&x){if(V.current)return V.current(w,x,k);k()}},[w,x,k,V,T]);const R=M.useMemo(()=>({reference:I,floating:F,setReference:b,setFloating:C}),[b,C]),_=M.useMemo(()=>({reference:w,floating:x}),[w,x]),B=M.useMemo(()=>{const $={position:n,left:0,top:0};if(!_.floating)return $;const L=pc(_.floating,c.x),H=pc(_.floating,c.y);return u?{...$,transform:"translate("+L+"px, "+H+"px)",...Qf(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:H}},[n,u,_.floating,c.x,c.y]);return M.useMemo(()=>({...c,update:k,refs:R,elements:_,floatingStyles:B}),[c,k,R,_,B])}const q4=(e,t)=>({...X4(e),options:[e,t]}),ey=(e,t)=>({...U4(e),options:[e,t]}),ty=(e,t)=>({...J4(e),options:[e,t]}),ny=(e,t)=>({...Y4(e),options:[e,t]}),qf={...M},ry=qf.useInsertionEffect,ay=ry||(e=>e());function Rn(e){const t=M.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return ay(()=>{t.current=e}),M.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.current==null?void 0:t.current(...r)},[])}let bc=0;function jn(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:a=!1}=t;r&&cancelAnimationFrame(bc);const o=()=>e==null?void 0:e.focus({preventScroll:n});a?o():bc=requestAnimationFrame(o)}var yt=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ko.apply(this,arguments)}let vc=!1,oy=0;const yc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+oy++;function iy(){const[e,t]=M.useState(()=>vc?yc():void 0);return yt(()=>{e==null&&t(yc())},[]),M.useEffect(()=>{vc=!0},[]),e}const uy=qf.useId,Ms=uy||iy;let Wu;process.env.NODE_ENV!=="production"&&(Wu=new Set);function sy(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const a="Floating UI: "+n.join(" ");if(!((e=Wu)!=null&&e.has(a))){var o;(o=Wu)==null||o.add(a),console.error(a)}}function ly(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(a=>a(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(a=>a!==n))||[])}}}const cy=M.createContext(null),dy=M.createContext(null),eg=()=>{var e;return((e=M.useContext(cy))==null?void 0:e.id)||null},_s=()=>M.useContext(dy);function Da(e){return"data-floating-ui-"+e}function tr(e){const t=v.useRef(e);return yt(()=>{t.current=e}),t}function fy(e,t){var n;let r=[],a=(n=e.find(o=>o.id===t))==null?void 0:n.parentId;for(;a;){const o=e.find(i=>i.id===a);a=o==null?void 0:o.parentId,o&&(r=r.concat(o))}return r}function pa(e,t){let n=e.filter(a=>{var o;return a.parentId===t&&((o=a.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(a=>{var o;return(o=r)==null?void 0:o.some(i=>{var u;return a.parentId===i.id&&((u=a.context)==null?void 0:u.open)})}),n=n.concat(r);return n}let wr=new WeakMap,so=new WeakSet,lo={},qi=0;const gy=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,tg=e=>e&&(e.host||tg(e.parentNode)),my=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=tg(n);return e.contains(r)?r:null}).filter(n=>n!=null);function py(e,t,n,r){const a="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,i=my(t,e),u=new Set,s=new Set(i),l=[];lo[a]||(lo[a]=new WeakMap);const c=lo[a];i.forEach(f),g(t),u.clear();function f(d){!d||u.has(d)||(u.add(d),d.parentNode&&f(d.parentNode))}function g(d){!d||s.has(d)||[].forEach.call(d.children,m=>{if(On(m)!=="script")if(u.has(m))g(m);else{const h=o?m.getAttribute(o):null,y=h!==null&&h!=="false",p=(wr.get(m)||0)+1,b=(c.get(m)||0)+1;wr.set(m,p),c.set(m,b),l.push(m),p===1&&y&&so.add(m),b===1&&m.setAttribute(a,""),!y&&o&&m.setAttribute(o,"true")}})}return qi++,()=>{l.forEach(d=>{const m=(wr.get(d)||0)-1,h=(c.get(d)||0)-1;wr.set(d,m),c.set(d,h),m||(!so.has(d)&&o&&d.removeAttribute(o),so.delete(d)),h||d.removeAttribute(a)}),qi--,qi||(wr=new WeakMap,wr=new WeakMap,so=new WeakSet,lo={})}}function Cc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=Gt(e[0]).body;return py(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const wa=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function ng(e,t){const n=$i(e,wa());t==="prev"&&n.reverse();const r=n.indexOf(Yn(Gt(e)));return n.slice(r+1)[0]}function rg(){return ng(document.body,"next")}function ag(){return ng(document.body,"prev")}function ha(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!It(n,r)}function hy(e){$i(e,wa()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function by(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const Ns={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let vy;function xc(e){e.key==="Tab"&&(e.target,clearTimeout(vy))}const Qo=M.forwardRef(function(t,n){const[r,a]=M.useState();yt(()=>(Z1()&&a("button"),document.addEventListener("keydown",xc),()=>{document.removeEventListener("keydown",xc)}),[]);const o={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[Da("focus-guard")]:"",style:Ns};return M.createElement("span",Ko({},t,o))}),og=M.createContext(null),Dc=Da("portal");function yy(e){e===void 0&&(e={});const{id:t,root:n}=e,r=Ms(),a=ig(),[o,i]=M.useState(null),u=M.useRef(null);return yt(()=>()=>{o==null||o.remove(),queueMicrotask(()=>{u.current=null})},[o]),yt(()=>{if(!r||u.current)return;const s=t?document.getElementById(t):null;if(!s)return;const l=document.createElement("div");l.id=r,l.setAttribute(Dc,""),s.appendChild(l),u.current=l,i(l)},[t,r]),yt(()=>{if(!r||u.current)return;let s=n||(a==null?void 0:a.portalNode);s&&!We(s)&&(s=s.current),s=s||document.body;let l=null;t&&(l=document.createElement("div"),l.id=t,s.appendChild(l));const c=document.createElement("div");c.id=r,c.setAttribute(Dc,""),s=l||s,s.appendChild(c),u.current=c,i(c)},[t,n,r,a]),o}function Cy(e){const{children:t,id:n,root:r=null,preserveTabOrder:a=!0}=e,o=yy({id:n,root:r}),[i,u]=M.useState(null),s=M.useRef(null),l=M.useRef(null),c=M.useRef(null),f=M.useRef(null),g=!!i&&!i.modal&&i.open&&a&&!!(r||o);return M.useEffect(()=>{if(!o||!a||i!=null&&i.modal)return;function d(m){o&&ha(m)&&(m.type==="focusin"?by:hy)(o)}return o.addEventListener("focusin",d,!0),o.addEventListener("focusout",d,!0),()=>{o.removeEventListener("focusin",d,!0),o.removeEventListener("focusout",d,!0)}},[o,a,i==null?void 0:i.modal]),M.createElement(og.Provider,{value:M.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:s,afterOutsideRef:l,beforeInsideRef:c,afterInsideRef:f,portalNode:o,setFocusManagerState:u}),[a,o])},g&&o&&M.createElement(Qo,{"data-type":"outside",ref:s,onFocus:d=>{if(ha(d,o)){var m;(m=c.current)==null||m.focus()}else{const h=ag()||(i==null?void 0:i.refs.domReference.current);h==null||h.focus()}}}),g&&o&&M.createElement("span",{"aria-owns":o.id,style:Ns}),o&&If.createPortal(t,o),g&&o&&M.createElement(Qo,{"data-type":"outside",ref:l,onFocus:d=>{if(ha(d,o)){var m;(m=f.current)==null||m.focus()}else{const h=rg()||(i==null?void 0:i.refs.domReference.current);h==null||h.focus(),i!=null&&i.closeOnFocusOut&&(i==null||i.onOpenChange(!1,d.nativeEvent))}}}))}const ig=()=>M.useContext(og),wc=20;let Un=[];function eu(e){Un=Un.filter(n=>n.isConnected);let t=e;if(!(!t||On(t)==="body")){if(!I4(t,wa())){const n=$i(t,wa())[0];n&&(t=n)}Un.push(t),Un.length>wc&&(Un=Un.slice(-wc))}}function Ic(){return Un.slice().reverse().find(e=>e.isConnected)}const xy=M.forwardRef(function(t,n){return M.createElement("button",Ko({},t,{type:"button",ref:n,tabIndex:-1,style:Ns}))});function Dy(e){const{context:t,children:n,disabled:r=!1,order:a=["content"],guards:o=!0,initialFocus:i=0,returnFocus:u=!0,restoreFocus:s=!1,modal:l=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:f=!0}=e,{open:g,refs:d,nodeId:m,onOpenChange:h,events:y,dataRef:p,floatingId:b,elements:{domReference:C,floating:w}}=t,x=typeof i=="number"&&i<0,I=K1(C)&&x,F=gy()?o:!0,D=tr(a),T=tr(i),V=tr(u),S=_s(),k=ig(),P=M.useRef(null),R=M.useRef(null),_=M.useRef(!1),B=M.useRef(!1),$=M.useRef(-1),L=k!=null,H=w==null?void 0:w.firstElementChild,G=(H==null?void 0:H.id)===b?H:w,O=Rn(function(J){return J===void 0&&(J=G),J?$i(J,wa()):[]}),W=Rn(J=>{const N=O(J);return D.current.map(j=>C&&j==="reference"?C:G&&j==="floating"?G:N).filter(Boolean).flat()});M.useEffect(()=>{if(r||!l)return;function J(j){if(j.key==="Tab"){It(G,Yn(Gt(G)))&&O().length===0&&!I&&Ki(j);const Y=W(),te=Kn(j);D.current[0]==="reference"&&te===C&&(Ki(j),j.shiftKey?jn(Y[Y.length-1]):jn(Y[1])),D.current[1]==="floating"&&te===G&&j.shiftKey&&(Ki(j),jn(Y[0]))}}const N=Gt(G);return N.addEventListener("keydown",J),()=>{N.removeEventListener("keydown",J)}},[r,C,G,l,D,I,O,W]),M.useEffect(()=>{if(r||!w)return;function J(N){const j=Kn(N),te=O().indexOf(j);te!==-1&&($.current=te)}return w.addEventListener("focusin",J),()=>{w.removeEventListener("focusin",J)}},[r,w,O]),M.useEffect(()=>{if(r||!f)return;function J(){B.current=!0,setTimeout(()=>{B.current=!1})}function N(j){const Y=j.relatedTarget;queueMicrotask(()=>{const te=!(It(C,Y)||It(w,Y)||It(Y,w)||It(k==null?void 0:k.portalNode,Y)||Y!=null&&Y.hasAttribute(Da("focus-guard"))||S&&(pa(S.nodesRef.current,m).find(de=>{var le,z;return It((le=de.context)==null?void 0:le.elements.floating,Y)||It((z=de.context)==null?void 0:z.elements.domReference,Y)})||fy(S.nodesRef.current,m).find(de=>{var le,z;return((le=de.context)==null?void 0:le.elements.floating)===Y||((z=de.context)==null?void 0:z.elements.domReference)===Y})));if(s&&te&&Yn(Gt(G))===Gt(G).body){tt(G)&&(G==null||G.focus());const de=$.current,le=O(),z=le[de]||le[le.length-1]||G;tt(z)&&z.focus()}(I||!l)&&Y&&te&&!B.current&&Y!==Ic()&&(_.current=!0,h(!1,j))})}if(w&&tt(C))return C.addEventListener("focusout",N),C.addEventListener("pointerdown",J),w.addEventListener("focusout",N),()=>{C.removeEventListener("focusout",N),C.removeEventListener("pointerdown",J),w.removeEventListener("focusout",N)}},[r,C,w,G,l,m,S,k,h,f,s,O,I]),M.useEffect(()=>{var J;if(r)return;const N=Array.from((k==null||(J=k.portalNode)==null?void 0:J.querySelectorAll("["+Da("portal")+"]"))||[]);if(w){const j=[w,...N,P.current,R.current,D.current.includes("reference")||I?C:null].filter(te=>te!=null),Y=l||I?Cc(j,F,!F):Cc(j);return()=>{Y()}}},[r,C,w,l,D,k,I,F]),yt(()=>{if(r||!tt(G))return;const J=Gt(G),N=Yn(J);queueMicrotask(()=>{const j=W(G),Y=T.current,te=(typeof Y=="number"?j[Y]:Y.current)||G,de=It(G,N);!x&&!de&&g&&jn(te,{preventScroll:te===G})})},[r,g,G,x,W,T]),yt(()=>{if(r||!G)return;let J=!1;const N=Gt(G),j=Yn(N);let te=p.current.openEvent;eu(j);function de(le){let{open:z,reason:Xe,event:_e,nested:Ne}=le;z&&(te=_e),Xe==="escape-key"&&d.domReference.current&&eu(d.domReference.current),Xe==="hover"&&_e.type==="mouseleave"&&(_.current=!0),Xe==="outside-press"&&(Ne?(_.current=!1,J=!0):_.current=!(j1(_e)||z1(_e)))}return y.on("openchange",de),()=>{y.off("openchange",de);const le=Yn(N),z=It(w,le)||S&&pa(S.nodesRef.current,m).some(Ne=>{var Ge;return It((Ge=Ne.context)==null?void 0:Ge.elements.floating,le)});(z||te&&["click","mousedown"].includes(te.type))&&d.domReference.current&&eu(d.domReference.current);const _e=Ic();V.current&&!_.current&&tt(_e)&&(!(_e!==le&&le!==N.body)||z)&&jn(_e,{cancelPrevious:!1,preventScroll:J})}},[r,w,G,V,p,d,y,S,m]),yt(()=>{if(!r&&k)return k.setFocusManagerState({modal:l,closeOnFocusOut:f,open:g,onOpenChange:h,refs:d}),()=>{k.setFocusManagerState(null)}},[r,k,l,g,h,d,f]),yt(()=>{if(r||!G||typeof MutationObserver!="function"||x)return;const J=()=>{const j=G.getAttribute("tabindex"),Y=O(),te=Yn(Gt(w)),de=Y.indexOf(te);de!==-1&&($.current=de),D.current.includes("floating")||te!==d.domReference.current&&Y.length===0?j!=="0"&&G.setAttribute("tabindex","0"):j!=="-1"&&G.setAttribute("tabindex","-1")};J();const N=new MutationObserver(J);return N.observe(G,{childList:!0,subtree:!0,attributes:!0}),()=>{N.disconnect()}},[r,w,G,d,D,O,x]);function oe(J){return r||!c||!l?null:M.createElement(xy,{ref:J==="start"?P:R,onClick:N=>h(!1,N.nativeEvent)},typeof c=="string"?c:"Dismiss")}const ye=!r&&F&&(l?!I:!0)&&(L||l);return M.createElement(M.Fragment,null,ye&&M.createElement(Qo,{"data-type":"inside",ref:k==null?void 0:k.beforeInsideRef,onFocus:J=>{if(l){const j=W();jn(a[0]==="reference"?j[0]:j[j.length-1])}else if(k!=null&&k.preserveTabOrder&&k.portalNode)if(_.current=!1,ha(J,k.portalNode)){const j=rg()||C;j==null||j.focus()}else{var N;(N=k.beforeOutsideRef.current)==null||N.focus()}}}),!I&&oe("start"),n,oe("end"),ye&&M.createElement(Qo,{"data-type":"inside",ref:k==null?void 0:k.afterInsideRef,onFocus:J=>{if(l)jn(W()[0]);else if(k!=null&&k.preserveTabOrder&&k.portalNode)if(f&&(_.current=!0),ha(J,k.portalNode)){const j=ag()||C;j==null||j.focus()}else{var N;(N=k.afterOutsideRef.current)==null||N.focus()}}}))}function Ec(e){return tt(e.target)&&e.target.tagName==="BUTTON"}function Sc(e){return _f(e)}function wy(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:a,elements:{domReference:o}}=e,{enabled:i=!0,event:u="click",toggle:s=!0,ignoreMouse:l=!1,keyboardHandlers:c=!0}=t,f=M.useRef(),g=M.useRef(!1),d=M.useMemo(()=>({onPointerDown(m){f.current=m.pointerType},onMouseDown(m){const h=f.current;m.button===0&&u!=="click"&&(uc(h)&&l||(n&&s&&(!a.current.openEvent||a.current.openEvent.type==="mousedown")?r(!1,m.nativeEvent,"click"):(m.preventDefault(),r(!0,m.nativeEvent,"click"))))},onClick(m){const h=f.current;if(u==="mousedown"&&f.current){f.current=void 0;return}uc(h)&&l||(n&&s&&(!a.current.openEvent||a.current.openEvent.type==="click")?r(!1,m.nativeEvent,"click"):r(!0,m.nativeEvent,"click"))},onKeyDown(m){f.current=void 0,!(m.defaultPrevented||!c||Ec(m))&&(m.key===" "&&!Sc(o)&&(m.preventDefault(),g.current=!0),m.key==="Enter"&&r(!(n&&s),m.nativeEvent,"click"))},onKeyUp(m){m.defaultPrevented||!c||Ec(m)||Sc(o)||m.key===" "&&g.current&&(g.current=!1,r(!(n&&s),m.nativeEvent,"click"))}}),[a,o,u,l,c,r,n,s]);return M.useMemo(()=>i?{reference:d}:{},[i,d])}const Iy={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Ey={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},$c=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function Sy(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:a,dataRef:o}=e,{enabled:i=!0,escapeKey:u=!0,outsidePress:s=!0,outsidePressEvent:l="pointerdown",referencePress:c=!1,referencePressEvent:f="pointerdown",ancestorScroll:g=!1,bubbles:d,capture:m}=t,h=_s(),y=Rn(typeof s=="function"?s:()=>!1),p=typeof s=="function"?y:s,b=M.useRef(!1),C=M.useRef(!1),{escapeKey:w,outsidePress:x}=$c(d),{escapeKey:I,outsidePress:F}=$c(m),D=Rn(R=>{var _;if(!n||!i||!u||R.key!=="Escape")return;const B=(_=o.current.floatingContext)==null?void 0:_.nodeId,$=h?pa(h.nodesRef.current,B):[];if(!w&&(R.stopPropagation(),$.length>0)){let L=!0;if($.forEach(H=>{var G;if((G=H.context)!=null&&G.open&&!H.context.dataRef.current.__escapeKeyBubbles){L=!1;return}}),!L)return}r(!1,Y1(R)?R.nativeEvent:R,"escape-key")}),T=Rn(R=>{var _;const B=()=>{var $;D(R),($=Kn(R))==null||$.removeEventListener("keydown",B)};(_=Kn(R))==null||_.addEventListener("keydown",B)}),V=Rn(R=>{var _;const B=b.current;b.current=!1;const $=C.current;if(C.current=!1,l==="click"&&$||B||typeof p=="function"&&!p(R))return;const L=Kn(R),H="["+Da("inert")+"]",G=Gt(a.floating).querySelectorAll(H);let O=We(L)?L:null;for(;O&&!Vn(O);){const J=vn(O);if(Vn(J)||!We(J))break;O=J}if(G.length&&We(L)&&!U1(L)&&!It(L,a.floating)&&Array.from(G).every(J=>!It(O,J)))return;if(tt(L)&&P){const J=L.clientWidth>0&&L.scrollWidth>L.clientWidth,N=L.clientHeight>0&&L.scrollHeight>L.clientHeight;let j=N&&R.offsetX>L.clientWidth;if(N&&Nt(L).direction==="rtl"&&(j=R.offsetX<=L.offsetWidth-L.clientWidth),j||J&&R.offsetY>L.clientHeight)return}const W=(_=o.current.floatingContext)==null?void 0:_.nodeId,oe=h&&pa(h.nodesRef.current,W).some(J=>{var N;return Ji(R,(N=J.context)==null?void 0:N.elements.floating)});if(Ji(R,a.floating)||Ji(R,a.domReference)||oe)return;const ye=h?pa(h.nodesRef.current,W):[];if(ye.length>0){let J=!0;if(ye.forEach(N=>{var j;if((j=N.context)!=null&&j.open&&!N.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,R,"outside-press")}),S=Rn(R=>{var _;const B=()=>{var $;V(R),($=Kn(R))==null||$.removeEventListener(l,B)};(_=Kn(R))==null||_.addEventListener(l,B)});M.useEffect(()=>{if(!n||!i)return;o.current.__escapeKeyBubbles=w,o.current.__outsidePressBubbles=x;function R($){r(!1,$,"ancestor-scroll")}const _=Gt(a.floating);u&&_.addEventListener("keydown",I?T:D,I),p&&_.addEventListener(l,F?S:V,F);let B=[];return g&&(We(a.domReference)&&(B=Tn(a.domReference)),We(a.floating)&&(B=B.concat(Tn(a.floating))),!We(a.reference)&&a.reference&&a.reference.contextElement&&(B=B.concat(Tn(a.reference.contextElement)))),B=B.filter($=>{var L;return $!==((L=_.defaultView)==null?void 0:L.visualViewport)}),B.forEach($=>{$.addEventListener("scroll",R,{passive:!0})}),()=>{u&&_.removeEventListener("keydown",I?T:D,I),p&&_.removeEventListener(l,F?S:V,F),B.forEach($=>{$.removeEventListener("scroll",R)})}},[o,a,u,p,l,n,r,g,i,w,x,D,I,T,V,F,S]),M.useEffect(()=>{b.current=!1},[p,l]);const k=M.useMemo(()=>({onKeyDown:D,[Iy[f]]:R=>{c&&r(!1,R.nativeEvent,"reference-press")}}),[D,r,c,f]),P=M.useMemo(()=>({onKeyDown:D,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[Ey[l]]:()=>{b.current=!0}}),[D,l]);return M.useMemo(()=>i?{reference:k,floating:P}:{},[i,k,P])}function $y(e){const{open:t=!1,onOpenChange:n,elements:r}=e,a=Ms(),o=M.useRef({}),[i]=M.useState(()=>ly()),u=eg()!=null;if(process.env.NODE_ENV!=="production"){const d=r.reference;d&&!We(d)&&sy("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[s,l]=M.useState(r.reference),c=Rn((d,m,h)=>{o.current.openEvent=d?m:void 0,i.emit("openchange",{open:d,event:m,reason:h,nested:u}),n==null||n(d,m,h)}),f=M.useMemo(()=>({setPositionReference:l}),[]),g=M.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return M.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:g,events:i,floatingId:a,refs:f}),[t,c,g,i,a,f])}function Ry(e){e===void 0&&(e={});const{nodeId:t}=e,n=$y({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,a=r.elements,[o,i]=M.useState(null),[u,s]=M.useState(null),c=(a==null?void 0:a.reference)||o,f=M.useRef(null),g=_s();yt(()=>{c&&(f.current=c)},[c]);const d=Q4({...e,elements:{...a,...u&&{reference:u}}}),m=M.useCallback(C=>{const w=We(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),contextElement:C}:C;s(w),d.refs.setReference(w)},[d.refs]),h=M.useCallback(C=>{(We(C)||C===null)&&(f.current=C,i(C)),(We(d.refs.reference.current)||d.refs.reference.current===null||C!==null&&!We(C))&&d.refs.setReference(C)},[d.refs]),y=M.useMemo(()=>({...d.refs,setReference:h,setPositionReference:m,domReference:f}),[d.refs,h,m]),p=M.useMemo(()=>({...d.elements,domReference:c}),[d.elements,c]),b=M.useMemo(()=>({...d,...r,refs:y,elements:p,nodeId:t}),[d,y,p,t,r]);return yt(()=>{r.dataRef.current.floatingContext=b;const C=g==null?void 0:g.nodesRef.current.find(w=>w.id===t);C&&(C.context=b)}),M.useMemo(()=>({...d,context:b,refs:y,elements:p}),[d,y,p,b])}const Rc="active",Fc="selected";function tu(e,t,n){const r=new Map,a=n==="item";let o=e;if(a&&e){const{[Rc]:i,[Fc]:u,...s}=e;o=s}return{...n==="floating"&&{tabIndex:-1},...o,...t.map(i=>{const u=i?i[n]:null;return typeof u=="function"?e?u(e):null:u}).concat(e).reduce((i,u)=>(u&&Object.entries(u).forEach(s=>{let[l,c]=s;if(!(a&&[Rc,Fc].includes(l)))if(l.indexOf("on")===0){if(r.has(l)||r.set(l,[]),typeof c=="function"){var f;(f=r.get(l))==null||f.push(c),i[l]=function(){for(var g,d=arguments.length,m=new Array(d),h=0;h<d;h++)m[h]=arguments[h];return(g=r.get(l))==null?void 0:g.map(y=>y(...m)).find(y=>y!==void 0)}}}else i[l]=c}),i),{})}}function Fy(e){e===void 0&&(e=[]);const t=e.map(u=>u==null?void 0:u.reference),n=e.map(u=>u==null?void 0:u.floating),r=e.map(u=>u==null?void 0:u.item),a=M.useCallback(u=>tu(u,e,"reference"),t),o=M.useCallback(u=>tu(u,e,"floating"),n),i=M.useCallback(u=>tu(u,e,"item"),r);return M.useMemo(()=>({getReferenceProps:a,getFloatingProps:o,getItemProps:i}),[a,o,i])}const Ay=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Py(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:a}=e,{enabled:o=!0,role:i="dialog"}=t,u=(n=Ay.get(i))!=null?n:i,s=Ms(),c=eg()!=null,f=M.useMemo(()=>u==="tooltip"||i==="label"?{["aria-"+(i==="label"?"labelledby":"describedby")]:r?a:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":u==="alertdialog"?"dialog":u,"aria-controls":r?a:void 0,...u==="listbox"&&{role:"combobox"},...u==="menu"&&{id:s},...u==="menu"&&c&&{role:"menuitem"},...i==="select"&&{"aria-autocomplete":"none"},...i==="combobox"&&{"aria-autocomplete":"list"}},[u,a,c,r,s,i]),g=M.useMemo(()=>{const m={id:a,...u&&{role:u}};return u==="tooltip"||i==="label"?m:{...m,...u==="menu"&&{"aria-labelledby":s}}},[u,a,s,i]),d=M.useCallback(m=>{let{active:h,selected:y}=m;const p={role:"option",...h&&{id:a+"-option"}};switch(i){case"select":return{...p,"aria-selected":h&&y};case"combobox":return{...p,...h&&{"aria-selected":!0}}}return{}},[a,i]);return M.useMemo(()=>o?{reference:f,floating:g,item:d}:{},[o,f,g,d])}const Ac=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function Ir(e,t){return typeof e=="function"?e(t):e}function By(e,t){const[n,r]=M.useState(e);return e&&!n&&r(!0),M.useEffect(()=>{if(!e&&n){const a=setTimeout(()=>r(!1),t);return()=>clearTimeout(a)}},[e,n,t]),n}function Ty(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:a=250}=t,i=(typeof a=="number"?a:a.close)||0,[u,s]=M.useState("unmounted"),l=By(n,i);return!l&&u==="close"&&s("unmounted"),yt(()=>{if(r){if(n){s("initial");const c=requestAnimationFrame(()=>{s("open")});return()=>{cancelAnimationFrame(c)}}s("close")}},[n,r]),{isMounted:l,status:u}}function Vy(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:a,common:o,duration:i=250}=t,u=e.placement,s=u.split("-")[0],l=M.useMemo(()=>({side:s,placement:u}),[s,u]),c=typeof i=="number",f=(c?i:i.open)||0,g=(c?i:i.close)||0,[d,m]=M.useState(()=>({...Ir(o,l),...Ir(n,l)})),{isMounted:h,status:y}=Ty(e,{duration:i}),p=tr(n),b=tr(r),C=tr(a),w=tr(o);return yt(()=>{const x=Ir(p.current,l),I=Ir(C.current,l),F=Ir(w.current,l),D=Ir(b.current,l)||Object.keys(x).reduce((T,V)=>(T[V]="",T),{});if(y==="initial"&&m(T=>({transitionProperty:T.transitionProperty,...F,...x})),y==="open"&&m({transitionProperty:Object.keys(D).map(Ac).join(","),transitionDuration:f+"ms",...F,...D}),y==="close"){const T=I||x;m({transitionProperty:Object.keys(T).map(Ac).join(","),transitionDuration:g+"ms",...F,...T})}},[g,C,p,b,w,f,y,l]),{isMounted:h,styles:d}}const ky="_popover_7cinv_1",My={popover:ky},Ya=v.forwardRef((e,t)=>{const{children:n,className:r,offset:a=10,isShow:o,anchorEl:i,useAutoPlacement:u=!1,flipOptions:s,autoPlacementOptions:l,zIndex:c,width:f,styleInnerPopover:g={},floatingOptions:d={},...m}=e,[h,y]=v.useState(!1),{refs:p,floatingStyles:b,context:C}=Ry({open:h,onOpenChange:y,middleware:[q4(a),u?ny(l):ty(s),ey()],whileElementsMounted:Kf,...d}),w=wy(C),x=Sy(C),I=Py(C),{getReferenceProps:F,getFloatingProps:D}=Fy([w,x,I]),{styles:T,isMounted:V}=Vy(C),S=P=>{p.setReference(P.currentTarget),y(R=>!R)};v.useEffect(()=>{o&&i?S({currentTarget:i}):o||y(!1)},[o,i]),v.useImperativeHandle(t,()=>({show:h,setShow:y,handlerShow:S,getReferenceProps:F}),[h]);const k=()=>{let P={...b,...T,...g};return f&&(P={...P,width:f}),(c??c===0)&&(P={...P,zIndex:c}),P};return E.jsx(E.Fragment,{children:V&&h&&E.jsx(Cy,{children:E.jsx(Dy,{context:C,modal:!1,children:E.jsx("div",{ref:p.setFloating,style:k(),...D(),className:`${My.popover} ${r??""}`,...m,children:n})})})})});Ya.displayName="Popover";const _y="_container_hlqmp_1",Ny="_input_hlqmp_7",Oy="_label_hlqmp_33",Ly="_error_hlqmp_40",Jt={container:_y,"container-input":"_container-input_hlqmp_4",input:Ny,label:Oy,error:Ly,"isset-icon":"_isset-icon_hlqmp_51","end-icon":"_end-icon_hlqmp_58","label-error":"_label-error_hlqmp_61"},ug=v.forwardRef((e,t)=>{var y;const{isRequired:n,classNameContainer:r,classNameLabelError:a,className:o,name:i,id:u,label:s,type:l="text",endIcon:c,error:f,sizeInput:g="reguler",...d}=e,m={size:{reguler:Jt.input,small:Jt.input},variant:{}},h=()=>typeof c=="function"||v.isValidElement(c);return E.jsxs("div",{className:`${Jt.container} ${r??""}`,children:[E.jsxs("div",{className:Jt["container-input"],children:[E.jsx("input",{id:u??i,className:`${(y=m.size)==null?void 0:y[g]} ${f?Jt.error:""}
|
34
34
|
${h()?Jt["isset-icon"]:""} ${o??""}`,ref:t,type:l,...d}),E.jsxs("div",{className:Jt["end-icon"],children:[typeof c=="function"&&c(),v.isValidElement(c)&&c]}),E.jsxs("label",{className:Jt.label,htmlFor:u??i,children:[s," ",n&&E.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]})]}),f&&E.jsx("label",{className:`${Jt["label-error"]}
|
35
35
|
${d.disabled?Jt.disabled:""} ${a??""}`,children:f})]})});ug.displayName="InputFloatingInner";const Gy="_label_1qiju_4",Hy="_disabled_1qiju_9",Wy="_input_1qiju_15",jy="_error_1qiju_40",Vt={"container-large":"_container-large_1qiju_1",label:Gy,disabled:Hy,"container-input":"_container-input_1qiju_12",input:Wy,error:jy,"isset-icon":"_isset-icon_1qiju_49","end-icon":"_end-icon_1qiju_52","label-error":"_label-error_1qiju_55","container-medium":"_container-medium_1qiju_64","container-small":"_container-small_1qiju_127"},sg=v.forwardRef((e,t)=>{const{isRequired:n,classNameContainer:r,className:a,classNameLabel:o,classNameLabelError:i,name:u,id:s,label:l,type:c="text",endIcon:f,error:g,sizeInput:d="large",...m}=e,h={size:{large:Vt["container-large"],medium:Vt["container-medium"],small:Vt["container-small"]},variant:{}},y=()=>typeof f=="function"||v.isValidElement(f);return E.jsxs("div",{className:`${h.size[d]} ${r??""}`,children:[l&&E.jsxs("label",{htmlFor:s??u,className:`${Vt.label} ${m.disabled?Vt.disabled:""} ${o??""}`,children:[l," ",n&&E.jsx("span",{className:"1ru-text-laba-red-08",children:"*"})]}),E.jsxs("div",{className:`${Vt["container-input"]}`,children:[E.jsx("input",{id:s??u,className:`${Vt.input} ${g?Vt.error:""}
|
36
36
|
${y()?Vt["isset-icon"]:""} ${a??""}`,ref:t,type:c,...m}),E.jsxs("div",{className:Vt["end-icon"],children:[typeof f=="function"&&f(),v.isValidElement(f)&&f]})]}),g&&E.jsx("label",{className:`${Vt["label-error"]}
|