1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[273],{6968:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(13309);let i=(e,t,n,i,l,o,...u)=>{let s;if(u.length>0)throw Error((0,r.A)(1));if(e&&t&&n&&i&&l&&o)s=(r,u,s,a)=>{let c=e(r,u,s,a),f=t(r,u,s,a),d=n(r,u,s,a);return o(c,f,d,i(r,u,s,a),l(r,u,s,a),u,s,a)};else if(e&&t&&n&&i&&l)s=(r,o,u,s)=>{let a=e(r,o,u,s),c=t(r,o,u,s);return l(a,c,n(r,o,u,s),i(r,o,u,s),o,u,s)};else if(e&&t&&n&&i)s=(r,l,o,u)=>{let s=e(r,l,o,u);return i(s,t(r,l,o,u),n(r,l,o,u),l,o,u)};else if(e&&t&&n)s=(r,i,l,o)=>n(e(r,i,l,o),t(r,i,l,o),i,l,o);else if(e&&t)s=(n,r,i,l)=>t(e(n,r,i,l),r,i,l);else if(e)s=e;else throw Error("Missing arguments");return s}},7352:(e,t,n)=>{n.d(t,{CK:()=>E,XF:()=>S,vB:()=>w});var r=n(12115),i=n(47650),l=n(2066),o=n(32614),u=n(90924),s=n(59715),a=n(39972),c=n(7546),f=n(60204),d=n(79786),h=n(97102),p=n(14043),g=n(85753),m=n(64499),v=n(87711),y=n(16275),b=n(95155);let x=r.createContext(null),w=()=>r.useContext(x),R=(0,m.F)("portal");function E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{ref:t,container:n,componentProps:o=f.t0,elementProps:u}=e,d=(0,s.B)(),h=w(),p=null==h?void 0:h.portalNode,[g,m]=r.useState(null),[y,b]=r.useState(null),x=(0,c.K)(e=>{null!==e&&b(e)}),E=r.useRef(null);(0,a.g)(()=>{var e,t;if(null===n){E.current&&(E.current=null,b(null),m(null));return}if(null==d)return;let r=null!=(t=null!=(e=n&&((0,l.Ll)(n)?n:n.current))?e:p)?t:document.body;if(null==r){E.current&&(E.current=null,b(null),m(null));return}E.current!==r&&(E.current=r,b(null),m(r))},[n,p,d]);let S=(0,v.o)("div",o,{ref:[t,x],props:[{id:d,[R]:""},u]});return{portalNode:y,portalSubtree:g&&S?i.createPortal(S,g):null}}let S=r.forwardRef(function(e,t){let{children:n,container:l,className:s,render:a,renderGuards:c,style:f,...m}=e,{portalNode:v,portalSubtree:w}=E({container:l,ref:t,componentProps:e,elementProps:m}),R=r.useRef(null),S=r.useRef(null),k=r.useRef(null),C=r.useRef(null),[T,O]=r.useState(null),A=r.useRef(!1),q=null==T?void 0:T.modal,M=null==T?void 0:T.open,P="boolean"==typeof c?c:!!T&&!T.modal&&T.open&&!!v;r.useEffect(()=>{if(v&&!q)return(0,u.g)((0,o.q)(v,"focusin",e,!0),(0,o.q)(v,"focusout",e,!0));function e(e){v&&e.relatedTarget&&(0,h.Qp)(e)&&("focusin"===e.type?A.current&&((0,h.yV)(v),A.current=!1):((0,h.N)(v),A.current=!0))}},[v,q]),r.useEffect(()=>{v&&!1===M&&((0,h.yV)(v),A.current=!1)},[M,v]);let W=r.useMemo(()=>({beforeOutsideRef:R,afterOutsideRef:S,beforeInsideRef:k,afterInsideRef:C,portalNode:v,setFocusManagerState:O}),[v]);return(0,b.jsxs)(r.Fragment,{children:[w,(0,b.jsxs)(x.Provider,{value:W,children:[P&&v&&(0,b.jsx)(d.U,{"data-type":"outside",ref:R,onFocus:e=>{if((0,h.Qp)(e,v)){var t;null==(t=k.current)||t.focus()}else{let e=T?T.domReference:null,t=(0,h.XJ)(e);null==t||t.focus()}}}),P&&v&&(0,b.jsx)("span",{"aria-owns":v.id,style:y.z_}),v&&i.createPortal(n,v),P&&v&&(0,b.jsx)(d.U,{"data-type":"outside",ref:S,onFocus:e=>{if((0,h.Qp)(e,v)){var t;null==(t=C.current)||t.focus()}else{let t=T?T.domReference:null,n=(0,h.vF)(t);null==n||n.focus(),(null==T?void 0:T.closeOnFocusOut)&&(null==T||T.onOpenChange(!1,(0,p.d)(g.Xn,e.nativeEvent)))}}})]})]})})},8098:(e,t,n)=>{n.d(t,{P:()=>c});var r=n(2066),i=n(59715),l=n(77509),o=n(39972),u=n(20798),s=n(36475),a=n(15787);function c(e){let{open:t=!1,onOpenChange:n,elements:c={}}=e,f=(0,i.B)(),d=null!=(0,u.R1)(),h=(0,l.j)(()=>{var e,r;return new s.K({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:null!=(e=c.reference)?e:null,floatingElement:null!=(r=c.floating)?r:null,triggerElements:new a.Z,floatingId:f,syncOnly:!1,nested:d})}).current;return(0,o.g)(()=>{let e={open:t,floatingId:f};void 0!==c.reference&&(e.referenceElement=c.reference,e.domReferenceElement=(0,r.vq)(c.reference)?c.reference:null),void 0!==c.floating&&(e.floatingElement=c.floating),h.update(e)},[t,f,c.reference,c.floating,h]),h.context.onOpenChange=n,h.context.nested=d,h}},8147:(e,t,n)=>{n.d(t,{d:()=>l});var r=n(60204),i=n(16275);function l(e){return"starting"===e?i.K2:r.t0}},8828:(e,t,n)=>{e.exports=n(83654)},10130:(e,t,n)=>{n.d(t,{GW:()=>h,Vs:()=>l,jL:()=>d,lP:()=>i,qV:()=>f});var r=n(62840);let i=function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=r.T.startingStyle]="startingStyle",e[e.endingStyle=r.T.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e}({}),l=function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e}({}),o={[l.popupOpen]:""},u={[l.popupOpen]:"",[l.pressed]:""},s={[i.open]:""},a={[i.closed]:""},c={[i.anchorHidden]:""},f={open:e=>e?o:null},d={open:e=>e?u:null},h={open:e=>e?s:a,anchorHidden:e=>e?c:null}},14806:(e,t,n)=>{e.exports=n(30125)},15787:(e,t,n)=>{n.d(t,{Z:()=>r});
1class r{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(void 0!==n&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}},16275:(e,t,n)=>{n.d(t,{HQ:()=>r,K2:()=>l,Kd:()=>o,Pe:()=>s,X3:()=>i,uD:()=>u,z_:()=>a});let r=500,i=500,l={style:{transition:"none"}},o="data-base-ui-click-trigger",u={fallbackAxisSide:"none"},s={fallbackAxisSide:"end"},a={clipPath:"inset(50%)",position:"fixed",top:0,left:0}},18614:(e,t,n)=>{n.d(t,{i:()=>i});var r=n(73301);class i{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,i){return(0,r.P)(this,e,t,n,i)}}},19779:(e,t,n)=>{n.d(t,{j:()=>o,n:()=>u});var r=n(2066),i=n(24758),l=n(10208);let o={sideX:"left",sideY:"top"},u={name:"adaptiveOrigin",async fn(e){let{x:t,y:n,rects:{floating:u},elements:{floating:s},platform:a,strategy:c,placement:f}=e,d=(0,r.zk)(s),h=d.getComputedStyle(s);if("0s"===h.transitionDuration||""===h.transitionDuration)return{x:t,y:n,data:o};let p=await a.getOffsetParent?.(s),g={width:0,height:0};
1if("fixed"===c&&d?.visualViewport)g={width:d.visualViewport.width,height:d.visualViewport.height};else if(p===d){let e=(0,i.R)(s);g={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(p)&&(g=await a.getDimensions(p));let m=(0,l.C0)(f),v=t,y=n;return"left"===m&&(v=g.width-(t+u.width)),"top"===m&&(y=g.height-(n+u.height)),{x:v,y,data:{sideX:"left"===m?"right":o.sideX,sideY:"top"===m?"bottom":o.sideY}}}}},20798:(e,t,n)=>{n.d(t,{$c:()=>p,P6:()=>g,R1:()=>f,cq:()=>d,fI:()=>h});var r=n(12115),i=n(59715),l=n(39972),o=n(77509),u=n(55051),s=n(95155);let a=r.createContext(null),c=r.createContext(null),f=()=>{var e;return(null==(e=r.useContext(a))?void 0:e.id)||null},d=e=>{let t=r.useContext(c);return null!=e?e:t};function h(e){let t=(0,i.B)(),n=d(e),r=f();return(0,l.g)(()=>{if(!t)return;let e={id:t,parentId:r};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}},[n,t,r]),t}function p(e){let{children:t,id:n}=e,i=f();return(0,s.jsx)(a.Provider,{value:r.useMemo(()=>({id:n,parentId:i}),[n,i]),children:t})}function g(e){let{children:t,externalTree:n}=e,r=(0,o.j)(()=>null!=n?n:new u.k).current;return(0,s.jsx)(c.Provider,{value:r,children:t})}},20861:(e,t,n)=>{n.d(t,{ll:()=>T,rD:()=>j,UU:()=>q,jD:()=>
1P,ER:()=>W,cY:()=>O,iD:()=>k,BN:()=>A,Ej:()=>M});var r=n(10208);function i(e,t,n){let i,{reference:l,floating:o}=e,u=(0,r.TV)(t),s=(0,r.Dz)(t),a=(0,r.sq)(s),c=(0,r.C0)(t),f="y"===u,d=l.x+l.width/2-o.width/2,h=l.y+l.height/2-o.height/2,p=l[a]/2-o[a]/2;switch(c){case"top":i={x:d,y:l.y-o.height};break;case"bottom":i={x:d,y:l.y+l.height};break;case"right":i={x:l.x+l.width,y:h};break;case"left":i={x:l.x-o.width,y:h};break;default:i={x:l.x,y:l.y}}switch((0,r.Sg)(t)){case"start":i[s]-=p*(n&&f?-1:1);break;case"end":i[s]+=p*(n&&f?-1:1)}return i}async function l(e,t){var n;void 0===t&&(t={});let{x:i,y:l,platform:o,rects:u,elements:s,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=(0,r._3)(t,e),g=(0,r.nI)(p),m=s[h?"floating"===d?"reference":"floating":d],v=(0,r.B1)(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:a})),y="floating"===d?{x:i,y:l,width:u.floating.width,height:u.floating.height}:u.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),x=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},w=(0,r.B1)(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:a}):y);return{top:(v.top-w.top+g.top)/x.y,bottom:(w.bottom-v.bottom+g.bottom)/x.y,left:(v.left-w.left+g.left)/x.x,right:(w.right-v.right+g.right)/x.x}}let o=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:u=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:l},c=await (null==s.isRTL?void 0:s.isRTL(t)),f=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:h}=i(f,r,c),p=r,g=0,m={};for(let n=0;n<u.length;n++){let l=u[n];if(!l)continue;let{name:v,fn:y}=l,{x:b,y:x,data:w,reset:R}=await y({x:d,y:h,initialPlacement:r,placement:p,strategy:o,middlewareData:m,rects:f,platform:a,elements:{reference:e,floating:t}});d=null!=b?b:d,h=null!=x?x:h,m[v]={...m[v],...w},R&&g<50&&(g++,"object"==typeof R&&(R.placement&&(p=R.placement),R.rects&&(f=!0===R.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:d,y:h}=i(f,p,c)),n=-1)}return{x:d,y:h,placement:p,strategy:o,middlewareData:m}};function u(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function s(e){return r.r_.some(t=>e[t]>=0)}let a=new Set(["left","top"]);async function c(e,t){let{placement:n,platform:i,elements:l}=e,o=await (null==i.isRTL?void 0:i.isRTL(l.floating)),u=(0,r.C0)(n),s=(0,r.Sg)(n),c="y"===(0,r.TV)(n),f=a.has(u)?-1:1,d=o&&c?-1:1,h=(0,r._3)(t,e),{mainAxis:p,crossAxis:g,alignmentAxis:m}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"==typeof m&&(g="end"===s?-1*m:m),c?{x:g*d,y:p*f}:{x:p*f,y:g*d}}var f=n(2066);function d(e){let t=(0,f.L9)(e),n=parseFloat(t.width)||0,i=parseFloat(t.height)||0,l=(0,f.sb)(e),o=l?e.offsetWidth:n,u=l?e.offsetHeight:i,s=(0,r.LI)(n)!==o||(0,r.LI)(i)!==u;return s&&(n=o,i=u),{width:n,height:i,$:s}}function h(e){return(0,f.vq)(e)?e:e.contextElement}function p(e){let t=h(e);if(!(0,f.sb)(t))return(0,r.Jx)(1);let n=t.getBoundingClientRect(),{width:i,height:l,$:o}=d(t),u=(o?(0,r.LI)(n.width):n.width)/i,s=(o?(0,r.LI)(n.height):n.height)/l;return u&&Number.isFinite(u)||(u=1),s&&Number.isFinite(s)||(s=1),{x:u,y:s}}let g=(0,r.Jx)(0);function m(e){let t=(0,f.zk)(e);return(0,f.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:g}function v(e,t,n,i){var l;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),u=h(e),s=(0,r.Jx)(1);t&&(i?(0,f.vq)(i)&&(s=p(i)):s=p(e));let a=(void 0===(l=n)&&(l=!1),i&&(!l||i===(0,f.zk)(u))&&l)?m(u):(0,r.Jx)(0),c=(o.left+a.x)/s.x,d=(o.top+a.y)/s.y,g=o.width/s.x,v=o.height/s.y;if(u){let e=(0,f.zk)(u),t=i&&(0,f.vq)(i)?(0,f.zk)(i):i,n=e,r=(0,f._m)(n);for(;r&&i&&t!==n;){let e=p(r),t=r.getBoundingClientRect(),i=(0,f.L9)(r),l=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,o=t.to
1p+(r.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,d*=e.y,g*=e.x,v*=e.y,c+=l,d+=o,n=(0,f.zk)(r),r=(0,f._m)(n)}}return(0,r.B1)({width:g,height:v,x:c,y:d})}function y(e,t){let n=(0,f.CP)(e).scrollLeft;return t?t.left+n:v((0,f.ep)(e)).left+n}function b(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-y(e,n),y:n.top+t.scrollTop}}function x(e,t,n){let i;if("viewport"===t)i=function(e,t){let n=(0,f.zk)(e),r=(0,f.ep)(e),i=n.visualViewport,l=r.clientWidth,o=r.clientHeight,u=0,s=0;if(i){l=i.width,o=i.height;let e=(0,f.Tc)();(!e||e&&"fixed"===t)&&(u=i.offsetLeft,s=i.offsetTop)}let a=y(r);if(a<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=25&&(l-=o)}else a<=25&&(l+=a);return{width:l,height:o,x:u,y:s}}(e,n);else if("document"===t)i=function(e){let t=(0,f.ep)(e),n=(0,f.CP)(e),i=e.ownerDocument.body,l=(0,r.T9)(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=(0,r.T9)(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),u=-n.scrollLeft+y(e),s=-n.scrollTop;return"rtl"===(0,f.L9)(i).direction&&(u+=(0,r.T9)(t.clientWidth,i.clientWidth)-l),{width:l,height:o,x:u,y:s}}((0,f.ep)(e));else if((0,f.vq)(t))i=function(e,t){let n=v(e,!0,"fixed"===t),i=n.top+e.clientTop,l=n.left+e.clientLeft,o=(0,f.sb)(e)?p(e):(0,r.Jx)(1),u=e.clientWidth*o.x,s=e.clientHeight*o.y;return{width:u,height:s,x:l*o.x,y:i*o.y}}(t,n);else{let n=m(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.B1)(i)}function w(e){return"static"===(0,f.L9)(e).position}function R(e,t){if(!(0,f.sb)(e)||"fixed"===(0,f.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,f.ep)(e)===n&&(n=n.ownerDocument.body),n}function E(e,t){let n=(0,f.zk)(e);if((0,f.Tf)(e))return n;if(!(0,f.sb)(e)){let t=(0,f.$4)(e);for(;t&&!(0,f.eu)(t);){if((0,f.vq)(t)&&!w(t))return t;t=(0,f.$4)(t)}return n}let r=R(e,t);for(;r&&(0,f.Lv)(r)&&w(r);)r=R(r,t);return r&&(0,f.eu)(r)&&w(r)&&!(0,f.sQ)(r)?n:r||(0,f.gJ)(e)||n}let S=async function(e){let t=this.getOffsetParent||E,n=this.getDimensions,i=await n(e.floating);return{reference:function(e,t,n){let i=(0,f.sb)(t),l=(0,f.ep)(t),o="fixed"===n,u=v(e,!0,o,t),s={scrollLeft:0,scrollTop:0},a=(0,r.Jx)(0);if(i||!i&&!o)if(("body"!==(0,f.mq)(t)||(0,f.ZU)(l))&&(s=(0,f.CP)(t)),i){let e=v(t,!0,o,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else l&&(a.x=y(l));
1o&&!i&&l&&(a.x=y(l));let c=!l||i||o?(0,r.Jx)(0):b(l,s);return{x:u.left+s.scrollLeft-a.x-c.x,y:u.top+s.scrollTop-a.y-c.y,width:u.width,height:u.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},k={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:l}=e,o="fixed"===l,u=(0,f.ep)(i),s=!!t&&(0,f.Tf)(t.floating);if(i===u||s&&o)return n;let a={scrollLeft:0,scrollTop:0},c=(0,r.Jx)(1),d=(0,r.Jx)(0),h=(0,f.sb)(i);if((h||!h&&!o)&&(("body"!==(0,f.mq)(i)||(0,f.ZU)(u))&&(a=(0,f.CP)(i)),h)){let e=v(i);c=p(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}let g=!u||h||o?(0,r.Jx)(0):b(u,a);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+d.x+g.x,y:n.y*c.y-a.scrollTop*c.y+d.y+g.y}},getDocumentElement:f.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:l}=e,o=[..."clippingAncestors"===n?(0,f.Tf)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,f.v9)(e,[],!1).filter(e=>(0,f.vq)(e)&&"body"!==(0,f.mq)(e)),i=null,l="fixed"===(0,f.L9)(e).position,o=l?(0,f.$4)(e):e;for(;(0,f.vq)(o)&&!(0,f.eu)(o);){let t=(0,f.L9)(o),n=(0,f.sQ)(o);n||"fixed"!==t.position||(i=null),(l?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||(0,f.ZU)(o)&&!n&&function e(t,n){let r=(0,f.$4)(t);return!(r===n||!(0,f.vq)(r)||(0,f.eu)(r))&&("fixed"===(0,f.L9)(r).position||e(r,n))}(e,o)))?i=t:r=r.filter(e=>e!==o),o=(0,f.$4)(o)}return t.set(e,r),r}(t,this._c):[].concat(n),i],u=x(t,o[0],l),s=u.top,a=u.right,c=u.bottom,d=u.left;for(let e=1;e<o.length;e++){let n=x(t,o[e],l);s=(0,r.T9)(n.top,s),a=(0,r.jk)(n.right,a),c=(0,r.jk)(n.bottom,c),d=(0,r.T9)(n.left,d)}return{width:a-d,height:c-s,x:d,y:s}},getOffsetParent:E,getElementRects:S,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=d(e);return{width:t,height:n}},getScale:p,isElement:f.vq,isRTL:function(e){return"rtl"===(0,f.L9)(e).direction}};function C(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function T(e,t,n,i){let l;void 0===i&&(i={});let{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=i,d=h(e),p=o||u?[...d?(0,f.v9)(d):[],...t?(0,f.v9)(t):[]]:[];p.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let g=d&&a?function(e,t){let n,i=null,l=(0,f.ep)(e);function o(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return!function u(s,a){void 0===s&&(s=!1),void 0===a&&(a=1),o();let c=e.getBoundingClientRect(),{left:f,top:d,width:h,height:p}=c;if(s||t(),!h||!p)return;let g=(0,r.RI)(d),m=(0,r.RI)(l.clientWidth-(f+h)),v={rootMargin:-g+"px "+-m+"px "+-(0,r.RI)(l.clientHeight-(d+p))+"px "+-(0,r.RI)(f)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,a))||1},y=!0;function b(t){let r=t[0].intersectionRatio;if(r!==a){if(!y)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||C(c,e.getBoundingClientRect())||u(),y=!1}try{i=new IntersectionObserver(b,{...v,root:l.ownerDocument})}catch(e){i=new IntersectionObserver(b,v)}i.observe(e)}(!0),o}(d,n):null,m=-1,y=null;s&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&y&&t&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),d&&!c&&y.observe(d),t&&y.observe(t));let b=c?v(e):null;return c&&function t(){let r=v(e);b&&!C(b,r)&&n(),b=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{o&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=y)||e.disconnect(),y=null,c&&cancelAnimationFrame(l)}}let O=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:l,placement:o,middlewareData:u}=t,s=await c(t,e);return o===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:l+s.y,data:{...s,placement:o}}}}},A=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:i,placement:l,platform:o}=t,{mainAxis:u=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,r._3)(e,t),f={x:n,y:i},d=await o.detectOverflow(t,c),h=(0,r.TV)((0,r.C0)(l)),p=(0,r.PG)(h),g=f[p],m=f[h];
1if(u){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=g+d[e],i=g-d[t];g=(0,r.qE)(n,g,i)}if(s){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=m+d[e],i=m-d[t];m=(0,r.qE)(n,m,i)}let v=a.fn({...t,[p]:g,[h]:m});return{...v,data:{x:v.x-n,y:v.y-i,enabled:{[p]:u,[h]:s}}}}}},q=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i,l,o,u;let{placement:s,middlewareData:a,rects:c,initialPlacement:f,platform:d,elements:h}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:b=!0,...x}=(0,r._3)(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};let w=(0,r.C0)(s),R=(0,r.TV)(f),E=(0,r.C0)(f)===f,S=await (null==d.isRTL?void 0:d.isRTL(h.floating)),k=m||(E||!b?[(0,r.bV)(f)]:(0,r.WJ)(f)),C="none"!==y;!m&&C&&k.push(...(0,r.lP)(f,b,y,S));let T=[f,...k],O=await d.detectOverflow(t,x),A=[],q=(null==(i=a.flip)?void 0:i.overflows)||[];if(p&&A.push(O[w]),g){let e=(0,r.w7)(s,c,S);A.push(O[e[0]],O[e[1]])}if(q=[...q,{placement:s,overflows:A}],!A.every(e=>e<=0)){let e=((null==(l=a.flip)?void 0:l.index)||0)+1,t=T[e];if(t&&("alignment"!==g||R===(0,r.TV)(t)||q.every(e=>(0,r.TV)(e.placement)!==R||e.overflows[0]>0)))return{data:{index:e,overflows:q},reset:{placement:t}};let n=null==(o=q.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(v){case"bestFit":{let e=null==(u=q.filter(e=>{if(C){let t=(0,r.TV)(e.placement);return t===R||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:u[0];e&&(n=e);break}case"initialPlacement":n=f}if(s!==n)return{reset:{placement:n}}}return{}}}},M=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,i;let l,o,{placement:u,rects:s,platform:a,elements:c}=t,{apply:f=()=>{},...d}=(0,r._3)(e,t),h=await a.detectOverflow(t,d),p=(0,r.C0)(u),g=(0,r.Sg)(u),m="y"===(0,r.TV)(u),{width:v,height:y}=s.floating;"top"===p||"bottom"===p?(l=p,o=g===(await (null==a.isRTL?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(o=p,l="end"===g?"top":"bottom");let b=y-h.top-h.bottom,x=v-h.left-h.right,w=(0,r.jk)(y-h[l],b),R=(0,r.jk)(v-h[o],x),E=!t.middlewareData.shift,S=w,k=R;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=x),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(S=b),E&&!g){let e=(0,r.T9)(h.left,0),t=(0,r.T9)(h.right,0),n=(0,r.T9)(h.top,0),i=(0,r.T9)(h.bottom,0);m?k=v-2*(0!==e||0!==t?e+t:(0,r.T9)(h.left,h.right)):S=y-2*(0!==n||0!==i?n+i:(0,r.T9)(h.top,h.bottom))}await f({...t,availableWidth:k,availableHeight:S});let C=await a.getDimensions(c.floating);return v!==C.width||y!==C.height?{reset:{rects:!0}}:{}}}},P=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:i}=t,{strategy:l="referenceHidden",...o}=(0,r._3)(e,t);switch(l){case"referenceHidden":{let e=u(await i.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:s(e)}}}case"escaped":{let e=u(await i.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:s(e)}}}default:return{}}}}},W=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:i,placement:l,rects:o,middlewareData:u}=t,{offset:s=0,mainAxis:c=!0,crossAxis:f=!0}=(0,r._3)(e,t),d={x:n,y:i},h=(0,r.TV)(l),p=(0,r.PG)(h),g=d[p],m=d[h],v=(0,r._3)(s,t),y="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){let e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+y.mainAxis,n=o.reference[p]+o.reference[e]-y.mainAxis;g<t?g=t:g>n&&(g=n)}if(f){var b,x;let e="y"===p?"width":"height",t=a.has((0,r.C0)(l)),n=o.reference[h]-o.floating[e]+(t&&(null==(b=u.offset)?void 0:b[h])||0)+(t?0:y.crossAxis),i=o.reference[h]+o.reference[e]+(t?0:(null==(x=u.offset)?void 0:x[h])||0)-(t?y.crossAxis:0);m<n?m=n:m>i&&(m=i)}return{[p]:g,[h]:m}}}},j=(e,t,n)=>{let r=new Map,i={platform:k,...n},l={...i.platform,_c:r};return o(e,t,{...i,platform:l})}},21348:(e,t,n)=>{n.d(t,{b:()=>l});var r=n(12115),i=n(66162);function l(e=[]){let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),i=e.map(e=>e?.item),u=e.map(e=>e?.trigger),s=r.useCallback(t=>o(t,e,"reference"),t),a=r.useCallback(t=>o(t,e,"floating"),n),c=r.useCallback(t=>o(t,e,"item"),i),f=r.useCallback(t=>o(t,e,"trigger"),u);return r.useMemo(()=>({getReferenceProps:s,getFloatingProps:a,getItemProps:c,getTriggerProps:f}),[s,a,c,f])}function o(e,t,n){let r=new Map,l="item"===n,o={};for(let t in"floating"===n&&(o.tabIndex=-1,o[i.Ed]=""),e)l&&e&&(t===i.XA||t===i.WS)||(o[t]=e[t]);for(let i=0;i<t.length;i+=1){let s,a=t[i]?.[n];(s="function"==typeof a?e?a(e):null:a)&&u(o,s,l,r)}return u(o,e,l,r),o}function u(e,t,n,r){for(let l in t){let o=t[l];n&&(l===i.XA||l===i.WS)||(l.startsWith("on")?(r.has(l)||r.set(l,[]),"function"==typeof o&&(r.get(l)?.push(o),e[l]=(...e)=>r.get(l)?.map(t=>t(...e)).find(e=>void 0!==e))):e[l]=o)}}},24758:(e,t,n)=>{n.d(t,{R:()=>r});function r(e){return e?.ownerDocument||document}},30125:(e,t,n)=>{var r=n(12115),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=r.useState,o=r.useEffect,u=r.useLayoutEffect,s=r.useDebugValue;function a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=l({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return u(function(){i.value=n,i.getSnapshot=t,a(i)&&c({inst:i})},[e,n,t]),o(function(){return a(i)&&c({inst:i}),e(function(){a(i)&&c({inst:i})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c}
1,32614:(e,t,n)=>{n.d(t,{q:()=>r});function r(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}},33007:(e,t,n)=>{n.d(t,{j:()=>i});var r=n(12115);function i(e){let t=r.useRef(!0);t.current&&(t.current=!1,e())}},33198:(e,t,n)=>{n.d(t,{$4:()=>r,CM:()=>function e(t,n,r=!0){return t.filter(e=>e.parentId===n).flatMap(n=>[...!r||n.context?.open?[n]:[],...e(t,n.id,r)])}});function r(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}},36475:(e,t,n)=>{n.d(t,{K:()=>s});var r=n(6968),i=n(57609),l=n(55059),o=n(32587);let u={open:(0,r.M)(e=>e.open),transitionStatus:(0,r.M)(e=>e.transitionStatus),domReferenceElement:(0,r.M)(e=>e.domReferenceElement),referenceElement:(0,r.M)(e=>e.positionReference??e.referenceElement),floatingElement:(0,r.M)(e=>e.floatingElement),floatingId:(0,r.M)(e=>e.floatingId)};class s extends i.H{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...o}=e;super({...o,positionReference:o.referenceElement,domReferenceElement:o.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:(0,l.d)(),nested:n,triggerElements:i},u),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||null!=t&&(0,o.Ev)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>
1{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{if(this.syncOnly)return void this.context.onOpenChange?.(e,t);this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}},39071:(e,t,n)=>{n.d(t,{p:()=>l});var r=n(60204);let i=0;function l(e,t={}){let{preventScroll:n=!1,cancelPrevious:o=!0,sync:u=!1}=t;o&&cancelAnimationFrame(i);let s=()=>e?.focus({preventScroll:n});if(u)return s(),r.tE;let a=requestAnimationFrame(s);return i=a,()=>{i===a&&(cancelAnimationFrame(a),i=0)}}},42864:(e,t,n)=>{n.d(t,{K:()=>m});var r=n(2066),i=n(32614),l=n(7036),o=n(24758),u=n(39972),s=n(86545),a=n(58261),c=n(60204);let f={},d={},h="";class p{acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}lock(e){if(0===this.lockCount||null!==this.restore)return;let t=(0,o.R)(e).documentElement,n=(0,r.zk)(t).getComputedStyle(t).overflowY;if("hidden"===n||"clip"===n){this.restore=c.tE;return}let u=l.un||!function(e){if("undefined"==typeof document)return!1;let t=(0,o.R)(e);return(0,r.zk)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=u?function(e){let t=(0,o.R)(e),n=t.documentElement,i=t.body,l=(0,r.ZU)(n)?n:i,u={overflowY:l.style.overflowY,overflowX:l.style.overflowX};return Object.assign(l.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(l.style,u)}}(e):function(e){var t,n;let u=(0,o.R)(e),s=u.documentElement,c=u.body,p=(0,r.zk)(s),g=0,m=0,v=!1,y=a.K.create();if(l.Tc&&(null!=(n=null==(t=p.visualViewport)?void 0:t.scale)?n:1)!==1)return()=>{};function b(){let t=p.getComputedStyle(s),n=p.getComputedStyle(c),i=(t.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";g=s.scrollTop,m=s.scrollLeft,f={scrollbarGutter:s.style.scrollbarGutter,overflowY:s.style.overflowY,overflowX:s.style.overflowX},h=s.style.scrollBehavior,d={position:c.style.position,height:c.style.height,width:c.style.width,boxSizing:c.style.boxSizing,overflowY:c.style.overflowY,overflowX:c.style.overflowX,scrollBehavior:c.style.scrollBehavior};let l=s.scrollHeight>s.clientHeight,u=s.scrollWidth>s.clientWidth,a="scroll"===t.overflowY||"scroll"===n.overflowY,y="scroll"===t.overflowX||"scroll"===n.overflowX,b=Math.max(0,p.innerWidth-c.clientWidth),x=Math.max(0,p.innerHeight-c.clientHeight),w=parseFloat(n.marginTop)+parseFloat(n.marginBottom),R=parseFloat(n.marginLeft)+parseFloat(n.marginRight),E=(0,r.ZU)(s)?s:c;if(v=function(e){if(!("undefined"!=typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"undefined"==typeof document)return!1;let t=(0,o.R)(e),n=t.documentElement,i=t.body,l=(0,r.ZU)(n)?n:i,u=l.style.overflowY,s=n.style.scrollbarGutter;n.style.scrollbarGutter="stable",l.style.overflowY="scroll";let a=l.offsetWidth;l.style.overflowY="hidden";let c=l.offsetWidth;return l.style.overflowY=u,n.style.scrollbarGutter=s,a===c}(e)){s.style.scrollbarGutter=i,E.style.overflowY="hidden",E.style.overflowX="hidden";return}Object.assign(s.style,{scrollbarGutter:i,overflowY:"hidden",overflowX:"hidden"}),(l||a)&&(s.style.overflowY="scroll"),(u||y)&&(s.style.overflowX="scroll"),Object.assign(c.style,{position:"relative",height:w||x?"calc(100dvh - ".concat(w+x,"px)"):"100dvh",width:R||b?"calc(100vw - ".concat(R+b,"px)"):"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),c.scrollTop=g,c.scrollLeft=m,s.setAttribute("data-base-ui-scroll-locked",""),s.style.scrollBehavior="unset"}function x(){Object.assign(s.style,f),Object.assign(c.style,d),v||(s.scrollTop=g,s.scrollLeft=m,s.removeAttribute("data-base-ui-scroll-locked"),s.style.scrollBehavior=h)}b();let w=(0,i.q)(p,"resize",function(){x(),y.request(b)});return()=>{y.cancel(),x(),"function"==typeof p.removeEventListener&&w()}}(e)}constructor(){this.lockCount=0,this.restore=null,this.timeoutLock=s.E.create(),this.timeoutUnlock=s.E.create(),this.release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)},this.unlock=()=>
1{if(0===this.lockCount&&this.restore){var e;null==(e=this.restore)||e.call(this),this.restore=null}}}}let g=new p;function m(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,u.g)(()=>{if(e)return g.acquire(t)},[e,t])}},44184:(e,t,n)=>{n.d(t,{W:()=>l});var r=n(12115),i=n(95155);let l=r.forwardRef(function(e,t){let n,{cutout:r,...l}=e;if(r){let e=r.getBoundingClientRect();n=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,i.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...l,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:n}})})},47031:(e,t,n)=>{n.d(t,{$u:()=>c,F2:()=>s,H5:()=>f,Hi:()=>u,WZ:()=>d,em:()=>h,nd:()=>p,tZ:()=>a});var r=n(2066),i=n(7036),l=n(66162),o=n(18162);function u(e,t){if(!(0,r.vq)(e))return!1;if(t.hasElement(e))return!e.hasAttribute("data-trigger-disabled");for(let[,n]of t.entries())if((0,o.gR)(n,e))return!n.hasAttribute("data-trigger-disabled");return!1}function s(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function a(e){return e.matches("html,body")}function c(e){return(0,r.sb)(e)&&e.matches(l.BT)}function f(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${l.BT}`)!=null}function d(e){return!!e&&"combobox"===e.getAttribute("role")&&c(e)}function h(e){if(!e||i.KT)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}function p(e){return e?e.hasAttribute(l.Ed)?e:e.querySelector(`[${l.Ed}]`)||e:null}},48542:(e,t,n)=>{n.d(t,{Y:()=>i});var r=n(69410);function i(e){return(0,r._)(19)?e:e?"true":void 0}},55051:(e,t,n)=>{n.d(t,{k:()=>i});var r=n(55059);class i{nodesRef={current:[]};events=(0,r.d)();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);-1!==t&&this.nodesRef.current.splice(t,1)}}},55059:(e,t,n)=>{n.d(t,{d:()=>r});function r(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}},57609:(e,t,n)=>{n.d(t,{H:()=>a});var r=n(12115),i=n(18614),l=n(73301),o=n(7546),u=n(39972),s=n(60204);class a extends i.i{useSyncedValue(e,t){r.useDebugValue(e),(0,u.g)(()=>{this.state[e]!==t&&this.set(e,t)},[e,t])}useSyncedValueWithCleanup(e,t){let n=this;(0,u.g)(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);(0,u.g)(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){r.useDebugValue(e);let n=void 0!==t;(0,u.g)(()=>{n&&!Object.is(this.state[e],t)&&super.setState({...this.state,[e]:t})},[e,t,n])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,t,n,i){return r.useDebugValue(e),(0,l.P)(this,this.selectors[e],t,n,i)}useContextCallback(e,t){r.useDebugValue(e);let n=(0,o.K)(null!=t?t:s.tE);this.context[e]=n}useStateSetter(e){let t=r.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n,r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}constructor(e,t={},n){super(e),this.context=t,this.selectors=n}}},61095:(e,t,n)=>{n.d(t,{s:()=>x});var r=n(12115),i=n(2066),l=n(32614),o=n(90924),u=n(86545),s=n(7546),a=n(24758),c=n(47031),f=n(18162),d=n(32587),h=n(33198),p=n(20798),g=n(14043),m=n(85753),v=n(64499);let y={intentional:"onClick",sloppy:"onPointerDown"};function b(){return!1}function x(e){var t,n;let x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},w="rootStore"in e?e.rootStore:e,R=w.useState("open"),E=w.useState("floatingElement"),{dataRef:S}=w.context,{enabled:k=!0,escapeKey:C=!0,outsidePress:T=!0,outsidePressEvent:O="sloppy",referencePress:A=b,referencePressEvent:q="sloppy",bubbles:M,externalTree:P}=x,W=(0,p.cq)(P),j=(0,s.K)("function"==typeof T?T:()=>!1),L="function"==typeof T?j:T,F=!1!==L,I=(0,s.K)(()=>O),D=r.useRef(!1),V=r.useRef(!1),H=r.useRef(!1),{escapeKey:B,outsidePress:z}={escapeKey:"boolean"==typeof M?M:null!=(t=null==M?void 0:M.escapeKey)&&t,outsidePress:"boolean"==typeof M?M:null==(n=null==M?void 0:M.outsidePress)||n},K=r.useRef(null),_=(0,u.Z)(),N=(0,u.Z)(),X=(0,s.K)(()=>{N.clear(),S.current.insideReactTree=!1}),Y=r.useRef(!1),$=r.useRef(""),U=(0,s.K)(A),Z=(0,s.K)(e=>{var t;
1if(!R||!k||!C||"Escape"!==e.key||Y.current)return;let n=null==(t=S.current.floatingContext)?void 0:t.nodeId,r=W?(0,h.CM)(W.nodesRef.current,n):[];if(!B&&r.length>0){let e=!0;if(r.forEach(t=>{var n;(null==(n=t.context)?void 0:n.open)&&!t.context.dataRef.current.__escapeKeyBubbles&&(e=!1)}),!e)return}let i=(0,d.O_)(e)?e.nativeEvent:e,l=(0,g.d)(m.jv,i);w.setOpen(!1,l),B||l.isPropagationAllowed||e.stopPropagation()}),J=(0,s.K)(()=>{S.current.insideReactTree=!0,N.start(0,X)});r.useEffect(()=>{if(!R||!k)return;S.current.__escapeKeyBubbles=B,S.current.__outsidePressBubbles=z;let e=new u.E,t=new u.E;function n(){H.current=!0,t.start(0,()=>{H.current=!1})}function r(){D.current=!1,V.current=!1}function s(){let e=$.current,t=I(),n="function"==typeof t?t():t;return"string"==typeof n?n:n["pen"!==e&&e?e:"mouse"]}function d(e){var t;let n=null==(t=S.current.floatingContext)?void 0:t.nodeId,r=W&&(0,h.CM)(W.nodesRef.current,n).some(t=>{var n;return(0,c.F2)(e,null==(n=t.context)?void 0:n.elements.floating)});return(0,c.F2)(e,w.select("floatingElement"))||(0,c.F2)(e,w.select("domReferenceElement"))||r}function p(e){var n;if(function(e){let t=s();return"intentional"===t&&"click"!==e.type||"sloppy"===t&&"click"===e.type}(e)||S.current.insideReactTree)return void X();let r=(0,f.EW)(e),l="[".concat((0,v.F)("inert"),"]"),o=(0,i.vq)(r)?r.getRootNode():null,u=Array.from(((0,i.Ng)(o)?o:(0,a.R)(w.select("floatingElement"))).querySelectorAll(l)),p=w.context.triggerElements;if(r&&(p.hasElement(r)||p.hasMatchingElement(e=>(0,f.gR)(e,r))))return;let y=(0,i.vq)(r)?r:null;for(;y&&!(0,i.eu)(y);){let e=(0,i.$4)(y);if((0,i.eu)(e)||!(0,i.vq)(e))break;y=e}if(u.length&&(0,i.vq)(r)&&!(0,c.tZ)(r)&&!(0,f.gR)(r,w.select("floatingElement"))&&u.every(e=>!(0,f.gR)(y,e)))return;if((0,i.sb)(r)&&!("touches"in e)){let t=(0,i.eu)(r),n=(0,i.L9)(r),l=/auto|scroll/,o=t||l.test(n.overflowX),u=t||l.test(n.overflowY),s=o&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,a=u&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,c="rtl"===n.direction,f=a&&(c?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),d=s&&e.offsetY>r.clientHeight;if(f||d)return}if(d(e))return;if("intentional"===s()&&H.current){t.clear(),H.current=!1;return}if("function"==typeof L&&!L(e))return;let b=null==(n=S.current.floatingContext)?void 0:n.nodeId,x=W?(0,h.CM)(W.nodesRef.current,b):[];if(x.length>0){let e=!0;if(x.forEach(t=>{var n;(null==(n=t.context)?void 0:n.open)&&!t.context.dataRef.current.__outsidePressBubbles&&(e=!1)}),!e)return}w.setOpen(!1,(0,g.d)(m.Np,e)),X()}function y(e){if("sloppy"!==s()||!w.select("open")||!k||(0,c.F2)(e,w.select("floatingElement"))||(0,c.F2)(e,w.select("domReferenceElement")))return;let t=e.touches[0];t&&(K.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},_.start(1e3,()=>{K.current&&(K.current.dismissOnTouchEnd=!1,K.current.dismissOnMouseDown=!1)}))}function b(e,t){let n=(0,f.EW)(e);if(!n)return;let r=(0,l.q)(n,e.type,()=>{t(e),r()})}function x(e){_.clear(),"pointerdown"===e.type&&($.current=e.pointerType),("mousedown"!==e.type||!K.current||K.current.dismissOnMouseDown)&&b(e,e=>{if("pointerdown"===e.type)"sloppy"!==s()||"touch"===e.pointerType||!w.select("open")||!k||(0,c.F2)(e,w.select("floatingElement"))||(0,c.F2)(e,w.select("domReferenceElement"))||p(e);else p(e)})}function T(e){if(!D.current)return;let i=V.current;if(r(),"intentional"===s()){if("pointercancel"===e.type){i&&n();return}if(!d(e)){if(i)return void n();("function"!=typeof L||L(e))&&(t.clear(),H.current=!0,X())}}}function O(e){if("sloppy"!==s()||!K.current||(0,c.F2)(e,w.select("floatingElement"))||(0,c.F2)(e,w.select("domReferenceElement")))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-K.current.startX),r=Math.abs(t.clientY-K.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(K.current.dismissOnTouchEnd=!0),i>10&&(p(e),_.clear(),K.current=null)}function A(e){"sloppy"!==s()||!K.current||(0,c.F2)(e,w.select("floatingElement"))||(0,c.F2)(e,w.select("domReferenceElement"))||(K.current.dismissOnTouchEnd&&p(e),_.clear(),K.current=null)}let q=(0,a.R)(E),M=(0,o.g)(C&&(0,o.g)((0,l.q)(q,"keydown",Z),(0,l.q)(q,"compositionstart",function(){e.clear(),Y.current=!0}),(0,l.q)(q,"compositionend",function(){e.start(5*!!(0,i.Tc)(),()=>{Y.current=!1})}
1)),F&&(0,o.g)((0,l.q)(q,"click",x,!0),(0,l.q)(q,"pointerdown",x,!0),(0,l.q)(q,"pointerup",T,!0),(0,l.q)(q,"pointercancel",T,!0),(0,l.q)(q,"mousedown",x,!0),(0,l.q)(q,"mouseup",T,!0),(0,l.q)(q,"touchstart",function(e){$.current="touch",b(e,y)},!0),(0,l.q)(q,"touchmove",function(e){b(e,O)},!0),(0,l.q)(q,"touchend",function(e){b(e,A)},!0)));return()=>{M(),e.clear(),t.clear(),r(),H.current=!1}},[S,E,C,F,L,R,k,B,z,Z,X,I,W,w,_]),r.useEffect(X,[L,X]);let G=r.useMemo(()=>({onKeyDown:Z,[y[q]]:e=>{U()&&w.setOpen(!1,(0,g.d)(m.Ui,e.nativeEvent))},..."intentional"!==q&&{onClick(e){U()&&w.setOpen(!1,(0,g.d)(m.Ui,e.nativeEvent))}}}),[Z,w,q,U]),Q=(0,s.K)(e=>{if(!R||!k||0!==e.button)return;let t=(0,f.EW)(e.nativeEvent);(0,f.gR)(w.select("floatingElement"),t)&&(D.current||(D.current=!0,V.current=!1))}),ee=(0,s.K)(e=>{R&&k&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&D.current&&(V.current=!0)}),et=r.useMemo(()=>({onKeyDown:Z,onPointerDown:ee,onMouseDown:ee,onClickCapture:J,onMouseDownCapture(e){J(),Q(e)},onPointerDownCapture(e){J(),Q(e)},onMouseUpCapture:J,onTouchEndCapture:J,onTouchMoveCapture:J}),[Z,J,Q,ee]);return r.useMemo(()=>k?{reference:G,floating:et,trigger:G}:{},[k,G,et])}},64499:(e,t,n)=>{n.d(t,{F:()=>r});function r(e){return`data-base-ui-${e}`}},73301:(e,t,n)=>{n.d(t,{P:()=>a});var r=n(12115),i=n(14806),l=n(8828),o=n(69410),u=n(95831);let s=(0,o._)(19)?function(e,t,n,l,o){let s,a=(0,u.iE)();if(!a){let u=r.useCallback(()=>t(e.getSnapshot(),n,l,o),[e,t,n,l,o]);return(0,i.useSyncExternalStore)(e.subscribe,u,u)}let c=a.syncIndex;return a.syncIndex+=1,a.didInitialize?(s=a.syncHooks[c]).store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,l)&&Object.is(s.a3,o)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=l,s.a3=o,s.didChange=!0):(s={store:e,selector:t,a1:n,a2:l,a3:o,value:t(e.getSnapshot(),n,l,o),didChange:!1},a.syncHooks.push(s)),s.value}:function(e,t,n,r,i){return(0,l.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))};function a(e,t,n,r,i){return s(e,t,n,r,i)}(0,u.kz)({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,i.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}})},78517:(e,t,n)=>{n.d(t,{s:()=>_});var r=n(12115),i=n(2066),l=n(32614),o=n(90924),u=n(86764),s=n(90416),a=n(7546),c=n(39972),f=n(86545),d=n(7036),h=n(58261),p=n(24758),g=n(79786),m=n(18162),v=n(47031),y=n(32587),b=n(97102),x=n(33198),w=n(78368),R=n(14043),E=n(85753),S=n(64499),k=n(39071);let C={inert:new WeakMap,"aria-hidden":new WeakMap},T="data-base-ui-inert",O={inert:new WeakSet,"aria-hidden":new WeakSet},A=new WeakMap,q=0,M=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=function e(t){return t?(0,i.Ng)(t)?t.host:e(t.parentNode):null}(t);return e.contains(n)?n:null}).filter(e=>null!=e),P=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},W=(e,t,n)=>{let r=[],l=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,i.mq)(e)&&(t.has(e)?l(e):r.push(e))})};return l(e),r};function j(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:l=[]}=t,o=(0,p.R)(e[0]).body;return function(e,t,n,r,{mark:i=!0,markerIgnoreElements:l=[]}){let o=r?"inert":n?"aria-hidden":null,u=null,s=null,a=M(t,e),c=new Set(i?M(t,l):[]),f=i?W(t,P(a),new Set(a)).filter(e=>!c.has(e)):[],d=[],h=[];if(o){let e=C[o],n=O[o];s=n,u=e;let r=M(t,Array.from(t.querySelectorAll("[aria-live]"))),i=a.concat(r);W(t,P(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=null!==r&&"false"!==r,l=(e.get(t)||0)+1;e.set(t,l),d.push(t),1===l&&i&&n.add(t),i||t.setAttribute(o,"inert"===o?"":"true")})}
1return i&&f.forEach(e=>{let t=(A.get(e)||0)+1;A.set(e,t),h.push(e),1===t&&e.setAttribute(T,"")}),q+=1,()=>{u&&d.forEach(e=>{let t=(u.get(e)||0)-1;u.set(e,t),t||(!s?.has(e)&&o&&e.removeAttribute(o),s?.delete(e))}),i&&h.forEach(e=>{let t=(A.get(e)||0)-1;A.set(e,t),t||e.removeAttribute(T)}),(q-=1)||(C.inert=new WeakMap,C["aria-hidden"]=new WeakMap,O.inert=new WeakSet,O["aria-hidden"]=new WeakSet,A=new WeakMap)}}(e,o,n,r,{mark:i,markerIgnoreElements:l})}var L=n(7352),F=n(20798),I=n(16275),D=n(75302),V=n(95155);let H=[];function B(){H=H.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function z(){var e;return B(),null==(e=H[H.length-1])?void 0:e.deref()}function K(e,t){var n;if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!t.current.includes("floating")&&!(null==(n=e.getAttribute("role"))?void 0:n.includes("dialog")))return;let r=(0,b.nq)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,b.AO)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),i=e.getAttribute("tabindex");t.current.includes("floating")||0===r.length?"0"!==i&&e.setAttribute("tabindex","0"):("-1"!==i||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function _(e){let{context:t,children:n,disabled:C=!1,initialFocus:T=!0,returnFocus:O=!0,restoreFocus:A=!1,modal:q=!0,closeOnFocusOut:M=!0,openInteractionType:P="",nextFocusableElement:W,previousFocusableElement:_,beforeContentFocusGuardRef:N,externalTree:X,getInsideElements:Y}=e,$="rootStore"in t?t.rootStore:t,U=$.useState("open"),Z=$.useState("domReferenceElement"),J=$.useState("floatingElement"),{events:G,dataRef:Q}=$.context,ee=(0,a.K)(()=>{var e;return null==(e=Q.current.floatingContext)?void 0:e.nodeId}),et=!1===T,en=(0,v.WZ)(Z)&&et,er=r.useRef(["content"]),ei=(0,s.u)(T),el=(0,s.u)(O),eo=(0,s.u)(P),eu=(0,F.cq)(X),es=(0,L.vB)(),ea=r.useRef(!1),ec=r.useRef(!1),ef=r.useRef(!1),ed=r.useRef(null),eh=r.useRef(""),ep=r.useRef(""),eg=r.useRef(null),em=r.useRef(null),ev=(0,u.a)(eg,N,null==es?void 0:es.beforeInsideRef),ey=(0,u.a)(em,null==es?void 0:es.afterInsideRef),eb=(0,f.Z)(),ex=(0,f.Z)(),ew=(0,h.N)(),eR=null!=es,eE=(0,v.nd)(J),eS=(0,a.K)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eE;return e?(0,b.Kr)(e):[]}),ek=(0,a.K)(()=>{var e;return null!=(e=null==Y?void 0:Y().filter(e=>null!=e))?e:[]});r.useEffect(()=>{if(C||!q)return;let e=(0,p.R)(eE);return(0,l.q)(e,"keydown",function(e){"Tab"===e.key&&(0,m.gR)(eE,(0,m.RS)((0,p.R)(eE)))&&0===eS().length&&!en&&(0,y.jo)(e)})},[C,Z,eE,q,er,en,eS]),r.useEffect(()=>{if(C||!U)return;let e=(0,p.R)(eE);function t(){ef.current=!1}return(0,o.g)((0,l.q)(e,"pointerdown",function(e){let t=(0,m.EW)(e),n=ek();ef.current=!((0,m.gR)(J,t)||(0,m.gR)(Z,t)||(0,m.gR)(null==es?void 0:es.portalNode,t)||n.some(e=>e===t||(0,m.gR)(e,t))),ep.current=e.pointerType||"keyboard",(null==t?void 0:t.closest("[".concat(I.Kd,"]")))&&(ec.current=!0)},!0),(0,l.q)(e,"pointerup",t,!0),(0,l.q)(e,"pointercancel",t,!0),(0,l.q)(e,"keydown",function(){ep.current="keyboard"},!0))},[C,J,Z,eE,U,es,ek]),r.useEffect(()=>{if(C||!M)return;let e=(0,p.R)(eE);function t(t){let n=t.relatedTarget,r=t.currentTarget,l=(0,m.EW)(t);queueMicrotask(()=>{let o=ee(),u=$.context.triggerElements,s=ek(),a=(null==n?void 0:n.hasAttribute((0,S.F)("focus-guard")))&&[eg.current,em.current,null==es?void 0:es.beforeInsideRef.current,null==es?void 0:es.afterInsideRef.current,null==es?void 0:es.beforeOutsideRef.current,null==es?void 0:es.afterOutsideRef.current,(0,D.q)(_),(0,D.q)(W)].includes(n),c=!((0,m.gR)(Z,n)||(0,m.gR)(J,n)||(0,m.gR)(n,J)||(0,m.gR)(null==es?void 0:es.portalNode,n)||s.some(e=>e===n||(0,m.gR)(e,n))||null!=n&&u.hasElement(n)||u.hasMatchingElement(e=>(0,m.gR)(e,n))||a||eu&&((0,x.CM)(eu.nodesRef.current,o).find(e=>{var t,r;return(0,m.gR)(null==(t=e.context)?void 0:t.elements.floating,n)||(0,m.gR)(null==(r=e.context)?void 0:r.elements.domReference,n)})||(0,x.$4)(eu.nodesRef.current,o).find(e=>{var t,r,i;return[null==(t=e.context)?void 0:t.elements.floating,(0,v.nd)(null==(r=e.context)?void 0:r.elements.floating)].includes(n)||(null==(i=e.context)?void 0:i.elements.domReference)===n})));if(r===Z&&eE&&K(eE,er),A&&r!==Z&&!(0,w.J9)(l)&&(0,m.RS)(e)===e.body){if((0,i.sb)(eE)&&
1(eE.focus(),"popup"===A))return void ew.request(()=>{eE.focus()});let e=eS(),t=ed.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||eE;(0,i.sb)(n)&&n.focus()}if(Q.current.insideReactTree){Q.current.insideReactTree=!1;return}(en||!q)&&n&&c&&!ec.current&&(en||n!==z())&&(ea.current=!0,$.setOpen(!1,(0,R.d)(E.Xn,t)))})}let n=(0,i.sb)(Z)?Z:null;if(J||n)return(0,o.g)(n&&(0,l.q)(n,"focusout",t),n&&(0,l.q)(n,"pointerdown",function(){ec.current=!0,ex.start(0,()=>{ec.current=!1})}),J&&(0,l.q)(J,"focusin",function(e){let t=(0,m.EW)(e);(0,b.AO)(t)&&(ed.current=t)}),J&&(0,l.q)(J,"focusout",t),J&&es&&(0,l.q)(J,"focusout",function(){ef.current||(Q.current.insideReactTree=!0,eb.start(0,()=>{Q.current.insideReactTree=!1}))},!0))},[C,Z,J,eE,q,eu,es,$,M,A,eS,en,ee,er,Q,eb,ex,ew,W,_,ek]),r.useEffect(()=>{var e,t,n;if(C||!J||!U)return;let r=Array.from((null==es||null==(e=es.portalNode)?void 0:e.querySelectorAll("[".concat((0,S.F)("portal"),"]")))||[]),i=null==(n=(eu?(0,x.$4)(eu.nodesRef.current,ee()):[]).find(e=>{var t;return(0,v.WZ)((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=n.context)?void 0:t.elements.domReference,l=j([J,...r,eg.current,em.current,null==es?void 0:es.beforeOutsideRef.current,null==es?void 0:es.afterOutsideRef.current,...ek(),i,(0,D.q)(_),(0,D.q)(W),en?Z:null].filter(e=>null!=e),{ariaHidden:q||en,mark:!1}),o=j([J,...r].filter(e=>null!=e));return()=>{o(),l()}},[U,C,Z,J,q,er,es,en,eu,ee,W,_,ek]),(0,c.g)(()=>{if(!U||C||!(0,i.sb)(eE))return;let e=(0,p.R)(eE),t=(0,m.RS)(e);queueMicrotask(()=>{let e,n=ei.current,r="function"==typeof n?n(eo.current||""):n;if(void 0===r||!1===r||(0,m.gR)(eE,t))return;let i=null,l=()=>(null==i&&(i=eS(eE)),i[0]||eE);e=(e=!0===r||null===r?l():(0,D.q)(r))||l(),(0,k.p)(e,{preventScroll:e===eE})})},[C,U,eE,et,eS,ei,eo]),(0,c.g)(()=>{var e;if(C||!eE)return;let t=(0,p.R)(eE);function n(e){if(e.open||(eh.current=function(e,t){let n=(0,i.zk)((0,m.EW)(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(0===e.detail?"keyboard":"mouse"):""}(e.nativeEvent,ep.current)),e.reason===E.N7&&"mouseleave"===e.nativeEvent.type&&(ea.current=!0),e.reason===E.Np)if(e.nested)ea.current=!1;else if((0,y.YF)(e.nativeEvent)||(0,y.Pg)(e.nativeEvent))ea.current=!1;else{let e=!1;(0,p.R)(eE).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?ea.current=!1:ea.current=!0}}return e=(0,m.RS)(t),B(),e&&"body"!==(0,i.mq)(e)&&(H.push(new WeakRef(e)),H.length>20&&(H=H.slice(-20))),G.on("openchange",n),()=>{G.off("openchange",n);let e=(0,m.RS)(t),r=ek(),l=(0,m.gR)(J,e)||r.some(t=>t===e||(0,m.gR)(t,e))||eu&&(0,x.CM)(eu.nodesRef.current,ee(),!1).some(t=>{var n;return(0,m.gR)(null==(n=t.context)?void 0:n.elements.floating,e)}),o=el.current,u=function(){let e=el.current,t="function"==typeof e?e(eh.current):e;if(void 0===t||!1===t)return null;if(null===t&&(t=!0),"boolean"==typeof t){let e=Z||z();return e&&e.isConnected?e:null}let n=Z||z();return(0,D.q)(t)||n||null}();queueMicrotask(()=>{let n=u?(0,b.AO)(u)?u:(0,b.Kr)(u)[0]||u:null;o&&!ea.current&&(0,i.sb)(n)&&("boolean"!=typeof o||n===e||e===t.body||l)&&n.focus({preventScroll:!0}),ea.current=!1})}},[C,J,eE,el,Q,G,eu,Z,ee,ek]),(0,c.g)(()=>{if(!d.Tc||U||!J)return;let e=(0,m.RS)((0,p.R)(J));(0,i.sb)(e)&&(0,v.$u)(e)&&(0,m.gR)(J,e)&&e.blur()},[U,J]),(0,c.g)(()=>{if(!C&&es)return es.setFocusManagerState({modal:q,closeOnFocusOut:M,open:U,onOpenChange:$.setOpen,domReference:Z}),()=>{es.setFocusManagerState(null)}},[C,es,q,U,$,M,Z]),(0,c.g)(()=>{if(!C&&eE)return K(eE,er),()=>{queueMicrotask(B)}},[C,eE,er]);let eC=!C&&(!q||!en)&&(eR||q);return(0,V.jsxs)(r.Fragment,{children:[eC&&(0,V.jsx)(g.U,{"data-type":"inside",ref:ev,onFocus:e=>{if(q){let e=eS();(0,k.p)(e[e.length-1])}else if(null==es?void 0:es.portalNode)if(ea.current=!1,(0,b.Qp)(e,es.portalNode)){let e=(0,b.vF)(Z);null==e||e.focus()}else{var t;null==(t=(0,D.q)(null!=_?_:es.beforeOutsideRef))||t.focus()}}}),n,eC&&(0,V.jsx)(g.U,{"data-type":"inside",ref:ey,onFocus:e=>{if(q)(0,k.p)(eS()[0]);else if(null==es?void 0:es.portalNode)if(M&&(ea.current=!0),(0,b.Qp)(e,es.portalNode)){let e=(0,b.XJ)(Z);null==e||e.focus()}else{var t;
1null==(t=(0,D.q)(null!=W?W:es.afterOutsideRef))||t.focus()}}})]})}},79422:(e,t,n)=>{n.d(t,{i:()=>o});var r=n(10130),i=n(87711),l=n(8147);function o(e,t,n){let{styles:o,transitionStatus:u,props:s,refs:a,hidden:c,inert:f=!1}=n,d={...o};return f&&(d.pointerEvents="none"),(0,i.o)("div",e,{state:t,ref:a,props:[{role:"presentation",hidden:c,style:d},(0,l.d)(u),s],stateAttributesMapping:r.GW})}},79786:(e,t,n)=>{n.d(t,{U:()=>s});var r=n(12115),i=n(39972),l=n(7036),o=n(35600),u=n(95155);let s=r.forwardRef(function(e,t){let[n,s]=r.useState();return(0,i.g)(()=>{l.nr&&s("button")},[]),(0,u.jsx)("span",{...e,ref:t,style:o.Q,"aria-hidden":!n||void 0,...{tabIndex:0,role:n},"data-base-ui-focus-guard":""})})},83654:(e,t,n)=>{var r=n(12115),i=n(14806),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,u=r.useRef,s=r.useEffect,a=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var f=u(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var h=o(e,(f=a(function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return u=t}return u=e}if(t=u,l(o,e))return t;var n=r(e);return void 0!==i&&i(t,n)?(o=e,t):(o=e,u=n)}var o,u,s=!1,a=void 0===n?null:n;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,n,r,i]))[0],f[1]);return s(function(){d.hasValue=!0,d.value=h},[h]),c(h),h}},86545:(e,t,n)=>{n.d(t,{E:()=>l,Z:()=>o});var r=n(77509),i=n(52624);class l{static create(){return new l}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}}function o(){let e=(0,r.j)(l.create).current;return(0,i.y)(e.disposeEffect),e}}
1,86738:(e,t,n)=>{n.d(t,{s:()=>S});var r=n(12115),i=n(10208),l=n(24758),o=n(2066),u=n(39972),s=n(90416),a=n(7546),c=n(20861),f=n(47650),d="undefined"!=typeof document?r.useLayoutEffect:function(){};function h(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!h(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!h(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function p(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function g(e,t){let n=p(e);return Math.round(t*n)/n}function m(e){let t=r.useRef(e);return d(()=>{t.current=e}),t}var v=n(20798),y=n(8098),b=n(58154);let x={name:"hide",async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,l=await ((e,t)=>{let n=(0,c.jD)(e);return{name:n.name,fn:n.fn,options:[e,t]}})().fn(e);return{data:{referenceHidden:l.data?.referenceHidden||0===t&&0===n&&0===r&&0===i}}}};var w=n(19779);function R(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function E(e,t,n){let{rects:r,placement:l}=e;return{side:R(t,(0,i.C0)(l),n),align:(0,i.Sg)(l)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function S(e){var t,n;let S,C,{anchor:T,positionMethod:O="absolute",side:A="bottom",sideOffset:q=0,align:M="center",alignOffset:P=0,collisionBoundary:W,collisionPadding:j=5,sticky:L=!1,arrowPadding:F=5,disableAnchorTracking:I=!1,keepMounted:D=!1,floatingRootContext:V,mounted:H,collisionAvoidance:B,shiftCrossAxis:z=!1,nodeId:K,adaptiveOrigin:_,lazyFlip:N=!1,externalTree:X}=e,[Y,$]=r.useState(null);H||null===Y||$(null);let U=B.side||"flip",Z=B.align||"flip",J=B.fallbackAxisSide||"end",G="function"==typeof T?T:void 0,Q=(0,a.K)(G),ee=G?Q:T,et=(0,s.u)(T),en=(0,s.u)(H),er="rtl"===(0,b.j)(),ei=Y||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":er?"left":"right","inline-start":er?"right":"left"})[A],el="center"===M?ei:"".concat(ei,"-").concat(M),eo=j,eu=+("bottom"===A),es=+("top"===A),ea=+("right"===A),ec=+("left"===A);"number"==typeof eo?eo={top:eo+eu,right:eo+ec,bottom:eo+es,left:eo+ea}:eo&&(eo={top:(eo.top||0)+eu,right:(eo.right||0)+ec,bottom:(eo.bottom||0)+es,left:(eo.left||0)+ea});let ef={boundary:"clipping-ancestors"===W?"clippingAncestors":W,padding:eo},ed=r.useRef(null),eh=(0,s.u)(q),ep=(0,s.u)(P),eg=[((e,t)=>{let n=(0,c.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}})(e=>{let t=E(e,A,er),n="function"==typeof eh.current?eh.current(t):eh.current,r="function"==typeof ep.current?ep.current(t):ep.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},["function"!=typeof q?q:0,"function"!=typeof P?P:0,er,A])],em="none"===Z&&"shift"!==U,ev=!em&&(L||z||"shift"===U),ey="none"===U?null:((e,t)=>{let n=(0,c.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ef,padding:{top:eo.top+1,right:eo.right+1,bottom:eo.bottom+1,left:eo.left+1},mainAxis:!z&&"flip"===U,crossAxis:"flip"===Z&&"alignment",fallbackAxisSideDirection:J}),eb=em?null:((e,t)=>{let n=(0,c.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}})(e=>{var t,n;let r=(0,l.R)(e.elements.floating).documentElement;return{...ef,rootBoundary:z?{x:0,y:0,width:r.clientWidth,height:r.clientHeight}:void 0,mainAxis:"none"!==Z,crossAxis:ev,limiter:L||z?void 0:(t=e=>{if(!ed.current)return{};let{width:t,height:n}=ed.current.getBoundingClientRect(),r=(0,i.TV)((0,i.C0)(e.placement)),l="y"===r?eo.left+eo.right:eo.top+eo.bottom;return{offset:("y"===r?t:n)/2+l/2}},{fn:(0,c.ER)(t).fn,options:[t,n]})}},[ef,L,z,eo,Z]);"shift"===U||"shift"===Z||"center"===M?eg.push(eb,ey):eg.push(ey,eb),eg.push(((e,t)=>{let n=(0,c.Ej)(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ef,apply(e){let{elements:{floating:t},availableWidth:n,availableHeight:r,rects:i}=e;if(!en.current)return;let l=t.style;l.setProperty("--available-width","".concat(n,"px")),l.setProperty("--available-height","".concat(r,"px"));let u=(0,o.zk)(t).devicePixelRatio||1,{x:s,y:a,width:c,height:f}=i.reference,d=(Math.round((s+c)*u)-Math.round(s*u))/u,h=(Math.round((a+f)*u)-Math.round(a*u))/u;l.setProperty("--anchor-width","".concat(d,"px")),l.setProperty("--anchor-height","".concat(h,"px"))}}),(S=()=>({element:ed.current||(0,l.R)(ed.current).createElement("div"),padding:F,offsetParent:"floating"}),C=[F],{name:"arrow",options:S,async fn(e){let{x:t,y:n,placement:r,rects:l,platform:o,elements:u,middlewareData:s}=e,{element:a,padding:c=0,offsetParent:f="real"}=(0,i._3)(S,e)||{};if(null==a)return{};let d=(0,i.nI)(c),h={x:t,y:n},p=(0,i.Dz)(r),g=(0,i.sq)(p),m=await o.getDimensions(a),v="y"===p,y=v?"clientHeight":"clientWidth",b=l.reference[g]+l.reference[p]-h[p]-l.floating[g],x=h[p]-l.reference[p],w="real"===f?await o.getOffsetParent?.(a):u.floating,R=u.floating[y]||l.floating[g];R&&await o.isElement?.(w)||(R=u.floating[y]||l.floating[g]);let E=R/2-m[g]/2-1,k=Math.min(d[v?"top":"left"],E),C=Math.min(d[v?"bottom":"right"],E),T=R-m[g]-C,O=R/2-m[g]/2+(b/2-x/2),A=(0,i.qE)(k,O,T),q=!s.arrow&&null!=(0,i.Sg)(r)&&O!==A&&l.reference[g]/2-(O<k?k:C)-m[g]/2<0,M=q?O<k?O-k:O-T:0;return{[p]:h[p]+M,data:{[p]:A,centerOffset:O-A-M,...q&&{alignmentOffset:M}},reset:q}},options:[S,C]}),{name:"transformOrigin",fn(e){var t,n,r;let{elements:l,middlewareData:o,placement:u,rects:s,y:a}=e,c=(0,i.C0)(u),f=(0,i.TV)(c),d=ed.current,h=(null==(t=o.arrow)?void 0:t.x)||0,p=(null==(n=o.arrow)?void 0:n.y)||0,g=(null==d?void 0:d.clientWidth)||0,m=(null==d?void 0:d.clientHeight)||0,v=h+g/2,y=p+m/2,b=Math.abs((null==(r=o.shift)?void 0:r.y
1)||0),x=s.reference.height/2,w="function"==typeof q?q(E(e,A,er)):q,R=b>w,S={top:"".concat(v,"px calc(100% + ").concat(w,"px)"),bottom:"".concat(v,"px ").concat(-w,"px"),left:"calc(100% + ".concat(w,"px) ").concat(y,"px"),right:"".concat(-w,"px ").concat(y,"px")}[c],k="".concat(v,"px ").concat(s.reference.y+x-a,"px");return l.floating.style.setProperty("--transform-origin",ev&&"y"===f&&R?k:S),{}}},x,_),(0,u.g)(()=>{!H&&V&&V.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[H,V]);let ex=r.useMemo(()=>({elementResize:!I&&"undefined"!=typeof ResizeObserver,layoutShift:!I&&"undefined"!=typeof IntersectionObserver}),[I]),{refs:ew,elements:eR,x:eE,y:eS,middlewareData:ek,update:eC,placement:eT,context:eO,isPositioned:eA,floatingStyles:eq}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{nodeId:t,externalTree:n}=e,i=(0,y.P)(e),l=e.rootContext||i,s={reference:l.useState("referenceElement"),floating:l.useState("floatingElement"),domReference:l.useState("domReferenceElement")},[a,b]=r.useState(null),x=r.useRef(null),w=(0,v.cq)(n);(0,u.g)(()=>{s.domReference&&(x.current=s.domReference)},[s.domReference]);let R=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:l,elements:{reference:o,floating:u}={},transform:s=!0,whileElementsMounted:a,open:v}=e,[y,b]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,w]=r.useState(i);h(x,i)||w(i);let[R,E]=r.useState(null),[S,k]=r.useState(null),C=r.useCallback(e=>{e!==q.current&&(q.current=e,E(e))},[]),T=r.useCallback(e=>{e!==M.current&&(M.current=e,k(e))},[]),O=o||R,A=u||S,q=r.useRef(null),M=r.useRef(null),P=r.useRef(y),W=null!=a,j=m(a),L=m(l),F=m(v),I=r.useCallback(()=>{if(!q.current||!M.current)return;let e={placement:t,strategy:n,middleware:x};L.current&&(e.platform=L.current),(0,c.rD)(q.current,M.current,e).then(e=>{let t={...e,isPositioned:!1!==F.current};D.current&&!h(P.current,t)&&(P.current=t,f.flushSync(()=>{b(t)}))})},[x,t,n,L,F]);d(()=>{!1===v&&P.current.isPositioned&&(P.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[v]);let D=r.useRef(!1);d(()=>(D.current=!0,()=>{D.current=!1}),[]),d(()=>{if(O&&(q.current=O),A&&(M.current=A),O&&A){if(j.current)return j.current(O,A,I);I()}},[O,A,I,j,W]);let V=r.useMemo(()=>({reference:q,floating:M,setReference:C,setFloating:T}),[C,T]),H=r.useMemo(()=>({reference:O,floating:A}),[O,A]),B=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!H.floating)return e;let t=g(H.floating,y.x),r=g(H.floating,y.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...p(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,H.floating,y.x,y.y]);return r.useMemo(()=>({...y,update:I,refs:V,elements:H,floatingStyles:B}),[y,I,V,H,B])}({...e,elements:{...s,...a&&{reference:a}}}),E=r.useCallback(e=>{let t=(0,o.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;b(t),R.refs.setReference(t)},[R.refs]),[S,k]=r.useState(void 0),[C,T]=r.useState(null);l.useSyncedValue("referenceElement",null!=S?S:null);let O=(0,o.vq)(S)?S:null;l.useSyncedValue("domReferenceElement",void 0===S?s.domReference:O),l.useSyncedValue("floatingElement",C);let A=r.useCallback(e=>{((0,o.vq)(e)||null===e)&&(x.current=e,k(e)),((0,o.vq)(R.refs.reference.current)||null===R.refs.reference.current||null!==e&&!(0,o.vq)(e))&&R.refs.setReference(e)},[R.refs,k]),q=r.useCallback(e=>{T(e),R.refs.setFloating(e)},[R.refs]),M=r.useMemo(()=>({...R.refs,setReference:A,setFloating:q,setPositionReference:E,domReference:x}),[R.refs,A,q,E]),P=r.useMemo(()=>({...R.elements,domReference:s.domReference}),[R.elements,s.domReference]),W=l.useState("open"),j=l.useState("floatingId"),L=r.useMemo(()=>({...R,dataRef:l.context.dataRef,open:W,onOpenChange:l.setOpen,events:l.context.events,floatingId:j,refs:M,elements:P,nodeId:t,rootStore:l}),[R,M,P,t,l,W,j]);return(0,u.g)(()=>{l.context.dataRef.current.floatingContext=L;let e=null==w?void 0:w.nodesRef.current.find(e=>e.id===t);e&&(e.context=L)}),r.useMemo(()=>({...R,context:L,refs:M,elements:P,rootStore:l}),[R,M,P,L,l])}({rootContext:V,open:D?H:void 0,placement:el,middleware:eg,strategy:O,whileElementsMounted:D?void 0:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,c.ll)(...t,ex)},nodeId:K,externalTree:X}),{sideX:eM,sideY:eP}=ek.adaptiveOrigin||w.j,eW=eA?O:"fixed",ej=r.useMemo(()=>{let e=_?{position:eW,[eM]:eE,[eP]:eS}:{position:eW,...eq};return eA||(e.opacity=0),e},[_,eW,eM,eE,eP,eS,eq,eA]),eL=r.useRef(null);(0,u.g)(()=>
1{if(!H)return;let e=et.current,t="function"==typeof e?e():e,n=(k(t)?t.current:t)||null;n!==eL.current&&(ew.setPositionReference(n),eL.current=n)},[H,ew,ee,et]),r.useEffect(()=>{if(!H)return;let e=et.current;"function"!=typeof e&&k(e)&&e.current!==eL.current&&(ew.setPositionReference(e.current),eL.current=e.current)},[H,ew,ee,et]),r.useEffect(()=>{if(D&&H&&eR.domReference&&eR.floating)return(0,c.ll)(eR.domReference,eR.floating,eC,ex)},[D,H,eR,eC,ex]);let eF=(0,i.C0)(eT),eI=R(A,eF,er),eD=(0,i.Sg)(eT)||"center",eV=!!(null==(t=ek.hide)?void 0:t.referenceHidden);(0,u.g)(()=>{N&&H&&eA&&$(eF)},[N,H,eA,eF]);let eH=r.useMemo(()=>{var e,t;return{position:"absolute",top:null==(e=ek.arrow)?void 0:e.y,left:null==(t=ek.arrow)?void 0:t.x}},[ek.arrow]),eB=(null==(n=ek.arrow)?void 0:n.centerOffset)!==0;return r.useMemo(()=>({positionerStyles:ej,arrowStyles:eH,arrowRef:ed,arrowUncentered:eB,side:eI,align:eD,physicalSide:eF,anchorHidden:eV,refs:ew,context:eO,isPositioned:eA,update:eC}),[ej,eH,ed,eB,eI,eD,eF,eV,ew,eO,eA,eC])}function k(e){return null!=e&&"current"in e}},90416:(e,t,n)=>{n.d(t,{u:()=>l});var r=n(39972),i=n(77509);function l(e){let t=(0,i.j)(o,e).current;return t.next=e,(0,r.g)(t.effect),t}function o(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}},90924:(e,t,n)=>{n.d(t,{g:()=>r});function r(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}},91165:(e,t,n)=>{n.d(t,{G:()=>u});var r=n(12115),i=n(7546),l=n(7036),o=n(5374);function u(e){let[t,n]=r.useState(null),u=(0,i.K)((t,r)=>{e||n(r||(l.un?"touch":""))});(0,o.x)(e,t=>{t&&!e&&n(null)});let{onClick:s,onPointerDown:a}=function(e){let t=r.useRef(""),n=r.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:r.useCallback(n=>{if(0===n.detail)return void e(n,"keyboard");"pointerType"in n?e(n,n.pointerType):e(n,t.current),t.current=""},[e]),onPointerDown:n}}(u);return r.useMemo(()=>({openMethod:t,triggerProps:{onClick:s,onPointerDown:a}}),[t,s,a])}},95831:(e,t,n)=>{let r;n.d(t,{G1:()=>a,iE:()=>u,kz:()=>s,nk:()=>c});var i=n(12115),l=n(77509);let o=[];function u(){return r}function s(e){o.push(e)}function a(e){let t=(t,n)=>{let i,u=(0,l.j)(f).current;try{for(let e of(r=u,o))e.before(u);for(let r of(i=e(t,n),o))r.after(u);u.didInitialize=!0}finally{r=void 0}return i};return t.displayName=e.displayName||e.name,t}function c(e){return i.forwardRef(a(e))}function f(){return{didInitialize:!1}}},97102:(e,t,n)=>{n.d(t,{AO:()=>h,Kr:()=>g,N:()=>E,Qp:()=>R,XJ:()=>y,Yu:()=>x,bp:()=>w,nq:()=>p,vF:()=>v,yV:()=>S});var r=n(2066),i=n(24758),l=n(18162),o=n(78368);function u(e){for(let t of Array.from(e.children))if("summary"===(0,r.mq)(t))return t;return null}function s(e){let t=e?(0,r.mq)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==t||null!=e.parentElement&&"details"===(0,r.mq)(e.parentElement)&&u(e.parentElement)===e)&&("details"!==t||null==u(e))&&("input"!==t||"hidden"!==e.type)}function a(e){if(!s(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=function(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return(0,r.Ng)(n)?n.host:null}(t)){let n=t!==e,i="slot"===(0,r.mq)(t);if(t.hasAttribute("inert")||n&&"details"===(0,r.mq)(t)&&!t.open&&!function(e,t){let n=u(t);return!!n&&(e===n||(0,l.gR)(n,e))}(e,t)||t.hasAttribute("hidden")||!i&&!function(e,t){let n=(0,r.L9)(e);return t?"none"!==n.display:(0,o.J9)(e,n)}(t,n))return!1}return!0}function c(e){let t=e.tabIndex;if(t<0){let t=(0,r.mq)(e);if("details"===t||"audio"===t||"video"===t||(0,r.sb)(e)&&e.isContentEditable)return 0}return t}function f(e){return"input"!==(0,r.mq)(e)?null:"radio"===e.type&&""!==e.name?e:null}function d(e){if((0,r.sb)(e)&&"slot"===(0,r.mq)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,r.sb)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function h(e){return a(e)&&c(e)>=0}function p(e){let t=[];return!function e(t,n){d(t).forEach(t=>{s(t)&&n.push(t),e(t,n)})}(e,t),t.filter(a)}function g(e){let t=p(e);return t.filter(e=>c(e)>=0&&function(e,t){let n=f(e);if(!n)return!0;let r=t.find(e=>{let t=f(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=f(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function m(e,t){let n=g(e),r=n.length;if(0===r)return;let o=(0,l.RS)((0,i.R)(e)),u=n.indexOf(o);return n[-1===u?1===t?0:r-1:u+t]}function v(e){return m((0,i.R)(e).body,1)||e}function y(e){return m((0,i.R)(e).body,-1)||e}function b(e,t){if(!e)return null;let n=g((0,i.R)(e).body),r=n.length;if(0===r)return null;let l=n.indexOf(e);return -1===l?null:n[(l+t+r)%r]}function x(e){return b(e,1)}function w(e){return b(e,-1)}function R(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!(0,l.gR)(n,r)}
1function E(e){g(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function S(e){let t=[];!function e(t,n,i){d(t).forEach(t=>{(0,r.sb)(t)&&t.matches(n)&&i.push(t),e(t,n,i)})}(e,"[data-tabindex]",t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.